@arthurzakharov/ui-kit 1.0.112 → 1.0.113
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._Flex_o2d5u_1{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:initial}._FlexGapXxs_o2d5u_8{gap:var(--rm-ui-padding-xxs)}._FlexGapXs_o2d5u_12{gap:var(--rm-ui-padding-xs)}._FlexGapSm_o2d5u_16{gap:var(--rm-ui-padding-sm)}._FlexGapMd_o2d5u_20{gap:var(--rm-ui-padding-md)}._FlexGapLg_o2d5u_24{gap:var(--rm-ui-padding-lg)}._FlexGapXl_o2d5u_28{gap:var(--rm-ui-padding-xl)}._FlexGapXxl_o2d5u_32{gap:var(--rm-ui-padding-xxl)}._FlexGapXxxl_o2d5u_36{gap:var(--rm-ui-padding-xxxl)}._FlexChildGrowContent_o2d5u_40{flex-grow:initial}._FlexChildGrowEqual_o2d5u_44,._FlexChildGrow1_o2d5u_48{flex-grow:1}._FlexChildGrow2_o2d5u_52{flex-grow:2}._FlexChildGrow3_o2d5u_56{flex-grow:3}._FlexChildGrow4_o2d5u_60{flex-grow:4}._FlexDirectionRow_o2d5u_64{flex-direction:row;align-items:flex-start}._FlexDirectionColumn_o2d5u_69{flex-direction:column;align-items:stretch}@media screen and (min-width:768px){._FlexDirectionRow_o2d5u_64._FlexChangeDirectionAfterTabletSize_o2d5u_75{flex-direction:column}._FlexDirectionColumn_o2d5u_69._FlexChangeDirectionAfterTabletSize_o2d5u_75{flex-direction:row}}@media screen and (min-width:1024px){._FlexDirectionRow_o2d5u_64._FlexChangeDirectionAfterLaptopSize_o2d5u_85{flex-direction:column}._FlexDirectionColumn_o2d5u_69._FlexChangeDirectionAfterLaptopSize_o2d5u_85{flex-direction:row}}@media screen and (min-width:1200px){._FlexDirectionRow_o2d5u_64._FlexChangeDirectionAfterPcSize_o2d5u_95{flex-direction:column}._FlexDirectionColumn_o2d5u_69._FlexChangeDirectionAfterPcSize_o2d5u_95{flex-direction:row}}
|
|
@@ -3,7 +3,8 @@ export interface FlexProps extends PropsWithChildren {
|
|
|
3
3
|
gap?: 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'xxxl';
|
|
4
4
|
grow?: 'content' | 'equal' | (1 | 2 | 3 | 4)[];
|
|
5
5
|
direction?: 'column' | 'row';
|
|
6
|
-
changeDirectionAfterTabletSize?:
|
|
7
|
-
changeDirectionAfterLaptopSize?:
|
|
6
|
+
changeDirectionAfterTabletSize?: boolean;
|
|
7
|
+
changeDirectionAfterLaptopSize?: boolean;
|
|
8
|
+
changeDirectionAfterPcSize?: boolean;
|
|
8
9
|
}
|
|
9
10
|
export declare const Flex: (props: FlexProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,56 +1,59 @@
|
|
|
1
1
|
import { jsx as G } from "react/jsx-runtime";
|
|
2
|
-
import { Children as
|
|
2
|
+
import { Children as s, cloneElement as p, isValidElement as d } from "react";
|
|
3
3
|
import t from "clsx";
|
|
4
|
-
import '../../assets/flex-
|
|
4
|
+
import '../../assets/flex-Bb3RqRpb.css';const C = "_Flex_o2d5u_1", h = "_FlexGapXxs_o2d5u_8", u = "_FlexGapXs_o2d5u_12", w = "_FlexGapSm_o2d5u_16", m = "_FlexGapMd_o2d5u_20", A = "_FlexGapLg_o2d5u_24", D = "_FlexGapXl_o2d5u_28", g = "_FlexGapXxl_o2d5u_32", f = "_FlexGapXxxl_o2d5u_36", X = "_FlexChildGrowContent_o2d5u_40", S = "_FlexChildGrowEqual_o2d5u_44", z = "_FlexChildGrow1_o2d5u_48", L = "_FlexChildGrow2_o2d5u_52", y = "_FlexChildGrow3_o2d5u_56", E = "_FlexChildGrow4_o2d5u_60", b = "_FlexDirectionRow_o2d5u_64", q = "_FlexDirectionColumn_o2d5u_69", P = "_FlexChangeDirectionAfterTabletSize_o2d5u_75", T = "_FlexChangeDirectionAfterLaptopSize_o2d5u_85", M = "_FlexChangeDirectionAfterPcSize_o2d5u_95", e = {
|
|
5
5
|
Flex: C,
|
|
6
6
|
FlexGapXxs: h,
|
|
7
|
-
FlexGapXs:
|
|
8
|
-
FlexGapSm:
|
|
9
|
-
FlexGapMd:
|
|
10
|
-
FlexGapLg:
|
|
11
|
-
FlexGapXl:
|
|
12
|
-
FlexGapXxl:
|
|
13
|
-
FlexGapXxxl:
|
|
14
|
-
FlexChildGrowContent:
|
|
15
|
-
FlexChildGrowEqual:
|
|
16
|
-
FlexChildGrow1:
|
|
17
|
-
FlexChildGrow2:
|
|
18
|
-
FlexChildGrow3:
|
|
19
|
-
FlexChildGrow4:
|
|
20
|
-
FlexDirectionRow:
|
|
21
|
-
FlexDirectionColumn:
|
|
22
|
-
FlexChangeDirectionAfterTabletSize:
|
|
23
|
-
FlexChangeDirectionAfterLaptopSize: T
|
|
24
|
-
|
|
7
|
+
FlexGapXs: u,
|
|
8
|
+
FlexGapSm: w,
|
|
9
|
+
FlexGapMd: m,
|
|
10
|
+
FlexGapLg: A,
|
|
11
|
+
FlexGapXl: D,
|
|
12
|
+
FlexGapXxl: g,
|
|
13
|
+
FlexGapXxxl: f,
|
|
14
|
+
FlexChildGrowContent: X,
|
|
15
|
+
FlexChildGrowEqual: S,
|
|
16
|
+
FlexChildGrow1: z,
|
|
17
|
+
FlexChildGrow2: L,
|
|
18
|
+
FlexChildGrow3: y,
|
|
19
|
+
FlexChildGrow4: E,
|
|
20
|
+
FlexDirectionRow: b,
|
|
21
|
+
FlexDirectionColumn: q,
|
|
22
|
+
FlexChangeDirectionAfterTabletSize: P,
|
|
23
|
+
FlexChangeDirectionAfterLaptopSize: T,
|
|
24
|
+
FlexChangeDirectionAfterPcSize: M
|
|
25
|
+
}, v = (a) => {
|
|
25
26
|
const {
|
|
26
|
-
children:
|
|
27
|
-
gap:
|
|
27
|
+
children: n,
|
|
28
|
+
gap: o,
|
|
28
29
|
grow: l,
|
|
29
30
|
direction: i = "row",
|
|
30
|
-
changeDirectionAfterTabletSize:
|
|
31
|
-
changeDirectionAfterLaptopSize: _ = !1
|
|
32
|
-
|
|
31
|
+
changeDirectionAfterTabletSize: F = !1,
|
|
32
|
+
changeDirectionAfterLaptopSize: _ = !1,
|
|
33
|
+
changeDirectionAfterPcSize: c = !1
|
|
34
|
+
} = a;
|
|
33
35
|
return /* @__PURE__ */ G(
|
|
34
36
|
"div",
|
|
35
37
|
{
|
|
36
38
|
className: t(e.Flex, {
|
|
37
|
-
[e.FlexChangeDirectionAfterTabletSize]:
|
|
39
|
+
[e.FlexChangeDirectionAfterTabletSize]: F,
|
|
38
40
|
[e.FlexChangeDirectionAfterLaptopSize]: _,
|
|
41
|
+
[e.FlexChangeDirectionAfterPcSize]: c,
|
|
39
42
|
[e.FlexDirectionColumn]: i === "column",
|
|
40
43
|
[e.FlexDirectionRow]: i === "row",
|
|
41
|
-
[e.FlexGapXxs]:
|
|
42
|
-
[e.FlexGapXs]:
|
|
43
|
-
[e.FlexGapSm]:
|
|
44
|
-
[e.FlexGapMd]:
|
|
45
|
-
[e.FlexGapLg]:
|
|
46
|
-
[e.FlexGapXl]:
|
|
47
|
-
[e.FlexGapXxl]:
|
|
48
|
-
[e.FlexGapXxxl]:
|
|
44
|
+
[e.FlexGapXxs]: o === "xxs",
|
|
45
|
+
[e.FlexGapXs]: o === "xs",
|
|
46
|
+
[e.FlexGapSm]: o === "sm",
|
|
47
|
+
[e.FlexGapMd]: o === "md",
|
|
48
|
+
[e.FlexGapLg]: o === "lg",
|
|
49
|
+
[e.FlexGapXl]: o === "xl",
|
|
50
|
+
[e.FlexGapXxl]: o === "xxl",
|
|
51
|
+
[e.FlexGapXxxl]: o === "xxxl"
|
|
49
52
|
}),
|
|
50
|
-
children:
|
|
51
|
-
|
|
52
|
-
(
|
|
53
|
-
className: t(
|
|
53
|
+
children: s.map(
|
|
54
|
+
n,
|
|
55
|
+
(x, r) => d(x) && l ? p(x, {
|
|
56
|
+
className: t(x.props.className, {
|
|
54
57
|
[e.FlexChildGrowContent]: l === "content",
|
|
55
58
|
[e.FlexChildGrowEqual]: l === "equal",
|
|
56
59
|
[e.FlexChildGrow1]: Array.isArray(l) && l[r] === 1,
|
|
@@ -58,11 +61,11 @@ import '../../assets/flex-BcLkSqmf.css';const C = "_Flex_130zy_1", h = "_FlexGap
|
|
|
58
61
|
[e.FlexChildGrow3]: Array.isArray(l) && l[r] === 3,
|
|
59
62
|
[e.FlexChildGrow4]: Array.isArray(l) && l[r] === 4
|
|
60
63
|
})
|
|
61
|
-
}) :
|
|
64
|
+
}) : x
|
|
62
65
|
)
|
|
63
66
|
}
|
|
64
67
|
);
|
|
65
68
|
};
|
|
66
69
|
export {
|
|
67
|
-
|
|
70
|
+
v as Flex
|
|
68
71
|
};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._Flex_130zy_1{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:initial}._FlexGapXxs_130zy_8{gap:var(--rm-ui-padding-xxs)}._FlexGapXs_130zy_12{gap:var(--rm-ui-padding-xs)}._FlexGapSm_130zy_16{gap:var(--rm-ui-padding-sm)}._FlexGapMd_130zy_20{gap:var(--rm-ui-padding-md)}._FlexGapLg_130zy_24{gap:var(--rm-ui-padding-lg)}._FlexGapXl_130zy_28{gap:var(--rm-ui-padding-xl)}._FlexGapXxl_130zy_32{gap:var(--rm-ui-padding-xxl)}._FlexGapXxxl_130zy_36{gap:var(--rm-ui-padding-xxxl)}._FlexChildGrowContent_130zy_40{flex-grow:initial}._FlexChildGrowEqual_130zy_44,._FlexChildGrow1_130zy_48{flex-grow:1}._FlexChildGrow2_130zy_52{flex-grow:2}._FlexChildGrow3_130zy_56{flex-grow:3}._FlexChildGrow4_130zy_60{flex-grow:4}._FlexDirectionRow_130zy_64{flex-direction:row;align-items:flex-start}._FlexDirectionColumn_130zy_69{flex-direction:column;align-items:stretch}@media screen and (min-width:768px){._FlexDirectionRow_130zy_64._FlexChangeDirectionAfterTabletSize_130zy_75{flex-direction:column}._FlexDirectionColumn_130zy_69._FlexChangeDirectionAfterTabletSize_130zy_75{flex-direction:row}}@media screen and (min-width:1024px){._FlexDirectionRow_130zy_64._FlexChangeDirectionAfterLaptopSize_130zy_85{flex-direction:column}._FlexDirectionColumn_130zy_69._FlexChangeDirectionAfterLaptopSize_130zy_85{flex-direction:row}}
|