@dilicorp/ui 0.2.49 → 0.2.51

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.
@@ -21,9 +21,10 @@ export interface FooterPluxeeProps {
21
21
  surpressYear?: boolean;
22
22
  country?: CountryCode;
23
23
  data?: CountryInformationModel;
24
+ target?: '_blank' | '_self' | '_parent' | '_top';
24
25
  }
25
26
  export declare const FooterPluxee: {
26
- ({ data, country, version, surpressYear }: FooterPluxeeProps): JSX.Element;
27
+ ({ data, country, version, surpressYear, target }: FooterPluxeeProps): JSX.Element;
27
28
  displayName: string;
28
29
  };
29
30
  export {};
@@ -12,7 +12,7 @@ var CountriesNames;
12
12
  CountriesNames["COLOMBIA"] = "Colombia";
13
13
  })(CountriesNames || (CountriesNames = {}));
14
14
  const currentYear = new Date().getFullYear();
15
- export const FooterPluxee = ({ data, country, version, surpressYear }) => {
15
+ export const FooterPluxee = ({ data, country, version, surpressYear, target = '_self' }) => {
16
16
  var _a;
17
17
  const countryInformation = useMemo(() => {
18
18
  var _a;
@@ -24,11 +24,31 @@ export const FooterPluxee = ({ data, country, version, surpressYear }) => {
24
24
  version: 'Versão',
25
25
  companyName: 'Pluxee',
26
26
  links: [
27
- { id: 1, label: 'Privacidade', href: 'https://www.sodexobeneficios.com.br/politica-de-privacidade/' },
28
- { id: 2, label: 'Termos uso', href: 'https://www.sodexobeneficios.com.br/termos-de-uso/' },
29
- { id: 3, label: 'Cookies', href: 'https://www.sodexobeneficios.com.br/politica-de-cookies/' },
30
- { id: 4, label: 'Prevenção Fraudes', href: 'https://www.sodexobeneficios.com.br/seguranca-digital/' },
31
- { id: 5, label: 'Segurança Informação', href: 'https://www.sodexobeneficios.com.br/politica-de-seguranca-da-informacao/' }
27
+ {
28
+ id: 1,
29
+ label: 'Privacidade',
30
+ href: 'https://www.sodexobeneficios.com.br/politica-de-privacidade/'
31
+ },
32
+ {
33
+ id: 2,
34
+ label: 'Termos uso',
35
+ href: 'https://www.sodexobeneficios.com.br/termos-de-uso/'
36
+ },
37
+ {
38
+ id: 3,
39
+ label: 'Cookies',
40
+ href: 'https://www.sodexobeneficios.com.br/politica-de-cookies/'
41
+ },
42
+ {
43
+ id: 4,
44
+ label: 'Prevenção Fraudes',
45
+ href: 'https://www.sodexobeneficios.com.br/seguranca-digital/'
46
+ },
47
+ {
48
+ id: 5,
49
+ label: 'Segurança Informação',
50
+ href: 'https://www.sodexobeneficios.com.br/politica-de-seguranca-da-informacao/'
51
+ }
32
52
  ]
33
53
  },
34
54
  [CountryCodes.COLOMBIA]: {
@@ -36,10 +56,22 @@ export const FooterPluxee = ({ data, country, version, surpressYear }) => {
36
56
  version: 'Versión',
37
57
  companyName: 'Pluxee',
38
58
  links: [
39
- { id: 6, label: 'Privacidad', href: 'https://www.sodexo.co/politicas-de-privacidad/' },
40
- { id: 7, label: 'Términos uso', href: 'https://www.sodexo.co/terminos-de-uso/' },
59
+ {
60
+ id: 6,
61
+ label: 'Privacidad',
62
+ href: 'https://www.sodexo.co/politicas-de-privacidad/'
63
+ },
64
+ {
65
+ id: 7,
66
+ label: 'Términos uso',
67
+ href: 'https://www.sodexo.co/terminos-de-uso/'
68
+ },
41
69
  { id: 9, label: 'Cookies', href: 'https://www.sodexo.co/cookies/' },
42
- { id: 8, label: 'Seguridad Información', href: 'https://www.sodexo.co/politica-uso-datos/' }
70
+ {
71
+ id: 8,
72
+ label: 'Seguridad Información',
73
+ href: 'https://www.sodexo.co/politica-uso-datos/'
74
+ }
43
75
  ]
44
76
  },
45
77
  [CountryCodes.MEXICO]: {
@@ -47,25 +79,47 @@ export const FooterPluxee = ({ data, country, version, surpressYear }) => {
47
79
  version: 'Versión',
48
80
  companyName: 'Pluxee',
49
81
  links: [
50
- { id: 9, label: 'Privacidad', href: 'https://www.sodexo.com.mx/privacidad/' },
51
- { id: 10, label: 'Términos uso', href: 'https://www.sodexo.com.mx/privacidad/uso-de-marca/' },
52
- { id: 11, label: 'Cookies', href: 'https://www.sodexo.com.mx/politica-de-cookies/' },
53
- { id: 12, label: 'Seguridad Información', href: 'https://www.sodexo.com.mx/politica-del-sistema-de-gestion-de-seguridad-de-la-informacion/' }
82
+ {
83
+ id: 9,
84
+ label: 'Privacidad',
85
+ href: 'https://www.sodexo.com.mx/privacidad/'
86
+ },
87
+ {
88
+ id: 10,
89
+ label: 'Términos uso',
90
+ href: 'https://www.sodexo.com.mx/privacidad/uso-de-marca/'
91
+ },
92
+ {
93
+ id: 11,
94
+ label: 'Cookies',
95
+ href: 'https://www.sodexo.com.mx/politica-de-cookies/'
96
+ },
97
+ {
98
+ id: 12,
99
+ label: 'Seguridad Información',
100
+ href: 'https://www.sodexo.com.mx/politica-del-sistema-de-gestion-de-seguridad-de-la-informacion/'
101
+ }
54
102
  ]
55
103
  }
56
104
  };
57
- return country ? (_a = links === null || links === void 0 ? void 0 : links[country]) !== null && _a !== void 0 ? _a : links === null || links === void 0 ? void 0 : links[CountryCodes.BRAZIL] : links === null || links === void 0 ? void 0 : links[CountryCodes.BRAZIL];
105
+ return country
106
+ ? (_a = links === null || links === void 0 ? void 0 : links[country]) !== null && _a !== void 0 ? _a : links === null || links === void 0 ? void 0 : links[CountryCodes.BRAZIL]
107
+ : links === null || links === void 0 ? void 0 : links[CountryCodes.BRAZIL];
58
108
  }, [data, country]);
59
109
  return (React.createElement("footer", { className: "footer-pluxee" },
60
110
  React.createElement("div", { className: "footer-pluxee-container" },
61
111
  React.createElement("nav", null,
62
- React.createElement("ul", null, (_a = countryInformation === null || countryInformation === void 0 ? void 0 : countryInformation.links) === null || _a === void 0 ? void 0 : _a.map(({ id, label, href }) => (React.createElement("li", { key: `external-link-${id}` },
63
- React.createElement("a", { href: href }, label)))))),
112
+ React.createElement("ul", null, (_a = countryInformation === null || countryInformation === void 0 ? void 0 : countryInformation.links) === null || _a === void 0 ? void 0 : _a.map(({ id, label, href }) => {
113
+ return (React.createElement("li", { key: `external-link-${id}` },
114
+ React.createElement("a", { href: href, target: target, rel: "noreferrer" }, label)));
115
+ }))),
64
116
  React.createElement("span", null,
65
117
  "\u00A9",
66
118
  surpressYear ? '' : currentYear,
67
- " ",
68
- (countryInformation === null || countryInformation === void 0 ? void 0 : countryInformation.companyName) ? countryInformation === null || countryInformation === void 0 ? void 0 : countryInformation.companyName : 'Pluxee',
119
+ ' ',
120
+ (countryInformation === null || countryInformation === void 0 ? void 0 : countryInformation.companyName)
121
+ ? countryInformation === null || countryInformation === void 0 ? void 0 : countryInformation.companyName
122
+ : 'Pluxee',
69
123
  version ? ` - ${countryInformation === null || countryInformation === void 0 ? void 0 : countryInformation.version}: ${version}` : ''))));
70
124
  };
71
125
  FooterPluxee.displayName = 'FooterPluxee';
@@ -35,7 +35,7 @@ export declare const Layout: {
35
35
  displayName: string;
36
36
  };
37
37
  FooterPluxee: {
38
- ({ data, country, version, surpressYear }: import("./footer/footer-pluxee").FooterPluxeeProps): JSX.Element;
38
+ ({ data, country, version, surpressYear, target }: import("./footer/footer-pluxee").FooterPluxeeProps): JSX.Element;
39
39
  displayName: string;
40
40
  };
41
41
  };
@@ -10,7 +10,7 @@ class UriHelper {
10
10
  if (value === undefined) {
11
11
  return '';
12
12
  }
13
- return key + '=' + value;
13
+ return key + '=' + encodeURIComponent(value);
14
14
  }).filter(x => x.length > 0).join('&');
15
15
  }
16
16
  parse(search) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dilicorp/ui",
3
- "version": "0.2.49",
3
+ "version": "0.2.51",
4
4
  "description": "A simple UI design for Dilicorp",
5
5
  "repository": {
6
6
  "type": "git",