@arthurzakharov/ui-kit 1.0.110 → 1.0.111

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_1afhk_1{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:initial}._FlexGapXxs_1afhk_8{gap:var(--rm-ui-padding-xxs)}._FlexGapXs_1afhk_12{gap:var(--rm-ui-padding-xs)}._FlexGapSm_1afhk_16{gap:var(--rm-ui-padding-sm)}._FlexGapMd_1afhk_20{gap:var(--rm-ui-padding-md)}._FlexGapLg_1afhk_24{gap:var(--rm-ui-padding-lg)}._FlexGapXl_1afhk_28{gap:var(--rm-ui-padding-xl)}._FlexGapXxl_1afhk_32{gap:var(--rm-ui-padding-xxl)}._FlexGapXxxl_1afhk_36{gap:var(--rm-ui-padding-xxxl)}._FlexChildGrowContent_1afhk_40{flex-grow:initial}._FlexChildGrowEqual_1afhk_44,._FlexChildGrow1_1afhk_48{flex-grow:1}._FlexChildGrow2_1afhk_52{flex-grow:2}._FlexChildGrow3_1afhk_56{flex-grow:3}._FlexChildGrow4_1afhk_60{flex-grow:4}._FlexDirectionRow_1afhk_64{flex-direction:row;align-items:flex-start}._FlexDirectionColumn_1afhk_69{flex-direction:column;align-items:stretch}
@@ -1,7 +1,7 @@
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
+ grow?: 'content' | 'equal' | (1 | 2 | 3 | 4)[];
5
5
  direction?: 'column' | 'row';
6
6
  }
7
7
  export declare const Flex: (props: FlexProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,54 +1,54 @@
1
- import { jsx as _ } from "react/jsx-runtime";
1
+ import { jsx as n } from "react/jsx-runtime";
2
2
  import { Children as i, cloneElement as t, isValidElement as s } from "react";
3
- import G from "clsx";
4
- import '../../assets/flex-lbQJZmio.css';const p = "_Flex_1q4zx_1", c = "_FlexGapXxs_1q4zx_7", C = "_FlexGapXs_1q4zx_11", w = "_FlexGapSm_1q4zx_15", d = "_FlexGapMd_1q4zx_19", m = "_FlexGapLg_1q4zx_23", q = "_FlexGapXl_1q4zx_27", h = "_FlexGapXxl_1q4zx_31", X = "_FlexGapXxxl_1q4zx_35", z = "_FlexChildGrowContent_1q4zx_39", u = "_FlexChildGrowEqual_1q4zx_43", y = "_FlexChildGrow1_1q4zx_47", A = "_FlexChildGrow2_1q4zx_51", D = "_FlexChildGrow3_1q4zx_55", g = "_FlexChildGrow4_1q4zx_59", E = "_FlexDirectionRow_1q4zx_63", L = "_FlexDirectionColumn_1q4zx_69", l = {
3
+ import r from "clsx";
4
+ import '../../assets/flex-SmlW8MPC.css';const p = "_Flex_1afhk_1", h = "_FlexGapXxs_1afhk_8", c = "_FlexGapXs_1afhk_12", C = "_FlexGapSm_1afhk_16", w = "_FlexGapMd_1afhk_20", d = "_FlexGapLg_1afhk_24", m = "_FlexGapXl_1afhk_28", f = "_FlexGapXxl_1afhk_32", X = "_FlexGapXxxl_1afhk_36", k = "_FlexChildGrowContent_1afhk_40", u = "_FlexChildGrowEqual_1afhk_44", y = "_FlexChildGrow1_1afhk_48", A = "_FlexChildGrow2_1afhk_52", D = "_FlexChildGrow3_1afhk_56", g = "_FlexChildGrow4_1afhk_60", E = "_FlexDirectionRow_1afhk_64", q = "_FlexDirectionColumn_1afhk_69", l = {
5
5
  Flex: p,
6
- FlexGapXxs: c,
7
- FlexGapXs: C,
8
- FlexGapSm: w,
9
- FlexGapMd: d,
10
- FlexGapLg: m,
11
- FlexGapXl: q,
12
- FlexGapXxl: h,
6
+ FlexGapXxs: h,
7
+ FlexGapXs: c,
8
+ FlexGapSm: C,
9
+ FlexGapMd: w,
10
+ FlexGapLg: d,
11
+ FlexGapXl: m,
12
+ FlexGapXxl: f,
13
13
  FlexGapXxxl: X,
14
- FlexChildGrowContent: z,
14
+ FlexChildGrowContent: k,
15
15
  FlexChildGrowEqual: u,
16
16
  FlexChildGrow1: y,
17
17
  FlexChildGrow2: A,
18
18
  FlexChildGrow3: D,
19
19
  FlexChildGrow4: g,
20
20
  FlexDirectionRow: E,
21
- FlexDirectionColumn: L
22
- }, f = (a) => {
23
- const { children: n, gap: e, grow: x = "content", direction: r } = a;
24
- return /* @__PURE__ */ _(
21
+ FlexDirectionColumn: q
22
+ }, S = (G) => {
23
+ const { children: _, gap: x, grow: e, direction: F } = G;
24
+ return /* @__PURE__ */ n(
25
25
  "div",
26
26
  {
27
- className: G(l.Flex, {
28
- [l.FlexDirectionColumn]: r === "column",
29
- [l.FlexDirectionRow]: r === "row",
30
- [l.FlexGapXxs]: e === "xxs",
31
- [l.FlexGapXs]: e === "xs",
32
- [l.FlexGapSm]: e === "sm",
33
- [l.FlexGapMd]: e === "md",
34
- [l.FlexGapLg]: e === "lg",
35
- [l.FlexGapXl]: e === "xl",
36
- [l.FlexGapXxl]: e === "xxl",
37
- [l.FlexGapXxxl]: e === "xxxl"
27
+ className: r(l.Flex, {
28
+ [l.FlexDirectionColumn]: F === "column",
29
+ [l.FlexDirectionRow]: F === "row",
30
+ [l.FlexGapXxs]: x === "xxs",
31
+ [l.FlexGapXs]: x === "xs",
32
+ [l.FlexGapSm]: x === "sm",
33
+ [l.FlexGapMd]: x === "md",
34
+ [l.FlexGapLg]: x === "lg",
35
+ [l.FlexGapXl]: x === "xl",
36
+ [l.FlexGapXxl]: x === "xxl",
37
+ [l.FlexGapXxxl]: x === "xxxl"
38
38
  }),
39
- children: i.map(n, (o, F) => s(o) ? t(o, {
40
- className: G(o.props.className, {
41
- [l.FlexChildGrowContent]: x === "content",
42
- [l.FlexChildGrowEqual]: x === "equal",
43
- [l.FlexChildGrow1]: Array.isArray(x) && x[F] === 1,
44
- [l.FlexChildGrow2]: Array.isArray(x) && x[F] === 2,
45
- [l.FlexChildGrow3]: Array.isArray(x) && x[F] === 3,
46
- [l.FlexChildGrow4]: Array.isArray(x) && x[F] === 4
39
+ children: i.map(_, (o, a) => s(o) && e ? t(o, {
40
+ className: r(o.props.className, {
41
+ [l.FlexChildGrowContent]: e === "content",
42
+ [l.FlexChildGrowEqual]: e === "equal",
43
+ [l.FlexChildGrow1]: Array.isArray(e) && e[a] === 1,
44
+ [l.FlexChildGrow2]: Array.isArray(e) && e[a] === 2,
45
+ [l.FlexChildGrow3]: Array.isArray(e) && e[a] === 3,
46
+ [l.FlexChildGrow4]: Array.isArray(e) && e[a] === 4
47
47
  })
48
48
  }) : o)
49
49
  }
50
50
  );
51
51
  };
52
52
  export {
53
- f as Flex
53
+ S as Flex
54
54
  };
package/dist/main.d.ts CHANGED
@@ -5,6 +5,7 @@ export { DataProtectedLabel, type DataProtectedLabelProps, } from './components/
5
5
  export { Dialog, type DialogProps, type DialogSize, type DialogPosition } from './components/dialog/dialog.component';
6
6
  export { DialogArticle, type DialogArticleProps, type DialogActionButton, } from './components/dialog-article/dialog-article.component';
7
7
  export { Expenses, type ExpensesProps } from './components/expenses/expenses.component';
8
+ export { Flex, type FlexProps } from './components/flex/flex.component';
8
9
  export { Footer, type FooterProps, type FooterLink } from './components/footer/footer.component';
9
10
  export { Header, type HeaderProps, type HeaderDescription } from './components/header/header.component';
10
11
  export { InfoPanel, type InfoPanelProps } from './components/info-panel/info-panel.component';
package/dist/main.js CHANGED
@@ -5,24 +5,25 @@ import { DataProtectedLabel as a } from "./components/data-protected-label/data-
5
5
  import { Dialog as i } from "./components/dialog/dialog.component.js";
6
6
  import { DialogArticle as s } from "./components/dialog-article/dialog-article.component.js";
7
7
  import { Expenses as d } from "./components/expenses/expenses.component.js";
8
- import { Footer as L } from "./components/footer/footer.component.js";
9
- import { Header as y } from "./components/header/header.component.js";
10
- import { InfoPanel as C } from "./components/info-panel/info-panel.component.js";
11
- import { Information as M } from "./components/information/information.component.js";
12
- import { Layout as k } from "./components/layout/layout.component.js";
13
- import { Line as B } from "./components/line/line.component.js";
14
- import { Loader as I } from "./components/loader/loader.component.js";
15
- import { LoadingBlock as h } from "./components/loading-block/loading-block.component.js";
16
- import { MainAttachment as E } from "./components/main-attachment/main-attachment.component.js";
17
- import { Message as N } from "./components/message/message.component.js";
18
- import { MessageBlock as U } from "./components/message-block/message-block.component.js";
19
- import { NotFound as j } from "./components/not-found/not-found.component.js";
20
- import { Payment as w } from "./components/payment/payment.component.js";
21
- import { Sidebar as G } from "./components/sidebar/sidebar.component.js";
22
- import { Svg as K } from "./components/svg/svg.component.js";
23
- import { Text as Q } from "./components/text/text.component.js";
24
- import { UserPanel as V } from "./components/user-panel/user-panel.component.js";
25
- import { Warranty as Y } from "./components/warranty/warranty.component.js";
8
+ import { Flex as L } from "./components/flex/flex.component.js";
9
+ import { Footer as y } from "./components/footer/footer.component.js";
10
+ import { Header as C } from "./components/header/header.component.js";
11
+ import { InfoPanel as F } from "./components/info-panel/info-panel.component.js";
12
+ import { Information as b } from "./components/information/information.component.js";
13
+ import { Layout as u } from "./components/layout/layout.component.js";
14
+ import { Line as I } from "./components/line/line.component.js";
15
+ import { Loader as h } from "./components/loader/loader.component.js";
16
+ import { LoadingBlock as E } from "./components/loading-block/loading-block.component.js";
17
+ import { MainAttachment as N } from "./components/main-attachment/main-attachment.component.js";
18
+ import { Message as U } from "./components/message/message.component.js";
19
+ import { MessageBlock as j } from "./components/message-block/message-block.component.js";
20
+ import { NotFound as w } from "./components/not-found/not-found.component.js";
21
+ import { Payment as G } from "./components/payment/payment.component.js";
22
+ import { Sidebar as K } from "./components/sidebar/sidebar.component.js";
23
+ import { Svg as Q } from "./components/svg/svg.component.js";
24
+ import { Text as V } from "./components/text/text.component.js";
25
+ import { UserPanel as Y } from "./components/user-panel/user-panel.component.js";
26
+ import { Warranty as _ } from "./components/warranty/warranty.component.js";
26
27
  import './assets/main--usgu9xb.css';export {
27
28
  e as Animation,
28
29
  m as Certifications,
@@ -31,22 +32,23 @@ import './assets/main--usgu9xb.css';export {
31
32
  i as Dialog,
32
33
  s as DialogArticle,
33
34
  d as Expenses,
34
- L as Footer,
35
- y as Header,
36
- C as InfoPanel,
37
- M as Information,
38
- k as Layout,
39
- B as Line,
40
- I as Loader,
41
- h as LoadingBlock,
42
- E as MainAttachment,
43
- N as Message,
44
- U as MessageBlock,
45
- j as NotFound,
46
- w as Payment,
47
- G as Sidebar,
48
- K as Svg,
49
- Q as Text,
50
- V as UserPanel,
51
- Y as Warranty
35
+ L as Flex,
36
+ y as Footer,
37
+ C as Header,
38
+ F as InfoPanel,
39
+ b as Information,
40
+ u as Layout,
41
+ I as Line,
42
+ h as Loader,
43
+ E as LoadingBlock,
44
+ N as MainAttachment,
45
+ U as Message,
46
+ j as MessageBlock,
47
+ w as NotFound,
48
+ G as Payment,
49
+ K as Sidebar,
50
+ Q as Svg,
51
+ V as Text,
52
+ Y as UserPanel,
53
+ _ as Warranty
52
54
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arthurzakharov/ui-kit",
3
3
  "private": false,
4
- "version": "1.0.110",
4
+ "version": "1.0.111",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -1 +0,0 @@
1
- ._Flex_1q4zx_1{display:flex;flex-wrap:nowrap;background-color:#82868f}._FlexGapXxs_1q4zx_7{gap:var(--rm-ui-padding-xxs)}._FlexGapXs_1q4zx_11{gap:var(--rm-ui-padding-xs)}._FlexGapSm_1q4zx_15{gap:var(--rm-ui-padding-sm)}._FlexGapMd_1q4zx_19{gap:var(--rm-ui-padding-md)}._FlexGapLg_1q4zx_23{gap:var(--rm-ui-padding-lg)}._FlexGapXl_1q4zx_27{gap:var(--rm-ui-padding-xl)}._FlexGapXxl_1q4zx_31{gap:var(--rm-ui-padding-xxl)}._FlexGapXxxl_1q4zx_35{gap:var(--rm-ui-padding-xxxl)}._FlexChildGrowContent_1q4zx_39{flex-grow:initial}._FlexChildGrowEqual_1q4zx_43,._FlexChildGrow1_1q4zx_47{flex-grow:1}._FlexChildGrow2_1q4zx_51{flex-grow:2}._FlexChildGrow3_1q4zx_55{flex-grow:3}._FlexChildGrow4_1q4zx_59{flex-grow:4}._FlexDirectionRow_1q4zx_63{flex-direction:row;align-items:flex-start;justify-content:flex-start}._FlexDirectionColumn_1q4zx_69{flex-direction:column;align-items:stretch;justify-content:flex-start}