@niche-works/style-layouts 0.2.0 → 0.3.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 (50) hide show
  1. package/README.ja.md +11 -0
  2. package/README.md +11 -0
  3. package/balance/index.cjs +1 -1
  4. package/center/index.cjs +1 -1
  5. package/constants.cjs +2 -2
  6. package/constants.d.cts +2 -2
  7. package/constants.d.mts +2 -2
  8. package/constants.mjs +2 -2
  9. package/core/_constants.cjs +58 -78
  10. package/core/_constants.d.cts +57 -71
  11. package/core/_constants.d.mts +57 -71
  12. package/core/_constants.mjs +58 -72
  13. package/core/balance/balance.cjs +1 -1
  14. package/core/balance/balance.mjs +2 -2
  15. package/core/balance/styles.css +8 -22
  16. package/core/center/center.cjs +1 -1
  17. package/core/center/center.mjs +2 -2
  18. package/core/center/styles.css +59 -24
  19. package/core/constants.cjs +18 -20
  20. package/core/constants.d.cts +17 -19
  21. package/core/constants.d.mts +17 -19
  22. package/core/constants.mjs +17 -19
  23. package/core/flow/flow.cjs +7 -7
  24. package/core/flow/flow.mjs +8 -8
  25. package/core/flow/styles.css +24 -20
  26. package/core/layer/layer.cjs +1 -1
  27. package/core/layer/layer.mjs +2 -2
  28. package/core/layer/styles.css +2 -6
  29. package/core/matrix/matrix.cjs +39 -41
  30. package/core/matrix/matrix.mjs +40 -42
  31. package/core/matrix/styles.css +106 -4
  32. package/core/pack/pack.cjs +1 -1
  33. package/core/pack/pack.mjs +2 -2
  34. package/core/pack/styles.css +17 -8
  35. package/core/pin/styles.css +1 -0
  36. package/core/stack/stack.cjs +19 -19
  37. package/core/stack/stack.mjs +20 -20
  38. package/core/stack/styles.css +26 -22
  39. package/core/styles.css +359 -149
  40. package/core/tile/styles.css +116 -43
  41. package/core/tile/tile.cjs +2 -52
  42. package/core/tile/tile.mjs +4 -54
  43. package/flow/index.cjs +1 -1
  44. package/layer/index.cjs +1 -1
  45. package/matrix/index.cjs +1 -1
  46. package/pack/index.cjs +1 -1
  47. package/package.json +1 -1
  48. package/pin/index.cjs +1 -1
  49. package/stack/index.cjs +1 -1
  50. package/tile/index.cjs +1 -1
package/README.ja.md CHANGED
@@ -315,6 +315,17 @@ type StyleLayoutResult = {
315
315
  };
316
316
  ```
317
317
 
318
+ ## 動作環境(対応ブラウザー)
319
+
320
+ 本ライブラリはモダンCSSの標準仕様を用いて設計されており、使用するオプションによって対応ブラウザーが異なります。
321
+
322
+ | ブラウザー | 標準 | `childRatioX` / `childRatioY` 使用時 |
323
+ | --------------- | :--------: | :----------------------------------: |
324
+ | Google Chrome | 2019年以降 | 2023年以降 |
325
+ | Microsoft Edge | 2019年以降 | 2023年以降 |
326
+ | Mozilla Firefox | 2019年以降 | 2023年以降 |
327
+ | Apple Safari | 2019年以降 | 2023年以降 |
328
+
318
329
  ## ライセンス
319
330
 
320
331
  MIT
package/README.md CHANGED
@@ -315,6 +315,17 @@ type StyleLayoutResult = {
315
315
  };
316
316
  ```
317
317
 
318
+ ## Browser Support
319
+
320
+ This library is built on modern CSS standards. Supported browsers vary depending on the options used.
321
+
322
+ | Browser | Standard | When using `childRatioX` / `childRatioY` |
323
+ | --------------- | :------: | :--------------------------------------: |
324
+ | Google Chrome | 2019+ | 2023+ |
325
+ | Microsoft Edge | 2019+ | 2023+ |
326
+ | Mozilla Firefox | 2019+ | 2023+ |
327
+ | Apple Safari | 2019+ | 2023+ |
328
+
318
329
  ## License
319
330
 
320
331
  MIT
package/balance/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
1
  require('../core/balance/styles.css');
2
2
  const require_core_balance_balance = require('../core/balance/balance.cjs');
3
3
 
4
- module.exports = require_core_balance_balance;
4
+ module.exports = require_core_balance_balance;
package/center/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
1
  require('../core/center/styles.css');
2
2
  const require_core_center_center = require('../core/center/center.cjs');
3
3
 
4
- module.exports = require_core_center_center;
4
+ module.exports = require_core_center_center;
package/constants.cjs CHANGED
@@ -45,9 +45,9 @@ exports.clsLayoutMatrix = require_core_constants.clsLayoutMatrix;
45
45
  exports.clsLayoutPack = require_core_constants.clsLayoutPack;
46
46
  exports.clsLayoutPin = require_core_constants.clsLayoutPin;
47
47
  exports.clsLayoutStack = require_core_constants.clsLayoutStack;
48
+ exports.clsLayoutTemplateX = require_core_constants.clsLayoutTemplateX;
49
+ exports.clsLayoutTemplateY = require_core_constants.clsLayoutTemplateY;
48
50
  exports.clsLayoutTile = require_core_constants.clsLayoutTile;
49
- exports.varLayoutAutoTracX = require_core_constants.varLayoutAutoTracX;
50
- exports.varLayoutAutoTracY = require_core_constants.varLayoutAutoTracY;
51
51
  exports.varLayoutChildCountX = require_core_constants.varLayoutChildCountX;
52
52
  exports.varLayoutChildCountY = require_core_constants.varLayoutChildCountY;
53
53
  exports.varLayoutChildRatio = require_core_constants.varLayoutChildRatio;
package/constants.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { Adjust, AdjustBase, AlignX, AlignXBase, AlignY, AlignYBase, Direction, clsLayoutAdjustXExpand, clsLayoutAdjustXFit, clsLayoutAdjustXNone, clsLayoutAdjustXShrink, clsLayoutAdjustYExpand, clsLayoutAdjustYFit, clsLayoutAdjustYNone, clsLayoutAdjustYShrink, clsLayoutAlignXCenter, clsLayoutAlignXLeft, clsLayoutAlignXRight, clsLayoutAlignXSpaceAround, clsLayoutAlignXSpaceBetween, clsLayoutAlignXSpaceEvenly, clsLayoutAlignYBottom, clsLayoutAlignYMiddle, clsLayoutAlignYSpaceAround, clsLayoutAlignYSpaceBetween, clsLayoutAlignYSpaceEvenly, clsLayoutAlignYTop, clsLayoutBalance, clsLayoutCenter, clsLayoutChildCountX, clsLayoutChildCountY, clsLayoutChildRatio, clsLayoutChildSizeX, clsLayoutChildSizeY, clsLayoutDirectionX, clsLayoutDirectionY, clsLayoutFlow, clsLayoutGapX, clsLayoutGapY, clsLayoutLayer, clsLayoutMatrix, clsLayoutPack, clsLayoutPin, clsLayoutStack, clsLayoutTile, varLayoutAutoTracX, varLayoutAutoTracY, varLayoutChildCountX, varLayoutChildCountY, varLayoutChildRatio, varLayoutChildSizeX, varLayoutChildSizeY, varLayoutGapX, varLayoutGapY, varLayoutTemplateX, varLayoutTemplateY } from "./core/constants.cjs";
2
- export { Adjust, AdjustBase, AlignX, AlignXBase, AlignY, AlignYBase, Direction, clsLayoutAdjustXExpand, clsLayoutAdjustXFit, clsLayoutAdjustXNone, clsLayoutAdjustXShrink, clsLayoutAdjustYExpand, clsLayoutAdjustYFit, clsLayoutAdjustYNone, clsLayoutAdjustYShrink, clsLayoutAlignXCenter, clsLayoutAlignXLeft, clsLayoutAlignXRight, clsLayoutAlignXSpaceAround, clsLayoutAlignXSpaceBetween, clsLayoutAlignXSpaceEvenly, clsLayoutAlignYBottom, clsLayoutAlignYMiddle, clsLayoutAlignYSpaceAround, clsLayoutAlignYSpaceBetween, clsLayoutAlignYSpaceEvenly, clsLayoutAlignYTop, clsLayoutBalance, clsLayoutCenter, clsLayoutChildCountX, clsLayoutChildCountY, clsLayoutChildRatio, clsLayoutChildSizeX, clsLayoutChildSizeY, clsLayoutDirectionX, clsLayoutDirectionY, clsLayoutFlow, clsLayoutGapX, clsLayoutGapY, clsLayoutLayer, clsLayoutMatrix, clsLayoutPack, clsLayoutPin, clsLayoutStack, clsLayoutTile, varLayoutAutoTracX, varLayoutAutoTracY, varLayoutChildCountX, varLayoutChildCountY, varLayoutChildRatio, varLayoutChildSizeX, varLayoutChildSizeY, varLayoutGapX, varLayoutGapY, varLayoutTemplateX, varLayoutTemplateY };
1
+ import { Adjust, AdjustBase, AlignX, AlignXBase, AlignY, AlignYBase, Direction, clsLayoutAdjustXExpand, clsLayoutAdjustXFit, clsLayoutAdjustXNone, clsLayoutAdjustXShrink, clsLayoutAdjustYExpand, clsLayoutAdjustYFit, clsLayoutAdjustYNone, clsLayoutAdjustYShrink, clsLayoutAlignXCenter, clsLayoutAlignXLeft, clsLayoutAlignXRight, clsLayoutAlignXSpaceAround, clsLayoutAlignXSpaceBetween, clsLayoutAlignXSpaceEvenly, clsLayoutAlignYBottom, clsLayoutAlignYMiddle, clsLayoutAlignYSpaceAround, clsLayoutAlignYSpaceBetween, clsLayoutAlignYSpaceEvenly, clsLayoutAlignYTop, clsLayoutBalance, clsLayoutCenter, clsLayoutChildCountX, clsLayoutChildCountY, clsLayoutChildRatio, clsLayoutChildSizeX, clsLayoutChildSizeY, clsLayoutDirectionX, clsLayoutDirectionY, clsLayoutFlow, clsLayoutGapX, clsLayoutGapY, clsLayoutLayer, clsLayoutMatrix, clsLayoutPack, clsLayoutPin, clsLayoutStack, clsLayoutTemplateX, clsLayoutTemplateY, clsLayoutTile, varLayoutChildCountX, varLayoutChildCountY, varLayoutChildRatio, varLayoutChildSizeX, varLayoutChildSizeY, varLayoutGapX, varLayoutGapY, varLayoutTemplateX, varLayoutTemplateY } from "./core/constants.cjs";
2
+ export { Adjust, AdjustBase, AlignX, AlignXBase, AlignY, AlignYBase, Direction, clsLayoutAdjustXExpand, clsLayoutAdjustXFit, clsLayoutAdjustXNone, clsLayoutAdjustXShrink, clsLayoutAdjustYExpand, clsLayoutAdjustYFit, clsLayoutAdjustYNone, clsLayoutAdjustYShrink, clsLayoutAlignXCenter, clsLayoutAlignXLeft, clsLayoutAlignXRight, clsLayoutAlignXSpaceAround, clsLayoutAlignXSpaceBetween, clsLayoutAlignXSpaceEvenly, clsLayoutAlignYBottom, clsLayoutAlignYMiddle, clsLayoutAlignYSpaceAround, clsLayoutAlignYSpaceBetween, clsLayoutAlignYSpaceEvenly, clsLayoutAlignYTop, clsLayoutBalance, clsLayoutCenter, clsLayoutChildCountX, clsLayoutChildCountY, clsLayoutChildRatio, clsLayoutChildSizeX, clsLayoutChildSizeY, clsLayoutDirectionX, clsLayoutDirectionY, clsLayoutFlow, clsLayoutGapX, clsLayoutGapY, clsLayoutLayer, clsLayoutMatrix, clsLayoutPack, clsLayoutPin, clsLayoutStack, clsLayoutTemplateX, clsLayoutTemplateY, clsLayoutTile, varLayoutChildCountX, varLayoutChildCountY, varLayoutChildRatio, varLayoutChildSizeX, varLayoutChildSizeY, varLayoutGapX, varLayoutGapY, varLayoutTemplateX, varLayoutTemplateY };
package/constants.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { Adjust, AdjustBase, AlignX, AlignXBase, AlignY, AlignYBase, Direction, clsLayoutAdjustXExpand, clsLayoutAdjustXFit, clsLayoutAdjustXNone, clsLayoutAdjustXShrink, clsLayoutAdjustYExpand, clsLayoutAdjustYFit, clsLayoutAdjustYNone, clsLayoutAdjustYShrink, clsLayoutAlignXCenter, clsLayoutAlignXLeft, clsLayoutAlignXRight, clsLayoutAlignXSpaceAround, clsLayoutAlignXSpaceBetween, clsLayoutAlignXSpaceEvenly, clsLayoutAlignYBottom, clsLayoutAlignYMiddle, clsLayoutAlignYSpaceAround, clsLayoutAlignYSpaceBetween, clsLayoutAlignYSpaceEvenly, clsLayoutAlignYTop, clsLayoutBalance, clsLayoutCenter, clsLayoutChildCountX, clsLayoutChildCountY, clsLayoutChildRatio, clsLayoutChildSizeX, clsLayoutChildSizeY, clsLayoutDirectionX, clsLayoutDirectionY, clsLayoutFlow, clsLayoutGapX, clsLayoutGapY, clsLayoutLayer, clsLayoutMatrix, clsLayoutPack, clsLayoutPin, clsLayoutStack, clsLayoutTile, varLayoutAutoTracX, varLayoutAutoTracY, varLayoutChildCountX, varLayoutChildCountY, varLayoutChildRatio, varLayoutChildSizeX, varLayoutChildSizeY, varLayoutGapX, varLayoutGapY, varLayoutTemplateX, varLayoutTemplateY } from "./core/constants.mjs";
2
- export { Adjust, AdjustBase, AlignX, AlignXBase, AlignY, AlignYBase, Direction, clsLayoutAdjustXExpand, clsLayoutAdjustXFit, clsLayoutAdjustXNone, clsLayoutAdjustXShrink, clsLayoutAdjustYExpand, clsLayoutAdjustYFit, clsLayoutAdjustYNone, clsLayoutAdjustYShrink, clsLayoutAlignXCenter, clsLayoutAlignXLeft, clsLayoutAlignXRight, clsLayoutAlignXSpaceAround, clsLayoutAlignXSpaceBetween, clsLayoutAlignXSpaceEvenly, clsLayoutAlignYBottom, clsLayoutAlignYMiddle, clsLayoutAlignYSpaceAround, clsLayoutAlignYSpaceBetween, clsLayoutAlignYSpaceEvenly, clsLayoutAlignYTop, clsLayoutBalance, clsLayoutCenter, clsLayoutChildCountX, clsLayoutChildCountY, clsLayoutChildRatio, clsLayoutChildSizeX, clsLayoutChildSizeY, clsLayoutDirectionX, clsLayoutDirectionY, clsLayoutFlow, clsLayoutGapX, clsLayoutGapY, clsLayoutLayer, clsLayoutMatrix, clsLayoutPack, clsLayoutPin, clsLayoutStack, clsLayoutTile, varLayoutAutoTracX, varLayoutAutoTracY, varLayoutChildCountX, varLayoutChildCountY, varLayoutChildRatio, varLayoutChildSizeX, varLayoutChildSizeY, varLayoutGapX, varLayoutGapY, varLayoutTemplateX, varLayoutTemplateY };
1
+ import { Adjust, AdjustBase, AlignX, AlignXBase, AlignY, AlignYBase, Direction, clsLayoutAdjustXExpand, clsLayoutAdjustXFit, clsLayoutAdjustXNone, clsLayoutAdjustXShrink, clsLayoutAdjustYExpand, clsLayoutAdjustYFit, clsLayoutAdjustYNone, clsLayoutAdjustYShrink, clsLayoutAlignXCenter, clsLayoutAlignXLeft, clsLayoutAlignXRight, clsLayoutAlignXSpaceAround, clsLayoutAlignXSpaceBetween, clsLayoutAlignXSpaceEvenly, clsLayoutAlignYBottom, clsLayoutAlignYMiddle, clsLayoutAlignYSpaceAround, clsLayoutAlignYSpaceBetween, clsLayoutAlignYSpaceEvenly, clsLayoutAlignYTop, clsLayoutBalance, clsLayoutCenter, clsLayoutChildCountX, clsLayoutChildCountY, clsLayoutChildRatio, clsLayoutChildSizeX, clsLayoutChildSizeY, clsLayoutDirectionX, clsLayoutDirectionY, clsLayoutFlow, clsLayoutGapX, clsLayoutGapY, clsLayoutLayer, clsLayoutMatrix, clsLayoutPack, clsLayoutPin, clsLayoutStack, clsLayoutTemplateX, clsLayoutTemplateY, clsLayoutTile, varLayoutChildCountX, varLayoutChildCountY, varLayoutChildRatio, varLayoutChildSizeX, varLayoutChildSizeY, varLayoutGapX, varLayoutGapY, varLayoutTemplateX, varLayoutTemplateY } from "./core/constants.mjs";
2
+ export { Adjust, AdjustBase, AlignX, AlignXBase, AlignY, AlignYBase, Direction, clsLayoutAdjustXExpand, clsLayoutAdjustXFit, clsLayoutAdjustXNone, clsLayoutAdjustXShrink, clsLayoutAdjustYExpand, clsLayoutAdjustYFit, clsLayoutAdjustYNone, clsLayoutAdjustYShrink, clsLayoutAlignXCenter, clsLayoutAlignXLeft, clsLayoutAlignXRight, clsLayoutAlignXSpaceAround, clsLayoutAlignXSpaceBetween, clsLayoutAlignXSpaceEvenly, clsLayoutAlignYBottom, clsLayoutAlignYMiddle, clsLayoutAlignYSpaceAround, clsLayoutAlignYSpaceBetween, clsLayoutAlignYSpaceEvenly, clsLayoutAlignYTop, clsLayoutBalance, clsLayoutCenter, clsLayoutChildCountX, clsLayoutChildCountY, clsLayoutChildRatio, clsLayoutChildSizeX, clsLayoutChildSizeY, clsLayoutDirectionX, clsLayoutDirectionY, clsLayoutFlow, clsLayoutGapX, clsLayoutGapY, clsLayoutLayer, clsLayoutMatrix, clsLayoutPack, clsLayoutPin, clsLayoutStack, clsLayoutTemplateX, clsLayoutTemplateY, clsLayoutTile, varLayoutChildCountX, varLayoutChildCountY, varLayoutChildRatio, varLayoutChildSizeX, varLayoutChildSizeY, varLayoutGapX, varLayoutGapY, varLayoutTemplateX, varLayoutTemplateY };
package/constants.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { Adjust, AdjustBase, AlignX, AlignXBase, AlignY, AlignYBase, Direction, clsLayoutAdjustXExpand, clsLayoutAdjustXFit, clsLayoutAdjustXNone, clsLayoutAdjustXShrink, clsLayoutAdjustYExpand, clsLayoutAdjustYFit, clsLayoutAdjustYNone, clsLayoutAdjustYShrink, clsLayoutAlignXCenter, clsLayoutAlignXLeft, clsLayoutAlignXRight, clsLayoutAlignXSpaceAround, clsLayoutAlignXSpaceBetween, clsLayoutAlignXSpaceEvenly, clsLayoutAlignYBottom, clsLayoutAlignYMiddle, clsLayoutAlignYSpaceAround, clsLayoutAlignYSpaceBetween, clsLayoutAlignYSpaceEvenly, clsLayoutAlignYTop, clsLayoutBalance, clsLayoutCenter, clsLayoutChildCountX, clsLayoutChildCountY, clsLayoutChildRatio, clsLayoutChildSizeX, clsLayoutChildSizeY, clsLayoutDirectionX, clsLayoutDirectionY, clsLayoutFlow, clsLayoutGapX, clsLayoutGapY, clsLayoutLayer, clsLayoutMatrix, clsLayoutPack, clsLayoutPin, clsLayoutStack, clsLayoutTile, varLayoutAutoTracX, varLayoutAutoTracY, varLayoutChildCountX, varLayoutChildCountY, varLayoutChildRatio, varLayoutChildSizeX, varLayoutChildSizeY, varLayoutGapX, varLayoutGapY, varLayoutTemplateX, varLayoutTemplateY } from "./core/constants.mjs";
1
+ import { Adjust, AdjustBase, AlignX, AlignXBase, AlignY, AlignYBase, Direction, clsLayoutAdjustXExpand, clsLayoutAdjustXFit, clsLayoutAdjustXNone, clsLayoutAdjustXShrink, clsLayoutAdjustYExpand, clsLayoutAdjustYFit, clsLayoutAdjustYNone, clsLayoutAdjustYShrink, clsLayoutAlignXCenter, clsLayoutAlignXLeft, clsLayoutAlignXRight, clsLayoutAlignXSpaceAround, clsLayoutAlignXSpaceBetween, clsLayoutAlignXSpaceEvenly, clsLayoutAlignYBottom, clsLayoutAlignYMiddle, clsLayoutAlignYSpaceAround, clsLayoutAlignYSpaceBetween, clsLayoutAlignYSpaceEvenly, clsLayoutAlignYTop, clsLayoutBalance, clsLayoutCenter, clsLayoutChildCountX, clsLayoutChildCountY, clsLayoutChildRatio, clsLayoutChildSizeX, clsLayoutChildSizeY, clsLayoutDirectionX, clsLayoutDirectionY, clsLayoutFlow, clsLayoutGapX, clsLayoutGapY, clsLayoutLayer, clsLayoutMatrix, clsLayoutPack, clsLayoutPin, clsLayoutStack, clsLayoutTemplateX, clsLayoutTemplateY, clsLayoutTile, varLayoutChildCountX, varLayoutChildCountY, varLayoutChildRatio, varLayoutChildSizeX, varLayoutChildSizeY, varLayoutGapX, varLayoutGapY, varLayoutTemplateX, varLayoutTemplateY } from "./core/constants.mjs";
2
2
 
3
- export { Adjust, AdjustBase, AlignX, AlignXBase, AlignY, AlignYBase, Direction, clsLayoutAdjustXExpand, clsLayoutAdjustXFit, clsLayoutAdjustXNone, clsLayoutAdjustXShrink, clsLayoutAdjustYExpand, clsLayoutAdjustYFit, clsLayoutAdjustYNone, clsLayoutAdjustYShrink, clsLayoutAlignXCenter, clsLayoutAlignXLeft, clsLayoutAlignXRight, clsLayoutAlignXSpaceAround, clsLayoutAlignXSpaceBetween, clsLayoutAlignXSpaceEvenly, clsLayoutAlignYBottom, clsLayoutAlignYMiddle, clsLayoutAlignYSpaceAround, clsLayoutAlignYSpaceBetween, clsLayoutAlignYSpaceEvenly, clsLayoutAlignYTop, clsLayoutBalance, clsLayoutCenter, clsLayoutChildCountX, clsLayoutChildCountY, clsLayoutChildRatio, clsLayoutChildSizeX, clsLayoutChildSizeY, clsLayoutDirectionX, clsLayoutDirectionY, clsLayoutFlow, clsLayoutGapX, clsLayoutGapY, clsLayoutLayer, clsLayoutMatrix, clsLayoutPack, clsLayoutPin, clsLayoutStack, clsLayoutTile, varLayoutAutoTracX, varLayoutAutoTracY, varLayoutChildCountX, varLayoutChildCountY, varLayoutChildRatio, varLayoutChildSizeX, varLayoutChildSizeY, varLayoutGapX, varLayoutGapY, varLayoutTemplateX, varLayoutTemplateY };
3
+ export { Adjust, AdjustBase, AlignX, AlignXBase, AlignY, AlignYBase, Direction, clsLayoutAdjustXExpand, clsLayoutAdjustXFit, clsLayoutAdjustXNone, clsLayoutAdjustXShrink, clsLayoutAdjustYExpand, clsLayoutAdjustYFit, clsLayoutAdjustYNone, clsLayoutAdjustYShrink, clsLayoutAlignXCenter, clsLayoutAlignXLeft, clsLayoutAlignXRight, clsLayoutAlignXSpaceAround, clsLayoutAlignXSpaceBetween, clsLayoutAlignXSpaceEvenly, clsLayoutAlignYBottom, clsLayoutAlignYMiddle, clsLayoutAlignYSpaceAround, clsLayoutAlignYSpaceBetween, clsLayoutAlignYSpaceEvenly, clsLayoutAlignYTop, clsLayoutBalance, clsLayoutCenter, clsLayoutChildCountX, clsLayoutChildCountY, clsLayoutChildRatio, clsLayoutChildSizeX, clsLayoutChildSizeY, clsLayoutDirectionX, clsLayoutDirectionY, clsLayoutFlow, clsLayoutGapX, clsLayoutGapY, clsLayoutLayer, clsLayoutMatrix, clsLayoutPack, clsLayoutPin, clsLayoutStack, clsLayoutTemplateX, clsLayoutTemplateY, clsLayoutTile, varLayoutChildCountX, varLayoutChildCountY, varLayoutChildRatio, varLayoutChildSizeX, varLayoutChildSizeY, varLayoutGapX, varLayoutGapY, varLayoutTemplateX, varLayoutTemplateY };
@@ -3,92 +3,72 @@ const require_core_constants = require('./constants.cjs');
3
3
 
4
4
  //#region src/core/_constants.ts
5
5
  /**
6
- * 整列
6
+ * axis毎のクラス
7
7
  */
8
- const clsLayoutDirection = {
9
- x: require_core_constants.clsLayoutDirectionX,
10
- y: require_core_constants.clsLayoutDirectionY
11
- };
12
- /**
13
- * 横位置・縦位置
14
- */
15
- const clsLayoutAlign = {
16
- x: {
17
- left: require_core_constants.clsLayoutAlignXLeft,
18
- center: require_core_constants.clsLayoutAlignXCenter,
19
- right: require_core_constants.clsLayoutAlignXRight,
20
- "space-between": require_core_constants.clsLayoutAlignXSpaceBetween,
21
- "space-around": require_core_constants.clsLayoutAlignXSpaceAround,
22
- "space-evenly": require_core_constants.clsLayoutAlignXSpaceEvenly
8
+ const clsLayout = {
9
+ direction: {
10
+ x: require_core_constants.clsLayoutDirectionX,
11
+ y: require_core_constants.clsLayoutDirectionY
12
+ },
13
+ align: {
14
+ x: {
15
+ left: require_core_constants.clsLayoutAlignXLeft,
16
+ center: require_core_constants.clsLayoutAlignXCenter,
17
+ right: require_core_constants.clsLayoutAlignXRight,
18
+ "space-between": require_core_constants.clsLayoutAlignXSpaceBetween,
19
+ "space-around": require_core_constants.clsLayoutAlignXSpaceAround,
20
+ "space-evenly": require_core_constants.clsLayoutAlignXSpaceEvenly
21
+ },
22
+ y: {
23
+ top: require_core_constants.clsLayoutAlignYTop,
24
+ middle: require_core_constants.clsLayoutAlignYMiddle,
25
+ bottom: require_core_constants.clsLayoutAlignYBottom,
26
+ "space-between": require_core_constants.clsLayoutAlignYSpaceBetween,
27
+ "space-around": require_core_constants.clsLayoutAlignYSpaceAround,
28
+ "space-evenly": require_core_constants.clsLayoutAlignYSpaceEvenly
29
+ }
30
+ },
31
+ adjust: {
32
+ x: {
33
+ none: require_core_constants.clsLayoutAdjustXNone,
34
+ fit: require_core_constants.clsLayoutAdjustXFit,
35
+ grow: require_core_constants.clsLayoutAdjustXExpand,
36
+ shrink: require_core_constants.clsLayoutAdjustXShrink
37
+ },
38
+ y: {
39
+ none: require_core_constants.clsLayoutAdjustYNone,
40
+ fit: require_core_constants.clsLayoutAdjustYFit,
41
+ grow: require_core_constants.clsLayoutAdjustYExpand,
42
+ shrink: require_core_constants.clsLayoutAdjustYShrink
43
+ }
44
+ },
45
+ childSize: {
46
+ x: require_core_constants.clsLayoutChildSizeX,
47
+ y: require_core_constants.clsLayoutChildSizeY
23
48
  },
24
- y: {
25
- top: require_core_constants.clsLayoutAlignYTop,
26
- middle: require_core_constants.clsLayoutAlignYMiddle,
27
- bottom: require_core_constants.clsLayoutAlignYBottom,
28
- "space-between": require_core_constants.clsLayoutAlignYSpaceBetween,
29
- "space-around": require_core_constants.clsLayoutAlignYSpaceAround,
30
- "space-evenly": require_core_constants.clsLayoutAlignYSpaceEvenly
49
+ template: {
50
+ x: require_core_constants.clsLayoutTemplateX,
51
+ y: require_core_constants.clsLayoutTemplateY
31
52
  }
32
53
  };
33
54
  /**
34
- * 子要素の幅・高さ調整
55
+ * axis毎の変数
35
56
  */
36
- const clsLayoutAdjust = {
37
- x: {
38
- none: require_core_constants.clsLayoutAdjustXNone,
39
- fit: require_core_constants.clsLayoutAdjustXFit,
40
- grow: require_core_constants.clsLayoutAdjustXExpand,
41
- shrink: require_core_constants.clsLayoutAdjustXShrink
57
+ const varLayout = {
58
+ childSize: {
59
+ x: require_core_constants.varLayoutChildSizeX,
60
+ y: require_core_constants.varLayoutChildSizeY
42
61
  },
43
- y: {
44
- none: require_core_constants.clsLayoutAdjustYNone,
45
- fit: require_core_constants.clsLayoutAdjustYFit,
46
- grow: require_core_constants.clsLayoutAdjustYExpand,
47
- shrink: require_core_constants.clsLayoutAdjustYShrink
62
+ template: {
63
+ x: require_core_constants.varLayoutTemplateX,
64
+ y: require_core_constants.varLayoutTemplateY
65
+ },
66
+ gap: {
67
+ x: require_core_constants.varLayoutGapX,
68
+ y: require_core_constants.varLayoutGapY
48
69
  }
49
70
  };
50
- /**
51
- * 子要素の幅・高さ
52
- */
53
- const clsLayoutChildSize = {
54
- x: require_core_constants.clsLayoutChildSizeX,
55
- y: require_core_constants.clsLayoutChildSizeY
56
- };
57
- /**
58
- * 子要素の幅・高さ
59
- */
60
- const varLayoutChildSize = {
61
- x: require_core_constants.varLayoutChildSizeX,
62
- y: require_core_constants.varLayoutChildSizeY
63
- };
64
- /**
65
- * 子要素のテンプレート
66
- */
67
- const varLayoutTemplate = {
68
- x: require_core_constants.varLayoutTemplateX,
69
- y: require_core_constants.varLayoutTemplateY
70
- };
71
- /**
72
- * 間隔
73
- */
74
- const varLayoutGap = {
75
- x: require_core_constants.varLayoutGapX,
76
- y: require_core_constants.varLayoutGapY
77
- };
78
- /**
79
- * 軸に対するサイズプロパティ
80
- */
81
- const cssLayoutAxisSizeProp = {
82
- x: "width",
83
- y: "height"
84
- };
85
71
 
86
72
  //#endregion
87
- exports.clsLayoutAdjust = clsLayoutAdjust;
88
- exports.clsLayoutAlign = clsLayoutAlign;
89
- exports.clsLayoutChildSize = clsLayoutChildSize;
90
- exports.clsLayoutDirection = clsLayoutDirection;
91
- exports.cssLayoutAxisSizeProp = cssLayoutAxisSizeProp;
92
- exports.varLayoutChildSize = varLayoutChildSize;
93
- exports.varLayoutGap = varLayoutGap;
94
- exports.varLayoutTemplate = varLayoutTemplate;
73
+ exports.clsLayout = clsLayout;
74
+ exports.varLayout = varLayout;
@@ -1,83 +1,69 @@
1
1
  //#region src/core/_constants.d.ts
2
2
  /**
3
- * 整列
3
+ * axis毎のクラス
4
4
  */
5
- declare const clsLayoutDirection: {
6
- readonly x: "nws-layout-direction-x";
7
- readonly y: "nws-layout-direction-y";
8
- };
9
- /**
10
- * 横位置・縦位置
11
- */
12
- declare const clsLayoutAlign: {
13
- readonly x: {
14
- readonly left: "nws-layout-alignX-left";
15
- readonly center: "nws-layout-alignX-center";
16
- readonly right: "nws-layout-alignX-right";
17
- readonly 'space-between': "nws-layout-alignX-spaceBetween";
18
- readonly 'space-around': "nws-layout-alignX-spaceAround";
19
- readonly 'space-evenly': "nws-layout-alignX-spaceEvenly";
5
+ declare const clsLayout: {
6
+ readonly direction: {
7
+ readonly x: "nws-layout-direction-x";
8
+ readonly y: "nws-layout-direction-y";
20
9
  };
21
- readonly y: {
22
- readonly top: "nws-layout-alignY-top";
23
- readonly middle: "nws-layout-alignY-middle";
24
- readonly bottom: "nws-layout-alignY-bottom";
25
- readonly 'space-between': "nws-layout-alignY-spaceBetween";
26
- readonly 'space-around': "nws-layout-alignY-spaceAround";
27
- readonly 'space-evenly': "nws-layout-alignY-spaceEvenly";
10
+ readonly align: {
11
+ readonly x: {
12
+ readonly left: "nws-layout-alignX-left";
13
+ readonly center: "nws-layout-alignX-center";
14
+ readonly right: "nws-layout-alignX-right";
15
+ readonly 'space-between': "nws-layout-alignX-spaceBetween";
16
+ readonly 'space-around': "nws-layout-alignX-spaceAround";
17
+ readonly 'space-evenly': "nws-layout-alignX-spaceEvenly";
18
+ };
19
+ readonly y: {
20
+ readonly top: "nws-layout-alignY-top";
21
+ readonly middle: "nws-layout-alignY-middle";
22
+ readonly bottom: "nws-layout-alignY-bottom";
23
+ readonly 'space-between': "nws-layout-alignY-spaceBetween";
24
+ readonly 'space-around': "nws-layout-alignY-spaceAround";
25
+ readonly 'space-evenly': "nws-layout-alignY-spaceEvenly";
26
+ };
28
27
  };
29
- };
30
- /**
31
- * 子要素の幅・高さ調整
32
- */
33
- declare const clsLayoutAdjust: {
34
- readonly x: {
35
- readonly none: "nws-layout-adjustX-none";
36
- readonly fit: "nws-layout-adjustX-fit";
37
- readonly grow: "nws-layout-adjustX-grow";
38
- readonly shrink: "nws-layout-adjustX-shrink";
28
+ readonly adjust: {
29
+ readonly x: {
30
+ readonly none: "nws-layout-adjustX-none";
31
+ readonly fit: "nws-layout-adjustX-fit";
32
+ readonly grow: "nws-layout-adjustX-grow";
33
+ readonly shrink: "nws-layout-adjustX-shrink";
34
+ };
35
+ readonly y: {
36
+ readonly none: "nws-layout-adjustY-none";
37
+ readonly fit: "nws-layout-adjustY-fit";
38
+ readonly grow: "nws-layout-adjustY-grow";
39
+ readonly shrink: "nws-layout-adjustY-shrink";
40
+ };
39
41
  };
40
- readonly y: {
41
- readonly none: "nws-layout-adjustY-none";
42
- readonly fit: "nws-layout-adjustY-fit";
43
- readonly grow: "nws-layout-adjustY-grow";
44
- readonly shrink: "nws-layout-adjustY-shrink";
42
+ readonly childSize: {
43
+ readonly x: "nws-layout-childSizeX";
44
+ readonly y: "nws-layout-childSizeY";
45
+ };
46
+ readonly template: {
47
+ readonly x: "nws-layout-templateX";
48
+ readonly y: "nws-layout-templateY";
45
49
  };
46
50
  };
47
51
  /**
48
- * 子要素の幅・高さ
49
- */
50
- declare const clsLayoutChildSize: {
51
- readonly x: "nws-layout-childSizeX";
52
- readonly y: "nws-layout-childSizeY";
53
- };
54
- /**
55
- * 子要素の幅・高さ
56
- */
57
- declare const varLayoutChildSize: {
58
- readonly x: "--nws-layout-childSizeX";
59
- readonly y: "--nws-layout-childSizeY";
60
- };
61
- /**
62
- * 子要素のテンプレート
63
- */
64
- declare const varLayoutTemplate: {
65
- readonly x: "--nws-layout-templateX";
66
- readonly y: "--nws-layout-templateY";
67
- };
68
- /**
69
- * 間隔
70
- */
71
- declare const varLayoutGap: {
72
- readonly x: "--nws-layout-gapX";
73
- readonly y: "--nws-layout-gapY";
74
- };
75
- /**
76
- * 軸に対するサイズプロパティ
52
+ * axis毎の変数
77
53
  */
78
- declare const cssLayoutAxisSizeProp: {
79
- readonly x: "width";
80
- readonly y: "height";
54
+ declare const varLayout: {
55
+ childSize: {
56
+ x: string;
57
+ y: string;
58
+ };
59
+ template: {
60
+ x: string;
61
+ y: string;
62
+ };
63
+ gap: {
64
+ x: string;
65
+ y: string;
66
+ };
81
67
  };
82
68
  //#endregion
83
- export { clsLayoutAdjust, clsLayoutAlign, clsLayoutChildSize, clsLayoutDirection, cssLayoutAxisSizeProp, varLayoutChildSize, varLayoutGap, varLayoutTemplate };
69
+ export { clsLayout, varLayout };
@@ -1,83 +1,69 @@
1
1
  //#region src/core/_constants.d.ts
2
2
  /**
3
- * 整列
3
+ * axis毎のクラス
4
4
  */
5
- declare const clsLayoutDirection: {
6
- readonly x: "nws-layout-direction-x";
7
- readonly y: "nws-layout-direction-y";
8
- };
9
- /**
10
- * 横位置・縦位置
11
- */
12
- declare const clsLayoutAlign: {
13
- readonly x: {
14
- readonly left: "nws-layout-alignX-left";
15
- readonly center: "nws-layout-alignX-center";
16
- readonly right: "nws-layout-alignX-right";
17
- readonly 'space-between': "nws-layout-alignX-spaceBetween";
18
- readonly 'space-around': "nws-layout-alignX-spaceAround";
19
- readonly 'space-evenly': "nws-layout-alignX-spaceEvenly";
5
+ declare const clsLayout: {
6
+ readonly direction: {
7
+ readonly x: "nws-layout-direction-x";
8
+ readonly y: "nws-layout-direction-y";
20
9
  };
21
- readonly y: {
22
- readonly top: "nws-layout-alignY-top";
23
- readonly middle: "nws-layout-alignY-middle";
24
- readonly bottom: "nws-layout-alignY-bottom";
25
- readonly 'space-between': "nws-layout-alignY-spaceBetween";
26
- readonly 'space-around': "nws-layout-alignY-spaceAround";
27
- readonly 'space-evenly': "nws-layout-alignY-spaceEvenly";
10
+ readonly align: {
11
+ readonly x: {
12
+ readonly left: "nws-layout-alignX-left";
13
+ readonly center: "nws-layout-alignX-center";
14
+ readonly right: "nws-layout-alignX-right";
15
+ readonly 'space-between': "nws-layout-alignX-spaceBetween";
16
+ readonly 'space-around': "nws-layout-alignX-spaceAround";
17
+ readonly 'space-evenly': "nws-layout-alignX-spaceEvenly";
18
+ };
19
+ readonly y: {
20
+ readonly top: "nws-layout-alignY-top";
21
+ readonly middle: "nws-layout-alignY-middle";
22
+ readonly bottom: "nws-layout-alignY-bottom";
23
+ readonly 'space-between': "nws-layout-alignY-spaceBetween";
24
+ readonly 'space-around': "nws-layout-alignY-spaceAround";
25
+ readonly 'space-evenly': "nws-layout-alignY-spaceEvenly";
26
+ };
28
27
  };
29
- };
30
- /**
31
- * 子要素の幅・高さ調整
32
- */
33
- declare const clsLayoutAdjust: {
34
- readonly x: {
35
- readonly none: "nws-layout-adjustX-none";
36
- readonly fit: "nws-layout-adjustX-fit";
37
- readonly grow: "nws-layout-adjustX-grow";
38
- readonly shrink: "nws-layout-adjustX-shrink";
28
+ readonly adjust: {
29
+ readonly x: {
30
+ readonly none: "nws-layout-adjustX-none";
31
+ readonly fit: "nws-layout-adjustX-fit";
32
+ readonly grow: "nws-layout-adjustX-grow";
33
+ readonly shrink: "nws-layout-adjustX-shrink";
34
+ };
35
+ readonly y: {
36
+ readonly none: "nws-layout-adjustY-none";
37
+ readonly fit: "nws-layout-adjustY-fit";
38
+ readonly grow: "nws-layout-adjustY-grow";
39
+ readonly shrink: "nws-layout-adjustY-shrink";
40
+ };
39
41
  };
40
- readonly y: {
41
- readonly none: "nws-layout-adjustY-none";
42
- readonly fit: "nws-layout-adjustY-fit";
43
- readonly grow: "nws-layout-adjustY-grow";
44
- readonly shrink: "nws-layout-adjustY-shrink";
42
+ readonly childSize: {
43
+ readonly x: "nws-layout-childSizeX";
44
+ readonly y: "nws-layout-childSizeY";
45
+ };
46
+ readonly template: {
47
+ readonly x: "nws-layout-templateX";
48
+ readonly y: "nws-layout-templateY";
45
49
  };
46
50
  };
47
51
  /**
48
- * 子要素の幅・高さ
49
- */
50
- declare const clsLayoutChildSize: {
51
- readonly x: "nws-layout-childSizeX";
52
- readonly y: "nws-layout-childSizeY";
53
- };
54
- /**
55
- * 子要素の幅・高さ
56
- */
57
- declare const varLayoutChildSize: {
58
- readonly x: "--nws-layout-childSizeX";
59
- readonly y: "--nws-layout-childSizeY";
60
- };
61
- /**
62
- * 子要素のテンプレート
63
- */
64
- declare const varLayoutTemplate: {
65
- readonly x: "--nws-layout-templateX";
66
- readonly y: "--nws-layout-templateY";
67
- };
68
- /**
69
- * 間隔
70
- */
71
- declare const varLayoutGap: {
72
- readonly x: "--nws-layout-gapX";
73
- readonly y: "--nws-layout-gapY";
74
- };
75
- /**
76
- * 軸に対するサイズプロパティ
52
+ * axis毎の変数
77
53
  */
78
- declare const cssLayoutAxisSizeProp: {
79
- readonly x: "width";
80
- readonly y: "height";
54
+ declare const varLayout: {
55
+ childSize: {
56
+ x: string;
57
+ y: string;
58
+ };
59
+ template: {
60
+ x: string;
61
+ y: string;
62
+ };
63
+ gap: {
64
+ x: string;
65
+ y: string;
66
+ };
81
67
  };
82
68
  //#endregion
83
- export { clsLayoutAdjust, clsLayoutAlign, clsLayoutChildSize, clsLayoutDirection, cssLayoutAxisSizeProp, varLayoutChildSize, varLayoutGap, varLayoutTemplate };
69
+ export { clsLayout, varLayout };