@nuskin/foundation-ui-components 1.0.0-cft-35.3 → 1.0.0-cft-35.5
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/CHANGELOG.md +25 -0
- package/package.json +7 -2
- package/src/common/brand-components/Brand.stories.tsx +10 -10
- package/src/common/brand-components/BrandComponent.spec.tsx +48 -0
- package/src/common/brand-components/BrandComponent.tsx +25 -27
- package/src/common/brand-components/BrandContanier.styled.tsx +1 -1
- package/src/common/brand-components/icons/Logo.spec.tsx +84 -0
- package/src/common/brand-components/icons/NSLogoHorizontal.tsx +57 -57
- package/src/common/brand-components/icons/NSLogoMark.tsx +1 -1
- package/src/common/brand-components/icons/NSLogoPoweredBy.tsx +94 -94
- package/src/common/brand-components/icons/NSLogoStacked.tsx +48 -48
- package/src/common/brand-components/icons/NSWordMark.tsx +51 -51
- package/src/common/brand-components/index.ts +1 -1
- package/src/common/brand-components/types.d.ts +2 -0
- package/src/common/button/Button.spec.tsx +21 -35
- package/src/common/button/Button.stories.tsx +23 -30
- package/src/common/button/Button.styled.tsx +30 -18
- package/src/common/button/Button.tsx +7 -8
- package/src/common/button/index.ts +2 -2
- package/src/common/button/types.d.ts +13 -14
- package/src/common/card/NsBgCard.tsx +24 -0
- package/src/common/card/NsBrandLogo.tsx +16 -0
- package/src/common/card/NsBrandProductCard.tsx +47 -0
- package/src/common/card/NsBrandWrapper.tsx +26 -0
- package/src/common/card/index.ts +4 -0
- package/src/common/card/stories/NsBgCard.stories.tsx +19 -0
- package/src/common/card/stories/NsBrandProductCard.stories.tsx +18 -0
- package/src/common/card/stories/data.js +67 -0
- package/src/common/card/tests/BrandLogo.spec.tsx +13 -0
- package/src/common/card/tests/NsBgCard.spec.tsx +23 -0
- package/src/common/card/tests/NsBrandProductCard.spec.tsx +32 -0
- package/src/common/checkbox/NsCheckbox.spec.tsx +3 -3
- package/src/common/checkbox/NsCheckbox.stories.tsx +11 -18
- package/src/common/checkbox/NsCheckbox.styled.tsx +12 -10
- package/src/common/checkbox/index.ts +2 -1
- package/src/common/checkbox/types.d.ts +2 -5
- package/src/common/common.types.ts +6 -2
- package/src/common/flag/NsFlag.spec.tsx +9 -15
- package/src/common/flag/NsFlag.stories.tsx +7 -12
- package/src/common/flag/NsFlag.styled.tsx +32 -33
- package/src/common/flag/NsFlag.tsx +6 -12
- package/src/common/flag/index.ts +2 -3
- package/src/common/flag/types.d.ts +3 -3
- package/src/common/index.ts +20 -3
- package/src/common/link/NsLink.spec.tsx +4 -4
- package/src/common/link/NsLink.stories.tsx +14 -16
- package/src/common/link/NsLink.styled.tsx +19 -13
- package/src/common/link/NsLink.tsx +7 -27
- package/src/common/link/index.ts +2 -1
- package/src/common/nav-product-card/NsNavProductCard.spec.tsx +22 -14
- package/src/common/nav-product-card/NsNavProductCard.stories.tsx +15 -19
- package/src/common/nav-product-card/NsNavProductCard.styled.tsx +19 -19
- package/src/common/nav-product-card/NsNavProductCard.tsx +22 -29
- package/src/common/nav-product-card/index.ts +2 -3
- package/src/common/nav-product-card/types.d.ts +3 -1
- package/src/common/nav-tab/NsNavTab.spec.tsx +61 -71
- package/src/common/nav-tab/NsNavTab.stories.tsx +28 -34
- package/src/common/nav-tab/NsNavTab.styled.tsx +52 -52
- package/src/common/nav-tab/NsNavTab.tsx +85 -100
- package/src/common/nav-tab/index.ts +1 -1
- package/src/common/nav-tab/types.d.ts +7 -5
- package/src/common/search-bar/NsSeachBar.spec.tsx +7 -7
- package/src/common/search-bar/NsSearchBar.tsx +28 -31
- package/src/common/slick/CarousalControl.tsx +44 -0
- package/src/common/slick/IconWrapper.tsx +32 -0
- package/src/common/slick/LeftChevron.tsx +34 -0
- package/src/common/slick/NsCarousal.tsx +51 -0
- package/src/common/slick/RenderBrand.tsx +18 -0
- package/src/common/slick/RightChevron.tsx +36 -0
- package/src/common/slick/index.ts +2 -0
- package/src/common/slick/slickSetting.ts +61 -0
- package/src/common/slick/stories/NSCarousal.stories.tsx +21 -0
- package/src/common/slick/tests/Chevron.spec.tsx +10 -0
- package/src/common/slick/tests/NsCarousal.spec.tsx +106 -0
- package/src/common/slick/tests/RenderBrand.spec.tsx +22 -0
- package/src/common/typography/Typography.spec.tsx +34 -0
- package/src/common/typography/Typography.stories.tsx +13 -18
- package/src/common/typography/Typography.styled.tsx +35 -38
- package/src/common/typography/Typography.tsx +28 -24
- package/src/common/typography/index.ts +2 -2
- package/src/common/typography/types.d.ts +22 -19
- package/src/common/brand-components/BrandComponent.test.tsx +0 -46
- package/src/common/brand-components/icons/Logo.test.tsx +0 -84
- package/src/common/typography/Typography.test.tsx +0 -23
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
# [1.0.0-cft-35.5](https://code.tls.nuskin.io/ns-am/content-foundation/foundation-ui-components/compare/v1.0.0-cft-35.4...v1.0.0-cft-35.5) (2023-03-29)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Fix
|
|
5
|
+
|
|
6
|
+
* Lint fixed ([929112c](https://code.tls.nuskin.io/ns-am/content-foundation/foundation-ui-components/commit/929112ce66e5e5e86dcf3a64ee50288cfe244e27))
|
|
7
|
+
|
|
8
|
+
### New
|
|
9
|
+
|
|
10
|
+
* adding card component for showing brands ([e5aad64](https://code.tls.nuskin.io/ns-am/content-foundation/foundation-ui-components/commit/e5aad64b0704f0054028d0eacc0ce603bbb814e4))
|
|
11
|
+
* Brand and Live Tag ([4913a03](https://code.tls.nuskin.io/ns-am/content-foundation/foundation-ui-components/commit/4913a031130fc28b3259038e6ab87d487690ac63))
|
|
12
|
+
|
|
13
|
+
# [1.0.0-cft-35.4](https://code.tls.nuskin.io/ns-am/content-foundation/foundation-ui-components/compare/v1.0.0-cft-35.3...v1.0.0-cft-35.4) (2023-03-28)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Fix
|
|
17
|
+
|
|
18
|
+
* add eslint and prettier ([7ebcd42](https://code.tls.nuskin.io/ns-am/content-foundation/foundation-ui-components/commit/7ebcd429e1f2696173db7786fe799e942cf2c907))
|
|
19
|
+
* nslink typography story book update ([8d75d1b](https://code.tls.nuskin.io/ns-am/content-foundation/foundation-ui-components/commit/8d75d1b44fe343065ad52ca3ec0f405c5b547c30))
|
|
20
|
+
* text underline issue ([4010c89](https://code.tls.nuskin.io/ns-am/content-foundation/foundation-ui-components/commit/4010c892f0e5a141de59e1b65b633bd7cb8a4ab9))
|
|
21
|
+
|
|
22
|
+
### New
|
|
23
|
+
|
|
24
|
+
* Changed Export methods and refactor #CFT-71 ([f3a7f6b](https://code.tls.nuskin.io/ns-am/content-foundation/foundation-ui-components/commit/f3a7f6bee7d75e7a7f9c7eb4a799e74d710963e1)), closes [#CFT-71](https://code.tls.nuskin.io/ns-am/content-foundation/foundation-ui-components/issues/CFT-71)
|
|
25
|
+
|
|
1
26
|
# [1.0.0-cft-35.3](https://code.tls.nuskin.io/ns-am/content-foundation/foundation-ui-components/compare/v1.0.0-cft-35.2...v1.0.0-cft-35.3) (2023-03-27)
|
|
2
27
|
|
|
3
28
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuskin/foundation-ui-components",
|
|
3
|
-
"version": "1.0.0-cft-35.
|
|
3
|
+
"version": "1.0.0-cft-35.5",
|
|
4
4
|
"description": "It is a foundation library written in react, that provides commom components to all UI pages",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "src/common/index.ts",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"build": "next build",
|
|
28
28
|
"start": "next start",
|
|
29
29
|
"lint": "next lint",
|
|
30
|
-
"storybook": "start-storybook -p
|
|
30
|
+
"storybook": "start-storybook -p 6007",
|
|
31
31
|
"test": "jest",
|
|
32
32
|
"test:coverage": "yarn test --coverage",
|
|
33
33
|
"test:watch": "jest --watch",
|
|
@@ -45,6 +45,9 @@
|
|
|
45
45
|
"next": "13.2.4",
|
|
46
46
|
"react": "18.2.0",
|
|
47
47
|
"react-dom": "18.2.0",
|
|
48
|
+
"react-material-ui-carousel": "^3.4.2",
|
|
49
|
+
"react-slick": "^0.29.0",
|
|
50
|
+
"slick-carousel": "^1.8.1",
|
|
48
51
|
"typescript": "4.9.5"
|
|
49
52
|
},
|
|
50
53
|
"devDependencies": {
|
|
@@ -53,6 +56,7 @@
|
|
|
53
56
|
"@babel/preset-react": "^7.18.6",
|
|
54
57
|
"@babel/preset-typescript": "^7.21.0",
|
|
55
58
|
"@emotion/jest": "^11.10.5",
|
|
59
|
+
"@nuskin/eslint-config": "^1.0.0-setup.1",
|
|
56
60
|
"@storybook/addon-actions": "^6.5.16",
|
|
57
61
|
"@storybook/addon-essentials": "^6.5.16",
|
|
58
62
|
"@storybook/addon-interactions": "^6.5.16",
|
|
@@ -67,6 +71,7 @@
|
|
|
67
71
|
"@types/node": "18.15.0",
|
|
68
72
|
"@types/react": "18.0.28",
|
|
69
73
|
"@types/react-dom": "18.0.11",
|
|
74
|
+
"@types/react-slick": "^0.23.10",
|
|
70
75
|
"@types/react-test-renderer": "^18.0.0",
|
|
71
76
|
"@types/testing-library__jest-dom": "^5.14.5",
|
|
72
77
|
"babel-jest": "^29.5.0",
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { ComponentStory, ComponentMeta } from
|
|
3
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
|
+
import BrandComponent from './BrandComponent';
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
|
-
title:
|
|
6
|
+
title: 'Components/Brand',
|
|
7
7
|
component: BrandComponent,
|
|
8
8
|
decorators: [
|
|
9
9
|
(story) => (
|
|
10
|
-
<div style={{ textAlign:
|
|
10
|
+
<div style={{ textAlign: 'center', marginTop: '20px' }}>{story()}</div>
|
|
11
11
|
),
|
|
12
12
|
],
|
|
13
13
|
argTypes: {
|
|
14
|
-
size: { control:
|
|
14
|
+
size: { control: 'text', defaultValue: '100px' },
|
|
15
15
|
variant: {
|
|
16
|
-
control:
|
|
17
|
-
options: [
|
|
16
|
+
control: 'select',
|
|
17
|
+
options: ['stacked', 'horizontal', 'logomark', 'wordmark', 'poweredBy'],
|
|
18
18
|
},
|
|
19
19
|
},
|
|
20
20
|
args: {
|
|
21
|
-
size:
|
|
22
|
-
variant:
|
|
21
|
+
size: '100px',
|
|
22
|
+
variant: 'stacked',
|
|
23
23
|
},
|
|
24
24
|
} as ComponentMeta<typeof BrandComponent>;
|
|
25
25
|
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import BrandComponent from './BrandComponent';
|
|
2
|
+
import { render } from '@testing-library/react';
|
|
3
|
+
|
|
4
|
+
describe('checking brand component', () => {
|
|
5
|
+
it('1. should render BrandComponent with stacked variant', () => {
|
|
6
|
+
const { getByTestId } = render(<BrandComponent variant="stacked" />);
|
|
7
|
+
const svg = getByTestId('logo');
|
|
8
|
+
const paths = svg.querySelectorAll('path');
|
|
9
|
+
expect(paths.length).toBe(8);
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
it('2. should render BrandComponent having variant wordmark', () => {
|
|
13
|
+
const { getByTestId } = render(<BrandComponent variant="wordmark" />);
|
|
14
|
+
const svg = getByTestId('logo');
|
|
15
|
+
const paths = svg.querySelectorAll('path');
|
|
16
|
+
expect(paths.length).toBe(7);
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
it('3. should render BrandComponent having variant horizontal', () => {
|
|
20
|
+
const { getByTestId } = render(<BrandComponent variant="horizontal" />);
|
|
21
|
+
const svg = getByTestId('logo');
|
|
22
|
+
const paths = svg.querySelectorAll('path');
|
|
23
|
+
expect(paths.length).toBe(8);
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
it('4. should render BrandComponent having variant logomark', () => {
|
|
27
|
+
const { getByTestId } = render(<BrandComponent variant="logomark" />);
|
|
28
|
+
const svg = getByTestId('logo');
|
|
29
|
+
const paths = svg.querySelectorAll('path');
|
|
30
|
+
expect(paths.length).toBe(5);
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
it('5. should render BrandComponent having powered variant', () => {
|
|
34
|
+
const { getByTestId } = render(<BrandComponent variant="poweredBy" />);
|
|
35
|
+
const svg = getByTestId('logo');
|
|
36
|
+
const paths = svg.querySelectorAll('path');
|
|
37
|
+
expect(paths.length).toBe(17);
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
/*
|
|
41
|
+
xit('6. should render BrandComponent with dummy variant', () => {
|
|
42
|
+
const { getByTestId } = render(<BrandComponent variant="dummy" />);
|
|
43
|
+
const svg = getByTestId('logo');
|
|
44
|
+
const paths = svg.querySelectorAll('path');
|
|
45
|
+
expect(paths.length).toBe(8);
|
|
46
|
+
});
|
|
47
|
+
*/
|
|
48
|
+
});
|
|
@@ -1,29 +1,27 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
import NSLogoHorizontal from
|
|
3
|
-
import NSLogoMark from
|
|
4
|
-
import NSLogoPoweredBy from
|
|
5
|
-
import NSLogoStacked from
|
|
6
|
-
import NSLogoWordMark from
|
|
7
|
-
import LogoContainer from
|
|
8
|
-
import { BrandComponentProps } from
|
|
1
|
+
import React, { PropsWithChildren, useCallback } from 'react';
|
|
2
|
+
import NSLogoHorizontal from './icons/NSLogoHorizontal';
|
|
3
|
+
import NSLogoMark from './icons/NSLogoMark';
|
|
4
|
+
import NSLogoPoweredBy from './icons/NSLogoPoweredBy';
|
|
5
|
+
import NSLogoStacked from './icons/NSLogoStacked';
|
|
6
|
+
import NSLogoWordMark from './icons/NSWordMark';
|
|
7
|
+
import LogoContainer from './BrandContanier.styled';
|
|
8
|
+
import { BrandComponentProps } from './types';
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
case "horizontal":
|
|
17
|
-
return <NSLogoHorizontal color="primary" />;
|
|
18
|
-
case "wordmark":
|
|
19
|
-
return <NSLogoWordMark color="primary" />;
|
|
20
|
-
case "logomark":
|
|
21
|
-
return <NSLogoMark color="primary" />;
|
|
22
|
-
case "poweredBy":
|
|
23
|
-
return <NSLogoPoweredBy color="primary" />;
|
|
24
|
-
default:
|
|
25
|
-
return <NSLogoStacked color="primary" />;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
return <LogoContainer size={size}>{renderIcon()}</LogoContainer>;
|
|
10
|
+
const VariantMap = {
|
|
11
|
+
stacked: NSLogoStacked,
|
|
12
|
+
horizontal: NSLogoHorizontal,
|
|
13
|
+
wordmark: NSLogoWordMark,
|
|
14
|
+
logomark: NSLogoMark,
|
|
15
|
+
poweredBy: NSLogoPoweredBy,
|
|
29
16
|
};
|
|
17
|
+
|
|
18
|
+
const BrandComponent = (props: PropsWithChildren<BrandComponentProps>) => {
|
|
19
|
+
const { variant = 'stacked', size = '108px', color = 'primary' } = props;
|
|
20
|
+
const renderBrand = useCallback(() => {
|
|
21
|
+
const BrandComponent = VariantMap[variant || 'stacked'];
|
|
22
|
+
return <BrandComponent color={color as any} />;
|
|
23
|
+
}, [variant]);
|
|
24
|
+
return <LogoContainer size={size}>{renderBrand()}</LogoContainer>;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export default BrandComponent;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { render } from '@testing-library/react'
|
|
3
|
+
import NSWordMark from './NSWordMark'
|
|
4
|
+
import NSLogoHorizontal from './NSLogoHorizontal'
|
|
5
|
+
import NSLogoPoweredBy from './NSLogoPoweredBy'
|
|
6
|
+
import NSLogoStacked from './NSLogoStacked'
|
|
7
|
+
import NSLogoMark from './NSLogoMark'
|
|
8
|
+
describe('verifying logos', () => {
|
|
9
|
+
it('1. should render NSWordMark logo', () => {
|
|
10
|
+
const { getByTestId } = render(<NSWordMark color="primary" />)
|
|
11
|
+
|
|
12
|
+
const svg = getByTestId('logo')
|
|
13
|
+
|
|
14
|
+
expect(svg).toHaveAttribute('viewBox', '0 0 98 20')
|
|
15
|
+
expect(svg).toHaveAttribute('xmlns', 'http://www.w3.org/2000/svg')
|
|
16
|
+
|
|
17
|
+
const paths = svg.querySelectorAll('path')
|
|
18
|
+
expect(paths.length).toBe(7)
|
|
19
|
+
for (let i = 0; i < paths.length; i++) {
|
|
20
|
+
const path = paths[i]
|
|
21
|
+
expect(path).toHaveAttribute('fill', 'primary')
|
|
22
|
+
}
|
|
23
|
+
})
|
|
24
|
+
it('2. should render NSLogoHorizontal ', () => {
|
|
25
|
+
const { getByTestId } = render(<NSLogoHorizontal color="primary" />)
|
|
26
|
+
|
|
27
|
+
const svg = getByTestId('logo')
|
|
28
|
+
|
|
29
|
+
expect(svg).toHaveAttribute('viewBox', '0 0 135 30')
|
|
30
|
+
expect(svg).toHaveAttribute('xmlns', 'http://www.w3.org/2000/svg')
|
|
31
|
+
|
|
32
|
+
const paths = svg.querySelectorAll('path')
|
|
33
|
+
expect(paths.length).toBe(8)
|
|
34
|
+
for (let i = 0; i < paths.length; i++) {
|
|
35
|
+
const path = paths[i]
|
|
36
|
+
expect(path).toHaveAttribute('fill', 'primary')
|
|
37
|
+
}
|
|
38
|
+
})
|
|
39
|
+
it('3. should render NSLogoPoweredBy', () => {
|
|
40
|
+
const { getByTestId } = render(<NSLogoPoweredBy color="primary" />)
|
|
41
|
+
|
|
42
|
+
const svg = getByTestId('logo')
|
|
43
|
+
|
|
44
|
+
expect(svg).toHaveAttribute('viewBox', '0 0 100 38')
|
|
45
|
+
expect(svg).toHaveAttribute('xmlns', 'http://www.w3.org/2000/svg')
|
|
46
|
+
|
|
47
|
+
const paths = svg.querySelectorAll('path')
|
|
48
|
+
expect(paths.length).toBe(17)
|
|
49
|
+
for (let i = 0; i < paths.length; i++) {
|
|
50
|
+
const path = paths[i]
|
|
51
|
+
expect(path).toHaveAttribute('fill', 'primary')
|
|
52
|
+
}
|
|
53
|
+
})
|
|
54
|
+
it('4. should render NSLogoStacked', () => {
|
|
55
|
+
const { getByTestId } = render(<NSLogoStacked color="primary" />)
|
|
56
|
+
|
|
57
|
+
const svg = getByTestId('logo')
|
|
58
|
+
|
|
59
|
+
expect(svg).toHaveAttribute('viewBox', '0 0 155 108')
|
|
60
|
+
expect(svg).toHaveAttribute('xmlns', 'http://www.w3.org/2000/svg')
|
|
61
|
+
|
|
62
|
+
const paths = svg.querySelectorAll('path')
|
|
63
|
+
expect(paths.length).toBe(8)
|
|
64
|
+
for (let i = 0; i < paths.length; i++) {
|
|
65
|
+
const path = paths[i]
|
|
66
|
+
expect(path).toHaveAttribute('fill', 'primary')
|
|
67
|
+
}
|
|
68
|
+
})
|
|
69
|
+
it('5. should render the NSLogoMark', () => {
|
|
70
|
+
const { getByTestId } = render(<NSLogoMark color="primary" />)
|
|
71
|
+
|
|
72
|
+
const svg = getByTestId('logo')
|
|
73
|
+
|
|
74
|
+
expect(svg).toHaveAttribute('viewBox', '0 0 51 52')
|
|
75
|
+
expect(svg).toHaveAttribute('xmlns', 'http://www.w3.org/2000/svg')
|
|
76
|
+
|
|
77
|
+
const paths = svg.querySelectorAll('path')
|
|
78
|
+
expect(paths.length).toBe(5)
|
|
79
|
+
for (let i = 0; i < paths.length; i++) {
|
|
80
|
+
const path = paths[i]
|
|
81
|
+
expect(path).toHaveAttribute('fill', 'primary')
|
|
82
|
+
}
|
|
83
|
+
})
|
|
84
|
+
})
|
|
@@ -3,63 +3,63 @@
|
|
|
3
3
|
import { SvgIconProps, SvgIcon } from '@mui/material'
|
|
4
4
|
|
|
5
5
|
const NSLogoHorizontal = (props: SvgIconProps) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
6
|
+
return (
|
|
7
|
+
<SvgIcon
|
|
8
|
+
viewBox="0 0 135 30"
|
|
9
|
+
fill="none"
|
|
10
|
+
data-testid="logo"
|
|
11
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
+
{...props}>
|
|
13
|
+
<path
|
|
14
|
+
fillRule="evenodd"
|
|
15
|
+
clipRule="evenodd"
|
|
16
|
+
d="M133.439 23C132.607 23 131.905 23.7014 131.905 24.5C131.905 25.3004 132.607 26 133.439 26C134.349 26 135 25.3004 135 24.5C135 23.6516 134.349 23 133.439 23ZM133.439 25.8255C132.686 25.8255 132.06 25.1996 132.06 24.5C132.06 23.7765 132.686 23.1762 133.439 23.1762C134.219 23.1762 134.792 23.7765 134.792 24.5C134.792 25.1996 134.219 25.8255 133.439 25.8255ZM134.061 24.151C134.061 23.9766 133.959 23.6265 133.388 23.6265H132.892V25.3997H133.129V24.6252H133.518L133.854 25.3997H134.061L133.75 24.599C133.934 24.5751 134.061 24.3768 134.061 24.151ZM133.412 24.474H133.129V23.8248H133.464C133.698 23.8248 133.879 23.9014 133.879 24.151C133.879 24.3016 133.801 24.474 133.412 24.474Z"
|
|
17
|
+
fill={props.color}
|
|
18
|
+
/>
|
|
19
|
+
<path
|
|
20
|
+
fillRule="evenodd"
|
|
21
|
+
clipRule="evenodd"
|
|
22
|
+
d="M51.181 25L38.4365 9.34704V24.7232H37V6.07549L37.3395 6L49.9798 21.4768V6.27702H51.4421V24.9497L51.181 25Z"
|
|
23
|
+
fill={props.color}
|
|
24
|
+
/>
|
|
25
|
+
<path
|
|
26
|
+
fillRule="evenodd"
|
|
27
|
+
clipRule="evenodd"
|
|
28
|
+
d="M62.7499 25C58.2617 25 55.5685 22.4685 55.5685 17.9423V6H57.0471V17.9165C57.0471 21.7525 59.2912 23.696 62.7499 23.696C66.2087 23.696 68.5056 21.7014 68.5056 17.9165V6H70.0106V17.9423C70.0106 22.3406 67.1326 25 62.7499 25Z"
|
|
29
|
+
fill={props.color}
|
|
30
|
+
/>
|
|
31
|
+
<path
|
|
32
|
+
fillRule="evenodd"
|
|
33
|
+
clipRule="evenodd"
|
|
34
|
+
d="M83.781 25C81.7507 25 79.9289 24.3475 78.2632 23.2933L78.966 22.0636C80.5016 23.0674 82.1934 23.7201 83.9109 23.7201C86.4353 23.7201 88.1273 22.1637 88.1273 20.1307C88.1273 17.9973 86.644 17.0685 83.9371 15.889C80.9961 14.634 79.2002 13.3287 79.2002 10.794C79.2002 8.13339 81.5165 6 84.9257 6C86.5914 6 88.101 6.52701 89.2202 7.2548L88.5176 8.43455C87.5545 7.78181 86.2274 7.27989 84.7959 7.27989C82.2452 7.27989 80.6578 8.78589 80.6578 10.6934C80.6578 12.6762 82.2714 13.6299 84.5877 14.6593C87.8668 16.0898 89.6106 17.3197 89.6106 19.955C89.6106 22.967 87.008 25 83.781 25Z"
|
|
35
|
+
fill={props.color}
|
|
36
|
+
/>
|
|
37
|
+
<path
|
|
38
|
+
fillRule="evenodd"
|
|
39
|
+
clipRule="evenodd"
|
|
40
|
+
d="M104.227 25L95.1657 15.6169V25H93.7368V6H95.1657V14.8389L103.921 6H105.758L96.5441 15.2276L106.116 25H104.227Z"
|
|
41
|
+
fill={props.color}
|
|
42
|
+
/>
|
|
43
|
+
<path
|
|
44
|
+
fillRule="evenodd"
|
|
45
|
+
clipRule="evenodd"
|
|
46
|
+
d="M109.211 25H110.552V6H109.211V25Z"
|
|
47
|
+
fill={props.color}
|
|
48
|
+
/>
|
|
49
|
+
<path
|
|
50
|
+
fillRule="evenodd"
|
|
51
|
+
clipRule="evenodd"
|
|
52
|
+
d="M129.581 25L116.836 9.34704V24.7232H115.4V6.07549L115.74 6L128.379 21.4768V6.27702H129.842V24.9497L129.581 25Z"
|
|
53
|
+
fill={props.color}
|
|
54
|
+
/>
|
|
55
|
+
<path
|
|
56
|
+
fillRule="evenodd"
|
|
57
|
+
clipRule="evenodd"
|
|
58
|
+
d="M23.3312 7.73077C23.3312 7.73077 26.0255 7.59615 28.0509 9.84615C28.7197 10.5962 29.3694 11.5577 29.7325 12.9038C28.7771 5.63461 22.5669 0 15.0382 0C7.52865 0 1.29935 5.63462 0.324829 12.9231C0.687886 11.5769 1.33757 10.6154 2.00636 9.86538C4.05094 7.61538 6.7261 7.75 6.7261 7.75C13.414 8.09615 13.4522 14.8654 13.4522 14.8654V29.7885C13.758 29.8269 14.0828 29.8462 14.4076 29.8654V13.9038C14.4076 11.7308 13.7388 9.61539 12.2293 8.11539C10.8535 6.73077 9.07642 5.96154 7.20381 5.92308C8.00636 4.51923 9.11464 3.34615 10.4331 2.51923C11.828 1.65385 13.414 1.19231 15.0382 1.19231C16.6624 1.19231 18.2675 1.65385 19.6624 2.51923C20.9809 3.34615 22.0892 4.51923 22.8917 5.92308C21.0191 5.96154 19.2229 6.73077 17.8471 8.11539C16.3376 9.61539 15.6497 11.7308 15.6497 13.9038V29.8269C15.9745 29.8077 16.2802 29.7885 16.6051 29.75V14.8462C16.6051 14.8462 16.6433 8.07692 23.3312 7.73077ZM22.0892 16.3462C21.0764 16.9808 20.0255 18.2692 20.0255 20.9231V28.9808C23.0064 27.9038 25.5478 25.9038 27.3057 23.3077C28.4713 21.4038 28.5095 19.9038 28.2229 18.8077C27.8025 17.4038 26.5223 15.6538 23.9427 15.7885C23.9427 15.7885 22.9299 15.8077 22.0892 16.3462ZM23.4841 11.0385C25.4904 11.0385 26.828 11.5769 27.7261 12.2885C28.4522 12.9231 30.5923 15.1538 29.1783 19.3462C29.1592 16.3269 28.4522 15.25 27.6688 14.3462C25.9872 12.5192 23.7516 12.7308 23.7516 12.7308C21.0955 12.8077 19.8535 14.1346 19.2802 15.3462C18.7452 16.4231 18.7834 17.3846 18.7834 17.3846V29.3654C18.4777 29.4423 18.172 29.5192 17.8471 29.5769V16.0385C17.8471 11.0769 23.4841 11.0385 23.4841 11.0385ZM6.59234 11.0385C4.58598 11.0385 3.2484 11.5769 2.35031 12.2885C1.62419 12.9231 -0.515935 15.1538 0.878969 19.3462C0.898077 16.3269 1.60508 15.25 2.38852 14.3462C4.05094 12.5192 6.30572 12.7308 6.30572 12.7308C8.96177 12.8077 10.2038 14.1346 10.7771 15.3462C11.3121 16.4038 11.2739 17.3846 11.2739 17.3846V29.3654C11.5796 29.4423 11.9044 29.5192 12.2293 29.5769V16.0577C12.2484 11.0769 6.59234 11.0385 6.59234 11.0385ZM6.15285 15.7885C6.15285 15.7885 7.16559 15.8077 8.00636 16.3462C8.99999 16.9808 10.0701 18.2692 10.0701 20.9231V28.9808C7.08916 27.9038 4.54776 25.9038 2.7898 23.3077C1.6433 21.4038 1.58598 19.9038 1.8726 18.8077C2.27387 17.4038 3.55413 15.6346 6.15285 15.7885Z"
|
|
59
|
+
fill={props.color}
|
|
60
|
+
/>
|
|
61
|
+
</SvgIcon>
|
|
62
|
+
)
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
export default NSLogoHorizontal
|