@lism-css/mcp 0.10.4 → 0.12.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.ja.md +4 -2
- package/README.md +4 -2
- package/dist/data/docs-index.json +282 -64
- package/dist/data/guides/SKILL.md +113 -0
- package/dist/data/guides/base-styles.md +106 -0
- package/dist/data/guides/components-core.md +338 -0
- package/dist/data/guides/components-ui.md +351 -0
- package/dist/data/guides/css-rules.md +146 -0
- package/dist/data/guides/module-class.md +162 -0
- package/dist/data/guides/prop-responsive.md +54 -0
- package/dist/data/guides/property-class.md +400 -0
- package/dist/data/guides/set-class.md +190 -0
- package/dist/data/guides/tokens.md +210 -0
- package/dist/data/guides/utility-class.md +81 -0
- package/dist/data/meta.js +2 -2
- package/dist/index.js +4 -0
- package/dist/lib/load-data.js +2 -11
- package/dist/lib/load-markdown.d.ts +6 -0
- package/dist/lib/load-markdown.js +29 -0
- package/dist/lib/markdown-utils.d.ts +42 -0
- package/dist/lib/markdown-utils.js +158 -0
- package/dist/lib/schemas.d.ts +0 -242
- package/dist/lib/schemas.js +0 -64
- package/dist/lib/search.d.ts +2 -16
- package/dist/lib/search.js +9 -68
- package/dist/lib/types.d.ts +0 -64
- package/dist/tools/convert-css.js +96 -55
- package/dist/tools/get-component.js +60 -29
- package/dist/tools/get-guide.d.ts +2 -0
- package/dist/tools/get-guide.js +45 -0
- package/dist/tools/get-overview.js +26 -39
- package/dist/tools/get-props-system.js +45 -33
- package/dist/tools/get-tokens.js +9 -14
- package/dist/tools/search-docs.js +27 -9
- package/package.json +2 -2
- package/dist/data/components.json +0 -564
- package/dist/data/overview.json +0 -114
- package/dist/data/props-system.json +0 -1154
- package/dist/data/tokens.json +0 -152
|
@@ -1,564 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"name": "Lism",
|
|
4
|
-
"package": "lism-css",
|
|
5
|
-
"category": "core",
|
|
6
|
-
"description": "全コンポーネントの基盤となるコアコンポーネント。Props システムによる CSS クラス・スタイルの自動変換を提供する。他の全てのコンポーネントは Lism を継承している。",
|
|
7
|
-
"aliases": ["base component", "コア", "基盤", "HTML.button"],
|
|
8
|
-
"props": [
|
|
9
|
-
{ "name": "as", "type": "ElementType | string", "default": "div", "description": "レンダリングするHTML要素または外部コンポーネントを指定。" },
|
|
10
|
-
{ "name": "layout", "type": "string", "description": "レイアウトモジュールを適用 (flex, grid 等)。" },
|
|
11
|
-
{ "name": "lismClass", "type": "string", "description": "メインのコンポーネントクラスを指定。" },
|
|
12
|
-
{ "name": "variant", "type": "string", "description": "モジュールクラスのバリエーションを指定。" },
|
|
13
|
-
{ "name": "exProps", "type": "object", "description": "as で指定した外部コンポーネントに直接渡すprops。Lism Propsの処理をバイパスする。" }
|
|
14
|
-
],
|
|
15
|
-
"usage": "<Lism as='section' p='20' bgc='base-2'>Content</Lism>"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"name": "HTML",
|
|
19
|
-
"package": "lism-css",
|
|
20
|
-
"category": "core",
|
|
21
|
-
"description": "@deprecated: v0.10.1 で廃止。代替として Text, Inline, Group, Heading, Link, List, ListItem, Media を使用してください。HTMLの主要なタグに<Lism>と同じプロパティを指定できるようにするためのコンポーネント。HTML.div, HTML.p, HTML.span, HTML.a, HTML.h, HTML.img, HTML.ul, HTML.ol, HTML.li, HTML.button が利用可能。例えば <HTML.p> は <Lism as='p'> と同じように動作する。",
|
|
22
|
-
"aliases": ["HTML要素", "html tags", "セマンティック"],
|
|
23
|
-
"props": [
|
|
24
|
-
{ "name": "lv", "type": "'1' | '2' | '3' | '4' | '5' | '6'", "default": "1", "description": "HTML.h で使用。見出しレベルを指定する。" }
|
|
25
|
-
],
|
|
26
|
-
"usage": "<HTML.p fz='l' c='text-2'>Text</HTML.p>"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "Text",
|
|
30
|
-
"package": "lism-css",
|
|
31
|
-
"category": "core",
|
|
32
|
-
"description": "<p>タグを出力する Lism コンポーネント。<Lism as='p'> のエイリアス。as prop で p(デフォルト) / div / blockquote / address / figcaption / pre に変更可能。",
|
|
33
|
-
"aliases": ["paragraph", "テキスト", "段落", "p tag", "テキストブロック", "HTML.p"],
|
|
34
|
-
"props": [],
|
|
35
|
-
"usage": "<Text fz='l' lh='s' c='text-2'>Lorem ipsum text...</Text>"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"name": "Inline",
|
|
39
|
-
"package": "lism-css",
|
|
40
|
-
"category": "core",
|
|
41
|
-
"description": "<span>タグを出力する Lism コンポーネント。<Lism as='span'> のエイリアス。テキストの一部にスタイルを適用したい場合に使用。as prop で span(デフォルト) / em / strong / small / code / time / i / b / mark / abbr / cite / kbd に変更可能。",
|
|
42
|
-
"aliases": ["span", "インライン要素", "テキスト装飾", "inline element", "HTML.span"],
|
|
43
|
-
"props": [],
|
|
44
|
-
"usage": "<Inline fz='l' fs='italic'>インライン要素</Inline>"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"name": "Heading",
|
|
48
|
-
"package": "lism-css",
|
|
49
|
-
"category": "core",
|
|
50
|
-
"description": "見出しタグ(<h1>〜<h6>)を出力する Lism コンポーネント。level prop で見出しレベルを指定。<Lism as='h{level}'> のエイリアス。",
|
|
51
|
-
"aliases": ["見出し", "heading tag", "h1", "h2", "h3", "title", "HTML.h"],
|
|
52
|
-
"props": [{ "name": "level", "type": "'1' | '2' | '3' | '4' | '5' | '6'", "default": "2", "description": "見出しレベルを指定する。" }],
|
|
53
|
-
"usage": "<Heading level='2'>見出しテキスト</Heading>"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"name": "Group",
|
|
57
|
-
"package": "lism-css",
|
|
58
|
-
"category": "core",
|
|
59
|
-
"description": "<div>タグを出力する Lism コンポーネント。<Lism as='div'> のエイリアス。要素をグルーピングするための汎用コンテナ。as prop で div(デフォルト) / section / article / figure / nav / aside / header / footer / main / fieldset / hgroup に変更可能。",
|
|
60
|
-
"aliases": ["グループ", "コンテナ", "div tag", "汎用コンテナ", "section", "article", "HTML.div"],
|
|
61
|
-
"props": [],
|
|
62
|
-
"usage": "<Group p='20' bgc='base-2' bdrs='20'>Content</Group>"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"name": "Link",
|
|
66
|
-
"package": "lism-css",
|
|
67
|
-
"category": "core",
|
|
68
|
-
"description": "<a>タグを出力する Lism コンポーネント。<Lism as='a'> のエイリアス。全ての Lism Props が使用可能。",
|
|
69
|
-
"aliases": ["リンク", "anchor", "a tag", "ハイパーリンク", "HTML.a"],
|
|
70
|
-
"props": [],
|
|
71
|
-
"usage": "<Link href='/path' c='brand' fw='bold'>リンクテキスト</Link>"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"name": "List",
|
|
75
|
-
"package": "lism-css",
|
|
76
|
-
"category": "core",
|
|
77
|
-
"description": "リストタグ(<ul>, <ol>, <dl>)を出力する Lism コンポーネント。<Lism as='ul'> のエイリアス。as prop で ul(デフォルト) / ol / dl に変更可能。ListItem と組み合わせて使用する。",
|
|
78
|
-
"aliases": ["リスト", "ul", "ol", "dl", "list tag", "番号なしリスト", "番号付きリスト", "HTML.ul", "HTML.ol"],
|
|
79
|
-
"props": [],
|
|
80
|
-
"usage": "<List>\n <ListItem>リストアイテム 1</ListItem>\n <ListItem>リストアイテム 2</ListItem>\n</List>"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"name": "ListItem",
|
|
84
|
-
"package": "lism-css",
|
|
85
|
-
"category": "core",
|
|
86
|
-
"description": "リストアイテムタグ(<li>, <dt>, <dd>)を出力する Lism コンポーネント。<Lism as='li'> のエイリアス。as prop で li(デフォルト) / dt / dd に変更可能。List コンポーネントと組み合わせて使用する。",
|
|
87
|
-
"aliases": ["リストアイテム", "li", "dt", "dd", "list item", "HTML.li"],
|
|
88
|
-
"props": [],
|
|
89
|
-
"usage": "<ListItem fw='bold'>リストアイテム</ListItem>"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"name": "DummyText",
|
|
93
|
-
"package": "@lism-css/ui",
|
|
94
|
-
"category": "ui",
|
|
95
|
-
"description": "ダミーテキストを生成するコンポーネント。プレビューやテスト用に使用。複数の言語とテキスト長に対応。",
|
|
96
|
-
"aliases": ["placeholder", "lorem ipsum", "ダミーテキスト", "テスト用"],
|
|
97
|
-
"props": [
|
|
98
|
-
{ "name": "lang", "type": "'ja' | 'en' | 'ar'", "default": "en", "description": "ダミーテキストの言語。" },
|
|
99
|
-
{
|
|
100
|
-
"name": "length",
|
|
101
|
-
"type": "'xs' | 's' | 'm' | 'l' | 'xl' | 'codes'",
|
|
102
|
-
"default": "m",
|
|
103
|
-
"description": "テキストの長さ。'codes'の場合はb,i,a,code要素を含むテキストを出力。"
|
|
104
|
-
},
|
|
105
|
-
{ "name": "pre", "type": "string", "description": "ダミーテキストの前に表示するテキスト。" },
|
|
106
|
-
{ "name": "offset", "type": "number", "default": "0", "description": "ダミーテキストのオフセット。区切り文字単位で先頭を切り捨てる。" }
|
|
107
|
-
],
|
|
108
|
-
"usage": "<DummyText lang='ja' />"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"name": "DummyImage",
|
|
112
|
-
"package": "@lism-css/ui",
|
|
113
|
-
"category": "ui",
|
|
114
|
-
"description": "ダミーのプレースホルダー画像を出力するコンポーネント。cdn.lism-css.comからダミー画像を取得。",
|
|
115
|
-
"aliases": ["placeholder image", "ダミー画像", "テスト画像"],
|
|
116
|
-
"props": [],
|
|
117
|
-
"usage": "<DummyImage />"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"name": "Box",
|
|
121
|
-
"package": "lism-css",
|
|
122
|
-
"category": "layout",
|
|
123
|
-
"description": "最も基本的なレイアウトモジュール。汎用的なボックス要素として使用。l--box クラスが付与される。",
|
|
124
|
-
"aliases": ["ボックス", "汎用ボックス", "基本レイアウト"],
|
|
125
|
-
"props": [],
|
|
126
|
-
"usage": "<Box p='20' bgc='base-2'>Content</Box>"
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
"name": "Flex",
|
|
130
|
-
"package": "lism-css",
|
|
131
|
-
"category": "layout",
|
|
132
|
-
"description": "Flexboxレイアウトを構成するコンポーネント。display: flex が適用される。",
|
|
133
|
-
"aliases": ["flexbox", "横並び", "フレックス", "inline layout", "display: flex"],
|
|
134
|
-
"props": [
|
|
135
|
-
{ "name": "fxf", "type": "string | array", "description": "flex-flow の値。" },
|
|
136
|
-
{ "name": "fxw", "type": "string | array", "description": "flex-wrap の値。" },
|
|
137
|
-
{ "name": "fxd", "type": "string | array", "description": "flex-direction の値。" }
|
|
138
|
-
],
|
|
139
|
-
"usage": "<Flex g='20' ai='center' jc='center'>...</Flex>"
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
"name": "Stack",
|
|
143
|
-
"package": "lism-css",
|
|
144
|
-
"category": "layout",
|
|
145
|
-
"description": "縦方向に要素を積み重ねるFlexレイアウト。flex-direction: column のFlex。Flexで使えるPropsが使える。",
|
|
146
|
-
"aliases": ["縦並び", "vertical layout", "縦積み", "column direction", "display: flex", "flex-direction: column"],
|
|
147
|
-
"props": [],
|
|
148
|
-
"usage": "<Stack g='20'>...</Stack>"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
"name": "Grid",
|
|
152
|
-
"package": "lism-css",
|
|
153
|
-
"category": "layout",
|
|
154
|
-
"description": "CSS Gridレイアウトを構成するコンポーネント。display: grid が適用される。",
|
|
155
|
-
"aliases": ["CSS Grid", "グリッド", "grid layout", "格子", "display: grid"],
|
|
156
|
-
"props": [
|
|
157
|
-
{ "name": "gt", "type": "string | array", "description": "grid-template の値。" },
|
|
158
|
-
{ "name": "gta", "type": "string | array", "description": "grid-template-areas の値。" },
|
|
159
|
-
{ "name": "gtc", "type": "string | array", "description": "grid-template-columns の値。" },
|
|
160
|
-
{ "name": "gtr", "type": "string | array", "description": "grid-template-rows の値。" },
|
|
161
|
-
{ "name": "gaf", "type": "string | array", "description": "grid-auto-flow の値。" },
|
|
162
|
-
{ "name": "gar", "type": "string | array", "description": "grid-auto-rows の値。" },
|
|
163
|
-
{ "name": "gac", "type": "string | array", "description": "grid-auto-columns の値。" }
|
|
164
|
-
],
|
|
165
|
-
"usage": "<Grid gtc='1fr 1fr' g='20'>...</Grid>"
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
"name": "Center",
|
|
169
|
-
"package": "lism-css",
|
|
170
|
-
"category": "layout",
|
|
171
|
-
"description": "子要素を中央揃えにするレイアウトコンポーネント。place-items: center の Grid。Gridで使えるpropsが使える。",
|
|
172
|
-
"aliases": ["中央揃え", "centering", "中央配置", "center align", "place-items: center", "place-content: center", "display: grid"],
|
|
173
|
-
"props": [],
|
|
174
|
-
"usage": "<Center p='40' h='200px'>Centered Content</Center>"
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
"name": "Cluster",
|
|
178
|
-
"package": "lism-css",
|
|
179
|
-
"category": "layout",
|
|
180
|
-
"description": "横方向に要素を並べ、自動的に折り返すFlexレイアウト。タグやバッジの並びに適している。",
|
|
181
|
-
"aliases": ["横並び折り返し", "inline wrap", "タグ並び", "badge list", "flex wrap", "display: flex", "flex-wrap: wrap"],
|
|
182
|
-
"props": [],
|
|
183
|
-
"usage": "<Cluster g='10'>...</Cluster>"
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
"name": "Columns",
|
|
187
|
-
"package": "lism-css",
|
|
188
|
-
"category": "layout",
|
|
189
|
-
"description": "ブレイクポイントごとに指定した列数で表示できるカラムレイアウト。Gridベース。",
|
|
190
|
-
"aliases": ["等分割", "equal columns", "均等幅カラム", "multi column", "複数列"],
|
|
191
|
-
"props": [{ "name": "cols", "type": "number | array", "default": "2", "description": "列数。レスポンシブ対応可能。--cols変数として出力。" }],
|
|
192
|
-
"usage": "<Columns cols={[1, 2, 3]} g='20'>...</Columns>"
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
"name": "Flow",
|
|
196
|
-
"package": "lism-css",
|
|
197
|
-
"category": "layout",
|
|
198
|
-
"description": "コンテンツフロー用のレイアウト。display:flow-rootで、子要素間に一定の余白を管理する。記事本文のような縦方向のフローコンテンツに適している。見出しタグは余白が2倍になる。",
|
|
199
|
-
"aliases": ["content flow", "記事本文", "本文レイアウト", "article body", "縦方向余白"],
|
|
200
|
-
"props": [{ "name": "flow", "type": "'s' | 'l' | string", "description": "フロー方向の余白サイズ。's'で小さい余白、'l'で大きい余白。" }],
|
|
201
|
-
"usage": "<Flow flow='s'>...</Flow>"
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
"name": "FluidCols",
|
|
205
|
-
"package": "lism-css",
|
|
206
|
-
"category": "layout",
|
|
207
|
-
"description": "子要素が最小幅に達すると自動的に折り返すグリッドレイアウト。メディアクエリに依存しない流動的なカラムレイアウト。",
|
|
208
|
-
"aliases": ["auto-wrap", "自動折り返し", "responsive grid", "メディアクエリなし", "fluid columns", "auto-fill", "流動カラム", "折り返しグリッド"],
|
|
209
|
-
"props": [
|
|
210
|
-
{ "name": "cols", "type": "string", "description": "各カラムが維持する最小幅 (例: '320px')。--cols変数として出力。" },
|
|
211
|
-
{ "name": "autoFill", "type": "boolean", "description": "自動折り返しのモードをauto-fillに切り替える。--autoMode変数として出力。" }
|
|
212
|
-
],
|
|
213
|
-
"usage": "<FluidCols cols='320px' g='20'>...</FluidCols>"
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
"name": "Frame",
|
|
217
|
-
"package": "lism-css",
|
|
218
|
-
"category": "layout",
|
|
219
|
-
"description": "直下のメディア要素(img, video, iframe)を自身のサイズに合わせて表示するレイアウトモジュール。アスペクト比の指定も可能。",
|
|
220
|
-
"aliases": ["aspect-ratio", "アスペクト比", "画像コンテナ", "動画フレーム", "比率維持"],
|
|
221
|
-
"props": [{ "name": "ar", "type": "string | array", "description": "アスペクト比。(ar自体はどのコンポーネントにも指定できるCSS Props)" }],
|
|
222
|
-
"usage": "<Frame ar='16/9'>...</Frame>"
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
"name": "SwitchCols",
|
|
226
|
-
"package": "lism-css",
|
|
227
|
-
"category": "layout",
|
|
228
|
-
"description": "一定の幅で自動的に1カラムと複数カラムを切り替えるレイアウト。メディアクエリに依存しない。",
|
|
229
|
-
"aliases": ["カラム切り替え", "responsive columns", "メディアクエリなし", "breakpoint switch", "1カラム切り替え"],
|
|
230
|
-
"props": [
|
|
231
|
-
{
|
|
232
|
-
"name": "breakSize",
|
|
233
|
-
"type": "string",
|
|
234
|
-
"description": "横並びを維持するのに必要な幅(親のサイズ)。szトークンの指定が可能。--breakSize変数として出力。"
|
|
235
|
-
}
|
|
236
|
-
],
|
|
237
|
-
"usage": "<SwitchCols breakSize='s' g='20'>...</SwitchCols>"
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
"name": "SideMain",
|
|
241
|
-
"package": "lism-css",
|
|
242
|
-
"category": "layout",
|
|
243
|
-
"description": "サイドバー + メインコンテンツの2カラムレイアウト。メイン側が可変幅で、メインの幅が指定値を下回ると自動で1カラムに切り替わる。子要素にisSideが必要。",
|
|
244
|
-
"aliases": ["sidebar layout", "サイドバー", "2カラム", "two column", "サイドメイン"],
|
|
245
|
-
"props": [
|
|
246
|
-
{ "name": "sideW", "type": "string", "description": "サイドバーの幅。--sideW変数として出力。" },
|
|
247
|
-
{ "name": "mainW", "type": "string", "description": "メインエリアで維持したい最小幅。--mainW変数として出力。" }
|
|
248
|
-
],
|
|
249
|
-
"usage": "<SideMain sideW='240px' mainW='20rem'>...</SideMain>"
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
"name": "Container",
|
|
253
|
-
"package": "lism-css",
|
|
254
|
-
"category": "layout",
|
|
255
|
-
"description": "コンテナクエリの基準要素。<Lism isContainer>のエイリアスで、is--containerクラスが付与される。sizeを指定するとis--wrapperも同時にセットされる。",
|
|
256
|
-
"aliases": ["container query", "コンテナクエリ", "レスポンシブ基準"],
|
|
257
|
-
"props": [
|
|
258
|
-
{ "name": "size", "type": "boolean | string", "description": "コンテンツサイズ。isWrapperに渡される ('s', 'l' など)。" },
|
|
259
|
-
{ "name": "layout", "type": "string", "description": "展開したいLayoutモジュールを指定。" }
|
|
260
|
-
],
|
|
261
|
-
"usage": "<Container layout='flow'>...</Container>"
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
"name": "Layer",
|
|
265
|
-
"package": "lism-css",
|
|
266
|
-
"category": "layout",
|
|
267
|
-
"description": "親要素に対して絶対配置で重なるレイヤー要素。オーバーレイや背景装飾に使用。<Lism isLayer>のエイリアスで、is--layer クラスが付与される。",
|
|
268
|
-
"aliases": ["overlay", "オーバーレイ", "absolute position", "重ねる", "背景装飾"],
|
|
269
|
-
"props": [],
|
|
270
|
-
"usage": "<Layer bgc='black' o='-30'>Overlay</Layer>"
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
"name": "LinkBox",
|
|
274
|
-
"package": "lism-css",
|
|
275
|
-
"category": "layout",
|
|
276
|
-
"description": "ボックス全体をリンク領域にするコンポーネント。hrefが指定されるとa要素、なければdiv要素として出力。カード全体をクリッカブルにする場合等に使用。",
|
|
277
|
-
"aliases": ["clickable card", "クリッカブル", "カード全体リンク", "リンクカード"],
|
|
278
|
-
"props": [{ "name": "href", "type": "string", "description": "リンク先URL。指定ありでa要素、なしでdiv要素として出力。" }],
|
|
279
|
-
"usage": "<LinkBox href='/path'>Clickable Card</LinkBox>"
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
"name": "Wrapper",
|
|
283
|
-
"package": "lism-css",
|
|
284
|
-
"category": "layout",
|
|
285
|
-
"description": "コンテンツ幅を制限するラッパー要素。<Lism isWrapper>のエイリアスで、is--wrapper クラスが付与される。",
|
|
286
|
-
"aliases": ["max-width", "コンテンツ幅制限", "幅制限", "width limiter"],
|
|
287
|
-
"props": [
|
|
288
|
-
{
|
|
289
|
-
"name": "contentSize",
|
|
290
|
-
"type": "boolean | string",
|
|
291
|
-
"description": "コンテンツサイズを指定。's'や'l'などのプリセット値、または任意の値。"
|
|
292
|
-
},
|
|
293
|
-
{ "name": "layout", "type": "string", "description": "展開したいLayoutモジュールを指定。" },
|
|
294
|
-
{ "name": "isContainer", "type": "boolean", "description": "コンテナタイプをセットする。" }
|
|
295
|
-
],
|
|
296
|
-
"usage": "<Wrapper contentSize='s' layout='flow'>...</Wrapper>"
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
"name": "Icon",
|
|
300
|
-
"package": "lism-css",
|
|
301
|
-
"category": "atomic",
|
|
302
|
-
"description": "アイコンを表示するコンポーネント。SVGアイコンやアイコンコンポーネントを統一的に扱える。a--icon クラスが付与される。プリセットアイコン名の文字列、SVG文字列、外部コンポーネントなど多様な指定方法をサポート。",
|
|
303
|
-
"aliases": ["SVGアイコン", "アイコン表示", "icon component"],
|
|
304
|
-
"props": [
|
|
305
|
-
{
|
|
306
|
-
"name": "icon",
|
|
307
|
-
"type": "ElementType | string | { as: ElementType, [key: string]: unknown }",
|
|
308
|
-
"description": "アイコン要素。プリセット名の文字列、SVG文字列、外部コンポーネント、{as, ...props}オブジェクトを指定可能。"
|
|
309
|
-
},
|
|
310
|
-
{ "name": "label", "type": "string", "description": "aria-labelとして出力。指定ありでrole='img'、なしでaria-hidden='true'が付与される。" }
|
|
311
|
-
],
|
|
312
|
-
"usage": "<Icon icon={SomeIcon} w='1.5em' />"
|
|
313
|
-
},
|
|
314
|
-
{
|
|
315
|
-
"name": "Divider",
|
|
316
|
-
"package": "lism-css",
|
|
317
|
-
"category": "atomic",
|
|
318
|
-
"description": "区切り線を表示するコンポーネント。a--divider クラスが付与され、aria-hidden='true'がデフォルトで出力される。--bdcがvar(--divider)に初期セット。",
|
|
319
|
-
"aliases": ["separator", "区切り線", "仕切り", "hr"],
|
|
320
|
-
"props": [
|
|
321
|
-
{ "name": "bdw", "type": "string", "description": "区切り線のボーダー幅。" },
|
|
322
|
-
{ "name": "bds", "type": "string", "description": "区切り線のボーダースタイル。" },
|
|
323
|
-
{ "name": "bdc", "type": "string", "description": "区切り線のボーダーカラー。" },
|
|
324
|
-
{ "name": "variant", "type": "string", "description": "区切り線のバリエーション。" }
|
|
325
|
-
],
|
|
326
|
-
"usage": "<Divider />"
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
"name": "Media",
|
|
330
|
-
"package": "lism-css",
|
|
331
|
-
"category": "atomic",
|
|
332
|
-
"description": "img, video, iframe, picture 等のメディア要素を統一的に扱うコンポーネント。デフォルトでimgタグが出力される。as prop で img(デフォルト) / video / iframe / picture に変更可能。",
|
|
333
|
-
"aliases": ["画像", "動画", "img tag", "video tag", "picture", "メディア要素", "HTML.img"],
|
|
334
|
-
"props": [
|
|
335
|
-
{ "name": "src", "type": "string", "description": "メディアのURL。" },
|
|
336
|
-
{ "name": "alt", "type": "string", "description": "代替テキスト (img の場合)。" }
|
|
337
|
-
],
|
|
338
|
-
"usage": "<Media src='/image.jpg' alt='Photo' />"
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
"name": "Spacer",
|
|
342
|
-
"package": "lism-css",
|
|
343
|
-
"category": "atomic",
|
|
344
|
-
"description": "空白を挿入するコンポーネント。a--spacer クラスが付与され、aria-hidden='true'がデフォルトで出力される。w,hにはSPACEトークンの値が使える。",
|
|
345
|
-
"aliases": ["余白", "空白挿入", "スペース", "gap element"],
|
|
346
|
-
"props": [
|
|
347
|
-
{ "name": "h", "type": "string | number", "description": "高さ (スペーシングトークン値)。" },
|
|
348
|
-
{ "name": "w", "type": "string | number", "description": "幅 (スペーシングトークン値)。" }
|
|
349
|
-
],
|
|
350
|
-
"usage": "<Spacer h='40' />"
|
|
351
|
-
},
|
|
352
|
-
{
|
|
353
|
-
"name": "Decorator",
|
|
354
|
-
"package": "lism-css",
|
|
355
|
-
"category": "atomic",
|
|
356
|
-
"description": "装飾用のコンポーネント。視覚的な装飾要素を追加するために使用。a--decorator クラスが付与され、aria-hidden='true'がデフォルトで出力される。",
|
|
357
|
-
"aliases": ["装飾", "visual decoration", "装飾要素"],
|
|
358
|
-
"props": [
|
|
359
|
-
{
|
|
360
|
-
"name": "size",
|
|
361
|
-
"type": "string",
|
|
362
|
-
"description": "デコレーターのサイズ(横幅・高さ)を一括指定。wに渡され、ar='1/1'が自動付与される。"
|
|
363
|
-
},
|
|
364
|
-
{ "name": "clipPath", "type": "string", "description": "style.clipPathへ渡す。" },
|
|
365
|
-
{ "name": "boxSizing", "type": "string", "description": "style.boxSizingへ渡す。" }
|
|
366
|
-
],
|
|
367
|
-
"usage": "<Decorator size='1.25em' pos='abs' t='0' l='0' bd-x-s bd-y-s />"
|
|
368
|
-
},
|
|
369
|
-
{
|
|
370
|
-
"name": "Accordion",
|
|
371
|
-
"package": "@lism-css/ui",
|
|
372
|
-
"category": "interactive",
|
|
373
|
-
"description": "アコーディオン UI。クリックでコンテンツの開閉を切り替える。JavaScriptで開閉アニメーションを制御。パネルにhidden='until-found'を使用しブラウザのページ内検索に対応。サブコンポーネント構造: Accordion.Root > Accordion.Item > (Accordion.Heading > Accordion.Button) + Accordion.Panel。Accordion.Iconは自動で含まれる。",
|
|
374
|
-
"aliases": ["開閉", "折りたたみ", "FAQ", "collapsible", "toggle panel"],
|
|
375
|
-
"props": [
|
|
376
|
-
{
|
|
377
|
-
"name": "allowMultiple",
|
|
378
|
-
"type": "boolean",
|
|
379
|
-
"description": "複数のアイテムを同時に開くことを許可 (Root)。デフォルトでは一つしか展開できない。"
|
|
380
|
-
},
|
|
381
|
-
{
|
|
382
|
-
"name": "as",
|
|
383
|
-
"type": "string",
|
|
384
|
-
"description": "見出しのHTMLタグ (Heading)。デフォルトはdiv (role='heading'が自動付与)。h2〜h6を指定するとroleは付与されない。"
|
|
385
|
-
},
|
|
386
|
-
{ "name": "flow", "type": "string", "description": "パネル内のコンテンツ領域(__content)に渡すフローレイアウトの設定 (Panel)。" }
|
|
387
|
-
],
|
|
388
|
-
"usage": "<Accordion.Root>\n <Accordion.Item>\n <Accordion.Heading>\n <Accordion.Button>Label</Accordion.Button>\n </Accordion.Heading>\n <Accordion.Panel>Content</Accordion.Panel>\n </Accordion.Item>\n</Accordion.Root>"
|
|
389
|
-
},
|
|
390
|
-
{
|
|
391
|
-
"name": "Modal",
|
|
392
|
-
"package": "@lism-css/ui",
|
|
393
|
-
"category": "interactive",
|
|
394
|
-
"description": "モーダルダイアログ UI。dialog 要素を使用。JavaScriptが付属。data-modal-open/data-modal-close属性で開閉を制御。サブコンポーネント構造: Modal.OpenBtn + Modal.Root > Modal.Inner > Modal.Body + Modal.CloseBtn。",
|
|
395
|
-
"aliases": ["dialog", "popup", "ポップアップ", "ダイアログ", "モーダルウィンドウ"],
|
|
396
|
-
"props": [
|
|
397
|
-
{ "name": "id", "type": "string", "description": "モーダルのID (Root, 必須)。" },
|
|
398
|
-
{
|
|
399
|
-
"name": "modalId",
|
|
400
|
-
"type": "string",
|
|
401
|
-
"description": "対象モーダルのID (OpenBtn/CloseBtn)。data-modal-open/data-modal-closeとして出力。"
|
|
402
|
-
},
|
|
403
|
-
{ "name": "duration", "type": "string", "description": "アニメーションの持続時間 (Root)。--duration変数として出力。" },
|
|
404
|
-
{ "name": "offset", "type": "string", "description": "非表示時の位置をずらすオフセット値 (Inner)。--offset変数として出力。" },
|
|
405
|
-
{ "name": "layout", "type": "string", "description": "Inner要素のレイアウト用コンポーネントを指定 (Inner)。" }
|
|
406
|
-
],
|
|
407
|
-
"usage": "<Modal.OpenBtn modalId='modal-01'>Open</Modal.OpenBtn>\n<Modal.Root id='modal-01'>\n <Modal.Inner>\n <Modal.Body>Content</Modal.Body>\n <Modal.CloseBtn modalId='modal-01' />\n </Modal.Inner>\n</Modal.Root>"
|
|
408
|
-
},
|
|
409
|
-
{
|
|
410
|
-
"name": "Tabs",
|
|
411
|
-
"package": "@lism-css/ui",
|
|
412
|
-
"category": "interactive",
|
|
413
|
-
"description": "タブ切り替え UI。タブをクリックしてコンテンツパネルを切り替える。JavaScriptが付属。スタイリングはほぼなく動きのみ提供。サブコンポーネント構造: Tabs.Root > Tabs.Item > (Tabs.Tab + Tabs.Panel)。Tabs.Listも利用可能。",
|
|
414
|
-
"aliases": ["タブ切り替え", "tab panel", "パネル切り替え", "tab navigation"],
|
|
415
|
-
"props": [
|
|
416
|
-
{ "name": "tabId", "type": "string", "description": "タブを特定するためのID文字列 (Root)。aria-controlsに使用。" },
|
|
417
|
-
{ "name": "defaultIndex", "type": "number", "default": "1", "description": "初期アクティブタブ (1始まり) (Root)。" },
|
|
418
|
-
{ "name": "variant", "type": "string", "description": "スタイルバリエーション (Root)。c--tabs--{variant}クラスが出力。" },
|
|
419
|
-
{ "name": "listProps", "type": "object", "description": "タブボタンを囲むリスト要素(c--tabs_list)へ渡すprops (Root)。" }
|
|
420
|
-
],
|
|
421
|
-
"usage": "<Tabs.Root>\n <Tabs.Item>\n <Tabs.Tab>Tab 1</Tabs.Tab>\n <Tabs.Panel>Content 1</Tabs.Panel>\n </Tabs.Item>\n <Tabs.Item>\n <Tabs.Tab>Tab 2</Tabs.Tab>\n <Tabs.Panel>Content 2</Tabs.Panel>\n </Tabs.Item>\n</Tabs.Root>"
|
|
422
|
-
},
|
|
423
|
-
{
|
|
424
|
-
"name": "Details",
|
|
425
|
-
"package": "@lism-css/ui",
|
|
426
|
-
"category": "interactive",
|
|
427
|
-
"description": "HTMLの details/summary 要素をラップしたコンポーネント。Accordionとは違いJSを使わずCSSのみで実装。サブコンポーネント構造: Details.Root > Details.Summary > (Details.Title + Details.Icon) + Details.Content。",
|
|
428
|
-
"aliases": ["details summary", "disclosure", "ネイティブ開閉", "summary element"],
|
|
429
|
-
"props": [
|
|
430
|
-
{ "name": "as", "type": "string", "description": "Details.Titleで出力するHTMLタグの種類 (Title)。デフォルトはspan。" },
|
|
431
|
-
{ "name": "--duration", "type": "string", "description": "展開アニメーションの秒数 (Root)。style経由で指定。" }
|
|
432
|
-
],
|
|
433
|
-
"usage": "<Details.Root>\n <Details.Summary>\n <Details.Title>Title</Details.Title>\n <Details.Icon />\n </Details.Summary>\n <Details.Content>Content</Details.Content>\n</Details.Root>"
|
|
434
|
-
},
|
|
435
|
-
{
|
|
436
|
-
"name": "Alert",
|
|
437
|
-
"package": "@lism-css/ui",
|
|
438
|
-
"category": "feedback",
|
|
439
|
-
"description": "短めの文言を目立たせて強調表示するアラートボックス。アイコンとキーカラーでバリエーションを表現。typeプリセットによりアイコンとカラーが自動設定される。",
|
|
440
|
-
"aliases": ["notice", "warning box", "注意書き", "お知らせ", "通知"],
|
|
441
|
-
"props": [
|
|
442
|
-
{
|
|
443
|
-
"name": "type",
|
|
444
|
-
"type": "'alert' | 'point' | 'warning' | 'check' | 'help' | 'info'",
|
|
445
|
-
"default": "alert",
|
|
446
|
-
"description": "アラートタイプ。keycolorとiconの組み合わせプリセットを呼び出す。"
|
|
447
|
-
},
|
|
448
|
-
{ "name": "keycolor", "type": "string", "description": "アラートのキーカラー。" },
|
|
449
|
-
{ "name": "icon", "type": "ReactNode | string", "description": "カスタムアイコン。" },
|
|
450
|
-
{ "name": "layout", "type": "'flex' | 'sideMain'", "default": "flex", "description": "レイアウトモジュール。" },
|
|
451
|
-
{ "name": "flow", "type": "string", "default": "s", "description": "コンテンツを囲むdiv要素のフロー余白。" }
|
|
452
|
-
],
|
|
453
|
-
"usage": "<Alert type='warning'>Warning message</Alert>"
|
|
454
|
-
},
|
|
455
|
-
{
|
|
456
|
-
"name": "Callout",
|
|
457
|
-
"package": "@lism-css/ui",
|
|
458
|
-
"category": "feedback",
|
|
459
|
-
"description": "記事の中で重要なポイントを示すコンポーネント。タイトルとアイコン付きの強調ボックス。typeプリセットによりアイコンとカラーが自動設定される。",
|
|
460
|
-
"aliases": ["補足情報", "note box", "強調ボックス", "highlight"],
|
|
461
|
-
"props": [
|
|
462
|
-
{
|
|
463
|
-
"name": "type",
|
|
464
|
-
"type": "'note' | 'alert' | 'point' | 'warning' | 'check' | 'help'",
|
|
465
|
-
"default": "note",
|
|
466
|
-
"description": "コールアウトタイプ。keycolorとiconの組み合わせプリセットを呼び出す。"
|
|
467
|
-
},
|
|
468
|
-
{ "name": "keycolor", "type": "string", "description": "コールアウトのキーカラー。" },
|
|
469
|
-
{ "name": "icon", "type": "ReactNode | string", "description": "コールアウトのアイコン。" },
|
|
470
|
-
{ "name": "title", "type": "string", "description": "コールアウトのタイトルテキスト。" },
|
|
471
|
-
{ "name": "flow", "type": "string", "default": "s", "description": "コンテンツ部分(_body)のフロー余白。" }
|
|
472
|
-
],
|
|
473
|
-
"usage": "<Callout type='note' title='Important' keycolor='blue'>Important note</Callout>"
|
|
474
|
-
},
|
|
475
|
-
{
|
|
476
|
-
"name": "Button",
|
|
477
|
-
"package": "@lism-css/ui",
|
|
478
|
-
"category": "action",
|
|
479
|
-
"description": "ボタン型リンクコンポーネント。c--button クラスが付与される。デフォルトでa要素として出力。バリエーション (fill, outline 等) をサポート。",
|
|
480
|
-
"aliases": ["CTA", "アクションボタン", "リンクボタン", "submit"],
|
|
481
|
-
"props": [
|
|
482
|
-
{
|
|
483
|
-
"name": "variant",
|
|
484
|
-
"type": "string",
|
|
485
|
-
"description": "ボタンのバリエーション ('fill', 'outline' 等)。c--button--{variant}クラスが出力。"
|
|
486
|
-
},
|
|
487
|
-
{ "name": "keycolor", "type": "string", "description": "ボタンのキーカラー。" },
|
|
488
|
-
{ "name": "href", "type": "string", "description": "リンク先URL。" }
|
|
489
|
-
],
|
|
490
|
-
"usage": "<Button variant='fill' href='#'>Click me</Button>"
|
|
491
|
-
},
|
|
492
|
-
{
|
|
493
|
-
"name": "Badge",
|
|
494
|
-
"package": "@lism-css/ui",
|
|
495
|
-
"category": "display",
|
|
496
|
-
"description": "バッジ (ラベル) コンポーネント。c--badge クラスが付与される。span要素としてインライン表示。カテゴリやステータスの表示に使用。",
|
|
497
|
-
"aliases": ["ラベル", "ステータス表示", "tag label", "カテゴリ表示"],
|
|
498
|
-
"props": [
|
|
499
|
-
{ "name": "variant", "type": "string", "description": "バッジのバリエーション ('outline' 等)。c--badge--{variant}クラスが出力。" },
|
|
500
|
-
{ "name": "keycolor", "type": "string", "description": "バッジのキーカラー。" }
|
|
501
|
-
],
|
|
502
|
-
"usage": "<Badge keycolor='green'>New</Badge>"
|
|
503
|
-
},
|
|
504
|
-
{
|
|
505
|
-
"name": "Avatar",
|
|
506
|
-
"package": "@lism-css/ui",
|
|
507
|
-
"category": "display",
|
|
508
|
-
"description": "アバター (プロフィール画像) コンポーネント。c--avatar クラスが付与される。Frameベースの円形画像表示。",
|
|
509
|
-
"aliases": ["プロフィール画像", "user icon", "ユーザーアイコン", "丸画像"],
|
|
510
|
-
"props": [
|
|
511
|
-
{ "name": "src", "type": "string", "description": "画像URL。" },
|
|
512
|
-
{ "name": "alt", "type": "string", "description": "代替テキスト。" },
|
|
513
|
-
{ "name": "size", "type": "string", "default": "1.5em", "description": "アバターのサイズ。" }
|
|
514
|
-
],
|
|
515
|
-
"usage": "<Avatar src='/avatar.jpg' alt='User' size='48px' />"
|
|
516
|
-
},
|
|
517
|
-
{
|
|
518
|
-
"name": "Chat",
|
|
519
|
-
"package": "@lism-css/ui",
|
|
520
|
-
"category": "display",
|
|
521
|
-
"description": "チャット風の吹き出しコンポーネント。c--chat クラスが付与される。Gridベースの会話形式のUI表現に使用。",
|
|
522
|
-
"aliases": ["吹き出し", "会話UI", "message bubble", "balloon", "speech bubble"],
|
|
523
|
-
"props": [
|
|
524
|
-
{ "name": "name", "type": "string", "description": "発言者の名前。" },
|
|
525
|
-
{ "name": "avatar", "type": "string", "description": "アバター画像のsrc。" },
|
|
526
|
-
{ "name": "variant", "type": "'speak' | 'think'", "default": "speak", "description": "チャットタイプ。" },
|
|
527
|
-
{ "name": "direction", "type": "'start' | 'end'", "default": "start", "description": "チャットの表示位置。" },
|
|
528
|
-
{ "name": "keycolor", "type": "string", "default": "gray", "description": "チャットボックスのキーカラー。" },
|
|
529
|
-
{ "name": "flow", "type": "string", "default": "s", "description": "コンテンツを囲む要素(c--chat_content)に渡されるフロー余白。" }
|
|
530
|
-
],
|
|
531
|
-
"usage": "<Chat name='Alice' avatar='/alice.jpg'>Hello!</Chat>"
|
|
532
|
-
},
|
|
533
|
-
{
|
|
534
|
-
"name": "NavMenu",
|
|
535
|
-
"package": "@lism-css/ui",
|
|
536
|
-
"category": "navigation",
|
|
537
|
-
"description": "ナビゲーションメニューコンポーネント。c--navMenu クラスが付与される。サブコンポーネント構造: NavMenu.Root > NavMenu.Item > NavMenu.Link。NavMenu.Nestでネストも可能。",
|
|
538
|
-
"aliases": ["ナビゲーション", "メニュー", "navigation links", "リンクリスト"],
|
|
539
|
-
"props": [
|
|
540
|
-
{ "name": "hovBgc", "type": "string", "description": "ホバー時の背景カラー (Root)。--hov-bgc変数として出力。" },
|
|
541
|
-
{ "name": "hovC", "type": "string", "description": "ホバー時のテキストカラー (Root)。--hov-c変数として出力。" },
|
|
542
|
-
{ "name": "itemP", "type": "string", "description": "各アイテムのパディング (Root)。--_item-p変数として出力。" },
|
|
543
|
-
{ "name": "href", "type": "string", "description": "リンク先URL (Link)。指定ありでa要素、なしでspan要素。" }
|
|
544
|
-
],
|
|
545
|
-
"usage": "<NavMenu.Root>\n <NavMenu.Item>\n <NavMenu.Link href='/'>Home</NavMenu.Link>\n </NavMenu.Item>\n <NavMenu.Item>\n <NavMenu.Link href='/about'>About</NavMenu.Link>\n </NavMenu.Item>\n</NavMenu.Root>"
|
|
546
|
-
},
|
|
547
|
-
{
|
|
548
|
-
"name": "ShapeDivider",
|
|
549
|
-
"package": "@lism-css/ui",
|
|
550
|
-
"category": "decoration",
|
|
551
|
-
"description": "セクション間の波型などの装飾的な区切り要素。SVGベースの形状で区切りを表現。viewBoxとSVGのpath要素を子要素として渡して使用。",
|
|
552
|
-
"aliases": ["波型", "section separator", "セクション区切り", "wave divider", "装飾区切り"],
|
|
553
|
-
"props": [
|
|
554
|
-
{ "name": "viewBox", "type": "string", "description": "出力するSVGのviewBox。" },
|
|
555
|
-
{ "name": "level", "type": "number", "default": "5", "description": "シェイプの高さレベル。0で非表示。" },
|
|
556
|
-
{ "name": "flip", "type": "'X' | 'Y' | 'XY'", "description": "X/Y/XYで反転方向を指定。data-flip属性として出力。" },
|
|
557
|
-
{ "name": "stretch", "type": "string", "description": "水平方向の引き伸ばし量。--_inner-stretch変数として出力。" },
|
|
558
|
-
{ "name": "offset", "type": "string", "description": "水平方向のオフセット。--_inner-offset変数として出力。" },
|
|
559
|
-
{ "name": "isEmpty", "type": "boolean", "description": "シェイプを非表示にしてスペーサーとして使用。" },
|
|
560
|
-
{ "name": "isAnimation", "type": "boolean", "description": "アニメーションを有効にする。data-has-animation属性として出力。" }
|
|
561
|
-
],
|
|
562
|
-
"usage": "<ShapeDivider viewBox='0 0 100 10'>\n <path d='M100 6C89.3 3.3 82.7 9 70 9S48.4 3 38 3 24.5 6 17 6C7.4 6 0 0 0 0v10h100V6z'/>\n</ShapeDivider>"
|
|
563
|
-
}
|
|
564
|
-
]
|