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.
Files changed (175) hide show
  1. package/README.ja.md +5 -5
  2. package/README.md +7 -7
  3. package/config/defaults/props.ts +16 -26
  4. package/config/defaults/states.ts +0 -28
  5. package/dist/components/{atomic/Media → Media}/Media.d.ts +2 -2
  6. package/dist/components/{atomic/Media → Media}/index.js +1 -1
  7. package/dist/components/atomic/Icon/getProps.d.ts +1 -1
  8. package/dist/components/atomic/Icon/index.d.ts +1 -1
  9. package/dist/components/index.d.ts +18 -18
  10. package/dist/components/index.js +62 -62
  11. package/dist/components/{Box → layout/Box}/Box.d.ts +2 -2
  12. package/dist/components/{Box → layout/Box}/index.js +1 -1
  13. package/dist/components/{Center → layout/Center}/Center.d.ts +2 -2
  14. package/dist/components/{Center → layout/Center}/index.js +1 -1
  15. package/dist/components/{Cluster → layout/Cluster}/Cluster.d.ts +2 -2
  16. package/dist/components/{Cluster → layout/Cluster}/index.js +1 -1
  17. package/dist/components/{Columns → layout/Columns}/Columns.d.ts +2 -2
  18. package/dist/components/{Columns → layout/Columns}/index.js +1 -1
  19. package/dist/components/{Flex → layout/Flex}/Flex.d.ts +2 -2
  20. package/dist/components/{Flex → layout/Flex}/index.js +1 -1
  21. package/dist/components/{Flow → layout/Flow}/Flow.d.ts +2 -2
  22. package/dist/components/{Flow → layout/Flow}/index.js +1 -1
  23. package/dist/components/{FluidCols → layout/FluidCols}/FluidCols.d.ts +2 -2
  24. package/dist/components/{FluidCols → layout/FluidCols}/index.js +1 -1
  25. package/dist/components/{Frame → layout/Frame}/Frame.d.ts +2 -2
  26. package/dist/components/{Frame → layout/Frame}/index.js +1 -1
  27. package/dist/components/{Grid → layout/Grid}/Grid.d.ts +2 -2
  28. package/dist/components/{Grid → layout/Grid}/index.js +1 -1
  29. package/dist/components/{SideMain → layout/SideMain}/SideMain.d.ts +2 -2
  30. package/dist/components/{SideMain → layout/SideMain}/index.js +1 -1
  31. package/dist/components/{Stack → layout/Stack}/Stack.d.ts +2 -2
  32. package/dist/components/{Stack → layout/Stack}/index.js +1 -1
  33. package/dist/components/{SwitchCols → layout/SwitchCols}/SwitchCols.d.ts +2 -2
  34. package/dist/components/{SwitchCols → layout/SwitchCols}/index.js +1 -1
  35. package/dist/components/layout/TileGrid/TileGrid.d.ts +4 -0
  36. package/dist/components/layout/TileGrid/index.d.ts +1 -0
  37. package/dist/components/layout/TileGrid/index.js +8 -0
  38. package/dist/components/{Container → state/Container}/Container.d.ts +1 -1
  39. package/dist/components/{Container → state/Container}/index.js +1 -1
  40. package/dist/components/{Layer → state/Layer}/Layer.d.ts +1 -1
  41. package/dist/components/{Layer → state/Layer}/index.js +1 -1
  42. package/dist/components/{LinkBox → state/LinkBox}/LinkBox.d.ts +1 -1
  43. package/dist/components/{LinkBox → state/LinkBox}/index.js +1 -1
  44. package/dist/components/{Wrapper → state/Wrapper}/Wrapper.d.ts +1 -1
  45. package/dist/components/{Wrapper → state/Wrapper}/index.js +1 -1
  46. package/dist/config/default-config.d.ts +24 -71
  47. package/dist/config/defaults/props.d.ts +24 -58
  48. package/dist/config/defaults/props.js +16 -26
  49. package/dist/config/defaults/states.d.ts +0 -13
  50. package/dist/config/defaults/states.js +3 -23
  51. package/dist/config/index.d.ts +48 -142
  52. package/dist/css/base.css +1 -1
  53. package/dist/css/main.css +1 -1
  54. package/dist/css/main_no_layer.css +1 -1
  55. package/dist/css/modules/layout.css +1 -1
  56. package/dist/css/props.css +1 -1
  57. package/dist/lib/getLayoutProps.js +12 -15
  58. package/dist/lib/getLismProps.d.ts +3 -2
  59. package/dist/lib/getLismProps.js +91 -89
  60. package/dist/lib/helper/mergeSet.d.ts +5 -0
  61. package/dist/lib/helper/mergeSet.js +14 -0
  62. package/dist/lib/helper/mergeSet.test.d.ts +1 -0
  63. package/dist/lib/types/LayoutProps.d.ts +4 -1
  64. package/dist/lib/types/StateProps.d.ts +5 -3
  65. package/package.json +1 -1
  66. package/packages/astro/{Decorator → atomic/Decorator}/Decorator.astro +1 -1
  67. package/packages/astro/{Divider → atomic/Divider}/Divider.astro +2 -2
  68. package/packages/astro/{Icon → atomic/Icon}/Icon.astro +1 -1
  69. package/packages/astro/{Spacer → atomic/Spacer}/Spacer.astro +2 -2
  70. package/packages/astro/index.ts +26 -22
  71. package/packages/astro/{Box → layout/Box}/Box.astro +2 -2
  72. package/packages/astro/{Center → layout/Center}/Center.astro +2 -2
  73. package/packages/astro/{Cluster → layout/Cluster}/Cluster.astro +2 -2
  74. package/packages/astro/{Columns → layout/Columns}/Columns.astro +2 -2
  75. package/packages/astro/{Flex → layout/Flex}/Flex.astro +2 -2
  76. package/packages/astro/{Flow → layout/Flow}/Flow.astro +2 -2
  77. package/packages/astro/{FluidCols → layout/FluidCols}/FluidCols.astro +2 -2
  78. package/packages/astro/{Frame → layout/Frame}/Frame.astro +2 -2
  79. package/packages/astro/{Grid → layout/Grid}/Grid.astro +2 -2
  80. package/packages/astro/{SideMain → layout/SideMain}/SideMain.astro +2 -2
  81. package/packages/astro/{Stack → layout/Stack}/Stack.astro +2 -2
  82. package/packages/astro/{SwitchCols → layout/SwitchCols}/SwitchCols.astro +2 -2
  83. package/packages/astro/layout/TileGrid/TileGrid.astro +11 -0
  84. package/packages/astro/layout/TileGrid/index.ts +1 -0
  85. package/packages/astro/{Container → state/Container}/Container.astro +2 -2
  86. package/packages/astro/{Layer → state/Layer}/Layer.astro +2 -2
  87. package/packages/astro/{LinkBox → state/LinkBox}/LinkBox.astro +2 -2
  88. package/packages/astro/{Wrapper → state/Wrapper}/Wrapper.astro +2 -2
  89. package/src/scss/_auto_output.scss +1 -1
  90. package/src/scss/_prop-config.scss +24 -26
  91. package/src/scss/_with_layer.scss +4 -4
  92. package/src/scss/base/_html.scss +8 -8
  93. package/src/scss/base/tokens/_tokens.scss +0 -2
  94. package/src/scss/modules/layout/_grid.scss +0 -5
  95. package/src/scss/modules/layout/_tileGrid.scss +4 -0
  96. package/src/scss/modules/layout/index.scss +1 -0
  97. package/src/scss/props/index.scss +1 -1
  98. package/src/scss/utility/_cbox.scss +1 -1
  99. package/src/scss/utility/_clipText.scss +1 -1
  100. package/config/helper/getSvgUrl.ts +0 -26
  101. package/dist/components/HTML/HTML.d.ts +0 -26
  102. package/dist/components/HTML/index.d.ts +0 -14
  103. package/dist/components/HTML/index.js +0 -5
  104. package/dist/components/HTML/index2.js +0 -45
  105. package/dist/config/helper/getSvgUrl.d.ts +0 -5
  106. package/dist/config/helper/getSvgUrl.js +0 -4
  107. package/packages/astro/HTML/_index_memo.js +0 -29
  108. package/packages/astro/HTML/a.astro +0 -10
  109. package/packages/astro/HTML/button.astro +0 -10
  110. package/packages/astro/HTML/div.astro +0 -10
  111. package/packages/astro/HTML/h.astro +0 -13
  112. package/packages/astro/HTML/img.astro +0 -10
  113. package/packages/astro/HTML/index.ts +0 -12
  114. package/packages/astro/HTML/li.astro +0 -10
  115. package/packages/astro/HTML/ol.astro +0 -10
  116. package/packages/astro/HTML/p.astro +0 -10
  117. package/packages/astro/HTML/span.astro +0 -10
  118. package/packages/astro/HTML/ul.astro +0 -10
  119. /package/dist/components/{atomic/Media → Media}/Media.stories.d.ts +0 -0
  120. /package/dist/components/{atomic/Media → Media}/index.d.ts +0 -0
  121. /package/dist/components/{Box → layout/Box}/Box.stories.d.ts +0 -0
  122. /package/dist/components/{Box → layout/Box}/index.d.ts +0 -0
  123. /package/dist/components/{Center → layout/Center}/Center.stories.d.ts +0 -0
  124. /package/dist/components/{Center → layout/Center}/index.d.ts +0 -0
  125. /package/dist/components/{Cluster → layout/Cluster}/Cluster.stories.d.ts +0 -0
  126. /package/dist/components/{Cluster → layout/Cluster}/index.d.ts +0 -0
  127. /package/dist/components/{Columns → layout/Columns}/Columns.stories.d.ts +0 -0
  128. /package/dist/components/{Columns → layout/Columns}/index.d.ts +0 -0
  129. /package/dist/components/{Flex → layout/Flex}/Flex.stories.d.ts +0 -0
  130. /package/dist/components/{Flex → layout/Flex}/index.d.ts +0 -0
  131. /package/dist/components/{Flow → layout/Flow}/Flow.stories.d.ts +0 -0
  132. /package/dist/components/{Flow → layout/Flow}/index.d.ts +0 -0
  133. /package/dist/components/{FluidCols → layout/FluidCols}/FluidCols.stories.d.ts +0 -0
  134. /package/dist/components/{FluidCols → layout/FluidCols}/index.d.ts +0 -0
  135. /package/dist/components/{Frame → layout/Frame}/Frame.stories.d.ts +0 -0
  136. /package/dist/components/{Frame → layout/Frame}/index.d.ts +0 -0
  137. /package/dist/components/{Grid → layout/Grid}/Grid.stories.d.ts +0 -0
  138. /package/dist/components/{Grid → layout/Grid}/index.d.ts +0 -0
  139. /package/dist/components/{SideMain → layout/SideMain}/SideMain.stories.d.ts +0 -0
  140. /package/dist/components/{SideMain → layout/SideMain}/index.d.ts +0 -0
  141. /package/dist/components/{Stack → layout/Stack}/Stack.stories.d.ts +0 -0
  142. /package/dist/components/{Stack → layout/Stack}/index.d.ts +0 -0
  143. /package/dist/components/{SwitchCols → layout/SwitchCols}/SwitchCols.stories.d.ts +0 -0
  144. /package/dist/components/{SwitchCols → layout/SwitchCols}/index.d.ts +0 -0
  145. /package/dist/components/{Container → state/Container}/Container.stories.d.ts +0 -0
  146. /package/dist/components/{Container → state/Container}/index.d.ts +0 -0
  147. /package/dist/components/{Layer → state/Layer}/Layer.stories.d.ts +0 -0
  148. /package/dist/components/{Layer → state/Layer}/Layer.test.d.ts +0 -0
  149. /package/dist/components/{Layer → state/Layer}/index.d.ts +0 -0
  150. /package/dist/components/{LinkBox → state/LinkBox}/LinkBox.stories.d.ts +0 -0
  151. /package/dist/components/{LinkBox → state/LinkBox}/index.d.ts +0 -0
  152. /package/dist/components/{LinkBox → state/LinkBox}/script.d.ts +0 -0
  153. /package/dist/components/{Wrapper → state/Wrapper}/Wrapper.stories.d.ts +0 -0
  154. /package/dist/components/{Wrapper → state/Wrapper}/index.d.ts +0 -0
  155. /package/packages/astro/{Decorator → atomic/Decorator}/index.ts +0 -0
  156. /package/packages/astro/{Divider → atomic/Divider}/index.ts +0 -0
  157. /package/packages/astro/{Icon → atomic/Icon}/SVG.astro +0 -0
  158. /package/packages/astro/{Icon → atomic/Icon}/index.ts +0 -0
  159. /package/packages/astro/{Spacer → atomic/Spacer}/index.ts +0 -0
  160. /package/packages/astro/{Box → layout/Box}/index.ts +0 -0
  161. /package/packages/astro/{Center → layout/Center}/index.ts +0 -0
  162. /package/packages/astro/{Cluster → layout/Cluster}/index.ts +0 -0
  163. /package/packages/astro/{Columns → layout/Columns}/index.ts +0 -0
  164. /package/packages/astro/{Flex → layout/Flex}/index.ts +0 -0
  165. /package/packages/astro/{Flow → layout/Flow}/index.ts +0 -0
  166. /package/packages/astro/{FluidCols → layout/FluidCols}/index.ts +0 -0
  167. /package/packages/astro/{Frame → layout/Frame}/index.ts +0 -0
  168. /package/packages/astro/{Grid → layout/Grid}/index.ts +0 -0
  169. /package/packages/astro/{SideMain → layout/SideMain}/index.ts +0 -0
  170. /package/packages/astro/{Stack → layout/Stack}/index.ts +0 -0
  171. /package/packages/astro/{SwitchCols → layout/SwitchCols}/index.ts +0 -0
  172. /package/packages/astro/{Container → state/Container}/index.ts +0 -0
  173. /package/packages/astro/{Layer → state/Layer}/index.ts +0 -0
  174. /package/packages/astro/{LinkBox → state/LinkBox}/index.ts +0 -0
  175. /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` `--s50`(rem 値にマッピング)
184
- - **フォントサイズ:** `--fz--xs` 〜 `--fz--2xl`
185
- - **ボーダー半径:** `--bdrs--5`(2px)〜 `--bdrs--99`(99rem)
186
- - **シャドウ:** `--shsz--5` 〜 `--shsz--50`(シャドウカラー設定可能)
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 Prop 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.
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
- | Prop Class | `-{prop}:{value}` | `-p:20`, `-m:auto`, `-bgc:base-2`, `-fz:l`, `-ta:center` |
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` through `--s50` (mapped to rem values)
183
- - **Font Sizes:** `--fz--xs` through `--fz--2xl`
184
- - **Border Radius:** `--bdrs--5` (2px) through `--bdrs--99` (99rem)
185
- - **Shadows:** `--shsz--5` through `--shsz--50` with configurable shadow colors
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
@@ -16,8 +16,8 @@
16
16
  */
17
17
 
18
18
  const PLACE_PRESETS = ['start', 'center', 'end'] as const;
19
- const PLACE_UTILS = { 'flex-s': 'flex-start', 'flex-e': 'flex-end' } as const;
20
- const PLACE_SHORTHANDS = { s: 'start', e: 'end', c: 'center', fs: 'flex-s', fe: 'flex-e' } as const;
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: { cc: 'currentColor' },
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
- 'g-x': { prop: 'columnGap', token: 'space', bp: 1 },
240
- 'g-y': { prop: 'rowGap', token: 'space', bp: 1 },
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', utils: { col: 'column', 'col-r': 'column-reverse', 'row-r': 'row-reverse' }, bp: 1 },
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', utils: { row: 'row', col: 'column' }, bp: 1 }, //dense
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: { ...PLACE_UTILS, between: 'space-between' },
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: { ...PLACE_UTILS, between: 'space-between' },
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', utils: { any: 'anywhere' } },
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 '../../Lism';
3
- import { MediaAllowedTag } from '../../../lib/types/allowedTags';
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;
@@ -1,5 +1,5 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
- import o from "../../Lism/index.js";
2
+ import o from "../Lism/index.js";
3
3
  function e({ as: r, ...i }) {
4
4
  return /* @__PURE__ */ m(o, { as: r ?? "img", ...i });
5
5
  }
@@ -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 './Container';
12
- export * from './Wrapper';
13
- export * from './Layer';
14
- export * from './LinkBox';
15
- export * from './Box';
16
- export * from './Flow';
17
- export * from './Flex';
18
- export * from './Cluster';
19
- export * from './Stack';
20
- export * from './Grid';
21
- export * from './FluidCols';
22
- export * from './SwitchCols';
23
- export * from './SideMain';
24
- export * from './Center';
25
- export * from './Columns';
26
- export * from './Frame';
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';
@@ -1,64 +1,64 @@
1
- import { default as o } from "./HTML/index.js";
2
- import { default as t } from "./Box/index.js";
3
- import { default as l } from "./Center/index.js";
4
- import { default as d } from "./Cluster/index.js";
5
- import { default as u } from "./Columns/index.js";
6
- import { default as x } from "./Container/index.js";
7
- import { default as n } from "./atomic/Decorator/index.js";
8
- import { default as C } from "./atomic/Divider/index.js";
9
- import { default as F } from "./Dummy/index.js";
10
- import { default as k } from "./Flex/index.js";
11
- import { default as I } from "./Flow/index.js";
12
- import { default as w } from "./FluidCols/index.js";
13
- import { default as B } from "./Frame/index.js";
14
- import { default as H } from "./Grid/index.js";
15
- import { default as g } from "./Group/index.js";
16
- import { default as v } from "./Heading/index.js";
17
- import { default as b } from "./atomic/Icon/index.js";
18
- import { default as q } from "./Inline/index.js";
19
- import { default as A } from "./Layer/index.js";
20
- import { default as J } from "./Link/index.js";
21
- import { default as N } from "./LinkBox/index.js";
22
- import { default as P } from "./Lism/index.js";
23
- import { default as R } from "./List/index.js";
24
- import { default as V } from "./List/ListItem.js";
25
- import { default as Y } from "./atomic/Media/index.js";
26
- import { default as _ } from "./SideMain/index.js";
27
- import { default as ee } from "./atomic/Spacer/index.js";
28
- import { default as oe } from "./Stack/index.js";
29
- import { default as te } from "./SwitchCols/index.js";
30
- import { default as le } from "./Text/index.js";
31
- import { default as de } from "./Wrapper/index.js";
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
- t as Box,
34
- l as Center,
35
- d as Cluster,
36
- u as Columns,
37
- x as Container,
38
- n as Decorator,
39
- C as Divider,
40
- F as Dummy,
41
- k as Flex,
42
- I as Flow,
43
- w as FluidCols,
44
- B as Frame,
45
- H as Grid,
46
- g as Group,
47
- o as HTML,
48
- v as Heading,
49
- b as Icon,
50
- q as Inline,
51
- A as Layer,
52
- J as Link,
53
- N as LinkBox,
54
- P as Lism,
55
- R as List,
56
- V as ListItem,
57
- Y as Media,
58
- _ as SideMain,
59
- ee as Spacer,
60
- oe as Stack,
61
- te as SwitchCols,
62
- le as Text,
63
- de as Wrapper
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 '../Lism';
3
- import { BoxProps } from '../../lib/types/LayoutProps';
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,5 +1,5 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import t from "../Lism/index.js";
2
+ import t from "../../Lism/index.js";
3
3
  function i(o) {
4
4
  return /* @__PURE__ */ r(t, { layout: "box", ...o });
5
5
  }
@@ -1,4 +1,4 @@
1
1
  import { ElementType } from 'react';
2
- import { LayoutComponentProps } from '../Lism';
3
- import { CenterProps } from '../../lib/types/LayoutProps';
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,5 +1,5 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import e from "../Lism/index.js";
2
+ import e from "../../Lism/index.js";
3
3
  function n(r) {
4
4
  return /* @__PURE__ */ t(e, { layout: "center", ...r });
5
5
  }
@@ -1,4 +1,4 @@
1
1
  import { ElementType } from 'react';
2
- import { LayoutComponentProps } from '../Lism';
3
- import { ClusterProps } from '../../lib/types/LayoutProps';
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,5 +1,5 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import o from "../Lism/index.js";
2
+ import o from "../../Lism/index.js";
3
3
  function m(r) {
4
4
  return /* @__PURE__ */ t(o, { layout: "cluster", ...r });
5
5
  }
@@ -1,4 +1,4 @@
1
1
  import { ElementType } from 'react';
2
- import { LayoutComponentProps } from '../Lism';
3
- import { ColumnsProps } from '../../lib/types/LayoutProps';
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,5 +1,5 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
- import r from "../Lism/index.js";
2
+ import r from "../../Lism/index.js";
3
3
  function n(o) {
4
4
  return /* @__PURE__ */ m(r, { layout: "columns", ...o });
5
5
  }
@@ -1,4 +1,4 @@
1
1
  import { ElementType } from 'react';
2
- import { LayoutComponentProps } from '../Lism';
3
- import { FlexProps } from '../../lib/types/LayoutProps';
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,5 +1,5 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import t from "../Lism/index.js";
2
+ import t from "../../Lism/index.js";
3
3
  function m(o) {
4
4
  return /* @__PURE__ */ r(t, { layout: "flex", ...o });
5
5
  }
@@ -1,4 +1,4 @@
1
1
  import { ElementType } from 'react';
2
- import { LayoutComponentProps } from '../Lism';
3
- import { FlowLayoutProps } from '../../lib/types/LayoutProps';
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,5 +1,5 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import t from "../Lism/index.js";
2
+ import t from "../../Lism/index.js";
3
3
  function i(o) {
4
4
  return /* @__PURE__ */ r(t, { layout: "flow", ...o });
5
5
  }
@@ -1,4 +1,4 @@
1
1
  import { ElementType } from 'react';
2
- import { LayoutComponentProps } from '../Lism';
3
- import { FluidColsProps } from '../../lib/types/LayoutProps';
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,5 +1,5 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import t from "../Lism/index.js";
2
+ import t from "../../Lism/index.js";
3
3
  function u(o) {
4
4
  return /* @__PURE__ */ r(t, { layout: "fluidCols", ...o });
5
5
  }
@@ -1,4 +1,4 @@
1
1
  import { ElementType } from 'react';
2
- import { LayoutComponentProps } from '../Lism';
3
- import { FrameProps } from '../../lib/types/LayoutProps';
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,5 +1,5 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
- import o from "../Lism/index.js";
2
+ import o from "../../Lism/index.js";
3
3
  function e(r) {
4
4
  return /* @__PURE__ */ m(o, { layout: "frame", ...r });
5
5
  }
@@ -1,4 +1,4 @@
1
1
  import { ElementType } from 'react';
2
- import { LayoutComponentProps } from '../Lism';
3
- import { GridLayoutProps } from '../../lib/types/LayoutProps';
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,5 +1,5 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import t from "../Lism/index.js";
2
+ import t from "../../Lism/index.js";
3
3
  function f(r) {
4
4
  return /* @__PURE__ */ o(t, { layout: "grid", ...r });
5
5
  }
@@ -1,4 +1,4 @@
1
1
  import { ElementType } from 'react';
2
- import { LayoutComponentProps } from '../Lism';
3
- import { SideMainProps } from '../../lib/types/LayoutProps';
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,5 +1,5 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import r from "../Lism/index.js";
2
+ import r from "../../Lism/index.js";
3
3
  function e(i) {
4
4
  return /* @__PURE__ */ o(r, { layout: "sideMain", ...i });
5
5
  }
@@ -1,4 +1,4 @@
1
1
  import { ElementType } from 'react';
2
- import { LayoutComponentProps } from '../Lism';
3
- import { StackProps } from '../../lib/types/LayoutProps';
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,5 +1,5 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import r from "../Lism/index.js";
2
+ import r from "../../Lism/index.js";
3
3
  function f(t) {
4
4
  return /* @__PURE__ */ o(r, { layout: "stack", ...t });
5
5
  }
@@ -1,4 +1,4 @@
1
1
  import { ElementType } from 'react';
2
- import { LayoutComponentProps } from '../Lism';
3
- import { SwitchColsProps } from '../../lib/types/LayoutProps';
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;