ksk-design-system 1.43.0 → 1.44.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/contracts/components.json +28 -6
- package/dist/index.js +2859 -2716
- package/dist/native/ui.js +1561 -1318
- package/dist/types/components/patterns/bottom-sheet-frame.d.ts +1 -1
- package/dist/types/components/patterns/commerce/bottom-tab-bar.d.ts +6 -0
- package/dist/types/components/patterns/document-page.d.ts +29 -0
- package/dist/types/components/patterns/prose.d.ts +21 -0
- package/dist/types/components/ui/date-picker.d.ts +14 -2
- package/dist/types/components/ui/sheet.d.ts +35 -2
- package/dist/types/components/ui/skeleton.d.ts +22 -1
- package/dist/types/index.d.ts +6 -2
- package/dist/types/native/components/AutoGrowTextarea.d.ts +2 -2
- package/dist/types/native/components/CommitAutoGrowTextarea.d.ts +14 -0
- package/dist/types/native/components/CommitInput.d.ts +23 -0
- package/dist/types/native/components/CommitTextarea.d.ts +14 -0
- package/dist/types/native/components/ErrorBoundary.d.ts +53 -0
- package/dist/types/native/components/Form.d.ts +25 -0
- package/dist/types/native/components/Input.d.ts +2 -2
- package/dist/types/native/components/Textarea.d.ts +2 -2
- package/dist/types/native/components/Toast.d.ts +52 -2
- package/dist/types/native/components/index.d.ts +6 -1
- package/dist/types/native/use-commit-draft.d.ts +44 -0
- package/dist/types/native/use-web-composition-guard.d.ts +3 -0
- package/package.json +1 -1
- package/src/components/COMPONENT_LOOKUP.md +6 -4
- package/src/native/COMPONENT_LOOKUP.md +8 -1
- package/src/styles/glass.css +102 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
3
|
"name": "KSK Design System — Component Contracts",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.44.0",
|
|
5
5
|
"description": "全コンポーネントの構造化定義。バリアント・アクセシビリティ要件・使用ルールを機械可読形式で管理。",
|
|
6
6
|
"counts": {
|
|
7
7
|
"ui": 61,
|
|
8
|
-
"patterns":
|
|
8
|
+
"patterns": 54,
|
|
9
9
|
"commerce": 12,
|
|
10
10
|
"admin": 8,
|
|
11
11
|
"shells": 3,
|
|
12
|
-
"total":
|
|
12
|
+
"total": 138
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"ui": [
|
|
@@ -294,7 +294,7 @@
|
|
|
294
294
|
{
|
|
295
295
|
"name": "Sheet",
|
|
296
296
|
"path": "src/components/ui/sheet.tsx",
|
|
297
|
-
"description": "サイドパネル・ボトムシート。フィルター・メニュー・補助入力に使用。モーダルより軽いコンテキストに。snapPoints でスナップ式、swipeToClose で下スワイプ閉じを有効化。autoFocus / restoreFocusOnClose / closeOnEsc / bodyScrollLock でフォーカス・スクロール挙動を制御可能。",
|
|
297
|
+
"description": "サイドパネル・ボトムシート。フィルター・メニュー・補助入力に使用。モーダルより軽いコンテキストに。snapPoints でスナップ式、swipeToClose で下スワイプ閉じを有効化。autoFocus / restoreFocusOnClose / closeOnEsc / bodyScrollLock でフォーカス・スクロール挙動を制御可能。 多段(シートの上にシート)では open 順に overlay/content の z-index が自動繰り上げされ、zIndex / overlayClassName で上書き可能。",
|
|
298
298
|
"subcomponents": [
|
|
299
299
|
"SheetTrigger",
|
|
300
300
|
"SheetContent",
|
|
@@ -428,10 +428,13 @@
|
|
|
428
428
|
{
|
|
429
429
|
"name": "Skeleton",
|
|
430
430
|
"path": "src/components/ui/skeleton.tsx",
|
|
431
|
-
"description": "読み込み中プレースホルダ。width/height/rounded shorthand 対応。",
|
|
431
|
+
"description": "読み込み中プレースホルダ。width/height/rounded shorthand 対応。SkeletonText は lines 指定の複数行テキストプレースホルダ(最終行短縮)。",
|
|
432
432
|
"rules": [
|
|
433
433
|
"数値は px、文字列は CSS 値として渡る",
|
|
434
434
|
"rounded: none/sm/md/lg/xl/2xl/full プリセット"
|
|
435
|
+
],
|
|
436
|
+
"subcomponents": [
|
|
437
|
+
"SkeletonText"
|
|
435
438
|
]
|
|
436
439
|
},
|
|
437
440
|
{
|
|
@@ -967,6 +970,24 @@
|
|
|
967
970
|
"Color + icon + text. Include retry action."
|
|
968
971
|
]
|
|
969
972
|
},
|
|
973
|
+
{
|
|
974
|
+
"name": "Prose",
|
|
975
|
+
"path": "src/components/patterns/prose.tsx",
|
|
976
|
+
"description": "静的文書(プライバシーポリシー・利用規約等)の本文レンダラー。sections: {title, body: string[]}[] を受けて見出し+段落を統一タイポで描画する。native の Prose.tsx と props 形が一致。",
|
|
977
|
+
"rules": [
|
|
978
|
+
"見出しは typo-heading-md、段落は typo-body-md",
|
|
979
|
+
"DocumentPage の子として使う想定だが単体でも利用可"
|
|
980
|
+
]
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
"name": "DocumentPage",
|
|
984
|
+
"path": "src/components/patterns/document-page.tsx",
|
|
985
|
+
"description": "プライバシーポリシー・利用規約などの静的文書ページ。タイトル・最終更新日・本文(Prose)を固定スペーシングで組む。native の DocumentScreen.tsx に対応(web は単体ページのため命名を DocumentPage とし、戻るナビは呼び出し側のシェルに委ねる)。",
|
|
986
|
+
"rules": [
|
|
987
|
+
"本文は max-w-2xl に収めて読みやすい行長にする",
|
|
988
|
+
"戻るナビは持たない。必要なら呼び出し側のレイアウトシェルで用意する"
|
|
989
|
+
]
|
|
990
|
+
},
|
|
970
991
|
{
|
|
971
992
|
"name": "SectionHeader",
|
|
972
993
|
"path": "src/components/patterns/section-header.tsx",
|
|
@@ -1620,9 +1641,10 @@
|
|
|
1620
1641
|
{
|
|
1621
1642
|
"name": "BottomSheetFrame",
|
|
1622
1643
|
"path": "src/components/patterns/bottom-sheet-frame.tsx",
|
|
1623
|
-
"description": "SheetContent の responsive outer frame preset。mobile-full / mobile-form / desktop-floating を宣言し、DetailSheetScaffold と KeyboardAwareSheetFooter を内側で合成する。",
|
|
1644
|
+
"description": "SheetContent の responsive outer frame preset。mobile-full / mobile-page(iOS ページシート風・上端 2rem ギャップ)/ mobile-form / desktop-floating を宣言し、DetailSheetScaffold と KeyboardAwareSheetFooter を内側で合成する。",
|
|
1624
1645
|
"variants": [
|
|
1625
1646
|
"mobile-full",
|
|
1647
|
+
"mobile-page",
|
|
1626
1648
|
"mobile-form",
|
|
1627
1649
|
"desktop-floating"
|
|
1628
1650
|
],
|