@fringeworks/style-layouts 0.0.0-stage → 0.8.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 (267) hide show
  1. package/LICENSE +21 -0
  2. package/README.ja.md +331 -0
  3. package/README.md +331 -3
  4. package/_constants.cjs +327 -0
  5. package/_constants.d.cts +237 -0
  6. package/_constants.d.mts +237 -0
  7. package/_constants.mjs +275 -0
  8. package/_internal/applyGap.cjs +30 -0
  9. package/_internal/applyGap.d.cts +12 -0
  10. package/_internal/applyGap.d.mts +13 -0
  11. package/_internal/applyGap.mjs +30 -0
  12. package/_internal/applyItemCount.cjs +20 -0
  13. package/_internal/applyItemCount.d.cts +5 -0
  14. package/_internal/applyItemCount.d.mts +6 -0
  15. package/_internal/applyItemCount.mjs +20 -0
  16. package/_internal/applyItemRatio.cjs +21 -0
  17. package/_internal/applyItemRatio.d.cts +11 -0
  18. package/_internal/applyItemRatio.d.mts +12 -0
  19. package/_internal/applyItemRatio.mjs +21 -0
  20. package/_internal/applyItemSize.cjs +21 -0
  21. package/_internal/applyItemSize.d.cts +5 -0
  22. package/_internal/applyItemSize.d.mts +6 -0
  23. package/_internal/applyItemSize.mjs +21 -0
  24. package/_internal/hasValue.cjs +15 -0
  25. package/_internal/hasValue.d.cts +8 -0
  26. package/_internal/hasValue.d.mts +9 -0
  27. package/_internal/hasValue.mjs +14 -0
  28. package/_internal/mergeClassName.cjs +11 -0
  29. package/_internal/mergeClassName.d.cts +3 -0
  30. package/_internal/mergeClassName.d.mts +4 -0
  31. package/_internal/mergeClassName.mjs +10 -0
  32. package/_internal/mergeLayoutResults.cjs +16 -0
  33. package/_internal/mergeLayoutResults.d.cts +5 -0
  34. package/_internal/mergeLayoutResults.d.mts +6 -0
  35. package/_internal/mergeLayoutResults.mjs +16 -0
  36. package/_internal/unit.cjs +9 -0
  37. package/_internal/unit.d.cts +11 -0
  38. package/_internal/unit.d.mts +12 -0
  39. package/_internal/unit.mjs +8 -0
  40. package/_styles.scss.cjs +1 -0
  41. package/_styles.scss.d.cts +1 -0
  42. package/_styles.scss.d.mts +1 -0
  43. package/_styles.scss.mjs +3 -0
  44. package/_types.cjs +0 -0
  45. package/_types.d.cts +115 -0
  46. package/_types.d.mts +115 -0
  47. package/_types.mjs +1 -0
  48. package/_virtual/_rolldown/runtime.cjs +29 -0
  49. package/balance/balance.cjs +37 -0
  50. package/balance/balance.d.cts +13 -0
  51. package/balance/balance.d.mts +14 -0
  52. package/balance/balance.mjs +35 -0
  53. package/balance/index.cjs +3 -0
  54. package/balance/index.d.cts +3 -0
  55. package/balance/index.d.mts +3 -0
  56. package/balance/index.mjs +3 -0
  57. package/balance/styles.css +131 -0
  58. package/balance/types.cjs +0 -0
  59. package/balance/types.d.cts +21 -0
  60. package/balance/types.d.mts +21 -0
  61. package/balance/types.mjs +1 -0
  62. package/center/center.cjs +34 -0
  63. package/center/center.d.cts +12 -0
  64. package/center/center.d.mts +13 -0
  65. package/center/center.mjs +32 -0
  66. package/center/index.cjs +3 -0
  67. package/center/index.d.cts +3 -0
  68. package/center/index.d.mts +3 -0
  69. package/center/index.mjs +3 -0
  70. package/center/styles.css +157 -0
  71. package/center/types.cjs +0 -0
  72. package/center/types.d.cts +9 -0
  73. package/center/types.d.mts +9 -0
  74. package/center/types.mjs +1 -0
  75. package/constants.cjs +109 -0
  76. package/constants.d.cts +112 -0
  77. package/constants.d.mts +112 -0
  78. package/constants.mjs +101 -0
  79. package/flow/flow.cjs +71 -0
  80. package/flow/flow.d.cts +12 -0
  81. package/flow/flow.d.mts +13 -0
  82. package/flow/flow.mjs +69 -0
  83. package/flow/index.cjs +3 -0
  84. package/flow/index.d.cts +3 -0
  85. package/flow/index.d.mts +3 -0
  86. package/flow/index.mjs +3 -0
  87. package/flow/styles.css +160 -0
  88. package/flow/types.cjs +0 -0
  89. package/flow/types.d.cts +21 -0
  90. package/flow/types.d.mts +21 -0
  91. package/flow/types.mjs +1 -0
  92. package/helpers/_internal/constants.cjs +25 -0
  93. package/helpers/_internal/constants.d.cts +13 -0
  94. package/helpers/_internal/constants.d.mts +13 -0
  95. package/helpers/_internal/constants.mjs +16 -0
  96. package/helpers/_internal/createExtractLayoutOptions.cjs +25 -0
  97. package/helpers/_internal/createExtractLayoutOptions.d.cts +8 -0
  98. package/helpers/_internal/createExtractLayoutOptions.d.mts +9 -0
  99. package/helpers/_internal/createExtractLayoutOptions.mjs +24 -0
  100. package/helpers/extractBalanceOptions.cjs +15 -0
  101. package/helpers/extractBalanceOptions.d.cts +5 -0
  102. package/helpers/extractBalanceOptions.d.mts +6 -0
  103. package/helpers/extractBalanceOptions.mjs +15 -0
  104. package/helpers/extractCenterOptions.cjs +14 -0
  105. package/helpers/extractCenterOptions.d.cts +6 -0
  106. package/helpers/extractCenterOptions.d.mts +7 -0
  107. package/helpers/extractCenterOptions.mjs +14 -0
  108. package/helpers/extractFlowOptions.cjs +15 -0
  109. package/helpers/extractFlowOptions.d.cts +6 -0
  110. package/helpers/extractFlowOptions.d.mts +7 -0
  111. package/helpers/extractFlowOptions.mjs +15 -0
  112. package/helpers/extractLayerOptions.cjs +13 -0
  113. package/helpers/extractLayerOptions.d.cts +6 -0
  114. package/helpers/extractLayerOptions.d.mts +7 -0
  115. package/helpers/extractLayerOptions.mjs +13 -0
  116. package/helpers/extractMatrixOptions.cjs +17 -0
  117. package/helpers/extractMatrixOptions.d.cts +5 -0
  118. package/helpers/extractMatrixOptions.d.mts +6 -0
  119. package/helpers/extractMatrixOptions.mjs +17 -0
  120. package/helpers/extractPackOptions.cjs +8 -0
  121. package/helpers/extractPackOptions.d.cts +6 -0
  122. package/helpers/extractPackOptions.d.mts +7 -0
  123. package/helpers/extractPackOptions.mjs +8 -0
  124. package/helpers/extractPinOptions.cjs +8 -0
  125. package/helpers/extractPinOptions.d.cts +6 -0
  126. package/helpers/extractPinOptions.d.mts +7 -0
  127. package/helpers/extractPinOptions.mjs +8 -0
  128. package/helpers/extractStackOptions.cjs +15 -0
  129. package/helpers/extractStackOptions.d.cts +6 -0
  130. package/helpers/extractStackOptions.d.mts +7 -0
  131. package/helpers/extractStackOptions.mjs +15 -0
  132. package/helpers/extractTileOptions.cjs +15 -0
  133. package/helpers/extractTileOptions.d.cts +6 -0
  134. package/helpers/extractTileOptions.d.mts +7 -0
  135. package/helpers/extractTileOptions.mjs +15 -0
  136. package/helpers/index.cjs +20 -0
  137. package/helpers/index.d.cts +10 -0
  138. package/helpers/index.d.mts +10 -0
  139. package/helpers/index.mjs +11 -0
  140. package/index.cjs +20 -0
  141. package/index.d.cts +20 -0
  142. package/index.d.mts +20 -0
  143. package/index.mjs +11 -0
  144. package/layer/index.cjs +3 -0
  145. package/layer/index.d.cts +3 -0
  146. package/layer/index.d.mts +3 -0
  147. package/layer/index.mjs +3 -0
  148. package/layer/layer.cjs +34 -0
  149. package/layer/layer.d.cts +13 -0
  150. package/layer/layer.d.mts +14 -0
  151. package/layer/layer.mjs +32 -0
  152. package/layer/styles.css +56 -0
  153. package/layer/types.cjs +0 -0
  154. package/layer/types.d.cts +13 -0
  155. package/layer/types.d.mts +13 -0
  156. package/layer/types.mjs +1 -0
  157. package/matrix/index.cjs +3 -0
  158. package/matrix/index.d.cts +3 -0
  159. package/matrix/index.d.mts +3 -0
  160. package/matrix/index.mjs +3 -0
  161. package/matrix/matrix.cjs +110 -0
  162. package/matrix/matrix.d.cts +12 -0
  163. package/matrix/matrix.d.mts +13 -0
  164. package/matrix/matrix.mjs +108 -0
  165. package/matrix/styles.css +141 -0
  166. package/matrix/types.cjs +0 -0
  167. package/matrix/types.d.cts +46 -0
  168. package/matrix/types.d.mts +46 -0
  169. package/matrix/types.mjs +1 -0
  170. package/pack/index.cjs +3 -0
  171. package/pack/index.d.cts +3 -0
  172. package/pack/index.d.mts +3 -0
  173. package/pack/index.mjs +3 -0
  174. package/pack/pack.cjs +25 -0
  175. package/pack/pack.d.cts +11 -0
  176. package/pack/pack.d.mts +12 -0
  177. package/pack/pack.mjs +23 -0
  178. package/pack/styles.css +35 -0
  179. package/pack/types.cjs +0 -0
  180. package/pack/types.d.cts +6 -0
  181. package/pack/types.d.mts +6 -0
  182. package/pack/types.mjs +1 -0
  183. package/package.json +52 -4
  184. package/pin/index.cjs +3 -0
  185. package/pin/index.d.cts +3 -0
  186. package/pin/index.d.mts +3 -0
  187. package/pin/index.mjs +3 -0
  188. package/pin/pin.cjs +23 -0
  189. package/pin/pin.d.cts +11 -0
  190. package/pin/pin.d.mts +12 -0
  191. package/pin/pin.mjs +23 -0
  192. package/pin/styles.css +19 -0
  193. package/pin/types.cjs +0 -0
  194. package/pin/types.d.cts +6 -0
  195. package/pin/types.d.mts +6 -0
  196. package/pin/types.mjs +1 -0
  197. package/stack/index.cjs +3 -0
  198. package/stack/index.d.cts +3 -0
  199. package/stack/index.d.mts +3 -0
  200. package/stack/index.mjs +3 -0
  201. package/stack/stack.cjs +96 -0
  202. package/stack/stack.d.cts +11 -0
  203. package/stack/stack.d.mts +12 -0
  204. package/stack/stack.mjs +94 -0
  205. package/stack/styles.css +167 -0
  206. package/stack/types.cjs +0 -0
  207. package/stack/types.d.cts +21 -0
  208. package/stack/types.d.mts +21 -0
  209. package/stack/types.mjs +1 -0
  210. package/styles.css +1055 -0
  211. package/tile/index.cjs +3 -0
  212. package/tile/index.d.cts +3 -0
  213. package/tile/index.d.mts +3 -0
  214. package/tile/index.mjs +3 -0
  215. package/tile/styles.css +181 -0
  216. package/tile/tile.cjs +36 -0
  217. package/tile/tile.d.cts +12 -0
  218. package/tile/tile.d.mts +13 -0
  219. package/tile/tile.mjs +34 -0
  220. package/tile/types.cjs +0 -0
  221. package/tile/types.d.cts +9 -0
  222. package/tile/types.d.mts +9 -0
  223. package/tile/types.mjs +1 -0
  224. package/types.cjs +0 -0
  225. package/types.d.cts +14 -0
  226. package/types.d.mts +14 -0
  227. package/types.mjs +1 -0
  228. package/with-css/balance/index.cjs +8 -0
  229. package/with-css/balance/index.d.cts +3 -0
  230. package/with-css/balance/index.d.mts +3 -0
  231. package/with-css/balance/index.mjs +8 -0
  232. package/with-css/center/index.cjs +8 -0
  233. package/with-css/center/index.d.cts +3 -0
  234. package/with-css/center/index.d.mts +3 -0
  235. package/with-css/center/index.mjs +8 -0
  236. package/with-css/flow/index.cjs +8 -0
  237. package/with-css/flow/index.d.cts +3 -0
  238. package/with-css/flow/index.d.mts +3 -0
  239. package/with-css/flow/index.mjs +8 -0
  240. package/with-css/index.cjs +20 -0
  241. package/with-css/index.d.cts +20 -0
  242. package/with-css/index.d.mts +20 -0
  243. package/with-css/index.mjs +11 -0
  244. package/with-css/layer/index.cjs +8 -0
  245. package/with-css/layer/index.d.cts +3 -0
  246. package/with-css/layer/index.d.mts +3 -0
  247. package/with-css/layer/index.mjs +8 -0
  248. package/with-css/matrix/index.cjs +8 -0
  249. package/with-css/matrix/index.d.cts +3 -0
  250. package/with-css/matrix/index.d.mts +3 -0
  251. package/with-css/matrix/index.mjs +8 -0
  252. package/with-css/pack/index.cjs +8 -0
  253. package/with-css/pack/index.d.cts +3 -0
  254. package/with-css/pack/index.d.mts +3 -0
  255. package/with-css/pack/index.mjs +8 -0
  256. package/with-css/pin/index.cjs +8 -0
  257. package/with-css/pin/index.d.cts +3 -0
  258. package/with-css/pin/index.d.mts +3 -0
  259. package/with-css/pin/index.mjs +8 -0
  260. package/with-css/stack/index.cjs +8 -0
  261. package/with-css/stack/index.d.cts +3 -0
  262. package/with-css/stack/index.d.mts +3 -0
  263. package/with-css/stack/index.mjs +8 -0
  264. package/with-css/tile/index.cjs +8 -0
  265. package/with-css/tile/index.d.cts +3 -0
  266. package/with-css/tile/index.d.mts +3 -0
  267. package/with-css/tile/index.mjs +8 -0
package/_constants.cjs ADDED
@@ -0,0 +1,327 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+
3
+ //#region src/_constants.ts
4
+ /**
5
+ * レイアウト種別: stack
6
+ */
7
+ const clsLayoutStack = "lx-layout-stack";
8
+ /**
9
+ * レイアウト種別: flow
10
+ */
11
+ const clsLayoutFlow = "lx-layout-flow";
12
+ /**
13
+ * レイアウト種別: tile
14
+ */
15
+ const clsLayoutTile = "lx-layout-tile";
16
+ /**
17
+ * レイアウト種別: matrix
18
+ */
19
+ const clsLayoutMatrix = "lx-layout-matrix";
20
+ /**
21
+ * レイアウト種別: center
22
+ */
23
+ const clsLayoutCenter = "lx-layout-center";
24
+ /**
25
+ * レイアウト種別: pack
26
+ */
27
+ const clsLayoutPack = "lx-layout-pack";
28
+ /**
29
+ * レイアウト種別: balance
30
+ */
31
+ const clsLayoutBalance = "lx-layout-balance";
32
+ /**
33
+ * レイアウト種別: layer
34
+ */
35
+ const clsLayoutLayer = "lx-layout-layer";
36
+ /**
37
+ * レイアウト種別: pin
38
+ */
39
+ const clsLayoutPin = "lx-layout-pin";
40
+ /**
41
+ * 整列: 横方向
42
+ */
43
+ const clsLayoutDirectionX = "lx-layout-direction-x";
44
+ /**
45
+ * 整列: 縦方向
46
+ */
47
+ const clsLayoutDirectionY = "lx-layout-direction-y";
48
+ /**
49
+ * 横位置: 左
50
+ */
51
+ const clsLayoutAlignXLeft = "lx-layout-alignX-left";
52
+ /**
53
+ * 横位置: 中央
54
+ */
55
+ const clsLayoutAlignXCenter = "lx-layout-alignX-center";
56
+ /**
57
+ * 横位置: 右
58
+ */
59
+ const clsLayoutAlignXRight = "lx-layout-alignX-right";
60
+ /**
61
+ * 横位置: 両端揃え
62
+ */
63
+ const clsLayoutAlignXSpaceBetween = "lx-layout-alignX-spaceBetween";
64
+ /**
65
+ * 横位置: 両端余白あり均等
66
+ */
67
+ const clsLayoutAlignXSpaceAround = "lx-layout-alignX-spaceAround";
68
+ /**
69
+ * 横位置: 完全均等
70
+ */
71
+ const clsLayoutAlignXSpaceEvenly = "lx-layout-alignX-spaceEvenly";
72
+ /**
73
+ * 縦位置: 上
74
+ */
75
+ const clsLayoutAlignYTop = "lx-layout-alignY-top";
76
+ /**
77
+ * 縦位置: 中央
78
+ */
79
+ const clsLayoutAlignYMiddle = "lx-layout-alignY-middle";
80
+ /**
81
+ * 縦位置: 下
82
+ */
83
+ const clsLayoutAlignYBottom = "lx-layout-alignY-bottom";
84
+ /**
85
+ * 縦位置: 両端揃え
86
+ */
87
+ const clsLayoutAlignYSpaceBetween = "lx-layout-alignY-spaceBetween";
88
+ /**
89
+ * 縦位置: 両端余白あり均等
90
+ */
91
+ const clsLayoutAlignYSpaceAround = "lx-layout-alignY-spaceAround";
92
+ /**
93
+ * 縦位置: 完全均等
94
+ */
95
+ const clsLayoutAlignYSpaceEvenly = "lx-layout-alignY-spaceEvenly";
96
+ /**
97
+ * 子要素の幅調整: なし
98
+ */
99
+ const clsLayoutAdjustXNone = "lx-layout-adjustX-none";
100
+ /**
101
+ * 子要素の幅調整: 伸ばす & 縮める
102
+ */
103
+ const clsLayoutAdjustXFit = "lx-layout-adjustX-fit";
104
+ /**
105
+ * 子要素の幅調整: 伸ばす
106
+ */
107
+ const clsLayoutAdjustXExpand = "lx-layout-adjustX-grow";
108
+ /**
109
+ * 子要素の幅調整: 縮める
110
+ */
111
+ const clsLayoutAdjustXShrink = "lx-layout-adjustX-shrink";
112
+ /**
113
+ * 子要素の高さ調整: なし
114
+ */
115
+ const clsLayoutAdjustYNone = "lx-layout-adjustY-none";
116
+ /**
117
+ * 子要素の高さ調整: 伸ばす & 縮める
118
+ */
119
+ const clsLayoutAdjustYFit = "lx-layout-adjustY-fit";
120
+ /**
121
+ * 子要素の高さ調整: 伸ばす
122
+ */
123
+ const clsLayoutAdjustYExpand = "lx-layout-adjustY-grow";
124
+ /**
125
+ * 子要素の高さ調整: 縮める
126
+ */
127
+ const clsLayoutAdjustYShrink = "lx-layout-adjustY-shrink";
128
+ /**
129
+ * 間隔: 横方向
130
+ */
131
+ const clsLayoutGapX = "lx-layout-gapX";
132
+ /**
133
+ * 間隔: 縦方向
134
+ */
135
+ const clsLayoutGapY = "lx-layout-gapY";
136
+ /**
137
+ * 子要素の幅
138
+ */
139
+ const clsLayoutItemSizeX = "lx-layout-itemSizeX";
140
+ /**
141
+ * 子要素の高さ
142
+ */
143
+ const clsLayoutItemSizeY = "lx-layout-itemSizeY";
144
+ /**
145
+ * 子要素の縦横比
146
+ */
147
+ const clsLayoutItemRatio = "lx-layout-itemRatio";
148
+ /**
149
+ * 子要素の横方向の数
150
+ */
151
+ const clsLayoutItemCountX = "lx-layout-itemCountX";
152
+ /**
153
+ * 子要素の縦方向の数
154
+ */
155
+ const clsLayoutItemCountY = "lx-layout-itemCountY";
156
+ /**
157
+ * 横方向のテンプレート
158
+ */
159
+ const clsLayoutTemplateX = "lx-layout-templateX";
160
+ /**
161
+ * 縦方向のテンプレート
162
+ */
163
+ const clsLayoutTemplateY = "lx-layout-templateY";
164
+ /**
165
+ * 変数\
166
+ * 間隔: 横方向
167
+ */
168
+ const varLayoutGapX = "--lx-layout-gapX";
169
+ /**
170
+ * 変数\
171
+ * 間隔: 縦方向
172
+ */
173
+ const varLayoutGapY = "--lx-layout-gapY";
174
+ /**
175
+ * 変数\
176
+ * 子要素の幅
177
+ */
178
+ const varLayoutItemSizeX = "--lx-layout-itemSizeX";
179
+ /**
180
+ * 変数\
181
+ * 子要素の高さ
182
+ */
183
+ const varLayoutItemSizeY = "--lx-layout-itemSizeY";
184
+ /**
185
+ * 変数\
186
+ * 子要素の縦横比
187
+ */
188
+ const varLayoutItemRatio = "--lx-layout-itemRatio";
189
+ /**
190
+ * 変数\
191
+ * 子要素の横方向の数
192
+ */
193
+ const varLayoutItemCountX = "--lx-layout-itemCountX";
194
+ /**
195
+ * 変数\
196
+ * 子要素の縦方向の数
197
+ */
198
+ const varLayoutItemCountY = "--lx-layout-itemCountY";
199
+ /**
200
+ * 変数\
201
+ * 横方向のテンプレート
202
+ */
203
+ const varLayoutTemplateX = "--lx-layout-templateX";
204
+ /**
205
+ * 変数\
206
+ * 縦方向のテンプレート
207
+ */
208
+ const varLayoutTemplateY = "--lx-layout-templateY";
209
+ /**
210
+ * axis毎のクラス
211
+ */
212
+ const clsLayout = {
213
+ direction: {
214
+ x: clsLayoutDirectionX,
215
+ y: clsLayoutDirectionY
216
+ },
217
+ align: {
218
+ x: {
219
+ left: clsLayoutAlignXLeft,
220
+ center: clsLayoutAlignXCenter,
221
+ right: clsLayoutAlignXRight,
222
+ "space-between": clsLayoutAlignXSpaceBetween,
223
+ "space-around": clsLayoutAlignXSpaceAround,
224
+ "space-evenly": clsLayoutAlignXSpaceEvenly
225
+ },
226
+ y: {
227
+ top: clsLayoutAlignYTop,
228
+ middle: clsLayoutAlignYMiddle,
229
+ bottom: clsLayoutAlignYBottom,
230
+ "space-between": clsLayoutAlignYSpaceBetween,
231
+ "space-around": clsLayoutAlignYSpaceAround,
232
+ "space-evenly": clsLayoutAlignYSpaceEvenly
233
+ }
234
+ },
235
+ adjust: {
236
+ x: {
237
+ none: clsLayoutAdjustXNone,
238
+ fit: clsLayoutAdjustXFit,
239
+ grow: clsLayoutAdjustXExpand,
240
+ shrink: clsLayoutAdjustXShrink
241
+ },
242
+ y: {
243
+ none: clsLayoutAdjustYNone,
244
+ fit: clsLayoutAdjustYFit,
245
+ grow: clsLayoutAdjustYExpand,
246
+ shrink: clsLayoutAdjustYShrink
247
+ }
248
+ },
249
+ itemSize: {
250
+ x: clsLayoutItemSizeX,
251
+ y: clsLayoutItemSizeY
252
+ },
253
+ template: {
254
+ x: clsLayoutTemplateX,
255
+ y: clsLayoutTemplateY
256
+ }
257
+ };
258
+ /**
259
+ * axis毎の変数
260
+ */
261
+ const varLayout = {
262
+ itemSize: {
263
+ x: varLayoutItemSizeX,
264
+ y: varLayoutItemSizeY
265
+ },
266
+ template: {
267
+ x: varLayoutTemplateX,
268
+ y: varLayoutTemplateY
269
+ },
270
+ gap: {
271
+ x: varLayoutGapX,
272
+ y: varLayoutGapY
273
+ }
274
+ };
275
+
276
+ //#endregion
277
+ exports.clsLayout = clsLayout;
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.clsLayoutDirectionX = clsLayoutDirectionX;
301
+ exports.clsLayoutDirectionY = clsLayoutDirectionY;
302
+ exports.clsLayoutFlow = clsLayoutFlow;
303
+ exports.clsLayoutGapX = clsLayoutGapX;
304
+ exports.clsLayoutGapY = clsLayoutGapY;
305
+ exports.clsLayoutItemCountX = clsLayoutItemCountX;
306
+ exports.clsLayoutItemCountY = clsLayoutItemCountY;
307
+ exports.clsLayoutItemRatio = clsLayoutItemRatio;
308
+ exports.clsLayoutItemSizeX = clsLayoutItemSizeX;
309
+ exports.clsLayoutItemSizeY = clsLayoutItemSizeY;
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.varLayoutGapX = varLayoutGapX;
320
+ exports.varLayoutGapY = varLayoutGapY;
321
+ exports.varLayoutItemCountX = varLayoutItemCountX;
322
+ exports.varLayoutItemCountY = varLayoutItemCountY;
323
+ exports.varLayoutItemRatio = varLayoutItemRatio;
324
+ exports.varLayoutItemSizeX = varLayoutItemSizeX;
325
+ exports.varLayoutItemSizeY = varLayoutItemSizeY;
326
+ exports.varLayoutTemplateX = varLayoutTemplateX;
327
+ exports.varLayoutTemplateY = varLayoutTemplateY;
@@ -0,0 +1,237 @@
1
+ import { Adjust, AlignX, AlignY, Direction } from "./constants.cjs";
2
+
3
+ //#region src/_constants.d.ts
4
+ /**
5
+ * レイアウト種別: stack
6
+ */
7
+ declare const clsLayoutStack = "lx-layout-stack";
8
+ /**
9
+ * レイアウト種別: flow
10
+ */
11
+ declare const clsLayoutFlow = "lx-layout-flow";
12
+ /**
13
+ * レイアウト種別: tile
14
+ */
15
+ declare const clsLayoutTile = "lx-layout-tile";
16
+ /**
17
+ * レイアウト種別: matrix
18
+ */
19
+ declare const clsLayoutMatrix = "lx-layout-matrix";
20
+ /**
21
+ * レイアウト種別: center
22
+ */
23
+ declare const clsLayoutCenter = "lx-layout-center";
24
+ /**
25
+ * レイアウト種別: pack
26
+ */
27
+ declare const clsLayoutPack = "lx-layout-pack";
28
+ /**
29
+ * レイアウト種別: balance
30
+ */
31
+ declare const clsLayoutBalance = "lx-layout-balance";
32
+ /**
33
+ * レイアウト種別: layer
34
+ */
35
+ declare const clsLayoutLayer = "lx-layout-layer";
36
+ /**
37
+ * レイアウト種別: pin
38
+ */
39
+ declare const clsLayoutPin = "lx-layout-pin";
40
+ /**
41
+ * 整列: 横方向
42
+ */
43
+ declare const clsLayoutDirectionX = "lx-layout-direction-x";
44
+ /**
45
+ * 整列: 縦方向
46
+ */
47
+ declare const clsLayoutDirectionY = "lx-layout-direction-y";
48
+ /**
49
+ * 横位置: 左
50
+ */
51
+ declare const clsLayoutAlignXLeft = "lx-layout-alignX-left";
52
+ /**
53
+ * 横位置: 中央
54
+ */
55
+ declare const clsLayoutAlignXCenter = "lx-layout-alignX-center";
56
+ /**
57
+ * 横位置: 右
58
+ */
59
+ declare const clsLayoutAlignXRight = "lx-layout-alignX-right";
60
+ /**
61
+ * 横位置: 両端揃え
62
+ */
63
+ declare const clsLayoutAlignXSpaceBetween = "lx-layout-alignX-spaceBetween";
64
+ /**
65
+ * 横位置: 両端余白あり均等
66
+ */
67
+ declare const clsLayoutAlignXSpaceAround = "lx-layout-alignX-spaceAround";
68
+ /**
69
+ * 横位置: 完全均等
70
+ */
71
+ declare const clsLayoutAlignXSpaceEvenly = "lx-layout-alignX-spaceEvenly";
72
+ /**
73
+ * 縦位置: 上
74
+ */
75
+ declare const clsLayoutAlignYTop = "lx-layout-alignY-top";
76
+ /**
77
+ * 縦位置: 中央
78
+ */
79
+ declare const clsLayoutAlignYMiddle = "lx-layout-alignY-middle";
80
+ /**
81
+ * 縦位置: 下
82
+ */
83
+ declare const clsLayoutAlignYBottom = "lx-layout-alignY-bottom";
84
+ /**
85
+ * 縦位置: 両端揃え
86
+ */
87
+ declare const clsLayoutAlignYSpaceBetween = "lx-layout-alignY-spaceBetween";
88
+ /**
89
+ * 縦位置: 両端余白あり均等
90
+ */
91
+ declare const clsLayoutAlignYSpaceAround = "lx-layout-alignY-spaceAround";
92
+ /**
93
+ * 縦位置: 完全均等
94
+ */
95
+ declare const clsLayoutAlignYSpaceEvenly = "lx-layout-alignY-spaceEvenly";
96
+ /**
97
+ * 子要素の幅調整: なし
98
+ */
99
+ declare const clsLayoutAdjustXNone = "lx-layout-adjustX-none";
100
+ /**
101
+ * 子要素の幅調整: 伸ばす & 縮める
102
+ */
103
+ declare const clsLayoutAdjustXFit = "lx-layout-adjustX-fit";
104
+ /**
105
+ * 子要素の幅調整: 伸ばす
106
+ */
107
+ declare const clsLayoutAdjustXExpand = "lx-layout-adjustX-grow";
108
+ /**
109
+ * 子要素の幅調整: 縮める
110
+ */
111
+ declare const clsLayoutAdjustXShrink = "lx-layout-adjustX-shrink";
112
+ /**
113
+ * 子要素の高さ調整: なし
114
+ */
115
+ declare const clsLayoutAdjustYNone = "lx-layout-adjustY-none";
116
+ /**
117
+ * 子要素の高さ調整: 伸ばす & 縮める
118
+ */
119
+ declare const clsLayoutAdjustYFit = "lx-layout-adjustY-fit";
120
+ /**
121
+ * 子要素の高さ調整: 伸ばす
122
+ */
123
+ declare const clsLayoutAdjustYExpand = "lx-layout-adjustY-grow";
124
+ /**
125
+ * 子要素の高さ調整: 縮める
126
+ */
127
+ declare const clsLayoutAdjustYShrink = "lx-layout-adjustY-shrink";
128
+ /**
129
+ * 間隔: 横方向
130
+ */
131
+ declare const clsLayoutGapX = "lx-layout-gapX";
132
+ /**
133
+ * 間隔: 縦方向
134
+ */
135
+ declare const clsLayoutGapY = "lx-layout-gapY";
136
+ /**
137
+ * 子要素の幅
138
+ */
139
+ declare const clsLayoutItemSizeX = "lx-layout-itemSizeX";
140
+ /**
141
+ * 子要素の高さ
142
+ */
143
+ declare const clsLayoutItemSizeY = "lx-layout-itemSizeY";
144
+ /**
145
+ * 子要素の縦横比
146
+ */
147
+ declare const clsLayoutItemRatio = "lx-layout-itemRatio";
148
+ /**
149
+ * 子要素の横方向の数
150
+ */
151
+ declare const clsLayoutItemCountX = "lx-layout-itemCountX";
152
+ /**
153
+ * 子要素の縦方向の数
154
+ */
155
+ declare const clsLayoutItemCountY = "lx-layout-itemCountY";
156
+ /**
157
+ * 横方向のテンプレート
158
+ */
159
+ declare const clsLayoutTemplateX = "lx-layout-templateX";
160
+ /**
161
+ * 縦方向のテンプレート
162
+ */
163
+ declare const clsLayoutTemplateY = "lx-layout-templateY";
164
+ /**
165
+ * 変数\
166
+ * 間隔: 横方向
167
+ */
168
+ declare const varLayoutGapX = "--lx-layout-gapX";
169
+ /**
170
+ * 変数\
171
+ * 間隔: 縦方向
172
+ */
173
+ declare const varLayoutGapY = "--lx-layout-gapY";
174
+ /**
175
+ * 変数\
176
+ * 子要素の幅
177
+ */
178
+ declare const varLayoutItemSizeX = "--lx-layout-itemSizeX";
179
+ /**
180
+ * 変数\
181
+ * 子要素の高さ
182
+ */
183
+ declare const varLayoutItemSizeY = "--lx-layout-itemSizeY";
184
+ /**
185
+ * 変数\
186
+ * 子要素の縦横比
187
+ */
188
+ declare const varLayoutItemRatio = "--lx-layout-itemRatio";
189
+ /**
190
+ * 変数\
191
+ * 子要素の横方向の数
192
+ */
193
+ declare const varLayoutItemCountX = "--lx-layout-itemCountX";
194
+ /**
195
+ * 変数\
196
+ * 子要素の縦方向の数
197
+ */
198
+ declare const varLayoutItemCountY = "--lx-layout-itemCountY";
199
+ /**
200
+ * 変数\
201
+ * 横方向のテンプレート
202
+ */
203
+ declare const varLayoutTemplateX = "--lx-layout-templateX";
204
+ /**
205
+ * 変数\
206
+ * 縦方向のテンプレート
207
+ */
208
+ declare const varLayoutTemplateY = "--lx-layout-templateY";
209
+ /**
210
+ * axis毎のクラス
211
+ */
212
+ declare const clsLayout: {
213
+ direction: Record<Direction, string>;
214
+ align: Record<Direction, Partial<Record<AlignX | AlignY, string>>>;
215
+ adjust: Record<Direction, Record<Adjust, string>>;
216
+ itemSize: Record<Direction, string>;
217
+ template: Record<Direction, string>;
218
+ };
219
+ /**
220
+ * axis毎の変数
221
+ */
222
+ declare const varLayout: {
223
+ readonly itemSize: {
224
+ readonly x: "--lx-layout-itemSizeX";
225
+ readonly y: "--lx-layout-itemSizeY";
226
+ };
227
+ readonly template: {
228
+ readonly x: "--lx-layout-templateX";
229
+ readonly y: "--lx-layout-templateY";
230
+ };
231
+ readonly gap: {
232
+ readonly x: "--lx-layout-gapX";
233
+ readonly y: "--lx-layout-gapY";
234
+ };
235
+ };
236
+ //#endregion
237
+ export { clsLayout, clsLayoutAdjustXExpand, clsLayoutAdjustXFit, clsLayoutAdjustXNone, clsLayoutAdjustXShrink, clsLayoutAdjustYExpand, clsLayoutAdjustYFit, clsLayoutAdjustYNone, clsLayoutAdjustYShrink, clsLayoutAlignXCenter, clsLayoutAlignXLeft, clsLayoutAlignXRight, clsLayoutAlignXSpaceAround, clsLayoutAlignXSpaceBetween, clsLayoutAlignXSpaceEvenly, clsLayoutAlignYBottom, clsLayoutAlignYMiddle, clsLayoutAlignYSpaceAround, clsLayoutAlignYSpaceBetween, clsLayoutAlignYSpaceEvenly, clsLayoutAlignYTop, clsLayoutBalance, clsLayoutCenter, clsLayoutDirectionX, clsLayoutDirectionY, clsLayoutFlow, clsLayoutGapX, clsLayoutGapY, clsLayoutItemCountX, clsLayoutItemCountY, clsLayoutItemRatio, clsLayoutItemSizeX, clsLayoutItemSizeY, clsLayoutLayer, clsLayoutMatrix, clsLayoutPack, clsLayoutPin, clsLayoutStack, clsLayoutTemplateX, clsLayoutTemplateY, clsLayoutTile, varLayout, varLayoutGapX, varLayoutGapY, varLayoutItemCountX, varLayoutItemCountY, varLayoutItemRatio, varLayoutItemSizeX, varLayoutItemSizeY, varLayoutTemplateX, varLayoutTemplateY };