@fungi.computer/caps 0.7.1 → 0.9.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/README.md +58 -0
- package/dist/blocks/app-bar.d.ts +4 -2
- package/dist/blocks/app-bar.js +3 -3
- package/dist/blocks/empty-state.d.ts +31 -4
- package/dist/blocks/empty-state.js +14 -4
- package/dist/blocks/loading-state.d.ts +41 -0
- package/dist/blocks/loading-state.js +18 -3
- package/dist/blocks/permission-grid.js +1 -1
- package/dist/blocks/result-state.d.ts +18 -0
- package/dist/blocks/result-state.js +7 -2
- package/dist/blocks/setup-notice.d.ts +32 -0
- package/dist/blocks/setup-notice.js +23 -0
- package/dist/components/button.js +2 -2
- package/dist/components/confirm-action.d.ts +6 -1
- package/dist/components/confirm-action.js +3 -3
- package/dist/components/dialog.js +1 -1
- package/dist/components/failure-line.d.ts +46 -0
- package/dist/components/failure-line.js +12 -0
- package/dist/components/keycap.d.ts +15 -2
- package/dist/components/keycap.js +3 -3
- package/dist/components/loader-blobs.d.ts +3 -2
- package/dist/components/loader-blobs.js +5 -3
- package/dist/components/loader.d.ts +8 -2
- package/dist/components/loader.js +4 -2
- package/dist/components/toaster.d.ts +5 -1
- package/dist/components/toaster.js +16 -2
- package/dist/styles.css +485 -28
- package/docs/api/README.md +2 -0
- package/docs/api/blocks/app-bar.md +9 -1
- package/docs/api/blocks/empty-state.md +30 -11
- package/docs/api/blocks/loading-state.md +33 -0
- package/docs/api/blocks/result-state.md +30 -6
- package/docs/api/blocks/setup-notice.md +82 -0
- package/docs/api/components/confirm-action.md +8 -6
- package/docs/api/components/data-list.md +33 -0
- package/docs/api/components/failure-line.md +50 -0
- package/docs/api/components/field.md +9 -8
- package/docs/api/components/icon-checkbox.md +55 -0
- package/docs/api/components/icon-radio.md +39 -5
- package/docs/api/components/keycap.md +10 -7
- package/docs/api/components/loader.md +18 -7
- package/docs/api/components/toaster.md +2 -0
- package/package.json +15 -6
- package/src/first-run.css +100 -0
- package/src/styles.css +394 -21
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fungi.computer/caps",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"author": "Levi <levi@technomancy.dev>",
|
|
5
5
|
"description": "Product-neutral React primitives and blocks for Fungi interfaces",
|
|
6
6
|
"type": "module",
|
|
@@ -242,6 +242,10 @@
|
|
|
242
242
|
"types": "./dist/components/alert.d.ts",
|
|
243
243
|
"import": "./dist/components/alert.js"
|
|
244
244
|
},
|
|
245
|
+
"./components/failure-line": {
|
|
246
|
+
"types": "./dist/components/failure-line.d.ts",
|
|
247
|
+
"import": "./dist/components/failure-line.js"
|
|
248
|
+
},
|
|
245
249
|
"./components/status": {
|
|
246
250
|
"types": "./dist/components/status.d.ts",
|
|
247
251
|
"import": "./dist/components/status.js"
|
|
@@ -338,6 +342,10 @@
|
|
|
338
342
|
"types": "./dist/blocks/async-state.d.ts",
|
|
339
343
|
"import": "./dist/blocks/async-state.js"
|
|
340
344
|
},
|
|
345
|
+
"./blocks/setup-notice": {
|
|
346
|
+
"types": "./dist/blocks/setup-notice.d.ts",
|
|
347
|
+
"import": "./dist/blocks/setup-notice.js"
|
|
348
|
+
},
|
|
341
349
|
"./blocks/loading-state": {
|
|
342
350
|
"types": "./dist/blocks/loading-state.d.ts",
|
|
343
351
|
"import": "./dist/blocks/loading-state.js"
|
|
@@ -465,7 +473,8 @@
|
|
|
465
473
|
"src/fonts-display.css",
|
|
466
474
|
"src/fonts-mono.css",
|
|
467
475
|
"src/status-tray.css",
|
|
468
|
-
"src/app-status-bar.css"
|
|
476
|
+
"src/app-status-bar.css",
|
|
477
|
+
"src/first-run.css"
|
|
469
478
|
],
|
|
470
479
|
"peerDependencies": {
|
|
471
480
|
"react": "^18.2.0 || ^19.0.0",
|
|
@@ -474,9 +483,9 @@
|
|
|
474
483
|
"effect": "4.0.2"
|
|
475
484
|
},
|
|
476
485
|
"devDependencies": {
|
|
477
|
-
"@fungi.computer/maosaico": "0.1.
|
|
478
|
-
"@fungi.computer/sprite": "0.2.
|
|
479
|
-
"@fungi.computer/sprite-zdog": "0.3.
|
|
486
|
+
"@fungi.computer/maosaico": "0.1.1",
|
|
487
|
+
"@fungi.computer/sprite": "0.2.2",
|
|
488
|
+
"@fungi.computer/sprite-zdog": "0.3.2",
|
|
480
489
|
"@ladle/react": "5.1.1",
|
|
481
490
|
"@tailwindcss/cli": "4.2.1",
|
|
482
491
|
"@types/react": "18.3.3",
|
|
@@ -502,7 +511,7 @@
|
|
|
502
511
|
},
|
|
503
512
|
"dependencies": {
|
|
504
513
|
"@base-ui/react": "1.9.0",
|
|
505
|
-
"@fungi.computer/stipe": "0.1.
|
|
514
|
+
"@fungi.computer/stipe": "0.1.1",
|
|
506
515
|
"@radix-ui/react-slot": "1.3.0",
|
|
507
516
|
"@tailwindcss/typography": "0.5.19",
|
|
508
517
|
"@tanstack/highlight": "0.0.9",
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* First-run kit: SetupNotice (alert variants) and FailureLine. The panel
|
|
3
|
+
* variant is an ordinary EmptyState panel and needs no rules here.
|
|
4
|
+
*/
|
|
5
|
+
@layer utilities {
|
|
6
|
+
.caps-setup-notice-frame {
|
|
7
|
+
container-type: inline-size;
|
|
8
|
+
}
|
|
9
|
+
.caps-setup-notice-title {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
gap: var(--spacing-sm);
|
|
13
|
+
}
|
|
14
|
+
.caps-setup-notice[data-variant] {
|
|
15
|
+
border-color: color-mix(in oklab, var(--color-warning) 45%, transparent);
|
|
16
|
+
background: color-mix(
|
|
17
|
+
in oklab,
|
|
18
|
+
var(--color-warning) 12%,
|
|
19
|
+
var(--stipe-surface-raised)
|
|
20
|
+
);
|
|
21
|
+
color: var(--color-base-content);
|
|
22
|
+
}
|
|
23
|
+
.caps-setup-notice-actions {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-wrap: wrap;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: flex-end;
|
|
28
|
+
gap: var(--spacing-xs);
|
|
29
|
+
}
|
|
30
|
+
/* The panel's art: a warning bead at a size that holds the title. */
|
|
31
|
+
.caps-setup-notice-dot {
|
|
32
|
+
margin-block: var(--spacing-md);
|
|
33
|
+
scale: 2.5;
|
|
34
|
+
}
|
|
35
|
+
.caps-setup-notice-available {
|
|
36
|
+
color: var(--stipe-fg-muted);
|
|
37
|
+
}
|
|
38
|
+
.caps-setup-notice[data-variant="inline"] {
|
|
39
|
+
padding: var(--spacing-xs) var(--spacing-sm);
|
|
40
|
+
font-size: var(--text-sm);
|
|
41
|
+
}
|
|
42
|
+
.caps-setup-notice[data-variant="banner"] {
|
|
43
|
+
border-radius: 0;
|
|
44
|
+
border-inline: 0;
|
|
45
|
+
}
|
|
46
|
+
/* Narrow frame (a phone, or a narrow window): actions go under the copy. */
|
|
47
|
+
@container (width <= 36rem) {
|
|
48
|
+
.caps-setup-notice[data-variant] {
|
|
49
|
+
flex-direction: column;
|
|
50
|
+
align-items: stretch;
|
|
51
|
+
}
|
|
52
|
+
.caps-setup-notice[data-variant] > * {
|
|
53
|
+
flex: none;
|
|
54
|
+
width: 100%;
|
|
55
|
+
}
|
|
56
|
+
.caps-setup-notice-actions {
|
|
57
|
+
justify-content: flex-start;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.caps-failure-line {
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: flex-start;
|
|
64
|
+
gap: var(--spacing-sm);
|
|
65
|
+
min-width: 0;
|
|
66
|
+
font-size: var(--text-sm);
|
|
67
|
+
}
|
|
68
|
+
.caps-failure-line-copy {
|
|
69
|
+
display: grid;
|
|
70
|
+
flex: 1;
|
|
71
|
+
min-width: 0;
|
|
72
|
+
gap: var(--spacing-2xs);
|
|
73
|
+
}
|
|
74
|
+
.caps-failure-line-count {
|
|
75
|
+
color: var(--stipe-fg-muted);
|
|
76
|
+
font-size: var(--text-xs);
|
|
77
|
+
}
|
|
78
|
+
.caps-failure-line > .caps-status {
|
|
79
|
+
margin-block-start: var(--spacing-2xs);
|
|
80
|
+
}
|
|
81
|
+
.caps-failure-line-actions {
|
|
82
|
+
display: flex;
|
|
83
|
+
flex: none;
|
|
84
|
+
gap: var(--spacing-2xs);
|
|
85
|
+
}
|
|
86
|
+
.caps-failure-line[data-density="tile"] {
|
|
87
|
+
flex-direction: column;
|
|
88
|
+
align-items: center;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
height: 100%;
|
|
91
|
+
padding: var(--spacing-md);
|
|
92
|
+
text-align: center;
|
|
93
|
+
}
|
|
94
|
+
.caps-failure-line[data-density="tile"] > .caps-status {
|
|
95
|
+
margin-block-start: 0;
|
|
96
|
+
}
|
|
97
|
+
.caps-failure-line[data-density="tile"] .caps-failure-line-copy {
|
|
98
|
+
flex: none;
|
|
99
|
+
}
|
|
100
|
+
}
|