@janiscommerce/ui-native 1.20.0 → 1.20.1
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/dist/components/atoms/Svg/index.js +0 -2
- package/dist/components/atoms/Svg/svgs/JanisLogo/index.js +23 -3
- package/dist/ts/interfaces/svgs.d.ts +1 -1
- package/dist/ts/interfaces/svgs.js +0 -1
- package/package.json +1 -1
- package/dist/components/atoms/Svg/svgs/NewJanisLogo/index.d.ts +0 -4
- package/dist/components/atoms/Svg/svgs/NewJanisLogo/index.js +0 -29
|
@@ -7,7 +7,6 @@ import JanisLogo from './svgs/JanisLogo';
|
|
|
7
7
|
import JanisLogoColor from './svgs/JanisLogoColor';
|
|
8
8
|
import LoginIllustration from './svgs/LoginIllustration';
|
|
9
9
|
import NoNotifications from './svgs/NoNotifications';
|
|
10
|
-
import NewJanisLogo from './svgs/NewJanisLogo';
|
|
11
10
|
import { horizontalScale, moderateScale, scaledForDevice } from '../../../scale';
|
|
12
11
|
const svgs = {
|
|
13
12
|
'empty-illustration': EmptyIllustration,
|
|
@@ -16,7 +15,6 @@ const svgs = {
|
|
|
16
15
|
'janis-logo-color': JanisLogoColor,
|
|
17
16
|
'login-illustration': LoginIllustration,
|
|
18
17
|
'no-notifications': NoNotifications,
|
|
19
|
-
'new-janis-logo': NewJanisLogo,
|
|
20
18
|
};
|
|
21
19
|
const Svg = ({ name, width, height, size, ...props }) => {
|
|
22
20
|
if (!name || !svgsNames.includes(name)) {
|
|
@@ -1,9 +1,29 @@
|
|
|
1
|
-
import Svg, { Path } from 'react-native-svg';
|
|
1
|
+
import Svg, { Path, Defs, LinearGradient, Stop } from 'react-native-svg';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { View } from 'react-native';
|
|
4
4
|
const JanisLogo = ({ ...props }) => (<View {...props}>
|
|
5
|
-
<Svg width="
|
|
6
|
-
<Path
|
|
5
|
+
<Svg width="60" height="56" viewBox="0 0 60 56" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
|
|
6
|
+
<Path d="M34.58 37.8333L31.0014 41.3821C26.0518 46.2905 18.0148 46.2905 13.0652 41.3821L3.02961 31.4301C-0.403882 28.0252 -0.403884 22.4966 3.02961 19.0917L3.23893 18.8841C6.67242 15.4792 12.2475 15.4792 15.681 18.8841L34.58 37.6257C34.6378 37.6829 34.6378 37.776 34.58 37.8333Z" fill="url(#paint0_linear_27636_2339)"/>
|
|
7
|
+
<Path d="M31.9219 40.6336L44.2018 52.8112C47.6319 56.2127 53.2204 56.4646 56.7701 53.1861C60.4966 49.7441 60.5749 43.9559 57.0047 40.4155L45.1625 28.672C44.9262 28.3668 44.6756 28.0691 44.3938 27.7896L37.6527 21.1046C34.8015 17.6154 35.0114 12.4834 38.2845 9.2373L32.008 15.4616L31.9624 15.4618L31.9518 15.4722L31.9413 15.4618L25.4554 21.8937C22.0485 25.2722 22.0435 30.7483 25.4443 34.1329L31.9219 40.6336Z" fill="url(#paint1_linear_27636_2339)"/>
|
|
8
|
+
<Path d="M37.5668 46.2315C34.324 43.0157 35.0581 37.533 38.3224 34.2864L56.9837 15.7806C60.4773 12.3161 60.4773 6.69912 56.9837 3.23461C53.4901 -0.229897 47.8259 -0.229897 44.3323 3.23461L28.3167 19.0563L25.3305 22.0175C21.9914 25.3288 21.9844 30.7101 25.3291 34.0159L31.9099 40.6262" fill="url(#paint2_linear_27636_2339)"/>
|
|
9
|
+
<Defs>
|
|
10
|
+
<LinearGradient id="paint0_linear_27636_2339" x1="7.89316" y1="23.8231" x2="32.0739" y2="47.7674" gradientUnits="userSpaceOnUse">
|
|
11
|
+
<Stop stopColor="#FF8D10"/>
|
|
12
|
+
<Stop offset="0.2371" stopColor="#FF7D0C"/>
|
|
13
|
+
<Stop offset="0.5375" stopColor="#FF7109"/>
|
|
14
|
+
<Stop offset="0.8395" stopColor="#FF6E08"/>
|
|
15
|
+
</LinearGradient>
|
|
16
|
+
<LinearGradient id="paint1_linear_27636_2339" x1="32.8934" y1="22.735" x2="73.1246" y2="64.4611" gradientUnits="userSpaceOnUse">
|
|
17
|
+
<Stop offset="0.0004" stopColor="#1716FF"/>
|
|
18
|
+
<Stop offset="0.2994" stopColor="#1D3CFF"/>
|
|
19
|
+
<Stop offset="0.806" stopColor="#2979FF"/>
|
|
20
|
+
</LinearGradient>
|
|
21
|
+
<LinearGradient id="paint2_linear_27636_2339" x1="31.5096" y1="34.0179" x2="57.4251" y2="8.09813" gradientUnits="userSpaceOnUse">
|
|
22
|
+
<Stop stopColor="#5392FF"/>
|
|
23
|
+
<Stop offset="0.4865" stopColor="#3C84FF"/>
|
|
24
|
+
<Stop offset="0.9991" stopColor="#2979FF"/>
|
|
25
|
+
</LinearGradient>
|
|
26
|
+
</Defs>
|
|
7
27
|
</Svg>
|
|
8
28
|
</View>);
|
|
9
29
|
export default JanisLogo;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SvgProps } from 'react-native-svg';
|
|
2
2
|
import { ViewProps } from 'react-native';
|
|
3
|
-
export declare const svgsNames: readonly ["empty-illustration", "empty-list-illustration", "janis-logo", "janis-logo-color", "login-illustration", "no-notifications"
|
|
3
|
+
export declare const svgsNames: readonly ["empty-illustration", "empty-list-illustration", "janis-logo", "janis-logo-color", "login-illustration", "no-notifications"];
|
|
4
4
|
export type Names = (typeof svgsNames)[number];
|
|
5
5
|
export interface Isvg extends SvgProps, ViewProps {
|
|
6
6
|
name?: Names;
|
package/package.json
CHANGED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import Svg, { Path, Defs, LinearGradient, Stop } from 'react-native-svg';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { View } from 'react-native';
|
|
4
|
-
const NewJanisLogo = ({ ...props }) => (<View {...props}>
|
|
5
|
-
<Svg width="60" height="56" viewBox="0 0 60 56" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
|
|
6
|
-
<Path d="M34.58 37.8333L31.0014 41.3821C26.0518 46.2905 18.0148 46.2905 13.0652 41.3821L3.02961 31.4301C-0.403882 28.0252 -0.403884 22.4966 3.02961 19.0917L3.23893 18.8841C6.67242 15.4792 12.2475 15.4792 15.681 18.8841L34.58 37.6257C34.6378 37.6829 34.6378 37.776 34.58 37.8333Z" fill="url(#paint0_linear_27636_2339)"/>
|
|
7
|
-
<Path d="M31.9219 40.6336L44.2018 52.8112C47.6319 56.2127 53.2204 56.4646 56.7701 53.1861C60.4966 49.7441 60.5749 43.9559 57.0047 40.4155L45.1625 28.672C44.9262 28.3668 44.6756 28.0691 44.3938 27.7896L37.6527 21.1046C34.8015 17.6154 35.0114 12.4834 38.2845 9.2373L32.008 15.4616L31.9624 15.4618L31.9518 15.4722L31.9413 15.4618L25.4554 21.8937C22.0485 25.2722 22.0435 30.7483 25.4443 34.1329L31.9219 40.6336Z" fill="url(#paint1_linear_27636_2339)"/>
|
|
8
|
-
<Path d="M37.5668 46.2315C34.324 43.0157 35.0581 37.533 38.3224 34.2864L56.9837 15.7806C60.4773 12.3161 60.4773 6.69912 56.9837 3.23461C53.4901 -0.229897 47.8259 -0.229897 44.3323 3.23461L28.3167 19.0563L25.3305 22.0175C21.9914 25.3288 21.9844 30.7101 25.3291 34.0159L31.9099 40.6262" fill="url(#paint2_linear_27636_2339)"/>
|
|
9
|
-
<Defs>
|
|
10
|
-
<LinearGradient id="paint0_linear_27636_2339" x1="7.89316" y1="23.8231" x2="32.0739" y2="47.7674" gradientUnits="userSpaceOnUse">
|
|
11
|
-
<Stop stopColor="#FF8D10"/>
|
|
12
|
-
<Stop offset="0.2371" stopColor="#FF7D0C"/>
|
|
13
|
-
<Stop offset="0.5375" stopColor="#FF7109"/>
|
|
14
|
-
<Stop offset="0.8395" stopColor="#FF6E08"/>
|
|
15
|
-
</LinearGradient>
|
|
16
|
-
<LinearGradient id="paint1_linear_27636_2339" x1="32.8934" y1="22.735" x2="73.1246" y2="64.4611" gradientUnits="userSpaceOnUse">
|
|
17
|
-
<Stop offset="0.0004" stopColor="#1716FF"/>
|
|
18
|
-
<Stop offset="0.2994" stopColor="#1D3CFF"/>
|
|
19
|
-
<Stop offset="0.806" stopColor="#2979FF"/>
|
|
20
|
-
</LinearGradient>
|
|
21
|
-
<LinearGradient id="paint2_linear_27636_2339" x1="31.5096" y1="34.0179" x2="57.4251" y2="8.09813" gradientUnits="userSpaceOnUse">
|
|
22
|
-
<Stop stopColor="#5392FF"/>
|
|
23
|
-
<Stop offset="0.4865" stopColor="#3C84FF"/>
|
|
24
|
-
<Stop offset="0.9991" stopColor="#2979FF"/>
|
|
25
|
-
</LinearGradient>
|
|
26
|
-
</Defs>
|
|
27
|
-
</Svg>
|
|
28
|
-
</View>);
|
|
29
|
-
export default NewJanisLogo;
|