lism-css 0.11.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/README.ja.md +9 -9
- package/README.md +12 -12
- package/config/default-config.ts +2 -2
- package/config/defaults/props.ts +16 -26
- package/config/defaults/traits.ts +16 -0
- package/config/index.ts +3 -3
- package/dist/components/{atomic/Media → Media}/Media.d.ts +2 -2
- package/dist/components/{atomic/Media → Media}/index.js +1 -1
- package/dist/components/atomic/Icon/getProps.d.ts +1 -1
- package/dist/components/atomic/Icon/index.d.ts +1 -1
- package/dist/components/index.d.ts +18 -18
- package/dist/components/index.js +45 -45
- package/dist/components/{Box → layout/Box}/Box.d.ts +2 -2
- package/dist/components/{Box → layout/Box}/index.js +1 -1
- package/dist/components/{Center → layout/Center}/Center.d.ts +2 -2
- package/dist/components/{Center → layout/Center}/index.js +1 -1
- package/dist/components/{Cluster → layout/Cluster}/Cluster.d.ts +2 -2
- package/dist/components/{Cluster → layout/Cluster}/index.js +1 -1
- package/dist/components/{Columns → layout/Columns}/Columns.d.ts +2 -2
- package/dist/components/{Columns → layout/Columns}/index.js +1 -1
- package/dist/components/{Flex → layout/Flex}/Flex.d.ts +2 -2
- package/dist/components/{Flex → layout/Flex}/index.js +1 -1
- package/dist/components/{Flow → layout/Flow}/Flow.d.ts +2 -2
- package/dist/components/{Flow → layout/Flow}/index.js +1 -1
- package/dist/components/{FluidCols → layout/FluidCols}/FluidCols.d.ts +2 -2
- package/dist/components/{FluidCols → layout/FluidCols}/index.js +1 -1
- package/dist/components/{Frame → layout/Frame}/Frame.d.ts +2 -2
- package/dist/components/{Frame → layout/Frame}/index.js +1 -1
- package/dist/components/{Grid → layout/Grid}/Grid.d.ts +2 -2
- package/dist/components/{Grid → layout/Grid}/index.js +1 -1
- package/dist/components/{SideMain → layout/SideMain}/SideMain.d.ts +2 -2
- package/dist/components/{SideMain → layout/SideMain}/index.js +1 -1
- package/dist/components/{Stack → layout/Stack}/Stack.d.ts +2 -2
- package/dist/components/{Stack → layout/Stack}/index.js +1 -1
- package/dist/components/{SwitchCols → layout/SwitchCols}/SwitchCols.d.ts +2 -2
- package/dist/components/{SwitchCols → layout/SwitchCols}/index.js +1 -1
- package/dist/components/layout/TileGrid/TileGrid.d.ts +4 -0
- package/dist/components/layout/TileGrid/index.d.ts +1 -0
- package/dist/components/layout/TileGrid/index.js +8 -0
- package/dist/components/state/BoxLink/BoxLink.d.ts +5 -0
- package/dist/components/{LinkBox/LinkBox.stories.d.ts → state/BoxLink/BoxLink.stories.d.ts} +3 -3
- package/dist/components/state/BoxLink/index.d.ts +1 -0
- package/dist/components/{LinkBox → state/BoxLink}/index.js +2 -2
- package/dist/components/state/BoxLink/script.d.ts +4 -0
- package/dist/components/state/Container/Container.d.ts +2 -0
- package/dist/components/{Container → state/Container}/Container.stories.d.ts +2 -2
- package/dist/components/state/Container/index.js +8 -0
- package/dist/components/{Layer → state/Layer}/Layer.d.ts +1 -1
- package/dist/components/{Layer → state/Layer}/index.js +1 -1
- package/dist/components/{Wrapper → state/Wrapper}/Wrapper.d.ts +1 -1
- package/dist/components/{Wrapper → state/Wrapper}/index.js +1 -1
- package/dist/config/default-config.d.ts +27 -73
- package/dist/config/default-config.js +4 -4
- package/dist/config/defaults/props.d.ts +24 -58
- package/dist/config/defaults/props.js +16 -26
- package/dist/config/defaults/{states.d.ts → traits.d.ts} +2 -14
- package/dist/config/defaults/traits.js +19 -0
- package/dist/config/index.d.ts +54 -146
- package/dist/config/index.js +5 -5
- package/dist/css/base.css +1 -1
- package/dist/css/main.css +1 -1
- package/dist/css/main_no_layer.css +1 -1
- package/dist/css/primitives/layout.css +1 -0
- package/dist/css/primitives/trait.css +1 -0
- package/dist/css/props.css +1 -1
- package/dist/css/utility.css +1 -1
- package/dist/lib/getLayoutProps.js +12 -15
- package/dist/lib/getLismProps.d.ts +9 -6
- package/dist/lib/getLismProps.js +113 -101
- package/dist/lib/helper/mergeSet.d.ts +10 -0
- package/dist/lib/helper/mergeSet.js +14 -0
- package/dist/lib/types/LayoutProps.d.ts +4 -1
- package/dist/lib/types/TraitProps.d.ts +47 -0
- package/dist/lib/types/TraitProps.spec-d.d.ts +1 -0
- package/package.json +1 -1
- package/packages/astro/{Decorator → atomic/Decorator}/Decorator.astro +1 -1
- package/packages/astro/{Divider → atomic/Divider}/Divider.astro +2 -2
- package/packages/astro/{Icon → atomic/Icon}/Icon.astro +1 -1
- package/packages/astro/{Spacer → atomic/Spacer}/Spacer.astro +2 -2
- package/packages/astro/index.ts +26 -22
- package/packages/astro/{Box → layout/Box}/Box.astro +2 -2
- package/packages/astro/{Center → layout/Center}/Center.astro +2 -2
- package/packages/astro/{Cluster → layout/Cluster}/Cluster.astro +2 -2
- package/packages/astro/{Columns → layout/Columns}/Columns.astro +2 -2
- package/packages/astro/{Flex → layout/Flex}/Flex.astro +2 -2
- package/packages/astro/{Flow → layout/Flow}/Flow.astro +2 -2
- package/packages/astro/{FluidCols → layout/FluidCols}/FluidCols.astro +2 -2
- package/packages/astro/{Frame → layout/Frame}/Frame.astro +2 -2
- package/packages/astro/{Grid → layout/Grid}/Grid.astro +2 -2
- package/packages/astro/{SideMain → layout/SideMain}/SideMain.astro +2 -2
- package/packages/astro/{Stack → layout/Stack}/Stack.astro +2 -2
- package/packages/astro/{SwitchCols → layout/SwitchCols}/SwitchCols.astro +2 -2
- package/packages/astro/layout/TileGrid/TileGrid.astro +11 -0
- package/packages/astro/layout/TileGrid/index.ts +1 -0
- package/packages/astro/{LinkBox/LinkBox.astro → state/BoxLink/BoxLink.astro} +4 -4
- package/packages/astro/state/BoxLink/index.ts +1 -0
- package/packages/astro/state/Container/Container.astro +11 -0
- package/packages/astro/{Layer → state/Layer}/Layer.astro +2 -2
- package/packages/astro/{Wrapper → state/Wrapper}/Wrapper.astro +2 -2
- package/src/scss/_auto_output.scss +1 -1
- package/src/scss/_prop-config.scss +24 -26
- package/src/scss/_with_layer.scss +15 -8
- package/src/scss/base/_html.scss +8 -8
- package/src/scss/base/tokens/_tokens.scss +1 -3
- package/src/scss/main_no_layer.scss +4 -4
- package/src/scss/primitives/layout/_grid.scss +7 -0
- package/src/scss/primitives/layout/_tileGrid.scss +4 -0
- package/src/scss/{modules → primitives}/layout/index.scss +2 -1
- package/src/scss/{modules/state/_linkbox.scss → primitives/trait/_boxLink.scss} +4 -4
- package/src/scss/{utility/_linkExpand.scss → primitives/trait/_coverLink.scss} +1 -1
- package/src/scss/primitives/trait/index.scss +7 -0
- package/src/scss/props/index.scss +1 -1
- package/src/scss/utility/_cbox.scss +1 -1
- package/src/scss/utility/_clipText.scss +1 -1
- package/src/scss/utility/index.scss +0 -1
- package/config/defaults/states.ts +0 -43
- package/config/helper/getSvgUrl.ts +0 -26
- package/dist/components/Container/Container.d.ts +0 -6
- package/dist/components/Container/index.js +0 -8
- package/dist/components/HTML/HTML.d.ts +0 -26
- package/dist/components/HTML/index.d.ts +0 -14
- package/dist/components/HTML/index.js +0 -5
- package/dist/components/HTML/index2.js +0 -45
- package/dist/components/LinkBox/LinkBox.d.ts +0 -5
- package/dist/components/LinkBox/index.d.ts +0 -1
- package/dist/components/LinkBox/script.d.ts +0 -4
- package/dist/config/defaults/states.js +0 -38
- package/dist/config/helper/getSvgUrl.d.ts +0 -5
- package/dist/config/helper/getSvgUrl.js +0 -4
- package/dist/css/modules/layout.css +0 -1
- package/dist/css/modules/state.css +0 -1
- package/dist/lib/types/StateProps.d.ts +0 -27
- package/packages/astro/Container/Container.astro +0 -14
- package/packages/astro/HTML/_index_memo.js +0 -29
- package/packages/astro/HTML/a.astro +0 -10
- package/packages/astro/HTML/button.astro +0 -10
- package/packages/astro/HTML/div.astro +0 -10
- package/packages/astro/HTML/h.astro +0 -13
- package/packages/astro/HTML/img.astro +0 -10
- package/packages/astro/HTML/index.ts +0 -12
- package/packages/astro/HTML/li.astro +0 -10
- package/packages/astro/HTML/ol.astro +0 -10
- package/packages/astro/HTML/p.astro +0 -10
- package/packages/astro/HTML/span.astro +0 -10
- package/packages/astro/HTML/ul.astro +0 -10
- package/packages/astro/LinkBox/index.ts +0 -1
- package/src/scss/modules/layout/_grid.scss +0 -12
- package/src/scss/modules/state/index.scss +0 -6
- /package/dist/components/{atomic/Media → Media}/Media.stories.d.ts +0 -0
- /package/dist/components/{atomic/Media → Media}/index.d.ts +0 -0
- /package/dist/components/{Box → layout/Box}/Box.stories.d.ts +0 -0
- /package/dist/components/{Box → layout/Box}/index.d.ts +0 -0
- /package/dist/components/{Center → layout/Center}/Center.stories.d.ts +0 -0
- /package/dist/components/{Center → layout/Center}/index.d.ts +0 -0
- /package/dist/components/{Cluster → layout/Cluster}/Cluster.stories.d.ts +0 -0
- /package/dist/components/{Cluster → layout/Cluster}/index.d.ts +0 -0
- /package/dist/components/{Columns → layout/Columns}/Columns.stories.d.ts +0 -0
- /package/dist/components/{Columns → layout/Columns}/index.d.ts +0 -0
- /package/dist/components/{Flex → layout/Flex}/Flex.stories.d.ts +0 -0
- /package/dist/components/{Flex → layout/Flex}/index.d.ts +0 -0
- /package/dist/components/{Flow → layout/Flow}/Flow.stories.d.ts +0 -0
- /package/dist/components/{Flow → layout/Flow}/index.d.ts +0 -0
- /package/dist/components/{FluidCols → layout/FluidCols}/FluidCols.stories.d.ts +0 -0
- /package/dist/components/{FluidCols → layout/FluidCols}/index.d.ts +0 -0
- /package/dist/components/{Frame → layout/Frame}/Frame.stories.d.ts +0 -0
- /package/dist/components/{Frame → layout/Frame}/index.d.ts +0 -0
- /package/dist/components/{Grid → layout/Grid}/Grid.stories.d.ts +0 -0
- /package/dist/components/{Grid → layout/Grid}/index.d.ts +0 -0
- /package/dist/components/{SideMain → layout/SideMain}/SideMain.stories.d.ts +0 -0
- /package/dist/components/{SideMain → layout/SideMain}/index.d.ts +0 -0
- /package/dist/components/{Stack → layout/Stack}/Stack.stories.d.ts +0 -0
- /package/dist/components/{Stack → layout/Stack}/index.d.ts +0 -0
- /package/dist/components/{SwitchCols → layout/SwitchCols}/SwitchCols.stories.d.ts +0 -0
- /package/dist/components/{SwitchCols → layout/SwitchCols}/index.d.ts +0 -0
- /package/dist/components/{Container → state/Container}/index.d.ts +0 -0
- /package/dist/components/{Layer → state/Layer}/Layer.stories.d.ts +0 -0
- /package/dist/components/{Layer → state/Layer}/Layer.test.d.ts +0 -0
- /package/dist/components/{Layer → state/Layer}/index.d.ts +0 -0
- /package/dist/components/{Wrapper → state/Wrapper}/Wrapper.stories.d.ts +0 -0
- /package/dist/components/{Wrapper → state/Wrapper}/index.d.ts +0 -0
- /package/dist/css/{modules → primitives}/atomic.css +0 -0
- /package/dist/lib/{types/StateProps.spec-d.d.ts → helper/mergeSet.test.d.ts} +0 -0
- /package/packages/astro/{Decorator → atomic/Decorator}/index.ts +0 -0
- /package/packages/astro/{Divider → atomic/Divider}/index.ts +0 -0
- /package/packages/astro/{Icon → atomic/Icon}/SVG.astro +0 -0
- /package/packages/astro/{Icon → atomic/Icon}/index.ts +0 -0
- /package/packages/astro/{Spacer → atomic/Spacer}/index.ts +0 -0
- /package/packages/astro/{Box → layout/Box}/index.ts +0 -0
- /package/packages/astro/{Center → layout/Center}/index.ts +0 -0
- /package/packages/astro/{Cluster → layout/Cluster}/index.ts +0 -0
- /package/packages/astro/{Columns → layout/Columns}/index.ts +0 -0
- /package/packages/astro/{Flex → layout/Flex}/index.ts +0 -0
- /package/packages/astro/{Flow → layout/Flow}/index.ts +0 -0
- /package/packages/astro/{FluidCols → layout/FluidCols}/index.ts +0 -0
- /package/packages/astro/{Frame → layout/Frame}/index.ts +0 -0
- /package/packages/astro/{Grid → layout/Grid}/index.ts +0 -0
- /package/packages/astro/{SideMain → layout/SideMain}/index.ts +0 -0
- /package/packages/astro/{Stack → layout/Stack}/index.ts +0 -0
- /package/packages/astro/{SwitchCols → layout/SwitchCols}/index.ts +0 -0
- /package/packages/astro/{Container → state/Container}/index.ts +0 -0
- /package/packages/astro/{Layer → state/Layer}/index.ts +0 -0
- /package/packages/astro/{Wrapper → state/Wrapper}/index.ts +0 -0
- /package/src/scss/{modules → primitives}/atomic/_divider.scss +0 -0
- /package/src/scss/{modules → primitives}/atomic/_icon.scss +0 -0
- /package/src/scss/{modules → primitives}/atomic/_spacer.scss +0 -0
- /package/src/scss/{modules → primitives}/atomic/index.scss +0 -0
- /package/src/scss/{modules → primitives}/layout/_center.scss +0 -0
- /package/src/scss/{modules → primitives}/layout/_cluster.scss +0 -0
- /package/src/scss/{modules → primitives}/layout/_columns.scss +0 -0
- /package/src/scss/{modules → primitives}/layout/_flex.scss +0 -0
- /package/src/scss/{modules → primitives}/layout/_flow.scss +0 -0
- /package/src/scss/{modules → primitives}/layout/_fluidCols.scss +0 -0
- /package/src/scss/{modules → primitives}/layout/_frame.scss +0 -0
- /package/src/scss/{modules → primitives}/layout/_sideMain.scss +0 -0
- /package/src/scss/{modules → primitives}/layout/_stack.scss +0 -0
- /package/src/scss/{modules → primitives}/layout/_switchCols.scss +0 -0
- /package/src/scss/{modules/state → primitives/trait}/_container.scss +0 -0
- /package/src/scss/{modules/state → primitives/trait}/_layer.scss +0 -0
- /package/src/scss/{modules/state → primitives/trait}/_vertical.scss +0 -0
- /package/src/scss/{modules/state → primitives/trait}/_wrapper.scss +0 -0
package/README.ja.md
CHANGED
|
@@ -18,8 +18,8 @@ React / Astro 向けのコンポーネントも提供しており、propsを通
|
|
|
18
18
|
|
|
19
19
|
- **軽量** - CSS バンドル全体で約 30 KB(gzip 圧縮時 約 8 KB)と、軽量です。
|
|
20
20
|
- **ゼロビルドフレームワーク** — CSS ファイルを読み込むだけで、プレーン HTML でも動作します。ビルドツール、プリプロセッサ、設定は不要。CDN または npm で利用可能。
|
|
21
|
-
-
|
|
22
|
-
- **CSS レイヤー構造** — `@layer`(lism-
|
|
21
|
+
- **レイアウト優先のプリミティブアーキテクチャ** — レイアウトプリミティブ(`l--flex`、`l--stack`、`l--grid`、`l--columns`、`l--center`、`l--sideMain` など)で、カスタム CSS を書かずに一般的なレイアウトパターンを組み立てられます。
|
|
22
|
+
- **CSS レイヤー構造** — `@layer`(lism-base → lism-primitive → lism-component → lism-custom → lism-utility)を使用した明確な詳細度管理。`lism-primitive` の内部は `trait` / `layout` / `atomic` のサブレイヤーに分かれています。`lism-component` は BEM 構造の `c--` コンポーネント用レイヤー、`lism-custom` はユーザー独自プレフィックスのクラス用レイヤーです。詳細度の衝突を最小限に抑えます。
|
|
23
23
|
- **デザイントークン** — カラー、スペーシング、フォントサイズ、シャドウ、ボーダー半径を CSS カスタムプロパティで管理。変数を上書きするだけで簡単にカスタマイズできます。
|
|
24
24
|
- **柔軟なプロップクラス** — `-{prop}:{value}` の命名規則(例: `-p:20`、`-bgc:base-2`、`-fz:l`)で CSS プロパティをユーティリティクラスにマッピングし、素早く読みやすいスタイリングを実現します。
|
|
25
25
|
- **レスポンシブシステム** — ブレークポイント固有のクラスと CSS 変数(例: `-p_sm`、`-p_md`)にデフォルトでコンテナクエリを採用し、親要素ベースのレスポンシブデザインを実現。メディアクエリへの切り替えも可能。
|
|
@@ -131,7 +131,7 @@ Lism CSS は以下の React / Astro コンポーネントを提供します:
|
|
|
131
131
|
Lism, Box, Flow, Flex, Cluster, Stack, Grid, FluidCols, SwitchCols, SideMain, Center, Columns, Frame
|
|
132
132
|
|
|
133
133
|
**構造コンポーネント:**
|
|
134
|
-
Container, Wrapper, Layer,
|
|
134
|
+
Container, Wrapper, Layer, BoxLink
|
|
135
135
|
|
|
136
136
|
**コンテンツコンポーネント:**
|
|
137
137
|
Text, Heading, Inline, Link, Group, List
|
|
@@ -147,8 +147,8 @@ Lism CSS は構造化された命名規則を CSS クラスに使用していま
|
|
|
147
147
|
|
|
148
148
|
| タイプ | パターン | 例 |
|
|
149
149
|
|--------|---------|-----|
|
|
150
|
-
|
|
|
151
|
-
|
|
|
150
|
+
| レイアウトプリミティブ | `l--{name}` | `l--flex`, `l--grid`, `l--stack`, `l--center`, `l--columns`, `l--sideMain` |
|
|
151
|
+
| トレイトプリミティブ | `is--{name}` | `is--wrapper`, `is--container`, `is--layer` |
|
|
152
152
|
| プロップクラス | `-{prop}:{value}` | `-p:20`, `-m:auto`, `-bgc:base-2`, `-fz:l`, `-ta:center` |
|
|
153
153
|
| ブレークポイント | `-{prop}_{bp}` | `-p_sm`, `-g_md`, `-fz_lg` |
|
|
154
154
|
| ユーティリティクラス | `u--{name}` | `u--cbox` |
|
|
@@ -180,10 +180,10 @@ Lism CSS は構造化された命名規則を CSS クラスに使用していま
|
|
|
180
180
|
Lism CSS は一貫したデザインのための CSS カスタムプロパティを提供します:
|
|
181
181
|
|
|
182
182
|
- **カラー:** `--base`、`--base-2`、`--text`、`--text-2`、`--link`、`--divider`、`--brand`、`--accent`、パレットカラー(`--red`、`--blue`、`--green` など)
|
|
183
|
-
- **スペーシング:** `--s10`
|
|
184
|
-
- **フォントサイズ:** `--fz--
|
|
185
|
-
- **ボーダー半径:** `--bdrs--
|
|
186
|
-
- **シャドウ:** `--
|
|
183
|
+
- **スペーシング:** `--s5`, `--s10`, `--s15`, `--s20`, `--s30`, `--s40` … `--s80`(rem 値にマッピング)
|
|
184
|
+
- **フォントサイズ:** `--fz--2xs` 〜 `--fz--5xl`
|
|
185
|
+
- **ボーダー半径:** `--bdrs--10`(0.25rem)〜 `--bdrs--99`(99rem)
|
|
186
|
+
- **シャドウ:** `--bxsh--10` 〜 `--bxsh--40`(シャドウカラー設定可能)
|
|
187
187
|
- **コンテナサイズ:** `--sz--xs`(32rem)〜 `--sz--xl`(1600px)
|
|
188
188
|
|
|
189
189
|
## UI コンポーネント
|
package/README.md
CHANGED
|
@@ -17,10 +17,10 @@ No build step or configuration is required. Simply load the CSS file via CDN or
|
|
|
17
17
|
|
|
18
18
|
- **Lightweight** — The entire CSS bundle is approximately 30 KB (~8 KB gzipped).
|
|
19
19
|
- **Zero-Build Framework** — Works with plain HTML by simply loading a CSS file. No build tool, preprocessor, or configuration needed. Available via CDN or npm.
|
|
20
|
-
- **Layout-First
|
|
21
|
-
- **CSS Layer Structure** — Uses `@layer` (lism-
|
|
20
|
+
- **Layout-First Primitive Architecture** — Pre-built layout primitives (`l--flex`, `l--stack`, `l--grid`, `l--columns`, `l--center`, `l--sideMain`, etc.) let you compose common layout patterns without writing custom CSS.
|
|
21
|
+
- **CSS Layer Structure** — Uses `@layer` (lism-base → lism-primitive → lism-component → lism-custom → lism-utility) for clear specificity management. `lism-primitive` contains `trait` / `layout` / `atomic` sub-layers. `lism-component` is the layer for BEM-structured `c--` components. `lism-custom` is the layer for user-defined classes with custom prefixes. Minimizes specificity conflicts.
|
|
22
22
|
- **Design Tokens** — Colors, spacing, font sizes, shadows, and border radii are managed as CSS custom properties. Easy to customize by overriding variables.
|
|
23
|
-
- **Flexible
|
|
23
|
+
- **Flexible Property Classes** — A `-{prop}:{value}` naming convention (e.g., `-p:20`, `-bgc:base-2`, `-fz:l`) maps CSS properties to utility classes for quick, readable styling.
|
|
24
24
|
- **Responsive System** — Breakpoint-specific classes and CSS variables (e.g., `-p_sm`, `-p_md`) use container queries by default for parent-based responsive design. Switchable to media queries.
|
|
25
25
|
- **React & Astro Components** — Dedicated components for both React and Astro translate props into Lism CSS classes and variables automatically. Write `<Stack g="20">` instead of `class="l--stack -g:20"`.
|
|
26
26
|
|
|
@@ -130,7 +130,7 @@ Lism CSS provides the following React and Astro components:
|
|
|
130
130
|
Lism, Box, Flow, Flex, Cluster, Stack, Grid, FluidCols, SwitchCols, SideMain, Center, Columns, Frame
|
|
131
131
|
|
|
132
132
|
**Structure Components:**
|
|
133
|
-
Container, Wrapper, Layer,
|
|
133
|
+
Container, Wrapper, Layer, BoxLink
|
|
134
134
|
|
|
135
135
|
**Content Components:**
|
|
136
136
|
Text, Heading, Inline, Link, Group, List
|
|
@@ -146,9 +146,9 @@ Lism CSS uses a structured naming convention for CSS classes:
|
|
|
146
146
|
|
|
147
147
|
| Type | Pattern | Examples |
|
|
148
148
|
|------|---------|----------|
|
|
149
|
-
| Layout
|
|
150
|
-
|
|
|
151
|
-
|
|
|
149
|
+
| Layout Primitive | `l--{name}` | `l--flex`, `l--grid`, `l--stack`, `l--center`, `l--columns`, `l--sideMain` |
|
|
150
|
+
| Trait Primitive | `is--{name}` | `is--wrapper`, `is--container`, `is--layer` |
|
|
151
|
+
| Property Class | `-{prop}:{value}` | `-p:20`, `-m:auto`, `-bgc:base-2`, `-fz:l`, `-ta:center` |
|
|
152
152
|
| Breakpoint | `-{prop}_{bp}` | `-p_sm`, `-g_md`, `-fz_lg` |
|
|
153
153
|
| Utility Class | `u--{name}` | `u--cbox` |
|
|
154
154
|
|
|
@@ -179,10 +179,10 @@ Default breakpoints: `sm` = 480px, `md` = 800px, `lg` = 1120px (container querie
|
|
|
179
179
|
Lism CSS provides CSS custom properties for consistent design:
|
|
180
180
|
|
|
181
181
|
- **Colors:** `--base`, `--base-2`, `--text`, `--text-2`, `--link`, `--divider`, `--brand`, `--accent`, plus palette colors (`--red`, `--blue`, `--green`, etc.)
|
|
182
|
-
- **Spacing:** `--s10`
|
|
183
|
-
- **Font Sizes:** `--fz--
|
|
184
|
-
- **Border Radius:** `--bdrs--
|
|
185
|
-
- **Shadows:** `--
|
|
182
|
+
- **Spacing:** `--s5`, `--s10`, `--s15`, `--s20`, `--s30`, `--s40` … `--s80` (mapped to rem values)
|
|
183
|
+
- **Font Sizes:** `--fz--2xs` through `--fz--5xl`
|
|
184
|
+
- **Border Radius:** `--bdrs--10` (0.25rem) through `--bdrs--99` (99rem)
|
|
185
|
+
- **Shadows:** `--bxsh--10` through `--bxsh--40` with configurable shadow colors
|
|
186
186
|
- **Container Sizes:** `--sz--xs` (32rem) through `--sz--xl` (1600px)
|
|
187
187
|
|
|
188
188
|
## UI Components
|
|
@@ -244,7 +244,7 @@ claude mcp add lism-css -- npx -y @lism-css/mcp
|
|
|
244
244
|
|
|
245
245
|
## Documentation
|
|
246
246
|
|
|
247
|
-
For full documentation, visit [lism-css.com](https://lism-css.com).
|
|
247
|
+
For full documentation, visit [lism-css.com/en](https://lism-css.com/en/).
|
|
248
248
|
|
|
249
249
|
## Community
|
|
250
250
|
|
package/config/default-config.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import TOKENS from './defaults/tokens';
|
|
2
2
|
import PROPS from './defaults/props';
|
|
3
|
-
import
|
|
3
|
+
import TRAITS from './defaults/traits';
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
6
|
tokens: TOKENS,
|
|
7
7
|
props: PROPS,
|
|
8
|
-
|
|
8
|
+
traits: TRAITS,
|
|
9
9
|
} as const;
|
package/config/defaults/props.ts
CHANGED
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
const PLACE_PRESETS = ['start', 'center', 'end'] as const;
|
|
19
|
-
const
|
|
20
|
-
const PLACE_SHORTHANDS = { s: 'start', e: 'end', c: 'center', fs: 'flex-
|
|
19
|
+
const PLACE_FX_PRESETS = ['flex-start', 'flex-end'] as const;
|
|
20
|
+
const PLACE_SHORTHANDS = { s: 'start', e: 'end', c: 'center', fs: 'flex-start', fe: 'flex-end' } as const;
|
|
21
21
|
|
|
22
22
|
export default {
|
|
23
23
|
f: { prop: 'font', presets: ['inherit'] },
|
|
@@ -52,8 +52,7 @@ export default {
|
|
|
52
52
|
|
|
53
53
|
d: {
|
|
54
54
|
prop: 'display',
|
|
55
|
-
presets: ['none', 'block'],
|
|
56
|
-
utils: { 'in-flex': 'inline-flex' },
|
|
55
|
+
presets: ['none', 'block', 'flex', 'inline-flex', 'grid', 'inline-grid', 'inline', 'inline-block'],
|
|
57
56
|
bp: 1,
|
|
58
57
|
},
|
|
59
58
|
o: { prop: 'opacity', presets: ['0'], token: 'o', tokenClass: 1 },
|
|
@@ -132,7 +131,7 @@ export default {
|
|
|
132
131
|
bdc: {
|
|
133
132
|
isVar: 1,
|
|
134
133
|
presets: ['brand', 'accent', 'divider', 'inherit', 'transparent'],
|
|
135
|
-
utils: {
|
|
134
|
+
utils: { current: 'currentColor' },
|
|
136
135
|
token: 'color',
|
|
137
136
|
},
|
|
138
137
|
bdw: { isVar: 1, bp: 1 }, // --bdw のみ
|
|
@@ -170,8 +169,7 @@ export default {
|
|
|
170
169
|
// position
|
|
171
170
|
pos: {
|
|
172
171
|
prop: 'position',
|
|
173
|
-
presets: ['static', 'fixed', 'sticky'],
|
|
174
|
-
utils: { rel: 'relative', abs: 'absolute' },
|
|
172
|
+
presets: ['static', 'fixed', 'sticky', 'relative', 'absolute'],
|
|
175
173
|
},
|
|
176
174
|
z: { prop: 'zIndex', presets: ['-1', '0', '1', '99'] },
|
|
177
175
|
t: { prop: 'top', utils: { 0: '0%' }, presets: ['50%', '100%'], token: 'space' },
|
|
@@ -236,15 +234,15 @@ export default {
|
|
|
236
234
|
overwriteBaseVar: 1,
|
|
237
235
|
bp: 1,
|
|
238
236
|
},
|
|
239
|
-
|
|
240
|
-
|
|
237
|
+
cg: { prop: 'columnGap', token: 'space', bp: 1 },
|
|
238
|
+
rg: { prop: 'rowGap', token: 'space', bp: 1 },
|
|
241
239
|
cols: { isVar: 1, bp: 1 },
|
|
242
240
|
rows: { isVar: 1, bp: 1 },
|
|
243
241
|
|
|
244
242
|
// flex
|
|
245
243
|
fxf: { prop: 'flexFlow' },
|
|
246
244
|
fxw: { prop: 'flexWrap', presets: ['wrap'], bp: 1 },
|
|
247
|
-
fxd: { prop: 'flexDirection',
|
|
245
|
+
fxd: { prop: 'flexDirection', presets: ['column', 'column-reverse', 'row-reverse'], bp: 1 },
|
|
248
246
|
fx: { prop: 'flex', presets: ['1'], bp: 1 },
|
|
249
247
|
fxg: { prop: 'flexGrow', presets: ['1'] },
|
|
250
248
|
fxsh: { prop: 'flexShrink', presets: ['0'] },
|
|
@@ -254,12 +252,6 @@ export default {
|
|
|
254
252
|
// gd: { prop: 'grid' },
|
|
255
253
|
gt: {
|
|
256
254
|
prop: 'gridTemplate',
|
|
257
|
-
presets: ['repeat'],
|
|
258
|
-
exUtility: {
|
|
259
|
-
repeat: {
|
|
260
|
-
'grid-template': 'repeat(var(--rows,1), 1fr) / repeat(var(--cols,1), 1fr)',
|
|
261
|
-
},
|
|
262
|
-
},
|
|
263
255
|
bp: 1,
|
|
264
256
|
},
|
|
265
257
|
gta: { prop: 'gridTemplateAreas', bp: 1 },
|
|
@@ -274,7 +266,7 @@ export default {
|
|
|
274
266
|
// exUtility: { repeat: { '--rows': '1', '--gtr': 'repeat(var(--rows), 1fr)' } },
|
|
275
267
|
bp: 1,
|
|
276
268
|
},
|
|
277
|
-
gaf: { prop: 'gridAutoFlow',
|
|
269
|
+
gaf: { prop: 'gridAutoFlow', presets: ['row', 'column'], bp: 1 }, //dense
|
|
278
270
|
gac: { prop: 'gridAutoColumns' },
|
|
279
271
|
gar: { prop: 'gridAutoRows' },
|
|
280
272
|
|
|
@@ -291,29 +283,27 @@ export default {
|
|
|
291
283
|
// -(ai|ac|ji|jc|aslf|jslf): / -$1:
|
|
292
284
|
ai: {
|
|
293
285
|
prop: 'alignItems',
|
|
294
|
-
presets: [...PLACE_PRESETS, 'stretch'],
|
|
295
|
-
utils: PLACE_UTILS,
|
|
286
|
+
presets: [...PLACE_PRESETS, 'stretch', ...PLACE_FX_PRESETS],
|
|
296
287
|
shorthands: PLACE_SHORTHANDS,
|
|
297
288
|
bp: 1,
|
|
298
289
|
},
|
|
299
290
|
ac: {
|
|
300
291
|
prop: 'alignContent',
|
|
301
|
-
presets: PLACE_PRESETS,
|
|
302
|
-
utils: {
|
|
292
|
+
presets: [...PLACE_PRESETS, ...PLACE_FX_PRESETS],
|
|
293
|
+
utils: { between: 'space-between' },
|
|
303
294
|
shorthands: PLACE_SHORTHANDS,
|
|
304
295
|
bp: 1,
|
|
305
296
|
},
|
|
306
297
|
ji: {
|
|
307
298
|
prop: 'justifyItems',
|
|
308
|
-
presets: [...PLACE_PRESETS, 'stretch'],
|
|
309
|
-
utils: PLACE_UTILS,
|
|
299
|
+
presets: [...PLACE_PRESETS, 'stretch', ...PLACE_FX_PRESETS],
|
|
310
300
|
shorthands: PLACE_SHORTHANDS,
|
|
311
301
|
bp: 1,
|
|
312
302
|
},
|
|
313
303
|
jc: {
|
|
314
304
|
prop: 'justifyContent',
|
|
315
|
-
presets: PLACE_PRESETS,
|
|
316
|
-
utils: {
|
|
305
|
+
presets: [...PLACE_PRESETS, ...PLACE_FX_PRESETS],
|
|
306
|
+
utils: { between: 'space-between' },
|
|
317
307
|
shorthands: PLACE_SHORTHANDS,
|
|
318
308
|
bp: 1,
|
|
319
309
|
},
|
|
@@ -363,7 +353,7 @@ export default {
|
|
|
363
353
|
// },
|
|
364
354
|
|
|
365
355
|
// others
|
|
366
|
-
ovwrap: { prop: 'overflowWrap',
|
|
356
|
+
ovwrap: { prop: 'overflowWrap', presets: ['anywhere'] },
|
|
367
357
|
whspace: { prop: 'whiteSpace', presets: ['nowrap'] },
|
|
368
358
|
// wordbreak: { prop: 'wordBreak', utils: { keep: 'keep-all', all: 'break-all' } },
|
|
369
359
|
float: { prop: 'float', presets: ['left', 'right'] },
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
isContainer: 'is--container',
|
|
3
|
+
isWrapper: {
|
|
4
|
+
className: 'is--wrapper',
|
|
5
|
+
preset: ['s', 'l'],
|
|
6
|
+
presetClass: '-contentSize',
|
|
7
|
+
customVar: '--contentSize',
|
|
8
|
+
tokenKey: 'sz',
|
|
9
|
+
},
|
|
10
|
+
isLayer: 'is--layer',
|
|
11
|
+
isBoxLink: 'is--boxLink',
|
|
12
|
+
isCoverLink: 'is--coverLink',
|
|
13
|
+
isSide: 'is--side',
|
|
14
|
+
isSkipFlow: 'is--skipFlow',
|
|
15
|
+
isVertical: 'is--vertical',
|
|
16
|
+
} as const;
|
package/config/index.ts
CHANGED
|
@@ -17,7 +17,7 @@ if (typeof window !== 'undefined' && window._LISM_CSS_CONFIG_) {
|
|
|
17
17
|
|
|
18
18
|
export const CONFIG = mergedConfig;
|
|
19
19
|
|
|
20
|
-
const { tokens, props,
|
|
20
|
+
const { tokens, props, traits } = CONFIG;
|
|
21
21
|
|
|
22
22
|
const tokensWithColor = {
|
|
23
23
|
color: [...tokens.c.values, ...tokens.palette.values],
|
|
@@ -28,8 +28,8 @@ const tokensWithColor = {
|
|
|
28
28
|
export const TOKENS = arrayConvertToSet(structuredClone(tokensWithColor));
|
|
29
29
|
export const PROPS = arrayConvertToSet(structuredClone(props));
|
|
30
30
|
|
|
31
|
-
//
|
|
32
|
-
export const
|
|
31
|
+
// TRAITS は objDeepMerge の型推論により literal types が保持される
|
|
32
|
+
export const TRAITS = traits;
|
|
33
33
|
|
|
34
34
|
// ブレイクポイント
|
|
35
35
|
export const BREAK_POINTS = ['sm', 'md', 'lg', 'xl'] as const;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ElementType } from 'react';
|
|
2
|
-
import { LismComponentProps } from '
|
|
3
|
-
import { MediaAllowedTag } from '
|
|
2
|
+
import { LismComponentProps } from '../Lism';
|
|
3
|
+
import { MediaAllowedTag } from '../../lib/types/allowedTags';
|
|
4
4
|
export default function Media<T extends MediaAllowedTag | Exclude<ElementType, string> = 'img'>({ as, ...props }: LismComponentProps<T>): import("react").JSX.Element;
|
|
@@ -2,7 +2,7 @@ import { default as presets } from './presets';
|
|
|
2
2
|
import { LismProps } from '../../../lib/getLismProps';
|
|
3
3
|
import { ElementType } from 'react';
|
|
4
4
|
export type PresetIconName = keyof typeof presets;
|
|
5
|
-
interface IconObject {
|
|
5
|
+
export interface IconObject {
|
|
6
6
|
as: ElementType;
|
|
7
7
|
[key: string]: unknown;
|
|
8
8
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Icon } from './Icon';
|
|
2
|
-
export type { PresetIconName } from './getProps';
|
|
2
|
+
export type { PresetIconName, IconProps, IconObject } from './getProps';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export * from './Lism';
|
|
2
|
-
export { default as HTML } from './HTML';
|
|
3
2
|
/** @deprecated DummyText / DummyImage (@lism-css/ui) を使用してください */
|
|
4
3
|
export * from './Dummy';
|
|
5
4
|
export * from './Text';
|
|
@@ -8,24 +7,25 @@ export * from './Group';
|
|
|
8
7
|
export * from './Heading';
|
|
9
8
|
export * from './Link';
|
|
10
9
|
export * from './List';
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './
|
|
15
|
-
export * from './
|
|
16
|
-
export * from './
|
|
17
|
-
export * from './
|
|
18
|
-
export * from './
|
|
19
|
-
export * from './
|
|
20
|
-
export * from './Grid';
|
|
21
|
-
export * from './
|
|
22
|
-
export * from './
|
|
23
|
-
export * from './
|
|
24
|
-
export * from './
|
|
25
|
-
export * from './
|
|
26
|
-
export * from './
|
|
10
|
+
export * from './Media';
|
|
11
|
+
export * from './layout/Box';
|
|
12
|
+
export * from './layout/Center';
|
|
13
|
+
export * from './layout/Cluster';
|
|
14
|
+
export * from './layout/Columns';
|
|
15
|
+
export * from './layout/Flex';
|
|
16
|
+
export * from './layout/Flow';
|
|
17
|
+
export * from './layout/FluidCols';
|
|
18
|
+
export * from './layout/Frame';
|
|
19
|
+
export * from './layout/Grid';
|
|
20
|
+
export * from './layout/SideMain';
|
|
21
|
+
export * from './layout/Stack';
|
|
22
|
+
export * from './layout/SwitchCols';
|
|
23
|
+
export * from './layout/TileGrid';
|
|
24
|
+
export * from './state/Container';
|
|
25
|
+
export * from './state/Layer';
|
|
26
|
+
export * from './state/BoxLink';
|
|
27
|
+
export * from './state/Wrapper';
|
|
27
28
|
export * from './atomic/Decorator';
|
|
28
29
|
export * from './atomic/Divider';
|
|
29
30
|
export * from './atomic/Icon';
|
|
30
|
-
export * from './atomic/Media';
|
|
31
31
|
export * from './atomic/Spacer';
|
package/dist/components/index.js
CHANGED
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
import { default as o } from "./
|
|
2
|
-
import { default as t } from "./
|
|
3
|
-
import { default as l } from "./Center/index.js";
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as u } from "./Columns/index.js";
|
|
6
|
-
import { default as x } from "./Container/index.js";
|
|
1
|
+
import { default as o } from "./layout/Box/index.js";
|
|
2
|
+
import { default as t } from "./state/BoxLink/index.js";
|
|
3
|
+
import { default as l } from "./layout/Center/index.js";
|
|
4
|
+
import { default as s } from "./layout/Cluster/index.js";
|
|
5
|
+
import { default as u } from "./layout/Columns/index.js";
|
|
6
|
+
import { default as x } from "./state/Container/index.js";
|
|
7
7
|
import { default as n } from "./atomic/Decorator/index.js";
|
|
8
|
-
import { default as
|
|
8
|
+
import { default as L } from "./atomic/Divider/index.js";
|
|
9
9
|
import { default as F } from "./Dummy/index.js";
|
|
10
|
-
import { default as k } from "./Flex/index.js";
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as w } from "./FluidCols/index.js";
|
|
13
|
-
import { default as B } from "./Frame/index.js";
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
10
|
+
import { default as k } from "./layout/Flex/index.js";
|
|
11
|
+
import { default as G } from "./layout/Flow/index.js";
|
|
12
|
+
import { default as w } from "./layout/FluidCols/index.js";
|
|
13
|
+
import { default as B } from "./layout/Frame/index.js";
|
|
14
|
+
import { default as T } from "./layout/Grid/index.js";
|
|
15
|
+
import { default as h } from "./Group/index.js";
|
|
16
|
+
import { default as H } from "./Heading/index.js";
|
|
17
17
|
import { default as b } from "./atomic/Icon/index.js";
|
|
18
18
|
import { default as q } from "./Inline/index.js";
|
|
19
|
-
import { default as A } from "./Layer/index.js";
|
|
19
|
+
import { default as A } from "./state/Layer/index.js";
|
|
20
20
|
import { default as J } from "./Link/index.js";
|
|
21
|
-
import { default as N } from "./
|
|
22
|
-
import { default as P } from "./
|
|
23
|
-
import { default as R } from "./List/
|
|
24
|
-
import { default as V } from "./
|
|
25
|
-
import { default as Y } from "./
|
|
26
|
-
import { default as _ } from "./
|
|
27
|
-
import { default as ee } from "./
|
|
28
|
-
import { default as oe } from "./
|
|
29
|
-
import { default as te } from "./
|
|
30
|
-
import { default as le } from "./
|
|
31
|
-
import { default as
|
|
21
|
+
import { default as N } from "./Lism/index.js";
|
|
22
|
+
import { default as P } from "./List/index.js";
|
|
23
|
+
import { default as R } from "./List/ListItem.js";
|
|
24
|
+
import { default as V } from "./Media/index.js";
|
|
25
|
+
import { default as Y } from "./layout/SideMain/index.js";
|
|
26
|
+
import { default as _ } from "./atomic/Spacer/index.js";
|
|
27
|
+
import { default as ee } from "./layout/Stack/index.js";
|
|
28
|
+
import { default as oe } from "./layout/SwitchCols/index.js";
|
|
29
|
+
import { default as te } from "./Text/index.js";
|
|
30
|
+
import { default as le } from "./layout/TileGrid/index.js";
|
|
31
|
+
import { default as se } from "./state/Wrapper/index.js";
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
o as Box,
|
|
34
|
+
t as BoxLink,
|
|
34
35
|
l as Center,
|
|
35
|
-
|
|
36
|
+
s as Cluster,
|
|
36
37
|
u as Columns,
|
|
37
38
|
x as Container,
|
|
38
39
|
n as Decorator,
|
|
39
|
-
|
|
40
|
+
L as Divider,
|
|
40
41
|
F as Dummy,
|
|
41
42
|
k as Flex,
|
|
42
|
-
|
|
43
|
+
G as Flow,
|
|
43
44
|
w as FluidCols,
|
|
44
45
|
B as Frame,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
v as Heading,
|
|
46
|
+
T as Grid,
|
|
47
|
+
h as Group,
|
|
48
|
+
H as Heading,
|
|
49
49
|
b as Icon,
|
|
50
50
|
q as Inline,
|
|
51
51
|
A as Layer,
|
|
52
52
|
J as Link,
|
|
53
|
-
N as
|
|
54
|
-
P as
|
|
55
|
-
R as
|
|
56
|
-
V as
|
|
57
|
-
Y as
|
|
58
|
-
_ as
|
|
59
|
-
ee as
|
|
60
|
-
oe as
|
|
61
|
-
te as
|
|
62
|
-
le as
|
|
63
|
-
|
|
53
|
+
N as Lism,
|
|
54
|
+
P as List,
|
|
55
|
+
R as ListItem,
|
|
56
|
+
V as Media,
|
|
57
|
+
Y as SideMain,
|
|
58
|
+
_ as Spacer,
|
|
59
|
+
ee as Stack,
|
|
60
|
+
oe as SwitchCols,
|
|
61
|
+
te as Text,
|
|
62
|
+
le as TileGrid,
|
|
63
|
+
se as Wrapper
|
|
64
64
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ElementType } from 'react';
|
|
2
|
-
import { LayoutComponentProps } from '
|
|
3
|
-
import { BoxProps } from '
|
|
2
|
+
import { LayoutComponentProps } from '../../Lism';
|
|
3
|
+
import { BoxProps } from '../../../lib/types/LayoutProps';
|
|
4
4
|
export default function Box<T extends ElementType = 'div'>(props: LayoutComponentProps<T, BoxProps>): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ElementType } from 'react';
|
|
2
|
-
import { LayoutComponentProps } from '
|
|
3
|
-
import { CenterProps } from '
|
|
2
|
+
import { LayoutComponentProps } from '../../Lism';
|
|
3
|
+
import { CenterProps } from '../../../lib/types/LayoutProps';
|
|
4
4
|
export default function Center<T extends ElementType = 'div'>(props: LayoutComponentProps<T, CenterProps>): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ElementType } from 'react';
|
|
2
|
-
import { LayoutComponentProps } from '
|
|
3
|
-
import { ClusterProps } from '
|
|
2
|
+
import { LayoutComponentProps } from '../../Lism';
|
|
3
|
+
import { ClusterProps } from '../../../lib/types/LayoutProps';
|
|
4
4
|
export default function Cluster<T extends ElementType = 'div'>(props: LayoutComponentProps<T, ClusterProps>): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ElementType } from 'react';
|
|
2
|
-
import { LayoutComponentProps } from '
|
|
3
|
-
import { ColumnsProps } from '
|
|
2
|
+
import { LayoutComponentProps } from '../../Lism';
|
|
3
|
+
import { ColumnsProps } from '../../../lib/types/LayoutProps';
|
|
4
4
|
export default function Columns<T extends ElementType = 'div'>(props: LayoutComponentProps<T, ColumnsProps>): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ElementType } from 'react';
|
|
2
|
-
import { LayoutComponentProps } from '
|
|
3
|
-
import { FlexProps } from '
|
|
2
|
+
import { LayoutComponentProps } from '../../Lism';
|
|
3
|
+
import { FlexProps } from '../../../lib/types/LayoutProps';
|
|
4
4
|
export default function Flex<T extends ElementType = 'div'>(props: LayoutComponentProps<T, FlexProps>): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ElementType } from 'react';
|
|
2
|
-
import { LayoutComponentProps } from '
|
|
3
|
-
import { FlowLayoutProps } from '
|
|
2
|
+
import { LayoutComponentProps } from '../../Lism';
|
|
3
|
+
import { FlowLayoutProps } from '../../../lib/types/LayoutProps';
|
|
4
4
|
export default function Flow<T extends ElementType = 'div'>(props: LayoutComponentProps<T, FlowLayoutProps>): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ElementType } from 'react';
|
|
2
|
-
import { LayoutComponentProps } from '
|
|
3
|
-
import { FluidColsProps } from '
|
|
2
|
+
import { LayoutComponentProps } from '../../Lism';
|
|
3
|
+
import { FluidColsProps } from '../../../lib/types/LayoutProps';
|
|
4
4
|
export default function FluidCols<T extends ElementType = 'div'>(props: LayoutComponentProps<T, FluidColsProps>): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ElementType } from 'react';
|
|
2
|
-
import { LayoutComponentProps } from '
|
|
3
|
-
import { FrameProps } from '
|
|
2
|
+
import { LayoutComponentProps } from '../../Lism';
|
|
3
|
+
import { FrameProps } from '../../../lib/types/LayoutProps';
|
|
4
4
|
export default function Frame<T extends ElementType = 'div'>(props: LayoutComponentProps<T, FrameProps>): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ElementType } from 'react';
|
|
2
|
-
import { LayoutComponentProps } from '
|
|
3
|
-
import { GridLayoutProps } from '
|
|
2
|
+
import { LayoutComponentProps } from '../../Lism';
|
|
3
|
+
import { GridLayoutProps } from '../../../lib/types/LayoutProps';
|
|
4
4
|
export default function Grid<T extends ElementType = 'div'>(props: LayoutComponentProps<T, GridLayoutProps>): import("react").JSX.Element;
|