@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.
@@ -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<L extends string = string> {
26
- language: L;
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<L extends string = string> {
19
+ export interface ScreenConfig {
35
20
  key: string;
36
- component: ComponentType<ScreenComponentProps<L>>;
21
+ component: ComponentType<ScreenComponentProps>;
37
22
  }
38
23
  /**
39
24
  * Configuration for a device (iPhone, iPad, Mac, etc.)
40
25
  */
41
- export interface DeviceConfig<L extends string = string> {
26
+ export interface DeviceConfig {
42
27
  key: string;
43
28
  fastlaneKeys: string[];
44
29
  width: number;
45
30
  height: number;
46
- screens: ScreenConfig<L>[];
31
+ screens: ScreenConfig[];
47
32
  }
48
33
  /**
49
34
  * Root project configuration
50
35
  */
51
- export interface ProjectConfig<L extends string = string> {
52
- languages: L[];
53
- devices: DeviceConfig<L>[];
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<L extends string = string> {
43
+ export interface ScreenProps {
59
44
  deviceKey: string;
60
45
  screenKey: string;
61
- language: L;
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,OAAO;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,EAAE,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IAC7D,QAAQ,EAAE,CAAC,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IACrD,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC;CACnD;AAED;;GAEG;AACH,MAAM,WAAW,YAAY,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IACrD,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,aAAa,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IACtD,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@screegen/components",
3
- "version": "0.0.1",
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
+ }