lism-css 0.11.0 → 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 +5 -5
- package/README.md +7 -7
- package/config/defaults/props.ts +16 -26
- package/config/defaults/states.ts +0 -28
- 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 +62 -62
- 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/{Container → state/Container}/Container.d.ts +1 -1
- package/dist/components/{Container → state/Container}/index.js +1 -1
- package/dist/components/{Layer → state/Layer}/Layer.d.ts +1 -1
- package/dist/components/{Layer → state/Layer}/index.js +1 -1
- package/dist/components/{LinkBox → state/LinkBox}/LinkBox.d.ts +1 -1
- package/dist/components/{LinkBox → state/LinkBox}/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 +24 -71
- package/dist/config/defaults/props.d.ts +24 -58
- package/dist/config/defaults/props.js +16 -26
- package/dist/config/defaults/states.d.ts +0 -13
- package/dist/config/defaults/states.js +3 -23
- package/dist/config/index.d.ts +48 -142
- 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/modules/layout.css +1 -1
- package/dist/css/props.css +1 -1
- package/dist/lib/getLayoutProps.js +12 -15
- package/dist/lib/getLismProps.d.ts +3 -2
- package/dist/lib/getLismProps.js +91 -89
- package/dist/lib/helper/mergeSet.d.ts +5 -0
- package/dist/lib/helper/mergeSet.js +14 -0
- package/dist/lib/helper/mergeSet.test.d.ts +1 -0
- package/dist/lib/types/LayoutProps.d.ts +4 -1
- package/dist/lib/types/StateProps.d.ts +5 -3
- 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/{Container → state/Container}/Container.astro +2 -2
- package/packages/astro/{Layer → state/Layer}/Layer.astro +2 -2
- package/packages/astro/{LinkBox → state/LinkBox}/LinkBox.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 +4 -4
- package/src/scss/base/_html.scss +8 -8
- package/src/scss/base/tokens/_tokens.scss +0 -2
- package/src/scss/modules/layout/_grid.scss +0 -5
- package/src/scss/modules/layout/_tileGrid.scss +4 -0
- package/src/scss/modules/layout/index.scss +1 -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/config/helper/getSvgUrl.ts +0 -26
- 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/config/helper/getSvgUrl.d.ts +0 -5
- package/dist/config/helper/getSvgUrl.js +0 -4
- 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/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}/Container.stories.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/{LinkBox → state/LinkBox}/LinkBox.stories.d.ts +0 -0
- /package/dist/components/{LinkBox → state/LinkBox}/index.d.ts +0 -0
- /package/dist/components/{LinkBox → state/LinkBox}/script.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/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/{LinkBox → state/LinkBox}/index.ts +0 -0
- /package/packages/astro/{Wrapper → state/Wrapper}/index.ts +0 -0
package/README.ja.md
CHANGED
|
@@ -19,7 +19,7 @@ React / Astro 向けのコンポーネントも提供しており、propsを通
|
|
|
19
19
|
- **軽量** - CSS バンドル全体で約 30 KB(gzip 圧縮時 約 8 KB)と、軽量です。
|
|
20
20
|
- **ゼロビルドフレームワーク** — CSS ファイルを読み込むだけで、プレーン HTML でも動作します。ビルドツール、プリプロセッサ、設定は不要。CDN または npm で利用可能。
|
|
21
21
|
- **レイアウト優先のモジュールアーキテクチャ** — レイアウトモジュール(`l--flex`、`l--stack`、`l--grid`、`l--columns`、`l--center`、`l--sideMain` など)で、カスタム CSS を書かずに一般的なレイアウトパターンを組み立てられます。
|
|
22
|
-
- **CSS レイヤー構造** — `@layer`(lism-reset → lism-base → lism-modules → lism-utility
|
|
22
|
+
- **CSS レイヤー構造** — `@layer`(lism-reset → lism-base → lism-modules → lism-custom → lism-utility)を使用した明確な詳細度管理。`lism-custom` はユーザー独自プレフィックスのクラス用レイヤーです。詳細度の衝突を最小限に抑えます。
|
|
23
23
|
- **デザイントークン** — カラー、スペーシング、フォントサイズ、シャドウ、ボーダー半径を CSS カスタムプロパティで管理。変数を上書きするだけで簡単にカスタマイズできます。
|
|
24
24
|
- **柔軟なプロップクラス** — `-{prop}:{value}` の命名規則(例: `-p:20`、`-bgc:base-2`、`-fz:l`)で CSS プロパティをユーティリティクラスにマッピングし、素早く読みやすいスタイリングを実現します。
|
|
25
25
|
- **レスポンシブシステム** — ブレークポイント固有のクラスと CSS 変数(例: `-p_sm`、`-p_md`)にデフォルトでコンテナクエリを採用し、親要素ベースのレスポンシブデザインを実現。メディアクエリへの切り替えも可能。
|
|
@@ -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
|
@@ -18,9 +18,9 @@ No build step or configuration is required. Simply load the CSS file via CDN or
|
|
|
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
20
|
- **Layout-First Module Architecture** — Pre-built layout modules (`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-reset → lism-base → lism-modules → lism-utility) for clear specificity management. Minimizes specificity conflicts.
|
|
21
|
+
- **CSS Layer Structure** — Uses `@layer` (lism-reset → lism-base → lism-modules → lism-custom → lism-utility) for clear specificity management. `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
|
|
|
@@ -148,7 +148,7 @@ Lism CSS uses a structured naming convention for CSS classes:
|
|
|
148
148
|
|------|---------|----------|
|
|
149
149
|
| Layout Module | `l--{name}` | `l--flex`, `l--grid`, `l--stack`, `l--center`, `l--columns`, `l--sideMain` |
|
|
150
150
|
| State Module | `is--{name}` | `is--wrapper`, `is--container`, `is--layer` |
|
|
151
|
-
|
|
|
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
|
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'] },
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import getSvgUrl from '../helper/getSvgUrl.js';
|
|
2
|
-
// import minifyHtml from '../helper/minifyHtml.js';
|
|
3
|
-
|
|
4
1
|
export default {
|
|
5
2
|
isContainer: 'is--container',
|
|
6
3
|
isWrapper: {
|
|
@@ -15,29 +12,4 @@ export default {
|
|
|
15
12
|
isSide: 'is--side',
|
|
16
13
|
isSkipFlow: 'is--skipFlow',
|
|
17
14
|
isVertical: 'is--vertical',
|
|
18
|
-
setGutter: 'set--gutter',
|
|
19
|
-
|
|
20
|
-
// set class
|
|
21
|
-
setShadow: 'set--shadow',
|
|
22
|
-
setHov: 'set--hov',
|
|
23
|
-
setTransition: 'set--transition',
|
|
24
|
-
setMask: {
|
|
25
|
-
// 'set--mask',
|
|
26
|
-
className: 'set--mask',
|
|
27
|
-
setStyles: (propVal: string) => {
|
|
28
|
-
// minify化
|
|
29
|
-
// propVal = minifyHtml(propVal);
|
|
30
|
-
let imgUrl = propVal;
|
|
31
|
-
if (imgUrl.startsWith('<svg')) {
|
|
32
|
-
imgUrl = getSvgUrl(propVal, 'base64');
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
'--maskImg': imgUrl,
|
|
36
|
-
};
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
setPlain: 'set--plain',
|
|
40
|
-
// setRevert: 'set--revert',
|
|
41
|
-
setInnerRs: 'set--innerRs',
|
|
42
|
-
setBp: 'set--bp',
|
|
43
15
|
} 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/LinkBox';
|
|
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 "./
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as u } from "./
|
|
6
|
-
import { default as x } from "./
|
|
7
|
-
import { default as n } from "./atomic/
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as F } from "./
|
|
10
|
-
import { default as k } from "./
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as w } from "./
|
|
13
|
-
import { default as B } from "./
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as b } from "./
|
|
18
|
-
import { default as q } from "./
|
|
19
|
-
import { default as A } from "./
|
|
20
|
-
import { default as J } from "./
|
|
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
|
|
1
|
+
import { default as o } from "./layout/Box/index.js";
|
|
2
|
+
import { default as t } from "./layout/Center/index.js";
|
|
3
|
+
import { default as l } from "./layout/Cluster/index.js";
|
|
4
|
+
import { default as s } from "./layout/Columns/index.js";
|
|
5
|
+
import { default as u } from "./state/Container/index.js";
|
|
6
|
+
import { default as x } from "./atomic/Decorator/index.js";
|
|
7
|
+
import { default as n } from "./atomic/Divider/index.js";
|
|
8
|
+
import { default as L } from "./Dummy/index.js";
|
|
9
|
+
import { default as F } from "./layout/Flex/index.js";
|
|
10
|
+
import { default as k } from "./layout/Flow/index.js";
|
|
11
|
+
import { default as G } from "./layout/FluidCols/index.js";
|
|
12
|
+
import { default as w } from "./layout/Frame/index.js";
|
|
13
|
+
import { default as B } from "./layout/Grid/index.js";
|
|
14
|
+
import { default as T } from "./Group/index.js";
|
|
15
|
+
import { default as h } from "./Heading/index.js";
|
|
16
|
+
import { default as H } from "./atomic/Icon/index.js";
|
|
17
|
+
import { default as b } from "./Inline/index.js";
|
|
18
|
+
import { default as q } from "./state/Layer/index.js";
|
|
19
|
+
import { default as A } from "./Link/index.js";
|
|
20
|
+
import { default as J } from "./state/LinkBox/index.js";
|
|
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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
b as
|
|
50
|
-
q as
|
|
51
|
-
A as
|
|
52
|
-
J as
|
|
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
|
-
|
|
33
|
+
o as Box,
|
|
34
|
+
t as Center,
|
|
35
|
+
l as Cluster,
|
|
36
|
+
s as Columns,
|
|
37
|
+
u as Container,
|
|
38
|
+
x as Decorator,
|
|
39
|
+
n as Divider,
|
|
40
|
+
L as Dummy,
|
|
41
|
+
F as Flex,
|
|
42
|
+
k as Flow,
|
|
43
|
+
G as FluidCols,
|
|
44
|
+
w as Frame,
|
|
45
|
+
B as Grid,
|
|
46
|
+
T as Group,
|
|
47
|
+
h as Heading,
|
|
48
|
+
H as Icon,
|
|
49
|
+
b as Inline,
|
|
50
|
+
q as Layer,
|
|
51
|
+
A as Link,
|
|
52
|
+
J as LinkBox,
|
|
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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ElementType } from 'react';
|
|
2
|
-
import { LayoutComponentProps } from '
|
|
3
|
-
import { SideMainProps } from '
|
|
2
|
+
import { LayoutComponentProps } from '../../Lism';
|
|
3
|
+
import { SideMainProps } from '../../../lib/types/LayoutProps';
|
|
4
4
|
export default function SideMain<T extends ElementType = 'div'>(props: LayoutComponentProps<T, SideMainProps>): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ElementType } from 'react';
|
|
2
|
-
import { LayoutComponentProps } from '
|
|
3
|
-
import { StackProps } from '
|
|
2
|
+
import { LayoutComponentProps } from '../../Lism';
|
|
3
|
+
import { StackProps } from '../../../lib/types/LayoutProps';
|
|
4
4
|
export default function Stack<T extends ElementType = 'div'>(props: LayoutComponentProps<T, StackProps>): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ElementType } from 'react';
|
|
2
|
-
import { LayoutComponentProps } from '
|
|
3
|
-
import { SwitchColsProps } from '
|
|
2
|
+
import { LayoutComponentProps } from '../../Lism';
|
|
3
|
+
import { SwitchColsProps } from '../../../lib/types/LayoutProps';
|
|
4
4
|
export default function SwitchCols<T extends ElementType = 'div'>(props: LayoutComponentProps<T, SwitchColsProps>): import("react").JSX.Element;
|