@arthurzakharov/ui-kit 1.0.115 → 1.0.117
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/flex-DTQLmbal.css +1 -0
- package/dist/assets/paragraph-BrjH-60G.css +1 -0
- package/dist/components/flex/flex.component.d.ts +2 -1
- package/dist/components/flex/flex.component.js +65 -78
- package/dist/components/text/components/paragraph/paragraph.component.d.ts +1 -0
- package/dist/components/text/components/paragraph/paragraph.component.js +30 -19
- package/package.json +1 -1
- package/dist/assets/flex-BkfG8hLn.css +0 -1
- package/dist/assets/paragraph-CYn0bG_x.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._Flex_1pov9_1{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:initial}._FlexGapXxs_1pov9_8{gap:var(--rm-ui-padding-xxs)}._FlexGapXs_1pov9_12{gap:var(--rm-ui-padding-xs)}._FlexGapSm_1pov9_16{gap:var(--rm-ui-padding-sm)}._FlexGapMd_1pov9_20{gap:var(--rm-ui-padding-md)}._FlexGapLg_1pov9_24{gap:var(--rm-ui-padding-lg)}._FlexGapXl_1pov9_28{gap:var(--rm-ui-padding-xl)}._FlexGapXxl_1pov9_32{gap:var(--rm-ui-padding-xxl)}._FlexGapXxxl_1pov9_36{gap:var(--rm-ui-padding-xxxl)}._FlexMarginTopSm_1pov9_40{margin-top:var(--rm-ui-padding-sm)}._FlexMarginTopMd_1pov9_44{margin-top:var(--rm-ui-padding-md)}._FlexMarginBottomSm_1pov9_48{margin-bottom:var(--rm-ui-padding-sm)}._FlexMarginBottomMd_1pov9_52{margin-bottom:var(--rm-ui-padding-md)}._FlexDirectionRow_1pov9_56{flex-direction:row;align-items:flex-start}._FlexDirectionColumn_1pov9_61{flex-direction:column;align-items:stretch}._FlexAlignCenter_1pov9_66{align-items:center}._FlexAlignStart_1pov9_70{align-items:flex-start}._FlexAlignEnd_1pov9_74{align-items:flex-end}._FlexJustifyCenter_1pov9_78{justify-content:center}._FlexJustifyStart_1pov9_82{justify-content:flex-start}._FlexJustifyEnd_1pov9_86{justify-content:flex-end}@media screen and (min-width:768px){._FlexDirectionRow_1pov9_56._FlexChangeDirectionAfterTabletSize_1pov9_91{flex-direction:column}._FlexDirectionColumn_1pov9_61._FlexChangeDirectionAfterTabletSize_1pov9_91{flex-direction:row}}@media screen and (min-width:1024px){._FlexDirectionRow_1pov9_56._FlexChangeDirectionAfterLaptopSize_1pov9_101{flex-direction:column}._FlexDirectionColumn_1pov9_61._FlexChangeDirectionAfterLaptopSize_1pov9_101{flex-direction:row}}@media screen and (min-width:1200px){._FlexDirectionRow_1pov9_56._FlexChangeDirectionAfterPcSize_1pov9_111{flex-direction:column}._FlexDirectionColumn_1pov9_61._FlexChangeDirectionAfterPcSize_1pov9_111{flex-direction:row}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._ParagraphLined_1dmey_1{text-decoration:underline}._ParagraphWeightLight_1dmey_5{font-weight:var(--rm-ui-font-weight-light)}._ParagraphWeightRegular_1dmey_9{font-weight:var(--rm-ui-font-weight-regular)}._ParagraphWeightMedium_1dmey_13{font-weight:var(--rm-ui-font-weight-medium)}._ParagraphWeightBold_1dmey_17{font-weight:var(--rm-ui-font-weight-bold)}._ParagraphSizeRegular_1dmey_21{font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body)}._ParagraphSizeSmall_1dmey_26{font-size:var(--rm-ui-font-size-body-small);line-height:var(--rm-ui-line-height-body-small)}._ParagraphSizeExtraSmall_1dmey_31{font-size:var(--rm-ui-font-size-body-extra-small);line-height:var(--rm-ui-line-height-body-extra-small)}._ParagraphColorPrimary_1dmey_36{color:var(--rm-ui-color-text-primary)}._ParagraphColorSecondary_1dmey_40{color:var(--rm-ui-color-text-secondary)}._ParagraphColorAccentPrimary_1dmey_44{color:var(--rm-ui-color-accent-primary)}._ParagraphColorAccentSecondary_1dmey_48{color:var(--rm-ui-color-accent-secondary)}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
export interface FlexProps extends PropsWithChildren {
|
|
3
3
|
gap?: 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'xxxl';
|
|
4
|
-
|
|
4
|
+
basis?: string | number;
|
|
5
|
+
grow?: 'content' | 'equal';
|
|
5
6
|
direction?: 'column' | 'row';
|
|
6
7
|
align?: 'center' | 'start' | 'end';
|
|
7
8
|
justify?: 'center' | 'start' | 'end';
|
|
@@ -1,96 +1,83 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Children as
|
|
3
|
-
import
|
|
4
|
-
import '../../assets/flex-
|
|
5
|
-
Flex:
|
|
6
|
-
FlexGapXxs:
|
|
7
|
-
FlexGapXs:
|
|
8
|
-
FlexGapSm:
|
|
9
|
-
FlexGapMd:
|
|
10
|
-
FlexGapLg:
|
|
11
|
-
FlexGapXl:
|
|
12
|
-
FlexGapXxl:
|
|
13
|
-
FlexGapXxxl:
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { Children as s, isValidElement as d } from "react";
|
|
3
|
+
import G from "clsx";
|
|
4
|
+
import '../../assets/flex-DTQLmbal.css';const M = "_Flex_1pov9_1", v = "_FlexGapXxs_1pov9_8", A = "_FlexGapXs_1pov9_12", C = "_FlexGapSm_1pov9_16", u = "_FlexGapMd_1pov9_20", D = "_FlexGapLg_1pov9_24", X = "_FlexGapXl_1pov9_28", h = "_FlexGapXxl_1pov9_32", y = "_FlexGapXxxl_1pov9_36", z = "_FlexMarginTopSm_1pov9_40", T = "_FlexMarginTopMd_1pov9_44", J = "_FlexMarginBottomSm_1pov9_48", B = "_FlexMarginBottomMd_1pov9_52", E = "_FlexDirectionRow_1pov9_56", L = "_FlexDirectionColumn_1pov9_61", b = "_FlexAlignCenter_1pov9_66", w = "_FlexAlignStart_1pov9_70", P = "_FlexAlignEnd_1pov9_74", R = "_FlexJustifyCenter_1pov9_78", $ = "_FlexJustifyStart_1pov9_82", j = "_FlexJustifyEnd_1pov9_86", N = "_FlexChangeDirectionAfterTabletSize_1pov9_91", q = "_FlexChangeDirectionAfterLaptopSize_1pov9_101", V = "_FlexChangeDirectionAfterPcSize_1pov9_111", e = {
|
|
5
|
+
Flex: M,
|
|
6
|
+
FlexGapXxs: v,
|
|
7
|
+
FlexGapXs: A,
|
|
8
|
+
FlexGapSm: C,
|
|
9
|
+
FlexGapMd: u,
|
|
10
|
+
FlexGapLg: D,
|
|
11
|
+
FlexGapXl: X,
|
|
12
|
+
FlexGapXxl: h,
|
|
13
|
+
FlexGapXxxl: y,
|
|
14
14
|
FlexMarginTopSm: z,
|
|
15
|
-
FlexMarginTopMd:
|
|
16
|
-
FlexMarginBottomSm:
|
|
17
|
-
FlexMarginBottomMd:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
FlexJustifyStart: K,
|
|
31
|
-
FlexJustifyEnd: O,
|
|
32
|
-
FlexChangeDirectionAfterTabletSize: Q,
|
|
33
|
-
FlexChangeDirectionAfterLaptopSize: U,
|
|
34
|
-
FlexChangeDirectionAfterPcSize: W
|
|
35
|
-
}, ee = (g) => {
|
|
15
|
+
FlexMarginTopMd: T,
|
|
16
|
+
FlexMarginBottomSm: J,
|
|
17
|
+
FlexMarginBottomMd: B,
|
|
18
|
+
FlexDirectionRow: E,
|
|
19
|
+
FlexDirectionColumn: L,
|
|
20
|
+
FlexAlignCenter: b,
|
|
21
|
+
FlexAlignStart: w,
|
|
22
|
+
FlexAlignEnd: P,
|
|
23
|
+
FlexJustifyCenter: R,
|
|
24
|
+
FlexJustifyStart: $,
|
|
25
|
+
FlexJustifyEnd: j,
|
|
26
|
+
FlexChangeDirectionAfterTabletSize: N,
|
|
27
|
+
FlexChangeDirectionAfterLaptopSize: q,
|
|
28
|
+
FlexChangeDirectionAfterPcSize: V
|
|
29
|
+
}, K = (_) => {
|
|
36
30
|
const {
|
|
37
|
-
children:
|
|
38
|
-
gap:
|
|
39
|
-
|
|
40
|
-
|
|
31
|
+
children: i,
|
|
32
|
+
gap: l,
|
|
33
|
+
basis: t,
|
|
34
|
+
grow: c,
|
|
35
|
+
direction: a = "row",
|
|
41
36
|
align: n,
|
|
42
|
-
justify:
|
|
37
|
+
justify: o,
|
|
43
38
|
marginTop: F,
|
|
44
|
-
marginBottom:
|
|
45
|
-
className:
|
|
46
|
-
changeDirectionAfterTabletSize:
|
|
47
|
-
changeDirectionAfterLaptopSize:
|
|
48
|
-
changeDirectionAfterPcSize:
|
|
49
|
-
} =
|
|
50
|
-
return /* @__PURE__ */
|
|
39
|
+
marginBottom: r,
|
|
40
|
+
className: g = "",
|
|
41
|
+
changeDirectionAfterTabletSize: m = !1,
|
|
42
|
+
changeDirectionAfterLaptopSize: f = !1,
|
|
43
|
+
changeDirectionAfterPcSize: S = !1
|
|
44
|
+
} = _;
|
|
45
|
+
return /* @__PURE__ */ p(
|
|
51
46
|
"div",
|
|
52
47
|
{
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
[e.
|
|
56
|
-
[e.
|
|
57
|
-
[e.
|
|
58
|
-
[e.
|
|
59
|
-
[e.
|
|
60
|
-
[e.
|
|
61
|
-
[e.
|
|
62
|
-
[e.
|
|
63
|
-
[e.
|
|
64
|
-
[e.
|
|
65
|
-
[e.
|
|
66
|
-
[e.
|
|
48
|
+
style: typeof t < "u" ? { flexBasis: typeof t == "number" ? `${t}%` : t } : void 0,
|
|
49
|
+
className: G(e.Flex, g, {
|
|
50
|
+
[e.FlexChangeDirectionAfterTabletSize]: m,
|
|
51
|
+
[e.FlexChangeDirectionAfterLaptopSize]: f,
|
|
52
|
+
[e.FlexChangeDirectionAfterPcSize]: S,
|
|
53
|
+
[e.FlexDirectionColumn]: a === "column",
|
|
54
|
+
[e.FlexDirectionRow]: a === "row",
|
|
55
|
+
[e.FlexGapXxs]: l === "xxs",
|
|
56
|
+
[e.FlexGapXs]: l === "xs",
|
|
57
|
+
[e.FlexGapSm]: l === "sm",
|
|
58
|
+
[e.FlexGapMd]: l === "md",
|
|
59
|
+
[e.FlexGapLg]: l === "lg",
|
|
60
|
+
[e.FlexGapXl]: l === "xl",
|
|
61
|
+
[e.FlexGapXxl]: l === "xxl",
|
|
62
|
+
[e.FlexGapXxxl]: l === "xxxl",
|
|
67
63
|
[e.FlexMarginTopSm]: F === "sm",
|
|
68
64
|
[e.FlexMarginTopMd]: F === "md",
|
|
69
|
-
[e.FlexMarginBottomSm]:
|
|
70
|
-
[e.FlexMarginBottomMd]:
|
|
65
|
+
[e.FlexMarginBottomSm]: r === "sm",
|
|
66
|
+
[e.FlexMarginBottomMd]: r === "md",
|
|
71
67
|
[e.FlexAlignCenter]: n === "center",
|
|
72
68
|
[e.FlexAlignStart]: n === "start",
|
|
73
69
|
[e.FlexAlignEnd]: n === "end",
|
|
74
|
-
[e.FlexJustifyCenter]:
|
|
75
|
-
[e.FlexJustifyStart]:
|
|
76
|
-
[e.FlexJustifyEnd]:
|
|
70
|
+
[e.FlexJustifyCenter]: o === "center",
|
|
71
|
+
[e.FlexJustifyStart]: o === "start",
|
|
72
|
+
[e.FlexJustifyEnd]: o === "end"
|
|
77
73
|
}),
|
|
78
|
-
children:
|
|
79
|
-
|
|
80
|
-
(
|
|
81
|
-
className: _(t.props.className, {
|
|
82
|
-
[e.FlexChildGrowContent]: l === "content",
|
|
83
|
-
[e.FlexChildGrowEqual]: l === "equal",
|
|
84
|
-
[e.FlexChildGrow1]: Array.isArray(l) && l[x] === 1,
|
|
85
|
-
[e.FlexChildGrow2]: Array.isArray(l) && l[x] === 2,
|
|
86
|
-
[e.FlexChildGrow3]: Array.isArray(l) && l[x] === 3,
|
|
87
|
-
[e.FlexChildGrow4]: Array.isArray(l) && l[x] === 4
|
|
88
|
-
})
|
|
89
|
-
}) : t
|
|
74
|
+
children: s.map(
|
|
75
|
+
i,
|
|
76
|
+
(x) => d(x) && c === "equal" ? /* @__PURE__ */ p("div", { style: { flexBasis: `${Math.floor(100 / s.count(i) * 100) / 100}%` }, children: x }) : x
|
|
90
77
|
)
|
|
91
78
|
}
|
|
92
79
|
);
|
|
93
80
|
};
|
|
94
81
|
export {
|
|
95
|
-
|
|
82
|
+
K as Flex
|
|
96
83
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { HTMLAttributes, PropsWithChildren } from 'react';
|
|
2
2
|
export interface ParagraphProps<T extends keyof HTMLElementTagNameMap> extends PropsWithChildren, HTMLAttributes<HTMLElementTagNameMap[T]> {
|
|
3
3
|
tag?: T;
|
|
4
|
+
lined?: boolean;
|
|
4
5
|
weight?: 'light' | 'regular' | 'medium' | 'bold';
|
|
5
6
|
size?: 'regular' | 'small' | 'extra-small';
|
|
6
7
|
color?: 'primary' | 'secondary' | 'accent-primary' | 'accent-secondary';
|
|
@@ -1,20 +1,31 @@
|
|
|
1
1
|
import { createElement as i } from "react";
|
|
2
|
-
import
|
|
3
|
-
import '../../../../assets/paragraph-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
import n from "clsx";
|
|
3
|
+
import '../../../../assets/paragraph-BrjH-60G.css';const m = "_ParagraphLined_1dmey_1", d = "_ParagraphWeightLight_1dmey_5", _ = "_ParagraphWeightRegular_1dmey_9", y = "_ParagraphWeightMedium_1dmey_13", s = "_ParagraphWeightBold_1dmey_17", S = "_ParagraphSizeRegular_1dmey_21", u = "_ParagraphSizeSmall_1dmey_26", C = "_ParagraphSizeExtraSmall_1dmey_31", W = "_ParagraphColorPrimary_1dmey_36", z = "_ParagraphColorSecondary_1dmey_40", L = "_ParagraphColorAccentPrimary_1dmey_44", A = "_ParagraphColorAccentSecondary_1dmey_48", a = {
|
|
4
|
+
ParagraphLined: m,
|
|
5
|
+
ParagraphWeightLight: d,
|
|
6
|
+
ParagraphWeightRegular: _,
|
|
7
|
+
ParagraphWeightMedium: y,
|
|
8
|
+
ParagraphWeightBold: s,
|
|
9
|
+
ParagraphSizeRegular: S,
|
|
9
10
|
ParagraphSizeSmall: u,
|
|
10
|
-
ParagraphSizeExtraSmall:
|
|
11
|
-
ParagraphColorPrimary:
|
|
12
|
-
ParagraphColorSecondary:
|
|
13
|
-
ParagraphColorAccentPrimary:
|
|
14
|
-
ParagraphColorAccentSecondary:
|
|
11
|
+
ParagraphSizeExtraSmall: C,
|
|
12
|
+
ParagraphColorPrimary: W,
|
|
13
|
+
ParagraphColorSecondary: z,
|
|
14
|
+
ParagraphColorAccentPrimary: L,
|
|
15
|
+
ParagraphColorAccentSecondary: A
|
|
15
16
|
};
|
|
16
|
-
function
|
|
17
|
-
const {
|
|
17
|
+
function f(p) {
|
|
18
|
+
const {
|
|
19
|
+
tag: o = "p",
|
|
20
|
+
lined: P = !1,
|
|
21
|
+
weight: r = "regular",
|
|
22
|
+
size: g = "regular",
|
|
23
|
+
color: e = "primary",
|
|
24
|
+
children: h,
|
|
25
|
+
className: c,
|
|
26
|
+
...l
|
|
27
|
+
} = p, t = n(c, {
|
|
28
|
+
[a.ParagraphLined]: P,
|
|
18
29
|
[a.ParagraphWeightLight]: r === "light",
|
|
19
30
|
[a.ParagraphWeightRegular]: r === "regular",
|
|
20
31
|
[a.ParagraphWeightMedium]: r === "medium",
|
|
@@ -27,16 +38,16 @@ function R(c) {
|
|
|
27
38
|
[a.ParagraphColorAccentPrimary]: e === "accent-primary",
|
|
28
39
|
[a.ParagraphColorAccentSecondary]: e === "accent-secondary"
|
|
29
40
|
});
|
|
30
|
-
return typeof
|
|
41
|
+
return typeof h == "string" ? i(o, {
|
|
31
42
|
className: t,
|
|
32
|
-
dangerouslySetInnerHTML: { __html:
|
|
43
|
+
dangerouslySetInnerHTML: { __html: h },
|
|
33
44
|
...l
|
|
34
|
-
}) : i(
|
|
45
|
+
}) : i(o, {
|
|
35
46
|
className: t,
|
|
36
|
-
children:
|
|
47
|
+
children: h,
|
|
37
48
|
...l
|
|
38
49
|
});
|
|
39
50
|
}
|
|
40
51
|
export {
|
|
41
|
-
|
|
52
|
+
f as Paragraph
|
|
42
53
|
};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._Flex_efqog_1{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:initial}._FlexGapXxs_efqog_8{gap:var(--rm-ui-padding-xxs)}._FlexGapXs_efqog_12{gap:var(--rm-ui-padding-xs)}._FlexGapSm_efqog_16{gap:var(--rm-ui-padding-sm)}._FlexGapMd_efqog_20{gap:var(--rm-ui-padding-md)}._FlexGapLg_efqog_24{gap:var(--rm-ui-padding-lg)}._FlexGapXl_efqog_28{gap:var(--rm-ui-padding-xl)}._FlexGapXxl_efqog_32{gap:var(--rm-ui-padding-xxl)}._FlexGapXxxl_efqog_36{gap:var(--rm-ui-padding-xxxl)}._FlexMarginTopSm_efqog_40{margin-top:var(--rm-ui-padding-sm)}._FlexMarginTopMd_efqog_44{margin-top:var(--rm-ui-padding-md)}._FlexMarginBottomSm_efqog_48{margin-bottom:var(--rm-ui-padding-sm)}._FlexMarginBottomMd_efqog_52{margin-bottom:var(--rm-ui-padding-md)}._FlexChildGrowContent_efqog_56{flex-grow:initial}._FlexChildGrowEqual_efqog_60,._FlexChildGrow1_efqog_64{flex-grow:1}._FlexChildGrow2_efqog_68{flex-grow:2}._FlexChildGrow3_efqog_72{flex-grow:3}._FlexChildGrow4_efqog_76{flex-grow:4}._FlexDirectionRow_efqog_80{flex-direction:row;align-items:flex-start}._FlexDirectionColumn_efqog_85{flex-direction:column;align-items:stretch}._FlexAlignCenter_efqog_90{align-items:center}._FlexAlignStart_efqog_94{align-items:flex-start}._FlexAlignEnd_efqog_98{align-items:flex-end}._FlexJustifyCenter_efqog_102{justify-content:center}._FlexJustifyStart_efqog_106{justify-content:flex-start}._FlexJustifyEnd_efqog_110{justify-content:flex-end}@media screen and (min-width:768px){._FlexDirectionRow_efqog_80._FlexChangeDirectionAfterTabletSize_efqog_115{flex-direction:column}._FlexDirectionColumn_efqog_85._FlexChangeDirectionAfterTabletSize_efqog_115{flex-direction:row}}@media screen and (min-width:1024px){._FlexDirectionRow_efqog_80._FlexChangeDirectionAfterLaptopSize_efqog_125{flex-direction:column}._FlexDirectionColumn_efqog_85._FlexChangeDirectionAfterLaptopSize_efqog_125{flex-direction:row}}@media screen and (min-width:1200px){._FlexDirectionRow_efqog_80._FlexChangeDirectionAfterPcSize_efqog_135{flex-direction:column}._FlexDirectionColumn_efqog_85._FlexChangeDirectionAfterPcSize_efqog_135{flex-direction:row}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._ParagraphWeightLight_1wu3d_1{font-weight:var(--rm-ui-font-weight-light)}._ParagraphWeightRegular_1wu3d_5{font-weight:var(--rm-ui-font-weight-regular)}._ParagraphWeightMedium_1wu3d_9{font-weight:var(--rm-ui-font-weight-medium)}._ParagraphWeightBold_1wu3d_13{font-weight:var(--rm-ui-font-weight-bold)}._ParagraphSizeRegular_1wu3d_17{font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body)}._ParagraphSizeSmall_1wu3d_22{font-size:var(--rm-ui-font-size-body-small);line-height:var(--rm-ui-line-height-body-small)}._ParagraphSizeExtraSmall_1wu3d_27{font-size:var(--rm-ui-font-size-body-extra-small);line-height:var(--rm-ui-line-height-body-extra-small)}._ParagraphColorPrimary_1wu3d_32{color:var(--rm-ui-color-text-primary)}._ParagraphColorSecondary_1wu3d_36{color:var(--rm-ui-color-text-secondary)}._ParagraphColorAccentPrimary_1wu3d_40{color:var(--rm-ui-color-accent-primary)}._ParagraphColorAccentSecondary_1wu3d_44{color:var(--rm-ui-color-accent-secondary)}
|