@mapples/ui 1.1.2 → 1.4.0
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/form/SubmitButton/SubmitButton.d.ts +13 -26
- package/dist/components/form/SubmitButton/SubmitButton.d.ts.map +1 -1
- package/dist/components/form/SubmitButton/SubmitButton.js +12 -21
- package/dist/components/form/SubmitButton/SubmitButton.js.map +1 -1
- package/dist/components/inputs/Button/Button.d.ts +42 -5
- package/dist/components/inputs/Button/Button.d.ts.map +1 -1
- package/dist/components/inputs/Button/Button.js +151 -10
- package/dist/components/inputs/Button/Button.js.map +1 -1
- package/dist/components/inputs/IconButton/IconButton.d.ts +65 -23
- package/dist/components/inputs/IconButton/IconButton.d.ts.map +1 -1
- package/dist/components/inputs/IconButton/IconButton.js +185 -38
- package/dist/components/inputs/IconButton/IconButton.js.map +1 -1
- package/dist/components/inputs/TextInput/TextInput.d.ts +5 -0
- package/dist/components/inputs/TextInput/TextInput.d.ts.map +1 -1
- package/dist/components/inputs/TextInput/TextInput.js +15 -3
- package/dist/components/inputs/TextInput/TextInput.js.map +1 -1
- package/dist/components/media/BarCode/BarCode.d.ts.map +1 -1
- package/dist/components/media/BarCode/BarCode.js +32 -38
- package/dist/components/media/BarCode/BarCode.js.map +1 -1
- package/dist/components/media/BarCode/BarCodeEncoder.d.ts.map +1 -1
- package/dist/components/media/BarCode/BarCodeEncoder.js +22 -3
- package/dist/components/media/BarCode/BarCodeEncoder.js.map +1 -1
- package/dist/components/media/Icon/Icon.d.ts +43 -24
- package/dist/components/media/Icon/Icon.d.ts.map +1 -1
- package/dist/components/media/Icon/Icon.js +31 -33
- package/dist/components/media/Icon/Icon.js.map +1 -1
- package/dist/components/media/Icon/families.d.ts +66 -0
- package/dist/components/media/Icon/families.d.ts.map +1 -0
- package/dist/components/media/Icon/families.js +316 -0
- package/dist/components/media/Icon/families.js.map +1 -0
- package/dist/components/media/Icon/index.d.ts +2 -0
- package/dist/components/media/Icon/index.d.ts.map +1 -1
- package/dist/components/media/Icon/index.js +2 -0
- package/dist/components/media/Icon/index.js.map +1 -1
- package/dist/components/media/QRCode/QRCode.d.ts.map +1 -1
- package/dist/components/media/QRCode/QRCode.js +19 -2
- package/dist/components/media/QRCode/QRCode.js.map +1 -1
- package/dist/components/media/Vector/MockIcon.d.ts.map +1 -0
- package/dist/components/media/Vector/MockIcon.js.map +1 -0
- package/dist/components/media/Vector/Vector.d.ts +56 -0
- package/dist/components/media/Vector/Vector.d.ts.map +1 -0
- package/dist/components/media/Vector/Vector.js +59 -0
- package/dist/components/media/Vector/Vector.js.map +1 -0
- package/dist/components/media/Vector/index.d.ts +5 -0
- package/dist/components/media/Vector/index.d.ts.map +1 -0
- package/dist/components/media/Vector/index.js +5 -0
- package/dist/components/media/Vector/index.js.map +1 -0
- package/dist/components/media/Vector/schematics.d.ts +11 -0
- package/dist/components/media/Vector/schematics.d.ts.map +1 -0
- package/dist/components/media/Vector/schematics.js +14 -0
- package/dist/components/media/Vector/schematics.js.map +1 -0
- package/dist/components/media/Video/Video.d.ts +1 -1
- package/dist/components/media/Video/Video.d.ts.map +1 -1
- package/dist/components/media/Video/Video.js +26 -3
- package/dist/components/media/Video/Video.js.map +1 -1
- package/dist/components/media/index.d.ts +2 -0
- package/dist/components/media/index.d.ts.map +1 -1
- package/dist/components/media/index.js +2 -0
- package/dist/components/media/index.js.map +1 -1
- package/dist/components/media/schematics.d.ts +3 -3
- package/dist/components/media/schematics.d.ts.map +1 -1
- package/dist/components/media/schematics.js +5 -3
- package/dist/components/media/schematics.js.map +1 -1
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +3 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/useTones.d.ts +54 -0
- package/dist/hooks/useTones.d.ts.map +1 -0
- package/dist/hooks/useTones.js +79 -0
- package/dist/hooks/useTones.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/tokens.d.ts +111 -0
- package/dist/tokens.d.ts.map +1 -0
- package/dist/tokens.js +133 -0
- package/dist/tokens.js.map +1 -0
- package/package.json +76 -1
- package/dist/components/media/Icon/MockIcon.d.ts.map +0 -1
- package/dist/components/media/Icon/MockIcon.js.map +0 -1
- /package/dist/components/media/{Icon → Vector}/MockIcon.d.ts +0 -0
- /package/dist/components/media/{Icon → Vector}/MockIcon.js +0 -0
package/dist/tokens.d.ts
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview The shared design vocabulary of the themed components —
|
|
3
|
+
* the `@mapples/ui` `Button`/`IconButton` variants and every
|
|
4
|
+
* `@mapples/components` widget draw their colours, sizes and radii from
|
|
5
|
+
* here, so one source of truth feeds the runtime, the editor schematics (the
|
|
6
|
+
* inspector `Select` options) and the AI digest.
|
|
7
|
+
*
|
|
8
|
+
* Colours are theme-token strings resolved by `@mapples/style`. The key
|
|
9
|
+
* structure is the Mapples palette contract every project theme satisfies
|
|
10
|
+
* (the default palette and the AI design schema enforce it): `background`,
|
|
11
|
+
* `primary`, `accent`, `text`, `neutral`, `system`.
|
|
12
|
+
*
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
/** Control sizes shared by buttons, fields and selection controls. */
|
|
16
|
+
export declare const CONTROL_SIZE_KEYS: readonly ["sm", "md", "lg"];
|
|
17
|
+
export type ControlSize = (typeof CONTROL_SIZE_KEYS)[number];
|
|
18
|
+
export interface ControlSizeSpec {
|
|
19
|
+
/** Control height in points — `md` satisfies the 44 pt touch target. */
|
|
20
|
+
height: number;
|
|
21
|
+
/** Glyph size for leading/trailing icons. */
|
|
22
|
+
iconSize: number;
|
|
23
|
+
/** Horizontal padding of a control with a label. */
|
|
24
|
+
paddingX: number;
|
|
25
|
+
/** Typography variant of the control label. */
|
|
26
|
+
labelVariant: string;
|
|
27
|
+
/** Corner radius of the control. */
|
|
28
|
+
radius: number;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Geometry per control size. Points, not sizing tokens, so a control keeps
|
|
32
|
+
* its proportions whatever base a project's sizing scale uses.
|
|
33
|
+
*/
|
|
34
|
+
export declare const CONTROL_SIZES: Record<ControlSize, ControlSizeSpec>;
|
|
35
|
+
/** Corner radius scale. */
|
|
36
|
+
export declare const RADII: {
|
|
37
|
+
readonly xs: 4;
|
|
38
|
+
readonly sm: 8;
|
|
39
|
+
readonly md: 12;
|
|
40
|
+
readonly lg: 16;
|
|
41
|
+
readonly xl: 24;
|
|
42
|
+
readonly pill: 999;
|
|
43
|
+
};
|
|
44
|
+
/** Opacity of a disabled control. */
|
|
45
|
+
export declare const DISABLED_OPACITY = 0.38;
|
|
46
|
+
/** Alpha of the state layer painted over a control in the label colour. */
|
|
47
|
+
export declare const STATE_LAYER_OPACITY: {
|
|
48
|
+
readonly hover: 0.08;
|
|
49
|
+
readonly pressed: 0.12;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* The one elevation level, as the CSS `boxShadow` string React Native and
|
|
53
|
+
* the web accept; on dark themes surfaces add a 1 px outline as well because
|
|
54
|
+
* shadows vanish. The object form (`ELEVATION_SHADOW`) is what schematics and
|
|
55
|
+
* the AI write into style slots — the styled pipeline converts it.
|
|
56
|
+
*/
|
|
57
|
+
export declare const ELEVATION = "0px 2px 8px rgba(0, 0, 0, 0.12)";
|
|
58
|
+
export declare const ELEVATION_SHADOW: {
|
|
59
|
+
readonly x: 0;
|
|
60
|
+
readonly y: 2;
|
|
61
|
+
readonly radius: 8;
|
|
62
|
+
readonly color: "rgba(0, 0, 0, 0.12)";
|
|
63
|
+
};
|
|
64
|
+
/** Typography variants by the part of a component they set. */
|
|
65
|
+
export declare const TYPOGRAPHY_PARTS: {
|
|
66
|
+
readonly label: "Label";
|
|
67
|
+
readonly button: "Button";
|
|
68
|
+
readonly body: "Body";
|
|
69
|
+
readonly title: "Subtitle";
|
|
70
|
+
readonly headline: "Headline";
|
|
71
|
+
readonly helper: "Caption";
|
|
72
|
+
readonly overline: "Overline";
|
|
73
|
+
readonly link: "Link";
|
|
74
|
+
};
|
|
75
|
+
/** Theme-token strings for the palette contract. */
|
|
76
|
+
export declare const Tokens: {
|
|
77
|
+
readonly color: {
|
|
78
|
+
readonly primary: "theme.primary.main";
|
|
79
|
+
readonly primaryLight: "theme.primary.light";
|
|
80
|
+
readonly primaryDark: "theme.primary.dark";
|
|
81
|
+
readonly onPrimary: "theme.primary.contrast";
|
|
82
|
+
readonly primaryContainer: "theme.primary.background";
|
|
83
|
+
readonly accent: "theme.accent.main";
|
|
84
|
+
readonly accentLight: "theme.accent.light";
|
|
85
|
+
readonly accentDark: "theme.accent.dark";
|
|
86
|
+
readonly onAccent: "theme.accent.contrast";
|
|
87
|
+
readonly accentContainer: "theme.accent.background";
|
|
88
|
+
readonly surface: "theme.background.card";
|
|
89
|
+
readonly background: "theme.background.primary";
|
|
90
|
+
readonly inverse: "theme.background.contrast";
|
|
91
|
+
readonly text: "theme.text.primary";
|
|
92
|
+
readonly textSecondary: "theme.text.secondary";
|
|
93
|
+
readonly textTertiary: "theme.text.tertiary";
|
|
94
|
+
readonly white: "theme.neutral.white";
|
|
95
|
+
readonly black: "theme.neutral.black";
|
|
96
|
+
readonly error: "theme.system.error";
|
|
97
|
+
readonly success: "theme.system.success";
|
|
98
|
+
readonly warning: "theme.system.warning";
|
|
99
|
+
readonly info: "theme.system.info";
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
/** Visual variants of `Button`. */
|
|
103
|
+
export declare const BUTTON_VARIANTS: readonly ["filled", "tonal", "outlined", "text", "elevated"];
|
|
104
|
+
export type ButtonVariant = (typeof BUTTON_VARIANTS)[number];
|
|
105
|
+
/** Visual variants of `IconButton` when it renders a glyph by name. */
|
|
106
|
+
export declare const ICON_BUTTON_VARIANTS: readonly ["standard", "filled", "tonal", "outlined"];
|
|
107
|
+
export type IconButtonVariant = (typeof ICON_BUTTON_VARIANTS)[number];
|
|
108
|
+
/** Colour roles a control can take. */
|
|
109
|
+
export declare const TONES: readonly ["primary", "accent", "neutral", "error", "success", "warning", "info"];
|
|
110
|
+
export type Tone = (typeof TONES)[number];
|
|
111
|
+
//# sourceMappingURL=tokens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,sEAAsE;AACtE,eAAO,MAAM,iBAAiB,6BAA8B,CAAC;AAC7D,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7D,MAAM,WAAW,eAAe;IAC9B,wEAAwE;IACxE,MAAM,EAAE,MAAM,CAAC;IACf,6CAA6C;IAC7C,QAAQ,EAAE,MAAM,CAAC;IACjB,oDAAoD;IACpD,QAAQ,EAAE,MAAM,CAAC;IACjB,+CAA+C;IAC/C,YAAY,EAAE,MAAM,CAAC;IACrB,oCAAoC;IACpC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,WAAW,EAAE,eAAe,CAsB9D,CAAC;AAEF,2BAA2B;AAC3B,eAAO,MAAM,KAAK;;;;;;;CAOR,CAAC;AAEX,qCAAqC;AACrC,eAAO,MAAM,gBAAgB,OAAO,CAAC;AAErC,2EAA2E;AAC3E,eAAO,MAAM,mBAAmB;;;CAA0C,CAAC;AAE3E;;;;;GAKG;AACH,eAAO,MAAM,SAAS,oCAAoC,CAAC;AAC3D,eAAO,MAAM,gBAAgB;;;;;CAKnB,CAAC;AAEX,+DAA+D;AAC/D,eAAO,MAAM,gBAAgB;;;;;;;;;CASnB,CAAC;AAEX,oDAAoD;AACpD,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;CAyBT,CAAC;AAEX,mCAAmC;AACnC,eAAO,MAAM,eAAe,8DAMlB,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7D,uEAAuE;AACvE,eAAO,MAAM,oBAAoB,sDAKvB,CAAC;AACX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtE,uCAAuC;AACvC,eAAO,MAAM,KAAK,kFAQR,CAAC;AACX,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
package/dist/tokens.js
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview The shared design vocabulary of the themed components —
|
|
3
|
+
* the `@mapples/ui` `Button`/`IconButton` variants and every
|
|
4
|
+
* `@mapples/components` widget draw their colours, sizes and radii from
|
|
5
|
+
* here, so one source of truth feeds the runtime, the editor schematics (the
|
|
6
|
+
* inspector `Select` options) and the AI digest.
|
|
7
|
+
*
|
|
8
|
+
* Colours are theme-token strings resolved by `@mapples/style`. The key
|
|
9
|
+
* structure is the Mapples palette contract every project theme satisfies
|
|
10
|
+
* (the default palette and the AI design schema enforce it): `background`,
|
|
11
|
+
* `primary`, `accent`, `text`, `neutral`, `system`.
|
|
12
|
+
*
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
/** Control sizes shared by buttons, fields and selection controls. */
|
|
16
|
+
export const CONTROL_SIZE_KEYS = ['sm', 'md', 'lg'];
|
|
17
|
+
/**
|
|
18
|
+
* Geometry per control size. Points, not sizing tokens, so a control keeps
|
|
19
|
+
* its proportions whatever base a project's sizing scale uses.
|
|
20
|
+
*/
|
|
21
|
+
export const CONTROL_SIZES = {
|
|
22
|
+
sm: {
|
|
23
|
+
height: 36,
|
|
24
|
+
iconSize: 16,
|
|
25
|
+
paddingX: 12,
|
|
26
|
+
labelVariant: 'Label',
|
|
27
|
+
radius: 10,
|
|
28
|
+
},
|
|
29
|
+
md: {
|
|
30
|
+
height: 44,
|
|
31
|
+
iconSize: 20,
|
|
32
|
+
paddingX: 16,
|
|
33
|
+
labelVariant: 'Button',
|
|
34
|
+
radius: 12,
|
|
35
|
+
},
|
|
36
|
+
lg: {
|
|
37
|
+
height: 52,
|
|
38
|
+
iconSize: 24,
|
|
39
|
+
paddingX: 20,
|
|
40
|
+
labelVariant: 'Button',
|
|
41
|
+
radius: 14,
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
/** Corner radius scale. */
|
|
45
|
+
export const RADII = {
|
|
46
|
+
xs: 4,
|
|
47
|
+
sm: 8,
|
|
48
|
+
md: 12,
|
|
49
|
+
lg: 16,
|
|
50
|
+
xl: 24,
|
|
51
|
+
pill: 999,
|
|
52
|
+
};
|
|
53
|
+
/** Opacity of a disabled control. */
|
|
54
|
+
export const DISABLED_OPACITY = 0.38;
|
|
55
|
+
/** Alpha of the state layer painted over a control in the label colour. */
|
|
56
|
+
export const STATE_LAYER_OPACITY = { hover: 0.08, pressed: 0.12 };
|
|
57
|
+
/**
|
|
58
|
+
* The one elevation level, as the CSS `boxShadow` string React Native and
|
|
59
|
+
* the web accept; on dark themes surfaces add a 1 px outline as well because
|
|
60
|
+
* shadows vanish. The object form (`ELEVATION_SHADOW`) is what schematics and
|
|
61
|
+
* the AI write into style slots — the styled pipeline converts it.
|
|
62
|
+
*/
|
|
63
|
+
export const ELEVATION = '0px 2px 8px rgba(0, 0, 0, 0.12)';
|
|
64
|
+
export const ELEVATION_SHADOW = {
|
|
65
|
+
x: 0,
|
|
66
|
+
y: 2,
|
|
67
|
+
radius: 8,
|
|
68
|
+
color: 'rgba(0, 0, 0, 0.12)',
|
|
69
|
+
};
|
|
70
|
+
/** Typography variants by the part of a component they set. */
|
|
71
|
+
export const TYPOGRAPHY_PARTS = {
|
|
72
|
+
label: 'Label',
|
|
73
|
+
button: 'Button',
|
|
74
|
+
body: 'Body',
|
|
75
|
+
title: 'Subtitle',
|
|
76
|
+
headline: 'Headline',
|
|
77
|
+
helper: 'Caption',
|
|
78
|
+
overline: 'Overline',
|
|
79
|
+
link: 'Link',
|
|
80
|
+
};
|
|
81
|
+
/** Theme-token strings for the palette contract. */
|
|
82
|
+
export const Tokens = {
|
|
83
|
+
color: {
|
|
84
|
+
primary: 'theme.primary.main',
|
|
85
|
+
primaryLight: 'theme.primary.light',
|
|
86
|
+
primaryDark: 'theme.primary.dark',
|
|
87
|
+
onPrimary: 'theme.primary.contrast',
|
|
88
|
+
primaryContainer: 'theme.primary.background',
|
|
89
|
+
accent: 'theme.accent.main',
|
|
90
|
+
accentLight: 'theme.accent.light',
|
|
91
|
+
accentDark: 'theme.accent.dark',
|
|
92
|
+
onAccent: 'theme.accent.contrast',
|
|
93
|
+
accentContainer: 'theme.accent.background',
|
|
94
|
+
surface: 'theme.background.card',
|
|
95
|
+
background: 'theme.background.primary',
|
|
96
|
+
inverse: 'theme.background.contrast',
|
|
97
|
+
text: 'theme.text.primary',
|
|
98
|
+
textSecondary: 'theme.text.secondary',
|
|
99
|
+
textTertiary: 'theme.text.tertiary',
|
|
100
|
+
white: 'theme.neutral.white',
|
|
101
|
+
black: 'theme.neutral.black',
|
|
102
|
+
error: 'theme.system.error',
|
|
103
|
+
success: 'theme.system.success',
|
|
104
|
+
warning: 'theme.system.warning',
|
|
105
|
+
info: 'theme.system.info',
|
|
106
|
+
},
|
|
107
|
+
};
|
|
108
|
+
/** Visual variants of `Button`. */
|
|
109
|
+
export const BUTTON_VARIANTS = [
|
|
110
|
+
'filled',
|
|
111
|
+
'tonal',
|
|
112
|
+
'outlined',
|
|
113
|
+
'text',
|
|
114
|
+
'elevated',
|
|
115
|
+
];
|
|
116
|
+
/** Visual variants of `IconButton` when it renders a glyph by name. */
|
|
117
|
+
export const ICON_BUTTON_VARIANTS = [
|
|
118
|
+
'standard',
|
|
119
|
+
'filled',
|
|
120
|
+
'tonal',
|
|
121
|
+
'outlined',
|
|
122
|
+
];
|
|
123
|
+
/** Colour roles a control can take. */
|
|
124
|
+
export const TONES = [
|
|
125
|
+
'primary',
|
|
126
|
+
'accent',
|
|
127
|
+
'neutral',
|
|
128
|
+
'error',
|
|
129
|
+
'success',
|
|
130
|
+
'warning',
|
|
131
|
+
'info',
|
|
132
|
+
];
|
|
133
|
+
//# sourceMappingURL=tokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mapples/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -20,7 +20,25 @@
|
|
|
20
20
|
"directory": "packages/@mapples/ui"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
+
"@react-native-vector-icons/ant-design": ">=13.0.0",
|
|
24
|
+
"@react-native-vector-icons/entypo": ">=13.0.0",
|
|
25
|
+
"@react-native-vector-icons/evil-icons": ">=13.0.0",
|
|
26
|
+
"@react-native-vector-icons/feather": ">=13.0.0",
|
|
27
|
+
"@react-native-vector-icons/fontawesome": ">=13.0.0",
|
|
28
|
+
"@react-native-vector-icons/fontawesome5": ">=13.0.0",
|
|
29
|
+
"@react-native-vector-icons/fontawesome6": ">=13.0.0",
|
|
30
|
+
"@react-native-vector-icons/fontisto": ">=13.0.0",
|
|
31
|
+
"@react-native-vector-icons/foundation": ">=13.0.0",
|
|
32
|
+
"@react-native-vector-icons/ionicons": ">=13.0.0",
|
|
33
|
+
"@react-native-vector-icons/lucide": ">=13.0.0",
|
|
34
|
+
"@react-native-vector-icons/material-design-icons": ">=13.0.0",
|
|
35
|
+
"@react-native-vector-icons/material-icons": ">=13.0.0",
|
|
36
|
+
"@react-native-vector-icons/octicons": ">=21.0.0",
|
|
37
|
+
"@react-native-vector-icons/simple-line-icons": ">=13.0.0",
|
|
38
|
+
"@react-native-vector-icons/zocial": ">=13.0.0",
|
|
39
|
+
"expo-image": ">=1.0.0",
|
|
23
40
|
"expo-linear-gradient": ">=12.0.0",
|
|
41
|
+
"expo-video": ">=1.0.0",
|
|
24
42
|
"jsbarcode": "^3.11.5",
|
|
25
43
|
"react": ">=18.0.0 <20.0.0",
|
|
26
44
|
"react-native": ">=0.71.0",
|
|
@@ -28,8 +46,65 @@
|
|
|
28
46
|
"react-native-svg": ">=12.0.0"
|
|
29
47
|
},
|
|
30
48
|
"peerDependenciesMeta": {
|
|
49
|
+
"@react-native-vector-icons/ant-design": {
|
|
50
|
+
"optional": true
|
|
51
|
+
},
|
|
52
|
+
"@react-native-vector-icons/entypo": {
|
|
53
|
+
"optional": true
|
|
54
|
+
},
|
|
55
|
+
"@react-native-vector-icons/evil-icons": {
|
|
56
|
+
"optional": true
|
|
57
|
+
},
|
|
58
|
+
"@react-native-vector-icons/feather": {
|
|
59
|
+
"optional": true
|
|
60
|
+
},
|
|
61
|
+
"@react-native-vector-icons/fontawesome": {
|
|
62
|
+
"optional": true
|
|
63
|
+
},
|
|
64
|
+
"@react-native-vector-icons/fontawesome5": {
|
|
65
|
+
"optional": true
|
|
66
|
+
},
|
|
67
|
+
"@react-native-vector-icons/fontawesome6": {
|
|
68
|
+
"optional": true
|
|
69
|
+
},
|
|
70
|
+
"@react-native-vector-icons/fontisto": {
|
|
71
|
+
"optional": true
|
|
72
|
+
},
|
|
73
|
+
"@react-native-vector-icons/foundation": {
|
|
74
|
+
"optional": true
|
|
75
|
+
},
|
|
76
|
+
"@react-native-vector-icons/ionicons": {
|
|
77
|
+
"optional": true
|
|
78
|
+
},
|
|
79
|
+
"@react-native-vector-icons/lucide": {
|
|
80
|
+
"optional": true
|
|
81
|
+
},
|
|
82
|
+
"@react-native-vector-icons/material-design-icons": {
|
|
83
|
+
"optional": true
|
|
84
|
+
},
|
|
85
|
+
"@react-native-vector-icons/material-icons": {
|
|
86
|
+
"optional": true
|
|
87
|
+
},
|
|
88
|
+
"@react-native-vector-icons/octicons": {
|
|
89
|
+
"optional": true
|
|
90
|
+
},
|
|
91
|
+
"@react-native-vector-icons/simple-line-icons": {
|
|
92
|
+
"optional": true
|
|
93
|
+
},
|
|
94
|
+
"@react-native-vector-icons/zocial": {
|
|
95
|
+
"optional": true
|
|
96
|
+
},
|
|
31
97
|
"expo-linear-gradient": {
|
|
32
98
|
"optional": true
|
|
99
|
+
},
|
|
100
|
+
"expo-video": {
|
|
101
|
+
"optional": true
|
|
102
|
+
},
|
|
103
|
+
"jsbarcode": {
|
|
104
|
+
"optional": true
|
|
105
|
+
},
|
|
106
|
+
"react-native-qrcode-svg": {
|
|
107
|
+
"optional": true
|
|
33
108
|
}
|
|
34
109
|
},
|
|
35
110
|
"devDependencies": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MockIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/media/Icon/MockIcon.tsx"],"names":[],"mappings":"AAGA,OAAY,EAAE,QAAQ,EAAQ,MAAM,kBAAkB,CAAC;;;;AAmBvD,wBAAgC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MockIcon.js","sourceRoot":"","sources":["../../../../src/components/media/Icon/MockIcon.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,GAAG,EAAE,EAAY,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAEvD;;;;;;;;GAQG;AACH,MAAM,QAAQ,GAAiB,CAAC,KAAK,EAAE,EAAE;IACvC,OAAO,CACL,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,CAAC,OAAO,CAAC,aAAa,CACnC;MAAA,CAAC,IAAI,CAAC,CAAC,CAAC,spBAAspB,CAAC,EAAE,IAAI,CACvqB;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC,QAAQ,CAAC,CAAC"}
|
|
File without changes
|
|
File without changes
|