@niche-works/style-layouts 0.3.0 → 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 (143) hide show
  1. package/README.ja.md +8 -8
  2. package/README.md +8 -8
  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 +38 -6
  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/center/styles.css +4 -26
  41. package/core/constants.cjs +4 -255
  42. package/core/constants.d.cts +4 -206
  43. package/core/constants.d.mts +4 -206
  44. package/core/constants.mjs +4 -206
  45. package/core/flow/flow.cjs +5 -7
  46. package/core/flow/flow.mjs +6 -7
  47. package/core/index.d.cts +2 -2
  48. package/core/index.d.mts +2 -2
  49. package/core/layer/layer.cjs +2 -4
  50. package/core/layer/layer.mjs +3 -4
  51. package/core/layer/styles.css +0 -4
  52. package/core/matrix/matrix.cjs +3 -4
  53. package/core/matrix/matrix.d.cts +1 -0
  54. package/core/matrix/matrix.d.mts +1 -0
  55. package/core/matrix/matrix.mjs +4 -4
  56. package/core/matrix/styles.css +0 -6
  57. package/core/pack/pack.cjs +2 -4
  58. package/core/pack/pack.mjs +3 -4
  59. package/core/pin/pin.cjs +2 -2
  60. package/core/pin/pin.mjs +1 -1
  61. package/core/stack/stack.cjs +12 -14
  62. package/core/stack/stack.d.cts +1 -1
  63. package/core/stack/stack.d.mts +1 -1
  64. package/core/stack/stack.mjs +13 -14
  65. package/core/stack/styles.css +0 -2
  66. package/core/styles.css +42 -44
  67. package/core/tile/tile.cjs +2 -4
  68. package/core/tile/tile.mjs +3 -4
  69. package/core/types.d.cts +7 -2
  70. package/core/types.d.mts +7 -2
  71. package/flow/index.cjs +6 -2
  72. package/flow/index.mjs +6 -2
  73. package/helpers/_internal/constants.cjs +25 -0
  74. package/helpers/_internal/constants.d.cts +13 -0
  75. package/helpers/_internal/constants.d.mts +13 -0
  76. package/helpers/_internal/constants.mjs +16 -0
  77. package/helpers/_internal/createExtractLayoutOptions.cjs +25 -0
  78. package/helpers/_internal/createExtractLayoutOptions.d.cts +8 -0
  79. package/helpers/_internal/createExtractLayoutOptions.d.mts +9 -0
  80. package/helpers/_internal/createExtractLayoutOptions.mjs +24 -0
  81. package/helpers/extractBalanceOptions.cjs +15 -0
  82. package/helpers/extractBalanceOptions.d.cts +5 -0
  83. package/helpers/extractBalanceOptions.d.mts +6 -0
  84. package/helpers/extractBalanceOptions.mjs +15 -0
  85. package/helpers/extractCenterOptions.cjs +14 -0
  86. package/helpers/extractCenterOptions.d.cts +6 -0
  87. package/helpers/extractCenterOptions.d.mts +7 -0
  88. package/helpers/extractCenterOptions.mjs +14 -0
  89. package/helpers/extractFlowOptions.cjs +15 -0
  90. package/helpers/extractFlowOptions.d.cts +6 -0
  91. package/helpers/extractFlowOptions.d.mts +7 -0
  92. package/helpers/extractFlowOptions.mjs +15 -0
  93. package/helpers/extractLayerOptions.cjs +13 -0
  94. package/helpers/extractLayerOptions.d.cts +6 -0
  95. package/helpers/extractLayerOptions.d.mts +7 -0
  96. package/helpers/extractLayerOptions.mjs +13 -0
  97. package/helpers/extractMatrixOptions.cjs +17 -0
  98. package/helpers/extractMatrixOptions.d.cts +5 -0
  99. package/helpers/extractMatrixOptions.d.mts +6 -0
  100. package/helpers/extractMatrixOptions.mjs +17 -0
  101. package/helpers/extractPackOptions.cjs +8 -0
  102. package/helpers/extractPackOptions.d.cts +6 -0
  103. package/helpers/extractPackOptions.d.mts +7 -0
  104. package/helpers/extractPackOptions.mjs +8 -0
  105. package/helpers/extractPinOptions.cjs +8 -0
  106. package/helpers/extractPinOptions.d.cts +6 -0
  107. package/helpers/extractPinOptions.d.mts +7 -0
  108. package/helpers/extractPinOptions.mjs +8 -0
  109. package/helpers/extractStackOptions.cjs +15 -0
  110. package/helpers/extractStackOptions.d.cts +6 -0
  111. package/helpers/extractStackOptions.d.mts +7 -0
  112. package/helpers/extractStackOptions.mjs +15 -0
  113. package/helpers/extractTileOptions.cjs +15 -0
  114. package/helpers/extractTileOptions.d.cts +6 -0
  115. package/helpers/extractTileOptions.d.mts +7 -0
  116. package/helpers/extractTileOptions.mjs +15 -0
  117. package/helpers/index.cjs +20 -0
  118. package/helpers/index.d.cts +10 -0
  119. package/helpers/index.d.mts +10 -0
  120. package/helpers/index.mjs +11 -0
  121. package/index.cjs +18 -18
  122. package/index.d.cts +2 -2
  123. package/index.d.mts +2 -2
  124. package/index.mjs +10 -10
  125. package/layer/index.cjs +6 -2
  126. package/layer/index.mjs +6 -2
  127. package/matrix/index.cjs +6 -2
  128. package/matrix/index.mjs +6 -2
  129. package/pack/index.cjs +6 -2
  130. package/pack/index.mjs +6 -2
  131. package/package.json +6 -4
  132. package/pin/index.cjs +6 -2
  133. package/pin/index.mjs +6 -2
  134. package/stack/index.cjs +6 -2
  135. package/stack/index.mjs +6 -2
  136. package/tile/index.cjs +6 -2
  137. package/tile/index.mjs +6 -2
  138. package/types.d.cts +2 -2
  139. package/types.d.mts +2 -2
  140. package/core/_internal/warnIfUnsupported.cjs +0 -15
  141. package/core/_internal/warnIfUnsupported.d.cts +0 -3
  142. package/core/_internal/warnIfUnsupported.d.mts +0 -4
  143. package/core/_internal/warnIfUnsupported.mjs +0 -14
@@ -1,4 +1,209 @@
1
1
  //#region src/core/_constants.d.ts
2
+ /**
3
+ * レイアウト種別: stack
4
+ */
5
+ declare const clsLayoutStack = "nws-layout-stack";
6
+ /**
7
+ * レイアウト種別: flow
8
+ */
9
+ declare const clsLayoutFlow = "nws-layout-flow";
10
+ /**
11
+ * レイアウト種別: tile
12
+ */
13
+ declare const clsLayoutTile = "nws-layout-tile";
14
+ /**
15
+ * レイアウト種別: matrix
16
+ */
17
+ declare const clsLayoutMatrix = "nws-layout-matrix";
18
+ /**
19
+ * レイアウト種別: center
20
+ */
21
+ declare const clsLayoutCenter = "nws-layout-center";
22
+ /**
23
+ * レイアウト種別: pack
24
+ */
25
+ declare const clsLayoutPack = "nws-layout-pack";
26
+ /**
27
+ * レイアウト種別: balance
28
+ */
29
+ declare const clsLayoutBalance = "nws-layout-balance";
30
+ /**
31
+ * レイアウト種別: layer
32
+ */
33
+ declare const clsLayoutLayer = "nws-layout-layer";
34
+ /**
35
+ * レイアウト種別: pin
36
+ */
37
+ declare const clsLayoutPin = "nws-layout-pin";
38
+ /**
39
+ * 整列: 横方向
40
+ */
41
+ declare const clsLayoutDirectionX = "nws-layout-direction-x";
42
+ /**
43
+ * 整列: 縦方向
44
+ */
45
+ declare const clsLayoutDirectionY = "nws-layout-direction-y";
46
+ /**
47
+ * 横位置: 左
48
+ */
49
+ declare const clsLayoutAlignXLeft = "nws-layout-alignX-left";
50
+ /**
51
+ * 横位置: 中央
52
+ */
53
+ declare const clsLayoutAlignXCenter = "nws-layout-alignX-center";
54
+ /**
55
+ * 横位置: 右
56
+ */
57
+ declare const clsLayoutAlignXRight = "nws-layout-alignX-right";
58
+ /**
59
+ * 横位置: 両端揃え
60
+ */
61
+ declare const clsLayoutAlignXSpaceBetween = "nws-layout-alignX-spaceBetween";
62
+ /**
63
+ * 横位置: 両端余白あり均等
64
+ */
65
+ declare const clsLayoutAlignXSpaceAround = "nws-layout-alignX-spaceAround";
66
+ /**
67
+ * 横位置: 完全均等
68
+ */
69
+ declare const clsLayoutAlignXSpaceEvenly = "nws-layout-alignX-spaceEvenly";
70
+ /**
71
+ * 縦位置: 上
72
+ */
73
+ declare const clsLayoutAlignYTop = "nws-layout-alignY-top";
74
+ /**
75
+ * 縦位置: 中央
76
+ */
77
+ declare const clsLayoutAlignYMiddle = "nws-layout-alignY-middle";
78
+ /**
79
+ * 縦位置: 下
80
+ */
81
+ declare const clsLayoutAlignYBottom = "nws-layout-alignY-bottom";
82
+ /**
83
+ * 縦位置: 両端揃え
84
+ */
85
+ declare const clsLayoutAlignYSpaceBetween = "nws-layout-alignY-spaceBetween";
86
+ /**
87
+ * 縦位置: 両端余白あり均等
88
+ */
89
+ declare const clsLayoutAlignYSpaceAround = "nws-layout-alignY-spaceAround";
90
+ /**
91
+ * 縦位置: 完全均等
92
+ */
93
+ declare const clsLayoutAlignYSpaceEvenly = "nws-layout-alignY-spaceEvenly";
94
+ /**
95
+ * 子要素の幅調整: なし
96
+ */
97
+ declare const clsLayoutAdjustXNone = "nws-layout-adjustX-none";
98
+ /**
99
+ * 子要素の幅調整: 伸ばす & 縮める
100
+ */
101
+ declare const clsLayoutAdjustXFit = "nws-layout-adjustX-fit";
102
+ /**
103
+ * 子要素の幅調整: 伸ばす
104
+ */
105
+ declare const clsLayoutAdjustXExpand = "nws-layout-adjustX-grow";
106
+ /**
107
+ * 子要素の幅調整: 縮める
108
+ */
109
+ declare const clsLayoutAdjustXShrink = "nws-layout-adjustX-shrink";
110
+ /**
111
+ * 子要素の高さ調整: なし
112
+ */
113
+ declare const clsLayoutAdjustYNone = "nws-layout-adjustY-none";
114
+ /**
115
+ * 子要素の高さ調整: 伸ばす & 縮める
116
+ */
117
+ declare const clsLayoutAdjustYFit = "nws-layout-adjustY-fit";
118
+ /**
119
+ * 子要素の高さ調整: 伸ばす
120
+ */
121
+ declare const clsLayoutAdjustYExpand = "nws-layout-adjustY-grow";
122
+ /**
123
+ * 子要素の高さ調整: 縮める
124
+ */
125
+ declare const clsLayoutAdjustYShrink = "nws-layout-adjustY-shrink";
126
+ /**
127
+ * 間隔: 横方向
128
+ */
129
+ declare const clsLayoutGapX = "nws-layout-gapX";
130
+ /**
131
+ * 間隔: 縦方向
132
+ */
133
+ declare const clsLayoutGapY = "nws-layout-gapY";
134
+ /**
135
+ * 子要素の幅
136
+ */
137
+ declare const clsLayoutChildSizeX = "nws-layout-childSizeX";
138
+ /**
139
+ * 子要素の高さ
140
+ */
141
+ declare const clsLayoutChildSizeY = "nws-layout-childSizeY";
142
+ /**
143
+ * 子要素の縦横比
144
+ */
145
+ declare const clsLayoutChildRatio = "nws-layout-childRatio";
146
+ /**
147
+ * 子要素の横方向の数
148
+ */
149
+ declare const clsLayoutChildCountX = "nws-layout-childCountX";
150
+ /**
151
+ * 子要素の縦方向の数
152
+ */
153
+ declare const clsLayoutChildCountY = "nws-layout-childCountY";
154
+ /**
155
+ * 横方向のテンプレート
156
+ */
157
+ declare const clsLayoutTemplateX = "nws-layout-templateX";
158
+ /**
159
+ * 縦方向のテンプレート
160
+ */
161
+ declare const clsLayoutTemplateY = "nws-layout-templateY";
162
+ /**
163
+ * 変数\
164
+ * 間隔: 横方向
165
+ */
166
+ declare const varLayoutGapX = "--nws-layout-gapX";
167
+ /**
168
+ * 変数\
169
+ * 間隔: 縦方向
170
+ */
171
+ declare const varLayoutGapY = "--nws-layout-gapY";
172
+ /**
173
+ * 変数\
174
+ * 子要素の幅
175
+ */
176
+ declare const varLayoutChildSizeX = "--nws-layout-childSizeX";
177
+ /**
178
+ * 変数\
179
+ * 子要素の高さ
180
+ */
181
+ declare const varLayoutChildSizeY = "--nws-layout-childSizeY";
182
+ /**
183
+ * 変数\
184
+ * 子要素の縦横比
185
+ */
186
+ declare const varLayoutChildRatio = "--nws-layout-childRatio";
187
+ /**
188
+ * 変数\
189
+ * 子要素の横方向の数
190
+ */
191
+ declare const varLayoutChildCountX = "--nws-layout-childCountX";
192
+ /**
193
+ * 変数\
194
+ * 子要素の縦方向の数
195
+ */
196
+ declare const varLayoutChildCountY = "--nws-layout-childCountY";
197
+ /**
198
+ * 変数\
199
+ * 横方向のテンプレート
200
+ */
201
+ declare const varLayoutTemplateX = "--nws-layout-templateX";
202
+ /**
203
+ * 変数\
204
+ * 縦方向のテンプレート
205
+ */
206
+ declare const varLayoutTemplateY = "--nws-layout-templateY";
2
207
  /**
3
208
  * axis毎のクラス
4
209
  */
@@ -66,4 +271,4 @@ declare const varLayout: {
66
271
  };
67
272
  };
68
273
  //#endregion
69
- export { clsLayout, varLayout };
274
+ export { clsLayout, 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, varLayout, varLayoutChildCountX, varLayoutChildCountY, varLayoutChildRatio, varLayoutChildSizeX, varLayoutChildSizeY, varLayoutGapX, varLayoutGapY, varLayoutTemplateX, varLayoutTemplateY };
@@ -1,4 +1,209 @@
1
1
  //#region src/core/_constants.d.ts
2
+ /**
3
+ * レイアウト種別: stack
4
+ */
5
+ declare const clsLayoutStack = "nws-layout-stack";
6
+ /**
7
+ * レイアウト種別: flow
8
+ */
9
+ declare const clsLayoutFlow = "nws-layout-flow";
10
+ /**
11
+ * レイアウト種別: tile
12
+ */
13
+ declare const clsLayoutTile = "nws-layout-tile";
14
+ /**
15
+ * レイアウト種別: matrix
16
+ */
17
+ declare const clsLayoutMatrix = "nws-layout-matrix";
18
+ /**
19
+ * レイアウト種別: center
20
+ */
21
+ declare const clsLayoutCenter = "nws-layout-center";
22
+ /**
23
+ * レイアウト種別: pack
24
+ */
25
+ declare const clsLayoutPack = "nws-layout-pack";
26
+ /**
27
+ * レイアウト種別: balance
28
+ */
29
+ declare const clsLayoutBalance = "nws-layout-balance";
30
+ /**
31
+ * レイアウト種別: layer
32
+ */
33
+ declare const clsLayoutLayer = "nws-layout-layer";
34
+ /**
35
+ * レイアウト種別: pin
36
+ */
37
+ declare const clsLayoutPin = "nws-layout-pin";
38
+ /**
39
+ * 整列: 横方向
40
+ */
41
+ declare const clsLayoutDirectionX = "nws-layout-direction-x";
42
+ /**
43
+ * 整列: 縦方向
44
+ */
45
+ declare const clsLayoutDirectionY = "nws-layout-direction-y";
46
+ /**
47
+ * 横位置: 左
48
+ */
49
+ declare const clsLayoutAlignXLeft = "nws-layout-alignX-left";
50
+ /**
51
+ * 横位置: 中央
52
+ */
53
+ declare const clsLayoutAlignXCenter = "nws-layout-alignX-center";
54
+ /**
55
+ * 横位置: 右
56
+ */
57
+ declare const clsLayoutAlignXRight = "nws-layout-alignX-right";
58
+ /**
59
+ * 横位置: 両端揃え
60
+ */
61
+ declare const clsLayoutAlignXSpaceBetween = "nws-layout-alignX-spaceBetween";
62
+ /**
63
+ * 横位置: 両端余白あり均等
64
+ */
65
+ declare const clsLayoutAlignXSpaceAround = "nws-layout-alignX-spaceAround";
66
+ /**
67
+ * 横位置: 完全均等
68
+ */
69
+ declare const clsLayoutAlignXSpaceEvenly = "nws-layout-alignX-spaceEvenly";
70
+ /**
71
+ * 縦位置: 上
72
+ */
73
+ declare const clsLayoutAlignYTop = "nws-layout-alignY-top";
74
+ /**
75
+ * 縦位置: 中央
76
+ */
77
+ declare const clsLayoutAlignYMiddle = "nws-layout-alignY-middle";
78
+ /**
79
+ * 縦位置: 下
80
+ */
81
+ declare const clsLayoutAlignYBottom = "nws-layout-alignY-bottom";
82
+ /**
83
+ * 縦位置: 両端揃え
84
+ */
85
+ declare const clsLayoutAlignYSpaceBetween = "nws-layout-alignY-spaceBetween";
86
+ /**
87
+ * 縦位置: 両端余白あり均等
88
+ */
89
+ declare const clsLayoutAlignYSpaceAround = "nws-layout-alignY-spaceAround";
90
+ /**
91
+ * 縦位置: 完全均等
92
+ */
93
+ declare const clsLayoutAlignYSpaceEvenly = "nws-layout-alignY-spaceEvenly";
94
+ /**
95
+ * 子要素の幅調整: なし
96
+ */
97
+ declare const clsLayoutAdjustXNone = "nws-layout-adjustX-none";
98
+ /**
99
+ * 子要素の幅調整: 伸ばす & 縮める
100
+ */
101
+ declare const clsLayoutAdjustXFit = "nws-layout-adjustX-fit";
102
+ /**
103
+ * 子要素の幅調整: 伸ばす
104
+ */
105
+ declare const clsLayoutAdjustXExpand = "nws-layout-adjustX-grow";
106
+ /**
107
+ * 子要素の幅調整: 縮める
108
+ */
109
+ declare const clsLayoutAdjustXShrink = "nws-layout-adjustX-shrink";
110
+ /**
111
+ * 子要素の高さ調整: なし
112
+ */
113
+ declare const clsLayoutAdjustYNone = "nws-layout-adjustY-none";
114
+ /**
115
+ * 子要素の高さ調整: 伸ばす & 縮める
116
+ */
117
+ declare const clsLayoutAdjustYFit = "nws-layout-adjustY-fit";
118
+ /**
119
+ * 子要素の高さ調整: 伸ばす
120
+ */
121
+ declare const clsLayoutAdjustYExpand = "nws-layout-adjustY-grow";
122
+ /**
123
+ * 子要素の高さ調整: 縮める
124
+ */
125
+ declare const clsLayoutAdjustYShrink = "nws-layout-adjustY-shrink";
126
+ /**
127
+ * 間隔: 横方向
128
+ */
129
+ declare const clsLayoutGapX = "nws-layout-gapX";
130
+ /**
131
+ * 間隔: 縦方向
132
+ */
133
+ declare const clsLayoutGapY = "nws-layout-gapY";
134
+ /**
135
+ * 子要素の幅
136
+ */
137
+ declare const clsLayoutChildSizeX = "nws-layout-childSizeX";
138
+ /**
139
+ * 子要素の高さ
140
+ */
141
+ declare const clsLayoutChildSizeY = "nws-layout-childSizeY";
142
+ /**
143
+ * 子要素の縦横比
144
+ */
145
+ declare const clsLayoutChildRatio = "nws-layout-childRatio";
146
+ /**
147
+ * 子要素の横方向の数
148
+ */
149
+ declare const clsLayoutChildCountX = "nws-layout-childCountX";
150
+ /**
151
+ * 子要素の縦方向の数
152
+ */
153
+ declare const clsLayoutChildCountY = "nws-layout-childCountY";
154
+ /**
155
+ * 横方向のテンプレート
156
+ */
157
+ declare const clsLayoutTemplateX = "nws-layout-templateX";
158
+ /**
159
+ * 縦方向のテンプレート
160
+ */
161
+ declare const clsLayoutTemplateY = "nws-layout-templateY";
162
+ /**
163
+ * 変数\
164
+ * 間隔: 横方向
165
+ */
166
+ declare const varLayoutGapX = "--nws-layout-gapX";
167
+ /**
168
+ * 変数\
169
+ * 間隔: 縦方向
170
+ */
171
+ declare const varLayoutGapY = "--nws-layout-gapY";
172
+ /**
173
+ * 変数\
174
+ * 子要素の幅
175
+ */
176
+ declare const varLayoutChildSizeX = "--nws-layout-childSizeX";
177
+ /**
178
+ * 変数\
179
+ * 子要素の高さ
180
+ */
181
+ declare const varLayoutChildSizeY = "--nws-layout-childSizeY";
182
+ /**
183
+ * 変数\
184
+ * 子要素の縦横比
185
+ */
186
+ declare const varLayoutChildRatio = "--nws-layout-childRatio";
187
+ /**
188
+ * 変数\
189
+ * 子要素の横方向の数
190
+ */
191
+ declare const varLayoutChildCountX = "--nws-layout-childCountX";
192
+ /**
193
+ * 変数\
194
+ * 子要素の縦方向の数
195
+ */
196
+ declare const varLayoutChildCountY = "--nws-layout-childCountY";
197
+ /**
198
+ * 変数\
199
+ * 横方向のテンプレート
200
+ */
201
+ declare const varLayoutTemplateX = "--nws-layout-templateX";
202
+ /**
203
+ * 変数\
204
+ * 縦方向のテンプレート
205
+ */
206
+ declare const varLayoutTemplateY = "--nws-layout-templateY";
2
207
  /**
3
208
  * axis毎のクラス
4
209
  */
@@ -66,4 +271,4 @@ declare const varLayout: {
66
271
  };
67
272
  };
68
273
  //#endregion
69
- export { clsLayout, varLayout };
274
+ export { clsLayout, 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, varLayout, varLayoutChildCountX, varLayoutChildCountY, varLayoutChildRatio, varLayoutChildSizeX, varLayoutChildSizeY, varLayoutGapX, varLayoutGapY, varLayoutTemplateX, varLayoutTemplateY };
@@ -1,7 +1,210 @@
1
- import { clsLayoutAdjustXExpand, clsLayoutAdjustXFit, clsLayoutAdjustXNone, clsLayoutAdjustXShrink, clsLayoutAdjustYExpand, clsLayoutAdjustYFit, clsLayoutAdjustYNone, clsLayoutAdjustYShrink, clsLayoutAlignXCenter, clsLayoutAlignXLeft, clsLayoutAlignXRight, clsLayoutAlignXSpaceAround, clsLayoutAlignXSpaceBetween, clsLayoutAlignXSpaceEvenly, clsLayoutAlignYBottom, clsLayoutAlignYMiddle, clsLayoutAlignYSpaceAround, clsLayoutAlignYSpaceBetween, clsLayoutAlignYSpaceEvenly, clsLayoutAlignYTop, clsLayoutChildSizeX, clsLayoutChildSizeY, clsLayoutDirectionX, clsLayoutDirectionY, clsLayoutTemplateX, clsLayoutTemplateY, varLayoutChildSizeX, varLayoutChildSizeY, varLayoutGapX, varLayoutGapY, varLayoutTemplateX, varLayoutTemplateY } from "./constants.mjs";
2
-
3
1
  //#region src/core/_constants.ts
4
2
  /**
3
+ * レイアウト種別: stack
4
+ */
5
+ const clsLayoutStack = "nws-layout-stack";
6
+ /**
7
+ * レイアウト種別: flow
8
+ */
9
+ const clsLayoutFlow = "nws-layout-flow";
10
+ /**
11
+ * レイアウト種別: tile
12
+ */
13
+ const clsLayoutTile = "nws-layout-tile";
14
+ /**
15
+ * レイアウト種別: matrix
16
+ */
17
+ const clsLayoutMatrix = "nws-layout-matrix";
18
+ /**
19
+ * レイアウト種別: center
20
+ */
21
+ const clsLayoutCenter = "nws-layout-center";
22
+ /**
23
+ * レイアウト種別: pack
24
+ */
25
+ const clsLayoutPack = "nws-layout-pack";
26
+ /**
27
+ * レイアウト種別: balance
28
+ */
29
+ const clsLayoutBalance = "nws-layout-balance";
30
+ /**
31
+ * レイアウト種別: layer
32
+ */
33
+ const clsLayoutLayer = "nws-layout-layer";
34
+ /**
35
+ * レイアウト種別: pin
36
+ */
37
+ const clsLayoutPin = "nws-layout-pin";
38
+ /**
39
+ * 整列: 横方向
40
+ */
41
+ const clsLayoutDirectionX = "nws-layout-direction-x";
42
+ /**
43
+ * 整列: 縦方向
44
+ */
45
+ const clsLayoutDirectionY = "nws-layout-direction-y";
46
+ /**
47
+ * 横位置: 左
48
+ */
49
+ const clsLayoutAlignXLeft = "nws-layout-alignX-left";
50
+ /**
51
+ * 横位置: 中央
52
+ */
53
+ const clsLayoutAlignXCenter = "nws-layout-alignX-center";
54
+ /**
55
+ * 横位置: 右
56
+ */
57
+ const clsLayoutAlignXRight = "nws-layout-alignX-right";
58
+ /**
59
+ * 横位置: 両端揃え
60
+ */
61
+ const clsLayoutAlignXSpaceBetween = "nws-layout-alignX-spaceBetween";
62
+ /**
63
+ * 横位置: 両端余白あり均等
64
+ */
65
+ const clsLayoutAlignXSpaceAround = "nws-layout-alignX-spaceAround";
66
+ /**
67
+ * 横位置: 完全均等
68
+ */
69
+ const clsLayoutAlignXSpaceEvenly = "nws-layout-alignX-spaceEvenly";
70
+ /**
71
+ * 縦位置: 上
72
+ */
73
+ const clsLayoutAlignYTop = "nws-layout-alignY-top";
74
+ /**
75
+ * 縦位置: 中央
76
+ */
77
+ const clsLayoutAlignYMiddle = "nws-layout-alignY-middle";
78
+ /**
79
+ * 縦位置: 下
80
+ */
81
+ const clsLayoutAlignYBottom = "nws-layout-alignY-bottom";
82
+ /**
83
+ * 縦位置: 両端揃え
84
+ */
85
+ const clsLayoutAlignYSpaceBetween = "nws-layout-alignY-spaceBetween";
86
+ /**
87
+ * 縦位置: 両端余白あり均等
88
+ */
89
+ const clsLayoutAlignYSpaceAround = "nws-layout-alignY-spaceAround";
90
+ /**
91
+ * 縦位置: 完全均等
92
+ */
93
+ const clsLayoutAlignYSpaceEvenly = "nws-layout-alignY-spaceEvenly";
94
+ /**
95
+ * 子要素の幅調整: なし
96
+ */
97
+ const clsLayoutAdjustXNone = "nws-layout-adjustX-none";
98
+ /**
99
+ * 子要素の幅調整: 伸ばす & 縮める
100
+ */
101
+ const clsLayoutAdjustXFit = "nws-layout-adjustX-fit";
102
+ /**
103
+ * 子要素の幅調整: 伸ばす
104
+ */
105
+ const clsLayoutAdjustXExpand = "nws-layout-adjustX-grow";
106
+ /**
107
+ * 子要素の幅調整: 縮める
108
+ */
109
+ const clsLayoutAdjustXShrink = "nws-layout-adjustX-shrink";
110
+ /**
111
+ * 子要素の高さ調整: なし
112
+ */
113
+ const clsLayoutAdjustYNone = "nws-layout-adjustY-none";
114
+ /**
115
+ * 子要素の高さ調整: 伸ばす & 縮める
116
+ */
117
+ const clsLayoutAdjustYFit = "nws-layout-adjustY-fit";
118
+ /**
119
+ * 子要素の高さ調整: 伸ばす
120
+ */
121
+ const clsLayoutAdjustYExpand = "nws-layout-adjustY-grow";
122
+ /**
123
+ * 子要素の高さ調整: 縮める
124
+ */
125
+ const clsLayoutAdjustYShrink = "nws-layout-adjustY-shrink";
126
+ /**
127
+ * 間隔: 横方向
128
+ */
129
+ const clsLayoutGapX = "nws-layout-gapX";
130
+ /**
131
+ * 間隔: 縦方向
132
+ */
133
+ const clsLayoutGapY = "nws-layout-gapY";
134
+ /**
135
+ * 子要素の幅
136
+ */
137
+ const clsLayoutChildSizeX = "nws-layout-childSizeX";
138
+ /**
139
+ * 子要素の高さ
140
+ */
141
+ const clsLayoutChildSizeY = "nws-layout-childSizeY";
142
+ /**
143
+ * 子要素の縦横比
144
+ */
145
+ const clsLayoutChildRatio = "nws-layout-childRatio";
146
+ /**
147
+ * 子要素の横方向の数
148
+ */
149
+ const clsLayoutChildCountX = "nws-layout-childCountX";
150
+ /**
151
+ * 子要素の縦方向の数
152
+ */
153
+ const clsLayoutChildCountY = "nws-layout-childCountY";
154
+ /**
155
+ * 横方向のテンプレート
156
+ */
157
+ const clsLayoutTemplateX = "nws-layout-templateX";
158
+ /**
159
+ * 縦方向のテンプレート
160
+ */
161
+ const clsLayoutTemplateY = "nws-layout-templateY";
162
+ /**
163
+ * 変数\
164
+ * 間隔: 横方向
165
+ */
166
+ const varLayoutGapX = "--nws-layout-gapX";
167
+ /**
168
+ * 変数\
169
+ * 間隔: 縦方向
170
+ */
171
+ const varLayoutGapY = "--nws-layout-gapY";
172
+ /**
173
+ * 変数\
174
+ * 子要素の幅
175
+ */
176
+ const varLayoutChildSizeX = "--nws-layout-childSizeX";
177
+ /**
178
+ * 変数\
179
+ * 子要素の高さ
180
+ */
181
+ const varLayoutChildSizeY = "--nws-layout-childSizeY";
182
+ /**
183
+ * 変数\
184
+ * 子要素の縦横比
185
+ */
186
+ const varLayoutChildRatio = "--nws-layout-childRatio";
187
+ /**
188
+ * 変数\
189
+ * 子要素の横方向の数
190
+ */
191
+ const varLayoutChildCountX = "--nws-layout-childCountX";
192
+ /**
193
+ * 変数\
194
+ * 子要素の縦方向の数
195
+ */
196
+ const varLayoutChildCountY = "--nws-layout-childCountY";
197
+ /**
198
+ * 変数\
199
+ * 横方向のテンプレート
200
+ */
201
+ const varLayoutTemplateX = "--nws-layout-templateX";
202
+ /**
203
+ * 変数\
204
+ * 縦方向のテンプレート
205
+ */
206
+ const varLayoutTemplateY = "--nws-layout-templateY";
207
+ /**
5
208
  * axis毎のクラス
6
209
  */
7
210
  const clsLayout = {
@@ -69,4 +272,4 @@ const varLayout = {
69
272
  };
70
273
 
71
274
  //#endregion
72
- export { clsLayout, varLayout };
275
+ export { clsLayout, 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, varLayout, varLayoutChildCountX, varLayoutChildCountY, varLayoutChildRatio, varLayoutChildSizeX, varLayoutChildSizeY, varLayoutGapX, varLayoutGapY, varLayoutTemplateX, varLayoutTemplateY };
@@ -1,8 +1,6 @@
1
- const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
2
- const require_core_constants = require('../constants.cjs');
1
+ const require_core__constants = require('../_constants.cjs');
3
2
  const require_core__internal_hasValue = require('./hasValue.cjs');
4
- let clsx = require("clsx");
5
- clsx = require_runtime.__toESM(clsx, 1);
3
+ const require_core__internal_mergeClassName = require('./mergeClassName.cjs');
6
4
 
7
5
  //#region src/core/_internal/applyChildCount.ts
8
6
  /**
@@ -13,12 +11,12 @@ clsx = require_runtime.__toESM(clsx, 1);
13
11
  */
14
12
  function applyChildCount(result, childCountX, childCountY) {
15
13
  if (require_core__internal_hasValue(childCountX)) {
16
- result.className = (0, clsx.default)(result.className, require_core_constants.clsLayoutChildCountX);
17
- result.style[require_core_constants.varLayoutChildCountX] = childCountX;
14
+ result.className = require_core__internal_mergeClassName(result.className, require_core__constants.clsLayoutChildCountX);
15
+ result.style[require_core__constants.varLayoutChildCountX] = `${childCountX}`;
18
16
  }
19
17
  if (require_core__internal_hasValue(childCountY)) {
20
- result.className = (0, clsx.default)(result.className, require_core_constants.clsLayoutChildCountY);
21
- result.style[require_core_constants.varLayoutChildCountY] = childCountY;
18
+ result.className = require_core__internal_mergeClassName(result.className, require_core__constants.clsLayoutChildCountY);
19
+ result.style[require_core__constants.varLayoutChildCountY] = `${childCountY}`;
22
20
  }
23
21
  }
24
22
 
@@ -1,6 +1,6 @@
1
- import { clsLayoutChildCountX, clsLayoutChildCountY, varLayoutChildCountX, varLayoutChildCountY } from "../constants.mjs";
1
+ import { clsLayoutChildCountX, clsLayoutChildCountY, varLayoutChildCountX, varLayoutChildCountY } from "../_constants.mjs";
2
2
  import hasValue from "./hasValue.mjs";
3
- import clsx from "clsx";
3
+ import mergeClassName from "./mergeClassName.mjs";
4
4
 
5
5
  //#region src/core/_internal/applyChildCount.ts
6
6
  /**
@@ -11,12 +11,12 @@ import clsx from "clsx";
11
11
  */
12
12
  function applyChildCount(result, childCountX, childCountY) {
13
13
  if (hasValue(childCountX)) {
14
- result.className = clsx(result.className, clsLayoutChildCountX);
15
- result.style[varLayoutChildCountX] = childCountX;
14
+ result.className = mergeClassName(result.className, clsLayoutChildCountX);
15
+ result.style[varLayoutChildCountX] = `${childCountX}`;
16
16
  }
17
17
  if (hasValue(childCountY)) {
18
- result.className = clsx(result.className, clsLayoutChildCountY);
19
- result.style[varLayoutChildCountY] = childCountY;
18
+ result.className = mergeClassName(result.className, clsLayoutChildCountY);
19
+ result.style[varLayoutChildCountY] = `${childCountY}`;
20
20
  }
21
21
  }
22
22