@screegen/components 0.0.1 → 0.0.3
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/OverviewGrid/OverviewGrid.d.ts +5 -5
- package/dist/components/OverviewGrid/OverviewGrid.d.ts.map +1 -1
- package/dist/components/Screegen/OverviewPage.d.ts +6 -0
- package/dist/components/Screegen/OverviewPage.d.ts.map +1 -0
- package/dist/components/Screegen/Screegen.d.ts +6 -0
- package/dist/components/Screegen/Screegen.d.ts.map +1 -0
- package/dist/components/Screegen/ScreenPage.d.ts +6 -0
- package/dist/components/Screegen/ScreenPage.d.ts.map +1 -0
- package/dist/components/Screegen/index.d.ts +3 -0
- package/dist/components/Screegen/index.d.ts.map +1 -0
- package/dist/components/Screen/Screen.d.ts +4 -4
- package/dist/components/Screen/Screen.d.ts.map +1 -1
- package/dist/components/ScreengenConfig/ScreengenConfig.d.ts +3 -3
- package/dist/components/ScreengenConfig/ScreengenConfig.d.ts.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +378 -328
- package/dist/types/index.d.ts +11 -26
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +3 -4
package/dist/types/index.d.ts
CHANGED
|
@@ -4,26 +4,11 @@ import { ComponentType } from 'react';
|
|
|
4
4
|
*/
|
|
5
5
|
export type ColorScheme = "light" | "dark";
|
|
6
6
|
export declare const colorSchemes: ColorScheme[];
|
|
7
|
-
/**
|
|
8
|
-
* A feature item with title, description, and icon
|
|
9
|
-
*/
|
|
10
|
-
export interface Feature {
|
|
11
|
-
title: string;
|
|
12
|
-
description: string;
|
|
13
|
-
icon: string;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* A section of features with a title
|
|
17
|
-
*/
|
|
18
|
-
export interface FeatureSection {
|
|
19
|
-
title: string;
|
|
20
|
-
features: Feature[];
|
|
21
|
-
}
|
|
22
7
|
/**
|
|
23
8
|
* Props passed to screen components
|
|
24
9
|
*/
|
|
25
|
-
export interface ScreenComponentProps
|
|
26
|
-
language:
|
|
10
|
+
export interface ScreenComponentProps {
|
|
11
|
+
language: string;
|
|
27
12
|
deviceKey: string;
|
|
28
13
|
width: number;
|
|
29
14
|
height: number;
|
|
@@ -31,33 +16,33 @@ export interface ScreenComponentProps<L extends string = string> {
|
|
|
31
16
|
/**
|
|
32
17
|
* Configuration for a single screen
|
|
33
18
|
*/
|
|
34
|
-
export interface ScreenConfig
|
|
19
|
+
export interface ScreenConfig {
|
|
35
20
|
key: string;
|
|
36
|
-
component: ComponentType<ScreenComponentProps
|
|
21
|
+
component: ComponentType<ScreenComponentProps>;
|
|
37
22
|
}
|
|
38
23
|
/**
|
|
39
24
|
* Configuration for a device (iPhone, iPad, Mac, etc.)
|
|
40
25
|
*/
|
|
41
|
-
export interface DeviceConfig
|
|
26
|
+
export interface DeviceConfig {
|
|
42
27
|
key: string;
|
|
43
28
|
fastlaneKeys: string[];
|
|
44
29
|
width: number;
|
|
45
30
|
height: number;
|
|
46
|
-
screens: ScreenConfig
|
|
31
|
+
screens: ScreenConfig[];
|
|
47
32
|
}
|
|
48
33
|
/**
|
|
49
34
|
* Root project configuration
|
|
50
35
|
*/
|
|
51
|
-
export interface ProjectConfig
|
|
52
|
-
languages:
|
|
53
|
-
devices: DeviceConfig
|
|
36
|
+
export interface ProjectConfig {
|
|
37
|
+
languages: string[];
|
|
38
|
+
devices: DeviceConfig[];
|
|
54
39
|
}
|
|
55
40
|
/**
|
|
56
41
|
* Props for screen components
|
|
57
42
|
*/
|
|
58
|
-
export interface ScreenProps
|
|
43
|
+
export interface ScreenProps {
|
|
59
44
|
deviceKey: string;
|
|
60
45
|
screenKey: string;
|
|
61
|
-
language:
|
|
46
|
+
language: string;
|
|
62
47
|
}
|
|
63
48
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,CAAC;AAE3C,eAAO,MAAM,YAAY,EAAE,WAAW,EAAsB,CAAC;AAE7D;;GAEG;AACH,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,CAAC;AAE3C,eAAO,MAAM,YAAY,EAAE,WAAW,EAAsB,CAAC;AAE7D;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC;CAChD;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,YAAY,EAAE,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,EAAE,YAAY,EAAE,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@screegen/components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -20,8 +20,7 @@
|
|
|
20
20
|
"dev": "vite build --watch",
|
|
21
21
|
"build": "vite build",
|
|
22
22
|
"lint": "eslint src",
|
|
23
|
-
"test": "vitest run --coverage"
|
|
24
|
-
"publish": "npm publish --access=public"
|
|
23
|
+
"test": "vitest run --coverage"
|
|
25
24
|
},
|
|
26
25
|
"peerDependencies": {
|
|
27
26
|
"react": "^18.0.0",
|
|
@@ -58,4 +57,4 @@
|
|
|
58
57
|
"unplugged": true
|
|
59
58
|
}
|
|
60
59
|
}
|
|
61
|
-
}
|
|
60
|
+
}
|