@ticketmaster/tm-global-address 0.6.0 → 0.8.0

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 (73) hide show
  1. package/dist/components/AddressCard/AddressCard.d.ts +5 -0
  2. package/dist/components/AddressCard/AddressCard.js +45 -46
  3. package/dist/components/AddressForm/AddressForm.d.ts +14 -2
  4. package/dist/components/AddressForm/AddressForm.js +216 -212
  5. package/dist/components/AddressList/AddressList.d.ts +7 -2
  6. package/dist/components/AddressList/AddressList.js +41 -37
  7. package/dist/hooks/index.d.ts +10 -0
  8. package/dist/hooks/useAddressForm.d.ts +76 -0
  9. package/dist/hooks/useAddressForm.js +174 -0
  10. package/dist/hooks/useAddressFormRHF.d.ts +8 -0
  11. package/dist/hooks/useAddressFormRHF.js +174 -0
  12. package/dist/i18n/defaultLabels.d.ts +2 -0
  13. package/dist/i18n/defaultLabels.js +66 -0
  14. package/dist/i18n/index.d.ts +14 -0
  15. package/dist/i18n/index.js +45 -0
  16. package/dist/i18n/labelResolver.d.ts +24 -0
  17. package/dist/i18n/labelResolver.js +98 -0
  18. package/dist/i18n/locales/ar-sa.json.d.ts +159 -0
  19. package/dist/i18n/locales/ar-sa.json.js +163 -0
  20. package/dist/i18n/locales/ca-es.json.d.ts +159 -0
  21. package/dist/i18n/locales/ca-es.json.js +163 -0
  22. package/dist/i18n/locales/cs-cz.json.d.ts +159 -0
  23. package/dist/i18n/locales/cs-cz.json.js +163 -0
  24. package/dist/i18n/locales/da-dk.json.d.ts +159 -0
  25. package/dist/i18n/locales/da-dk.json.js +163 -0
  26. package/dist/i18n/locales/de-at.json.d.ts +159 -0
  27. package/dist/i18n/locales/de-at.json.js +163 -0
  28. package/dist/i18n/locales/de-ch.json.d.ts +159 -0
  29. package/dist/i18n/locales/de-ch.json.js +163 -0
  30. package/dist/i18n/locales/de-de.json.d.ts +159 -0
  31. package/dist/i18n/locales/de-de.json.js +163 -0
  32. package/dist/i18n/locales/en-au.json.d.ts +159 -0
  33. package/dist/i18n/locales/en-au.json.js +163 -0
  34. package/dist/i18n/locales/en-ca.json.d.ts +159 -0
  35. package/dist/i18n/locales/en-ca.json.js +163 -0
  36. package/dist/i18n/locales/en-gb.json.d.ts +159 -0
  37. package/dist/i18n/locales/en-gb.json.js +163 -0
  38. package/dist/i18n/locales/en-nz.json.d.ts +159 -0
  39. package/dist/i18n/locales/en-nz.json.js +163 -0
  40. package/dist/i18n/locales/en-us.json.d.ts +159 -0
  41. package/dist/i18n/locales/en-us.json.js +163 -0
  42. package/dist/i18n/locales/es-es.json.d.ts +159 -0
  43. package/dist/i18n/locales/es-es.json.js +163 -0
  44. package/dist/i18n/locales/es-mx.json.d.ts +159 -0
  45. package/dist/i18n/locales/es-mx.json.js +163 -0
  46. package/dist/i18n/locales/fi-fi.json.d.ts +159 -0
  47. package/dist/i18n/locales/fi-fi.json.js +163 -0
  48. package/dist/i18n/locales/fr-be.json.d.ts +159 -0
  49. package/dist/i18n/locales/fr-be.json.js +163 -0
  50. package/dist/i18n/locales/fr-ca.json.d.ts +159 -0
  51. package/dist/i18n/locales/fr-ca.json.js +163 -0
  52. package/dist/i18n/locales/fr-ch.json.d.ts +159 -0
  53. package/dist/i18n/locales/fr-ch.json.js +163 -0
  54. package/dist/i18n/locales/fr-fr.json.d.ts +159 -0
  55. package/dist/i18n/locales/fr-fr.json.js +163 -0
  56. package/dist/i18n/locales/it-ch.json.d.ts +159 -0
  57. package/dist/i18n/locales/it-ch.json.js +163 -0
  58. package/dist/i18n/locales/ja-jp.json.d.ts +159 -0
  59. package/dist/i18n/locales/ja-jp.json.js +163 -0
  60. package/dist/i18n/locales/nl-be.json.d.ts +159 -0
  61. package/dist/i18n/locales/nl-be.json.js +163 -0
  62. package/dist/i18n/locales/nl-nl.json.d.ts +159 -0
  63. package/dist/i18n/locales/nl-nl.json.js +163 -0
  64. package/dist/i18n/locales/no-no.json.d.ts +159 -0
  65. package/dist/i18n/locales/no-no.json.js +163 -0
  66. package/dist/i18n/locales/pl-pl.json.d.ts +159 -0
  67. package/dist/i18n/locales/pl-pl.json.js +163 -0
  68. package/dist/i18n/locales/sv-se.json.d.ts +159 -0
  69. package/dist/i18n/locales/sv-se.json.js +163 -0
  70. package/dist/i18n/types.d.ts +67 -0
  71. package/dist/index.d.ts +4 -0
  72. package/dist/index.js +50 -38
  73. package/package.json +2 -1
@@ -0,0 +1,159 @@
1
+ declare const _default: {
2
+ "form": {
3
+ "firstName": "Förnamn",
4
+ "lastName": "Efternamn",
5
+ "address1": "Adressrad 1",
6
+ "address2": "Adressrad 2",
7
+ "city": "Stad",
8
+ "postal": "Postnummer",
9
+ "stateCode": "Stat / Provins",
10
+ "country": "Land",
11
+ "phoneNumber": "Telefonnummer",
12
+ "dialCode": "Uppringningskod",
13
+ "defaultAddress": "Gör det här till mitt förvalda kort",
14
+ "countryPlaceholder": "Please select",
15
+ "stateCodePlaceholder": "Välj stat eller provins",
16
+ "phoneNumberPlaceholder": "Ange telefonnummer",
17
+ "addressHeading": "Faktura och leveransadress",
18
+ "addNewAddress": "Lägg till ny adress",
19
+ "confirm": "Bekräfta adress",
20
+ "cancel": "Avbryt",
21
+ "editButton": "Redigera",
22
+ "deleteButton": "Ta bort",
23
+ "defaultBadge": "Standard",
24
+ "makeDefault": "Ange som standardadress",
25
+ "countrySelectPlaceholder": "Välj land"
26
+ },
27
+ "validation": {
28
+ "FIELD_REQUIRED": "{{field}} is required",
29
+ "FIELD_TOO_LONG": "Får vara {{maxLength}} tecken som längst",
30
+ "FIELD_TOO_SHORT": "Får vara {{minLength}} tecken som längst",
31
+ "FIELD_INVALID_FORMAT": "Please enter a valid {{field}}",
32
+ "FIELD_INVALID_CHARACTERS": "{{field}} contains invalid characters",
33
+ "POSTAL_CODE_MISMATCH": "Postal code does not match the selected {{stateLabel}}"
34
+ },
35
+ "country": {
36
+ "AT": {
37
+ "stateCode": "Stat",
38
+ "stateCodePlaceholder": "Välj stat",
39
+ "city": "Stad",
40
+ "postal": "Postnummer"
41
+ },
42
+ "AU": {
43
+ "stateCode": "Stat",
44
+ "stateCodePlaceholder": "Välj stat",
45
+ "city": "Förort",
46
+ "postal": "Postnummer"
47
+ },
48
+ "CA": {
49
+ "stateCode": "Provins",
50
+ "stateCodePlaceholder": "Välj provins",
51
+ "city": "Stad",
52
+ "postal": "Postnummer"
53
+ },
54
+ "CZ": {
55
+ "stateCode": "Region",
56
+ "stateCodePlaceholder": "Välj region",
57
+ "city": "Stad",
58
+ "postal": "Postnummer"
59
+ },
60
+ "DE": {
61
+ "stateCode": "Stat",
62
+ "stateCodePlaceholder": "Välj stat",
63
+ "city": "Stad",
64
+ "postal": "Postnummer"
65
+ },
66
+ "DK": {
67
+ "stateCode": "Region",
68
+ "stateCodePlaceholder": "Välj region",
69
+ "city": "Stad",
70
+ "postal": "Postnummer"
71
+ },
72
+ "ES": {
73
+ "stateCode": "Stat",
74
+ "stateCodePlaceholder": "Välj stat",
75
+ "city": "Stad",
76
+ "postal": "Postnummer"
77
+ },
78
+ "FI": {
79
+ "stateCode": "Region",
80
+ "stateCodePlaceholder": "Välj region",
81
+ "city": "Stad",
82
+ "postal": "Postnummer"
83
+ },
84
+ "IE": {
85
+ "stateCode": "County",
86
+ "stateCodePlaceholder": "Välj county",
87
+ "city": "Stad",
88
+ "postal": "Postnummer"
89
+ },
90
+ "MX": {
91
+ "stateCode": "Stat",
92
+ "stateCodePlaceholder": "Välj stat",
93
+ "city": "City",
94
+ "postal": "Postnummer"
95
+ },
96
+ "NL": {
97
+ "stateCode": "Provins",
98
+ "stateCodePlaceholder": "Välj provins",
99
+ "city": "Stad",
100
+ "postal": "Postnummer"
101
+ },
102
+ "NO": {
103
+ "stateCode": "County",
104
+ "stateCodePlaceholder": "Välj county",
105
+ "city": "Stad",
106
+ "postal": "Postnummer"
107
+ },
108
+ "NZ": {
109
+ "stateCode": "Region",
110
+ "stateCodePlaceholder": "Välj region",
111
+ "city": "Stad",
112
+ "postal": "Postnummer"
113
+ },
114
+ "PL": {
115
+ "stateCode": "Region / Provins",
116
+ "stateCodePlaceholder": "Välj region / provins",
117
+ "city": "Stad",
118
+ "postal": "Postnummer"
119
+ },
120
+ "SE": {
121
+ "stateCode": "Region",
122
+ "stateCodePlaceholder": "Välj region",
123
+ "city": "Stad",
124
+ "postal": "Postnummer"
125
+ },
126
+ "US": {
127
+ "stateCode": "Stat",
128
+ "stateCodePlaceholder": "Välj stat",
129
+ "city": "Stad",
130
+ "postal": "Postnummer"
131
+ },
132
+ "ZA": {
133
+ "stateCode": "Stat",
134
+ "stateCodePlaceholder": "Välj stat",
135
+ "city": "Stad",
136
+ "postal": "Postnummer"
137
+ },
138
+ "GB": {
139
+ "postal": "Postcode"
140
+ },
141
+ "JP": {
142
+ "stateCode": "Prefecture",
143
+ "stateCodePlaceholder": "Select the prefecture"
144
+ },
145
+ "AE": {
146
+ "stateCode": "Emirate",
147
+ "stateCodePlaceholder": "Select the emirate"
148
+ },
149
+ "IN": {
150
+ "postal": "PIN Code"
151
+ },
152
+ "CH": {
153
+ "stateCode": "Canton",
154
+ "stateCodePlaceholder": "Select the canton"
155
+ }
156
+ }
157
+ };
158
+
159
+ export default _default;
@@ -0,0 +1,163 @@
1
+ const t = {
2
+ firstName: "Förnamn",
3
+ lastName: "Efternamn",
4
+ address1: "Adressrad 1",
5
+ address2: "Adressrad 2",
6
+ city: "Stad",
7
+ postal: "Postnummer",
8
+ stateCode: "Stat / Provins",
9
+ country: "Land",
10
+ phoneNumber: "Telefonnummer",
11
+ dialCode: "Uppringningskod",
12
+ defaultAddress: "Gör det här till mitt förvalda kort",
13
+ countryPlaceholder: "Please select",
14
+ stateCodePlaceholder: "Välj stat eller provins",
15
+ phoneNumberPlaceholder: "Ange telefonnummer",
16
+ addressHeading: "Faktura och leveransadress",
17
+ addNewAddress: "Lägg till ny adress",
18
+ confirm: "Bekräfta adress",
19
+ cancel: "Avbryt",
20
+ editButton: "Redigera",
21
+ deleteButton: "Ta bort",
22
+ defaultBadge: "Standard",
23
+ makeDefault: "Ange som standardadress",
24
+ countrySelectPlaceholder: "Välj land"
25
+ }, e = {
26
+ FIELD_REQUIRED: "{{field}} is required",
27
+ FIELD_TOO_LONG: "Får vara {{maxLength}} tecken som längst",
28
+ FIELD_TOO_SHORT: "Får vara {{minLength}} tecken som längst",
29
+ FIELD_INVALID_FORMAT: "Please enter a valid {{field}}",
30
+ FIELD_INVALID_CHARACTERS: "{{field}} contains invalid characters",
31
+ POSTAL_CODE_MISMATCH: "Postal code does not match the selected {{stateLabel}}"
32
+ }, a = {
33
+ AT: {
34
+ stateCode: "Stat",
35
+ stateCodePlaceholder: "Välj stat",
36
+ city: "Stad",
37
+ postal: "Postnummer"
38
+ },
39
+ AU: {
40
+ stateCode: "Stat",
41
+ stateCodePlaceholder: "Välj stat",
42
+ city: "Förort",
43
+ postal: "Postnummer"
44
+ },
45
+ CA: {
46
+ stateCode: "Provins",
47
+ stateCodePlaceholder: "Välj provins",
48
+ city: "Stad",
49
+ postal: "Postnummer"
50
+ },
51
+ CZ: {
52
+ stateCode: "Region",
53
+ stateCodePlaceholder: "Välj region",
54
+ city: "Stad",
55
+ postal: "Postnummer"
56
+ },
57
+ DE: {
58
+ stateCode: "Stat",
59
+ stateCodePlaceholder: "Välj stat",
60
+ city: "Stad",
61
+ postal: "Postnummer"
62
+ },
63
+ DK: {
64
+ stateCode: "Region",
65
+ stateCodePlaceholder: "Välj region",
66
+ city: "Stad",
67
+ postal: "Postnummer"
68
+ },
69
+ ES: {
70
+ stateCode: "Stat",
71
+ stateCodePlaceholder: "Välj stat",
72
+ city: "Stad",
73
+ postal: "Postnummer"
74
+ },
75
+ FI: {
76
+ stateCode: "Region",
77
+ stateCodePlaceholder: "Välj region",
78
+ city: "Stad",
79
+ postal: "Postnummer"
80
+ },
81
+ IE: {
82
+ stateCode: "County",
83
+ stateCodePlaceholder: "Välj county",
84
+ city: "Stad",
85
+ postal: "Postnummer"
86
+ },
87
+ MX: {
88
+ stateCode: "Stat",
89
+ stateCodePlaceholder: "Välj stat",
90
+ city: "City",
91
+ postal: "Postnummer"
92
+ },
93
+ NL: {
94
+ stateCode: "Provins",
95
+ stateCodePlaceholder: "Välj provins",
96
+ city: "Stad",
97
+ postal: "Postnummer"
98
+ },
99
+ NO: {
100
+ stateCode: "County",
101
+ stateCodePlaceholder: "Välj county",
102
+ city: "Stad",
103
+ postal: "Postnummer"
104
+ },
105
+ NZ: {
106
+ stateCode: "Region",
107
+ stateCodePlaceholder: "Välj region",
108
+ city: "Stad",
109
+ postal: "Postnummer"
110
+ },
111
+ PL: {
112
+ stateCode: "Region / Provins",
113
+ stateCodePlaceholder: "Välj region / provins",
114
+ city: "Stad",
115
+ postal: "Postnummer"
116
+ },
117
+ SE: {
118
+ stateCode: "Region",
119
+ stateCodePlaceholder: "Välj region",
120
+ city: "Stad",
121
+ postal: "Postnummer"
122
+ },
123
+ US: {
124
+ stateCode: "Stat",
125
+ stateCodePlaceholder: "Välj stat",
126
+ city: "Stad",
127
+ postal: "Postnummer"
128
+ },
129
+ ZA: {
130
+ stateCode: "Stat",
131
+ stateCodePlaceholder: "Välj stat",
132
+ city: "Stad",
133
+ postal: "Postnummer"
134
+ },
135
+ GB: {
136
+ postal: "Postcode"
137
+ },
138
+ JP: {
139
+ stateCode: "Prefecture",
140
+ stateCodePlaceholder: "Select the prefecture"
141
+ },
142
+ AE: {
143
+ stateCode: "Emirate",
144
+ stateCodePlaceholder: "Select the emirate"
145
+ },
146
+ IN: {
147
+ postal: "PIN Code"
148
+ },
149
+ CH: {
150
+ stateCode: "Canton",
151
+ stateCodePlaceholder: "Select the canton"
152
+ }
153
+ }, o = {
154
+ form: t,
155
+ validation: e,
156
+ country: a
157
+ };
158
+ export {
159
+ a as country,
160
+ o as default,
161
+ t as form,
162
+ e as validation
163
+ };
@@ -0,0 +1,67 @@
1
+ /**
2
+ * i18n types for tm-global-address.
3
+ *
4
+ * The library owns its own lightweight label resolution — no i18next or
5
+ * react-intl at runtime. Consumers pass a `locale` string and the library
6
+ * resolves labels internally via two-layer lookup:
7
+ * 1. Country-specific override: `{CC}.{field}` (e.g. "CA.stateCode" → "Province")
8
+ * 2. Generic form default: `form.{field}` (e.g. "form.stateCode" → "State / Province")
9
+ */
10
+ /** All translatable labels for the address form, flat string map */
11
+ export interface FormLabels {
12
+ firstName: string;
13
+ lastName: string;
14
+ address1: string;
15
+ address2: string;
16
+ city: string;
17
+ postal: string;
18
+ stateCode: string;
19
+ country: string;
20
+ phoneNumber: string;
21
+ dialCode: string;
22
+ defaultAddress: string;
23
+ countryPlaceholder: string;
24
+ stateCodePlaceholder: string;
25
+ phoneNumberPlaceholder: string;
26
+ addressHeading: string;
27
+ addNewAddress: string;
28
+ confirm: string;
29
+ cancel: string;
30
+ editButton: string;
31
+ deleteButton: string;
32
+ defaultBadge: string;
33
+ makeDefault: string;
34
+ countrySelectPlaceholder: string;
35
+ }
36
+ /** Validation message templates — use {{variable}} interpolation */
37
+ export interface ValidationLabels {
38
+ FIELD_REQUIRED: string;
39
+ FIELD_TOO_LONG: string;
40
+ FIELD_TOO_SHORT: string;
41
+ FIELD_INVALID_FORMAT: string;
42
+ FIELD_INVALID_CHARACTERS: string;
43
+ POSTAL_CODE_MISMATCH: string;
44
+ }
45
+ /** Country-specific label overrides keyed by CC (ISO 3166-1 alpha-2) */
46
+ export type CountryOverrides = Record<string, {
47
+ stateCode?: string;
48
+ stateCodePlaceholder?: string;
49
+ city?: string;
50
+ postal?: string;
51
+ }>;
52
+ /** A single locale bundle */
53
+ export interface LocaleBundle {
54
+ form: FormLabels;
55
+ validation: ValidationLabels;
56
+ /** Country-code → override labels */
57
+ country: CountryOverrides;
58
+ }
59
+ /** Labels resolved for a specific locale + country combination */
60
+ export interface ResolvedLabels {
61
+ form: FormLabels;
62
+ validation: ValidationLabels;
63
+ /** Whether this locale requires RTL layout */
64
+ isRTL: boolean;
65
+ }
66
+ /** Metadata passed to error message interpolation */
67
+ export type InterpolationVars = Record<string, string | number | undefined>;
package/dist/index.d.ts CHANGED
@@ -24,5 +24,9 @@ export type { ValidationErrorCode, ValidationError, FieldValidationResult, FormV
24
24
  export { FIELD_CONSTRAINTS } from './validation/constants';
25
25
  export { sanitize, validateTextField, validatePostalCode, validateState, validatePhoneNumber, validateForm, } from './validation/index';
26
26
  export type { ValidateFormOptions } from './validation/index';
27
+ export { useLabels, resolveLabels, loadBundle, isRTLLocale, interpolate, SUPPORTED_LOCALES, } from './i18n/index';
28
+ export type { ResolvedLabels, LocaleBundle, FormLabels, ValidationLabels, CountryOverrides, InterpolationVars, SupportedLocale, } from './i18n/index';
29
+ export { useAddressForm, useAddressFormRHF } from './hooks/index';
30
+ export type { UseAddressFormConfig, UseAddressFormReturn, AddressFormValues } from './hooks/index';
27
31
  export { HelloWorld } from './components/HelloWorld/HelloWorld';
28
32
  export type { HelloWorldProps } from './components/HelloWorld/HelloWorld';
package/dist/index.js CHANGED
@@ -1,47 +1,59 @@
1
1
  import { GlobalAddress as e } from "./components/GlobalAddress/GlobalAddress.js";
2
2
  import { AddressForm as m } from "./components/AddressForm/AddressForm.js";
3
- import { PhoneField as a } from "./components/PhoneField/PhoneField.js";
4
- import { AddressCard as x, formatAddressSummary as p } from "./components/AddressCard/AddressCard.js";
5
- import { AddressSummary as S } from "./components/AddressSummary/AddressSummary.js";
6
- import { AddressList as l } from "./components/AddressList/AddressList.js";
7
- import { COUNTRIES as T, getCountryByCode as N } from "./data/countries.js";
8
- import { SUBDIVISIONS as O, getSubdivisions as n } from "./data/states.js";
9
- import { POSTAL_PATTERNS as P, getPostalPattern as u } from "./data/postalPatterns.js";
10
- import { STATE_REQUIRED_CODES as R } from "./data/countryConfig.js";
11
- import { COUNTRY_CONFIGS as v, COUNTRY_OPTIONS as y, getCountryConfig as F, getCountryName as _ } from "./data/countryData.js";
12
- import { FIELD_CONSTRAINTS as D } from "./validation/constants.js";
13
- import { HelloWorld as L } from "./components/HelloWorld/HelloWorld.js";
14
- import { sanitize as B } from "./validation/sanitize.js";
15
- import { validateForm as Y } from "./validation/validateForm.js";
16
- import { validatePhoneNumber as H } from "./validation/validatePhoneNumber.js";
17
- import { validatePostalCode as V } from "./validation/validatePostalCode.js";
18
- import { validateState as c } from "./validation/validateState.js";
19
- import { validateTextField as k } from "./validation/validateTextField.js";
3
+ import { PhoneField as s } from "./components/PhoneField/PhoneField.js";
4
+ import { AddressCard as f, formatAddressSummary as p } from "./components/AddressCard/AddressCard.js";
5
+ import { AddressSummary as l } from "./components/AddressSummary/AddressSummary.js";
6
+ import { AddressList as i } from "./components/AddressList/AddressList.js";
7
+ import { COUNTRIES as T, getCountryByCode as A } from "./data/countries.js";
8
+ import { SUBDIVISIONS as n, getSubdivisions as u } from "./data/states.js";
9
+ import { POSTAL_PATTERNS as P, getPostalPattern as R } from "./data/postalPatterns.js";
10
+ import { STATE_REQUIRED_CODES as F } from "./data/countryConfig.js";
11
+ import { COUNTRY_CONFIGS as L, COUNTRY_OPTIONS as v, getCountryConfig as _, getCountryName as g } from "./data/countryData.js";
12
+ import { FIELD_CONSTRAINTS as U } from "./validation/constants.js";
13
+ import { SUPPORTED_LOCALES as D, useLabels as B } from "./i18n/index.js";
14
+ import { HelloWorld as G } from "./components/HelloWorld/HelloWorld.js";
15
+ import { interpolate as Y, isRTLLocale as c, loadBundle as z, resolveLabels as Q } from "./i18n/labelResolver.js";
16
+ import { sanitize as W } from "./validation/sanitize.js";
17
+ import { useAddressForm as k } from "./hooks/useAddressForm.js";
18
+ import { useAddressFormRHF as w } from "./hooks/useAddressFormRHF.js";
19
+ import { validateForm as K } from "./validation/validateForm.js";
20
+ import { validatePhoneNumber as X } from "./validation/validatePhoneNumber.js";
21
+ import { validatePostalCode as $ } from "./validation/validatePostalCode.js";
22
+ import { validateState as or } from "./validation/validateState.js";
23
+ import { validateTextField as tr } from "./validation/validateTextField.js";
20
24
  export {
21
- x as AddressCard,
25
+ f as AddressCard,
22
26
  m as AddressForm,
23
- l as AddressList,
24
- S as AddressSummary,
27
+ i as AddressList,
28
+ l as AddressSummary,
25
29
  T as COUNTRIES,
26
- v as COUNTRY_CONFIGS,
27
- y as COUNTRY_OPTIONS,
28
- D as FIELD_CONSTRAINTS,
30
+ L as COUNTRY_CONFIGS,
31
+ v as COUNTRY_OPTIONS,
32
+ U as FIELD_CONSTRAINTS,
29
33
  e as GlobalAddress,
30
- L as HelloWorld,
34
+ G as HelloWorld,
31
35
  P as POSTAL_PATTERNS,
32
- a as PhoneField,
33
- R as STATE_REQUIRED_CODES,
34
- O as SUBDIVISIONS,
36
+ s as PhoneField,
37
+ F as STATE_REQUIRED_CODES,
38
+ n as SUBDIVISIONS,
39
+ D as SUPPORTED_LOCALES,
35
40
  p as formatAddressSummary,
36
- N as getCountryByCode,
37
- F as getCountryConfig,
38
- _ as getCountryName,
39
- u as getPostalPattern,
40
- n as getSubdivisions,
41
- B as sanitize,
42
- Y as validateForm,
43
- H as validatePhoneNumber,
44
- V as validatePostalCode,
45
- c as validateState,
46
- k as validateTextField
41
+ A as getCountryByCode,
42
+ _ as getCountryConfig,
43
+ g as getCountryName,
44
+ R as getPostalPattern,
45
+ u as getSubdivisions,
46
+ Y as interpolate,
47
+ c as isRTLLocale,
48
+ z as loadBundle,
49
+ Q as resolveLabels,
50
+ W as sanitize,
51
+ k as useAddressForm,
52
+ w as useAddressFormRHF,
53
+ B as useLabels,
54
+ K as validateForm,
55
+ X as validatePhoneNumber,
56
+ $ as validatePostalCode,
57
+ or as validateState,
58
+ tr as validateTextField
47
59
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ticketmaster/tm-global-address",
3
- "version": "0.6.0",
3
+ "version": "0.8.0",
4
4
  "description": "Shared React UI Library for Global Address Management",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -52,6 +52,7 @@
52
52
  "prettier": "3.0.3",
53
53
  "react": "^18.3.1",
54
54
  "react-dom": "^18.3.1",
55
+ "react-hook-form": "^7.72.1",
55
56
  "storybook": "^8.2.4",
56
57
  "styled-components": "^6.4.0",
57
58
  "tsconfig-paths-webpack-plugin": "^4.1.0",