@justai/cuts 0.1.0 → 0.2.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 +20 -7
- package/src/Base.astro +8 -1
package/package.json
CHANGED
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justai/cuts",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "A persona's named parts
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "A persona's named parts \u2014 the page shell that holds them, and the cuts themselves.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
|
-
"repository": {
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/justai-pro/web.git",
|
|
9
|
+
"directory": "packages/cuts"
|
|
10
|
+
},
|
|
7
11
|
"type": "module",
|
|
8
|
-
"files": [
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
+
"files": [
|
|
13
|
+
"src"
|
|
14
|
+
],
|
|
15
|
+
"exports": {
|
|
16
|
+
"./Base.astro": "./src/Base.astro"
|
|
17
|
+
},
|
|
18
|
+
"peerDependencies": {
|
|
19
|
+
"astro": ">=5",
|
|
20
|
+
"@justai/ui": ">=0.2.0"
|
|
21
|
+
},
|
|
22
|
+
"publishConfig": {
|
|
23
|
+
"access": "public"
|
|
24
|
+
}
|
|
12
25
|
}
|
package/src/Base.astro
CHANGED
|
@@ -178,7 +178,14 @@ const localePath = (l: string) => (l === defaultLocale ? "/" : `/${l}/`);
|
|
|
178
178
|
.cc-row { display: flex; gap: 8px; justify-content: flex-end; }
|
|
179
179
|
.cc-btn { font: inherit; font-size: var(--fs-xs); font-weight: 600; padding: 8px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; transition: transform 0.2s var(--ease-spring); }
|
|
180
180
|
.cc-btn:active { transform: scale(0.94); }
|
|
181
|
-
|
|
181
|
+
/* The consent button is the one place the fleet genuinely disagreed, and the disagreement is
|
|
182
|
+
about CONTRAST rather than taste. Seven personas have dark accents and take white text on
|
|
183
|
+
--accent-press. cleanmylink and howlong have bright ones — mint and amber — where white
|
|
184
|
+
fails, so they fill with --accent and set --on-accent to a dark tone that passes.
|
|
185
|
+
Two hooks with the majority as the default, so the seven say nothing and the two say
|
|
186
|
+
exactly what they already verified. This is the styling contract working as designed:
|
|
187
|
+
colour is the persona's, and a real difference gets a declared hook rather than a fork. */
|
|
188
|
+
.cc-ok { background: var(--consent-ok-bg, var(--accent-press)); border-color: var(--consent-ok-bg, var(--accent-press)); color: var(--on-accent, #fff); }
|
|
182
189
|
@keyframes cc-up { from { transform: translateY(24px); opacity: 0; } }
|
|
183
190
|
@media (prefers-reduced-motion: reduce) { .cc-card { animation: none; } }
|
|
184
191
|
</style>
|