@gardenerim/css 1.0.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/CHANGELOG.md +121 -0
- package/LICENSE +21 -0
- package/README.md +591 -0
- package/dist/components/ai-compositions.min.css +2 -0
- package/dist/components/ai-extended.min.css +2 -0
- package/dist/components/ai.min.css +2 -0
- package/dist/components/auth-compositions.min.css +2 -0
- package/dist/components/basic.min.css +2 -0
- package/dist/components/catalog.min.css +2 -0
- package/dist/components/commerce-compositions.min.css +2 -0
- package/dist/components/content-compositions.min.css +2 -0
- package/dist/components/data-compositions.min.css +2 -0
- package/dist/components/data.min.css +2 -0
- package/dist/components/desktop-compositions.min.css +2 -0
- package/dist/components/desktop.min.css +2 -0
- package/dist/components/extended.min.css +2 -0
- package/dist/components/feedback.min.css +2 -0
- package/dist/components/form-compositions.min.css +2 -0
- package/dist/components/forms.min.css +2 -0
- package/dist/components/grid.min.css +2 -0
- package/dist/components/help.min.css +2 -0
- package/dist/components/layouts.min.css +2 -0
- package/dist/components/mobile-compositions.min.css +2 -0
- package/dist/components/navigation-compositions.min.css +2 -0
- package/dist/components/navigation.min.css +2 -0
- package/dist/components/page.min.css +2 -0
- package/dist/components/primitives.min.css +2 -0
- package/dist/components/recipes.min.css +2 -0
- package/dist/components/regions.min.css +2 -0
- package/dist/components/selection-compositions.min.css +2 -0
- package/dist/components/solution-compositions.min.css +2 -0
- package/dist/gardener.ai.css +236 -0
- package/dist/gardener.ai.min.css +3 -0
- package/dist/gardener.ai.min.css.map +7 -0
- package/dist/gardener.builds.json +7491 -0
- package/dist/gardener.capabilities.json +3784 -0
- package/dist/gardener.compatibility.json +1209 -0
- package/dist/gardener.components.css +3496 -0
- package/dist/gardener.components.min.css +3 -0
- package/dist/gardener.components.min.css.map +7 -0
- package/dist/gardener.core.css +1486 -0
- package/dist/gardener.core.min.css +3 -0
- package/dist/gardener.core.min.css.map +7 -0
- package/dist/gardener.css +7153 -0
- package/dist/gardener.d.ts +42 -0
- package/dist/gardener.electron.d.ts +5 -0
- package/dist/gardener.electron.js +24 -0
- package/dist/gardener.electron.min.js +3 -0
- package/dist/gardener.electron.min.js.map +7 -0
- package/dist/gardener.manifest.json +14557 -0
- package/dist/gardener.min.css +3 -0
- package/dist/gardener.min.css.map +7 -0
- package/dist/gardener.performance.json +1628 -0
- package/dist/gardener.public-api.json +2169 -0
- package/dist/gardener.recipes.json +1444 -0
- package/dist/gardener.runtime.js +2224 -0
- package/dist/gardener.runtime.min.js +3 -0
- package/dist/gardener.runtime.min.js.map +7 -0
- package/dist/gardener.tauri.d.ts +5 -0
- package/dist/gardener.tauri.js +28 -0
- package/dist/gardener.tauri.min.js +3 -0
- package/dist/gardener.tauri.min.js.map +7 -0
- package/dist/gardener.themes.css +1415 -0
- package/dist/gardener.themes.min.css +3 -0
- package/dist/gardener.themes.min.css.map +7 -0
- package/dist/gardener.utilities.css +1940 -0
- package/dist/gardener.utilities.json +92279 -0
- package/dist/gardener.utilities.min.css +3 -0
- package/dist/gardener.utilities.min.css.map +7 -0
- package/dist/platforms/gardener.desktop.min.css +2 -0
- package/dist/platforms/gardener.electron.min.css +2 -0
- package/dist/platforms/gardener.mobile.min.css +2 -0
- package/dist/platforms/gardener.tauri.min.css +2 -0
- package/dist/platforms/gardener.web.min.css +2 -0
- package/metadata/builds.schema.json +148 -0
- package/metadata/capabilities.json +3784 -0
- package/metadata/capabilities.schema.json +61 -0
- package/metadata/compatibility.json +1209 -0
- package/metadata/compatibility.schema.json +85 -0
- package/metadata/components.json +9082 -0
- package/metadata/components.schema.json +58 -0
- package/metadata/custom-build.schema.json +46 -0
- package/metadata/manifest.schema.json +47 -0
- package/metadata/performance-budgets.schema.json +103 -0
- package/metadata/performance-report.schema.json +194 -0
- package/metadata/public-api.json +2169 -0
- package/metadata/public-api.schema.json +165 -0
- package/metadata/recipes.json +1444 -0
- package/metadata/recipes.schema.json +39 -0
- package/metadata/schema.json +7 -0
- package/metadata/utilities.schema.json +29 -0
- package/package.json +177 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://gardener.style/schema/recipes.schema.json",
|
|
4
|
+
"title": "Gardener page and composition recipes",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["$schema", "schemaVersion", "recipes"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"$schema": { "enum": ["./recipes.schema.json", "../metadata/recipes.schema.json"] },
|
|
10
|
+
"schemaVersion": { "const": 2 },
|
|
11
|
+
"recipes": {
|
|
12
|
+
"type": "array",
|
|
13
|
+
"minItems": 1,
|
|
14
|
+
"items": { "$ref": "#/$defs/recipe" },
|
|
15
|
+
"uniqueItems": true
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"$defs": {
|
|
19
|
+
"name": { "type": "string", "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$" },
|
|
20
|
+
"platform": { "enum": ["web", "mobile", "tablet", "desktop", "tauri", "electron", "pwa", "desktop-webview", "print"] },
|
|
21
|
+
"uniqueNames": { "type": "array", "minItems": 1, "items": { "type": "string", "minLength": 1 }, "uniqueItems": true },
|
|
22
|
+
"recipe": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"required": ["id", "name", "category", "platforms", "root", "parts", "useFor"],
|
|
26
|
+
"properties": {
|
|
27
|
+
"id": { "type": "string", "pattern": "^[a-z][a-z0-9-]*(?:\\.[a-z][a-z0-9-]*)+$" },
|
|
28
|
+
"name": { "type": "string", "minLength": 1 },
|
|
29
|
+
"category": { "$ref": "#/$defs/name" },
|
|
30
|
+
"platforms": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/platform" }, "uniqueItems": true },
|
|
31
|
+
"root": { "type": "string", "pattern": "^\\.g-[a-z0-9-]+$" },
|
|
32
|
+
"parts": { "type": "array", "minItems": 1, "items": { "type": "string", "pattern": "^g-[a-z0-9]+(?:-[a-z0-9*]+)*$" }, "uniqueItems": true },
|
|
33
|
+
"behaviors": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/name" }, "uniqueItems": true },
|
|
34
|
+
"adapters": { "type": "array", "minItems": 1, "items": { "enum": ["tauri", "electron"] }, "uniqueItems": true },
|
|
35
|
+
"useFor": { "$ref": "#/$defs/uniqueNames" }
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://gardener.style/schema/components.json",
|
|
4
|
+
"$ref": "./components.schema.json",
|
|
5
|
+
"title": "Deprecated compatibility alias for components.schema.json",
|
|
6
|
+
"$comment": "Use components.schema.json. This alias remains available through the 0.x line."
|
|
7
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://gardener.style/schema/utilities.schema.json",
|
|
4
|
+
"title": "Gardener generated utility catalog",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["$schema", "schemaVersion", "classPrefix", "count", "utilities"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"$schema": { "const": "../metadata/utilities.schema.json" },
|
|
10
|
+
"schemaVersion": { "const": 2 },
|
|
11
|
+
"classPrefix": { "const": "g-" },
|
|
12
|
+
"count": { "type": "integer", "minimum": 0 },
|
|
13
|
+
"utilities": {
|
|
14
|
+
"type": "array",
|
|
15
|
+
"uniqueItems": true,
|
|
16
|
+
"items": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"additionalProperties": false,
|
|
19
|
+
"required": ["class", "selector", "declarations", "condition"],
|
|
20
|
+
"properties": {
|
|
21
|
+
"class": { "type": "string", "pattern": "^g-[A-Za-z0-9_:/.-]+$" },
|
|
22
|
+
"selector": { "type": "string", "minLength": 1 },
|
|
23
|
+
"declarations": { "type": "array", "minItems": 1, "items": { "type": "string", "minLength": 1 } },
|
|
24
|
+
"condition": { "type": ["string", "null"] }
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@gardenerim/css",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "A comprehensive, framework-agnostic CSS and web component foundation for human and AI-authored interfaces.",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/deecase/gardener.git",
|
|
8
|
+
"directory": "packages/css"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/deecase/gardener/tree/main/packages/css#readme",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/deecase/gardener/issues"
|
|
13
|
+
},
|
|
14
|
+
"type": "module",
|
|
15
|
+
"sideEffects": [
|
|
16
|
+
"*.css",
|
|
17
|
+
"dist/*.css",
|
|
18
|
+
"dist/**/*.css",
|
|
19
|
+
"dist/gardener.runtime.js",
|
|
20
|
+
"dist/gardener.runtime.min.js"
|
|
21
|
+
],
|
|
22
|
+
"style": "./dist/gardener.css",
|
|
23
|
+
"types": "./dist/gardener.d.ts",
|
|
24
|
+
"files": [
|
|
25
|
+
"dist",
|
|
26
|
+
"metadata",
|
|
27
|
+
"README.md",
|
|
28
|
+
"CHANGELOG.md",
|
|
29
|
+
"LICENSE"
|
|
30
|
+
],
|
|
31
|
+
"exports": {
|
|
32
|
+
".": {
|
|
33
|
+
"types": "./dist/gardener.d.ts",
|
|
34
|
+
"style": "./dist/gardener.css",
|
|
35
|
+
"import": "./dist/gardener.runtime.js",
|
|
36
|
+
"default": "./dist/gardener.runtime.js"
|
|
37
|
+
},
|
|
38
|
+
"./min.css": "./dist/gardener.min.css",
|
|
39
|
+
"./core.css": "./dist/gardener.core.css",
|
|
40
|
+
"./core.min.css": "./dist/gardener.core.min.css",
|
|
41
|
+
"./utilities.css": "./dist/gardener.utilities.css",
|
|
42
|
+
"./utilities.min.css": "./dist/gardener.utilities.min.css",
|
|
43
|
+
"./components.css": "./dist/gardener.components.css",
|
|
44
|
+
"./components.min.css": "./dist/gardener.components.min.css",
|
|
45
|
+
"./ai.css": "./dist/gardener.ai.css",
|
|
46
|
+
"./ai.min.css": "./dist/gardener.ai.min.css",
|
|
47
|
+
"./themes.css": "./dist/gardener.themes.css",
|
|
48
|
+
"./themes.min.css": "./dist/gardener.themes.min.css",
|
|
49
|
+
"./platform/web.css": "./dist/platforms/gardener.web.min.css",
|
|
50
|
+
"./platform/mobile.css": "./dist/platforms/gardener.mobile.min.css",
|
|
51
|
+
"./platform/desktop.css": "./dist/platforms/gardener.desktop.min.css",
|
|
52
|
+
"./platform/tauri.css": "./dist/platforms/gardener.tauri.min.css",
|
|
53
|
+
"./platform/electron.css": "./dist/platforms/gardener.electron.min.css",
|
|
54
|
+
"./component/*": "./dist/components/*.min.css",
|
|
55
|
+
"./component/*.css": "./dist/components/*.min.css",
|
|
56
|
+
"./runtime": {
|
|
57
|
+
"types": "./dist/gardener.d.ts",
|
|
58
|
+
"import": "./dist/gardener.runtime.js",
|
|
59
|
+
"default": "./dist/gardener.runtime.js"
|
|
60
|
+
},
|
|
61
|
+
"./runtime.js": {
|
|
62
|
+
"types": "./dist/gardener.d.ts",
|
|
63
|
+
"import": "./dist/gardener.runtime.js",
|
|
64
|
+
"default": "./dist/gardener.runtime.js"
|
|
65
|
+
},
|
|
66
|
+
"./runtime.min.js": {
|
|
67
|
+
"types": "./dist/gardener.d.ts",
|
|
68
|
+
"import": "./dist/gardener.runtime.min.js",
|
|
69
|
+
"default": "./dist/gardener.runtime.min.js"
|
|
70
|
+
},
|
|
71
|
+
"./manifest": "./dist/gardener.manifest.json",
|
|
72
|
+
"./components-manifest": "./metadata/components.json",
|
|
73
|
+
"./utilities-manifest": "./dist/gardener.utilities.json",
|
|
74
|
+
"./recipes": "./dist/gardener.recipes.json",
|
|
75
|
+
"./capabilities": "./dist/gardener.capabilities.json",
|
|
76
|
+
"./public-api": "./dist/gardener.public-api.json",
|
|
77
|
+
"./builds": "./dist/gardener.builds.json",
|
|
78
|
+
"./performance": "./dist/gardener.performance.json",
|
|
79
|
+
"./compatibility": "./dist/gardener.compatibility.json",
|
|
80
|
+
"./schema/components": "./metadata/components.schema.json",
|
|
81
|
+
"./schema/recipes": "./metadata/recipes.schema.json",
|
|
82
|
+
"./schema/capabilities": "./metadata/capabilities.schema.json",
|
|
83
|
+
"./schema/utilities": "./metadata/utilities.schema.json",
|
|
84
|
+
"./schema/manifest": "./metadata/manifest.schema.json",
|
|
85
|
+
"./schema/public-api": "./metadata/public-api.schema.json",
|
|
86
|
+
"./schema/builds": "./metadata/builds.schema.json",
|
|
87
|
+
"./schema/custom-build": "./metadata/custom-build.schema.json",
|
|
88
|
+
"./schema/performance-budgets": "./metadata/performance-budgets.schema.json",
|
|
89
|
+
"./schema/performance-report": "./metadata/performance-report.schema.json",
|
|
90
|
+
"./schema/compatibility": "./metadata/compatibility.schema.json",
|
|
91
|
+
"./tauri": {
|
|
92
|
+
"types": "./dist/gardener.tauri.d.ts",
|
|
93
|
+
"import": "./dist/gardener.tauri.js",
|
|
94
|
+
"default": "./dist/gardener.tauri.js"
|
|
95
|
+
},
|
|
96
|
+
"./tauri.min.js": {
|
|
97
|
+
"types": "./dist/gardener.tauri.d.ts",
|
|
98
|
+
"import": "./dist/gardener.tauri.min.js",
|
|
99
|
+
"default": "./dist/gardener.tauri.min.js"
|
|
100
|
+
},
|
|
101
|
+
"./electron": {
|
|
102
|
+
"types": "./dist/gardener.electron.d.ts",
|
|
103
|
+
"import": "./dist/gardener.electron.js",
|
|
104
|
+
"default": "./dist/gardener.electron.js"
|
|
105
|
+
},
|
|
106
|
+
"./electron.min.js": {
|
|
107
|
+
"types": "./dist/gardener.electron.d.ts",
|
|
108
|
+
"import": "./dist/gardener.electron.min.js",
|
|
109
|
+
"default": "./dist/gardener.electron.min.js"
|
|
110
|
+
},
|
|
111
|
+
"./package.json": "./package.json"
|
|
112
|
+
},
|
|
113
|
+
"scripts": {
|
|
114
|
+
"build": "node scripts/build.mjs",
|
|
115
|
+
"build:custom": "npm run build && node scripts/build-custom.mjs",
|
|
116
|
+
"build:platform": "npm run build && node scripts/build-custom.mjs",
|
|
117
|
+
"verify:reproducible": "node scripts/verify-reproducible.mjs",
|
|
118
|
+
"verify:compatibility": "node scripts/verify-compatibility.mjs",
|
|
119
|
+
"verify:package": "node scripts/verify-package.mjs && publint",
|
|
120
|
+
"budget": "node scripts/budget.mjs",
|
|
121
|
+
"check": "node scripts/check.mjs",
|
|
122
|
+
"audit": "node scripts/audit.mjs",
|
|
123
|
+
"contracts": "node scripts/contracts.mjs",
|
|
124
|
+
"validate": "node scripts/validate.mjs examples/showcase.html examples/auth.html examples/mobile-category.html examples/cms-desktop.html examples/runtime-lab.html examples/grid.html examples/regions.html examples/primitives.html examples/page-components.html examples/help-system.html examples/form-compositions.html examples/navigation-compositions.html examples/data-compositions.html examples/selection-compositions.html examples/content-compositions.html examples/auth-compositions.html examples/commerce-compositions.html examples/mobile-compositions.html examples/desktop-compositions.html examples/ai-compositions.html examples/solution-compositions.html",
|
|
125
|
+
"test": "npm run build && npm run verify:reproducible && npm run budget && npm run test:schema && npm run contracts && npm run verify:compatibility && npm run test:types && npm run test:build && npm run test:runtime && npm run test:html && npm run check && npm run audit && npm run validate && npm run verify:package && npm run test:e2e",
|
|
126
|
+
"test:schema": "node --test --test-concurrency=1 tests/schema.test.mjs",
|
|
127
|
+
"test:runtime": "node --test --test-concurrency=1 tests/runtime.test.mjs",
|
|
128
|
+
"test:html": "node --test --test-concurrency=1 tests/html.test.mjs",
|
|
129
|
+
"test:build": "node --test --test-concurrency=1 tests/build.test.mjs",
|
|
130
|
+
"test:types": "tsc -p tsconfig.types.json",
|
|
131
|
+
"test:browser": "playwright test --project=desktop-chromium --project=desktop-webkit",
|
|
132
|
+
"test:browser:firefox": "node scripts/test-firefox.mjs",
|
|
133
|
+
"test:browser:all": "playwright test --project=desktop-chromium --project=desktop-firefox --project=desktop-webkit",
|
|
134
|
+
"test:mobile": "playwright test --project=mobile-chromium --project=mobile-webkit",
|
|
135
|
+
"test:a11y": "playwright test --project=accessibility-chromium",
|
|
136
|
+
"test:e2e": "npm run test:browser && npm run test:browser:firefox && npm run test:mobile && npm run test:a11y",
|
|
137
|
+
"release:verify": "npm test",
|
|
138
|
+
"prepublishOnly": "npm run release:verify",
|
|
139
|
+
"dev": "node scripts/serve.mjs"
|
|
140
|
+
},
|
|
141
|
+
"keywords": [
|
|
142
|
+
"css",
|
|
143
|
+
"design-system",
|
|
144
|
+
"components",
|
|
145
|
+
"dashboard",
|
|
146
|
+
"mobile",
|
|
147
|
+
"ai-ui",
|
|
148
|
+
"cms",
|
|
149
|
+
"tauri",
|
|
150
|
+
"electron"
|
|
151
|
+
],
|
|
152
|
+
"license": "MIT",
|
|
153
|
+
"engines": {
|
|
154
|
+
"node": ">=18.18"
|
|
155
|
+
},
|
|
156
|
+
"browserslist": [
|
|
157
|
+
"Chrome >= 100",
|
|
158
|
+
"Edge >= 100",
|
|
159
|
+
"Firefox >= 100",
|
|
160
|
+
"Safari >= 15.4",
|
|
161
|
+
"iOS >= 15.4"
|
|
162
|
+
],
|
|
163
|
+
"publishConfig": {
|
|
164
|
+
"access": "public",
|
|
165
|
+
"provenance": true
|
|
166
|
+
},
|
|
167
|
+
"devDependencies": {
|
|
168
|
+
"@axe-core/playwright": "4.13.0",
|
|
169
|
+
"@playwright/test": "1.62.1",
|
|
170
|
+
"ajv": "8.20.0",
|
|
171
|
+
"esbuild": "0.28.2",
|
|
172
|
+
"happy-dom": "20.11.8",
|
|
173
|
+
"parse5": "8.0.1",
|
|
174
|
+
"publint": "0.3.24",
|
|
175
|
+
"typescript": "7.0.2"
|
|
176
|
+
}
|
|
177
|
+
}
|