@arthurzakharov/ui-kit 1.2.8 → 1.3.0
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/accordion-table-DWNXtJHt.css +1 -0
- package/dist/assets/info-panel-BAcoIlE-.css +1 -0
- package/dist/assets/information-D-nqKgE6.css +1 -0
- package/dist/assets/loader-C0f3AvRU.css +1 -0
- package/dist/assets/user-panel-BJB6pJ70.css +1 -0
- package/dist/components/accordion-table/accordion-table.component.d.ts +10 -8
- package/dist/components/accordion-table/accordion-table.component.js +67 -50
- package/dist/components/accordion-table/index.d.ts +1 -0
- package/dist/components/accordion-table/index.js +4 -0
- package/dist/components/animation/animation.component.d.ts +2 -0
- package/dist/components/animation/animation.component.js +8 -6
- package/dist/components/animation/fade-grow/fade-grow.component.d.ts +14 -0
- package/dist/components/animation/fade-grow/fade-grow.component.js +40 -0
- package/dist/components/animation/fade-scale/fade-scale.component.js +1 -1
- package/dist/components/animation/fade-slide/fade-slide.component.js +1 -1
- package/dist/components/bottom-bar/bottom-bar.component.js +1 -1
- package/dist/components/control/components/button-card/button-card.component.d.ts +1 -1
- package/dist/components/control/components/button-card/button-card.component.js +2 -2
- package/dist/components/control/components/button-radio/button-radio.component.js +1 -1
- package/dist/components/control/components/button-text/button-text.component.d.ts +1 -1
- package/dist/components/control/components/button-text/button-text.component.js +1 -1
- package/dist/components/control/components/card-image/card-image.component.js +1 -1
- package/dist/components/control/components/card-text/card-text.component.js +1 -1
- package/dist/components/control/components/checkbox/checkbox.component.js +1 -1
- package/dist/components/control/components/dropdown/dropdown.component.js +1 -1
- package/dist/components/control/components/radio/radio.component.js +1 -1
- package/dist/components/control/components/text/text.component.js +1 -1
- package/dist/components/control/components/textarea/textarea.component.js +1 -1
- package/dist/components/control/control.component.js +1 -1
- package/dist/components/dialog-article/dialog-article.component.js +1 -1
- package/dist/components/flex/flex.component.d.ts +158 -158
- package/dist/components/info-panel/index.d.ts +1 -0
- package/dist/components/info-panel/index.js +4 -0
- package/dist/components/info-panel/info-panel.component.d.ts +3 -2
- package/dist/components/info-panel/info-panel.component.js +12 -13
- package/dist/components/information/index.d.ts +1 -0
- package/dist/components/information/index.js +4 -0
- package/dist/components/information/information.component.d.ts +5 -6
- package/dist/components/information/information.component.js +13 -38
- package/dist/components/loader/loader.component.d.ts +2 -1
- package/dist/components/loader/loader.component.js +66 -35
- package/dist/components/sidebar/components/step/step.component.js +1 -1
- package/dist/components/signature/signature.component.js +1 -1
- package/dist/components/text/components/tag/tag.component.d.ts +316 -316
- package/dist/components/text/text.component.d.ts +316 -316
- package/dist/components/user-panel/index.d.ts +1 -0
- package/dist/components/user-panel/index.js +4 -0
- package/dist/components/user-panel/user-panel.component.d.ts +6 -5
- package/dist/components/user-panel/user-panel.component.js +27 -27
- package/dist/{control.component-Cq46ev8T.js → control.component-B0Jbmunv.js} +1 -1
- package/dist/main.d.ts +5 -6
- package/dist/main.js +35 -37
- package/dist/utils/content/content.component.d.ts +8 -0
- package/dist/utils/functions/functions.util.d.ts +7 -0
- package/dist/utils/functions/functions.util.js +9 -5
- package/dist/utils/functions/index.js +4 -3
- package/dist/utils/svg/index.d.ts +1 -0
- package/dist/utils/svg/index.js +4 -0
- package/dist/utils/svg/svg.component.d.ts +10 -0
- package/dist/utils/svg/svg.component.js +12 -0
- package/package.json +1 -1
- package/dist/assets/accordion-table-dU2T0YSw.css +0 -1
- package/dist/assets/info-panel-Dv3LM7__.css +0 -1
- package/dist/assets/information-D17SaeRr.css +0 -1
- package/dist/assets/loader-BBn4lDjH.css +0 -1
- package/dist/assets/loading-block-al0S6J3z.css +0 -1
- package/dist/assets/user-panel-BEeXLR6v.css +0 -1
- package/dist/components/loading-block/loading-block.component.d.ts +0 -1
- package/dist/components/loading-block/loading-block.component.js +0 -8
- package/dist/components/svg/svg.component.d.ts +0 -6
- package/dist/components/svg/svg.component.js +0 -9
- /package/dist/assets/{fade-scale-B23oZuuD.css → fade-grow-B23oZuuD.css} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InfoPanel, type InfoPanelProps } from './info-panel.component';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { BaseProps } from '../../utils/types';
|
|
2
|
+
export interface InfoPanelProps extends BaseProps {
|
|
2
3
|
data: [string, string][];
|
|
3
4
|
}
|
|
4
|
-
export declare const InfoPanel: (
|
|
5
|
+
export declare const InfoPanel: ({ data, className }: InfoPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import '../../assets/info-panel-
|
|
1
|
+
import { jsx as s, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import o from "clsx";
|
|
3
|
+
import '../../assets/info-panel-BAcoIlE-.css';const c = "_InfoPanel_h5syx_1", _ = "_List_h5syx_30", d = "_Item_h5syx_40", m = "_Key_h5syx_47", f = "_Value_h5syx_51", e = {
|
|
4
4
|
InfoPanel: c,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
5
|
+
List: _,
|
|
6
|
+
Item: d,
|
|
7
|
+
Key: m,
|
|
8
|
+
Value: f
|
|
9
|
+
}, r = ({ data: n, className: t = "" }) => /* @__PURE__ */ s("div", { "data-testid": "info-panel", className: o(e.InfoPanel, t), children: /* @__PURE__ */ s("ul", { "data-testid": "info-panel-list", className: e.List, children: n.map(([a, l]) => /* @__PURE__ */ i("li", { className: e.Item, children: [
|
|
10
|
+
/* @__PURE__ */ s("span", { "data-testid": "info-panel-key", className: e.Key, children: a }),
|
|
11
|
+
/* @__PURE__ */ s("span", { "data-testid": "info-panel-value", className: e.Value, children: l })
|
|
12
|
+
] }, a)) }) });
|
|
14
13
|
export {
|
|
15
|
-
|
|
14
|
+
r as InfoPanel
|
|
16
15
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Information, type InformationProps } from './information.component';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
export declare const Information: import('react').ForwardRefExoticComponent<InformationProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
2
|
+
import { BaseProps } from '../../utils/types';
|
|
3
|
+
export type InformationProps = PropsWithChildren<BaseProps>;
|
|
4
|
+
export declare const Information: import('react').ForwardRefExoticComponent<BaseProps & {
|
|
5
|
+
children?: import('react').ReactNode | undefined;
|
|
6
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,40 +1,15 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { Info as
|
|
4
|
-
import
|
|
5
|
-
import '../../assets/information-
|
|
6
|
-
Information:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
InformationColorAccentSecondary: x,
|
|
14
|
-
InformationIcon: p,
|
|
15
|
-
InformationText: A
|
|
16
|
-
}, E = l((m, t) => {
|
|
17
|
-
const { children: i, size: n = "regular", color: r = "primary", className: c = "" } = m;
|
|
18
|
-
return /* @__PURE__ */ e(
|
|
19
|
-
"div",
|
|
20
|
-
{
|
|
21
|
-
ref: t,
|
|
22
|
-
className: I(o.Information, c, {
|
|
23
|
-
[o.InformationColorPrimary]: r === "primary",
|
|
24
|
-
[o.InformationSizeRegular]: n === "regular",
|
|
25
|
-
[o.InformationSizeSmall]: n === "small",
|
|
26
|
-
[o.InformationSizeExtraSmall]: n === "extra-small",
|
|
27
|
-
[o.InformationColorSecondary]: r === "secondary",
|
|
28
|
-
[o.InformationColorAccentPrimary]: r === "accent-primary",
|
|
29
|
-
[o.InformationColorAccentSecondary]: r === "accent-secondary"
|
|
30
|
-
}),
|
|
31
|
-
children: [
|
|
32
|
-
/* @__PURE__ */ a(f, { className: o.InformationIcon }),
|
|
33
|
-
/* @__PURE__ */ a("div", { className: o.InformationText, children: i })
|
|
34
|
-
]
|
|
35
|
-
}
|
|
36
|
-
);
|
|
37
|
-
});
|
|
1
|
+
import { jsxs as s, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as a } from "react";
|
|
3
|
+
import { Info as c } from "lucide-react";
|
|
4
|
+
import i from "clsx";
|
|
5
|
+
import '../../assets/information-D-nqKgE6.css';const f = "_Information_1g632_1", e = "_Icon_1g632_16", I = "_Text_1g632_25", o = {
|
|
6
|
+
Information: f,
|
|
7
|
+
Icon: e,
|
|
8
|
+
Text: I
|
|
9
|
+
}, p = a(({ children: t, className: r = "" }, m) => /* @__PURE__ */ s("div", { "data-testid": "information", ref: m, className: i(o.Information, r), children: [
|
|
10
|
+
/* @__PURE__ */ n(c, { className: o.Icon }),
|
|
11
|
+
/* @__PURE__ */ n("div", { className: o.Text, children: t })
|
|
12
|
+
] }));
|
|
38
13
|
export {
|
|
39
|
-
|
|
14
|
+
p as Information
|
|
40
15
|
};
|
|
@@ -3,6 +3,7 @@ type LoaderColor = 'white' | 'primary' | 'secondary';
|
|
|
3
3
|
export interface LoaderProps extends BaseProps {
|
|
4
4
|
size: Size;
|
|
5
5
|
color: LoaderColor;
|
|
6
|
+
padding?: Size;
|
|
6
7
|
}
|
|
7
|
-
export declare const Loader: ({ size, color, className }: LoaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const Loader: ({ size, color, padding, className }: LoaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -1,41 +1,72 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { Loader as
|
|
4
|
-
import '../../assets/loader-
|
|
1
|
+
import { jsxs as t, jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import s from "clsx";
|
|
3
|
+
import { Loader as X } from "lucide-react";
|
|
4
|
+
import '../../assets/loader-C0f3AvRU.css';const n = "_Loader_11mao_1", m = "_Padding_11mao_5", L = "_XXS_11mao_10", x = "_XS_11mao_14", i = "_SM_11mao_18", S = "_MD_11mao_22", d = "_LG_11mao_26", l = "_XL_11mao_30", y = "_XXL_11mao_34", u = "_XXXL_11mao_38", M = "_Icon_11mao_42", P = "_White_11mao_47", h = "_Primary_11mao_51", D = "_Secondary_11mao_55", o = {
|
|
5
5
|
Loader: n,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
Padding: m,
|
|
7
|
+
XXS: L,
|
|
8
|
+
XS: x,
|
|
9
|
+
SM: i,
|
|
10
|
+
MD: S,
|
|
11
|
+
LG: d,
|
|
12
|
+
XL: l,
|
|
13
|
+
XXL: y,
|
|
14
|
+
XXXL: u,
|
|
15
|
+
Icon: M,
|
|
16
|
+
White: P,
|
|
17
|
+
Primary: h,
|
|
18
|
+
Secondary: D
|
|
19
|
+
}, f = ({ size: e, color: r, padding: a, className: _ = "" }) => /* @__PURE__ */ t(
|
|
20
|
+
"div",
|
|
11
21
|
{
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
22
|
+
"data-testid": "loader",
|
|
23
|
+
className: s(o.Loader, _, {
|
|
24
|
+
[o.Padding]: !!a,
|
|
25
|
+
[o.XXS]: a === "xxs",
|
|
26
|
+
[o.XS]: a === "xs",
|
|
27
|
+
[o.SM]: a === "sm",
|
|
28
|
+
[o.MD]: a === "md",
|
|
29
|
+
[o.LG]: a === "lg",
|
|
30
|
+
[o.XL]: a === "xl",
|
|
31
|
+
[o.XXL]: a === "xxl",
|
|
32
|
+
[o.XXXL]: a === "xxxl"
|
|
33
|
+
}),
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ c(
|
|
36
|
+
X,
|
|
37
|
+
{
|
|
38
|
+
"data-testid": "loader-icon",
|
|
39
|
+
size: (() => {
|
|
40
|
+
switch (e) {
|
|
41
|
+
case "xxs":
|
|
42
|
+
return 16;
|
|
43
|
+
case "xs":
|
|
44
|
+
return 24;
|
|
45
|
+
case "sm":
|
|
46
|
+
return 32;
|
|
47
|
+
case "md":
|
|
48
|
+
return 40;
|
|
49
|
+
case "lg":
|
|
50
|
+
return 48;
|
|
51
|
+
case "xl":
|
|
52
|
+
return 56;
|
|
53
|
+
case "xxl":
|
|
54
|
+
return 64;
|
|
55
|
+
case "xxxl":
|
|
56
|
+
return 72;
|
|
57
|
+
}
|
|
58
|
+
})(),
|
|
59
|
+
className: s(o.Icon, {
|
|
60
|
+
[o.White]: r === "white",
|
|
61
|
+
[o.Primary]: r === "primary",
|
|
62
|
+
[o.Secondary]: r === "secondary"
|
|
63
|
+
})
|
|
64
|
+
}
|
|
65
|
+
),
|
|
66
|
+
" "
|
|
67
|
+
]
|
|
37
68
|
}
|
|
38
69
|
);
|
|
39
70
|
export {
|
|
40
|
-
|
|
71
|
+
f as Loader
|
|
41
72
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as i, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { C as s } from "../../../../control.component-
|
|
2
|
+
import { C as s } from "../../../../control.component-B0Jbmunv.js";
|
|
3
3
|
import { Flex as a } from "../../../flex/flex.component.js";
|
|
4
4
|
import { Text as m } from "../../../text/text.component.js";
|
|
5
5
|
const d = (e) => {
|
|
@@ -5,7 +5,7 @@ import { useResizeObserver as Be } from "usehooks-ts";
|
|
|
5
5
|
import { RefreshCw as Ue, Loader as Ne, Check as Ye } from "lucide-react";
|
|
6
6
|
import He from "clsx";
|
|
7
7
|
import { Animation as ee } from "../animation/animation.component.js";
|
|
8
|
-
import { C as oe } from "../../control.component-
|
|
8
|
+
import { C as oe } from "../../control.component-B0Jbmunv.js";
|
|
9
9
|
import { Flex as ie } from "../flex/flex.component.js";
|
|
10
10
|
import { Text as Pe } from "../text/text.component.js";
|
|
11
11
|
import '../../assets/signature-CLmBTe_C.css';var le = { exports: {} }, ue = { exports: {} }, ce = { exports: {} }, I = {};
|