@betterstore/react 0.5.14 → 0.5.16

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":"checkout-form.d.ts","sourceRoot":"","sources":["../../../src/components/checkout-embed/checkout-form.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,EACf,iBAAiB,EAElB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAcvD,UAAU,iBAAiB;IACzB,WAAW,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAClD,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,eAAe,CAAC,UAAU,CAAC,CAAC;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,kBAAkB,CAAC,EAAE,gBAAgB,CAAC;IACtC,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,WAAW,EACX,UAAU,EACV,SAAS,EACT,OAAO,EACP,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,kBAAkB,EAClB,KAAK,EACL,MAAM,EACN,eAAe,EACf,YAAY,EACZ,aAAa,EACb,SAAS,EACT,mBAAmB,EACnB,WAAW,EACX,QAAQ,EACR,SAAS,EACT,wBAAwB,GACzB,EAAE,iBAAiB,2CA+QnB"}
1
+ {"version":3,"file":"checkout-form.d.ts","sourceRoot":"","sources":["../../../src/components/checkout-embed/checkout-form.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,EACf,iBAAiB,EAElB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAcvD,UAAU,iBAAiB;IACzB,WAAW,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAClD,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,eAAe,CAAC,UAAU,CAAC,CAAC;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,kBAAkB,CAAC,EAAE,gBAAgB,CAAC;IACtC,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,WAAW,EACX,UAAU,EACV,SAAS,EACT,OAAO,EACP,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,kBAAkB,EAClB,KAAK,EACL,MAAM,EACN,eAAe,EACf,YAAY,EACZ,aAAa,EACb,SAAS,EACT,mBAAmB,EACnB,WAAW,EACX,QAAQ,EACR,SAAS,EACT,wBAAwB,GACzB,EAAE,iBAAiB,2CAgRnB"}
@@ -7,7 +7,8 @@ interface CustomerFormProps {
7
7
  latitude?: number;
8
8
  longitude?: number;
9
9
  currentAlpha2CountryCode?: string;
10
+ locale?: string;
10
11
  }
11
- export default function CustomerForm({ initialData, onSubmit, clientProxy, clientSecret, latitude, longitude, currentAlpha2CountryCode, }: CustomerFormProps): import("react/jsx-runtime").JSX.Element;
12
+ export default function CustomerForm({ initialData, onSubmit, clientProxy, clientSecret, latitude, longitude, currentAlpha2CountryCode, locale, }: CustomerFormProps): import("react/jsx-runtime").JSX.Element;
12
13
  export {};
13
14
  //# sourceMappingURL=form.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../src/components/checkout-embed/steps/customer/form.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,gBAAgB,EAAkB,MAAM,uBAAuB,CAAC;AAE9E,UAAU,iBAAiB;IACzB,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,QAAQ,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,WAAW,EACX,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,wBAAwB,GACzB,EAAE,iBAAiB,2CA+EnB"}
1
+ {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../src/components/checkout-embed/steps/customer/form.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,gBAAgB,EAAkB,MAAM,uBAAuB,CAAC;AAE9E,UAAU,iBAAiB;IACzB,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,QAAQ,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,WAAW,EACX,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,wBAAwB,EACxB,MAAM,GACP,EAAE,iBAAiB,2CAgFnB"}
@@ -5,7 +5,8 @@ interface AddressInputProps {
5
5
  latitude?: number;
6
6
  longitude?: number;
7
7
  currentAlpha2CountryCode?: string;
8
+ locale?: string;
8
9
  }
9
- export declare function AddressInput({ className, proxy, clientSecret, latitude, longitude, currentAlpha2CountryCode, }: AddressInputProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare function AddressInput({ className, proxy, clientSecret, latitude, longitude, currentAlpha2CountryCode, locale, }: AddressInputProps): import("react/jsx-runtime").JSX.Element;
10
11
  export {};
11
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/compounds/form/address-input/index.tsx"],"names":[],"mappings":"AA+BA,UAAU,iBAAiB;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC;AAED,wBAAgB,YAAY,CAAC,EAC3B,SAAc,EACd,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,wBAAwB,GACzB,EAAE,iBAAiB,2CAqOnB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/compounds/form/address-input/index.tsx"],"names":[],"mappings":"AAcA,UAAU,iBAAiB;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,YAAY,CAAC,EAC3B,SAAc,EACd,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,wBAAwB,EACxB,MAAM,GACP,EAAE,iBAAiB,2CA2PnB"}
@@ -0,0 +1,155 @@
1
+ export declare const countryProvinces: {
2
+ readonly us: readonly [{
3
+ readonly name: "Alabama";
4
+ readonly code: "AL";
5
+ }, {
6
+ readonly name: "Alaska";
7
+ readonly code: "AK";
8
+ }, {
9
+ readonly name: "Arizona";
10
+ readonly code: "AZ";
11
+ }, {
12
+ readonly name: "Arkansas";
13
+ readonly code: "AR";
14
+ }, {
15
+ readonly name: "California";
16
+ readonly code: "CA";
17
+ }, {
18
+ readonly name: "Colorado";
19
+ readonly code: "CO";
20
+ }, {
21
+ readonly name: "Connecticut";
22
+ readonly code: "CT";
23
+ }, {
24
+ readonly name: "Delaware";
25
+ readonly code: "DE";
26
+ }, {
27
+ readonly name: "Florida";
28
+ readonly code: "FL";
29
+ }, {
30
+ readonly name: "Georgia";
31
+ readonly code: "GA";
32
+ }, {
33
+ readonly name: "Hawaii";
34
+ readonly code: "HI";
35
+ }, {
36
+ readonly name: "Idaho";
37
+ readonly code: "ID";
38
+ }, {
39
+ readonly name: "Illinois";
40
+ readonly code: "IL";
41
+ }, {
42
+ readonly name: "Indiana";
43
+ readonly code: "IN";
44
+ }, {
45
+ readonly name: "Iowa";
46
+ readonly code: "IA";
47
+ }, {
48
+ readonly name: "Kansas";
49
+ readonly code: "KS";
50
+ }, {
51
+ readonly name: "Kentucky";
52
+ readonly code: "KY";
53
+ }, {
54
+ readonly name: "Louisiana";
55
+ readonly code: "LA";
56
+ }, {
57
+ readonly name: "Maine";
58
+ readonly code: "ME";
59
+ }, {
60
+ readonly name: "Maryland";
61
+ readonly code: "MD";
62
+ }, {
63
+ readonly name: "Massachusetts";
64
+ readonly code: "MA";
65
+ }, {
66
+ readonly name: "Michigan";
67
+ readonly code: "MI";
68
+ }, {
69
+ readonly name: "Minnesota";
70
+ readonly code: "MN";
71
+ }, {
72
+ readonly name: "Mississippi";
73
+ readonly code: "MS";
74
+ }, {
75
+ readonly name: "Missouri";
76
+ readonly code: "MO";
77
+ }, {
78
+ readonly name: "Montana";
79
+ readonly code: "MT";
80
+ }, {
81
+ readonly name: "Nebraska";
82
+ readonly code: "NE";
83
+ }, {
84
+ readonly name: "Nevada";
85
+ readonly code: "NV";
86
+ }, {
87
+ readonly name: "New Hampshire";
88
+ readonly code: "NH";
89
+ }, {
90
+ readonly name: "New Jersey";
91
+ readonly code: "NJ";
92
+ }, {
93
+ readonly name: "New Mexico";
94
+ readonly code: "NM";
95
+ }, {
96
+ readonly name: "New York";
97
+ readonly code: "NY";
98
+ }, {
99
+ readonly name: "North Carolina";
100
+ readonly code: "NC";
101
+ }, {
102
+ readonly name: "North Dakota";
103
+ readonly code: "ND";
104
+ }, {
105
+ readonly name: "Ohio";
106
+ readonly code: "OH";
107
+ }, {
108
+ readonly name: "Oklahoma";
109
+ readonly code: "OK";
110
+ }, {
111
+ readonly name: "Oregon";
112
+ readonly code: "OR";
113
+ }, {
114
+ readonly name: "Pennsylvania";
115
+ readonly code: "PA";
116
+ }, {
117
+ readonly name: "Rhode Island";
118
+ readonly code: "RI";
119
+ }, {
120
+ readonly name: "South Carolina";
121
+ readonly code: "SC";
122
+ }, {
123
+ readonly name: "South Dakota";
124
+ readonly code: "SD";
125
+ }, {
126
+ readonly name: "Tennessee";
127
+ readonly code: "TN";
128
+ }, {
129
+ readonly name: "Texas";
130
+ readonly code: "TX";
131
+ }, {
132
+ readonly name: "Utah";
133
+ readonly code: "UT";
134
+ }, {
135
+ readonly name: "Vermont";
136
+ readonly code: "VT";
137
+ }, {
138
+ readonly name: "Virginia";
139
+ readonly code: "VA";
140
+ }, {
141
+ readonly name: "Washington";
142
+ readonly code: "WA";
143
+ }, {
144
+ readonly name: "West Virginia";
145
+ readonly code: "WV";
146
+ }, {
147
+ readonly name: "Wisconsin";
148
+ readonly code: "WI";
149
+ }, {
150
+ readonly name: "Wyoming";
151
+ readonly code: "WY";
152
+ }];
153
+ };
154
+ export declare const countriesWithProvinces: string[];
155
+ //# sourceMappingURL=province-data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"province-data.d.ts","sourceRoot":"","sources":["../../../../../src/components/compounds/form/address-input/province-data.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqDnB,CAAC;AAEX,eAAO,MAAM,sBAAsB,UAAgC,CAAC"}
@@ -7,7 +7,8 @@ type SelectGroupProps = {
7
7
  }[];
8
8
  required?: boolean;
9
9
  className?: string;
10
+ onChange?: (value: string) => void;
10
11
  };
11
- export default function SelectGroup({ name, label, options, required, className, }: SelectGroupProps): import("react/jsx-runtime").JSX.Element;
12
+ export default function SelectGroup({ name, label, options, required, className, onChange, }: SelectGroupProps): import("react/jsx-runtime").JSX.Element;
12
13
  export {};
13
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/compounds/form/select-group/index.tsx"],"names":[],"mappings":"AAmBA,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,IAAI,EACJ,KAAK,EACL,OAAO,EACP,QAAgB,EAChB,SAAc,GACf,EAAE,gBAAgB,2CA2ClB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/compounds/form/select-group/index.tsx"],"names":[],"mappings":"AAmBA,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,IAAI,EACJ,KAAK,EACL,OAAO,EACP,QAAgB,EAChB,SAAc,EACd,QAAQ,GACT,EAAE,gBAAgB,2CA+ClB"}