@cakejp/design-system 0.12.0 → 0.13.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 +43 -0
- package/CLAUDE.md +6 -2
- package/bin/check-duplicates.mjs +133 -9
- package/bin/exports-parser.mjs +54 -0
- package/bin/init.js +3 -0
- package/contracts/components.json +229 -25
- package/contracts/composition.json +10 -7
- package/contracts/rules.json +6 -4
- package/dist/index.css +1 -1
- package/dist/index.js +2951 -2204
- package/dist/types/components/ec/admin-shell.d.ts +30 -2
- package/dist/types/components/foundations/card.d.ts +27 -3
- package/dist/types/components/foundations/field.d.ts +26 -3
- package/dist/types/components/foundations/input.d.ts +3 -1
- package/dist/types/components/foundations/textarea.d.ts +3 -1
- package/dist/types/components/primitives/chat-composer.d.ts +87 -0
- package/dist/types/components/primitives/content-carousel.d.ts +7 -1
- package/dist/types/components/primitives/date-picker.d.ts +15 -3
- package/dist/types/components/primitives/funnel-shell.d.ts +2 -0
- package/dist/types/components/primitives/image-input.d.ts +119 -0
- package/dist/types/components/primitives/section-header.d.ts +9 -2
- package/dist/types/components/primitives/section.d.ts +35 -2
- package/dist/types/components/primitives/timeline.d.ts +23 -0
- package/dist/types/components/primitives/workspace-shell.d.ts +2 -0
- package/dist/types/index.d.ts +17 -5
- package/dist/types/lib/pagination-range.d.ts +16 -0
- package/dist/types/lib/use-value-length.d.ts +31 -0
- package/package.json +2 -1
- package/src/preset-standalone.css +16 -0
- package/src/preset.css +17 -0
- package/src/styles/typography.css +7 -0
- package/templates/AGENTS.md +2 -0
- package/templates/CLAUDE.md +2 -0
- package/tokens.json +9 -2
package/contracts/rules.json
CHANGED
|
@@ -549,7 +549,7 @@
|
|
|
549
549
|
"category": "component",
|
|
550
550
|
"pattern": "<input type=\"file\"|<input type='file'",
|
|
551
551
|
"message": "ネイティブ <input type='file'> を直接使わない",
|
|
552
|
-
"fix": "汎用の添付(PDF/CSV/画像混在)は <FileInput />(foundations
|
|
552
|
+
"fix": "汎用の添付(PDF/CSV/画像混在)は <FileInput />(foundations)を使う。画像1枚の入力(プレビュー+形式/サイズ検証+値のバインド)は <ImageInput />(primitives)、複数枚のグリッド管理は <ImageUploader />(primitives)を使う"
|
|
553
553
|
},
|
|
554
554
|
{
|
|
555
555
|
"id": "R55",
|
|
@@ -584,8 +584,9 @@
|
|
|
584
584
|
"typography": {
|
|
585
585
|
"rule": "必ず typo-* クラスを使用。text-sm font-bold 等の個別指定禁止。",
|
|
586
586
|
"classes": [
|
|
587
|
-
{ "class": "typo-heading-
|
|
588
|
-
{ "class": "typo-heading-
|
|
587
|
+
{ "class": "typo-heading-5xl", "size": "40px", "weight": "bold", "usage": "LP・マーケティング系ヒーローの PC 見出し限定" },
|
|
588
|
+
{ "class": "typo-heading-4xl", "size": "32px", "weight": "bold", "usage": "LP・マーケティング系ヒーローの PC 見出し限定(5xlより抑えた表現)" },
|
|
589
|
+
{ "class": "typo-heading-3xl", "size": "28px", "weight": "bold", "usage": "通常ページの主見出し・ページタイトル。LPではSP側にも使用" },
|
|
589
590
|
{ "class": "typo-heading-2xl", "size": "24px", "weight": "bold" },
|
|
590
591
|
{ "class": "typo-heading-xl", "size": "21px", "weight": "bold" },
|
|
591
592
|
{ "class": "typo-heading-lg", "size": "18px", "weight": "bold" },
|
|
@@ -615,7 +616,8 @@
|
|
|
615
616
|
{ "element": "Text input", "min": "44px", "recommended": "48px" },
|
|
616
617
|
{ "element": "Chip/Filter", "min": "32px", "recommended": "36px" },
|
|
617
618
|
{ "element": "Navigation item", "min": "44px", "recommended": "48px" }
|
|
618
|
-
]
|
|
619
|
+
],
|
|
620
|
+
"utility": "見た目が44px未満の小型操作部品をSPで使う場合は className=\"tap-target\" を付け、透明な疑似要素で実効操作領域を44×44px以上にする。隣接ターゲットと重なる密度では使わず親のgapを広げる"
|
|
619
621
|
}
|
|
620
622
|
},
|
|
621
623
|
"writing": {
|