@fringeworks/react-layouts 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 (220) hide show
  1. package/LICENSE +21 -0
  2. package/README.ja.md +234 -0
  3. package/README.md +236 -0
  4. package/_internal/_constants.cjs +27 -0
  5. package/_internal/_constants.d.cts +7 -0
  6. package/_internal/_constants.d.mts +7 -0
  7. package/_internal/_constants.mjs +25 -0
  8. package/_internal/applyLayout/applyLayout.cjs +26 -0
  9. package/_internal/applyLayout/applyLayout.d.cts +13 -0
  10. package/_internal/applyLayout/applyLayout.d.mts +14 -0
  11. package/_internal/applyLayout/applyLayout.mjs +24 -0
  12. package/_internal/applyLayout/index.cjs +3 -0
  13. package/_internal/applyLayout/index.d.cts +3 -0
  14. package/_internal/applyLayout/index.d.mts +3 -0
  15. package/_internal/applyLayout/index.mjs +3 -0
  16. package/_internal/applyLayout/types.cjs +0 -0
  17. package/_internal/applyLayout/types.d.cts +37 -0
  18. package/_internal/applyLayout/types.d.mts +37 -0
  19. package/_internal/applyLayout/types.mjs +1 -0
  20. package/_internal/withLayoutBase/index.cjs +3 -0
  21. package/_internal/withLayoutBase/index.d.cts +3 -0
  22. package/_internal/withLayoutBase/index.d.mts +3 -0
  23. package/_internal/withLayoutBase/index.mjs +3 -0
  24. package/_internal/withLayoutBase/types.cjs +0 -0
  25. package/_internal/withLayoutBase/types.d.cts +43 -0
  26. package/_internal/withLayoutBase/types.d.mts +43 -0
  27. package/_internal/withLayoutBase/types.mjs +1 -0
  28. package/_internal/withLayoutBase/withLayoutBase.cjs +50 -0
  29. package/_internal/withLayoutBase/withLayoutBase.d.cts +13 -0
  30. package/_internal/withLayoutBase/withLayoutBase.d.mts +14 -0
  31. package/_internal/withLayoutBase/withLayoutBase.mjs +47 -0
  32. package/_virtual/_rolldown/runtime.cjs +43 -0
  33. package/_virtual/_rolldown/runtime.mjs +18 -0
  34. package/constants.cjs +57 -0
  35. package/constants.d.cts +20 -0
  36. package/constants.d.mts +20 -0
  37. package/constants.mjs +20 -0
  38. package/css/balance.css +171 -0
  39. package/css/center.css +189 -0
  40. package/css/flow.css +205 -0
  41. package/css/layer.css +72 -0
  42. package/css/matrix.css +184 -0
  43. package/css/pack.css +42 -0
  44. package/css/pin.css +23 -0
  45. package/css/stack.css +216 -0
  46. package/css/styles.css +1346 -0
  47. package/css/tile.css +236 -0
  48. package/index.cjs +61 -0
  49. package/index.d.cts +22 -0
  50. package/index.d.mts +22 -0
  51. package/index.mjs +13 -0
  52. package/package.json +56 -0
  53. package/with-css/index.cjs +68 -0
  54. package/with-css/index.d.cts +23 -0
  55. package/with-css/index.d.mts +23 -0
  56. package/with-css/index.mjs +14 -0
  57. package/with-css/styles.cjs +14 -0
  58. package/with-css/styles.d.cts +2 -0
  59. package/with-css/styles.d.mts +2 -0
  60. package/with-css/styles.mjs +8 -0
  61. package/with-css/withBalanceLayout/index.cjs +4 -0
  62. package/with-css/withBalanceLayout/index.d.cts +3 -0
  63. package/with-css/withBalanceLayout/index.d.mts +3 -0
  64. package/with-css/withBalanceLayout/index.mjs +4 -0
  65. package/with-css/withCenterLayout/index.cjs +4 -0
  66. package/with-css/withCenterLayout/index.d.cts +3 -0
  67. package/with-css/withCenterLayout/index.d.mts +3 -0
  68. package/with-css/withCenterLayout/index.mjs +4 -0
  69. package/with-css/withFlowLayout/index.cjs +4 -0
  70. package/with-css/withFlowLayout/index.d.cts +3 -0
  71. package/with-css/withFlowLayout/index.d.mts +3 -0
  72. package/with-css/withFlowLayout/index.mjs +4 -0
  73. package/with-css/withLayerLayout/index.cjs +4 -0
  74. package/with-css/withLayerLayout/index.d.cts +3 -0
  75. package/with-css/withLayerLayout/index.d.mts +3 -0
  76. package/with-css/withLayerLayout/index.mjs +4 -0
  77. package/with-css/withLayout/index.cjs +4 -0
  78. package/with-css/withLayout/index.d.cts +3 -0
  79. package/with-css/withLayout/index.d.mts +3 -0
  80. package/with-css/withLayout/index.mjs +4 -0
  81. package/with-css/withMatrixLayout/index.cjs +4 -0
  82. package/with-css/withMatrixLayout/index.d.cts +3 -0
  83. package/with-css/withMatrixLayout/index.d.mts +3 -0
  84. package/with-css/withMatrixLayout/index.mjs +4 -0
  85. package/with-css/withPackLayout/index.cjs +4 -0
  86. package/with-css/withPackLayout/index.d.cts +3 -0
  87. package/with-css/withPackLayout/index.d.mts +3 -0
  88. package/with-css/withPackLayout/index.mjs +4 -0
  89. package/with-css/withPinLayout/index.cjs +4 -0
  90. package/with-css/withPinLayout/index.d.cts +3 -0
  91. package/with-css/withPinLayout/index.d.mts +3 -0
  92. package/with-css/withPinLayout/index.mjs +4 -0
  93. package/with-css/withStackLayout/index.cjs +4 -0
  94. package/with-css/withStackLayout/index.d.cts +3 -0
  95. package/with-css/withStackLayout/index.d.mts +3 -0
  96. package/with-css/withStackLayout/index.mjs +4 -0
  97. package/with-css/withTileLayout/index.cjs +4 -0
  98. package/with-css/withTileLayout/index.d.cts +3 -0
  99. package/with-css/withTileLayout/index.d.mts +3 -0
  100. package/with-css/withTileLayout/index.mjs +4 -0
  101. package/withBalanceLayout/index.cjs +3 -0
  102. package/withBalanceLayout/index.d.cts +3 -0
  103. package/withBalanceLayout/index.d.mts +3 -0
  104. package/withBalanceLayout/index.mjs +3 -0
  105. package/withBalanceLayout/types.cjs +0 -0
  106. package/withBalanceLayout/types.d.cts +10 -0
  107. package/withBalanceLayout/types.d.mts +10 -0
  108. package/withBalanceLayout/types.mjs +1 -0
  109. package/withBalanceLayout/withBalanceLayout.cjs +18 -0
  110. package/withBalanceLayout/withBalanceLayout.d.cts +12 -0
  111. package/withBalanceLayout/withBalanceLayout.d.mts +13 -0
  112. package/withBalanceLayout/withBalanceLayout.mjs +16 -0
  113. package/withCenterLayout/index.cjs +3 -0
  114. package/withCenterLayout/index.d.cts +3 -0
  115. package/withCenterLayout/index.d.mts +3 -0
  116. package/withCenterLayout/index.mjs +3 -0
  117. package/withCenterLayout/types.cjs +0 -0
  118. package/withCenterLayout/types.d.cts +10 -0
  119. package/withCenterLayout/types.d.mts +10 -0
  120. package/withCenterLayout/types.mjs +1 -0
  121. package/withCenterLayout/withCenterLayout.cjs +18 -0
  122. package/withCenterLayout/withCenterLayout.d.cts +12 -0
  123. package/withCenterLayout/withCenterLayout.d.mts +13 -0
  124. package/withCenterLayout/withCenterLayout.mjs +16 -0
  125. package/withFlowLayout/index.cjs +3 -0
  126. package/withFlowLayout/index.d.cts +3 -0
  127. package/withFlowLayout/index.d.mts +3 -0
  128. package/withFlowLayout/index.mjs +3 -0
  129. package/withFlowLayout/types.cjs +0 -0
  130. package/withFlowLayout/types.d.cts +10 -0
  131. package/withFlowLayout/types.d.mts +10 -0
  132. package/withFlowLayout/types.mjs +1 -0
  133. package/withFlowLayout/withFlowLayout.cjs +18 -0
  134. package/withFlowLayout/withFlowLayout.d.cts +12 -0
  135. package/withFlowLayout/withFlowLayout.d.mts +13 -0
  136. package/withFlowLayout/withFlowLayout.mjs +16 -0
  137. package/withLayerLayout/index.cjs +3 -0
  138. package/withLayerLayout/index.d.cts +3 -0
  139. package/withLayerLayout/index.d.mts +3 -0
  140. package/withLayerLayout/index.mjs +3 -0
  141. package/withLayerLayout/types.cjs +0 -0
  142. package/withLayerLayout/types.d.cts +10 -0
  143. package/withLayerLayout/types.d.mts +10 -0
  144. package/withLayerLayout/types.mjs +1 -0
  145. package/withLayerLayout/withLayerLayout.cjs +18 -0
  146. package/withLayerLayout/withLayerLayout.d.cts +12 -0
  147. package/withLayerLayout/withLayerLayout.d.mts +13 -0
  148. package/withLayerLayout/withLayerLayout.mjs +16 -0
  149. package/withLayout/index.cjs +3 -0
  150. package/withLayout/index.d.cts +3 -0
  151. package/withLayout/index.d.mts +3 -0
  152. package/withLayout/index.mjs +3 -0
  153. package/withLayout/types.cjs +0 -0
  154. package/withLayout/types.d.cts +37 -0
  155. package/withLayout/types.d.mts +37 -0
  156. package/withLayout/types.mjs +1 -0
  157. package/withLayout/withLayout.cjs +48 -0
  158. package/withLayout/withLayout.d.cts +14 -0
  159. package/withLayout/withLayout.d.mts +15 -0
  160. package/withLayout/withLayout.mjs +38 -0
  161. package/withMatrixLayout/index.cjs +3 -0
  162. package/withMatrixLayout/index.d.cts +3 -0
  163. package/withMatrixLayout/index.d.mts +3 -0
  164. package/withMatrixLayout/index.mjs +3 -0
  165. package/withMatrixLayout/types.cjs +0 -0
  166. package/withMatrixLayout/types.d.cts +10 -0
  167. package/withMatrixLayout/types.d.mts +10 -0
  168. package/withMatrixLayout/types.mjs +1 -0
  169. package/withMatrixLayout/withMatrixLayout.cjs +18 -0
  170. package/withMatrixLayout/withMatrixLayout.d.cts +12 -0
  171. package/withMatrixLayout/withMatrixLayout.d.mts +13 -0
  172. package/withMatrixLayout/withMatrixLayout.mjs +16 -0
  173. package/withPackLayout/index.cjs +3 -0
  174. package/withPackLayout/index.d.cts +3 -0
  175. package/withPackLayout/index.d.mts +3 -0
  176. package/withPackLayout/index.mjs +3 -0
  177. package/withPackLayout/types.cjs +0 -0
  178. package/withPackLayout/types.d.cts +10 -0
  179. package/withPackLayout/types.d.mts +10 -0
  180. package/withPackLayout/types.mjs +1 -0
  181. package/withPackLayout/withPackLayout.cjs +18 -0
  182. package/withPackLayout/withPackLayout.d.cts +12 -0
  183. package/withPackLayout/withPackLayout.d.mts +13 -0
  184. package/withPackLayout/withPackLayout.mjs +16 -0
  185. package/withPinLayout/index.cjs +3 -0
  186. package/withPinLayout/index.d.cts +3 -0
  187. package/withPinLayout/index.d.mts +3 -0
  188. package/withPinLayout/index.mjs +3 -0
  189. package/withPinLayout/types.cjs +0 -0
  190. package/withPinLayout/types.d.cts +10 -0
  191. package/withPinLayout/types.d.mts +10 -0
  192. package/withPinLayout/types.mjs +1 -0
  193. package/withPinLayout/withPinLayout.cjs +18 -0
  194. package/withPinLayout/withPinLayout.d.cts +12 -0
  195. package/withPinLayout/withPinLayout.d.mts +13 -0
  196. package/withPinLayout/withPinLayout.mjs +16 -0
  197. package/withStackLayout/index.cjs +3 -0
  198. package/withStackLayout/index.d.cts +3 -0
  199. package/withStackLayout/index.d.mts +3 -0
  200. package/withStackLayout/index.mjs +3 -0
  201. package/withStackLayout/types.cjs +0 -0
  202. package/withStackLayout/types.d.cts +10 -0
  203. package/withStackLayout/types.d.mts +10 -0
  204. package/withStackLayout/types.mjs +1 -0
  205. package/withStackLayout/withStackLayout.cjs +18 -0
  206. package/withStackLayout/withStackLayout.d.cts +12 -0
  207. package/withStackLayout/withStackLayout.d.mts +13 -0
  208. package/withStackLayout/withStackLayout.mjs +16 -0
  209. package/withTileLayout/index.cjs +3 -0
  210. package/withTileLayout/index.d.cts +3 -0
  211. package/withTileLayout/index.d.mts +3 -0
  212. package/withTileLayout/index.mjs +3 -0
  213. package/withTileLayout/types.cjs +0 -0
  214. package/withTileLayout/types.d.cts +10 -0
  215. package/withTileLayout/types.d.mts +10 -0
  216. package/withTileLayout/types.mjs +1 -0
  217. package/withTileLayout/withTileLayout.cjs +18 -0
  218. package/withTileLayout/withTileLayout.d.cts +12 -0
  219. package/withTileLayout/withTileLayout.d.mts +13 -0
  220. package/withTileLayout/withTileLayout.mjs +16 -0
package/css/center.css ADDED
@@ -0,0 +1,189 @@
1
+ .lx-layout-center {
2
+ --lx-layout-gapX: 0px;
3
+ --lx-layout-gapY: 0px;
4
+ --lx-layout-itemSizeX: auto;
5
+ --lx-layout-itemSizeY: auto;
6
+ --lx-layout-itemRatio: auto;
7
+ display: flex;
8
+ justify-content: flex-start;
9
+ align-content: flex-start;
10
+ flex-wrap: nowrap;
11
+ }
12
+
13
+ .lx-layout-center > * {
14
+ min-width: 0;
15
+ max-width: 100%;
16
+ min-height: 0;
17
+ max-height: 100%;
18
+ margin: 0;
19
+ }
20
+
21
+ .lx-layout-center.lx-layout-direction-x {
22
+ flex-direction: row;
23
+ }
24
+
25
+ .lx-layout-center.lx-layout-direction-x > * {
26
+ max-width: none;
27
+ max-height: none;
28
+ flex-grow: 0;
29
+ flex-shrink: 0;
30
+ margin-top: auto;
31
+ margin-bottom: auto;
32
+ }
33
+
34
+ .lx-layout-center.lx-layout-direction-x > *:first-child {
35
+ margin-left: auto;
36
+ }
37
+
38
+ .lx-layout-center.lx-layout-direction-x > *:last-child {
39
+ margin-right: auto;
40
+ }
41
+
42
+ .lx-layout-center.lx-layout-direction-x.lx-layout-itemSizeX > * {
43
+ width: var(--lx-layout-itemSizeX);
44
+ flex-basis: var(--lx-layout-itemSizeX);
45
+ }
46
+
47
+ .lx-layout-center.lx-layout-direction-x.lx-layout-adjustX-fit > * {
48
+ width: 100%;
49
+ max-width: none;
50
+ flex-grow: 1;
51
+ flex-shrink: 1;
52
+ flex-basis: 0%;
53
+ }
54
+
55
+ .lx-layout-center.lx-layout-direction-x.lx-layout-adjustX-grow > * {
56
+ width: 100%;
57
+ min-width: var(--lx-layout-itemSizeX);
58
+ max-width: none;
59
+ flex-grow: 1;
60
+ flex-basis: var(--lx-layout-itemSizeX);
61
+ }
62
+
63
+ .lx-layout-center.lx-layout-direction-x.lx-layout-adjustX-shrink > * {
64
+ width: var(--lx-layout-itemSizeX);
65
+ max-width: 100%;
66
+ flex-shrink: 1;
67
+ flex-basis: var(--lx-layout-itemSizeX);
68
+ }
69
+
70
+ .lx-layout-center.lx-layout-direction-x.lx-layout-itemSizeY > * {
71
+ height: var(--lx-layout-itemSizeY);
72
+ }
73
+
74
+ .lx-layout-center.lx-layout-direction-x.lx-layout-adjustY-fit {
75
+ align-items: stretch;
76
+ }
77
+
78
+ .lx-layout-center.lx-layout-direction-x.lx-layout-adjustY-fit > * {
79
+ height: 100%;
80
+ max-height: none;
81
+ }
82
+
83
+ .lx-layout-center.lx-layout-direction-x.lx-layout-adjustY-grow {
84
+ align-items: stretch;
85
+ }
86
+
87
+ .lx-layout-center.lx-layout-direction-x.lx-layout-adjustY-grow > * {
88
+ height: 100%;
89
+ min-height: var(--lx-layout-itemSizeY);
90
+ max-height: none;
91
+ }
92
+
93
+ .lx-layout-center.lx-layout-direction-x.lx-layout-adjustY-shrink > * {
94
+ height: var(--lx-layout-itemSizeY);
95
+ max-height: 100%;
96
+ margin-top: auto;
97
+ margin-bottom: auto;
98
+ }
99
+
100
+ .lx-layout-center.lx-layout-direction-y {
101
+ flex-direction: column;
102
+ }
103
+
104
+ .lx-layout-center.lx-layout-direction-y > * {
105
+ max-width: none;
106
+ max-height: none;
107
+ flex-grow: 0;
108
+ flex-shrink: 0;
109
+ margin-left: auto;
110
+ margin-right: auto;
111
+ }
112
+
113
+ .lx-layout-center.lx-layout-direction-y > *:first-child {
114
+ margin-top: auto;
115
+ }
116
+
117
+ .lx-layout-center.lx-layout-direction-y > *:last-child {
118
+ margin-bottom: auto;
119
+ }
120
+
121
+ .lx-layout-center.lx-layout-direction-y.lx-layout-itemSizeX > * {
122
+ width: var(--lx-layout-itemSizeX);
123
+ }
124
+
125
+ .lx-layout-center.lx-layout-direction-y.lx-layout-adjustX-fit {
126
+ align-items: stretch;
127
+ }
128
+
129
+ .lx-layout-center.lx-layout-direction-y.lx-layout-adjustX-fit > * {
130
+ width: 100%;
131
+ max-width: none;
132
+ }
133
+
134
+ .lx-layout-center.lx-layout-direction-y.lx-layout-adjustX-grow {
135
+ align-items: stretch;
136
+ }
137
+
138
+ .lx-layout-center.lx-layout-direction-y.lx-layout-adjustX-grow > * {
139
+ width: 100%;
140
+ min-width: var(--lx-layout-itemSizeX);
141
+ max-width: none;
142
+ }
143
+
144
+ .lx-layout-center.lx-layout-direction-y.lx-layout-adjustX-shrink > * {
145
+ width: var(--lx-layout-itemSizeX);
146
+ max-width: 100%;
147
+ margin-left: auto;
148
+ margin-right: auto;
149
+ }
150
+
151
+ .lx-layout-center.lx-layout-direction-y.lx-layout-itemSizeY > * {
152
+ height: var(--lx-layout-itemSizeY);
153
+ flex-basis: var(--lx-layout-itemSizeY);
154
+ }
155
+
156
+ .lx-layout-center.lx-layout-direction-y.lx-layout-adjustY-fit > * {
157
+ height: 100%;
158
+ max-height: none;
159
+ flex-grow: 1;
160
+ flex-shrink: 1;
161
+ flex-basis: 0%;
162
+ }
163
+
164
+ .lx-layout-center.lx-layout-direction-y.lx-layout-adjustY-grow > * {
165
+ height: 100%;
166
+ min-height: var(--lx-layout-itemSizeY);
167
+ max-height: none;
168
+ flex-grow: 1;
169
+ flex-basis: var(--lx-layout-itemSizeY);
170
+ }
171
+
172
+ .lx-layout-center.lx-layout-direction-y.lx-layout-adjustY-shrink > * {
173
+ height: var(--lx-layout-itemSizeY);
174
+ max-height: 100%;
175
+ flex-shrink: 1;
176
+ flex-basis: var(--lx-layout-itemSizeY);
177
+ }
178
+
179
+ .lx-layout-center.lx-layout-itemRatio > * {
180
+ aspect-ratio: var(--lx-layout-itemRatio);
181
+ }
182
+
183
+ .lx-layout-center.lx-layout-gapX {
184
+ column-gap: var(--lx-layout-gapX);
185
+ }
186
+
187
+ .lx-layout-center.lx-layout-gapY {
188
+ row-gap: var(--lx-layout-gapY);
189
+ }
package/css/flow.css ADDED
@@ -0,0 +1,205 @@
1
+ .lx-layout-flow {
2
+ --lx-layout-gapX: 0px;
3
+ --lx-layout-gapY: 0px;
4
+ --lx-layout-itemSizeX: auto;
5
+ --lx-layout-itemSizeY: auto;
6
+ --lx-layout-itemRatio: auto;
7
+ display: flex;
8
+ flex-wrap: wrap;
9
+ }
10
+
11
+ .lx-layout-flow.lx-layout-direction-x {
12
+ flex-direction: row;
13
+ }
14
+
15
+ .lx-layout-flow.lx-layout-direction-x.lx-layout-alignX-left {
16
+ justify-content: flex-start;
17
+ }
18
+
19
+ .lx-layout-flow.lx-layout-direction-x.lx-layout-alignX-center {
20
+ justify-content: center;
21
+ }
22
+
23
+ .lx-layout-flow.lx-layout-direction-x.lx-layout-alignX-right {
24
+ justify-content: flex-end;
25
+ }
26
+
27
+ .lx-layout-flow.lx-layout-direction-x.lx-layout-alignX-spaceBetween {
28
+ justify-content: space-between;
29
+ }
30
+
31
+ .lx-layout-flow.lx-layout-direction-x.lx-layout-alignX-spaceAround {
32
+ justify-content: space-around;
33
+ }
34
+
35
+ .lx-layout-flow.lx-layout-direction-x.lx-layout-alignX-spaceEvenly {
36
+ justify-content: space-evenly;
37
+ }
38
+
39
+ .lx-layout-flow.lx-layout-direction-x.lx-layout-alignY-top {
40
+ align-items: flex-start;
41
+ align-content: flex-start;
42
+ }
43
+
44
+ .lx-layout-flow.lx-layout-direction-x.lx-layout-alignY-middle {
45
+ align-items: center;
46
+ align-content: center;
47
+ }
48
+
49
+ .lx-layout-flow.lx-layout-direction-x.lx-layout-alignY-bottom {
50
+ align-items: flex-end;
51
+ align-content: flex-end;
52
+ }
53
+
54
+ .lx-layout-flow.lx-layout-direction-x.lx-layout-alignY-spaceBetween {
55
+ align-content: space-between;
56
+ }
57
+
58
+ .lx-layout-flow.lx-layout-direction-x.lx-layout-alignY-spaceAround {
59
+ align-content: space-around;
60
+ }
61
+
62
+ .lx-layout-flow.lx-layout-direction-x.lx-layout-alignY-spaceEvenly {
63
+ align-content: space-evenly;
64
+ }
65
+
66
+ .lx-layout-flow.lx-layout-direction-x > * {
67
+ flex-grow: 0;
68
+ flex-shrink: 0;
69
+ min-width: 0;
70
+ min-height: 0;
71
+ }
72
+
73
+ .lx-layout-flow.lx-layout-direction-x.lx-layout-itemSizeX > * {
74
+ flex-basis: var(--lx-layout-itemSizeX);
75
+ }
76
+
77
+ .lx-layout-flow.lx-layout-direction-x.lx-layout-adjustX-fit {
78
+ justify-content: flex-start;
79
+ }
80
+
81
+ .lx-layout-flow.lx-layout-direction-x.lx-layout-adjustX-fit > * {
82
+ flex-grow: 1;
83
+ flex-shrink: 1;
84
+ flex-basis: auto;
85
+ }
86
+
87
+ .lx-layout-flow.lx-layout-direction-x.lx-layout-adjustX-fit.lx-layout-itemSizeX > * {
88
+ flex-basis: var(--lx-layout-itemSizeX);
89
+ }
90
+
91
+ .lx-layout-flow.lx-layout-direction-x.lx-layout-adjustX-grow > * {
92
+ flex-grow: 1;
93
+ }
94
+
95
+ .lx-layout-flow.lx-layout-direction-x.lx-layout-adjustX-shrink > * {
96
+ flex-shrink: 1;
97
+ }
98
+
99
+ .lx-layout-flow.lx-layout-direction-x.lx-layout-itemSizeY > * {
100
+ height: var(--lx-layout-itemSizeY);
101
+ }
102
+
103
+ .lx-layout-flow.lx-layout-direction-y {
104
+ flex-direction: column;
105
+ }
106
+
107
+ .lx-layout-flow.lx-layout-direction-y.lx-layout-alignX-left {
108
+ align-items: flex-start;
109
+ align-content: flex-start;
110
+ }
111
+
112
+ .lx-layout-flow.lx-layout-direction-y.lx-layout-alignX-center {
113
+ align-items: center;
114
+ align-content: center;
115
+ }
116
+
117
+ .lx-layout-flow.lx-layout-direction-y.lx-layout-alignX-right {
118
+ align-items: flex-end;
119
+ align-content: flex-end;
120
+ }
121
+
122
+ .lx-layout-flow.lx-layout-direction-y.lx-layout-alignX-spaceBetween {
123
+ align-content: space-between;
124
+ }
125
+
126
+ .lx-layout-flow.lx-layout-direction-y.lx-layout-alignX-spaceAround {
127
+ align-content: space-around;
128
+ }
129
+
130
+ .lx-layout-flow.lx-layout-direction-y.lx-layout-alignX-spaceEvenly {
131
+ align-content: space-evenly;
132
+ }
133
+
134
+ .lx-layout-flow.lx-layout-direction-y.lx-layout-alignY-top {
135
+ justify-content: flex-start;
136
+ }
137
+
138
+ .lx-layout-flow.lx-layout-direction-y.lx-layout-alignY-middle {
139
+ justify-content: center;
140
+ }
141
+
142
+ .lx-layout-flow.lx-layout-direction-y.lx-layout-alignY-bottom {
143
+ justify-content: flex-end;
144
+ }
145
+
146
+ .lx-layout-flow.lx-layout-direction-y.lx-layout-alignY-spaceBetween {
147
+ justify-content: space-between;
148
+ }
149
+
150
+ .lx-layout-flow.lx-layout-direction-y.lx-layout-alignY-spaceAround {
151
+ justify-content: space-around;
152
+ }
153
+
154
+ .lx-layout-flow.lx-layout-direction-y.lx-layout-alignY-spaceEvenly {
155
+ justify-content: space-evenly;
156
+ }
157
+
158
+ .lx-layout-flow.lx-layout-direction-y > * {
159
+ flex-grow: 0;
160
+ flex-shrink: 0;
161
+ min-width: 0;
162
+ min-height: 0;
163
+ }
164
+
165
+ .lx-layout-flow.lx-layout-direction-y.lx-layout-itemSizeX > * {
166
+ width: var(--lx-layout-itemSizeX);
167
+ }
168
+
169
+ .lx-layout-flow.lx-layout-direction-y.lx-layout-itemSizeY > * {
170
+ flex-basis: var(--lx-layout-itemSizeY);
171
+ }
172
+
173
+ .lx-layout-flow.lx-layout-direction-y.lx-layout-adjustY-fit {
174
+ justify-content: flex-start;
175
+ }
176
+
177
+ .lx-layout-flow.lx-layout-direction-y.lx-layout-adjustY-fit > * {
178
+ flex-grow: 1;
179
+ flex-shrink: 1;
180
+ flex-basis: auto;
181
+ }
182
+
183
+ .lx-layout-flow.lx-layout-direction-y.lx-layout-adjustY-fit.lx-layout-itemSizeY > * {
184
+ flex-basis: var(--lx-layout-itemSizeY);
185
+ }
186
+
187
+ .lx-layout-flow.lx-layout-direction-y.lx-layout-adjustY-grow > * {
188
+ flex-grow: 1;
189
+ }
190
+
191
+ .lx-layout-flow.lx-layout-direction-y.lx-layout-adjustY-shrink > * {
192
+ flex-shrink: 1;
193
+ }
194
+
195
+ .lx-layout-flow.lx-layout-itemRatio > * {
196
+ aspect-ratio: var(--lx-layout-itemRatio);
197
+ }
198
+
199
+ .lx-layout-flow.lx-layout-gapX {
200
+ column-gap: var(--lx-layout-gapX);
201
+ }
202
+
203
+ .lx-layout-flow.lx-layout-gapY {
204
+ row-gap: var(--lx-layout-gapY);
205
+ }
package/css/layer.css ADDED
@@ -0,0 +1,72 @@
1
+ .lx-layout-layer {
2
+ --lx-layout-itemSizeX: auto;
3
+ --lx-layout-itemSizeY: auto;
4
+ --lx-layout-itemRatio: auto;
5
+ display: grid;
6
+ }
7
+
8
+ .lx-layout-layer > * {
9
+ grid-area: 1/1;
10
+ }
11
+
12
+ .lx-layout-layer.lx-layout-alignX-left > * {
13
+ justify-self: start;
14
+ }
15
+
16
+ .lx-layout-layer.lx-layout-alignX-center > * {
17
+ justify-self: center;
18
+ }
19
+
20
+ .lx-layout-layer.lx-layout-alignX-right > * {
21
+ justify-self: end;
22
+ }
23
+
24
+ .lx-layout-layer.lx-layout-alignY-top > * {
25
+ align-self: start;
26
+ }
27
+
28
+ .lx-layout-layer.lx-layout-alignY-middle > * {
29
+ align-self: center;
30
+ }
31
+
32
+ .lx-layout-layer.lx-layout-alignY-bottom > * {
33
+ align-self: end;
34
+ }
35
+
36
+ .lx-layout-layer.lx-layout-itemSizeX > * {
37
+ width: var(--lx-layout-itemSizeX);
38
+ }
39
+
40
+ .lx-layout-layer.lx-layout-itemSizeY > * {
41
+ height: var(--lx-layout-itemSizeY);
42
+ }
43
+
44
+ .lx-layout-layer.lx-layout-adjustX-fit > *, .lx-layout-layer.lx-layout-adjustX-grow > * {
45
+ justify-self: stretch;
46
+ width: auto;
47
+ }
48
+
49
+ .lx-layout-layer.lx-layout-adjustX-grow > * {
50
+ min-width: var(--lx-layout-itemSizeX);
51
+ }
52
+
53
+ .lx-layout-layer.lx-layout-adjustX-shrink > * {
54
+ width: clamp(0px, 100%, var(--lx-layout-itemSizeX));
55
+ }
56
+
57
+ .lx-layout-layer.lx-layout-adjustY-fit > *, .lx-layout-layer.lx-layout-adjustY-grow > * {
58
+ align-self: stretch;
59
+ height: auto;
60
+ }
61
+
62
+ .lx-layout-layer.lx-layout-adjustY-grow > * {
63
+ min-height: var(--lx-layout-itemSizeY);
64
+ }
65
+
66
+ .lx-layout-layer.lx-layout-adjustY-shrink > * {
67
+ height: clamp(0px, 100%, var(--lx-layout-itemSizeY));
68
+ }
69
+
70
+ .lx-layout-layer.lx-layout-itemRatio > * {
71
+ aspect-ratio: var(--lx-layout-itemRatio);
72
+ }
package/css/matrix.css ADDED
@@ -0,0 +1,184 @@
1
+ .lx-layout-matrix {
2
+ --lx-layout-gapX: 0px;
3
+ --lx-layout-gapY: 0px;
4
+ --lx-layout-itemSizeX: auto;
5
+ --lx-layout-itemSizeY: auto;
6
+ --lx-layout-itemRatio: auto;
7
+ --lx-layout-itemCountX: auto-fit;
8
+ --lx-layout-itemCountY: auto-fit;
9
+ --lx-layout-templateX: none;
10
+ --lx-layout-templateY: none;
11
+ display: grid;
12
+ }
13
+
14
+ .lx-layout-matrix.lx-layout-direction-x {
15
+ grid-auto-flow: row;
16
+ }
17
+
18
+ .lx-layout-matrix.lx-layout-direction-y {
19
+ grid-auto-flow: column;
20
+ }
21
+
22
+ .lx-layout-matrix.lx-layout-alignX-left {
23
+ justify-content: flex-start;
24
+ }
25
+
26
+ .lx-layout-matrix.lx-layout-alignX-center {
27
+ justify-content: center;
28
+ }
29
+
30
+ .lx-layout-matrix.lx-layout-alignX-right {
31
+ justify-content: flex-end;
32
+ }
33
+
34
+ .lx-layout-matrix.lx-layout-alignX-spaceBetween {
35
+ justify-content: space-between;
36
+ }
37
+
38
+ .lx-layout-matrix.lx-layout-alignX-spaceAround {
39
+ justify-content: space-around;
40
+ }
41
+
42
+ .lx-layout-matrix.lx-layout-alignX-spaceEvenly {
43
+ justify-content: space-evenly;
44
+ }
45
+
46
+ .lx-layout-matrix.lx-layout-alignY-top {
47
+ align-content: flex-start;
48
+ }
49
+
50
+ .lx-layout-matrix.lx-layout-alignY-middle {
51
+ align-content: center;
52
+ }
53
+
54
+ .lx-layout-matrix.lx-layout-alignY-bottom {
55
+ align-content: flex-end;
56
+ }
57
+
58
+ .lx-layout-matrix.lx-layout-alignY-spaceBetween {
59
+ align-content: space-between;
60
+ }
61
+
62
+ .lx-layout-matrix.lx-layout-alignY-spaceAround {
63
+ align-content: space-around;
64
+ }
65
+
66
+ .lx-layout-matrix.lx-layout-alignY-spaceEvenly {
67
+ align-content: space-evenly;
68
+ }
69
+
70
+ .lx-layout-matrix.lx-layout-itemSizeX {
71
+ grid-template-columns: repeat(auto-fit, var(--lx-layout-itemSizeX));
72
+ }
73
+
74
+ .lx-layout-matrix.lx-layout-itemSizeX.lx-layout-itemCountX {
75
+ grid-template-columns: repeat(var(--lx-layout-itemCountX), var(--lx-layout-itemSizeX));
76
+ }
77
+
78
+ .lx-layout-matrix.lx-layout-itemCountX {
79
+ grid-template-columns: repeat(var(--lx-layout-itemCountX), auto);
80
+ }
81
+
82
+ .lx-layout-matrix.lx-layout-templateX {
83
+ grid-template-columns: var(--lx-layout-templateX);
84
+ }
85
+
86
+ .lx-layout-matrix.lx-layout-adjustX-fit.lx-layout-itemSizeX {
87
+ grid-template-columns: repeat(auto-fit, minmax(clamp(0px, 100%, var(--lx-layout-itemSizeX)), 1fr));
88
+ }
89
+
90
+ .lx-layout-matrix.lx-layout-adjustX-fit.lx-layout-itemSizeX.lx-layout-itemCountX {
91
+ grid-template-columns: repeat(var(--lx-layout-itemCountX), minmax(clamp(0px, (100% - var(--lx-layout-gapX) * (var(--lx-layout-itemCountX) - 1)) / var(--lx-layout-itemCountX), var(--lx-layout-itemSizeX)), 1fr));
92
+ }
93
+
94
+ .lx-layout-matrix.lx-layout-adjustX-fit.lx-layout-itemCountX {
95
+ grid-template-columns: repeat(var(--lx-layout-itemCountX), 1fr);
96
+ }
97
+
98
+ .lx-layout-matrix.lx-layout-adjustX-grow.lx-layout-itemSizeX {
99
+ grid-template-columns: repeat(auto-fit, minmax(var(--lx-layout-itemSizeX), 1fr));
100
+ }
101
+
102
+ .lx-layout-matrix.lx-layout-adjustX-grow.lx-layout-itemSizeX.lx-layout-itemCountX {
103
+ grid-template-columns: repeat(var(--lx-layout-itemCountX), minmax(var(--lx-layout-itemSizeX), 1fr));
104
+ }
105
+
106
+ .lx-layout-matrix.lx-layout-adjustX-grow.lx-layout-itemCountX {
107
+ grid-template-columns: repeat(var(--lx-layout-itemCountX), 1fr);
108
+ }
109
+
110
+ .lx-layout-matrix.lx-layout-adjustX-shrink.lx-layout-itemSizeX {
111
+ grid-template-columns: repeat(auto-fit, minmax(0, var(--lx-layout-itemSizeX)));
112
+ }
113
+
114
+ .lx-layout-matrix.lx-layout-adjustX-shrink.lx-layout-itemSizeX.lx-layout-itemCountX {
115
+ grid-template-columns: repeat(var(--lx-layout-itemCountX), minmax(0, var(--lx-layout-itemSizeX)));
116
+ }
117
+
118
+ .lx-layout-matrix.lx-layout-adjustX-shrink.lx-layout-itemCountX {
119
+ grid-template-columns: repeat(var(--lx-layout-itemCountX), auto);
120
+ }
121
+
122
+ .lx-layout-matrix.lx-layout-itemSizeY {
123
+ grid-template-rows: repeat(auto-fit, var(--lx-layout-itemSizeY));
124
+ }
125
+
126
+ .lx-layout-matrix.lx-layout-itemSizeY.lx-layout-itemCountY {
127
+ grid-template-rows: repeat(var(--lx-layout-itemCountY), var(--lx-layout-itemSizeY));
128
+ }
129
+
130
+ .lx-layout-matrix.lx-layout-itemCountY {
131
+ grid-template-rows: repeat(var(--lx-layout-itemCountY), auto);
132
+ }
133
+
134
+ .lx-layout-matrix.lx-layout-templateY {
135
+ grid-template-rows: var(--lx-layout-templateY);
136
+ }
137
+
138
+ .lx-layout-matrix.lx-layout-adjustY-fit.lx-layout-itemSizeY {
139
+ grid-template-rows: repeat(auto-fit, minmax(clamp(0px, 100%, var(--lx-layout-itemSizeY)), 1fr));
140
+ }
141
+
142
+ .lx-layout-matrix.lx-layout-adjustY-fit.lx-layout-itemSizeY.lx-layout-itemCountY {
143
+ grid-template-rows: repeat(var(--lx-layout-itemCountY), minmax(clamp(0px, (100% - var(--lx-layout-gapY) * (var(--lx-layout-itemCountY) - 1)) / var(--lx-layout-itemCountY), var(--lx-layout-itemSizeY)), 1fr));
144
+ }
145
+
146
+ .lx-layout-matrix.lx-layout-adjustY-fit.lx-layout-itemCountY {
147
+ grid-template-rows: repeat(var(--lx-layout-itemCountY), 1fr);
148
+ }
149
+
150
+ .lx-layout-matrix.lx-layout-adjustY-grow.lx-layout-itemSizeY {
151
+ grid-template-rows: repeat(auto-fit, minmax(var(--lx-layout-itemSizeY), 1fr));
152
+ }
153
+
154
+ .lx-layout-matrix.lx-layout-adjustY-grow.lx-layout-itemSizeY.lx-layout-itemCountY {
155
+ grid-template-rows: repeat(var(--lx-layout-itemCountY), minmax(var(--lx-layout-itemSizeY), 1fr));
156
+ }
157
+
158
+ .lx-layout-matrix.lx-layout-adjustY-grow.lx-layout-itemCountY {
159
+ grid-template-rows: repeat(var(--lx-layout-itemCountY), 1fr);
160
+ }
161
+
162
+ .lx-layout-matrix.lx-layout-adjustY-shrink.lx-layout-itemSizeY {
163
+ grid-template-rows: repeat(auto-fit, minmax(0, var(--lx-layout-itemSizeY)));
164
+ }
165
+
166
+ .lx-layout-matrix.lx-layout-adjustY-shrink.lx-layout-itemSizeY.lx-layout-itemCountY {
167
+ grid-template-rows: repeat(var(--lx-layout-itemCountY), minmax(0, var(--lx-layout-itemSizeY)));
168
+ }
169
+
170
+ .lx-layout-matrix.lx-layout-adjustY-shrink.lx-layout-itemCountY {
171
+ grid-template-rows: repeat(var(--lx-layout-itemCountY), auto);
172
+ }
173
+
174
+ .lx-layout-matrix.lx-layout-itemRatio > * {
175
+ aspect-ratio: var(--lx-layout-itemRatio);
176
+ }
177
+
178
+ .lx-layout-matrix.lx-layout-gapX {
179
+ column-gap: var(--lx-layout-gapX);
180
+ }
181
+
182
+ .lx-layout-matrix.lx-layout-gapY {
183
+ row-gap: var(--lx-layout-gapY);
184
+ }
package/css/pack.css ADDED
@@ -0,0 +1,42 @@
1
+ .lx-layout-pack {
2
+ --lx-layout-gapX: 0px;
3
+ --lx-layout-gapY: 0px;
4
+ --lx-layout-itemRatio: auto;
5
+ display: flex;
6
+ justify-content: flex-start;
7
+ align-items: stretch;
8
+ }
9
+
10
+ .lx-layout-pack > * {
11
+ flex-basis: 0;
12
+ flex-grow: 1;
13
+ flex-shrink: 1;
14
+ }
15
+
16
+ .lx-layout-pack.lx-layout-direction-x {
17
+ flex-direction: row;
18
+ }
19
+
20
+ .lx-layout-pack.lx-layout-direction-x > * {
21
+ min-width: 0;
22
+ min-height: 100%;
23
+ max-height: 100%;
24
+ }
25
+
26
+ .lx-layout-pack.lx-layout-direction-y {
27
+ flex-direction: column;
28
+ }
29
+
30
+ .lx-layout-pack.lx-layout-direction-y > * {
31
+ min-height: 0;
32
+ min-width: 100%;
33
+ max-width: 100%;
34
+ }
35
+
36
+ .lx-layout-pack.lx-layout-gapX {
37
+ column-gap: var(--lx-layout-gapX);
38
+ }
39
+
40
+ .lx-layout-pack.lx-layout-gapY {
41
+ row-gap: var(--lx-layout-gapY);
42
+ }
package/css/pin.css ADDED
@@ -0,0 +1,23 @@
1
+ .lx-layout-pin {
2
+ --lx-layout-itemSizeX: auto;
3
+ --lx-layout-itemSizeY: auto;
4
+ --lx-layout-itemRatio: auto;
5
+ display: block;
6
+ position: relative;
7
+ }
8
+
9
+ .lx-layout-pin > * {
10
+ position: absolute;
11
+ }
12
+
13
+ .lx-layout-pin.lx-layout-itemSizeX > * {
14
+ width: var(--lx-layout-itemSizeX);
15
+ }
16
+
17
+ .lx-layout-pin.lx-layout-itemSizeY > * {
18
+ height: var(--lx-layout-itemSizeY);
19
+ }
20
+
21
+ .lx-layout-pin.lx-layout-itemRatio > * {
22
+ aspect-ratio: var(--lx-layout-itemRatio);
23
+ }