@npm_leadtech/legal-lib-components 5.64.10 → 5.64.11

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
+ import React from 'react';
2
+ export declare const CAFlag: React.FC;
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ export const CAFlag = () => {
3
+ return (_jsxs("svg", { width: '21', height: '16', viewBox: '0 0 21 16', fill: 'none', xmlns: 'http://www.w3.org/2000/svg', children: [_jsxs("g", { id: 'Flag', children: [_jsxs("g", { clipPath: 'url(#clip0_1667_1471)', children: [_jsx("mask", { id: 'path-1-inside-1_1667_1471', fill: 'white', children: _jsx("path", { d: 'M0 2.5C0 1.39543 0.895431 0.5 2 0.5H19C20.1046 0.5 21 1.39543 21 2.5V13.5C21 14.6046 20.1046 15.5 19 15.5H2C0.89543 15.5 0 14.6046 0 13.5V2.5Z' }) }), _jsx("path", { id: 'Vector', d: 'M4.92516 0.5H16.0716V15.5H4.92188L4.92516 0.5Z', fill: 'white' }), _jsx("path", { id: 'Vector_2', d: 'M-0.646484 0.5H4.92508V15.5H-0.646484V0.5ZM16.0715 0.5H21.643V15.5H16.0748L16.0715 0.5ZM6.59523 7.75L6.15883 7.8875L8.17352 9.575C8.32774 10.0031 8.12102 10.1312 7.98977 10.3562L10.1751 10.0938L10.1226 12.1875L10.5787 12.1781L10.477 10.0969L12.6655 10.3469C12.531 10.075 12.4096 9.93125 12.5343 9.49687L14.5457 7.90312L14.1946 7.77812C13.9059 7.56562 14.3193 6.75938 14.3784 6.25C14.3784 6.25 13.207 6.63438 13.1315 6.43125L12.8296 5.88438L11.7599 7.00313C11.6451 7.03125 11.5959 6.9875 11.5663 6.89375L12.0585 4.55625L11.2776 4.975C11.2076 5.00208 11.1507 4.97917 11.107 4.90625L10.3523 3.46875L9.57789 4.9625C9.51664 5.01458 9.46195 5.02187 9.41383 4.98438L8.66242 4.5875L9.11195 6.90312C9.07586 6.99687 8.99055 7.02188 8.89211 6.97188L7.86836 5.86875C7.73711 6.07188 7.64524 6.40313 7.46805 6.47813C7.29086 6.55312 6.69695 6.3375 6.29992 6.25938C6.43773 6.72188 6.85773 7.49687 6.59523 7.75Z', fill: '#D52B1E' })] }), _jsx("path", { d: 'M0 2.5C0 1.28497 0.984974 0.3 2.2 0.3H18.8C20.015 0.3 21 1.28497 21 2.5C21 1.50589 20.1046 0.7 19 0.7H2C0.895431 0.7 0 1.50589 0 2.5ZM21 13.5C21 14.715 20.015 15.7 18.8 15.7H2.2C0.984974 15.7 0 14.715 0 13.5C0 14.4941 0.895431 15.3 2 15.3H19C20.1046 15.3 21 14.4941 21 13.5ZM0 15.5V0.5V15.5ZM21 0.5V15.5V0.5Z', fill: '#DBE1E5', mask: 'url(#path-1-inside-1_1667_1471)' })] }), _jsx("defs", { children: _jsx("clipPath", { id: 'clip0_1667_1471', children: _jsx("path", { d: 'M0 2.5C0 1.39543 0.895431 0.5 2 0.5H19C20.1046 0.5 21 1.39543 21 2.5V13.5C21 14.6046 20.1046 15.5 19 15.5H2C0.89543 15.5 0 14.6046 0 13.5V2.5Z', fill: 'white' }) }) })] }));
4
+ };
@@ -0,0 +1,34 @@
1
+ import React from 'react'
2
+
3
+ export const CAFlag: React.FC = () => {
4
+ return (
5
+ <svg width='21' height='16' viewBox='0 0 21 16' fill='none' xmlns='http://www.w3.org/2000/svg'>
6
+ <g id='Flag'>
7
+ <g clipPath='url(#clip0_1667_1471)'>
8
+ <mask id='path-1-inside-1_1667_1471' fill='white'>
9
+ <path d='M0 2.5C0 1.39543 0.895431 0.5 2 0.5H19C20.1046 0.5 21 1.39543 21 2.5V13.5C21 14.6046 20.1046 15.5 19 15.5H2C0.89543 15.5 0 14.6046 0 13.5V2.5Z' />
10
+ </mask>
11
+ <path id='Vector' d='M4.92516 0.5H16.0716V15.5H4.92188L4.92516 0.5Z' fill='white' />
12
+ <path
13
+ id='Vector_2'
14
+ d='M-0.646484 0.5H4.92508V15.5H-0.646484V0.5ZM16.0715 0.5H21.643V15.5H16.0748L16.0715 0.5ZM6.59523 7.75L6.15883 7.8875L8.17352 9.575C8.32774 10.0031 8.12102 10.1312 7.98977 10.3562L10.1751 10.0938L10.1226 12.1875L10.5787 12.1781L10.477 10.0969L12.6655 10.3469C12.531 10.075 12.4096 9.93125 12.5343 9.49687L14.5457 7.90312L14.1946 7.77812C13.9059 7.56562 14.3193 6.75938 14.3784 6.25C14.3784 6.25 13.207 6.63438 13.1315 6.43125L12.8296 5.88438L11.7599 7.00313C11.6451 7.03125 11.5959 6.9875 11.5663 6.89375L12.0585 4.55625L11.2776 4.975C11.2076 5.00208 11.1507 4.97917 11.107 4.90625L10.3523 3.46875L9.57789 4.9625C9.51664 5.01458 9.46195 5.02187 9.41383 4.98438L8.66242 4.5875L9.11195 6.90312C9.07586 6.99687 8.99055 7.02188 8.89211 6.97188L7.86836 5.86875C7.73711 6.07188 7.64524 6.40313 7.46805 6.47813C7.29086 6.55312 6.69695 6.3375 6.29992 6.25938C6.43773 6.72188 6.85773 7.49687 6.59523 7.75Z'
15
+ fill='#D52B1E'
16
+ />
17
+ </g>
18
+ <path
19
+ d='M0 2.5C0 1.28497 0.984974 0.3 2.2 0.3H18.8C20.015 0.3 21 1.28497 21 2.5C21 1.50589 20.1046 0.7 19 0.7H2C0.895431 0.7 0 1.50589 0 2.5ZM21 13.5C21 14.715 20.015 15.7 18.8 15.7H2.2C0.984974 15.7 0 14.715 0 13.5C0 14.4941 0.895431 15.3 2 15.3H19C20.1046 15.3 21 14.4941 21 13.5ZM0 15.5V0.5V15.5ZM21 0.5V15.5V0.5Z'
20
+ fill='#DBE1E5'
21
+ mask='url(#path-1-inside-1_1667_1471)'
22
+ />
23
+ </g>
24
+ <defs>
25
+ <clipPath id='clip0_1667_1471'>
26
+ <path
27
+ d='M0 2.5C0 1.39543 0.895431 0.5 2 0.5H19C20.1046 0.5 21 1.39543 21 2.5V13.5C21 14.6046 20.1046 15.5 19 15.5H2C0.89543 15.5 0 14.6046 0 13.5V2.5Z'
28
+ fill='white'
29
+ />
30
+ </clipPath>
31
+ </defs>
32
+ </svg>
33
+ )
34
+ }
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const DEFlag: React.FC;
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ export const DEFlag = () => {
3
+ return (_jsxs("svg", { width: '21', height: '16', viewBox: '0 0 21 16', fill: 'none', xmlns: 'http://www.w3.org/2000/svg', children: [_jsx("g", { id: 'Flag', children: _jsxs("g", { clipPath: 'url(#clip0_1607_4659)', children: [_jsx("path", { id: 'Vector', d: 'M0 10.5H21V15.5H0V10.5Z', fill: '#FFCC00' }), _jsx("path", { id: 'Vector_2', d: 'M0 0.5H21V5.5H0V0.5Z', fill: '#000001' }), _jsx("path", { id: 'Vector_3', d: 'M0 5.5H21V10.5H0V5.5Z', fill: '#FF0000' })] }) }), _jsx("defs", { children: _jsx("clipPath", { id: 'clip0_1607_4659', children: _jsx("rect", { y: '0.5', width: '21', height: '15', rx: '2', fill: 'white' }) }) })] }));
4
+ };
@@ -0,0 +1,20 @@
1
+ import React from 'react'
2
+
3
+ export const DEFlag: React.FC = () => {
4
+ return (
5
+ <svg width='21' height='16' viewBox='0 0 21 16' fill='none' xmlns='http://www.w3.org/2000/svg'>
6
+ <g id='Flag'>
7
+ <g clipPath='url(#clip0_1607_4659)'>
8
+ <path id='Vector' d='M0 10.5H21V15.5H0V10.5Z' fill='#FFCC00' />
9
+ <path id='Vector_2' d='M0 0.5H21V5.5H0V0.5Z' fill='#000001' />
10
+ <path id='Vector_3' d='M0 5.5H21V10.5H0V5.5Z' fill='#FF0000' />
11
+ </g>
12
+ </g>
13
+ <defs>
14
+ <clipPath id='clip0_1607_4659'>
15
+ <rect y='0.5' width='21' height='15' rx='2' fill='white' />
16
+ </clipPath>
17
+ </defs>
18
+ </svg>
19
+ )
20
+ }
@@ -1,11 +1,15 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import React from 'react';
3
+ import { CAFlag } from '../../../../images/componentsSvg/flags/CAFlag';
4
+ import { DEFlag } from '../../../../images/componentsSvg/flags/DEFlag';
3
5
  import { GBFlag } from '../../../../images/componentsSvg/flags/GBFlag';
4
6
  import { USFlag } from '../../../../images/componentsSvg/flags/USFlag';
5
7
  export const useLanguagesSelector = (languages) => {
6
8
  const flags = new Map([
7
9
  ['en-US', _jsx(USFlag, {}, 'us-flag')],
8
- ['en-GB', _jsx(GBFlag, {}, 'gb-flag')]
10
+ ['en-GB', _jsx(GBFlag, {}, 'gb-flag')],
11
+ ['en-CA', _jsx(CAFlag, {}, 'ca-flag')],
12
+ ['de-DE', _jsx(DEFlag, {}, 'de-flag')]
9
13
  ]);
10
14
  const initSelector = () => {
11
15
  if (languages.length === 0)
@@ -1,5 +1,7 @@
1
1
  import React from 'react'
2
2
 
3
+ import { CAFlag } from '../../../../images/componentsSvg/flags/CAFlag'
4
+ import { DEFlag } from '../../../../images/componentsSvg/flags/DEFlag'
3
5
  import { GBFlag } from '../../../../images/componentsSvg/flags/GBFlag'
4
6
  import { type LenguageSelectorItem } from './LenguageSelectorItem'
5
7
  import { USFlag } from '../../../../images/componentsSvg/flags/USFlag'
@@ -9,7 +11,9 @@ export const useLanguagesSelector = (
9
11
  ): { languagesSelector: LenguageSelectorItem[] } => {
10
12
  const flags = new Map<string, React.ReactNode>([
11
13
  ['en-US', <USFlag key='us-flag' />],
12
- ['en-GB', <GBFlag key='gb-flag' />]
14
+ ['en-GB', <GBFlag key='gb-flag' />],
15
+ ['en-CA', <CAFlag key='ca-flag' />],
16
+ ['de-DE', <DEFlag key='de-flag' />]
13
17
  ])
14
18
 
15
19
  const initSelector = (): LenguageSelectorItem[] => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "5.64.10",
3
+ "version": "5.64.11",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -10,7 +10,7 @@
10
10
  "ts-types": "tsc --build tsconfig.build.json",
11
11
  "build": "rimraf dist && node esbuild --bundle --tsconfig=tsconfig.build.json && npm run ts-types",
12
12
  "reinstall-force": "rm -Rf node_modules && yarn",
13
- "prepare-upgrade": "yarn reinstall-force && yarn build && git add . && git commit -m \"$MSG\" --allow-empty && npm config set tag-version-prefix ''",
13
+ "prepare-upgrade": "yarn reinstall-force && yarn build && yarn chromatic && git add . && git commit -m \"$MSG\" --allow-empty && npm config set tag-version-prefix ''",
14
14
  "upgrade-patch": "yarn prepare-upgrade && npm version patch -m \"Update patch version number\" && git push && git push --tags",
15
15
  "upgrade-minor": "yarn prepare-upgrade && npm version minor -m \"Update minor version number\" && git push && git push --tags",
16
16
  "upgrade-major": "yarn prepare-upgrade && npm version major -m \"Update major version number\" && git push && git push --tags",