@voyantjs/identity-ui 0.16.0 → 0.18.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.
- package/LICENSE +201 -109
- package/README.md +14 -0
- package/dist/components/address-dialog.d.ts.map +1 -1
- package/dist/components/address-dialog.js +24 -16
- package/dist/components/contact-point-dialog.d.ts.map +1 -1
- package/dist/components/contact-point-dialog.js +17 -10
- package/dist/components/named-contact-dialog.d.ts.map +1 -1
- package/dist/components/named-contact-dialog.js +19 -12
- package/dist/i18n/en.d.ts +113 -0
- package/dist/i18n/en.d.ts.map +1 -0
- package/dist/i18n/en.js +112 -0
- package/dist/i18n/index.d.ts +5 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/index.js +3 -0
- package/dist/i18n/messages.d.ts +87 -0
- package/dist/i18n/messages.d.ts.map +1 -0
- package/dist/i18n/messages.js +1 -0
- package/dist/i18n/provider.d.ts +248 -0
- package/dist/i18n/provider.d.ts.map +1 -0
- package/dist/i18n/provider.js +44 -0
- package/dist/i18n/ro.d.ts +113 -0
- package/dist/i18n/ro.d.ts.map +1 -0
- package/dist/i18n/ro.js +112 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/package.json +31 -10
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
export declare const identityUiEn: {
|
|
2
|
+
common: {
|
|
3
|
+
cancel: string;
|
|
4
|
+
saveChanges: string;
|
|
5
|
+
primary: string;
|
|
6
|
+
addressLabelLabels: {
|
|
7
|
+
primary: string;
|
|
8
|
+
billing: string;
|
|
9
|
+
shipping: string;
|
|
10
|
+
mailing: string;
|
|
11
|
+
meeting: string;
|
|
12
|
+
service: string;
|
|
13
|
+
legal: string;
|
|
14
|
+
other: string;
|
|
15
|
+
};
|
|
16
|
+
contactPointKindLabels: {
|
|
17
|
+
email: string;
|
|
18
|
+
phone: string;
|
|
19
|
+
mobile: string;
|
|
20
|
+
whatsapp: string;
|
|
21
|
+
website: string;
|
|
22
|
+
sms: string;
|
|
23
|
+
fax: string;
|
|
24
|
+
social: string;
|
|
25
|
+
other: string;
|
|
26
|
+
};
|
|
27
|
+
namedContactRoleLabels: {
|
|
28
|
+
general: string;
|
|
29
|
+
primary: string;
|
|
30
|
+
reservations: string;
|
|
31
|
+
operations: string;
|
|
32
|
+
front_desk: string;
|
|
33
|
+
sales: string;
|
|
34
|
+
emergency: string;
|
|
35
|
+
accounting: string;
|
|
36
|
+
legal: string;
|
|
37
|
+
other: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
addressDialog: {
|
|
41
|
+
titles: {
|
|
42
|
+
create: string;
|
|
43
|
+
edit: string;
|
|
44
|
+
};
|
|
45
|
+
fields: {
|
|
46
|
+
label: string;
|
|
47
|
+
line1: string;
|
|
48
|
+
line2: string;
|
|
49
|
+
city: string;
|
|
50
|
+
region: string;
|
|
51
|
+
postalCode: string;
|
|
52
|
+
country: string;
|
|
53
|
+
timezone: string;
|
|
54
|
+
latitude: string;
|
|
55
|
+
longitude: string;
|
|
56
|
+
notes: string;
|
|
57
|
+
};
|
|
58
|
+
placeholders: {
|
|
59
|
+
timezone: string;
|
|
60
|
+
};
|
|
61
|
+
actions: {
|
|
62
|
+
create: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
contactPointDialog: {
|
|
66
|
+
titles: {
|
|
67
|
+
create: string;
|
|
68
|
+
edit: string;
|
|
69
|
+
};
|
|
70
|
+
fields: {
|
|
71
|
+
kind: string;
|
|
72
|
+
label: string;
|
|
73
|
+
value: string;
|
|
74
|
+
notes: string;
|
|
75
|
+
};
|
|
76
|
+
placeholders: {
|
|
77
|
+
label: string;
|
|
78
|
+
value: string;
|
|
79
|
+
};
|
|
80
|
+
actions: {
|
|
81
|
+
create: string;
|
|
82
|
+
};
|
|
83
|
+
validation: {
|
|
84
|
+
valueRequired: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
namedContactDialog: {
|
|
88
|
+
titles: {
|
|
89
|
+
create: string;
|
|
90
|
+
edit: string;
|
|
91
|
+
};
|
|
92
|
+
fields: {
|
|
93
|
+
role: string;
|
|
94
|
+
name: string;
|
|
95
|
+
title: string;
|
|
96
|
+
email: string;
|
|
97
|
+
phone: string;
|
|
98
|
+
notes: string;
|
|
99
|
+
};
|
|
100
|
+
placeholders: {
|
|
101
|
+
name: string;
|
|
102
|
+
title: string;
|
|
103
|
+
email: string;
|
|
104
|
+
};
|
|
105
|
+
actions: {
|
|
106
|
+
create: string;
|
|
107
|
+
};
|
|
108
|
+
validation: {
|
|
109
|
+
nameRequired: string;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
//# sourceMappingURL=en.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/i18n/en.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+GK,CAAA"}
|
package/dist/i18n/en.js
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
export const identityUiEn = {
|
|
2
|
+
common: {
|
|
3
|
+
cancel: "Cancel",
|
|
4
|
+
saveChanges: "Save Changes",
|
|
5
|
+
primary: "Primary",
|
|
6
|
+
addressLabelLabels: {
|
|
7
|
+
primary: "Primary",
|
|
8
|
+
billing: "Billing",
|
|
9
|
+
shipping: "Shipping",
|
|
10
|
+
mailing: "Mailing",
|
|
11
|
+
meeting: "Meeting",
|
|
12
|
+
service: "Service",
|
|
13
|
+
legal: "Legal",
|
|
14
|
+
other: "Other",
|
|
15
|
+
},
|
|
16
|
+
contactPointKindLabels: {
|
|
17
|
+
email: "Email",
|
|
18
|
+
phone: "Phone",
|
|
19
|
+
mobile: "Mobile",
|
|
20
|
+
whatsapp: "WhatsApp",
|
|
21
|
+
website: "Website",
|
|
22
|
+
sms: "SMS",
|
|
23
|
+
fax: "Fax",
|
|
24
|
+
social: "Social",
|
|
25
|
+
other: "Other",
|
|
26
|
+
},
|
|
27
|
+
namedContactRoleLabels: {
|
|
28
|
+
general: "General",
|
|
29
|
+
primary: "Primary",
|
|
30
|
+
reservations: "Reservations",
|
|
31
|
+
operations: "Operations",
|
|
32
|
+
front_desk: "Front desk",
|
|
33
|
+
sales: "Sales",
|
|
34
|
+
emergency: "Emergency",
|
|
35
|
+
accounting: "Accounting",
|
|
36
|
+
legal: "Legal",
|
|
37
|
+
other: "Other",
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
addressDialog: {
|
|
41
|
+
titles: {
|
|
42
|
+
create: "Add Address",
|
|
43
|
+
edit: "Edit Address",
|
|
44
|
+
},
|
|
45
|
+
fields: {
|
|
46
|
+
label: "Label",
|
|
47
|
+
line1: "Line 1",
|
|
48
|
+
line2: "Line 2",
|
|
49
|
+
city: "City",
|
|
50
|
+
region: "Region",
|
|
51
|
+
postalCode: "Postal code",
|
|
52
|
+
country: "Country",
|
|
53
|
+
timezone: "Timezone",
|
|
54
|
+
latitude: "Latitude",
|
|
55
|
+
longitude: "Longitude",
|
|
56
|
+
notes: "Notes",
|
|
57
|
+
},
|
|
58
|
+
placeholders: {
|
|
59
|
+
timezone: "Europe/Istanbul",
|
|
60
|
+
},
|
|
61
|
+
actions: {
|
|
62
|
+
create: "Add Address",
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
contactPointDialog: {
|
|
66
|
+
titles: {
|
|
67
|
+
create: "Add Contact Point",
|
|
68
|
+
edit: "Edit Contact Point",
|
|
69
|
+
},
|
|
70
|
+
fields: {
|
|
71
|
+
kind: "Kind",
|
|
72
|
+
label: "Label",
|
|
73
|
+
value: "Value",
|
|
74
|
+
notes: "Notes",
|
|
75
|
+
},
|
|
76
|
+
placeholders: {
|
|
77
|
+
label: "work, personal...",
|
|
78
|
+
value: "name@example.com",
|
|
79
|
+
},
|
|
80
|
+
actions: {
|
|
81
|
+
create: "Add Contact Point",
|
|
82
|
+
},
|
|
83
|
+
validation: {
|
|
84
|
+
valueRequired: "Value is required",
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
namedContactDialog: {
|
|
88
|
+
titles: {
|
|
89
|
+
create: "Add Named Contact",
|
|
90
|
+
edit: "Edit Named Contact",
|
|
91
|
+
},
|
|
92
|
+
fields: {
|
|
93
|
+
role: "Role",
|
|
94
|
+
name: "Name",
|
|
95
|
+
title: "Title",
|
|
96
|
+
email: "Email",
|
|
97
|
+
phone: "Phone",
|
|
98
|
+
notes: "Notes",
|
|
99
|
+
},
|
|
100
|
+
placeholders: {
|
|
101
|
+
name: "Jane Doe",
|
|
102
|
+
title: "Director of Sales",
|
|
103
|
+
email: "jane@example.com",
|
|
104
|
+
},
|
|
105
|
+
actions: {
|
|
106
|
+
create: "Add Named Contact",
|
|
107
|
+
},
|
|
108
|
+
validation: {
|
|
109
|
+
nameRequired: "Name is required",
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { identityUiEn } from "./en";
|
|
2
|
+
export type { AddressLabel, ContactPointKind, IdentityUiMessages, NamedContactRole, } from "./messages";
|
|
3
|
+
export { getIdentityUiI18n, type IdentityUiMessageOverrides, IdentityUiMessagesProvider, identityUiMessageDefinitions, resolveIdentityUiMessages, useIdentityUiI18n, useIdentityUiI18nOrDefault, useIdentityUiMessages, useIdentityUiMessagesOrDefault, } from "./provider";
|
|
4
|
+
export { identityUiRo } from "./ro";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AACnC,YAAY,EACV,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,YAAY,CAAA;AACnB,OAAO,EACL,iBAAiB,EACjB,KAAK,0BAA0B,EAC/B,0BAA0B,EAC1B,4BAA4B,EAC5B,yBAAyB,EACzB,iBAAiB,EACjB,0BAA0B,EAC1B,qBAAqB,EACrB,8BAA8B,GAC/B,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { identityUiEn } from "./en";
|
|
2
|
+
export { getIdentityUiI18n, IdentityUiMessagesProvider, identityUiMessageDefinitions, resolveIdentityUiMessages, useIdentityUiI18n, useIdentityUiI18nOrDefault, useIdentityUiMessages, useIdentityUiMessagesOrDefault, } from "./provider";
|
|
3
|
+
export { identityUiRo } from "./ro";
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type { AddressRecord, ContactPointRecord, NamedContactRecord } from "@voyantjs/identity-react";
|
|
2
|
+
export type AddressLabel = AddressRecord["label"];
|
|
3
|
+
export type ContactPointKind = ContactPointRecord["kind"];
|
|
4
|
+
export type NamedContactRole = NamedContactRecord["role"];
|
|
5
|
+
export type IdentityUiMessages = {
|
|
6
|
+
common: {
|
|
7
|
+
cancel: string;
|
|
8
|
+
saveChanges: string;
|
|
9
|
+
primary: string;
|
|
10
|
+
addressLabelLabels: Record<AddressLabel, string>;
|
|
11
|
+
contactPointKindLabels: Record<ContactPointKind, string>;
|
|
12
|
+
namedContactRoleLabels: Record<NamedContactRole, string>;
|
|
13
|
+
};
|
|
14
|
+
addressDialog: {
|
|
15
|
+
titles: {
|
|
16
|
+
create: string;
|
|
17
|
+
edit: string;
|
|
18
|
+
};
|
|
19
|
+
fields: {
|
|
20
|
+
label: string;
|
|
21
|
+
line1: string;
|
|
22
|
+
line2: string;
|
|
23
|
+
city: string;
|
|
24
|
+
region: string;
|
|
25
|
+
postalCode: string;
|
|
26
|
+
country: string;
|
|
27
|
+
timezone: string;
|
|
28
|
+
latitude: string;
|
|
29
|
+
longitude: string;
|
|
30
|
+
notes: string;
|
|
31
|
+
};
|
|
32
|
+
placeholders: {
|
|
33
|
+
timezone: string;
|
|
34
|
+
};
|
|
35
|
+
actions: {
|
|
36
|
+
create: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
contactPointDialog: {
|
|
40
|
+
titles: {
|
|
41
|
+
create: string;
|
|
42
|
+
edit: string;
|
|
43
|
+
};
|
|
44
|
+
fields: {
|
|
45
|
+
kind: string;
|
|
46
|
+
label: string;
|
|
47
|
+
value: string;
|
|
48
|
+
notes: string;
|
|
49
|
+
};
|
|
50
|
+
placeholders: {
|
|
51
|
+
label: string;
|
|
52
|
+
value: string;
|
|
53
|
+
};
|
|
54
|
+
actions: {
|
|
55
|
+
create: string;
|
|
56
|
+
};
|
|
57
|
+
validation: {
|
|
58
|
+
valueRequired: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
namedContactDialog: {
|
|
62
|
+
titles: {
|
|
63
|
+
create: string;
|
|
64
|
+
edit: string;
|
|
65
|
+
};
|
|
66
|
+
fields: {
|
|
67
|
+
role: string;
|
|
68
|
+
name: string;
|
|
69
|
+
title: string;
|
|
70
|
+
email: string;
|
|
71
|
+
phone: string;
|
|
72
|
+
notes: string;
|
|
73
|
+
};
|
|
74
|
+
placeholders: {
|
|
75
|
+
name: string;
|
|
76
|
+
title: string;
|
|
77
|
+
email: string;
|
|
78
|
+
};
|
|
79
|
+
actions: {
|
|
80
|
+
create: string;
|
|
81
|
+
};
|
|
82
|
+
validation: {
|
|
83
|
+
nameRequired: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/i18n/messages.ts"],"names":[],"m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MAAM,EAAE;YACN,MAAM,EAAE,MAAM,CAAA;YACd,IAAI,EAAE,MAAM,CAAA;SACb,CAAA;QACD,MAAM,EAAE;YACN,IAAI,EAAE,MAAM,CAAA;YACZ,KAAK,EAAE,MAAM,CAAA;YACb,KAAK,EAAE,MAAM,CAAA;YACb,KAAK,EAAE,MAAM,CAAA;SACd,CAAA;QACD,YAAY,EAAE;YACZ,KAAK,EAAE,MAAM,CAAA;YACb,KAAK,EAAE,MAAM,CAAA;SACd,CAAA;QACD,OAAO,EAAE;YACP,MAAM,EAAE,MAAM,CAAA;SACf,CAAA;QACD,UAAU,EAAE;YACV,aAAa,EAAE,MAAM,CAAA;SACtB,CAAA;KACF,CAAA;IACD,kBAAkB,EAAE;QAClB,MAAM,EAAE;YACN,MAAM,EAAE,MAAM,CAAA;YACd,IAAI,EAAE,MAAM,CAAA;SACb,CAAA;QACD,MAAM,EAAE;YACN,IAAI,EAAE,MAAM,CAAA;YACZ,IAAI,EAAE,MAAM,CAAA;YACZ,KAAK,EAAE,MAAM,CAAA;YACb,KAAK,EAAE,MAAM,CAAA;YACb,KAAK,EAAE,MAAM,CAAA;YACb,KAAK,EAAE,MAAM,CAAA;SACd,CAAA;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,MAAM,CAAA;YACZ,KAAK,EAAE,MAAM,CAAA;YACb,KAAK,EAAE,MAAM,CAAA;SACd,CAAA;QACD,OAAO,EAAE;YACP,MAAM,EAAE,MAAM,CAAA;SACf,CAAA;QACD,UAAU,EAAE;YACV,YAAY,EAAE,MAAM,CAAA;SACrB,CAAA;KACF,CAAA;CACF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { type LocaleMessageOverrides, type PackageI18nValue } from "@voyantjs/i18n";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
import type { IdentityUiMessages } from "./messages";
|
|
4
|
+
export declare const identityUiMessageDefinitions: {
|
|
5
|
+
en: {
|
|
6
|
+
common: {
|
|
7
|
+
cancel: string;
|
|
8
|
+
saveChanges: string;
|
|
9
|
+
primary: string;
|
|
10
|
+
addressLabelLabels: {
|
|
11
|
+
primary: string;
|
|
12
|
+
billing: string;
|
|
13
|
+
shipping: string;
|
|
14
|
+
mailing: string;
|
|
15
|
+
meeting: string;
|
|
16
|
+
service: string;
|
|
17
|
+
legal: string;
|
|
18
|
+
other: string;
|
|
19
|
+
};
|
|
20
|
+
contactPointKindLabels: {
|
|
21
|
+
email: string;
|
|
22
|
+
phone: string;
|
|
23
|
+
mobile: string;
|
|
24
|
+
whatsapp: string;
|
|
25
|
+
website: string;
|
|
26
|
+
sms: string;
|
|
27
|
+
fax: string;
|
|
28
|
+
social: string;
|
|
29
|
+
other: string;
|
|
30
|
+
};
|
|
31
|
+
namedContactRoleLabels: {
|
|
32
|
+
general: string;
|
|
33
|
+
primary: string;
|
|
34
|
+
reservations: string;
|
|
35
|
+
operations: string;
|
|
36
|
+
front_desk: string;
|
|
37
|
+
sales: string;
|
|
38
|
+
emergency: string;
|
|
39
|
+
accounting: string;
|
|
40
|
+
legal: string;
|
|
41
|
+
other: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
addressDialog: {
|
|
45
|
+
titles: {
|
|
46
|
+
create: string;
|
|
47
|
+
edit: string;
|
|
48
|
+
};
|
|
49
|
+
fields: {
|
|
50
|
+
label: string;
|
|
51
|
+
line1: string;
|
|
52
|
+
line2: string;
|
|
53
|
+
city: string;
|
|
54
|
+
region: string;
|
|
55
|
+
postalCode: string;
|
|
56
|
+
country: string;
|
|
57
|
+
timezone: string;
|
|
58
|
+
latitude: string;
|
|
59
|
+
longitude: string;
|
|
60
|
+
notes: string;
|
|
61
|
+
};
|
|
62
|
+
placeholders: {
|
|
63
|
+
timezone: string;
|
|
64
|
+
};
|
|
65
|
+
actions: {
|
|
66
|
+
create: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
contactPointDialog: {
|
|
70
|
+
titles: {
|
|
71
|
+
create: string;
|
|
72
|
+
edit: string;
|
|
73
|
+
};
|
|
74
|
+
fields: {
|
|
75
|
+
kind: string;
|
|
76
|
+
label: string;
|
|
77
|
+
value: string;
|
|
78
|
+
notes: string;
|
|
79
|
+
};
|
|
80
|
+
placeholders: {
|
|
81
|
+
label: string;
|
|
82
|
+
value: string;
|
|
83
|
+
};
|
|
84
|
+
actions: {
|
|
85
|
+
create: string;
|
|
86
|
+
};
|
|
87
|
+
validation: {
|
|
88
|
+
valueRequired: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
namedContactDialog: {
|
|
92
|
+
titles: {
|
|
93
|
+
create: string;
|
|
94
|
+
edit: string;
|
|
95
|
+
};
|
|
96
|
+
fields: {
|
|
97
|
+
role: string;
|
|
98
|
+
name: string;
|
|
99
|
+
title: string;
|
|
100
|
+
email: string;
|
|
101
|
+
phone: string;
|
|
102
|
+
notes: string;
|
|
103
|
+
};
|
|
104
|
+
placeholders: {
|
|
105
|
+
name: string;
|
|
106
|
+
title: string;
|
|
107
|
+
email: string;
|
|
108
|
+
};
|
|
109
|
+
actions: {
|
|
110
|
+
create: string;
|
|
111
|
+
};
|
|
112
|
+
validation: {
|
|
113
|
+
nameRequired: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
ro: {
|
|
118
|
+
common: {
|
|
119
|
+
cancel: string;
|
|
120
|
+
saveChanges: string;
|
|
121
|
+
primary: string;
|
|
122
|
+
addressLabelLabels: {
|
|
123
|
+
primary: string;
|
|
124
|
+
billing: string;
|
|
125
|
+
shipping: string;
|
|
126
|
+
mailing: string;
|
|
127
|
+
meeting: string;
|
|
128
|
+
service: string;
|
|
129
|
+
legal: string;
|
|
130
|
+
other: string;
|
|
131
|
+
};
|
|
132
|
+
contactPointKindLabels: {
|
|
133
|
+
email: string;
|
|
134
|
+
phone: string;
|
|
135
|
+
mobile: string;
|
|
136
|
+
whatsapp: string;
|
|
137
|
+
website: string;
|
|
138
|
+
sms: string;
|
|
139
|
+
fax: string;
|
|
140
|
+
social: string;
|
|
141
|
+
other: string;
|
|
142
|
+
};
|
|
143
|
+
namedContactRoleLabels: {
|
|
144
|
+
general: string;
|
|
145
|
+
primary: string;
|
|
146
|
+
reservations: string;
|
|
147
|
+
operations: string;
|
|
148
|
+
front_desk: string;
|
|
149
|
+
sales: string;
|
|
150
|
+
emergency: string;
|
|
151
|
+
accounting: string;
|
|
152
|
+
legal: string;
|
|
153
|
+
other: string;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
addressDialog: {
|
|
157
|
+
titles: {
|
|
158
|
+
create: string;
|
|
159
|
+
edit: string;
|
|
160
|
+
};
|
|
161
|
+
fields: {
|
|
162
|
+
label: string;
|
|
163
|
+
line1: string;
|
|
164
|
+
line2: string;
|
|
165
|
+
city: string;
|
|
166
|
+
region: string;
|
|
167
|
+
postalCode: string;
|
|
168
|
+
country: string;
|
|
169
|
+
timezone: string;
|
|
170
|
+
latitude: string;
|
|
171
|
+
longitude: string;
|
|
172
|
+
notes: string;
|
|
173
|
+
};
|
|
174
|
+
placeholders: {
|
|
175
|
+
timezone: string;
|
|
176
|
+
};
|
|
177
|
+
actions: {
|
|
178
|
+
create: string;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
contactPointDialog: {
|
|
182
|
+
titles: {
|
|
183
|
+
create: string;
|
|
184
|
+
edit: string;
|
|
185
|
+
};
|
|
186
|
+
fields: {
|
|
187
|
+
kind: string;
|
|
188
|
+
label: string;
|
|
189
|
+
value: string;
|
|
190
|
+
notes: string;
|
|
191
|
+
};
|
|
192
|
+
placeholders: {
|
|
193
|
+
label: string;
|
|
194
|
+
value: string;
|
|
195
|
+
};
|
|
196
|
+
actions: {
|
|
197
|
+
create: string;
|
|
198
|
+
};
|
|
199
|
+
validation: {
|
|
200
|
+
valueRequired: string;
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
namedContactDialog: {
|
|
204
|
+
titles: {
|
|
205
|
+
create: string;
|
|
206
|
+
edit: string;
|
|
207
|
+
};
|
|
208
|
+
fields: {
|
|
209
|
+
role: string;
|
|
210
|
+
name: string;
|
|
211
|
+
title: string;
|
|
212
|
+
email: string;
|
|
213
|
+
phone: string;
|
|
214
|
+
notes: string;
|
|
215
|
+
};
|
|
216
|
+
placeholders: {
|
|
217
|
+
name: string;
|
|
218
|
+
title: string;
|
|
219
|
+
email: string;
|
|
220
|
+
};
|
|
221
|
+
actions: {
|
|
222
|
+
create: string;
|
|
223
|
+
};
|
|
224
|
+
validation: {
|
|
225
|
+
nameRequired: string;
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
export type IdentityUiMessageOverrides = LocaleMessageOverrides<IdentityUiMessages>;
|
|
231
|
+
export declare function resolveIdentityUiMessages({ locale, overrides, }: {
|
|
232
|
+
locale: string | null | undefined;
|
|
233
|
+
overrides?: IdentityUiMessageOverrides | null;
|
|
234
|
+
}): IdentityUiMessages;
|
|
235
|
+
export declare function getIdentityUiI18n({ locale, overrides, }: {
|
|
236
|
+
locale?: string | null | undefined;
|
|
237
|
+
overrides?: IdentityUiMessageOverrides | null;
|
|
238
|
+
}): PackageI18nValue<IdentityUiMessages>;
|
|
239
|
+
export declare function IdentityUiMessagesProvider({ children, locale, overrides, }: {
|
|
240
|
+
children: ReactNode;
|
|
241
|
+
locale: string | null | undefined;
|
|
242
|
+
overrides?: IdentityUiMessageOverrides | null;
|
|
243
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
244
|
+
export declare const useIdentityUiI18n: () => PackageI18nValue<IdentityUiMessages>;
|
|
245
|
+
export declare const useIdentityUiMessages: () => IdentityUiMessages;
|
|
246
|
+
export declare function useIdentityUiI18nOrDefault(): PackageI18nValue<IdentityUiMessages>;
|
|
247
|
+
export declare function useIdentityUiMessagesOrDefault(): IdentityUiMessages;
|
|
248
|
+
//# sourceMappingURL=provider.d.ts.map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A;IACjC,SAAS,CAAC,EAAE,0BAA0B,GAAG,IAAI,CAAA;CAC9C,2CAWA;AAED,eAAO,MAAM,iBAAiB,4CAA4B,CAAA;AAC1D,eAAO,MAAM,qBAAqB,0BAAgC,CAAA;AAElE,wBAAgB,0BAA0B,yCAEzC;AAED,wBAAgB,8BAA8B,uBAE7C"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { createLocaleFormatters, createPackageMessagesContext, resolvePackageMessages, } from "@voyantjs/i18n";
|
|
4
|
+
import { identityUiEn } from "./en";
|
|
5
|
+
import { identityUiRo } from "./ro";
|
|
6
|
+
const fallbackLocale = "en";
|
|
7
|
+
export const identityUiMessageDefinitions = {
|
|
8
|
+
en: identityUiEn,
|
|
9
|
+
ro: identityUiRo,
|
|
10
|
+
};
|
|
11
|
+
const identityUiContext = createPackageMessagesContext("IdentityUiMessages");
|
|
12
|
+
const defaultIdentityUiI18n = {
|
|
13
|
+
messages: identityUiEn,
|
|
14
|
+
...createLocaleFormatters(fallbackLocale),
|
|
15
|
+
};
|
|
16
|
+
export function resolveIdentityUiMessages({ locale, overrides, }) {
|
|
17
|
+
return resolvePackageMessages({
|
|
18
|
+
definitions: identityUiMessageDefinitions,
|
|
19
|
+
fallbackLocale,
|
|
20
|
+
locale,
|
|
21
|
+
overrides,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
export function getIdentityUiI18n({ locale, overrides, }) {
|
|
25
|
+
const resolvedLocale = locale ?? fallbackLocale;
|
|
26
|
+
return {
|
|
27
|
+
messages: resolveIdentityUiMessages({
|
|
28
|
+
locale: resolvedLocale,
|
|
29
|
+
overrides,
|
|
30
|
+
}),
|
|
31
|
+
...createLocaleFormatters(resolvedLocale),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function IdentityUiMessagesProvider({ children, locale, overrides, }) {
|
|
35
|
+
return (_jsx(identityUiContext.ResolvedMessagesProvider, { definitions: identityUiMessageDefinitions, fallbackLocale: fallbackLocale, locale: locale, overrides: overrides, children: children }));
|
|
36
|
+
}
|
|
37
|
+
export const useIdentityUiI18n = identityUiContext.useI18n;
|
|
38
|
+
export const useIdentityUiMessages = identityUiContext.useMessages;
|
|
39
|
+
export function useIdentityUiI18nOrDefault() {
|
|
40
|
+
return identityUiContext.useOptionalI18n() ?? defaultIdentityUiI18n;
|
|
41
|
+
}
|
|
42
|
+
export function useIdentityUiMessagesOrDefault() {
|
|
43
|
+
return useIdentityUiI18nOrDefault().messages;
|
|
44
|
+
}
|