@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.
@@ -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 G } from "react/jsx-runtime";
2
- import { Children as m, cloneElement as C, isValidElement as d } from "react";
3
- import a from "clsx";
4
- import '../../assets/flex-BShjn6Be.css';const h = "_Flex_13gky_1", y = "_FlexGapXxs_13gky_8", w = "_FlexGapXs_13gky_12", M = "_FlexGapSm_13gky_16", S = "_FlexGapMd_13gky_20", k = "_FlexGapLg_13gky_24", A = "_FlexGapXl_13gky_28", D = "_FlexGapXxl_13gky_32", f = "_FlexGapXxxl_13gky_36", X = "_FlexMarginTopSm_13gky_40", z = "_FlexMarginTopMd_13gky_44", T = "_FlexMarginBottomSm_13gky_48", u = "_FlexMarginBottomMd_13gky_52", B = "_FlexChildGrowContent_13gky_56", L = "_FlexChildGrowEqual_13gky_60", E = "_FlexChildGrow1_13gky_64", b = "_FlexChildGrow2_13gky_68", q = "_FlexChildGrow3_13gky_72", P = "_FlexChildGrow4_13gky_76", N = "_FlexDirectionRow_13gky_80", R = "_FlexDirectionColumn_13gky_85", j = "_FlexChangeDirectionAfterTabletSize_13gky_91", v = "_FlexChangeDirectionAfterLaptopSize_13gky_101", V = "_FlexChangeDirectionAfterPcSize_13gky_111", e = {
5
- Flex: h,
6
- FlexGapXxs: y,
7
- FlexGapXs: w,
8
- FlexGapSm: M,
9
- FlexGapMd: S,
10
- FlexGapLg: k,
11
- FlexGapXl: A,
12
- FlexGapXxl: D,
13
- FlexGapXxxl: f,
14
- FlexMarginTopSm: X,
15
- FlexMarginTopMd: z,
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: u,
17
+ FlexMarginBottomMd: J,
18
18
  FlexChildGrowContent: B,
19
19
  FlexChildGrowEqual: L,
20
- FlexChildGrow1: E,
21
- FlexChildGrow2: b,
22
- FlexChildGrow3: q,
23
- FlexChildGrow4: P,
24
- FlexDirectionRow: N,
25
- FlexDirectionColumn: R,
26
- FlexChangeDirectionAfterTabletSize: j,
27
- FlexChangeDirectionAfterLaptopSize: v,
28
- FlexChangeDirectionAfterPcSize: V
29
- }, K = (F) => {
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: i = "row",
35
- marginTop: t,
36
- marginBottom: n,
40
+ direction: r = "row",
41
+ align: n,
42
+ justify: i,
43
+ marginTop: F,
44
+ marginBottom: a,
37
45
  className: c = "",
38
- changeDirectionAfterTabletSize: g = !1,
46
+ changeDirectionAfterTabletSize: f = !1,
39
47
  changeDirectionAfterLaptopSize: p = !1,
40
- changeDirectionAfterPcSize: s = !1
41
- } = F;
42
- return /* @__PURE__ */ G(
48
+ changeDirectionAfterPcSize: G = !1
49
+ } = g;
50
+ return /* @__PURE__ */ C(
43
51
  "div",
44
52
  {
45
- className: a(e.Flex, c, {
46
- [e.FlexChangeDirectionAfterTabletSize]: g,
53
+ className: _(e.Flex, c, {
54
+ [e.FlexChangeDirectionAfterTabletSize]: f,
47
55
  [e.FlexChangeDirectionAfterLaptopSize]: p,
48
- [e.FlexChangeDirectionAfterPcSize]: s,
49
- [e.FlexDirectionColumn]: i === "column",
50
- [e.FlexDirectionRow]: i === "row",
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]: t === "sm",
60
- [e.FlexMarginTopMd]: t === "md",
61
- [e.FlexMarginBottomSm]: n === "sm",
62
- [e.FlexMarginBottomMd]: n === "md"
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
- (x, r) => d(x) && l ? C(x, {
67
- className: a(x.props.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[r] === 1,
71
- [e.FlexChildGrow2]: Array.isArray(l) && l[r] === 2,
72
- [e.FlexChildGrow3]: Array.isArray(l) && l[r] === 3,
73
- [e.FlexChildGrow4]: Array.isArray(l) && l[r] === 4
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
- }) : x
89
+ }) : t
76
90
  )
77
91
  }
78
92
  );
79
93
  };
80
94
  export {
81
- K as Flex
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 s } from "react";
2
- import n from "clsx";
3
- import '../../../../assets/paragraph-Cg_eMedz.css';const o = "_Paragraph_1p6s7_1", p = {
4
- Paragraph: o
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 h(c) {
7
- const { tag: r = "p", children: a, className: t, ...e } = c;
8
- return typeof a == "string" ? s(r, {
9
- className: n(p.Paragraph, t),
10
- dangerouslySetInnerHTML: { __html: a },
11
- ...e
12
- }) : s(r, {
13
- className: n(p.Paragraph, t),
14
- children: a,
15
- ...e
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
- h as Paragraph
41
+ R as Paragraph
20
42
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arthurzakharov/ui-kit",
3
3
  "private": false,
4
- "version": "1.0.114",
4
+ "version": "1.0.115",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -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)}