@niche-works/style-layouts 0.3.1 → 0.4.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 (139) hide show
  1. package/README.ja.md +3 -3
  2. package/README.md +6 -6
  3. package/balance/index.cjs +6 -2
  4. package/balance/index.mjs +6 -2
  5. package/center/index.cjs +6 -2
  6. package/center/index.mjs +6 -2
  7. package/constants.cjs +1 -50
  8. package/constants.d.cts +2 -2
  9. package/constants.d.mts +2 -2
  10. package/constants.mjs +2 -2
  11. package/core/_constants.cjs +287 -34
  12. package/core/_constants.d.cts +206 -1
  13. package/core/_constants.d.mts +206 -1
  14. package/core/_constants.mjs +206 -3
  15. package/core/_internal/applyChildCount.cjs +6 -8
  16. package/core/_internal/applyChildCount.mjs +6 -6
  17. package/core/_internal/applyChildRatio.cjs +4 -6
  18. package/core/_internal/applyChildRatio.mjs +3 -3
  19. package/core/_internal/applyChildSize.cjs +6 -8
  20. package/core/_internal/applyChildSize.mjs +4 -4
  21. package/core/_internal/applyGap.cjs +6 -8
  22. package/core/_internal/applyGap.mjs +4 -4
  23. package/core/_internal/mergeClassName.cjs +11 -0
  24. package/core/_internal/mergeClassName.d.cts +3 -0
  25. package/core/_internal/mergeClassName.d.mts +4 -0
  26. package/core/_internal/mergeClassName.mjs +10 -0
  27. package/core/_internal/mergeLayoutResults.cjs +2 -4
  28. package/core/_internal/mergeLayoutResults.mjs +2 -2
  29. package/core/_types.d.cts +1 -9
  30. package/core/_types.d.mts +1 -9
  31. package/core/balance/balance.cjs +4 -4
  32. package/core/balance/balance.d.cts +2 -0
  33. package/core/balance/balance.d.mts +2 -0
  34. package/core/balance/balance.mjs +5 -4
  35. package/core/balance/styles.css +32 -0
  36. package/core/center/center.cjs +3 -4
  37. package/core/center/center.d.cts +1 -0
  38. package/core/center/center.d.mts +1 -0
  39. package/core/center/center.mjs +4 -4
  40. package/core/constants.cjs +4 -255
  41. package/core/constants.d.cts +4 -206
  42. package/core/constants.d.mts +4 -206
  43. package/core/constants.mjs +4 -206
  44. package/core/flow/flow.cjs +5 -7
  45. package/core/flow/flow.mjs +6 -7
  46. package/core/index.d.cts +2 -2
  47. package/core/index.d.mts +2 -2
  48. package/core/layer/layer.cjs +2 -4
  49. package/core/layer/layer.mjs +3 -4
  50. package/core/matrix/matrix.cjs +3 -4
  51. package/core/matrix/matrix.d.cts +1 -0
  52. package/core/matrix/matrix.d.mts +1 -0
  53. package/core/matrix/matrix.mjs +4 -4
  54. package/core/pack/pack.cjs +2 -4
  55. package/core/pack/pack.mjs +3 -4
  56. package/core/pin/pin.cjs +2 -2
  57. package/core/pin/pin.mjs +1 -1
  58. package/core/stack/stack.cjs +12 -14
  59. package/core/stack/stack.d.cts +1 -1
  60. package/core/stack/stack.d.mts +1 -1
  61. package/core/stack/stack.mjs +13 -14
  62. package/core/styles.css +32 -0
  63. package/core/tile/tile.cjs +2 -4
  64. package/core/tile/tile.mjs +3 -4
  65. package/core/types.d.cts +7 -2
  66. package/core/types.d.mts +7 -2
  67. package/flow/index.cjs +6 -2
  68. package/flow/index.mjs +6 -2
  69. package/helpers/_internal/constants.cjs +25 -0
  70. package/helpers/_internal/constants.d.cts +13 -0
  71. package/helpers/_internal/constants.d.mts +13 -0
  72. package/helpers/_internal/constants.mjs +16 -0
  73. package/helpers/_internal/createExtractLayoutOptions.cjs +25 -0
  74. package/helpers/_internal/createExtractLayoutOptions.d.cts +8 -0
  75. package/helpers/_internal/createExtractLayoutOptions.d.mts +9 -0
  76. package/helpers/_internal/createExtractLayoutOptions.mjs +24 -0
  77. package/helpers/extractBalanceOptions.cjs +15 -0
  78. package/helpers/extractBalanceOptions.d.cts +5 -0
  79. package/helpers/extractBalanceOptions.d.mts +6 -0
  80. package/helpers/extractBalanceOptions.mjs +15 -0
  81. package/helpers/extractCenterOptions.cjs +14 -0
  82. package/helpers/extractCenterOptions.d.cts +6 -0
  83. package/helpers/extractCenterOptions.d.mts +7 -0
  84. package/helpers/extractCenterOptions.mjs +14 -0
  85. package/helpers/extractFlowOptions.cjs +15 -0
  86. package/helpers/extractFlowOptions.d.cts +6 -0
  87. package/helpers/extractFlowOptions.d.mts +7 -0
  88. package/helpers/extractFlowOptions.mjs +15 -0
  89. package/helpers/extractLayerOptions.cjs +13 -0
  90. package/helpers/extractLayerOptions.d.cts +6 -0
  91. package/helpers/extractLayerOptions.d.mts +7 -0
  92. package/helpers/extractLayerOptions.mjs +13 -0
  93. package/helpers/extractMatrixOptions.cjs +17 -0
  94. package/helpers/extractMatrixOptions.d.cts +5 -0
  95. package/helpers/extractMatrixOptions.d.mts +6 -0
  96. package/helpers/extractMatrixOptions.mjs +17 -0
  97. package/helpers/extractPackOptions.cjs +8 -0
  98. package/helpers/extractPackOptions.d.cts +6 -0
  99. package/helpers/extractPackOptions.d.mts +7 -0
  100. package/helpers/extractPackOptions.mjs +8 -0
  101. package/helpers/extractPinOptions.cjs +8 -0
  102. package/helpers/extractPinOptions.d.cts +6 -0
  103. package/helpers/extractPinOptions.d.mts +7 -0
  104. package/helpers/extractPinOptions.mjs +8 -0
  105. package/helpers/extractStackOptions.cjs +15 -0
  106. package/helpers/extractStackOptions.d.cts +6 -0
  107. package/helpers/extractStackOptions.d.mts +7 -0
  108. package/helpers/extractStackOptions.mjs +15 -0
  109. package/helpers/extractTileOptions.cjs +15 -0
  110. package/helpers/extractTileOptions.d.cts +6 -0
  111. package/helpers/extractTileOptions.d.mts +7 -0
  112. package/helpers/extractTileOptions.mjs +15 -0
  113. package/helpers/index.cjs +20 -0
  114. package/helpers/index.d.cts +10 -0
  115. package/helpers/index.d.mts +10 -0
  116. package/helpers/index.mjs +11 -0
  117. package/index.cjs +18 -18
  118. package/index.d.cts +2 -2
  119. package/index.d.mts +2 -2
  120. package/index.mjs +10 -10
  121. package/layer/index.cjs +6 -2
  122. package/layer/index.mjs +6 -2
  123. package/matrix/index.cjs +6 -2
  124. package/matrix/index.mjs +6 -2
  125. package/pack/index.cjs +6 -2
  126. package/pack/index.mjs +6 -2
  127. package/package.json +6 -4
  128. package/pin/index.cjs +6 -2
  129. package/pin/index.mjs +6 -2
  130. package/stack/index.cjs +6 -2
  131. package/stack/index.mjs +6 -2
  132. package/tile/index.cjs +6 -2
  133. package/tile/index.mjs +6 -2
  134. package/types.d.cts +2 -2
  135. package/types.d.mts +2 -2
  136. package/core/_internal/warnIfUnsupported.cjs +0 -15
  137. package/core/_internal/warnIfUnsupported.d.cts +0 -3
  138. package/core/_internal/warnIfUnsupported.d.mts +0 -4
  139. package/core/_internal/warnIfUnsupported.mjs +0 -14
package/README.ja.md CHANGED
@@ -310,7 +310,7 @@ const { className, style } = pin({
310
310
  type StyleLayoutResult = {
311
311
  className?: string;
312
312
  style?: {
313
- [key: `--${string}`]: string | number | undefined;
313
+ [key: `--${string}`]: string | undefined;
314
314
  };
315
315
  };
316
316
  ```
@@ -319,8 +319,8 @@ type StyleLayoutResult = {
319
319
 
320
320
  本ライブラリはモダンCSSの標準仕様を用いて設計されており、下記のメジャーなブラウザーのバージョンに対応しています。
321
321
 
322
- | ブラウザー | 対応バージョン |
323
- | --------------- | :-----------------: |
322
+ | ブラウザー | 対応バージョン |
323
+ | --------------- | ------------------- |
324
324
  | Google Chrome | 88 (2021年1月) 以降 |
325
325
  | Microsoft Edge | 88 (2021年1月) 以降 |
326
326
  | Mozilla Firefox | 89 (2021年6月) 以降 |
package/README.md CHANGED
@@ -310,7 +310,7 @@ All layout functions return a `StyleLayoutResult`:
310
310
  type StyleLayoutResult = {
311
311
  className?: string;
312
312
  style?: {
313
- [key: `--${string}`]: string | number | undefined;
313
+ [key: `--${string}`]: string | undefined;
314
314
  };
315
315
  };
316
316
  ```
@@ -319,11 +319,11 @@ type StyleLayoutResult = {
319
319
 
320
320
  This library is built on modern CSS standards and supports the following major browser versions.
321
321
 
322
- | Browser | Supported Versions |
323
- | --------------- | :----------------------: |
324
- | Google Chrome | 88 (January 2021) and later |
325
- | Microsoft Edge | 88 (January 2021) and later |
326
- | Mozilla Firefox | 89 (June 2021) and later |
322
+ | Browser | Supported Versions |
323
+ | --------------- | ----------------------------- |
324
+ | Google Chrome | 88 (January 2021) and later |
325
+ | Microsoft Edge | 88 (January 2021) and later |
326
+ | Mozilla Firefox | 89 (June 2021) and later |
327
327
  | Apple Safari | 15 (September 2021) and later |
328
328
 
329
329
  ## License
package/balance/index.cjs CHANGED
@@ -1,4 +1,8 @@
1
- require('../core/balance/styles.css');
2
1
  const require_core_balance_balance = require('../core/balance/balance.cjs');
2
+ require('../core/balance/styles.css');
3
+
4
+ //#region src/balance/index.ts
5
+ var balance_default = require_core_balance_balance;
3
6
 
4
- module.exports = require_core_balance_balance;
7
+ //#endregion
8
+ module.exports = balance_default;
package/balance/index.mjs CHANGED
@@ -1,4 +1,8 @@
1
- import "../core/balance/styles.css";
2
1
  import balance from "../core/balance/balance.mjs";
2
+ import "../core/balance/styles.css";
3
+
4
+ //#region src/balance/index.ts
5
+ var balance_default = balance;
3
6
 
4
- export { balance as default };
7
+ //#endregion
8
+ export { balance_default as default };
package/center/index.cjs CHANGED
@@ -1,4 +1,8 @@
1
- require('../core/center/styles.css');
2
1
  const require_core_center_center = require('../core/center/center.cjs');
2
+ require('../core/center/styles.css');
3
+
4
+ //#region src/center/index.ts
5
+ var center_default = require_core_center_center;
3
6
 
4
- module.exports = require_core_center_center;
7
+ //#endregion
8
+ module.exports = center_default;
package/center/index.mjs CHANGED
@@ -1,4 +1,8 @@
1
- import "../core/center/styles.css";
2
1
  import center from "../core/center/center.mjs";
2
+ import "../core/center/styles.css";
3
+
4
+ //#region src/center/index.ts
5
+ var center_default = center;
3
6
 
4
- export { center as default };
7
+ //#endregion
8
+ export { center_default as default };
package/constants.cjs CHANGED
@@ -7,53 +7,4 @@ exports.AlignX = require_core_constants.AlignX;
7
7
  exports.AlignXBase = require_core_constants.AlignXBase;
8
8
  exports.AlignY = require_core_constants.AlignY;
9
9
  exports.AlignYBase = require_core_constants.AlignYBase;
10
- exports.Direction = require_core_constants.Direction;
11
- exports.clsLayoutAdjustXExpand = require_core_constants.clsLayoutAdjustXExpand;
12
- exports.clsLayoutAdjustXFit = require_core_constants.clsLayoutAdjustXFit;
13
- exports.clsLayoutAdjustXNone = require_core_constants.clsLayoutAdjustXNone;
14
- exports.clsLayoutAdjustXShrink = require_core_constants.clsLayoutAdjustXShrink;
15
- exports.clsLayoutAdjustYExpand = require_core_constants.clsLayoutAdjustYExpand;
16
- exports.clsLayoutAdjustYFit = require_core_constants.clsLayoutAdjustYFit;
17
- exports.clsLayoutAdjustYNone = require_core_constants.clsLayoutAdjustYNone;
18
- exports.clsLayoutAdjustYShrink = require_core_constants.clsLayoutAdjustYShrink;
19
- exports.clsLayoutAlignXCenter = require_core_constants.clsLayoutAlignXCenter;
20
- exports.clsLayoutAlignXLeft = require_core_constants.clsLayoutAlignXLeft;
21
- exports.clsLayoutAlignXRight = require_core_constants.clsLayoutAlignXRight;
22
- exports.clsLayoutAlignXSpaceAround = require_core_constants.clsLayoutAlignXSpaceAround;
23
- exports.clsLayoutAlignXSpaceBetween = require_core_constants.clsLayoutAlignXSpaceBetween;
24
- exports.clsLayoutAlignXSpaceEvenly = require_core_constants.clsLayoutAlignXSpaceEvenly;
25
- exports.clsLayoutAlignYBottom = require_core_constants.clsLayoutAlignYBottom;
26
- exports.clsLayoutAlignYMiddle = require_core_constants.clsLayoutAlignYMiddle;
27
- exports.clsLayoutAlignYSpaceAround = require_core_constants.clsLayoutAlignYSpaceAround;
28
- exports.clsLayoutAlignYSpaceBetween = require_core_constants.clsLayoutAlignYSpaceBetween;
29
- exports.clsLayoutAlignYSpaceEvenly = require_core_constants.clsLayoutAlignYSpaceEvenly;
30
- exports.clsLayoutAlignYTop = require_core_constants.clsLayoutAlignYTop;
31
- exports.clsLayoutBalance = require_core_constants.clsLayoutBalance;
32
- exports.clsLayoutCenter = require_core_constants.clsLayoutCenter;
33
- exports.clsLayoutChildCountX = require_core_constants.clsLayoutChildCountX;
34
- exports.clsLayoutChildCountY = require_core_constants.clsLayoutChildCountY;
35
- exports.clsLayoutChildRatio = require_core_constants.clsLayoutChildRatio;
36
- exports.clsLayoutChildSizeX = require_core_constants.clsLayoutChildSizeX;
37
- exports.clsLayoutChildSizeY = require_core_constants.clsLayoutChildSizeY;
38
- exports.clsLayoutDirectionX = require_core_constants.clsLayoutDirectionX;
39
- exports.clsLayoutDirectionY = require_core_constants.clsLayoutDirectionY;
40
- exports.clsLayoutFlow = require_core_constants.clsLayoutFlow;
41
- exports.clsLayoutGapX = require_core_constants.clsLayoutGapX;
42
- exports.clsLayoutGapY = require_core_constants.clsLayoutGapY;
43
- exports.clsLayoutLayer = require_core_constants.clsLayoutLayer;
44
- exports.clsLayoutMatrix = require_core_constants.clsLayoutMatrix;
45
- exports.clsLayoutPack = require_core_constants.clsLayoutPack;
46
- exports.clsLayoutPin = require_core_constants.clsLayoutPin;
47
- exports.clsLayoutStack = require_core_constants.clsLayoutStack;
48
- exports.clsLayoutTemplateX = require_core_constants.clsLayoutTemplateX;
49
- exports.clsLayoutTemplateY = require_core_constants.clsLayoutTemplateY;
50
- exports.clsLayoutTile = require_core_constants.clsLayoutTile;
51
- exports.varLayoutChildCountX = require_core_constants.varLayoutChildCountX;
52
- exports.varLayoutChildCountY = require_core_constants.varLayoutChildCountY;
53
- exports.varLayoutChildRatio = require_core_constants.varLayoutChildRatio;
54
- exports.varLayoutChildSizeX = require_core_constants.varLayoutChildSizeX;
55
- exports.varLayoutChildSizeY = require_core_constants.varLayoutChildSizeY;
56
- exports.varLayoutGapX = require_core_constants.varLayoutGapX;
57
- exports.varLayoutGapY = require_core_constants.varLayoutGapY;
58
- exports.varLayoutTemplateX = require_core_constants.varLayoutTemplateX;
59
- exports.varLayoutTemplateY = require_core_constants.varLayoutTemplateY;
10
+ exports.Direction = require_core_constants.Direction;
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, 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 };
1
+ import { Adjust, AdjustBase, AlignX, AlignXBase, AlignY, AlignYBase, Direction } from "./core/constants.cjs";
2
+ export { Adjust, AdjustBase, AlignX, AlignXBase, AlignY, AlignYBase, Direction };
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, 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 };
1
+ import { Adjust, AdjustBase, AlignX, AlignXBase, AlignY, AlignYBase, Direction } from "./core/constants.mjs";
2
+ export { Adjust, AdjustBase, AlignX, AlignXBase, AlignY, AlignYBase, Direction };
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, clsLayoutTemplateX, clsLayoutTemplateY, clsLayoutTile, varLayoutChildCountX, varLayoutChildCountY, varLayoutChildRatio, varLayoutChildSizeX, varLayoutChildSizeY, varLayoutGapX, varLayoutGapY, varLayoutTemplateX, varLayoutTemplateY } from "./core/constants.mjs";
1
+ import { Adjust, AdjustBase, AlignX, AlignXBase, AlignY, AlignYBase, Direction } 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, clsLayoutTemplateX, clsLayoutTemplateY, clsLayoutTile, varLayoutChildCountX, varLayoutChildCountY, varLayoutChildRatio, varLayoutChildSizeX, varLayoutChildSizeY, varLayoutGapX, varLayoutGapY, varLayoutTemplateX, varLayoutTemplateY };
3
+ export { Adjust, AdjustBase, AlignX, AlignXBase, AlignY, AlignYBase, Direction };
@@ -1,54 +1,258 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_core_constants = require('./constants.cjs');
3
2
 
4
3
  //#region src/core/_constants.ts
5
4
  /**
5
+ * レイアウト種別: stack
6
+ */
7
+ const clsLayoutStack = "nws-layout-stack";
8
+ /**
9
+ * レイアウト種別: flow
10
+ */
11
+ const clsLayoutFlow = "nws-layout-flow";
12
+ /**
13
+ * レイアウト種別: tile
14
+ */
15
+ const clsLayoutTile = "nws-layout-tile";
16
+ /**
17
+ * レイアウト種別: matrix
18
+ */
19
+ const clsLayoutMatrix = "nws-layout-matrix";
20
+ /**
21
+ * レイアウト種別: center
22
+ */
23
+ const clsLayoutCenter = "nws-layout-center";
24
+ /**
25
+ * レイアウト種別: pack
26
+ */
27
+ const clsLayoutPack = "nws-layout-pack";
28
+ /**
29
+ * レイアウト種別: balance
30
+ */
31
+ const clsLayoutBalance = "nws-layout-balance";
32
+ /**
33
+ * レイアウト種別: layer
34
+ */
35
+ const clsLayoutLayer = "nws-layout-layer";
36
+ /**
37
+ * レイアウト種別: pin
38
+ */
39
+ const clsLayoutPin = "nws-layout-pin";
40
+ /**
41
+ * 整列: 横方向
42
+ */
43
+ const clsLayoutDirectionX = "nws-layout-direction-x";
44
+ /**
45
+ * 整列: 縦方向
46
+ */
47
+ const clsLayoutDirectionY = "nws-layout-direction-y";
48
+ /**
49
+ * 横位置: 左
50
+ */
51
+ const clsLayoutAlignXLeft = "nws-layout-alignX-left";
52
+ /**
53
+ * 横位置: 中央
54
+ */
55
+ const clsLayoutAlignXCenter = "nws-layout-alignX-center";
56
+ /**
57
+ * 横位置: 右
58
+ */
59
+ const clsLayoutAlignXRight = "nws-layout-alignX-right";
60
+ /**
61
+ * 横位置: 両端揃え
62
+ */
63
+ const clsLayoutAlignXSpaceBetween = "nws-layout-alignX-spaceBetween";
64
+ /**
65
+ * 横位置: 両端余白あり均等
66
+ */
67
+ const clsLayoutAlignXSpaceAround = "nws-layout-alignX-spaceAround";
68
+ /**
69
+ * 横位置: 完全均等
70
+ */
71
+ const clsLayoutAlignXSpaceEvenly = "nws-layout-alignX-spaceEvenly";
72
+ /**
73
+ * 縦位置: 上
74
+ */
75
+ const clsLayoutAlignYTop = "nws-layout-alignY-top";
76
+ /**
77
+ * 縦位置: 中央
78
+ */
79
+ const clsLayoutAlignYMiddle = "nws-layout-alignY-middle";
80
+ /**
81
+ * 縦位置: 下
82
+ */
83
+ const clsLayoutAlignYBottom = "nws-layout-alignY-bottom";
84
+ /**
85
+ * 縦位置: 両端揃え
86
+ */
87
+ const clsLayoutAlignYSpaceBetween = "nws-layout-alignY-spaceBetween";
88
+ /**
89
+ * 縦位置: 両端余白あり均等
90
+ */
91
+ const clsLayoutAlignYSpaceAround = "nws-layout-alignY-spaceAround";
92
+ /**
93
+ * 縦位置: 完全均等
94
+ */
95
+ const clsLayoutAlignYSpaceEvenly = "nws-layout-alignY-spaceEvenly";
96
+ /**
97
+ * 子要素の幅調整: なし
98
+ */
99
+ const clsLayoutAdjustXNone = "nws-layout-adjustX-none";
100
+ /**
101
+ * 子要素の幅調整: 伸ばす & 縮める
102
+ */
103
+ const clsLayoutAdjustXFit = "nws-layout-adjustX-fit";
104
+ /**
105
+ * 子要素の幅調整: 伸ばす
106
+ */
107
+ const clsLayoutAdjustXExpand = "nws-layout-adjustX-grow";
108
+ /**
109
+ * 子要素の幅調整: 縮める
110
+ */
111
+ const clsLayoutAdjustXShrink = "nws-layout-adjustX-shrink";
112
+ /**
113
+ * 子要素の高さ調整: なし
114
+ */
115
+ const clsLayoutAdjustYNone = "nws-layout-adjustY-none";
116
+ /**
117
+ * 子要素の高さ調整: 伸ばす & 縮める
118
+ */
119
+ const clsLayoutAdjustYFit = "nws-layout-adjustY-fit";
120
+ /**
121
+ * 子要素の高さ調整: 伸ばす
122
+ */
123
+ const clsLayoutAdjustYExpand = "nws-layout-adjustY-grow";
124
+ /**
125
+ * 子要素の高さ調整: 縮める
126
+ */
127
+ const clsLayoutAdjustYShrink = "nws-layout-adjustY-shrink";
128
+ /**
129
+ * 間隔: 横方向
130
+ */
131
+ const clsLayoutGapX = "nws-layout-gapX";
132
+ /**
133
+ * 間隔: 縦方向
134
+ */
135
+ const clsLayoutGapY = "nws-layout-gapY";
136
+ /**
137
+ * 子要素の幅
138
+ */
139
+ const clsLayoutChildSizeX = "nws-layout-childSizeX";
140
+ /**
141
+ * 子要素の高さ
142
+ */
143
+ const clsLayoutChildSizeY = "nws-layout-childSizeY";
144
+ /**
145
+ * 子要素の縦横比
146
+ */
147
+ const clsLayoutChildRatio = "nws-layout-childRatio";
148
+ /**
149
+ * 子要素の横方向の数
150
+ */
151
+ const clsLayoutChildCountX = "nws-layout-childCountX";
152
+ /**
153
+ * 子要素の縦方向の数
154
+ */
155
+ const clsLayoutChildCountY = "nws-layout-childCountY";
156
+ /**
157
+ * 横方向のテンプレート
158
+ */
159
+ const clsLayoutTemplateX = "nws-layout-templateX";
160
+ /**
161
+ * 縦方向のテンプレート
162
+ */
163
+ const clsLayoutTemplateY = "nws-layout-templateY";
164
+ /**
165
+ * 変数\
166
+ * 間隔: 横方向
167
+ */
168
+ const varLayoutGapX = "--nws-layout-gapX";
169
+ /**
170
+ * 変数\
171
+ * 間隔: 縦方向
172
+ */
173
+ const varLayoutGapY = "--nws-layout-gapY";
174
+ /**
175
+ * 変数\
176
+ * 子要素の幅
177
+ */
178
+ const varLayoutChildSizeX = "--nws-layout-childSizeX";
179
+ /**
180
+ * 変数\
181
+ * 子要素の高さ
182
+ */
183
+ const varLayoutChildSizeY = "--nws-layout-childSizeY";
184
+ /**
185
+ * 変数\
186
+ * 子要素の縦横比
187
+ */
188
+ const varLayoutChildRatio = "--nws-layout-childRatio";
189
+ /**
190
+ * 変数\
191
+ * 子要素の横方向の数
192
+ */
193
+ const varLayoutChildCountX = "--nws-layout-childCountX";
194
+ /**
195
+ * 変数\
196
+ * 子要素の縦方向の数
197
+ */
198
+ const varLayoutChildCountY = "--nws-layout-childCountY";
199
+ /**
200
+ * 変数\
201
+ * 横方向のテンプレート
202
+ */
203
+ const varLayoutTemplateX = "--nws-layout-templateX";
204
+ /**
205
+ * 変数\
206
+ * 縦方向のテンプレート
207
+ */
208
+ const varLayoutTemplateY = "--nws-layout-templateY";
209
+ /**
6
210
  * axis毎のクラス
7
211
  */
8
212
  const clsLayout = {
9
213
  direction: {
10
- x: require_core_constants.clsLayoutDirectionX,
11
- y: require_core_constants.clsLayoutDirectionY
214
+ x: clsLayoutDirectionX,
215
+ y: clsLayoutDirectionY
12
216
  },
13
217
  align: {
14
218
  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
219
+ left: clsLayoutAlignXLeft,
220
+ center: clsLayoutAlignXCenter,
221
+ right: clsLayoutAlignXRight,
222
+ "space-between": clsLayoutAlignXSpaceBetween,
223
+ "space-around": clsLayoutAlignXSpaceAround,
224
+ "space-evenly": clsLayoutAlignXSpaceEvenly
21
225
  },
22
226
  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
227
+ top: clsLayoutAlignYTop,
228
+ middle: clsLayoutAlignYMiddle,
229
+ bottom: clsLayoutAlignYBottom,
230
+ "space-between": clsLayoutAlignYSpaceBetween,
231
+ "space-around": clsLayoutAlignYSpaceAround,
232
+ "space-evenly": clsLayoutAlignYSpaceEvenly
29
233
  }
30
234
  },
31
235
  adjust: {
32
236
  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
237
+ none: clsLayoutAdjustXNone,
238
+ fit: clsLayoutAdjustXFit,
239
+ grow: clsLayoutAdjustXExpand,
240
+ shrink: clsLayoutAdjustXShrink
37
241
  },
38
242
  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
243
+ none: clsLayoutAdjustYNone,
244
+ fit: clsLayoutAdjustYFit,
245
+ grow: clsLayoutAdjustYExpand,
246
+ shrink: clsLayoutAdjustYShrink
43
247
  }
44
248
  },
45
249
  childSize: {
46
- x: require_core_constants.clsLayoutChildSizeX,
47
- y: require_core_constants.clsLayoutChildSizeY
250
+ x: clsLayoutChildSizeX,
251
+ y: clsLayoutChildSizeY
48
252
  },
49
253
  template: {
50
- x: require_core_constants.clsLayoutTemplateX,
51
- y: require_core_constants.clsLayoutTemplateY
254
+ x: clsLayoutTemplateX,
255
+ y: clsLayoutTemplateY
52
256
  }
53
257
  };
54
258
  /**
@@ -56,19 +260,68 @@ const clsLayout = {
56
260
  */
57
261
  const varLayout = {
58
262
  childSize: {
59
- x: require_core_constants.varLayoutChildSizeX,
60
- y: require_core_constants.varLayoutChildSizeY
263
+ x: varLayoutChildSizeX,
264
+ y: varLayoutChildSizeY
61
265
  },
62
266
  template: {
63
- x: require_core_constants.varLayoutTemplateX,
64
- y: require_core_constants.varLayoutTemplateY
267
+ x: varLayoutTemplateX,
268
+ y: varLayoutTemplateY
65
269
  },
66
270
  gap: {
67
- x: require_core_constants.varLayoutGapX,
68
- y: require_core_constants.varLayoutGapY
271
+ x: varLayoutGapX,
272
+ y: varLayoutGapY
69
273
  }
70
274
  };
71
275
 
72
276
  //#endregion
73
277
  exports.clsLayout = clsLayout;
74
- exports.varLayout = varLayout;
278
+ exports.clsLayoutAdjustXExpand = clsLayoutAdjustXExpand;
279
+ exports.clsLayoutAdjustXFit = clsLayoutAdjustXFit;
280
+ exports.clsLayoutAdjustXNone = clsLayoutAdjustXNone;
281
+ exports.clsLayoutAdjustXShrink = clsLayoutAdjustXShrink;
282
+ exports.clsLayoutAdjustYExpand = clsLayoutAdjustYExpand;
283
+ exports.clsLayoutAdjustYFit = clsLayoutAdjustYFit;
284
+ exports.clsLayoutAdjustYNone = clsLayoutAdjustYNone;
285
+ exports.clsLayoutAdjustYShrink = clsLayoutAdjustYShrink;
286
+ exports.clsLayoutAlignXCenter = clsLayoutAlignXCenter;
287
+ exports.clsLayoutAlignXLeft = clsLayoutAlignXLeft;
288
+ exports.clsLayoutAlignXRight = clsLayoutAlignXRight;
289
+ exports.clsLayoutAlignXSpaceAround = clsLayoutAlignXSpaceAround;
290
+ exports.clsLayoutAlignXSpaceBetween = clsLayoutAlignXSpaceBetween;
291
+ exports.clsLayoutAlignXSpaceEvenly = clsLayoutAlignXSpaceEvenly;
292
+ exports.clsLayoutAlignYBottom = clsLayoutAlignYBottom;
293
+ exports.clsLayoutAlignYMiddle = clsLayoutAlignYMiddle;
294
+ exports.clsLayoutAlignYSpaceAround = clsLayoutAlignYSpaceAround;
295
+ exports.clsLayoutAlignYSpaceBetween = clsLayoutAlignYSpaceBetween;
296
+ exports.clsLayoutAlignYSpaceEvenly = clsLayoutAlignYSpaceEvenly;
297
+ exports.clsLayoutAlignYTop = clsLayoutAlignYTop;
298
+ exports.clsLayoutBalance = clsLayoutBalance;
299
+ exports.clsLayoutCenter = clsLayoutCenter;
300
+ exports.clsLayoutChildCountX = clsLayoutChildCountX;
301
+ exports.clsLayoutChildCountY = clsLayoutChildCountY;
302
+ exports.clsLayoutChildRatio = clsLayoutChildRatio;
303
+ exports.clsLayoutChildSizeX = clsLayoutChildSizeX;
304
+ exports.clsLayoutChildSizeY = clsLayoutChildSizeY;
305
+ exports.clsLayoutDirectionX = clsLayoutDirectionX;
306
+ exports.clsLayoutDirectionY = clsLayoutDirectionY;
307
+ exports.clsLayoutFlow = clsLayoutFlow;
308
+ exports.clsLayoutGapX = clsLayoutGapX;
309
+ exports.clsLayoutGapY = clsLayoutGapY;
310
+ exports.clsLayoutLayer = clsLayoutLayer;
311
+ exports.clsLayoutMatrix = clsLayoutMatrix;
312
+ exports.clsLayoutPack = clsLayoutPack;
313
+ exports.clsLayoutPin = clsLayoutPin;
314
+ exports.clsLayoutStack = clsLayoutStack;
315
+ exports.clsLayoutTemplateX = clsLayoutTemplateX;
316
+ exports.clsLayoutTemplateY = clsLayoutTemplateY;
317
+ exports.clsLayoutTile = clsLayoutTile;
318
+ exports.varLayout = varLayout;
319
+ exports.varLayoutChildCountX = varLayoutChildCountX;
320
+ exports.varLayoutChildCountY = varLayoutChildCountY;
321
+ exports.varLayoutChildRatio = varLayoutChildRatio;
322
+ exports.varLayoutChildSizeX = varLayoutChildSizeX;
323
+ exports.varLayoutChildSizeY = varLayoutChildSizeY;
324
+ exports.varLayoutGapX = varLayoutGapX;
325
+ exports.varLayoutGapY = varLayoutGapY;
326
+ exports.varLayoutTemplateX = varLayoutTemplateX;
327
+ exports.varLayoutTemplateY = varLayoutTemplateY;