@burger-editor/blocks 4.0.0-alpha.17 → 4.0.0-alpha.19

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 (3) hide show
  1. package/README.md +5 -3
  2. package/dist/index.js +226 -127
  3. package/package.json +6 -6
package/README.md CHANGED
@@ -53,10 +53,12 @@
53
53
  ##### `grid`オプション
54
54
 
55
55
  - `[数値]`: グリッドの列数( `grid-template-columns: repeat([数値], 1fr);` ) 1〜5の範囲で指定可能。
56
- - `auto-fit`: 自動列数調整( `grid-template-columns: repeat(auto-fit, minmax(calc(var(--bge-auto-fit-base-width) / [数値]), 1fr));` )
57
- 規定幅(CSSカスタムプロパティ`--bge-auto-fit-base-width`)を基準に指定した列数で割った数値に近い幅を保ちながら、コンテナの幅に応じて自動的に列数を調整します。
56
+ - `auto-fit`: 自動列数調整(空白最小)( `grid-template-columns: repeat(auto-fit, minmax(calc(var(--bge-auto-fit-base-width) / [数値]), 1fr));` )
57
+ 規定幅(CSSカスタムプロパティ`--bge-auto-fit-base-width`)を基準に指定した列数で割った数値に近い幅を保ちながら、コンテナの幅に応じて自動的に列数を調整します。空のトラックは折りたたまれ、既存のアイテムが利用可能なスペースを埋めるように拡張されます。
58
+ - `auto-fill`: 自動列数調整(空白保持)( `grid-template-columns: repeat(auto-fill, minmax(calc(var(--bge-auto-fit-base-width) / [数値]), 1fr));` )
59
+ 規定幅を基準に自動的に列数を調整しますが、アイテムが不足している場合でも空のトラックが保持され、レイアウト内に空白が生じます。
58
60
 
59
- 例: `data-bge-container="grid:3"`、`data-bge-container="grid:3:auto-fit"`
61
+ 例: `data-bge-container="grid:3"`、`data-bge-container="grid:3:auto-fit"`、`data-bge-container="grid:3:auto-fill"`
60
62
 
61
63
  ##### `inline`オプション
62
64