@framingui/core 0.4.3 → 0.4.5

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.
@@ -53,14 +53,14 @@ export declare const ShellRegionSchema: z.ZodObject<{
53
53
  collapsible: z.ZodOptional<z.ZodBoolean>;
54
54
  defaultCollapsed: z.ZodOptional<z.ZodBoolean>;
55
55
  }, "strip", z.ZodTypeAny, {
56
- name: string;
57
56
  size: string;
57
+ name: string;
58
58
  position: "top" | "bottom" | "left" | "right" | "center";
59
59
  collapsible?: boolean | undefined;
60
60
  defaultCollapsed?: boolean | undefined;
61
61
  }, {
62
- name: string;
63
62
  size: string;
63
+ name: string;
64
64
  position: "top" | "bottom" | "left" | "right" | "center";
65
65
  collapsible?: boolean | undefined;
66
66
  defaultCollapsed?: boolean | undefined;
@@ -85,14 +85,14 @@ export declare const ShellTokenSchema: z.ZodObject<{
85
85
  collapsible: z.ZodOptional<z.ZodBoolean>;
86
86
  defaultCollapsed: z.ZodOptional<z.ZodBoolean>;
87
87
  }, "strip", z.ZodTypeAny, {
88
- name: string;
89
88
  size: string;
89
+ name: string;
90
90
  position: "top" | "bottom" | "left" | "right" | "center";
91
91
  collapsible?: boolean | undefined;
92
92
  defaultCollapsed?: boolean | undefined;
93
93
  }, {
94
- name: string;
95
94
  size: string;
95
+ name: string;
96
96
  position: "top" | "bottom" | "left" | "right" | "center";
97
97
  collapsible?: boolean | undefined;
98
98
  defaultCollapsed?: boolean | undefined;
@@ -106,8 +106,8 @@ export declare const ShellTokenSchema: z.ZodObject<{
106
106
  tokenBindings: Record<string, string>;
107
107
  platform: "web" | "mobile" | "desktop";
108
108
  regions: {
109
- name: string;
110
109
  size: string;
110
+ name: string;
111
111
  position: "top" | "bottom" | "left" | "right" | "center";
112
112
  collapsible?: boolean | undefined;
113
113
  defaultCollapsed?: boolean | undefined;
@@ -119,8 +119,8 @@ export declare const ShellTokenSchema: z.ZodObject<{
119
119
  tokenBindings: Record<string, string>;
120
120
  platform: "web" | "mobile" | "desktop";
121
121
  regions: {
122
- name: string;
123
122
  size: string;
123
+ name: string;
124
124
  position: "top" | "bottom" | "left" | "right" | "center";
125
125
  collapsible?: boolean | undefined;
126
126
  defaultCollapsed?: boolean | undefined;
@@ -307,7 +307,7 @@ export declare const SectionPatternTokenSchema: z.ZodObject<{
307
307
  }>>;
308
308
  tokenBindings: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>;
309
309
  }, "strip", z.ZodTypeAny, {
310
- type: "split" | "grid" | "flex" | "stack" | "container";
310
+ type: "grid" | "flex" | "split" | "stack" | "container";
311
311
  css: {
312
312
  display: "grid" | "flex";
313
313
  padding?: string | undefined;
@@ -334,7 +334,7 @@ export declare const SectionPatternTokenSchema: z.ZodObject<{
334
334
  description: string;
335
335
  tokenBindings: Record<string, string>;
336
336
  }, {
337
- type: "split" | "grid" | "flex" | "stack" | "container";
337
+ type: "grid" | "flex" | "split" | "stack" | "container";
338
338
  css: {
339
339
  display: "grid" | "flex";
340
340
  padding?: string | undefined;
@@ -782,14 +782,14 @@ export declare const MobileShellTokenSchema: z.ZodObject<{
782
782
  collapsible: z.ZodOptional<z.ZodBoolean>;
783
783
  defaultCollapsed: z.ZodOptional<z.ZodBoolean>;
784
784
  }, "strip", z.ZodTypeAny, {
785
- name: string;
786
785
  size: string;
786
+ name: string;
787
787
  position: "top" | "bottom" | "left" | "right" | "center";
788
788
  collapsible?: boolean | undefined;
789
789
  defaultCollapsed?: boolean | undefined;
790
790
  }, {
791
- name: string;
792
791
  size: string;
792
+ name: string;
793
793
  position: "top" | "bottom" | "left" | "right" | "center";
794
794
  collapsible?: boolean | undefined;
795
795
  defaultCollapsed?: boolean | undefined;
@@ -1066,8 +1066,8 @@ export declare const MobileShellTokenSchema: z.ZodObject<{
1066
1066
  };
1067
1067
  platform: "mobile";
1068
1068
  regions: {
1069
- name: string;
1070
1069
  size: string;
1070
+ name: string;
1071
1071
  position: "top" | "bottom" | "left" | "right" | "center";
1072
1072
  collapsible?: boolean | undefined;
1073
1073
  defaultCollapsed?: boolean | undefined;
@@ -1144,8 +1144,8 @@ export declare const MobileShellTokenSchema: z.ZodObject<{
1144
1144
  };
1145
1145
  platform: "mobile";
1146
1146
  regions: {
1147
- name: string;
1148
1147
  size: string;
1148
+ name: string;
1149
1149
  position: "top" | "bottom" | "left" | "right" | "center";
1150
1150
  collapsible?: boolean | undefined;
1151
1151
  defaultCollapsed?: boolean | undefined;
@@ -1302,14 +1302,14 @@ export declare const LLMShellInputSchema: z.ZodObject<{
1302
1302
  collapsible: z.ZodOptional<z.ZodBoolean>;
1303
1303
  defaultCollapsed: z.ZodOptional<z.ZodBoolean>;
1304
1304
  }, "strip", z.ZodTypeAny, {
1305
- name: string;
1306
1305
  size: string;
1306
+ name: string;
1307
1307
  position: "top" | "bottom" | "left" | "right" | "center";
1308
1308
  collapsible?: boolean | undefined;
1309
1309
  defaultCollapsed?: boolean | undefined;
1310
1310
  }, {
1311
- name: string;
1312
1311
  size: string;
1312
+ name: string;
1313
1313
  position: "top" | "bottom" | "left" | "right" | "center";
1314
1314
  collapsible?: boolean | undefined;
1315
1315
  defaultCollapsed?: boolean | undefined;
@@ -1318,8 +1318,8 @@ export declare const LLMShellInputSchema: z.ZodObject<{
1318
1318
  id: string;
1319
1319
  platform: "web" | "mobile" | "desktop";
1320
1320
  regions: {
1321
- name: string;
1322
1321
  size: string;
1322
+ name: string;
1323
1323
  position: "top" | "bottom" | "left" | "right" | "center";
1324
1324
  collapsible?: boolean | undefined;
1325
1325
  defaultCollapsed?: boolean | undefined;
@@ -1328,8 +1328,8 @@ export declare const LLMShellInputSchema: z.ZodObject<{
1328
1328
  id: string;
1329
1329
  platform: "web" | "mobile" | "desktop";
1330
1330
  regions: {
1331
- name: string;
1332
1331
  size: string;
1332
+ name: string;
1333
1333
  position: "top" | "bottom" | "left" | "right" | "center";
1334
1334
  collapsible?: boolean | undefined;
1335
1335
  defaultCollapsed?: boolean | undefined;
@@ -1414,7 +1414,7 @@ export declare const LLMSectionInputSchema: z.ZodObject<{
1414
1414
  maxWidth?: string | undefined;
1415
1415
  }>;
1416
1416
  }, "strip", z.ZodTypeAny, {
1417
- type: "split" | "grid" | "flex" | "stack" | "container";
1417
+ type: "grid" | "flex" | "split" | "stack" | "container";
1418
1418
  css: {
1419
1419
  display: "grid" | "flex";
1420
1420
  padding?: string | undefined;
@@ -1428,7 +1428,7 @@ export declare const LLMSectionInputSchema: z.ZodObject<{
1428
1428
  };
1429
1429
  id: string;
1430
1430
  }, {
1431
- type: "split" | "grid" | "flex" | "stack" | "container";
1431
+ type: "grid" | "flex" | "split" | "stack" | "container";
1432
1432
  css: {
1433
1433
  display: "grid" | "flex";
1434
1434
  padding?: string | undefined;
@@ -16,15 +16,15 @@ export declare const PropDefinitionSchema: z.ZodObject<{
16
16
  defaultValue: z.ZodOptional<z.ZodUnknown>;
17
17
  options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
18
18
  }, "strip", z.ZodTypeAny, {
19
- name: string;
20
19
  type: string;
20
+ name: string;
21
21
  description: string;
22
22
  required: boolean;
23
23
  options?: string[] | undefined;
24
24
  defaultValue?: unknown;
25
25
  }, {
26
- name: string;
27
26
  type: string;
27
+ name: string;
28
28
  description: string;
29
29
  required: boolean;
30
30
  options?: string[] | undefined;
@@ -73,15 +73,15 @@ export declare const ComponentSchemaZod: z.ZodObject<{
73
73
  defaultValue: z.ZodOptional<z.ZodUnknown>;
74
74
  options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
75
75
  }, "strip", z.ZodTypeAny, {
76
- name: string;
77
76
  type: string;
77
+ name: string;
78
78
  description: string;
79
79
  required: boolean;
80
80
  options?: string[] | undefined;
81
81
  defaultValue?: unknown;
82
82
  }, {
83
- name: string;
84
83
  type: string;
84
+ name: string;
85
85
  description: string;
86
86
  required: boolean;
87
87
  options?: string[] | undefined;
@@ -115,8 +115,8 @@ export declare const ComponentSchemaZod: z.ZodObject<{
115
115
  type: string;
116
116
  tokenBindings: Record<string, string>;
117
117
  props: {
118
- name: string;
119
118
  type: string;
119
+ name: string;
120
120
  description: string;
121
121
  required: boolean;
122
122
  options?: string[] | undefined;
@@ -136,8 +136,8 @@ export declare const ComponentSchemaZod: z.ZodObject<{
136
136
  type: string;
137
137
  tokenBindings: Record<string, string>;
138
138
  props: {
139
- name: string;
140
139
  type: string;
140
+ name: string;
141
141
  description: string;
142
142
  required: boolean;
143
143
  options?: string[] | undefined;
@@ -174,10 +174,10 @@ export declare const ScreenDefinitionSchema: z.ZodObject<{
174
174
  tags?: string[] | undefined;
175
175
  }>>;
176
176
  }, "strip", z.ZodTypeAny, {
177
- page: string;
178
177
  name: string;
179
178
  id: string;
180
179
  shell: string;
180
+ page: string;
181
181
  sections: {
182
182
  id: string;
183
183
  pattern: string;
@@ -199,10 +199,10 @@ export declare const ScreenDefinitionSchema: z.ZodObject<{
199
199
  tags?: string[] | undefined;
200
200
  } | undefined;
201
201
  }, {
202
- page: string;
203
202
  name: string;
204
203
  id: string;
205
204
  shell: string;
205
+ page: string;
206
206
  sections: {
207
207
  id: string;
208
208
  pattern: string;
@@ -68,16 +68,16 @@ export declare const ThemeWithTokensSchema: z.ZodObject<{
68
68
  muted: z.ZodString;
69
69
  inverse: z.ZodString;
70
70
  }, "strip", z.ZodTypeAny, {
71
- page: string;
72
71
  muted: string;
73
72
  inverse: string;
74
73
  elevated: string;
74
+ page: string;
75
75
  surface: string;
76
76
  }, {
77
- page: string;
78
77
  muted: string;
79
78
  inverse: string;
80
79
  elevated: string;
80
+ page: string;
81
81
  surface: string;
82
82
  }>;
83
83
  /** Foreground (text) colors with semantic meaning */
@@ -136,10 +136,10 @@ export declare const ThemeWithTokensSchema: z.ZodObject<{
136
136
  }>;
137
137
  }, "strip", z.ZodTypeAny, {
138
138
  background: {
139
- page: string;
140
139
  muted: string;
141
140
  inverse: string;
142
141
  elevated: string;
142
+ page: string;
143
143
  surface: string;
144
144
  };
145
145
  foreground: {
@@ -163,10 +163,10 @@ export declare const ThemeWithTokensSchema: z.ZodObject<{
163
163
  };
164
164
  }, {
165
165
  background: {
166
- page: string;
167
166
  muted: string;
168
167
  inverse: string;
169
168
  elevated: string;
169
+ page: string;
170
170
  surface: string;
171
171
  };
172
172
  foreground: {
@@ -206,10 +206,10 @@ export declare const ThemeWithTokensSchema: z.ZodObject<{
206
206
  };
207
207
  semantic: {
208
208
  background: {
209
- page: string;
210
209
  muted: string;
211
210
  inverse: string;
212
211
  elevated: string;
212
+ page: string;
213
213
  surface: string;
214
214
  };
215
215
  foreground: {
@@ -248,10 +248,10 @@ export declare const ThemeWithTokensSchema: z.ZodObject<{
248
248
  };
249
249
  semantic: {
250
250
  background: {
251
- page: string;
252
251
  muted: string;
253
252
  inverse: string;
254
253
  elevated: string;
254
+ page: string;
255
255
  surface: string;
256
256
  };
257
257
  foreground: {
@@ -315,10 +315,10 @@ export declare const ThemeWithTokensSchema: z.ZodObject<{
315
315
  };
316
316
  semantic: {
317
317
  background: {
318
- page: string;
319
318
  muted: string;
320
319
  inverse: string;
321
320
  elevated: string;
321
+ page: string;
322
322
  surface: string;
323
323
  };
324
324
  foreground: {
@@ -365,10 +365,10 @@ export declare const ThemeWithTokensSchema: z.ZodObject<{
365
365
  };
366
366
  semantic: {
367
367
  background: {
368
- page: string;
369
368
  muted: string;
370
369
  inverse: string;
371
370
  elevated: string;
371
+ page: string;
372
372
  surface: string;
373
373
  };
374
374
  foreground: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@framingui/core",
3
- "version": "0.4.3",
3
+ "version": "0.4.5",
4
4
  "description": "Core design system pipeline: Theme -> Blueprint -> Screen (~800 LOC)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -9,6 +9,10 @@
9
9
  ".": {
10
10
  "import": "./dist/index.js",
11
11
  "types": "./dist/index.d.ts"
12
+ },
13
+ "./template-catalog": {
14
+ "import": "./dist/catalog/templates/index.js",
15
+ "types": "./dist/catalog/templates/index.d.ts"
12
16
  }
13
17
  },
14
18
  "files": [
@@ -26,14 +30,6 @@
26
30
  "url": "https://github.com/soo-kate-yeon/framingui",
27
31
  "directory": "packages/core"
28
32
  },
29
- "scripts": {
30
- "build": "tsc && node ./scripts/copy-bundled-generated-data.mjs",
31
- "test": "vitest run",
32
- "test:watch": "vitest",
33
- "test:coverage": "vitest run --coverage",
34
- "lint": "eslint src __tests__ --ext .ts,.js",
35
- "prepublishOnly": "pnpm build"
36
- },
37
33
  "dependencies": {
38
34
  "zod": "^3.25.76"
39
35
  },
@@ -50,5 +46,12 @@
50
46
  "engines": {
51
47
  "node": ">=20.0.0"
52
48
  },
53
- "license": "MIT"
54
- }
49
+ "license": "MIT",
50
+ "scripts": {
51
+ "build": "node ./scripts/prepare-build.mjs && tsc && node ./scripts/copy-bundled-generated-data.mjs",
52
+ "test": "vitest run",
53
+ "test:watch": "vitest",
54
+ "test:coverage": "vitest run --coverage",
55
+ "lint": "eslint src __tests__ --ext .ts,.js"
56
+ }
57
+ }