@arthurzakharov/ui-kit 1.0.114 → 1.0.115
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-BkfG8hLn.css +1 -0
- package/dist/assets/paragraph-CYn0bG_x.css +1 -0
- package/dist/components/flex/flex.component.d.ts +2 -0
- package/dist/components/flex/flex.component.js +66 -52
- package/dist/components/text/components/paragraph/paragraph.component.d.ts +3 -2
- package/dist/components/text/components/paragraph/paragraph.component.js +37 -15
- package/package.json +1 -1
- package/dist/assets/flex-BShjn6Be.css +0 -1
- package/dist/assets/paragraph-Cg_eMedz.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
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}}
|
|
@@ -0,0 +1 @@
|
|
|
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)}
|
|
@@ -3,6 +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
|
+
align?: 'center' | 'start' | 'end';
|
|
7
|
+
justify?: 'center' | 'start' | 'end';
|
|
6
8
|
marginTop?: 'sm' | 'md';
|
|
7
9
|
marginBottom?: 'sm' | 'md';
|
|
8
10
|
className?: string;
|
|
@@ -1,53 +1,61 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Children as m, cloneElement 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:
|
|
14
|
-
FlexMarginTopSm:
|
|
15
|
-
FlexMarginTopMd:
|
|
1
|
+
import { jsx as C } from "react/jsx-runtime";
|
|
2
|
+
import { Children as m, cloneElement as d, isValidElement as h } from "react";
|
|
3
|
+
import _ from "clsx";
|
|
4
|
+
import '../../assets/flex-BkfG8hLn.css';const q = "_Flex_efqog_1", A = "_FlexGapXxs_efqog_8", S = "_FlexGapXs_efqog_12", w = "_FlexGapSm_efqog_16", M = "_FlexGapMd_efqog_20", u = "_FlexGapLg_efqog_24", D = "_FlexGapXl_efqog_28", y = "_FlexGapXxl_efqog_32", X = "_FlexGapXxxl_efqog_36", z = "_FlexMarginTopSm_efqog_40", E = "_FlexMarginTopMd_efqog_44", T = "_FlexMarginBottomSm_efqog_48", J = "_FlexMarginBottomMd_efqog_52", B = "_FlexChildGrowContent_efqog_56", L = "_FlexChildGrowEqual_efqog_60", b = "_FlexChildGrow1_efqog_64", P = "_FlexChildGrow2_efqog_68", N = "_FlexChildGrow3_efqog_72", R = "_FlexChildGrow4_efqog_76", j = "_FlexDirectionRow_efqog_80", v = "_FlexDirectionColumn_efqog_85", V = "_FlexAlignCenter_efqog_90", $ = "_FlexAlignStart_efqog_94", k = "_FlexAlignEnd_efqog_98", H = "_FlexJustifyCenter_efqog_102", K = "_FlexJustifyStart_efqog_106", O = "_FlexJustifyEnd_efqog_110", Q = "_FlexChangeDirectionAfterTabletSize_efqog_115", U = "_FlexChangeDirectionAfterLaptopSize_efqog_125", W = "_FlexChangeDirectionAfterPcSize_efqog_135", e = {
|
|
5
|
+
Flex: q,
|
|
6
|
+
FlexGapXxs: A,
|
|
7
|
+
FlexGapXs: S,
|
|
8
|
+
FlexGapSm: w,
|
|
9
|
+
FlexGapMd: M,
|
|
10
|
+
FlexGapLg: u,
|
|
11
|
+
FlexGapXl: D,
|
|
12
|
+
FlexGapXxl: y,
|
|
13
|
+
FlexGapXxxl: X,
|
|
14
|
+
FlexMarginTopSm: z,
|
|
15
|
+
FlexMarginTopMd: E,
|
|
16
16
|
FlexMarginBottomSm: T,
|
|
17
|
-
FlexMarginBottomMd:
|
|
17
|
+
FlexMarginBottomMd: J,
|
|
18
18
|
FlexChildGrowContent: B,
|
|
19
19
|
FlexChildGrowEqual: L,
|
|
20
|
-
FlexChildGrow1:
|
|
21
|
-
FlexChildGrow2:
|
|
22
|
-
FlexChildGrow3:
|
|
23
|
-
FlexChildGrow4:
|
|
24
|
-
FlexDirectionRow:
|
|
25
|
-
FlexDirectionColumn:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
20
|
+
FlexChildGrow1: b,
|
|
21
|
+
FlexChildGrow2: P,
|
|
22
|
+
FlexChildGrow3: N,
|
|
23
|
+
FlexChildGrow4: R,
|
|
24
|
+
FlexDirectionRow: j,
|
|
25
|
+
FlexDirectionColumn: v,
|
|
26
|
+
FlexAlignCenter: V,
|
|
27
|
+
FlexAlignStart: $,
|
|
28
|
+
FlexAlignEnd: k,
|
|
29
|
+
FlexJustifyCenter: H,
|
|
30
|
+
FlexJustifyStart: K,
|
|
31
|
+
FlexJustifyEnd: O,
|
|
32
|
+
FlexChangeDirectionAfterTabletSize: Q,
|
|
33
|
+
FlexChangeDirectionAfterLaptopSize: U,
|
|
34
|
+
FlexChangeDirectionAfterPcSize: W
|
|
35
|
+
}, ee = (g) => {
|
|
30
36
|
const {
|
|
31
|
-
children:
|
|
37
|
+
children: s,
|
|
32
38
|
gap: o,
|
|
33
39
|
grow: l,
|
|
34
|
-
direction:
|
|
35
|
-
|
|
36
|
-
|
|
40
|
+
direction: r = "row",
|
|
41
|
+
align: n,
|
|
42
|
+
justify: i,
|
|
43
|
+
marginTop: F,
|
|
44
|
+
marginBottom: a,
|
|
37
45
|
className: c = "",
|
|
38
|
-
changeDirectionAfterTabletSize:
|
|
46
|
+
changeDirectionAfterTabletSize: f = !1,
|
|
39
47
|
changeDirectionAfterLaptopSize: p = !1,
|
|
40
|
-
changeDirectionAfterPcSize:
|
|
41
|
-
} =
|
|
42
|
-
return /* @__PURE__ */
|
|
48
|
+
changeDirectionAfterPcSize: G = !1
|
|
49
|
+
} = g;
|
|
50
|
+
return /* @__PURE__ */ C(
|
|
43
51
|
"div",
|
|
44
52
|
{
|
|
45
|
-
className:
|
|
46
|
-
[e.FlexChangeDirectionAfterTabletSize]:
|
|
53
|
+
className: _(e.Flex, c, {
|
|
54
|
+
[e.FlexChangeDirectionAfterTabletSize]: f,
|
|
47
55
|
[e.FlexChangeDirectionAfterLaptopSize]: p,
|
|
48
|
-
[e.FlexChangeDirectionAfterPcSize]:
|
|
49
|
-
[e.FlexDirectionColumn]:
|
|
50
|
-
[e.FlexDirectionRow]:
|
|
56
|
+
[e.FlexChangeDirectionAfterPcSize]: G,
|
|
57
|
+
[e.FlexDirectionColumn]: r === "column",
|
|
58
|
+
[e.FlexDirectionRow]: r === "row",
|
|
51
59
|
[e.FlexGapXxs]: o === "xxs",
|
|
52
60
|
[e.FlexGapXs]: o === "xs",
|
|
53
61
|
[e.FlexGapSm]: o === "sm",
|
|
@@ -56,27 +64,33 @@ import '../../assets/flex-BShjn6Be.css';const h = "_Flex_13gky_1", y = "_FlexGap
|
|
|
56
64
|
[e.FlexGapXl]: o === "xl",
|
|
57
65
|
[e.FlexGapXxl]: o === "xxl",
|
|
58
66
|
[e.FlexGapXxxl]: o === "xxxl",
|
|
59
|
-
[e.FlexMarginTopSm]:
|
|
60
|
-
[e.FlexMarginTopMd]:
|
|
61
|
-
[e.FlexMarginBottomSm]:
|
|
62
|
-
[e.FlexMarginBottomMd]:
|
|
67
|
+
[e.FlexMarginTopSm]: F === "sm",
|
|
68
|
+
[e.FlexMarginTopMd]: F === "md",
|
|
69
|
+
[e.FlexMarginBottomSm]: a === "sm",
|
|
70
|
+
[e.FlexMarginBottomMd]: a === "md",
|
|
71
|
+
[e.FlexAlignCenter]: n === "center",
|
|
72
|
+
[e.FlexAlignStart]: n === "start",
|
|
73
|
+
[e.FlexAlignEnd]: n === "end",
|
|
74
|
+
[e.FlexJustifyCenter]: i === "center",
|
|
75
|
+
[e.FlexJustifyStart]: i === "start",
|
|
76
|
+
[e.FlexJustifyEnd]: i === "end"
|
|
63
77
|
}),
|
|
64
78
|
children: m.map(
|
|
65
|
-
|
|
66
|
-
(
|
|
67
|
-
className:
|
|
79
|
+
s,
|
|
80
|
+
(t, x) => h(t) && l ? d(t, {
|
|
81
|
+
className: _(t.props.className, {
|
|
68
82
|
[e.FlexChildGrowContent]: l === "content",
|
|
69
83
|
[e.FlexChildGrowEqual]: l === "equal",
|
|
70
|
-
[e.FlexChildGrow1]: Array.isArray(l) && l[
|
|
71
|
-
[e.FlexChildGrow2]: Array.isArray(l) && l[
|
|
72
|
-
[e.FlexChildGrow3]: Array.isArray(l) && l[
|
|
73
|
-
[e.FlexChildGrow4]: Array.isArray(l) && l[
|
|
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
|
|
74
88
|
})
|
|
75
|
-
}) :
|
|
89
|
+
}) : t
|
|
76
90
|
)
|
|
77
91
|
}
|
|
78
92
|
);
|
|
79
93
|
};
|
|
80
94
|
export {
|
|
81
|
-
|
|
95
|
+
ee as Flex
|
|
82
96
|
};
|
|
@@ -1,6 +1,9 @@
|
|
|
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
|
+
weight?: 'light' | 'regular' | 'medium' | 'bold';
|
|
5
|
+
size?: 'regular' | 'small' | 'extra-small';
|
|
6
|
+
color?: 'primary' | 'secondary' | 'accent-primary' | 'accent-secondary';
|
|
4
7
|
}
|
|
5
8
|
export declare function Paragraph<T extends keyof HTMLElementTagNameMap>(props: ParagraphProps<T>): import('react').DetailedReactHTMLElement<{
|
|
6
9
|
defaultChecked?: boolean | undefined;
|
|
@@ -40,7 +43,6 @@ export declare function Paragraph<T extends keyof HTMLElementTagNameMap>(props:
|
|
|
40
43
|
vocab?: string | undefined;
|
|
41
44
|
autoCorrect?: string | undefined;
|
|
42
45
|
autoSave?: string | undefined;
|
|
43
|
-
color?: string | undefined;
|
|
44
46
|
itemProp?: string | undefined;
|
|
45
47
|
itemScope?: boolean | undefined;
|
|
46
48
|
itemType?: string | undefined;
|
|
@@ -306,7 +308,6 @@ export declare function Paragraph<T extends keyof HTMLElementTagNameMap>(props:
|
|
|
306
308
|
vocab?: string | undefined;
|
|
307
309
|
autoCorrect?: string | undefined;
|
|
308
310
|
autoSave?: string | undefined;
|
|
309
|
-
color?: string | undefined;
|
|
310
311
|
itemProp?: string | undefined;
|
|
311
312
|
itemScope?: boolean | undefined;
|
|
312
313
|
itemType?: string | undefined;
|
|
@@ -1,20 +1,42 @@
|
|
|
1
|
-
import { createElement as
|
|
2
|
-
import
|
|
3
|
-
import '../../../../assets/paragraph-
|
|
4
|
-
|
|
1
|
+
import { createElement as i } from "react";
|
|
2
|
+
import P from "clsx";
|
|
3
|
+
import '../../../../assets/paragraph-CYn0bG_x.css';const n = "_ParagraphWeightLight_1wu3d_1", m = "_ParagraphWeightRegular_1wu3d_5", _ = "_ParagraphWeightMedium_1wu3d_9", d = "_ParagraphWeightBold_1wu3d_13", s = "_ParagraphSizeRegular_1wu3d_17", u = "_ParagraphSizeSmall_1wu3d_22", S = "_ParagraphSizeExtraSmall_1wu3d_27", y = "_ParagraphColorPrimary_1wu3d_32", C = "_ParagraphColorSecondary_1wu3d_36", W = "_ParagraphColorAccentPrimary_1wu3d_40", z = "_ParagraphColorAccentSecondary_1wu3d_44", a = {
|
|
4
|
+
ParagraphWeightLight: n,
|
|
5
|
+
ParagraphWeightRegular: m,
|
|
6
|
+
ParagraphWeightMedium: _,
|
|
7
|
+
ParagraphWeightBold: d,
|
|
8
|
+
ParagraphSizeRegular: s,
|
|
9
|
+
ParagraphSizeSmall: u,
|
|
10
|
+
ParagraphSizeExtraSmall: S,
|
|
11
|
+
ParagraphColorPrimary: y,
|
|
12
|
+
ParagraphColorSecondary: C,
|
|
13
|
+
ParagraphColorAccentPrimary: W,
|
|
14
|
+
ParagraphColorAccentSecondary: z
|
|
5
15
|
};
|
|
6
|
-
function
|
|
7
|
-
const { tag:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
function R(c) {
|
|
17
|
+
const { tag: h = "p", weight: r = "regular", size: g = "regular", color: e = "primary", children: o, className: p, ...l } = c, t = P(p, {
|
|
18
|
+
[a.ParagraphWeightLight]: r === "light",
|
|
19
|
+
[a.ParagraphWeightRegular]: r === "regular",
|
|
20
|
+
[a.ParagraphWeightMedium]: r === "medium",
|
|
21
|
+
[a.ParagraphWeightBold]: r === "bold",
|
|
22
|
+
[a.ParagraphSizeRegular]: g === "regular",
|
|
23
|
+
[a.ParagraphSizeSmall]: g === "small",
|
|
24
|
+
[a.ParagraphSizeExtraSmall]: g === "extra-small",
|
|
25
|
+
[a.ParagraphColorPrimary]: e === "primary",
|
|
26
|
+
[a.ParagraphColorSecondary]: e === "secondary",
|
|
27
|
+
[a.ParagraphColorAccentPrimary]: e === "accent-primary",
|
|
28
|
+
[a.ParagraphColorAccentSecondary]: e === "accent-secondary"
|
|
29
|
+
});
|
|
30
|
+
return typeof o == "string" ? i(h, {
|
|
31
|
+
className: t,
|
|
32
|
+
dangerouslySetInnerHTML: { __html: o },
|
|
33
|
+
...l
|
|
34
|
+
}) : i(h, {
|
|
35
|
+
className: t,
|
|
36
|
+
children: o,
|
|
37
|
+
...l
|
|
16
38
|
});
|
|
17
39
|
}
|
|
18
40
|
export {
|
|
19
|
-
|
|
41
|
+
R as Paragraph
|
|
20
42
|
};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._Flex_13gky_1{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:initial}._FlexGapXxs_13gky_8{gap:var(--rm-ui-padding-xxs)}._FlexGapXs_13gky_12{gap:var(--rm-ui-padding-xs)}._FlexGapSm_13gky_16{gap:var(--rm-ui-padding-sm)}._FlexGapMd_13gky_20{gap:var(--rm-ui-padding-md)}._FlexGapLg_13gky_24{gap:var(--rm-ui-padding-lg)}._FlexGapXl_13gky_28{gap:var(--rm-ui-padding-xl)}._FlexGapXxl_13gky_32{gap:var(--rm-ui-padding-xxl)}._FlexGapXxxl_13gky_36{gap:var(--rm-ui-padding-xxxl)}._FlexMarginTopSm_13gky_40{margin-top:var(--rm-ui-padding-sm)}._FlexMarginTopMd_13gky_44{margin-top:var(--rm-ui-padding-md)}._FlexMarginBottomSm_13gky_48{margin-bottom:var(--rm-ui-padding-sm)}._FlexMarginBottomMd_13gky_52{margin-bottom:var(--rm-ui-padding-md)}._FlexChildGrowContent_13gky_56{flex-grow:initial}._FlexChildGrowEqual_13gky_60,._FlexChildGrow1_13gky_64{flex-grow:1}._FlexChildGrow2_13gky_68{flex-grow:2}._FlexChildGrow3_13gky_72{flex-grow:3}._FlexChildGrow4_13gky_76{flex-grow:4}._FlexDirectionRow_13gky_80{flex-direction:row;align-items:flex-start}._FlexDirectionColumn_13gky_85{flex-direction:column;align-items:stretch}@media screen and (min-width:768px){._FlexDirectionRow_13gky_80._FlexChangeDirectionAfterTabletSize_13gky_91{flex-direction:column}._FlexDirectionColumn_13gky_85._FlexChangeDirectionAfterTabletSize_13gky_91{flex-direction:row}}@media screen and (min-width:1024px){._FlexDirectionRow_13gky_80._FlexChangeDirectionAfterLaptopSize_13gky_101{flex-direction:column}._FlexDirectionColumn_13gky_85._FlexChangeDirectionAfterLaptopSize_13gky_101{flex-direction:row}}@media screen and (min-width:1200px){._FlexDirectionRow_13gky_80._FlexChangeDirectionAfterPcSize_13gky_111{flex-direction:column}._FlexDirectionColumn_13gky_85._FlexChangeDirectionAfterPcSize_13gky_111{flex-direction:row}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._Paragraph_1p6s7_1{font-weight:var(--rm-ui-font-weight-regular);font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body);color:var(--rm-ui-color-text-primary)}
|