@ledgerhq/lumen-ui-rnative 0.1.49 → 0.1.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.
- package/dist/module/lib/Components/BaseInput/BaseInput.js +84 -25
- package/dist/module/lib/Components/BaseInput/BaseInput.js.map +1 -1
- package/dist/module/lib/Components/Button/ButtonGroup.figma.js +19 -0
- package/dist/module/lib/Components/Button/ButtonGroup.figma.js.map +1 -0
- package/dist/module/lib/Components/DescriptionItem/DescriptionItem.js +31 -9
- package/dist/module/lib/Components/DescriptionItem/DescriptionItem.js.map +1 -1
- package/dist/module/lib/Components/DescriptionItem/DescriptionItem.mdx +10 -7
- package/dist/module/lib/Components/DescriptionItem/DescriptionItem.stories.js +29 -40
- package/dist/module/lib/Components/DescriptionItem/DescriptionItem.stories.js.map +1 -1
- package/dist/module/lib/Components/DescriptionItem/DescriptionItem.test.js +22 -0
- package/dist/module/lib/Components/DescriptionItem/DescriptionItem.test.js.map +1 -1
- package/dist/module/lib/Components/ListItem/ListItem.figma.js +11 -0
- package/dist/module/lib/Components/ListItem/ListItem.figma.js.map +1 -1
- package/dist/module/lib/Components/ListItem/ListItem.js +78 -20
- package/dist/module/lib/Components/ListItem/ListItem.js.map +1 -1
- package/dist/module/lib/Components/ListItem/ListItem.mdx +17 -0
- package/dist/module/lib/Components/ListItem/ListItem.stories.js +132 -0
- package/dist/module/lib/Components/ListItem/ListItem.stories.js.map +1 -1
- package/dist/module/lib/Components/ListItem/ListItem.test.js +80 -0
- package/dist/module/lib/Components/ListItem/ListItem.test.js.map +1 -1
- package/dist/module/lib/Components/SectionHeader/SectionHeader.figma.js +22 -0
- package/dist/module/lib/Components/SectionHeader/SectionHeader.figma.js.map +1 -0
- package/dist/module/lib/Components/SectionHeader/SectionHeader.js +99 -0
- package/dist/module/lib/Components/SectionHeader/SectionHeader.js.map +1 -0
- package/dist/module/lib/Components/SectionHeader/SectionHeader.mdx +79 -0
- package/dist/module/lib/Components/SectionHeader/SectionHeader.stories.js +104 -0
- package/dist/module/lib/Components/SectionHeader/SectionHeader.stories.js.map +1 -0
- package/dist/module/lib/Components/SectionHeader/SectionHeader.test.js +108 -0
- package/dist/module/lib/Components/SectionHeader/SectionHeader.test.js.map +1 -0
- package/dist/module/lib/Components/SectionHeader/index.js +5 -0
- package/dist/module/lib/Components/SectionHeader/index.js.map +1 -0
- package/dist/module/lib/Components/SectionHeader/types.js +4 -0
- package/dist/module/lib/Components/SectionHeader/types.js.map +1 -0
- package/dist/module/lib/Components/TextInput/TextInput.figma.js +5 -0
- package/dist/module/lib/Components/TextInput/TextInput.figma.js.map +1 -1
- package/dist/module/lib/Components/TextInput/TextInput.mdx +43 -73
- package/dist/module/lib/Components/TextInput/TextInput.stories.js +58 -1
- package/dist/module/lib/Components/TextInput/TextInput.stories.js.map +1 -1
- package/dist/module/lib/Components/TextInput/TextInput.test.js +45 -1
- package/dist/module/lib/Components/TextInput/TextInput.test.js.map +1 -1
- package/dist/module/lib/Components/TileButton/TileButton.figma.js +5 -0
- package/dist/module/lib/Components/TileButton/TileButton.figma.js.map +1 -1
- package/dist/module/lib/Components/TileButton/TileButton.js +39 -27
- package/dist/module/lib/Components/TileButton/TileButton.js.map +1 -1
- package/dist/module/lib/Components/TileButton/TileButton.mdx +10 -1
- package/dist/module/lib/Components/TileButton/TileButton.stories.js +33 -2
- package/dist/module/lib/Components/TileButton/TileButton.stories.js.map +1 -1
- package/dist/module/lib/Components/TileButton/TileButton.test.js +26 -0
- package/dist/module/lib/Components/TileButton/TileButton.test.js.map +1 -1
- package/dist/module/lib/Components/index.js +1 -0
- package/dist/module/lib/Components/index.js.map +1 -1
- package/dist/module/lib/Symbols/Icons/Atm.js +50 -0
- package/dist/module/lib/Symbols/Icons/Atm.js.map +1 -0
- package/dist/module/lib/Symbols/Icons/Cutlery.js +50 -0
- package/dist/module/lib/Symbols/Icons/Cutlery.js.map +1 -0
- package/dist/module/lib/Symbols/Icons/GameControler.js +50 -0
- package/dist/module/lib/Symbols/Icons/GameControler.js.map +1 -0
- package/dist/module/lib/Symbols/Icons/Upload.js +50 -0
- package/dist/module/lib/Symbols/Icons/Upload.js.map +1 -0
- package/dist/module/lib/Symbols/index.js +4 -0
- package/dist/module/lib/Symbols/index.js.map +1 -1
- package/dist/typescript/src/lib/Components/BaseInput/BaseInput.d.ts +1 -1
- package/dist/typescript/src/lib/Components/BaseInput/BaseInput.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/BaseInput/types.d.ts +16 -0
- package/dist/typescript/src/lib/Components/BaseInput/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/DescriptionItem/DescriptionItem.d.ts +1 -1
- package/dist/typescript/src/lib/Components/DescriptionItem/DescriptionItem.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/DescriptionItem/types.d.ts +6 -0
- package/dist/typescript/src/lib/Components/DescriptionItem/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/ListItem/ListItem.d.ts +1 -1
- package/dist/typescript/src/lib/Components/ListItem/ListItem.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/ListItem/types.d.ts +11 -1
- package/dist/typescript/src/lib/Components/ListItem/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/SectionHeader/SectionHeader.d.ts +20 -0
- package/dist/typescript/src/lib/Components/SectionHeader/SectionHeader.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/SectionHeader/index.d.ts +3 -0
- package/dist/typescript/src/lib/Components/SectionHeader/index.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/SectionHeader/types.d.ts +27 -0
- package/dist/typescript/src/lib/Components/SectionHeader/types.d.ts.map +1 -0
- package/dist/typescript/src/lib/Components/TileButton/TileButton.d.ts +1 -1
- package/dist/typescript/src/lib/Components/TileButton/TileButton.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/TileButton/types.d.ts +5 -0
- package/dist/typescript/src/lib/Components/TileButton/types.d.ts.map +1 -1
- package/dist/typescript/src/lib/Components/index.d.ts +1 -0
- package/dist/typescript/src/lib/Components/index.d.ts.map +1 -1
- package/dist/typescript/src/lib/Symbols/Icons/Atm.d.ts +35 -0
- package/dist/typescript/src/lib/Symbols/Icons/Atm.d.ts.map +1 -0
- package/dist/typescript/src/lib/Symbols/Icons/Cutlery.d.ts +35 -0
- package/dist/typescript/src/lib/Symbols/Icons/Cutlery.d.ts.map +1 -0
- package/dist/typescript/src/lib/Symbols/Icons/GameControler.d.ts +35 -0
- package/dist/typescript/src/lib/Symbols/Icons/GameControler.d.ts.map +1 -0
- package/dist/typescript/src/lib/Symbols/Icons/Upload.d.ts +35 -0
- package/dist/typescript/src/lib/Symbols/Icons/Upload.d.ts.map +1 -0
- package/dist/typescript/src/lib/Symbols/index.d.ts +4 -0
- package/dist/typescript/src/lib/Symbols/index.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/lib/Components/BaseInput/BaseInput.tsx +93 -22
- package/src/lib/Components/BaseInput/types.ts +18 -0
- package/src/lib/Components/Button/ButtonGroup.figma.tsx +15 -0
- package/src/lib/Components/DescriptionItem/DescriptionItem.mdx +10 -7
- package/src/lib/Components/DescriptionItem/DescriptionItem.stories.tsx +21 -41
- package/src/lib/Components/DescriptionItem/DescriptionItem.test.tsx +24 -0
- package/src/lib/Components/DescriptionItem/DescriptionItem.tsx +31 -8
- package/src/lib/Components/DescriptionItem/types.ts +6 -0
- package/src/lib/Components/ListItem/ListItem.figma.tsx +43 -8
- package/src/lib/Components/ListItem/ListItem.mdx +17 -0
- package/src/lib/Components/ListItem/ListItem.stories.tsx +92 -0
- package/src/lib/Components/ListItem/ListItem.test.tsx +78 -0
- package/src/lib/Components/ListItem/ListItem.tsx +64 -19
- package/src/lib/Components/ListItem/types.ts +11 -1
- package/src/lib/Components/SectionHeader/SectionHeader.figma.tsx +24 -0
- package/src/lib/Components/SectionHeader/SectionHeader.mdx +79 -0
- package/src/lib/Components/SectionHeader/SectionHeader.stories.tsx +95 -0
- package/src/lib/Components/SectionHeader/SectionHeader.test.tsx +103 -0
- package/src/lib/Components/SectionHeader/SectionHeader.tsx +125 -0
- package/src/lib/Components/SectionHeader/index.ts +6 -0
- package/src/lib/Components/SectionHeader/types.ts +30 -0
- package/src/lib/Components/TextInput/TextInput.figma.tsx +6 -1
- package/src/lib/Components/TextInput/TextInput.mdx +43 -73
- package/src/lib/Components/TextInput/TextInput.stories.tsx +57 -1
- package/src/lib/Components/TextInput/TextInput.test.tsx +60 -1
- package/src/lib/Components/TileButton/TileButton.figma.tsx +5 -0
- package/src/lib/Components/TileButton/TileButton.mdx +10 -1
- package/src/lib/Components/TileButton/TileButton.stories.tsx +28 -4
- package/src/lib/Components/TileButton/TileButton.test.tsx +35 -1
- package/src/lib/Components/TileButton/TileButton.tsx +47 -28
- package/src/lib/Components/TileButton/types.ts +5 -0
- package/src/lib/Components/index.ts +1 -0
- package/src/lib/Symbols/Icons/Atm.tsx +45 -0
- package/src/lib/Symbols/Icons/Cutlery.tsx +45 -0
- package/src/lib/Symbols/Icons/GameControler.tsx +45 -0
- package/src/lib/Symbols/Icons/Upload.tsx +45 -0
- package/src/lib/Symbols/index.ts +4 -0
|
@@ -26,40 +26,55 @@ const useStyles = ({
|
|
|
26
26
|
disabled,
|
|
27
27
|
pressed,
|
|
28
28
|
isFull,
|
|
29
|
+
appearance,
|
|
29
30
|
}: {
|
|
30
31
|
disabled: boolean;
|
|
31
32
|
pressed: boolean;
|
|
32
33
|
isFull: boolean;
|
|
34
|
+
appearance: 'gray' | 'red';
|
|
33
35
|
}) => {
|
|
34
36
|
return useStyleSheet(
|
|
35
|
-
(t) =>
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
37
|
+
(t) => {
|
|
38
|
+
const foregroundColors: Record<'gray' | 'red', string> = {
|
|
39
|
+
gray: t.colors.text.base,
|
|
40
|
+
red: t.colors.text.error,
|
|
41
|
+
};
|
|
42
|
+
const foregroundColor = disabled
|
|
43
|
+
? t.colors.text.disabled
|
|
44
|
+
: foregroundColors[appearance];
|
|
45
|
+
|
|
46
|
+
return {
|
|
47
|
+
container: StyleSheet.flatten([
|
|
48
|
+
{
|
|
49
|
+
flexDirection: 'column',
|
|
50
|
+
alignItems: 'center',
|
|
51
|
+
justifyContent: 'center',
|
|
52
|
+
gap: t.spacings.s8,
|
|
53
|
+
padding: t.spacings.s12,
|
|
54
|
+
borderRadius: t.borderRadius.md,
|
|
55
|
+
backgroundColor: t.colors.bg.surface,
|
|
56
|
+
},
|
|
57
|
+
isFull && { width: t.sizes.full },
|
|
58
|
+
pressed &&
|
|
59
|
+
!disabled && {
|
|
60
|
+
backgroundColor: t.colors.bg.surfacePressed,
|
|
61
|
+
},
|
|
62
|
+
disabled && { backgroundColor: t.colors.bg.disabled },
|
|
63
|
+
]),
|
|
64
|
+
label: StyleSheet.flatten([
|
|
65
|
+
t.typographies.body2SemiBold,
|
|
66
|
+
{
|
|
67
|
+
textAlign: 'center',
|
|
68
|
+
color: foregroundColor,
|
|
69
|
+
},
|
|
70
|
+
]),
|
|
71
|
+
icon: {
|
|
72
|
+
flexShrink: 0,
|
|
73
|
+
color: foregroundColor,
|
|
55
74
|
},
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
color: disabled ? t.colors.text.disabled : t.colors.text.base,
|
|
60
|
-
},
|
|
61
|
-
}),
|
|
62
|
-
[disabled, pressed, isFull],
|
|
75
|
+
};
|
|
76
|
+
},
|
|
77
|
+
[disabled, pressed, isFull, appearance],
|
|
63
78
|
);
|
|
64
79
|
};
|
|
65
80
|
|
|
@@ -84,6 +99,7 @@ export const TileButton = ({
|
|
|
84
99
|
children,
|
|
85
100
|
disabled: disabledProp = false,
|
|
86
101
|
isFull = false,
|
|
102
|
+
appearance = 'gray',
|
|
87
103
|
numberOfLines = 2,
|
|
88
104
|
...props
|
|
89
105
|
}: TileButtonProps) => {
|
|
@@ -107,6 +123,7 @@ export const TileButton = ({
|
|
|
107
123
|
disabled={disabled}
|
|
108
124
|
pressed={pressed}
|
|
109
125
|
isFull={isFull}
|
|
126
|
+
appearance={appearance}
|
|
110
127
|
IconProp={IconProp}
|
|
111
128
|
numberOfLines={numberOfLines}
|
|
112
129
|
>
|
|
@@ -121,6 +138,7 @@ type TileButtonContentProps = PropsWithChildren<{
|
|
|
121
138
|
disabled: boolean;
|
|
122
139
|
pressed: boolean;
|
|
123
140
|
isFull: boolean;
|
|
141
|
+
appearance: 'gray' | 'red';
|
|
124
142
|
IconProp: TileButtonProps['icon'];
|
|
125
143
|
numberOfLines?: number;
|
|
126
144
|
}>;
|
|
@@ -129,11 +147,12 @@ const TileButtonContent: FC<TileButtonContentProps> = ({
|
|
|
129
147
|
disabled,
|
|
130
148
|
pressed,
|
|
131
149
|
isFull,
|
|
150
|
+
appearance,
|
|
132
151
|
IconProp,
|
|
133
152
|
numberOfLines,
|
|
134
153
|
children,
|
|
135
154
|
}) => {
|
|
136
|
-
const styles = useStyles({ disabled, pressed, isFull });
|
|
155
|
+
const styles = useStyles({ disabled, pressed, isFull, appearance });
|
|
137
156
|
|
|
138
157
|
return (
|
|
139
158
|
<View style={styles.container} testID='tile-button-content'>
|
|
@@ -23,6 +23,11 @@ export type TileButtonProps = {
|
|
|
23
23
|
* @default false
|
|
24
24
|
*/
|
|
25
25
|
isFull?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* The visual appearance of the button.
|
|
28
|
+
* @default 'gray'
|
|
29
|
+
*/
|
|
30
|
+
appearance?: 'gray' | 'red';
|
|
26
31
|
/**
|
|
27
32
|
* Maximum number of lines for the label text.
|
|
28
33
|
* Text will be truncated with ellipsis if it exceeds this limit.
|
|
@@ -29,6 +29,7 @@ export * from './NavBar';
|
|
|
29
29
|
export * from './OptionList';
|
|
30
30
|
export * from './PageIndicator';
|
|
31
31
|
export * from './SearchInput';
|
|
32
|
+
export * from './SectionHeader';
|
|
32
33
|
export * from './SegmentedControl';
|
|
33
34
|
export * from './Skeleton';
|
|
34
35
|
export * from './Spinner';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import Svg, { Path } from 'react-native-svg';
|
|
2
|
+
import createIcon from '../../Components/Icon/createIcon';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Atm icon component for React Native.
|
|
6
|
+
*
|
|
7
|
+
* This icon component is automatically generated from SVG files and uses the createIcon utility
|
|
8
|
+
* to create a consistent icon interface. It supports all standard SVG props (from react-native-svg)
|
|
9
|
+
* and additional size variants defined in the Icon component.
|
|
10
|
+
*
|
|
11
|
+
* @component
|
|
12
|
+
* @param {16 | 20 | 24 | 40 | 48 | 56} [size=24] - The size of the icon in pixels.
|
|
13
|
+
* @param {string} [color] - The color of the icon.
|
|
14
|
+
* @param {SVGProps} [...props] - All standard SVG element props (from react-native-svg).
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* // Basic usage with default size (24px)
|
|
18
|
+
* import { Atm } from '@ledgerhq/lumen-ui-rnative/symbols';
|
|
19
|
+
*
|
|
20
|
+
* <Atm />
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* // With custom size and style
|
|
24
|
+
* <Atm size={40} color="warning" lx={{ marginTop: 's4' }} />
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* // Used within a Button component
|
|
28
|
+
* import { Button } from '@ledgerhq/lumen-ui-rnative';
|
|
29
|
+
*
|
|
30
|
+
* <Button icon={Atm} size="md">
|
|
31
|
+
* Click me
|
|
32
|
+
* </Button>
|
|
33
|
+
*/
|
|
34
|
+
export const Atm = createIcon(
|
|
35
|
+
'Atm',
|
|
36
|
+
<Svg width={24} height={24} fill='currentColor' viewBox='0 0 16 16'>
|
|
37
|
+
<Path
|
|
38
|
+
stroke='currentColor'
|
|
39
|
+
strokeLinecap='round'
|
|
40
|
+
strokeLinejoin='round'
|
|
41
|
+
strokeWidth={1.3}
|
|
42
|
+
d='M4.665 9.176H3.331a1.334 1.334 0 0 1-1.333-1.334V3.841c0-.737.597-1.334 1.333-1.334h9.338c.736 0 1.334.597 1.334 1.334v4.001c0 .737-.598 1.334-1.334 1.334h-1.334M7 11.878h2m2.335-6.036h-6.67v7.02a.98.98 0 0 0 .983.983h4.704a.98.98 0 0 0 .983-.982zM7 8.875a1 1 0 1 1 2 0 1 1 0 0 1-2 0'
|
|
43
|
+
/>
|
|
44
|
+
</Svg>,
|
|
45
|
+
);
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import Svg, { Path } from 'react-native-svg';
|
|
2
|
+
import createIcon from '../../Components/Icon/createIcon';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Cutlery icon component for React Native.
|
|
6
|
+
*
|
|
7
|
+
* This icon component is automatically generated from SVG files and uses the createIcon utility
|
|
8
|
+
* to create a consistent icon interface. It supports all standard SVG props (from react-native-svg)
|
|
9
|
+
* and additional size variants defined in the Icon component.
|
|
10
|
+
*
|
|
11
|
+
* @component
|
|
12
|
+
* @param {16 | 20 | 24 | 40 | 48 | 56} [size=24] - The size of the icon in pixels.
|
|
13
|
+
* @param {string} [color] - The color of the icon.
|
|
14
|
+
* @param {SVGProps} [...props] - All standard SVG element props (from react-native-svg).
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* // Basic usage with default size (24px)
|
|
18
|
+
* import { Cutlery } from '@ledgerhq/lumen-ui-rnative/symbols';
|
|
19
|
+
*
|
|
20
|
+
* <Cutlery />
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* // With custom size and style
|
|
24
|
+
* <Cutlery size={40} color="warning" lx={{ marginTop: 's4' }} />
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* // Used within a Button component
|
|
28
|
+
* import { Button } from '@ledgerhq/lumen-ui-rnative';
|
|
29
|
+
*
|
|
30
|
+
* <Button icon={Cutlery} size="md">
|
|
31
|
+
* Click me
|
|
32
|
+
* </Button>
|
|
33
|
+
*/
|
|
34
|
+
export const Cutlery = createIcon(
|
|
35
|
+
'Cutlery',
|
|
36
|
+
<Svg width={24} height={24} fill='currentColor' viewBox='0 0 16 16'>
|
|
37
|
+
<Path
|
|
38
|
+
stroke='currentColor'
|
|
39
|
+
strokeLinecap='round'
|
|
40
|
+
strokeLinejoin='round'
|
|
41
|
+
strokeWidth={1.3}
|
|
42
|
+
d='M2 2.056v2.975m0 0v.06m0-.06c0 .849.35 1.601.893 2.088.265.238.44.559.44.916V13a1 1 0 0 0 2 0V8.035c0-.357.176-.678.441-.916.543-.487.893-1.239.893-2.088V2.056M4.333 5.333V2m9 .701a.667.667 0 0 0-.666-.666H12a2 2 0 0 0-2 2v4c0 .869.558 1.602 1.333 1.877V13a1 1 0 0 0 2 0z'
|
|
43
|
+
/>
|
|
44
|
+
</Svg>,
|
|
45
|
+
);
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import Svg, { Path } from 'react-native-svg';
|
|
2
|
+
import createIcon from '../../Components/Icon/createIcon';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* GameControler icon component for React Native.
|
|
6
|
+
*
|
|
7
|
+
* This icon component is automatically generated from SVG files and uses the createIcon utility
|
|
8
|
+
* to create a consistent icon interface. It supports all standard SVG props (from react-native-svg)
|
|
9
|
+
* and additional size variants defined in the Icon component.
|
|
10
|
+
*
|
|
11
|
+
* @component
|
|
12
|
+
* @param {16 | 20 | 24 | 40 | 48 | 56} [size=24] - The size of the icon in pixels.
|
|
13
|
+
* @param {string} [color] - The color of the icon.
|
|
14
|
+
* @param {SVGProps} [...props] - All standard SVG element props (from react-native-svg).
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* // Basic usage with default size (24px)
|
|
18
|
+
* import { GameControler } from '@ledgerhq/lumen-ui-rnative/symbols';
|
|
19
|
+
*
|
|
20
|
+
* <GameControler />
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* // With custom size and style
|
|
24
|
+
* <GameControler size={40} color="warning" lx={{ marginTop: 's4' }} />
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* // Used within a Button component
|
|
28
|
+
* import { Button } from '@ledgerhq/lumen-ui-rnative';
|
|
29
|
+
*
|
|
30
|
+
* <Button icon={GameControler} size="md">
|
|
31
|
+
* Click me
|
|
32
|
+
* </Button>
|
|
33
|
+
*/
|
|
34
|
+
export const GameControler = createIcon(
|
|
35
|
+
'GameControler',
|
|
36
|
+
<Svg width={24} height={24} fill='currentColor' viewBox='0 0 16 16'>
|
|
37
|
+
<Path
|
|
38
|
+
stroke='currentColor'
|
|
39
|
+
strokeLinecap='round'
|
|
40
|
+
strokeLinejoin='round'
|
|
41
|
+
strokeWidth={1.3}
|
|
42
|
+
d='m10.664 3.342-.512 1.535a.67.67 0 0 1-.633.456H6.48a.67.67 0 0 1-.632-.456l-.512-1.535M5.84 10 4.8 11.753a1.864 1.864 0 0 1-3.426-1.337l.94-4.44a3.33 3.33 0 0 1 3.262-2.643h4.846a3.33 3.33 0 0 1 3.261 2.642l.941 4.441a1.864 1.864 0 0 1-3.427 1.337L10.16 10z'
|
|
43
|
+
/>
|
|
44
|
+
</Svg>,
|
|
45
|
+
);
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import Svg, { Path } from 'react-native-svg';
|
|
2
|
+
import createIcon from '../../Components/Icon/createIcon';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Upload icon component for React Native.
|
|
6
|
+
*
|
|
7
|
+
* This icon component is automatically generated from SVG files and uses the createIcon utility
|
|
8
|
+
* to create a consistent icon interface. It supports all standard SVG props (from react-native-svg)
|
|
9
|
+
* and additional size variants defined in the Icon component.
|
|
10
|
+
*
|
|
11
|
+
* @component
|
|
12
|
+
* @param {16 | 20 | 24 | 40 | 48 | 56} [size=24] - The size of the icon in pixels.
|
|
13
|
+
* @param {string} [color] - The color of the icon.
|
|
14
|
+
* @param {SVGProps} [...props] - All standard SVG element props (from react-native-svg).
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* // Basic usage with default size (24px)
|
|
18
|
+
* import { Upload } from '@ledgerhq/lumen-ui-rnative/symbols';
|
|
19
|
+
*
|
|
20
|
+
* <Upload />
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* // With custom size and style
|
|
24
|
+
* <Upload size={40} color="warning" lx={{ marginTop: 's4' }} />
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* // Used within a Button component
|
|
28
|
+
* import { Button } from '@ledgerhq/lumen-ui-rnative';
|
|
29
|
+
*
|
|
30
|
+
* <Button icon={Upload} size="md">
|
|
31
|
+
* Click me
|
|
32
|
+
* </Button>
|
|
33
|
+
*/
|
|
34
|
+
export const Upload = createIcon(
|
|
35
|
+
'Upload',
|
|
36
|
+
<Svg width={24} height={24} fill='currentColor' viewBox='0 0 16 16'>
|
|
37
|
+
<Path
|
|
38
|
+
stroke='currentColor'
|
|
39
|
+
strokeLinecap='round'
|
|
40
|
+
strokeLinejoin='round'
|
|
41
|
+
strokeWidth={1.3}
|
|
42
|
+
d='M13.333 10.963a2.37 2.37 0 0 1-2.37 2.37H5.037a2.37 2.37 0 0 1-2.37-2.37m7.704-5.926L8 2.667l-2.37 2.37M8 2.667v7.111'
|
|
43
|
+
/>
|
|
44
|
+
</Svg>,
|
|
45
|
+
);
|
package/src/lib/Symbols/index.ts
CHANGED
|
@@ -13,6 +13,7 @@ export { ArrowUp } from './Icons/ArrowUp';
|
|
|
13
13
|
export { ArrowUpRight } from './Icons/ArrowUpRight';
|
|
14
14
|
export { Asterisk } from './Icons/Asterisk';
|
|
15
15
|
export { At } from './Icons/At';
|
|
16
|
+
export { Atm } from './Icons/Atm';
|
|
16
17
|
export { AutoLock } from './Icons/AutoLock';
|
|
17
18
|
export { Bank } from './Icons/Bank';
|
|
18
19
|
export { BasketPutIn } from './Icons/BasketPutIn';
|
|
@@ -80,6 +81,7 @@ export { Csv } from './Icons/Csv';
|
|
|
80
81
|
export { CursorTouch } from './Icons/CursorTouch';
|
|
81
82
|
export { CurveDown } from './Icons/CurveDown';
|
|
82
83
|
export { CurveUp } from './Icons/CurveUp';
|
|
84
|
+
export { Cutlery } from './Icons/Cutlery';
|
|
83
85
|
export { DatabaseLock } from './Icons/DatabaseLock';
|
|
84
86
|
export { Delete } from './Icons/Delete';
|
|
85
87
|
export { DeleteCircle } from './Icons/DeleteCircle';
|
|
@@ -110,6 +112,7 @@ export { FileDownload } from './Icons/FileDownload';
|
|
|
110
112
|
export { FilterSort } from './Icons/FilterSort';
|
|
111
113
|
export { Flex } from './Icons/Flex';
|
|
112
114
|
export { Folder } from './Icons/Folder';
|
|
115
|
+
export { GameControler } from './Icons/GameControler';
|
|
113
116
|
export { Gift } from './Icons/Gift';
|
|
114
117
|
export { Github } from './Icons/Github';
|
|
115
118
|
export { Globe } from './Icons/Globe';
|
|
@@ -246,6 +249,7 @@ export { Truck } from './Icons/Truck';
|
|
|
246
249
|
export { Twitter } from './Icons/Twitter';
|
|
247
250
|
export { Unlink } from './Icons/Unlink';
|
|
248
251
|
export { Unlock } from './Icons/Unlock';
|
|
252
|
+
export { Upload } from './Icons/Upload';
|
|
249
253
|
export { Usb } from './Icons/Usb';
|
|
250
254
|
export { UsbC } from './Icons/UsbC';
|
|
251
255
|
export { User } from './Icons/User';
|