@niche-works/css-layouts 0.1.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.
- package/LICENSE +21 -0
- package/README.md +3 -0
- package/_constants.cjs +94 -0
- package/_constants.d.cts +83 -0
- package/_constants.d.mts +83 -0
- package/_constants.mjs +86 -0
- package/_helpers/applyChildCount.cjs +26 -0
- package/_helpers/applyChildCount.d.cts +12 -0
- package/_helpers/applyChildCount.d.mts +13 -0
- package/_helpers/applyChildCount.mjs +24 -0
- package/_helpers/applyChildSize.cjs +27 -0
- package/_helpers/applyChildSize.d.cts +12 -0
- package/_helpers/applyChildSize.d.mts +13 -0
- package/_helpers/applyChildSize.mjs +25 -0
- package/_helpers/applySpacing.cjs +30 -0
- package/_helpers/applySpacing.d.cts +13 -0
- package/_helpers/applySpacing.d.mts +14 -0
- package/_helpers/applySpacing.mjs +28 -0
- package/_helpers/hasValue.cjs +15 -0
- package/_helpers/hasValue.d.cts +8 -0
- package/_helpers/hasValue.d.mts +9 -0
- package/_helpers/hasValue.mjs +14 -0
- package/_helpers/mergeLayoutResults.cjs +18 -0
- package/_helpers/mergeLayoutResults.d.cts +5 -0
- package/_helpers/mergeLayoutResults.d.mts +6 -0
- package/_helpers/mergeLayoutResults.mjs +16 -0
- package/_helpers/unit.cjs +16 -0
- package/_helpers/unit.d.cts +10 -0
- package/_helpers/unit.d.mts +11 -0
- package/_helpers/unit.mjs +15 -0
- package/_types.cjs +0 -0
- package/_types.d.cts +118 -0
- package/_types.d.mts +118 -0
- package/_types.mjs +1 -0
- package/_virtual/_rolldown/runtime.cjs +29 -0
- package/balance/balance.cjs +34 -0
- package/balance/balance.d.cts +11 -0
- package/balance/balance.d.mts +12 -0
- package/balance/balance.mjs +31 -0
- package/balance/index.cjs +3 -0
- package/balance/index.d.cts +3 -0
- package/balance/index.d.mts +3 -0
- package/balance/index.mjs +3 -0
- package/balance/styles.css +109 -0
- package/balance/types.cjs +0 -0
- package/balance/types.d.cts +6 -0
- package/balance/types.d.mts +6 -0
- package/balance/types.mjs +1 -0
- package/constants.cjs +341 -0
- package/constants.d.cts +299 -0
- package/constants.d.mts +299 -0
- package/constants.mjs +288 -0
- package/flow/flow.cjs +70 -0
- package/flow/flow.d.cts +12 -0
- package/flow/flow.d.mts +13 -0
- package/flow/flow.mjs +67 -0
- package/flow/index.cjs +3 -0
- package/flow/index.d.cts +3 -0
- package/flow/index.d.mts +3 -0
- package/flow/index.mjs +3 -0
- package/flow/styles.css +162 -0
- package/flow/types.cjs +0 -0
- package/flow/types.d.cts +21 -0
- package/flow/types.d.mts +21 -0
- package/flow/types.mjs +1 -0
- package/index.cjs +23 -0
- package/index.d.cts +16 -0
- package/index.d.mts +16 -0
- package/index.mjs +16 -0
- package/matrix/index.cjs +3 -0
- package/matrix/index.d.cts +3 -0
- package/matrix/index.d.mts +3 -0
- package/matrix/index.mjs +3 -0
- package/matrix/matrix.cjs +109 -0
- package/matrix/matrix.d.cts +11 -0
- package/matrix/matrix.d.mts +12 -0
- package/matrix/matrix.mjs +106 -0
- package/matrix/styles.css +59 -0
- package/matrix/types.cjs +0 -0
- package/matrix/types.d.cts +46 -0
- package/matrix/types.d.mts +46 -0
- package/matrix/types.mjs +1 -0
- package/pack/index.cjs +3 -0
- package/pack/index.d.cts +3 -0
- package/pack/index.d.mts +3 -0
- package/pack/index.mjs +3 -0
- package/pack/pack.cjs +28 -0
- package/pack/pack.d.cts +11 -0
- package/pack/pack.d.mts +12 -0
- package/pack/pack.mjs +25 -0
- package/pack/styles.css +27 -0
- package/pack/types.cjs +0 -0
- package/pack/types.d.cts +6 -0
- package/pack/types.d.mts +6 -0
- package/pack/types.mjs +1 -0
- package/package.json +45 -0
- package/pin/index.cjs +3 -0
- package/pin/index.d.cts +3 -0
- package/pin/index.d.mts +3 -0
- package/pin/index.mjs +3 -0
- package/pin/pin.cjs +22 -0
- package/pin/pin.d.cts +11 -0
- package/pin/pin.d.mts +12 -0
- package/pin/pin.mjs +22 -0
- package/pin/styles.css +15 -0
- package/pin/types.cjs +0 -0
- package/pin/types.d.cts +6 -0
- package/pin/types.d.mts +6 -0
- package/pin/types.mjs +1 -0
- package/stack/index.cjs +3 -0
- package/stack/index.d.cts +3 -0
- package/stack/index.d.mts +3 -0
- package/stack/index.mjs +3 -0
- package/stack/stack.cjs +98 -0
- package/stack/stack.d.cts +11 -0
- package/stack/stack.d.mts +12 -0
- package/stack/stack.mjs +95 -0
- package/stack/styles.css +171 -0
- package/stack/types.cjs +0 -0
- package/stack/types.d.cts +21 -0
- package/stack/types.d.mts +21 -0
- package/stack/types.mjs +1 -0
- package/tile/index.cjs +3 -0
- package/tile/index.d.cts +3 -0
- package/tile/index.d.mts +3 -0
- package/tile/index.mjs +3 -0
- package/tile/styles.css +104 -0
- package/tile/tile.cjs +85 -0
- package/tile/tile.d.cts +12 -0
- package/tile/tile.d.mts +13 -0
- package/tile/tile.mjs +82 -0
- package/tile/types.cjs +0 -0
- package/tile/types.d.cts +9 -0
- package/tile/types.d.mts +9 -0
- package/tile/types.mjs +1 -0
- package/types.cjs +0 -0
- package/types.d.cts +23 -0
- package/types.d.mts +23 -0
- package/types.mjs +1 -0
package/constants.cjs
ADDED
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
|
|
3
|
+
//#region src/constants.ts
|
|
4
|
+
/**
|
|
5
|
+
* 整列方向
|
|
6
|
+
*/
|
|
7
|
+
const Direction = {
|
|
8
|
+
x: "x",
|
|
9
|
+
y: "y"
|
|
10
|
+
};
|
|
11
|
+
const AlignBetween = {
|
|
12
|
+
"space-between": "space-between",
|
|
13
|
+
"space-around": "space-around",
|
|
14
|
+
"space-evenly": "space-evenly"
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* 横位置
|
|
18
|
+
*
|
|
19
|
+
* - left: 左
|
|
20
|
+
* - center: 中央
|
|
21
|
+
* - right: 右
|
|
22
|
+
*/
|
|
23
|
+
const AlignXBase = {
|
|
24
|
+
left: "left",
|
|
25
|
+
center: "center",
|
|
26
|
+
right: "right"
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* 横位置
|
|
30
|
+
*
|
|
31
|
+
* - left: 左
|
|
32
|
+
* - center: 中央
|
|
33
|
+
* - right: 右
|
|
34
|
+
* - space-between: 両端揃え
|
|
35
|
+
* - space-around: 両端余白あり均等
|
|
36
|
+
* - space-evenly: 完全均等
|
|
37
|
+
*/
|
|
38
|
+
const AlignX = {
|
|
39
|
+
...AlignXBase,
|
|
40
|
+
...AlignBetween
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* 縦位置
|
|
44
|
+
*
|
|
45
|
+
* - top: 上
|
|
46
|
+
* - middle: 中央
|
|
47
|
+
* - bottom: 下
|
|
48
|
+
*/
|
|
49
|
+
const AlignYBase = {
|
|
50
|
+
top: "top",
|
|
51
|
+
middle: "middle",
|
|
52
|
+
bottom: "bottom"
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* 縦位置(items用)
|
|
56
|
+
*
|
|
57
|
+
* - top: 上
|
|
58
|
+
* - middle: 中央
|
|
59
|
+
* - bottom: 下
|
|
60
|
+
* - space-between: 両端揃え
|
|
61
|
+
* - space-around: 両端余白あり均等
|
|
62
|
+
* - space-evenly: 完全均等
|
|
63
|
+
*/
|
|
64
|
+
const AlignY = {
|
|
65
|
+
...AlignYBase,
|
|
66
|
+
...AlignBetween
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* 親要素のサイズを基準にした子要素のサイズ調整
|
|
70
|
+
*
|
|
71
|
+
* - `none`
|
|
72
|
+
* - 親のサイズに足りないとき: そのまま
|
|
73
|
+
* - 親のサイズを超えるとき: そのまま
|
|
74
|
+
*/
|
|
75
|
+
const AdjustBase = { none: "none" };
|
|
76
|
+
/**
|
|
77
|
+
* 親要素のサイズを基準にした子要素のサイズ調整
|
|
78
|
+
*
|
|
79
|
+
* - `none`
|
|
80
|
+
* - 親のサイズに足りないとき: そのまま
|
|
81
|
+
* - 親のサイズを超えるとき: そのまま
|
|
82
|
+
* - `fit`
|
|
83
|
+
* - 親のサイズに足りないとき: 伸ばす
|
|
84
|
+
* - 親のサイズを超えるとき: 縮める
|
|
85
|
+
* - `grow`
|
|
86
|
+
* - 親のサイズに足りないとき: 伸ばす
|
|
87
|
+
* - 親のサイズを超えるとき: そのまま
|
|
88
|
+
* - `shrink`
|
|
89
|
+
* - 親のサイズに足りないとき: そのまま
|
|
90
|
+
* - 親のサイズを超えるとき: 縮める
|
|
91
|
+
*/
|
|
92
|
+
const Adjust = {
|
|
93
|
+
...AdjustBase,
|
|
94
|
+
fit: "fit",
|
|
95
|
+
grow: "grow",
|
|
96
|
+
shrink: "shrink"
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* レイアウト種別: balance
|
|
100
|
+
*/
|
|
101
|
+
const clsLayoutBalance = "nws-layout-balance";
|
|
102
|
+
/**
|
|
103
|
+
* レイアウト種別: flow
|
|
104
|
+
*/
|
|
105
|
+
const clsLayoutFlow = "nws-layout-flow";
|
|
106
|
+
/**
|
|
107
|
+
* レイアウト種別: matrix
|
|
108
|
+
*/
|
|
109
|
+
const clsLayoutMatrix = "nws-layout-matrix";
|
|
110
|
+
/**
|
|
111
|
+
* レイアウト種別: pack
|
|
112
|
+
*/
|
|
113
|
+
const clsLayoutPack = "nws-layout-pack";
|
|
114
|
+
/**
|
|
115
|
+
* レイアウト種別: pin
|
|
116
|
+
*/
|
|
117
|
+
const clsLayoutPin = "nws-layout-pin";
|
|
118
|
+
/**
|
|
119
|
+
* レイアウト種別: stack
|
|
120
|
+
*/
|
|
121
|
+
const clsLayoutStack = "nws-layout-stack";
|
|
122
|
+
/**
|
|
123
|
+
* レイアウト種別: tile
|
|
124
|
+
*/
|
|
125
|
+
const clsLayoutTile = "nws-layout-tile";
|
|
126
|
+
/**
|
|
127
|
+
* 間隔: 横方向
|
|
128
|
+
*/
|
|
129
|
+
const clsLayoutSpacingX = "nws-layout-spacingX";
|
|
130
|
+
/**
|
|
131
|
+
* 間隔: 縦方向
|
|
132
|
+
*/
|
|
133
|
+
const clsLayoutSpacingY = "nws-layout-spacingY";
|
|
134
|
+
/**
|
|
135
|
+
* 整列: 横方向
|
|
136
|
+
*/
|
|
137
|
+
const clsLayoutDirectionX = "nws-layout-direction-x";
|
|
138
|
+
/**
|
|
139
|
+
* 整列: 縦方向
|
|
140
|
+
*/
|
|
141
|
+
const clsLayoutDirectionY = "nws-layout-direction-y";
|
|
142
|
+
/**
|
|
143
|
+
* 横位置: 左
|
|
144
|
+
*/
|
|
145
|
+
const clsLayoutAlignXLeft = "nws-layout-alignX-left";
|
|
146
|
+
/**
|
|
147
|
+
* 横位置: 中央
|
|
148
|
+
*/
|
|
149
|
+
const clsLayoutAlignXCenter = "nws-layout-alignX-center";
|
|
150
|
+
/**
|
|
151
|
+
* 横位置: 右
|
|
152
|
+
*/
|
|
153
|
+
const clsLayoutAlignXRight = "nws-layout-alignX-right";
|
|
154
|
+
/**
|
|
155
|
+
* 横位置: 両端揃え
|
|
156
|
+
*/
|
|
157
|
+
const clsLayoutAlignXSpaceBetween = "nws-layout-alignX-spaceBetween";
|
|
158
|
+
/**
|
|
159
|
+
* 横位置: 両端余白あり均等
|
|
160
|
+
*/
|
|
161
|
+
const clsLayoutAlignXSpaceAround = "nws-layout-alignX-spaceAround";
|
|
162
|
+
/**
|
|
163
|
+
* 横位置: 完全均等
|
|
164
|
+
*/
|
|
165
|
+
const clsLayoutAlignXSpaceEvenly = "nws-layout-alignX-spaceEvenly";
|
|
166
|
+
/**
|
|
167
|
+
* 縦位置: 上
|
|
168
|
+
*/
|
|
169
|
+
const clsLayoutAlignYTop = "nws-layout-alignY-top";
|
|
170
|
+
/**
|
|
171
|
+
* 縦位置: 中央
|
|
172
|
+
*/
|
|
173
|
+
const clsLayoutAlignYMiddle = "nws-layout-alignY-middle";
|
|
174
|
+
/**
|
|
175
|
+
* 縦位置: 下
|
|
176
|
+
*/
|
|
177
|
+
const clsLayoutAlignYBottom = "nws-layout-alignY-bottom";
|
|
178
|
+
/**
|
|
179
|
+
* 縦位置: 両端揃え
|
|
180
|
+
*/
|
|
181
|
+
const clsLayoutAlignYSpaceBetween = "nws-layout-alignY-spaceBetween";
|
|
182
|
+
/**
|
|
183
|
+
* 縦位置: 両端余白あり均等
|
|
184
|
+
*/
|
|
185
|
+
const clsLayoutAlignYSpaceAround = "nws-layout-alignY-spaceAround";
|
|
186
|
+
/**
|
|
187
|
+
* 縦位置: 完全均等
|
|
188
|
+
*/
|
|
189
|
+
const clsLayoutAlignYSpaceEvenly = "nws-layout-alignY-spaceEvenly";
|
|
190
|
+
/**
|
|
191
|
+
* 子要素の横方向の数
|
|
192
|
+
*/
|
|
193
|
+
const clsLayoutChildCountX = "nws-layout-childCountX";
|
|
194
|
+
/**
|
|
195
|
+
* 子要素の縦方向の数
|
|
196
|
+
*/
|
|
197
|
+
const clsLayoutChildCountY = "nws-layout-childCountY";
|
|
198
|
+
/**
|
|
199
|
+
* 子要素の幅
|
|
200
|
+
*/
|
|
201
|
+
const clsLayoutChildSizeX = "nws-layout-childSizeX";
|
|
202
|
+
/**
|
|
203
|
+
* 子要素の高さ
|
|
204
|
+
*/
|
|
205
|
+
const clsLayoutChildSizeY = "nws-layout-childSizeY";
|
|
206
|
+
/**
|
|
207
|
+
* 子要素の幅調整: なし
|
|
208
|
+
*/
|
|
209
|
+
const clsLayoutAdjustXNone = "nws-layout-adjustX-none";
|
|
210
|
+
/**
|
|
211
|
+
* 子要素の幅調整: 伸ばす & 縮める
|
|
212
|
+
*/
|
|
213
|
+
const clsLayoutAdjustXFit = "nws-layout-adjustX-fit";
|
|
214
|
+
/**
|
|
215
|
+
* 子要素の幅調整: 伸ばす
|
|
216
|
+
*/
|
|
217
|
+
const clsLayoutAdjustXExpand = "nws-layout-adjustX-grow";
|
|
218
|
+
/**
|
|
219
|
+
* 子要素の幅調整: 縮める
|
|
220
|
+
*/
|
|
221
|
+
const clsLayoutAdjustXShrink = "nws-layout-adjustX-shrink";
|
|
222
|
+
/**
|
|
223
|
+
* 子要素の高さ調整: なし
|
|
224
|
+
*/
|
|
225
|
+
const clsLayoutAdjustYNone = "nws-layout-adjustY-none";
|
|
226
|
+
/**
|
|
227
|
+
* 子要素の高さ調整: 伸ばす & 縮める
|
|
228
|
+
*/
|
|
229
|
+
const clsLayoutAdjustYFit = "nws-layout-adjustY-fit";
|
|
230
|
+
/**
|
|
231
|
+
* 子要素の高さ調整: 伸ばす
|
|
232
|
+
*/
|
|
233
|
+
const clsLayoutAdjustYExpand = "nws-layout-adjustY-grow";
|
|
234
|
+
/**
|
|
235
|
+
* 子要素の高さ調整: 縮める
|
|
236
|
+
*/
|
|
237
|
+
const clsLayoutAdjustYShrink = "nws-layout-adjustY-shrink";
|
|
238
|
+
/**
|
|
239
|
+
* 変数\
|
|
240
|
+
* 間隔: 横方向
|
|
241
|
+
*/
|
|
242
|
+
const varLayoutSpacingX = "--nws-layout-spacingX";
|
|
243
|
+
/**
|
|
244
|
+
* 変数\
|
|
245
|
+
* 間隔: 縦方向
|
|
246
|
+
*/
|
|
247
|
+
const varLayoutSpacingY = "--nws-layout-spacingY";
|
|
248
|
+
/**
|
|
249
|
+
* 変数\
|
|
250
|
+
* 子要素の横方向の数
|
|
251
|
+
*/
|
|
252
|
+
const varLayoutChildCountX = "--nws-layout-childCountX";
|
|
253
|
+
/**
|
|
254
|
+
* 変数\
|
|
255
|
+
* 子要素の縦方向の数
|
|
256
|
+
*/
|
|
257
|
+
const varLayoutChildCountY = "--nws-layout-childCountY";
|
|
258
|
+
/**
|
|
259
|
+
* 変数\
|
|
260
|
+
* 子要素の幅
|
|
261
|
+
*/
|
|
262
|
+
const varLayoutChildSizeX = "--nws-layout-childSizeX";
|
|
263
|
+
/**
|
|
264
|
+
* 変数\
|
|
265
|
+
* 子要素の高さ
|
|
266
|
+
*/
|
|
267
|
+
const varLayoutChildSizeY = "--nws-layout-childSizeY";
|
|
268
|
+
/**
|
|
269
|
+
* 変数\
|
|
270
|
+
* 横方向のテンプレート
|
|
271
|
+
*/
|
|
272
|
+
const varLayoutTemplateX = "--nws-layout-childX";
|
|
273
|
+
/**
|
|
274
|
+
* 変数\
|
|
275
|
+
* 縦方向のテンプレート
|
|
276
|
+
*/
|
|
277
|
+
const varLayoutTemplateY = "--nws-layout-childY";
|
|
278
|
+
/**
|
|
279
|
+
* 変数\
|
|
280
|
+
* 横方向のオートトラック
|
|
281
|
+
*/
|
|
282
|
+
const varLayoutAutoTracX = "--nws-layout-autoTracX";
|
|
283
|
+
/**
|
|
284
|
+
* 変数\
|
|
285
|
+
* 縦方向のオートトラック
|
|
286
|
+
*/
|
|
287
|
+
const varLayoutAutoTracY = "--nws-layout-autoTracY";
|
|
288
|
+
|
|
289
|
+
//#endregion
|
|
290
|
+
exports.Adjust = Adjust;
|
|
291
|
+
exports.AdjustBase = AdjustBase;
|
|
292
|
+
exports.AlignX = AlignX;
|
|
293
|
+
exports.AlignXBase = AlignXBase;
|
|
294
|
+
exports.AlignY = AlignY;
|
|
295
|
+
exports.AlignYBase = AlignYBase;
|
|
296
|
+
exports.Direction = Direction;
|
|
297
|
+
exports.clsLayoutAdjustXExpand = clsLayoutAdjustXExpand;
|
|
298
|
+
exports.clsLayoutAdjustXFit = clsLayoutAdjustXFit;
|
|
299
|
+
exports.clsLayoutAdjustXNone = clsLayoutAdjustXNone;
|
|
300
|
+
exports.clsLayoutAdjustXShrink = clsLayoutAdjustXShrink;
|
|
301
|
+
exports.clsLayoutAdjustYExpand = clsLayoutAdjustYExpand;
|
|
302
|
+
exports.clsLayoutAdjustYFit = clsLayoutAdjustYFit;
|
|
303
|
+
exports.clsLayoutAdjustYNone = clsLayoutAdjustYNone;
|
|
304
|
+
exports.clsLayoutAdjustYShrink = clsLayoutAdjustYShrink;
|
|
305
|
+
exports.clsLayoutAlignXCenter = clsLayoutAlignXCenter;
|
|
306
|
+
exports.clsLayoutAlignXLeft = clsLayoutAlignXLeft;
|
|
307
|
+
exports.clsLayoutAlignXRight = clsLayoutAlignXRight;
|
|
308
|
+
exports.clsLayoutAlignXSpaceAround = clsLayoutAlignXSpaceAround;
|
|
309
|
+
exports.clsLayoutAlignXSpaceBetween = clsLayoutAlignXSpaceBetween;
|
|
310
|
+
exports.clsLayoutAlignXSpaceEvenly = clsLayoutAlignXSpaceEvenly;
|
|
311
|
+
exports.clsLayoutAlignYBottom = clsLayoutAlignYBottom;
|
|
312
|
+
exports.clsLayoutAlignYMiddle = clsLayoutAlignYMiddle;
|
|
313
|
+
exports.clsLayoutAlignYSpaceAround = clsLayoutAlignYSpaceAround;
|
|
314
|
+
exports.clsLayoutAlignYSpaceBetween = clsLayoutAlignYSpaceBetween;
|
|
315
|
+
exports.clsLayoutAlignYSpaceEvenly = clsLayoutAlignYSpaceEvenly;
|
|
316
|
+
exports.clsLayoutAlignYTop = clsLayoutAlignYTop;
|
|
317
|
+
exports.clsLayoutBalance = clsLayoutBalance;
|
|
318
|
+
exports.clsLayoutChildCountX = clsLayoutChildCountX;
|
|
319
|
+
exports.clsLayoutChildCountY = clsLayoutChildCountY;
|
|
320
|
+
exports.clsLayoutChildSizeX = clsLayoutChildSizeX;
|
|
321
|
+
exports.clsLayoutChildSizeY = clsLayoutChildSizeY;
|
|
322
|
+
exports.clsLayoutDirectionX = clsLayoutDirectionX;
|
|
323
|
+
exports.clsLayoutDirectionY = clsLayoutDirectionY;
|
|
324
|
+
exports.clsLayoutFlow = clsLayoutFlow;
|
|
325
|
+
exports.clsLayoutMatrix = clsLayoutMatrix;
|
|
326
|
+
exports.clsLayoutPack = clsLayoutPack;
|
|
327
|
+
exports.clsLayoutPin = clsLayoutPin;
|
|
328
|
+
exports.clsLayoutSpacingX = clsLayoutSpacingX;
|
|
329
|
+
exports.clsLayoutSpacingY = clsLayoutSpacingY;
|
|
330
|
+
exports.clsLayoutStack = clsLayoutStack;
|
|
331
|
+
exports.clsLayoutTile = clsLayoutTile;
|
|
332
|
+
exports.varLayoutAutoTracX = varLayoutAutoTracX;
|
|
333
|
+
exports.varLayoutAutoTracY = varLayoutAutoTracY;
|
|
334
|
+
exports.varLayoutChildCountX = varLayoutChildCountX;
|
|
335
|
+
exports.varLayoutChildCountY = varLayoutChildCountY;
|
|
336
|
+
exports.varLayoutChildSizeX = varLayoutChildSizeX;
|
|
337
|
+
exports.varLayoutChildSizeY = varLayoutChildSizeY;
|
|
338
|
+
exports.varLayoutSpacingX = varLayoutSpacingX;
|
|
339
|
+
exports.varLayoutSpacingY = varLayoutSpacingY;
|
|
340
|
+
exports.varLayoutTemplateX = varLayoutTemplateX;
|
|
341
|
+
exports.varLayoutTemplateY = varLayoutTemplateY;
|
package/constants.d.cts
ADDED
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
//#region src/constants.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* 整列方向
|
|
4
|
+
*/
|
|
5
|
+
declare const Direction: {
|
|
6
|
+
readonly x: "x";
|
|
7
|
+
readonly y: "y";
|
|
8
|
+
};
|
|
9
|
+
type Direction = (typeof Direction)[keyof typeof Direction];
|
|
10
|
+
/**
|
|
11
|
+
* 横位置
|
|
12
|
+
*
|
|
13
|
+
* - left: 左
|
|
14
|
+
* - center: 中央
|
|
15
|
+
* - right: 右
|
|
16
|
+
*/
|
|
17
|
+
declare const AlignXBase: {
|
|
18
|
+
readonly left: "left";
|
|
19
|
+
readonly center: "center";
|
|
20
|
+
readonly right: "right";
|
|
21
|
+
};
|
|
22
|
+
type AlignXBase = (typeof AlignXBase)[keyof typeof AlignXBase];
|
|
23
|
+
/**
|
|
24
|
+
* 横位置
|
|
25
|
+
*
|
|
26
|
+
* - left: 左
|
|
27
|
+
* - center: 中央
|
|
28
|
+
* - right: 右
|
|
29
|
+
* - space-between: 両端揃え
|
|
30
|
+
* - space-around: 両端余白あり均等
|
|
31
|
+
* - space-evenly: 完全均等
|
|
32
|
+
*/
|
|
33
|
+
declare const AlignX: {
|
|
34
|
+
readonly 'space-between': "space-between";
|
|
35
|
+
readonly 'space-around': "space-around";
|
|
36
|
+
readonly 'space-evenly': "space-evenly";
|
|
37
|
+
readonly left: "left";
|
|
38
|
+
readonly center: "center";
|
|
39
|
+
readonly right: "right";
|
|
40
|
+
};
|
|
41
|
+
type AlignX = (typeof AlignX)[keyof typeof AlignX];
|
|
42
|
+
/**
|
|
43
|
+
* 縦位置
|
|
44
|
+
*
|
|
45
|
+
* - top: 上
|
|
46
|
+
* - middle: 中央
|
|
47
|
+
* - bottom: 下
|
|
48
|
+
*/
|
|
49
|
+
declare const AlignYBase: {
|
|
50
|
+
readonly top: "top";
|
|
51
|
+
readonly middle: "middle";
|
|
52
|
+
readonly bottom: "bottom";
|
|
53
|
+
};
|
|
54
|
+
type AlignYBase = (typeof AlignYBase)[keyof typeof AlignYBase];
|
|
55
|
+
/**
|
|
56
|
+
* 縦位置(items用)
|
|
57
|
+
*
|
|
58
|
+
* - top: 上
|
|
59
|
+
* - middle: 中央
|
|
60
|
+
* - bottom: 下
|
|
61
|
+
* - space-between: 両端揃え
|
|
62
|
+
* - space-around: 両端余白あり均等
|
|
63
|
+
* - space-evenly: 完全均等
|
|
64
|
+
*/
|
|
65
|
+
declare const AlignY: {
|
|
66
|
+
readonly 'space-between': "space-between";
|
|
67
|
+
readonly 'space-around': "space-around";
|
|
68
|
+
readonly 'space-evenly': "space-evenly";
|
|
69
|
+
readonly top: "top";
|
|
70
|
+
readonly middle: "middle";
|
|
71
|
+
readonly bottom: "bottom";
|
|
72
|
+
};
|
|
73
|
+
type AlignY = (typeof AlignY)[keyof typeof AlignY];
|
|
74
|
+
/**
|
|
75
|
+
* 親要素のサイズを基準にした子要素のサイズ調整
|
|
76
|
+
*
|
|
77
|
+
* - `none`
|
|
78
|
+
* - 親のサイズに足りないとき: そのまま
|
|
79
|
+
* - 親のサイズを超えるとき: そのまま
|
|
80
|
+
*/
|
|
81
|
+
declare const AdjustBase: {
|
|
82
|
+
readonly none: "none";
|
|
83
|
+
};
|
|
84
|
+
type AdjustBase = (typeof AdjustBase)[keyof typeof AdjustBase];
|
|
85
|
+
/**
|
|
86
|
+
* 親要素のサイズを基準にした子要素のサイズ調整
|
|
87
|
+
*
|
|
88
|
+
* - `none`
|
|
89
|
+
* - 親のサイズに足りないとき: そのまま
|
|
90
|
+
* - 親のサイズを超えるとき: そのまま
|
|
91
|
+
* - `fit`
|
|
92
|
+
* - 親のサイズに足りないとき: 伸ばす
|
|
93
|
+
* - 親のサイズを超えるとき: 縮める
|
|
94
|
+
* - `grow`
|
|
95
|
+
* - 親のサイズに足りないとき: 伸ばす
|
|
96
|
+
* - 親のサイズを超えるとき: そのまま
|
|
97
|
+
* - `shrink`
|
|
98
|
+
* - 親のサイズに足りないとき: そのまま
|
|
99
|
+
* - 親のサイズを超えるとき: 縮める
|
|
100
|
+
*/
|
|
101
|
+
declare const Adjust: {
|
|
102
|
+
readonly fit: "fit";
|
|
103
|
+
readonly grow: "grow";
|
|
104
|
+
readonly shrink: "shrink";
|
|
105
|
+
readonly none: "none";
|
|
106
|
+
};
|
|
107
|
+
type Adjust = (typeof Adjust)[keyof typeof Adjust];
|
|
108
|
+
/**
|
|
109
|
+
* レイアウト種別: balance
|
|
110
|
+
*/
|
|
111
|
+
declare const clsLayoutBalance = "nws-layout-balance";
|
|
112
|
+
/**
|
|
113
|
+
* レイアウト種別: flow
|
|
114
|
+
*/
|
|
115
|
+
declare const clsLayoutFlow = "nws-layout-flow";
|
|
116
|
+
/**
|
|
117
|
+
* レイアウト種別: matrix
|
|
118
|
+
*/
|
|
119
|
+
declare const clsLayoutMatrix = "nws-layout-matrix";
|
|
120
|
+
/**
|
|
121
|
+
* レイアウト種別: pack
|
|
122
|
+
*/
|
|
123
|
+
declare const clsLayoutPack = "nws-layout-pack";
|
|
124
|
+
/**
|
|
125
|
+
* レイアウト種別: pin
|
|
126
|
+
*/
|
|
127
|
+
declare const clsLayoutPin = "nws-layout-pin";
|
|
128
|
+
/**
|
|
129
|
+
* レイアウト種別: stack
|
|
130
|
+
*/
|
|
131
|
+
declare const clsLayoutStack = "nws-layout-stack";
|
|
132
|
+
/**
|
|
133
|
+
* レイアウト種別: tile
|
|
134
|
+
*/
|
|
135
|
+
declare const clsLayoutTile = "nws-layout-tile";
|
|
136
|
+
/**
|
|
137
|
+
* 間隔: 横方向
|
|
138
|
+
*/
|
|
139
|
+
declare const clsLayoutSpacingX = "nws-layout-spacingX";
|
|
140
|
+
/**
|
|
141
|
+
* 間隔: 縦方向
|
|
142
|
+
*/
|
|
143
|
+
declare const clsLayoutSpacingY = "nws-layout-spacingY";
|
|
144
|
+
/**
|
|
145
|
+
* 整列: 横方向
|
|
146
|
+
*/
|
|
147
|
+
declare const clsLayoutDirectionX = "nws-layout-direction-x";
|
|
148
|
+
/**
|
|
149
|
+
* 整列: 縦方向
|
|
150
|
+
*/
|
|
151
|
+
declare const clsLayoutDirectionY = "nws-layout-direction-y";
|
|
152
|
+
/**
|
|
153
|
+
* 横位置: 左
|
|
154
|
+
*/
|
|
155
|
+
declare const clsLayoutAlignXLeft = "nws-layout-alignX-left";
|
|
156
|
+
/**
|
|
157
|
+
* 横位置: 中央
|
|
158
|
+
*/
|
|
159
|
+
declare const clsLayoutAlignXCenter = "nws-layout-alignX-center";
|
|
160
|
+
/**
|
|
161
|
+
* 横位置: 右
|
|
162
|
+
*/
|
|
163
|
+
declare const clsLayoutAlignXRight = "nws-layout-alignX-right";
|
|
164
|
+
/**
|
|
165
|
+
* 横位置: 両端揃え
|
|
166
|
+
*/
|
|
167
|
+
declare const clsLayoutAlignXSpaceBetween = "nws-layout-alignX-spaceBetween";
|
|
168
|
+
/**
|
|
169
|
+
* 横位置: 両端余白あり均等
|
|
170
|
+
*/
|
|
171
|
+
declare const clsLayoutAlignXSpaceAround = "nws-layout-alignX-spaceAround";
|
|
172
|
+
/**
|
|
173
|
+
* 横位置: 完全均等
|
|
174
|
+
*/
|
|
175
|
+
declare const clsLayoutAlignXSpaceEvenly = "nws-layout-alignX-spaceEvenly";
|
|
176
|
+
/**
|
|
177
|
+
* 縦位置: 上
|
|
178
|
+
*/
|
|
179
|
+
declare const clsLayoutAlignYTop = "nws-layout-alignY-top";
|
|
180
|
+
/**
|
|
181
|
+
* 縦位置: 中央
|
|
182
|
+
*/
|
|
183
|
+
declare const clsLayoutAlignYMiddle = "nws-layout-alignY-middle";
|
|
184
|
+
/**
|
|
185
|
+
* 縦位置: 下
|
|
186
|
+
*/
|
|
187
|
+
declare const clsLayoutAlignYBottom = "nws-layout-alignY-bottom";
|
|
188
|
+
/**
|
|
189
|
+
* 縦位置: 両端揃え
|
|
190
|
+
*/
|
|
191
|
+
declare const clsLayoutAlignYSpaceBetween = "nws-layout-alignY-spaceBetween";
|
|
192
|
+
/**
|
|
193
|
+
* 縦位置: 両端余白あり均等
|
|
194
|
+
*/
|
|
195
|
+
declare const clsLayoutAlignYSpaceAround = "nws-layout-alignY-spaceAround";
|
|
196
|
+
/**
|
|
197
|
+
* 縦位置: 完全均等
|
|
198
|
+
*/
|
|
199
|
+
declare const clsLayoutAlignYSpaceEvenly = "nws-layout-alignY-spaceEvenly";
|
|
200
|
+
/**
|
|
201
|
+
* 子要素の横方向の数
|
|
202
|
+
*/
|
|
203
|
+
declare const clsLayoutChildCountX = "nws-layout-childCountX";
|
|
204
|
+
/**
|
|
205
|
+
* 子要素の縦方向の数
|
|
206
|
+
*/
|
|
207
|
+
declare const clsLayoutChildCountY = "nws-layout-childCountY";
|
|
208
|
+
/**
|
|
209
|
+
* 子要素の幅
|
|
210
|
+
*/
|
|
211
|
+
declare const clsLayoutChildSizeX = "nws-layout-childSizeX";
|
|
212
|
+
/**
|
|
213
|
+
* 子要素の高さ
|
|
214
|
+
*/
|
|
215
|
+
declare const clsLayoutChildSizeY = "nws-layout-childSizeY";
|
|
216
|
+
/**
|
|
217
|
+
* 子要素の幅調整: なし
|
|
218
|
+
*/
|
|
219
|
+
declare const clsLayoutAdjustXNone = "nws-layout-adjustX-none";
|
|
220
|
+
/**
|
|
221
|
+
* 子要素の幅調整: 伸ばす & 縮める
|
|
222
|
+
*/
|
|
223
|
+
declare const clsLayoutAdjustXFit = "nws-layout-adjustX-fit";
|
|
224
|
+
/**
|
|
225
|
+
* 子要素の幅調整: 伸ばす
|
|
226
|
+
*/
|
|
227
|
+
declare const clsLayoutAdjustXExpand = "nws-layout-adjustX-grow";
|
|
228
|
+
/**
|
|
229
|
+
* 子要素の幅調整: 縮める
|
|
230
|
+
*/
|
|
231
|
+
declare const clsLayoutAdjustXShrink = "nws-layout-adjustX-shrink";
|
|
232
|
+
/**
|
|
233
|
+
* 子要素の高さ調整: なし
|
|
234
|
+
*/
|
|
235
|
+
declare const clsLayoutAdjustYNone = "nws-layout-adjustY-none";
|
|
236
|
+
/**
|
|
237
|
+
* 子要素の高さ調整: 伸ばす & 縮める
|
|
238
|
+
*/
|
|
239
|
+
declare const clsLayoutAdjustYFit = "nws-layout-adjustY-fit";
|
|
240
|
+
/**
|
|
241
|
+
* 子要素の高さ調整: 伸ばす
|
|
242
|
+
*/
|
|
243
|
+
declare const clsLayoutAdjustYExpand = "nws-layout-adjustY-grow";
|
|
244
|
+
/**
|
|
245
|
+
* 子要素の高さ調整: 縮める
|
|
246
|
+
*/
|
|
247
|
+
declare const clsLayoutAdjustYShrink = "nws-layout-adjustY-shrink";
|
|
248
|
+
/**
|
|
249
|
+
* 変数\
|
|
250
|
+
* 間隔: 横方向
|
|
251
|
+
*/
|
|
252
|
+
declare const varLayoutSpacingX = "--nws-layout-spacingX";
|
|
253
|
+
/**
|
|
254
|
+
* 変数\
|
|
255
|
+
* 間隔: 縦方向
|
|
256
|
+
*/
|
|
257
|
+
declare const varLayoutSpacingY = "--nws-layout-spacingY";
|
|
258
|
+
/**
|
|
259
|
+
* 変数\
|
|
260
|
+
* 子要素の横方向の数
|
|
261
|
+
*/
|
|
262
|
+
declare const varLayoutChildCountX = "--nws-layout-childCountX";
|
|
263
|
+
/**
|
|
264
|
+
* 変数\
|
|
265
|
+
* 子要素の縦方向の数
|
|
266
|
+
*/
|
|
267
|
+
declare const varLayoutChildCountY = "--nws-layout-childCountY";
|
|
268
|
+
/**
|
|
269
|
+
* 変数\
|
|
270
|
+
* 子要素の幅
|
|
271
|
+
*/
|
|
272
|
+
declare const varLayoutChildSizeX = "--nws-layout-childSizeX";
|
|
273
|
+
/**
|
|
274
|
+
* 変数\
|
|
275
|
+
* 子要素の高さ
|
|
276
|
+
*/
|
|
277
|
+
declare const varLayoutChildSizeY = "--nws-layout-childSizeY";
|
|
278
|
+
/**
|
|
279
|
+
* 変数\
|
|
280
|
+
* 横方向のテンプレート
|
|
281
|
+
*/
|
|
282
|
+
declare const varLayoutTemplateX = "--nws-layout-childX";
|
|
283
|
+
/**
|
|
284
|
+
* 変数\
|
|
285
|
+
* 縦方向のテンプレート
|
|
286
|
+
*/
|
|
287
|
+
declare const varLayoutTemplateY = "--nws-layout-childY";
|
|
288
|
+
/**
|
|
289
|
+
* 変数\
|
|
290
|
+
* 横方向のオートトラック
|
|
291
|
+
*/
|
|
292
|
+
declare const varLayoutAutoTracX = "--nws-layout-autoTracX";
|
|
293
|
+
/**
|
|
294
|
+
* 変数\
|
|
295
|
+
* 縦方向のオートトラック
|
|
296
|
+
*/
|
|
297
|
+
declare const varLayoutAutoTracY = "--nws-layout-autoTracY";
|
|
298
|
+
//#endregion
|
|
299
|
+
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, clsLayoutChildCountX, clsLayoutChildCountY, clsLayoutChildSizeX, clsLayoutChildSizeY, clsLayoutDirectionX, clsLayoutDirectionY, clsLayoutFlow, clsLayoutMatrix, clsLayoutPack, clsLayoutPin, clsLayoutSpacingX, clsLayoutSpacingY, clsLayoutStack, clsLayoutTile, varLayoutAutoTracX, varLayoutAutoTracY, varLayoutChildCountX, varLayoutChildCountY, varLayoutChildSizeX, varLayoutChildSizeY, varLayoutSpacingX, varLayoutSpacingY, varLayoutTemplateX, varLayoutTemplateY };
|