@niche-works/style-layouts 0.2.0 → 0.3.1
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/README.ja.md +11 -0
- package/README.md +11 -0
- package/balance/index.cjs +1 -1
- package/center/index.cjs +1 -1
- package/constants.cjs +2 -2
- package/constants.d.cts +2 -2
- package/constants.d.mts +2 -2
- package/constants.mjs +2 -2
- package/core/_constants.cjs +58 -78
- package/core/_constants.d.cts +57 -71
- package/core/_constants.d.mts +57 -71
- package/core/_constants.mjs +58 -72
- package/core/balance/balance.cjs +1 -1
- package/core/balance/balance.mjs +2 -2
- package/core/balance/styles.css +14 -28
- package/core/center/center.cjs +1 -1
- package/core/center/center.mjs +2 -2
- package/core/center/styles.css +55 -42
- package/core/constants.cjs +18 -20
- package/core/constants.d.cts +17 -19
- package/core/constants.d.mts +17 -19
- package/core/constants.mjs +17 -19
- package/core/flow/flow.cjs +7 -7
- package/core/flow/flow.mjs +8 -8
- package/core/flow/styles.css +24 -20
- package/core/layer/layer.cjs +1 -1
- package/core/layer/layer.mjs +2 -2
- package/core/layer/styles.css +2 -10
- package/core/matrix/matrix.cjs +39 -41
- package/core/matrix/matrix.mjs +40 -42
- package/core/matrix/styles.css +100 -4
- package/core/pack/pack.cjs +1 -1
- package/core/pack/pack.mjs +2 -2
- package/core/pack/styles.css +17 -8
- package/core/pin/styles.css +1 -0
- package/core/stack/stack.cjs +19 -19
- package/core/stack/stack.mjs +20 -20
- package/core/stack/styles.css +26 -24
- package/core/styles.css +355 -179
- package/core/tile/styles.css +116 -43
- package/core/tile/tile.cjs +2 -52
- package/core/tile/tile.mjs +4 -54
- package/flow/index.cjs +1 -1
- package/layer/index.cjs +1 -1
- package/matrix/index.cjs +1 -1
- package/pack/index.cjs +1 -1
- package/package.json +1 -1
- package/pin/index.cjs +1 -1
- package/stack/index.cjs +1 -1
- 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
|
+
| ブラウザー | 対応バージョン |
|
|
323
|
+
| --------------- | :-----------------: |
|
|
324
|
+
| Google Chrome | 88 (2021年1月) 以降 |
|
|
325
|
+
| Microsoft Edge | 88 (2021年1月) 以降 |
|
|
326
|
+
| Mozilla Firefox | 89 (2021年6月) 以降 |
|
|
327
|
+
| Apple Safari | 15 (2021年9月) 以降 |
|
|
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 and supports the following major browser versions.
|
|
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 |
|
|
327
|
+
| Apple Safari | 15 (September 2021) and later |
|
|
328
|
+
|
|
318
329
|
## License
|
|
319
330
|
|
|
320
331
|
MIT
|
package/balance/index.cjs
CHANGED
package/center/index.cjs
CHANGED
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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 };
|
package/core/_constants.cjs
CHANGED
|
@@ -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
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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.
|
|
88
|
-
exports.
|
|
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;
|
package/core/_constants.d.cts
CHANGED
|
@@ -1,83 +1,69 @@
|
|
|
1
1
|
//#region src/core/_constants.d.ts
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* axis毎のクラス
|
|
4
4
|
*/
|
|
5
|
-
declare const
|
|
6
|
-
readonly
|
|
7
|
-
|
|
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
|
|
22
|
-
readonly
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
readonly
|
|
37
|
-
|
|
38
|
-
|
|
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
|
|
41
|
-
readonly
|
|
42
|
-
readonly
|
|
43
|
-
|
|
44
|
-
|
|
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
|
|
79
|
-
|
|
80
|
-
|
|
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 {
|
|
69
|
+
export { clsLayout, varLayout };
|
package/core/_constants.d.mts
CHANGED
|
@@ -1,83 +1,69 @@
|
|
|
1
1
|
//#region src/core/_constants.d.ts
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* axis毎のクラス
|
|
4
4
|
*/
|
|
5
|
-
declare const
|
|
6
|
-
readonly
|
|
7
|
-
|
|
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
|
|
22
|
-
readonly
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
readonly
|
|
37
|
-
|
|
38
|
-
|
|
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
|
|
41
|
-
readonly
|
|
42
|
-
readonly
|
|
43
|
-
|
|
44
|
-
|
|
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
|
|
79
|
-
|
|
80
|
-
|
|
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 {
|
|
69
|
+
export { clsLayout, varLayout };
|