@fringeworks/style-layouts 0.8.0 → 0.8.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.
@@ -2,6 +2,6 @@ import { AdjustOptions, GapOptions, ItemRatioOptions, ItemSizeOptions } from "..
2
2
  import { CenterLayoutOptions } from "../center/types.mjs";
3
3
 
4
4
  //#region src/helpers/extractCenterOptions.d.ts
5
- declare const _default: <T extends Record<string, unknown>>(record: T) => [CenterLayoutOptions, Omit<T, "direction" | keyof AdjustOptions | keyof GapOptions | keyof ItemSizeOptions | keyof ItemRatioOptions>];
5
+ declare const _default: <T extends Record<string, unknown>>(record: T) => [CenterLayoutOptions, Omit<T, keyof AdjustOptions | keyof ItemSizeOptions | keyof ItemRatioOptions | "direction" | keyof GapOptions>];
6
6
  //#endregion
7
7
  export { _default as default };
@@ -2,5 +2,5 @@ import { AlignOptions, GapOptions, ItemRatioOptions, ItemSizeOptions } from "../
2
2
  import { FlowLayoutOptions } from "../flow/types.cjs";
3
3
 
4
4
  //#region src/helpers/extractFlowOptions.d.ts
5
- declare const _default: <T extends Record<string, unknown>>(record: T) => [FlowLayoutOptions, Omit<T, "direction" | "adjustX" | "adjustY" | keyof GapOptions | keyof ItemSizeOptions | keyof ItemRatioOptions | keyof AlignOptions>];
5
+ declare const _default: <T extends Record<string, unknown>>(record: T) => [FlowLayoutOptions, Omit<T, keyof AlignOptions | "adjustX" | "adjustY" | keyof ItemSizeOptions | keyof ItemRatioOptions | "direction" | keyof GapOptions>];
6
6
  export = _default;
@@ -2,6 +2,6 @@ import { AlignOptions, GapOptions, ItemRatioOptions, ItemSizeOptions } from "../
2
2
  import { FlowLayoutOptions } from "../flow/types.mjs";
3
3
 
4
4
  //#region src/helpers/extractFlowOptions.d.ts
5
- declare const _default: <T extends Record<string, unknown>>(record: T) => [FlowLayoutOptions, Omit<T, "direction" | "adjustX" | "adjustY" | keyof GapOptions | keyof ItemSizeOptions | keyof ItemRatioOptions | keyof AlignOptions>];
5
+ declare const _default: <T extends Record<string, unknown>>(record: T) => [FlowLayoutOptions, Omit<T, keyof AlignOptions | "adjustX" | "adjustY" | keyof ItemSizeOptions | keyof ItemRatioOptions | "direction" | keyof GapOptions>];
6
6
  //#endregion
7
7
  export { _default as default };
@@ -2,5 +2,5 @@ import { AdjustOptions, ItemRatioOptions, ItemSizeOptions } from "../_types.cjs"
2
2
  import { LayerLayoutOptions } from "../layer/types.cjs";
3
3
 
4
4
  //#region src/helpers/extractLayerOptions.d.ts
5
- declare const _default: <T extends Record<string, unknown>>(record: T) => [LayerLayoutOptions, Omit<T, keyof AdjustOptions | keyof ItemSizeOptions | keyof ItemRatioOptions | "alignX" | "alignY">];
5
+ declare const _default: <T extends Record<string, unknown>>(record: T) => [LayerLayoutOptions, Omit<T, "alignY" | "alignX" | keyof AdjustOptions | keyof ItemSizeOptions | keyof ItemRatioOptions>];
6
6
  export = _default;
@@ -2,6 +2,6 @@ import { AdjustOptions, ItemRatioOptions, ItemSizeOptions } from "../_types.mjs"
2
2
  import { LayerLayoutOptions } from "../layer/types.mjs";
3
3
 
4
4
  //#region src/helpers/extractLayerOptions.d.ts
5
- declare const _default: <T extends Record<string, unknown>>(record: T) => [LayerLayoutOptions, Omit<T, keyof AdjustOptions | keyof ItemSizeOptions | keyof ItemRatioOptions | "alignX" | "alignY">];
5
+ declare const _default: <T extends Record<string, unknown>>(record: T) => [LayerLayoutOptions, Omit<T, "alignY" | "alignX" | keyof AdjustOptions | keyof ItemSizeOptions | keyof ItemRatioOptions>];
6
6
  //#endregion
7
7
  export { _default as default };
@@ -1,5 +1,5 @@
1
1
  import { MatrixLayoutOptions } from "../matrix/types.cjs";
2
2
 
3
3
  //#region src/helpers/extractMatrixOptions.d.ts
4
- declare const _default: <T extends Record<string, unknown>>(record: T) => [MatrixLayoutOptions, Omit<T, "direction" | "adjustX" | "adjustY" | "gap" | "gapX" | "gapY" | "itemSizeX" | "itemSizeY" | "itemRatioX" | "itemRatioY" | "alignX" | "alignY" | "itemCountX" | "tracksX" | "itemCountY" | "tracksY">];
4
+ declare const _default: <T extends Record<string, unknown>>(record: T) => [MatrixLayoutOptions, Omit<T, "alignY" | "alignX" | "adjustX" | "adjustY" | "itemSizeX" | "itemSizeY" | "itemRatioX" | "itemRatioY" | "direction" | "gap" | "gapX" | "gapY" | "itemCountX" | "tracksX" | "itemCountY" | "tracksY">];
5
5
  export = _default;
@@ -1,6 +1,6 @@
1
1
  import { MatrixLayoutOptions } from "../matrix/types.mjs";
2
2
 
3
3
  //#region src/helpers/extractMatrixOptions.d.ts
4
- declare const _default: <T extends Record<string, unknown>>(record: T) => [MatrixLayoutOptions, Omit<T, "direction" | "adjustX" | "adjustY" | "gap" | "gapX" | "gapY" | "itemSizeX" | "itemSizeY" | "itemRatioX" | "itemRatioY" | "alignX" | "alignY" | "itemCountX" | "tracksX" | "itemCountY" | "tracksY">];
4
+ declare const _default: <T extends Record<string, unknown>>(record: T) => [MatrixLayoutOptions, Omit<T, "alignY" | "alignX" | "adjustX" | "adjustY" | "itemSizeX" | "itemSizeY" | "itemRatioX" | "itemRatioY" | "direction" | "gap" | "gapX" | "gapY" | "itemCountX" | "tracksX" | "itemCountY" | "tracksY">];
5
5
  //#endregion
6
6
  export { _default as default };
@@ -2,5 +2,5 @@ import { AdjustOptions, GapOptions, ItemRatioOptions, ItemSizeOptions } from "..
2
2
  import { StackLayoutOptions } from "../stack/types.cjs";
3
3
 
4
4
  //#region src/helpers/extractStackOptions.d.ts
5
- declare const _default: <T extends Record<string, unknown>>(record: T) => [StackLayoutOptions, Omit<T, "direction" | keyof AdjustOptions | keyof GapOptions | keyof ItemSizeOptions | keyof ItemRatioOptions | "alignX" | "alignY">];
5
+ declare const _default: <T extends Record<string, unknown>>(record: T) => [StackLayoutOptions, Omit<T, "alignY" | "alignX" | keyof AdjustOptions | keyof ItemSizeOptions | keyof ItemRatioOptions | "direction" | keyof GapOptions>];
6
6
  export = _default;
@@ -2,6 +2,6 @@ import { AdjustOptions, GapOptions, ItemRatioOptions, ItemSizeOptions } from "..
2
2
  import { StackLayoutOptions } from "../stack/types.mjs";
3
3
 
4
4
  //#region src/helpers/extractStackOptions.d.ts
5
- declare const _default: <T extends Record<string, unknown>>(record: T) => [StackLayoutOptions, Omit<T, "direction" | keyof AdjustOptions | keyof GapOptions | keyof ItemSizeOptions | keyof ItemRatioOptions | "alignX" | "alignY">];
5
+ declare const _default: <T extends Record<string, unknown>>(record: T) => [StackLayoutOptions, Omit<T, "alignY" | "alignX" | keyof AdjustOptions | keyof ItemSizeOptions | keyof ItemRatioOptions | "direction" | keyof GapOptions>];
6
6
  //#endregion
7
7
  export { _default as default };
@@ -2,5 +2,5 @@ import { AdjustOptions, AlignOptions, GapOptions, ItemRatioOptions, ItemSizeOpti
2
2
  import { TileLayoutOptions } from "../tile/types.cjs";
3
3
 
4
4
  //#region src/helpers/extractTileOptions.d.ts
5
- declare const _default: <T extends Record<string, unknown>>(record: T) => [TileLayoutOptions, Omit<T, "direction" | keyof AdjustOptions | keyof GapOptions | keyof ItemSizeOptions | keyof ItemRatioOptions | keyof AlignOptions>];
5
+ declare const _default: <T extends Record<string, unknown>>(record: T) => [TileLayoutOptions, Omit<T, keyof AlignOptions | keyof AdjustOptions | keyof ItemSizeOptions | keyof ItemRatioOptions | "direction" | keyof GapOptions>];
6
6
  export = _default;
@@ -2,6 +2,6 @@ import { AdjustOptions, AlignOptions, GapOptions, ItemRatioOptions, ItemSizeOpti
2
2
  import { TileLayoutOptions } from "../tile/types.mjs";
3
3
 
4
4
  //#region src/helpers/extractTileOptions.d.ts
5
- declare const _default: <T extends Record<string, unknown>>(record: T) => [TileLayoutOptions, Omit<T, "direction" | keyof AdjustOptions | keyof GapOptions | keyof ItemSizeOptions | keyof ItemRatioOptions | keyof AlignOptions>];
5
+ declare const _default: <T extends Record<string, unknown>>(record: T) => [TileLayoutOptions, Omit<T, keyof AlignOptions | keyof AdjustOptions | keyof ItemSizeOptions | keyof ItemRatioOptions | "direction" | keyof GapOptions>];
6
6
  //#endregion
7
7
  export { _default as default };
package/layer/styles.css CHANGED
@@ -1,56 +1,56 @@
1
- .lx-layout-layer {
2
- --lx-layout-itemSizeX: auto;
3
- --lx-layout-itemSizeY: auto;
4
- --lx-layout-itemRatio: auto;
1
+ .frg-layout-layer {
2
+ --frg-layout-itemSizeX: auto;
3
+ --frg-layout-itemSizeY: auto;
4
+ --frg-layout-itemRatio: auto;
5
5
  display: grid;
6
6
  }
7
- .lx-layout-layer > * {
7
+ .frg-layout-layer > * {
8
8
  grid-area: 1/1;
9
9
  }
10
- .lx-layout-layer.lx-layout-alignX-left > * {
10
+ .frg-layout-layer.frg-layout-alignX-left > * {
11
11
  justify-self: start;
12
12
  }
13
- .lx-layout-layer.lx-layout-alignX-center > * {
13
+ .frg-layout-layer.frg-layout-alignX-center > * {
14
14
  justify-self: center;
15
15
  }
16
- .lx-layout-layer.lx-layout-alignX-right > * {
16
+ .frg-layout-layer.frg-layout-alignX-right > * {
17
17
  justify-self: end;
18
18
  }
19
- .lx-layout-layer.lx-layout-alignY-top > * {
19
+ .frg-layout-layer.frg-layout-alignY-top > * {
20
20
  align-self: start;
21
21
  }
22
- .lx-layout-layer.lx-layout-alignY-middle > * {
22
+ .frg-layout-layer.frg-layout-alignY-middle > * {
23
23
  align-self: center;
24
24
  }
25
- .lx-layout-layer.lx-layout-alignY-bottom > * {
25
+ .frg-layout-layer.frg-layout-alignY-bottom > * {
26
26
  align-self: end;
27
27
  }
28
- .lx-layout-layer.lx-layout-itemSizeX > * {
29
- width: var(--lx-layout-itemSizeX);
28
+ .frg-layout-layer.frg-layout-itemSizeX > * {
29
+ width: var(--frg-layout-itemSizeX);
30
30
  }
31
- .lx-layout-layer.lx-layout-itemSizeY > * {
32
- height: var(--lx-layout-itemSizeY);
31
+ .frg-layout-layer.frg-layout-itemSizeY > * {
32
+ height: var(--frg-layout-itemSizeY);
33
33
  }
34
- .lx-layout-layer.lx-layout-adjustX-fit > *, .lx-layout-layer.lx-layout-adjustX-grow > * {
34
+ .frg-layout-layer.frg-layout-adjustX-fit > *, .frg-layout-layer.frg-layout-adjustX-grow > * {
35
35
  justify-self: stretch;
36
36
  width: auto;
37
37
  }
38
- .lx-layout-layer.lx-layout-adjustX-grow > * {
39
- min-width: var(--lx-layout-itemSizeX);
38
+ .frg-layout-layer.frg-layout-adjustX-grow > * {
39
+ min-width: var(--frg-layout-itemSizeX);
40
40
  }
41
- .lx-layout-layer.lx-layout-adjustX-shrink > * {
42
- width: clamp(0px, 100%, var(--lx-layout-itemSizeX));
41
+ .frg-layout-layer.frg-layout-adjustX-shrink > * {
42
+ width: clamp(0px, 100%, var(--frg-layout-itemSizeX));
43
43
  }
44
- .lx-layout-layer.lx-layout-adjustY-fit > *, .lx-layout-layer.lx-layout-adjustY-grow > * {
44
+ .frg-layout-layer.frg-layout-adjustY-fit > *, .frg-layout-layer.frg-layout-adjustY-grow > * {
45
45
  align-self: stretch;
46
46
  height: auto;
47
47
  }
48
- .lx-layout-layer.lx-layout-adjustY-grow > * {
49
- min-height: var(--lx-layout-itemSizeY);
48
+ .frg-layout-layer.frg-layout-adjustY-grow > * {
49
+ min-height: var(--frg-layout-itemSizeY);
50
50
  }
51
- .lx-layout-layer.lx-layout-adjustY-shrink > * {
52
- height: clamp(0px, 100%, var(--lx-layout-itemSizeY));
51
+ .frg-layout-layer.frg-layout-adjustY-shrink > * {
52
+ height: clamp(0px, 100%, var(--frg-layout-itemSizeY));
53
53
  }
54
- .lx-layout-layer.lx-layout-itemRatio > * {
55
- aspect-ratio: var(--lx-layout-itemRatio);
54
+ .frg-layout-layer.frg-layout-itemRatio > * {
55
+ aspect-ratio: var(--frg-layout-itemRatio);
56
56
  }
package/matrix/styles.css CHANGED
@@ -1,141 +1,141 @@
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;
1
+ .frg-layout-matrix {
2
+ --frg-layout-gapX: 0px;
3
+ --frg-layout-gapY: 0px;
4
+ --frg-layout-itemSizeX: auto;
5
+ --frg-layout-itemSizeY: auto;
6
+ --frg-layout-itemRatio: auto;
7
+ --frg-layout-itemCountX: auto-fit;
8
+ --frg-layout-itemCountY: auto-fit;
9
+ --frg-layout-templateX: none;
10
+ --frg-layout-templateY: none;
11
11
  display: grid;
12
12
  }
13
- .lx-layout-matrix.lx-layout-direction-x {
13
+ .frg-layout-matrix.frg-layout-direction-x {
14
14
  grid-auto-flow: row;
15
15
  }
16
- .lx-layout-matrix.lx-layout-direction-y {
16
+ .frg-layout-matrix.frg-layout-direction-y {
17
17
  grid-auto-flow: column;
18
18
  }
19
- .lx-layout-matrix.lx-layout-alignX-left {
19
+ .frg-layout-matrix.frg-layout-alignX-left {
20
20
  justify-content: flex-start;
21
21
  }
22
- .lx-layout-matrix.lx-layout-alignX-center {
22
+ .frg-layout-matrix.frg-layout-alignX-center {
23
23
  justify-content: center;
24
24
  }
25
- .lx-layout-matrix.lx-layout-alignX-right {
25
+ .frg-layout-matrix.frg-layout-alignX-right {
26
26
  justify-content: flex-end;
27
27
  }
28
- .lx-layout-matrix.lx-layout-alignX-spaceBetween {
28
+ .frg-layout-matrix.frg-layout-alignX-spaceBetween {
29
29
  justify-content: space-between;
30
30
  }
31
- .lx-layout-matrix.lx-layout-alignX-spaceAround {
31
+ .frg-layout-matrix.frg-layout-alignX-spaceAround {
32
32
  justify-content: space-around;
33
33
  }
34
- .lx-layout-matrix.lx-layout-alignX-spaceEvenly {
34
+ .frg-layout-matrix.frg-layout-alignX-spaceEvenly {
35
35
  justify-content: space-evenly;
36
36
  }
37
- .lx-layout-matrix.lx-layout-alignY-top {
37
+ .frg-layout-matrix.frg-layout-alignY-top {
38
38
  align-content: flex-start;
39
39
  }
40
- .lx-layout-matrix.lx-layout-alignY-middle {
40
+ .frg-layout-matrix.frg-layout-alignY-middle {
41
41
  align-content: center;
42
42
  }
43
- .lx-layout-matrix.lx-layout-alignY-bottom {
43
+ .frg-layout-matrix.frg-layout-alignY-bottom {
44
44
  align-content: flex-end;
45
45
  }
46
- .lx-layout-matrix.lx-layout-alignY-spaceBetween {
46
+ .frg-layout-matrix.frg-layout-alignY-spaceBetween {
47
47
  align-content: space-between;
48
48
  }
49
- .lx-layout-matrix.lx-layout-alignY-spaceAround {
49
+ .frg-layout-matrix.frg-layout-alignY-spaceAround {
50
50
  align-content: space-around;
51
51
  }
52
- .lx-layout-matrix.lx-layout-alignY-spaceEvenly {
52
+ .frg-layout-matrix.frg-layout-alignY-spaceEvenly {
53
53
  align-content: space-evenly;
54
54
  }
55
- .lx-layout-matrix.lx-layout-itemSizeX {
56
- grid-template-columns: repeat(auto-fit, var(--lx-layout-itemSizeX));
55
+ .frg-layout-matrix.frg-layout-itemSizeX {
56
+ grid-template-columns: repeat(auto-fit, var(--frg-layout-itemSizeX));
57
57
  }
58
- .lx-layout-matrix.lx-layout-itemSizeX.lx-layout-itemCountX {
59
- grid-template-columns: repeat(var(--lx-layout-itemCountX), var(--lx-layout-itemSizeX));
58
+ .frg-layout-matrix.frg-layout-itemSizeX.frg-layout-itemCountX {
59
+ grid-template-columns: repeat(var(--frg-layout-itemCountX), var(--frg-layout-itemSizeX));
60
60
  }
61
- .lx-layout-matrix.lx-layout-itemCountX {
62
- grid-template-columns: repeat(var(--lx-layout-itemCountX), auto);
61
+ .frg-layout-matrix.frg-layout-itemCountX {
62
+ grid-template-columns: repeat(var(--frg-layout-itemCountX), auto);
63
63
  }
64
- .lx-layout-matrix.lx-layout-templateX {
65
- grid-template-columns: var(--lx-layout-templateX);
64
+ .frg-layout-matrix.frg-layout-templateX {
65
+ grid-template-columns: var(--frg-layout-templateX);
66
66
  }
67
- .lx-layout-matrix.lx-layout-adjustX-fit.lx-layout-itemSizeX {
68
- grid-template-columns: repeat(auto-fit, minmax(clamp(0px, 100%, var(--lx-layout-itemSizeX)), 1fr));
67
+ .frg-layout-matrix.frg-layout-adjustX-fit.frg-layout-itemSizeX {
68
+ grid-template-columns: repeat(auto-fit, minmax(clamp(0px, 100%, var(--frg-layout-itemSizeX)), 1fr));
69
69
  }
70
- .lx-layout-matrix.lx-layout-adjustX-fit.lx-layout-itemSizeX.lx-layout-itemCountX {
71
- 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));
70
+ .frg-layout-matrix.frg-layout-adjustX-fit.frg-layout-itemSizeX.frg-layout-itemCountX {
71
+ grid-template-columns: repeat(var(--frg-layout-itemCountX), minmax(clamp(0px, (100% - var(--frg-layout-gapX) * (var(--frg-layout-itemCountX) - 1)) / var(--frg-layout-itemCountX), var(--frg-layout-itemSizeX)), 1fr));
72
72
  }
73
- .lx-layout-matrix.lx-layout-adjustX-fit.lx-layout-itemCountX {
74
- grid-template-columns: repeat(var(--lx-layout-itemCountX), 1fr);
73
+ .frg-layout-matrix.frg-layout-adjustX-fit.frg-layout-itemCountX {
74
+ grid-template-columns: repeat(var(--frg-layout-itemCountX), 1fr);
75
75
  }
76
- .lx-layout-matrix.lx-layout-adjustX-grow.lx-layout-itemSizeX {
77
- grid-template-columns: repeat(auto-fit, minmax(var(--lx-layout-itemSizeX), 1fr));
76
+ .frg-layout-matrix.frg-layout-adjustX-grow.frg-layout-itemSizeX {
77
+ grid-template-columns: repeat(auto-fit, minmax(var(--frg-layout-itemSizeX), 1fr));
78
78
  }
79
- .lx-layout-matrix.lx-layout-adjustX-grow.lx-layout-itemSizeX.lx-layout-itemCountX {
80
- grid-template-columns: repeat(var(--lx-layout-itemCountX), minmax(var(--lx-layout-itemSizeX), 1fr));
79
+ .frg-layout-matrix.frg-layout-adjustX-grow.frg-layout-itemSizeX.frg-layout-itemCountX {
80
+ grid-template-columns: repeat(var(--frg-layout-itemCountX), minmax(var(--frg-layout-itemSizeX), 1fr));
81
81
  }
82
- .lx-layout-matrix.lx-layout-adjustX-grow.lx-layout-itemCountX {
83
- grid-template-columns: repeat(var(--lx-layout-itemCountX), 1fr);
82
+ .frg-layout-matrix.frg-layout-adjustX-grow.frg-layout-itemCountX {
83
+ grid-template-columns: repeat(var(--frg-layout-itemCountX), 1fr);
84
84
  }
85
- .lx-layout-matrix.lx-layout-adjustX-shrink.lx-layout-itemSizeX {
86
- grid-template-columns: repeat(auto-fit, minmax(0, var(--lx-layout-itemSizeX)));
85
+ .frg-layout-matrix.frg-layout-adjustX-shrink.frg-layout-itemSizeX {
86
+ grid-template-columns: repeat(auto-fit, minmax(0, var(--frg-layout-itemSizeX)));
87
87
  }
88
- .lx-layout-matrix.lx-layout-adjustX-shrink.lx-layout-itemSizeX.lx-layout-itemCountX {
89
- grid-template-columns: repeat(var(--lx-layout-itemCountX), minmax(0, var(--lx-layout-itemSizeX)));
88
+ .frg-layout-matrix.frg-layout-adjustX-shrink.frg-layout-itemSizeX.frg-layout-itemCountX {
89
+ grid-template-columns: repeat(var(--frg-layout-itemCountX), minmax(0, var(--frg-layout-itemSizeX)));
90
90
  }
91
- .lx-layout-matrix.lx-layout-adjustX-shrink.lx-layout-itemCountX {
92
- grid-template-columns: repeat(var(--lx-layout-itemCountX), auto);
91
+ .frg-layout-matrix.frg-layout-adjustX-shrink.frg-layout-itemCountX {
92
+ grid-template-columns: repeat(var(--frg-layout-itemCountX), auto);
93
93
  }
94
- .lx-layout-matrix.lx-layout-itemSizeY {
95
- grid-template-rows: repeat(auto-fit, var(--lx-layout-itemSizeY));
94
+ .frg-layout-matrix.frg-layout-itemSizeY {
95
+ grid-template-rows: repeat(auto-fit, var(--frg-layout-itemSizeY));
96
96
  }
97
- .lx-layout-matrix.lx-layout-itemSizeY.lx-layout-itemCountY {
98
- grid-template-rows: repeat(var(--lx-layout-itemCountY), var(--lx-layout-itemSizeY));
97
+ .frg-layout-matrix.frg-layout-itemSizeY.frg-layout-itemCountY {
98
+ grid-template-rows: repeat(var(--frg-layout-itemCountY), var(--frg-layout-itemSizeY));
99
99
  }
100
- .lx-layout-matrix.lx-layout-itemCountY {
101
- grid-template-rows: repeat(var(--lx-layout-itemCountY), auto);
100
+ .frg-layout-matrix.frg-layout-itemCountY {
101
+ grid-template-rows: repeat(var(--frg-layout-itemCountY), auto);
102
102
  }
103
- .lx-layout-matrix.lx-layout-templateY {
104
- grid-template-rows: var(--lx-layout-templateY);
103
+ .frg-layout-matrix.frg-layout-templateY {
104
+ grid-template-rows: var(--frg-layout-templateY);
105
105
  }
106
- .lx-layout-matrix.lx-layout-adjustY-fit.lx-layout-itemSizeY {
107
- grid-template-rows: repeat(auto-fit, minmax(clamp(0px, 100%, var(--lx-layout-itemSizeY)), 1fr));
106
+ .frg-layout-matrix.frg-layout-adjustY-fit.frg-layout-itemSizeY {
107
+ grid-template-rows: repeat(auto-fit, minmax(clamp(0px, 100%, var(--frg-layout-itemSizeY)), 1fr));
108
108
  }
109
- .lx-layout-matrix.lx-layout-adjustY-fit.lx-layout-itemSizeY.lx-layout-itemCountY {
110
- 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));
109
+ .frg-layout-matrix.frg-layout-adjustY-fit.frg-layout-itemSizeY.frg-layout-itemCountY {
110
+ grid-template-rows: repeat(var(--frg-layout-itemCountY), minmax(clamp(0px, (100% - var(--frg-layout-gapY) * (var(--frg-layout-itemCountY) - 1)) / var(--frg-layout-itemCountY), var(--frg-layout-itemSizeY)), 1fr));
111
111
  }
112
- .lx-layout-matrix.lx-layout-adjustY-fit.lx-layout-itemCountY {
113
- grid-template-rows: repeat(var(--lx-layout-itemCountY), 1fr);
112
+ .frg-layout-matrix.frg-layout-adjustY-fit.frg-layout-itemCountY {
113
+ grid-template-rows: repeat(var(--frg-layout-itemCountY), 1fr);
114
114
  }
115
- .lx-layout-matrix.lx-layout-adjustY-grow.lx-layout-itemSizeY {
116
- grid-template-rows: repeat(auto-fit, minmax(var(--lx-layout-itemSizeY), 1fr));
115
+ .frg-layout-matrix.frg-layout-adjustY-grow.frg-layout-itemSizeY {
116
+ grid-template-rows: repeat(auto-fit, minmax(var(--frg-layout-itemSizeY), 1fr));
117
117
  }
118
- .lx-layout-matrix.lx-layout-adjustY-grow.lx-layout-itemSizeY.lx-layout-itemCountY {
119
- grid-template-rows: repeat(var(--lx-layout-itemCountY), minmax(var(--lx-layout-itemSizeY), 1fr));
118
+ .frg-layout-matrix.frg-layout-adjustY-grow.frg-layout-itemSizeY.frg-layout-itemCountY {
119
+ grid-template-rows: repeat(var(--frg-layout-itemCountY), minmax(var(--frg-layout-itemSizeY), 1fr));
120
120
  }
121
- .lx-layout-matrix.lx-layout-adjustY-grow.lx-layout-itemCountY {
122
- grid-template-rows: repeat(var(--lx-layout-itemCountY), 1fr);
121
+ .frg-layout-matrix.frg-layout-adjustY-grow.frg-layout-itemCountY {
122
+ grid-template-rows: repeat(var(--frg-layout-itemCountY), 1fr);
123
123
  }
124
- .lx-layout-matrix.lx-layout-adjustY-shrink.lx-layout-itemSizeY {
125
- grid-template-rows: repeat(auto-fit, minmax(0, var(--lx-layout-itemSizeY)));
124
+ .frg-layout-matrix.frg-layout-adjustY-shrink.frg-layout-itemSizeY {
125
+ grid-template-rows: repeat(auto-fit, minmax(0, var(--frg-layout-itemSizeY)));
126
126
  }
127
- .lx-layout-matrix.lx-layout-adjustY-shrink.lx-layout-itemSizeY.lx-layout-itemCountY {
128
- grid-template-rows: repeat(var(--lx-layout-itemCountY), minmax(0, var(--lx-layout-itemSizeY)));
127
+ .frg-layout-matrix.frg-layout-adjustY-shrink.frg-layout-itemSizeY.frg-layout-itemCountY {
128
+ grid-template-rows: repeat(var(--frg-layout-itemCountY), minmax(0, var(--frg-layout-itemSizeY)));
129
129
  }
130
- .lx-layout-matrix.lx-layout-adjustY-shrink.lx-layout-itemCountY {
131
- grid-template-rows: repeat(var(--lx-layout-itemCountY), auto);
130
+ .frg-layout-matrix.frg-layout-adjustY-shrink.frg-layout-itemCountY {
131
+ grid-template-rows: repeat(var(--frg-layout-itemCountY), auto);
132
132
  }
133
- .lx-layout-matrix.lx-layout-itemRatio > * {
134
- aspect-ratio: var(--lx-layout-itemRatio);
133
+ .frg-layout-matrix.frg-layout-itemRatio > * {
134
+ aspect-ratio: var(--frg-layout-itemRatio);
135
135
  }
136
- .lx-layout-matrix.lx-layout-gapX {
137
- column-gap: var(--lx-layout-gapX);
136
+ .frg-layout-matrix.frg-layout-gapX {
137
+ column-gap: var(--frg-layout-gapX);
138
138
  }
139
- .lx-layout-matrix.lx-layout-gapY {
140
- row-gap: var(--lx-layout-gapY);
139
+ .frg-layout-matrix.frg-layout-gapY {
140
+ row-gap: var(--frg-layout-gapY);
141
141
  }
package/pack/styles.css CHANGED
@@ -1,35 +1,35 @@
1
- .lx-layout-pack {
2
- --lx-layout-gapX: 0px;
3
- --lx-layout-gapY: 0px;
4
- --lx-layout-itemRatio: auto;
1
+ .frg-layout-pack {
2
+ --frg-layout-gapX: 0px;
3
+ --frg-layout-gapY: 0px;
4
+ --frg-layout-itemRatio: auto;
5
5
  display: flex;
6
6
  justify-content: flex-start;
7
7
  align-items: stretch;
8
8
  }
9
- .lx-layout-pack > * {
9
+ .frg-layout-pack > * {
10
10
  flex-basis: 0;
11
11
  flex-grow: 1;
12
12
  flex-shrink: 1;
13
13
  }
14
- .lx-layout-pack.lx-layout-direction-x {
14
+ .frg-layout-pack.frg-layout-direction-x {
15
15
  flex-direction: row;
16
16
  }
17
- .lx-layout-pack.lx-layout-direction-x > * {
17
+ .frg-layout-pack.frg-layout-direction-x > * {
18
18
  min-width: 0;
19
19
  min-height: 100%;
20
20
  max-height: 100%;
21
21
  }
22
- .lx-layout-pack.lx-layout-direction-y {
22
+ .frg-layout-pack.frg-layout-direction-y {
23
23
  flex-direction: column;
24
24
  }
25
- .lx-layout-pack.lx-layout-direction-y > * {
25
+ .frg-layout-pack.frg-layout-direction-y > * {
26
26
  min-height: 0;
27
27
  min-width: 100%;
28
28
  max-width: 100%;
29
29
  }
30
- .lx-layout-pack.lx-layout-gapX {
31
- column-gap: var(--lx-layout-gapX);
30
+ .frg-layout-pack.frg-layout-gapX {
31
+ column-gap: var(--frg-layout-gapX);
32
32
  }
33
- .lx-layout-pack.lx-layout-gapY {
34
- row-gap: var(--lx-layout-gapY);
33
+ .frg-layout-pack.frg-layout-gapY {
34
+ row-gap: var(--frg-layout-gapY);
35
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fringeworks/style-layouts",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "keywords": [
5
5
  "css",
6
6
  "style",
package/pin/styles.css CHANGED
@@ -1,19 +1,19 @@
1
- .lx-layout-pin {
2
- --lx-layout-itemSizeX: auto;
3
- --lx-layout-itemSizeY: auto;
4
- --lx-layout-itemRatio: auto;
1
+ .frg-layout-pin {
2
+ --frg-layout-itemSizeX: auto;
3
+ --frg-layout-itemSizeY: auto;
4
+ --frg-layout-itemRatio: auto;
5
5
  display: block;
6
6
  position: relative;
7
7
  }
8
- .lx-layout-pin > * {
8
+ .frg-layout-pin > * {
9
9
  position: absolute;
10
10
  }
11
- .lx-layout-pin.lx-layout-itemSizeX > * {
12
- width: var(--lx-layout-itemSizeX);
11
+ .frg-layout-pin.frg-layout-itemSizeX > * {
12
+ width: var(--frg-layout-itemSizeX);
13
13
  }
14
- .lx-layout-pin.lx-layout-itemSizeY > * {
15
- height: var(--lx-layout-itemSizeY);
14
+ .frg-layout-pin.frg-layout-itemSizeY > * {
15
+ height: var(--frg-layout-itemSizeY);
16
16
  }
17
- .lx-layout-pin.lx-layout-itemRatio > * {
18
- aspect-ratio: var(--lx-layout-itemRatio);
17
+ .frg-layout-pin.frg-layout-itemRatio > * {
18
+ aspect-ratio: var(--frg-layout-itemRatio);
19
19
  }