@trii/components 2.0.16 → 2.0.18

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 (57) hide show
  1. package/dist/cjs/index.js +50 -674
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/components/ContactInfoPopup/ContactInfoPopup.d.ts +3 -4
  4. package/dist/cjs/types/components/ContactInfoPopup/components/Header/Header.d.ts +4 -8
  5. package/dist/cjs/types/components/ContactInfoPopup/components/index.d.ts +0 -3
  6. package/dist/esm/index.js +52 -676
  7. package/dist/esm/index.js.map +1 -1
  8. package/dist/esm/types/components/ContactInfoPopup/ContactInfoPopup.d.ts +3 -4
  9. package/dist/esm/types/components/ContactInfoPopup/components/Header/Header.d.ts +4 -8
  10. package/dist/esm/types/components/ContactInfoPopup/components/index.d.ts +0 -3
  11. package/dist/index.d.ts +3 -4
  12. package/package.json +99 -99
  13. package/readme +71 -71
  14. package/dist/cjs/types/components/ContactInfoPopup/components/BusinessSection/BusinessSection.d.ts +0 -7
  15. package/dist/cjs/types/components/ContactInfoPopup/components/BusinessSection/index.d.ts +0 -1
  16. package/dist/cjs/types/components/ContactInfoPopup/components/LabelsSection/LabelsSection.d.ts +0 -7
  17. package/dist/cjs/types/components/ContactInfoPopup/components/LabelsSection/index.d.ts +0 -1
  18. package/dist/cjs/types/components/ContactInfoPopup/components/MemberItem/MemberItem.d.ts +0 -5
  19. package/dist/cjs/types/components/ContactInfoPopup/components/MemberItem/index.d.ts +0 -1
  20. package/dist/cjs/types/components/ContactInfoPopup/components/MembersSection/MembersSection.d.ts +0 -7
  21. package/dist/cjs/types/components/ContactInfoPopup/components/MembersSection/components/MemberItem/MemberItem.d.ts +0 -4
  22. package/dist/cjs/types/components/ContactInfoPopup/components/MembersSection/components/MemberItem/index.d.ts +0 -1
  23. package/dist/cjs/types/components/ContactInfoPopup/components/MembersSection/components/index.d.ts +0 -1
  24. package/dist/cjs/types/components/ContactInfoPopup/components/MembersSection/index.d.ts +0 -1
  25. package/dist/cjs/types/components/ContactInfoPopup/hooks/useContactInfoPopupTranslation.d.ts +0 -24
  26. package/dist/cjs/types/components/ContactInfoPopup/types/is-business.typeguard.d.ts +0 -7
  27. package/dist/cjs/types/components/ContactInfoPopup/types/is-contact.typeguard.d.ts +0 -7
  28. package/dist/cjs/types/components/LanguageSelector.d.ts +0 -2
  29. package/dist/cjs/types/contexts/LanguageContext.d.ts +0 -10
  30. package/dist/cjs/types/i18n.d.ts +0 -2
  31. package/dist/cjs/types/translations/en.d.ts +0 -31
  32. package/dist/cjs/types/translations/es.d.ts +0 -31
  33. package/dist/cjs/types/translations/index.d.ts +0 -2
  34. package/dist/cjs/types/types/translations.d.ts +0 -25
  35. package/dist/cjs/types/utils/translation.d.ts +0 -7
  36. package/dist/esm/types/components/ContactInfoPopup/components/BusinessSection/BusinessSection.d.ts +0 -7
  37. package/dist/esm/types/components/ContactInfoPopup/components/BusinessSection/index.d.ts +0 -1
  38. package/dist/esm/types/components/ContactInfoPopup/components/LabelsSection/LabelsSection.d.ts +0 -7
  39. package/dist/esm/types/components/ContactInfoPopup/components/LabelsSection/index.d.ts +0 -1
  40. package/dist/esm/types/components/ContactInfoPopup/components/MemberItem/MemberItem.d.ts +0 -5
  41. package/dist/esm/types/components/ContactInfoPopup/components/MemberItem/index.d.ts +0 -1
  42. package/dist/esm/types/components/ContactInfoPopup/components/MembersSection/MembersSection.d.ts +0 -7
  43. package/dist/esm/types/components/ContactInfoPopup/components/MembersSection/components/MemberItem/MemberItem.d.ts +0 -4
  44. package/dist/esm/types/components/ContactInfoPopup/components/MembersSection/components/MemberItem/index.d.ts +0 -1
  45. package/dist/esm/types/components/ContactInfoPopup/components/MembersSection/components/index.d.ts +0 -1
  46. package/dist/esm/types/components/ContactInfoPopup/components/MembersSection/index.d.ts +0 -1
  47. package/dist/esm/types/components/ContactInfoPopup/hooks/useContactInfoPopupTranslation.d.ts +0 -24
  48. package/dist/esm/types/components/ContactInfoPopup/types/is-business.typeguard.d.ts +0 -7
  49. package/dist/esm/types/components/ContactInfoPopup/types/is-contact.typeguard.d.ts +0 -7
  50. package/dist/esm/types/components/LanguageSelector.d.ts +0 -2
  51. package/dist/esm/types/contexts/LanguageContext.d.ts +0 -10
  52. package/dist/esm/types/i18n.d.ts +0 -2
  53. package/dist/esm/types/translations/en.d.ts +0 -31
  54. package/dist/esm/types/translations/es.d.ts +0 -31
  55. package/dist/esm/types/translations/index.d.ts +0 -2
  56. package/dist/esm/types/types/translations.d.ts +0 -25
  57. package/dist/esm/types/utils/translation.d.ts +0 -7
@@ -1,5 +0,0 @@
1
- import { IContactInfo } from '@trii/types/dist/Contacts';
2
- declare const MemberItem: ({ data }: {
3
- data: IContactInfo;
4
- }) => import("react/jsx-runtime").JSX.Element;
5
- export default MemberItem;
@@ -1 +0,0 @@
1
- export { default } from './MemberItem';
@@ -1,7 +0,0 @@
1
- import { IBusiness } from '@trii/types/dist/Contacts';
2
- interface MembersSectionProps {
3
- contactData?: IBusiness;
4
- title: string;
5
- }
6
- declare const MembersSection: ({ contactData, title }: MembersSectionProps) => import("react/jsx-runtime").JSX.Element | null;
7
- export default MembersSection;
@@ -1,4 +0,0 @@
1
- declare const MemberItem: ({ name }: {
2
- name: string;
3
- }) => import("react/jsx-runtime").JSX.Element;
4
- export default MemberItem;
@@ -1 +0,0 @@
1
- export { default as MemberItem } from './MemberItem';
@@ -1 +0,0 @@
1
- export { default } from './MembersSection';
@@ -1,24 +0,0 @@
1
- export declare const useContactInfoPopupTranslation: () => {
2
- businessSection: {
3
- title: string;
4
- description: string;
5
- };
6
- contactMethod: {
7
- email: string;
8
- phone: string;
9
- website: string;
10
- };
11
- labelsSection: {
12
- title: string;
13
- };
14
- membersSection: {
15
- title: string;
16
- noMembers: string;
17
- };
18
- global: {
19
- properties: string;
20
- business: string;
21
- businessMembers: string;
22
- labels: string;
23
- };
24
- };
@@ -1,7 +0,0 @@
1
- import { IBusiness } from '@trii/types/dist/Contacts/contacts';
2
- /**
3
- * Type guard to check if an object is an IBusiness
4
- * @param obj The object to check
5
- * @returns True if the object is an IBusiness
6
- */
7
- export declare function isBusiness(obj: any): obj is IBusiness;
@@ -1,7 +0,0 @@
1
- import { IContact } from '@trii/types/dist/Contacts/contacts';
2
- /**
3
- * Type guard to check if an object is an IContact
4
- * @param obj The object to check
5
- * @returns True if the object is an IContact
6
- */
7
- export declare function isContact(obj: any): obj is IContact;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const LanguageSelector: React.FC;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- interface LanguageContextType {
3
- language: string;
4
- setLanguage: (lang: string) => void;
5
- }
6
- export declare const LanguageProvider: React.FC<{
7
- children: React.ReactNode;
8
- }>;
9
- export declare const useLanguage: () => LanguageContextType;
10
- export {};
@@ -1,2 +0,0 @@
1
- import i18n from 'i18next';
2
- export default i18n;
@@ -1,31 +0,0 @@
1
- export declare const enTranslations: {
2
- components: {
3
- contactInfoPopup: {
4
- businessSection: {
5
- title: string;
6
- description: string;
7
- };
8
- contactMethod: {
9
- email: string;
10
- phone: string;
11
- website: string;
12
- };
13
- labelsSection: {
14
- title: string;
15
- };
16
- membersSection: {
17
- title: string;
18
- noMembers: string;
19
- };
20
- global: {
21
- properties: string;
22
- business: string;
23
- businessMembers: string;
24
- labels: string;
25
- };
26
- };
27
- textBox: {
28
- placeholder: string;
29
- };
30
- };
31
- };
@@ -1,31 +0,0 @@
1
- export declare const esTranslations: {
2
- components: {
3
- contactInfoPopup: {
4
- businessSection: {
5
- title: string;
6
- description: string;
7
- };
8
- contactMethod: {
9
- email: string;
10
- phone: string;
11
- website: string;
12
- };
13
- labelsSection: {
14
- title: string;
15
- };
16
- membersSection: {
17
- title: string;
18
- noMembers: string;
19
- };
20
- global: {
21
- properties: string;
22
- business: string;
23
- businessMembers: string;
24
- labels: string;
25
- };
26
- };
27
- textBox: {
28
- placeholder: string;
29
- };
30
- };
31
- };
@@ -1,2 +0,0 @@
1
- export { enTranslations } from './en';
2
- export { esTranslations } from './es';
@@ -1,25 +0,0 @@
1
- export interface TriiTranslations {
2
- components: {
3
- contactInfoPopup: {
4
- businessSection: {
5
- title: string;
6
- description: string;
7
- };
8
- contactMethod: {
9
- email: string;
10
- phone: string;
11
- website: string;
12
- };
13
- labelsSection: {
14
- title: string;
15
- };
16
- membersSection: {
17
- title: string;
18
- noMembers: string;
19
- };
20
- };
21
- textBox: {
22
- placeholder: string;
23
- };
24
- };
25
- }
@@ -1,7 +0,0 @@
1
- export interface TranslationKeys {
2
- [key: string]: string;
3
- }
4
- export declare const useTriiTranslation: (namespace?: string) => {
5
- t: (key: string, options?: Record<string, any>) => string;
6
- i18n: import("i18next").i18n;
7
- };