@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.
@@ -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
- grow?: 'content' | 'equal' | (1 | 2 | 3 | 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 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,
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: E,
16
- FlexMarginBottomSm: T,
17
- FlexMarginBottomMd: J,
18
- FlexChildGrowContent: B,
19
- FlexChildGrowEqual: L,
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) => {
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: s,
38
- gap: o,
39
- grow: l,
40
- direction: r = "row",
31
+ children: i,
32
+ gap: l,
33
+ basis: t,
34
+ grow: c,
35
+ direction: a = "row",
41
36
  align: n,
42
- justify: i,
37
+ justify: o,
43
38
  marginTop: F,
44
- marginBottom: a,
45
- className: c = "",
46
- changeDirectionAfterTabletSize: f = !1,
47
- changeDirectionAfterLaptopSize: p = !1,
48
- changeDirectionAfterPcSize: G = !1
49
- } = g;
50
- return /* @__PURE__ */ C(
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
- className: _(e.Flex, c, {
54
- [e.FlexChangeDirectionAfterTabletSize]: f,
55
- [e.FlexChangeDirectionAfterLaptopSize]: p,
56
- [e.FlexChangeDirectionAfterPcSize]: G,
57
- [e.FlexDirectionColumn]: r === "column",
58
- [e.FlexDirectionRow]: r === "row",
59
- [e.FlexGapXxs]: o === "xxs",
60
- [e.FlexGapXs]: o === "xs",
61
- [e.FlexGapSm]: o === "sm",
62
- [e.FlexGapMd]: o === "md",
63
- [e.FlexGapLg]: o === "lg",
64
- [e.FlexGapXl]: o === "xl",
65
- [e.FlexGapXxl]: o === "xxl",
66
- [e.FlexGapXxxl]: o === "xxxl",
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]: a === "sm",
70
- [e.FlexMarginBottomMd]: a === "md",
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]: i === "center",
75
- [e.FlexJustifyStart]: i === "start",
76
- [e.FlexJustifyEnd]: i === "end"
70
+ [e.FlexJustifyCenter]: o === "center",
71
+ [e.FlexJustifyStart]: o === "start",
72
+ [e.FlexJustifyEnd]: o === "end"
77
73
  }),
78
- children: m.map(
79
- s,
80
- (t, x) => h(t) && l ? d(t, {
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
- ee as Flex
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 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,
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: S,
11
- ParagraphColorPrimary: y,
12
- ParagraphColorSecondary: C,
13
- ParagraphColorAccentPrimary: W,
14
- ParagraphColorAccentSecondary: z
11
+ ParagraphSizeExtraSmall: C,
12
+ ParagraphColorPrimary: W,
13
+ ParagraphColorSecondary: z,
14
+ ParagraphColorAccentPrimary: L,
15
+ ParagraphColorAccentSecondary: A
15
16
  };
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, {
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 o == "string" ? i(h, {
41
+ return typeof h == "string" ? i(o, {
31
42
  className: t,
32
- dangerouslySetInnerHTML: { __html: o },
43
+ dangerouslySetInnerHTML: { __html: h },
33
44
  ...l
34
- }) : i(h, {
45
+ }) : i(o, {
35
46
  className: t,
36
- children: o,
47
+ children: h,
37
48
  ...l
38
49
  });
39
50
  }
40
51
  export {
41
- R as Paragraph
52
+ f as Paragraph
42
53
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arthurzakharov/ui-kit",
3
3
  "private": false,
4
- "version": "1.0.115",
4
+ "version": "1.0.117",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -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)}