@rango-dev/ui 0.28.2-next.7 → 0.28.2-next.8

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.
@@ -0,0 +1,2 @@
1
+ export declare const messages: any;
2
+ //# sourceMappingURL=pt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pt.d.ts","sourceRoot":"","sources":["../../../../translations/pt.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,KAA25b,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { FlagPropTypes } from './Flags.types';
2
+ import React from 'react';
3
+ export default function Portuguese(props: FlagPropTypes): React.JSX.Element;
4
+ //# sourceMappingURL=Portuguese.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Portuguese.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Flags/Portuguese.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,aAAa,qBA2BtD"}
@@ -1,7 +1,8 @@
1
1
  import English from './English';
2
2
  import French from './French';
3
3
  import Japanese from './Japanese';
4
+ import Portuguese from './Portuguese';
4
5
  import Spanish from './Spanish';
5
6
  export type { FlagPropTypes } from './Flags.types';
6
- export { English, Spanish, Japanese, French };
7
+ export { English, Spanish, Japanese, French, Portuguese };
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Flags/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Flags/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC"}
@@ -5,6 +5,7 @@ declare const messages: {
5
5
  es: any;
6
6
  ja: any;
7
7
  fr: any;
8
+ pt: any;
8
9
  };
9
10
  export type Language = keyof typeof messages;
10
11
  interface PropTypes {
@@ -1 +1 @@
1
- {"version":3,"file":"I18nManager.d.ts","sourceRoot":"","sources":["../../../../../../src/components/I18nManager/I18nManager.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI/C,OAAO,KAAgC,MAAM,OAAO,CAAC;AAcrD,QAAA,MAAM,QAAQ;;;;;CAKb,CAAC;AAIF,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,QAAQ,CAAC;AAC7C,UAAU,SAAS;IACjB,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED,iBAAS,WAAW,CAAC,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,qBAgBvD;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
1
+ {"version":3,"file":"I18nManager.d.ts","sourceRoot":"","sources":["../../../../../../src/components/I18nManager/I18nManager.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI/C,OAAO,KAAgC,MAAM,OAAO,CAAC;AAerD,QAAA,MAAM,QAAQ;;;;;;CAMb,CAAC;AAIF,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,QAAQ,CAAC;AAC7C,UAAU,SAAS;IACjB,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED,iBAAS,WAAW,CAAC,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,qBAgBvD;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rango-dev/ui",
3
- "version": "0.28.2-next.7",
3
+ "version": "0.28.2-next.8",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "source": "./src/index.ts",
@@ -0,0 +1,34 @@
1
+ import type { FlagPropTypes } from './Flags.types';
2
+
3
+ import React from 'react';
4
+
5
+ import { DEFAULT_SIZE } from './Flags.constants';
6
+
7
+ export default function Portuguese(props: FlagPropTypes) {
8
+ const { size = DEFAULT_SIZE } = props;
9
+
10
+ return (
11
+ <svg
12
+ width={size}
13
+ height={size}
14
+ xmlns="http://www.w3.org/2000/svg"
15
+ viewBox="0 0 512 512">
16
+ <mask id="a">
17
+ <circle cx="256" cy="256" r="256" fill="#fff" />
18
+ </mask>
19
+ <g mask="url(#a)">
20
+ <path fill="#6da544" d="M0 512h167l37.9-260.3L167 0H0z" />
21
+ <path fill="#d80027" d="M512 0H167v512h345z" />
22
+ <circle cx="167" cy="256" r="89" fill="#ffda44" />
23
+ <path
24
+ fill="#d80027"
25
+ d="M116.9 211.5V267a50 50 0 1 0 100.1 0v-55.6H117z"
26
+ />
27
+ <path
28
+ fill="#eee"
29
+ d="M167 283.8c-9.2 0-16.7-7.5-16.7-16.7V245h33.4v22c0 9.2-7.5 16.7-16.7 16.7z"
30
+ />
31
+ </g>
32
+ </svg>
33
+ );
34
+ }
@@ -1,8 +1,9 @@
1
1
  import English from './English';
2
2
  import French from './French';
3
3
  import Japanese from './Japanese';
4
+ import Portuguese from './Portuguese';
4
5
  import Spanish from './Spanish';
5
6
 
6
7
  export type { FlagPropTypes } from './Flags.types';
7
8
 
8
- export { English, Spanish, Japanese, French };
9
+ export { English, Spanish, Japanese, French, Portuguese };
@@ -15,12 +15,14 @@ import { messages as enMessages } from '../../../../../translations/en';
15
15
  import { messages as esMessages } from '../../../../../translations/es';
16
16
  import { messages as frMessages } from '../../../../../translations/fr';
17
17
  import { messages as jaMessages } from '../../../../../translations/ja';
18
+ import { messages as ptMessages } from '../../../../../translations/pt';
18
19
 
19
20
  const messages = {
20
21
  en: enMessages,
21
22
  es: esMessages,
22
23
  ja: jaMessages,
23
24
  fr: frMessages,
25
+ pt: ptMessages,
24
26
  };
25
27
 
26
28
  i18n.load(messages);