@qijenchen/design-system 0.1.0-beta.35 → 0.1.0-beta.36
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.
|
@@ -173,6 +173,10 @@ fi
|
|
|
173
173
|
[ -z "$URLS_FOUND" ] && exit 0
|
|
174
174
|
|
|
175
175
|
# Inject into AI context
|
|
176
|
-
|
|
176
|
+
# 2026-05-29 ROOT-CAUSE FIX:PostToolUse hook 的純 stdout **不會**注入 AI context(只進 transcript)→
|
|
177
|
+
# 原 `printf` 輸出讓 AI 看不到 URL → AI 每次 push 都沒 relay 給 user(user verbatim「部署完都沒給我 url」)。
|
|
178
|
+
# 必須輸出 JSON `hookSpecificOutput.additionalContext` 才會真注入 AI context。
|
|
179
|
+
MSG=$(printf '%b' "🚀 Deploy URLs auto-detected — RELAY 給 user(per user 2026-05-26「完成部署都自動回吐連結」+ 2026-05-27「不管 repo」):\n${URLS_FOUND}\n(AI:必須把上面 URL 貼給 user,不可省略)")
|
|
180
|
+
jq -n --arg ctx "$MSG" '{hookSpecificOutput:{hookEventName:"PostToolUse",additionalContext:$ctx}}'
|
|
177
181
|
|
|
178
182
|
exit 0
|
package/ds-story-manifest.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"scripts/composition-fidelity-visual-diff.mjs",
|
|
8
8
|
"product-workspace apps/template/src/AllDsComponents.stories.tsx (DsCanonicalPortal)"
|
|
9
9
|
],
|
|
10
|
-
"generatedAt": "2026-05-
|
|
10
|
+
"generatedAt": "2026-05-29T11:03:00.673Z"
|
|
11
11
|
},
|
|
12
12
|
"components": {
|
|
13
13
|
"accordion": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qijenchen/design-system",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.36",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "World-class design system — components, patterns, tokens, hooks (single source of truth for team distribution).",
|
|
6
6
|
"type": "module",
|
package/src/styles/base.css
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/* @qijenchen/design-system/styles/base — consumer
|
|
1
|
+
/* @qijenchen/design-system/styles/base — consumer runtime CSS SSOT
|
|
2
2
|
*
|
|
3
3
|
* Why(2026-05-29 fix:ds-product-template storybook 字體 drift,user「請你追根究底去解決」授權):
|
|
4
|
-
* `styles/tokens`
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* → consumer storybook 跟 DS storybook 字體不同。
|
|
4
|
+
* `styles/tokens` is the single consumer import. It must include the runtime CSS
|
|
5
|
+
* needed by shipped DS components: base element styles plus custom utilities
|
|
6
|
+
* backed by DS-owned keyframes.
|
|
8
7
|
*
|
|
9
8
|
* 本檔抽出 base 層為單一 SSOT:DS `src/globals.css` + consumer 都 import,字體/reset 永不 drift。
|
|
10
9
|
* codex 2026-05-29 dual-track 共識 option (a)。
|
|
@@ -46,3 +45,41 @@
|
|
|
46
45
|
cursor: pointer;
|
|
47
46
|
}
|
|
48
47
|
}
|
|
48
|
+
|
|
49
|
+
/* Radix Collapsible height animation — consumed by TreeView. */
|
|
50
|
+
@keyframes collapsible-down {
|
|
51
|
+
from { height: 0; }
|
|
52
|
+
to { height: var(--radix-collapsible-content-height); }
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@keyframes collapsible-up {
|
|
56
|
+
from { height: var(--radix-collapsible-content-height); }
|
|
57
|
+
to { height: 0; }
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@utility animate-collapsible-down {
|
|
61
|
+
animation: collapsible-down 150ms ease-out;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@utility animate-collapsible-up {
|
|
65
|
+
animation: collapsible-up 150ms ease-out;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* Radix Accordion height animation — Radix exposes a different content-height var. */
|
|
69
|
+
@keyframes accordion-down {
|
|
70
|
+
from { height: 0; }
|
|
71
|
+
to { height: var(--radix-accordion-content-height); }
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@keyframes accordion-up {
|
|
75
|
+
from { height: var(--radix-accordion-content-height); }
|
|
76
|
+
to { height: 0; }
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@utility animate-accordion-down {
|
|
80
|
+
animation: accordion-down 200ms ease-out;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@utility animate-accordion-up {
|
|
84
|
+
animation: accordion-up 200ms ease-out;
|
|
85
|
+
}
|
package/src/styles/tokens.css
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
@import './../tokens/opacity/opacity.css';
|
|
35
35
|
@import './../tokens/motion/motion.css';
|
|
36
36
|
|
|
37
|
-
/* Non-token CSS (patterns/ + components/) containing
|
|
37
|
+
/* Non-token CSS (patterns/ + components/) containing token/runtime declarations
|
|
38
38
|
or component-internal styles — auto-detected by generator scan. Per 2026-05-27
|
|
39
39
|
root-cause fix: src/globals.css 已 import for DS internal, 但 consumer-facing
|
|
40
40
|
tokens.css aggregator 必須也包含, 不然 consumer 拿不到 → 跑版。 */
|
|
@@ -245,6 +245,13 @@
|
|
|
245
245
|
|
|
246
246
|
}
|
|
247
247
|
|
|
248
|
+
/* Tailwind bridge for absolute anchors.
|
|
249
|
+
Keep the bridge in the primitive color SSOT so text-white/bg-white ship to consumers. */
|
|
250
|
+
@theme inline {
|
|
251
|
+
--color-white: oklch(1 0 0);
|
|
252
|
+
--color-black: oklch(0 0 0);
|
|
253
|
+
}
|
|
254
|
+
|
|
248
255
|
|
|
249
256
|
/* ── Layer 1 — Dark Mode Overrides ── */
|
|
250
257
|
[data-theme="dark"] {
|