@cagov/ca-ds 0.0.0-stage → 1.1.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/package.json CHANGED
@@ -1,6 +1,38 @@
1
1
  {
2
2
  "name": "@cagov/ca-ds",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.1.0",
4
+ "description": "The California Design System's toolbelt: validate, build, pack, preview, and publish a collection of items",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/cagov/cdt-design-system-prototype.git",
9
+ "directory": "packages/ca-ds"
10
+ },
11
+ "homepage": "https://github.com/cagov/cdt-design-system-prototype/tree/main/packages/ca-ds#readme",
12
+ "bugs": "https://github.com/cagov/cdt-design-system-prototype/issues",
13
+ "publishConfig": {
14
+ "access": "public"
15
+ },
16
+ "type": "module",
17
+ "engines": {
18
+ "node": ">=24"
19
+ },
20
+ "bin": {
21
+ "ca-ds": "ca-ds.js"
22
+ },
23
+ "exports": {
24
+ "./package.json": "./package.json"
25
+ },
26
+ "dependencies": {
27
+ "esbuild": "0.28.1",
28
+ "lightningcss": "1.32.0"
29
+ },
30
+ "peerDependencies": {
31
+ "playwright-core": "^1.64.1"
32
+ },
33
+ "peerDependenciesMeta": {
34
+ "playwright-core": {
35
+ "optional": true
36
+ }
37
+ }
38
+ }
package/preview.css ADDED
@@ -0,0 +1,58 @@
1
+ /* Demo chrome. It sets no type on bare elements, so the bundle's own output shows. */
2
+
3
+ /* Padding, not margin, so the body's background reaches the frame edge. */
4
+ body[data-preview-inset] {
5
+ padding: 1.5rem;
6
+ }
7
+
8
+ @media screen and (min-width: 1024px) {
9
+ body[data-preview-inset] {
10
+ padding: 2.5rem;
11
+ }
12
+ }
13
+
14
+ .role {
15
+ color: #8e8e8e;
16
+ font-family: ui-monospace, monospace;
17
+ font-size: 0.75rem;
18
+ }
19
+
20
+ .demo-note {
21
+ color: #555;
22
+ font-size: 0.875rem;
23
+ }
24
+
25
+ /* Check pages only; an example renders as a consumer's page would. */
26
+ body:not([data-preview-example]) section {
27
+ padding-block: 1rem;
28
+ border-block-end: 1px solid #ddd;
29
+ }
30
+
31
+ /* A class, since a bare hr rule would outrank divider's :where(hr). */
32
+ .demo-rule {
33
+ border: 0;
34
+ border-block-start: 1px solid #d9d9d9;
35
+ margin-block: 3rem;
36
+ }
37
+
38
+ .demo-label {
39
+ color: #8e8e8e;
40
+ font-family: ui-monospace, monospace;
41
+ font-size: 0.75rem;
42
+ margin-block: 2.5rem 0.5rem;
43
+ margin-inline: 0;
44
+ }
45
+
46
+ ca-layout .demo-label {
47
+ margin-inline: var(--ca-well-inset);
48
+ }
49
+
50
+ .demo-label-warn {
51
+ color: #a5391f;
52
+ }
53
+
54
+ .demo-well {
55
+ background: #eef4f8;
56
+ outline: 1px dashed #7fa7c4;
57
+ padding-block: 0.5rem;
58
+ }