@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.
Files changed (72) hide show
  1. package/dist/assets/accordion-table-DWNXtJHt.css +1 -0
  2. package/dist/assets/info-panel-BAcoIlE-.css +1 -0
  3. package/dist/assets/information-D-nqKgE6.css +1 -0
  4. package/dist/assets/loader-C0f3AvRU.css +1 -0
  5. package/dist/assets/user-panel-BJB6pJ70.css +1 -0
  6. package/dist/components/accordion-table/accordion-table.component.d.ts +10 -8
  7. package/dist/components/accordion-table/accordion-table.component.js +67 -50
  8. package/dist/components/accordion-table/index.d.ts +1 -0
  9. package/dist/components/accordion-table/index.js +4 -0
  10. package/dist/components/animation/animation.component.d.ts +2 -0
  11. package/dist/components/animation/animation.component.js +8 -6
  12. package/dist/components/animation/fade-grow/fade-grow.component.d.ts +14 -0
  13. package/dist/components/animation/fade-grow/fade-grow.component.js +40 -0
  14. package/dist/components/animation/fade-scale/fade-scale.component.js +1 -1
  15. package/dist/components/animation/fade-slide/fade-slide.component.js +1 -1
  16. package/dist/components/bottom-bar/bottom-bar.component.js +1 -1
  17. package/dist/components/control/components/button-card/button-card.component.d.ts +1 -1
  18. package/dist/components/control/components/button-card/button-card.component.js +2 -2
  19. package/dist/components/control/components/button-radio/button-radio.component.js +1 -1
  20. package/dist/components/control/components/button-text/button-text.component.d.ts +1 -1
  21. package/dist/components/control/components/button-text/button-text.component.js +1 -1
  22. package/dist/components/control/components/card-image/card-image.component.js +1 -1
  23. package/dist/components/control/components/card-text/card-text.component.js +1 -1
  24. package/dist/components/control/components/checkbox/checkbox.component.js +1 -1
  25. package/dist/components/control/components/dropdown/dropdown.component.js +1 -1
  26. package/dist/components/control/components/radio/radio.component.js +1 -1
  27. package/dist/components/control/components/text/text.component.js +1 -1
  28. package/dist/components/control/components/textarea/textarea.component.js +1 -1
  29. package/dist/components/control/control.component.js +1 -1
  30. package/dist/components/dialog-article/dialog-article.component.js +1 -1
  31. package/dist/components/flex/flex.component.d.ts +158 -158
  32. package/dist/components/info-panel/index.d.ts +1 -0
  33. package/dist/components/info-panel/index.js +4 -0
  34. package/dist/components/info-panel/info-panel.component.d.ts +3 -2
  35. package/dist/components/info-panel/info-panel.component.js +12 -13
  36. package/dist/components/information/index.d.ts +1 -0
  37. package/dist/components/information/index.js +4 -0
  38. package/dist/components/information/information.component.d.ts +5 -6
  39. package/dist/components/information/information.component.js +13 -38
  40. package/dist/components/loader/loader.component.d.ts +2 -1
  41. package/dist/components/loader/loader.component.js +66 -35
  42. package/dist/components/sidebar/components/step/step.component.js +1 -1
  43. package/dist/components/signature/signature.component.js +1 -1
  44. package/dist/components/text/components/tag/tag.component.d.ts +316 -316
  45. package/dist/components/text/text.component.d.ts +316 -316
  46. package/dist/components/user-panel/index.d.ts +1 -0
  47. package/dist/components/user-panel/index.js +4 -0
  48. package/dist/components/user-panel/user-panel.component.d.ts +6 -5
  49. package/dist/components/user-panel/user-panel.component.js +27 -27
  50. package/dist/{control.component-Cq46ev8T.js → control.component-B0Jbmunv.js} +1 -1
  51. package/dist/main.d.ts +5 -6
  52. package/dist/main.js +35 -37
  53. package/dist/utils/content/content.component.d.ts +8 -0
  54. package/dist/utils/functions/functions.util.d.ts +7 -0
  55. package/dist/utils/functions/functions.util.js +9 -5
  56. package/dist/utils/functions/index.js +4 -3
  57. package/dist/utils/svg/index.d.ts +1 -0
  58. package/dist/utils/svg/index.js +4 -0
  59. package/dist/utils/svg/svg.component.d.ts +10 -0
  60. package/dist/utils/svg/svg.component.js +12 -0
  61. package/package.json +1 -1
  62. package/dist/assets/accordion-table-dU2T0YSw.css +0 -1
  63. package/dist/assets/info-panel-Dv3LM7__.css +0 -1
  64. package/dist/assets/information-D17SaeRr.css +0 -1
  65. package/dist/assets/loader-BBn4lDjH.css +0 -1
  66. package/dist/assets/loading-block-al0S6J3z.css +0 -1
  67. package/dist/assets/user-panel-BEeXLR6v.css +0 -1
  68. package/dist/components/loading-block/loading-block.component.d.ts +0 -1
  69. package/dist/components/loading-block/loading-block.component.js +0 -8
  70. package/dist/components/svg/svg.component.d.ts +0 -6
  71. package/dist/components/svg/svg.component.js +0 -9
  72. /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';
@@ -0,0 +1,4 @@
1
+ import { InfoPanel as f } from "./info-panel.component.js";
2
+ export {
3
+ f as InfoPanel
4
+ };
@@ -1,4 +1,5 @@
1
- export interface InfoPanelProps {
1
+ import { BaseProps } from '../../utils/types';
2
+ export interface InfoPanelProps extends BaseProps {
2
3
  data: [string, string][];
3
4
  }
4
- export declare const InfoPanel: (props: InfoPanelProps) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const InfoPanel: ({ data, className }: InfoPanelProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,16 +1,15 @@
1
- import { jsx as n, jsxs as r } from "react/jsx-runtime";
2
- import { Text as l } from "../text/text.component.js";
3
- import '../../assets/info-panel-Dv3LM7__.css';const c = "_InfoPanel_u07l9_1", i = "_InfoPanelList_u07l9_27", I = "_InfoPanelItem_u07l9_37", a = {
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
- InfoPanelList: i,
6
- InfoPanelItem: I
7
- }, P = (o) => {
8
- const { data: s = [] } = o;
9
- return /* @__PURE__ */ n("div", { className: a.InfoPanel, children: /* @__PURE__ */ n("ul", { className: a.InfoPanelList, children: s.map(([e, t]) => /* @__PURE__ */ r("li", { className: a.InfoPanelItem, children: [
10
- /* @__PURE__ */ n(l.Tag, { tag: "span", weight: "regular", size: "small", color: "secondary", children: e }),
11
- /* @__PURE__ */ n(l.Tag, { tag: "span", weight: "regular", size: "small", color: "primary", children: t })
12
- ] }, e)) }) });
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
- P as InfoPanel
14
+ r as InfoPanel
16
15
  };
@@ -0,0 +1 @@
1
+ export { Information, type InformationProps } from './information.component';
@@ -0,0 +1,4 @@
1
+ import { Information as f } from "./information.component.js";
2
+ export {
3
+ f as Information
4
+ };
@@ -1,7 +1,6 @@
1
1
  import { PropsWithChildren } from 'react';
2
- export interface InformationProps extends PropsWithChildren {
3
- size?: 'regular' | 'small' | 'extra-small';
4
- color?: 'primary' | 'secondary' | 'accent-primary' | 'accent-secondary';
5
- className?: string;
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 e, jsx as a } from "react/jsx-runtime";
2
- import { forwardRef as l } from "react";
3
- import { Info as f } from "lucide-react";
4
- import I from "clsx";
5
- import '../../assets/information-D17SaeRr.css';const s = "_Information_mz7ra_1", _ = "_InformationSizeRegular_mz7ra_12", S = "_InformationSizeSmall_mz7ra_18", z = "_InformationSizeExtraSmall_mz7ra_24", y = "_InformationColorPrimary_mz7ra_30", C = "_InformationColorSecondary_mz7ra_34", d = "_InformationColorAccentPrimary_mz7ra_38", x = "_InformationColorAccentSecondary_mz7ra_42", p = "_InformationIcon_mz7ra_46", A = "_InformationText_mz7ra_54", o = {
6
- Information: s,
7
- InformationSizeRegular: _,
8
- InformationSizeSmall: S,
9
- InformationSizeExtraSmall: z,
10
- InformationColorPrimary: y,
11
- InformationColorSecondary: C,
12
- InformationColorAccentPrimary: d,
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
- E as Information
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 s } from "react/jsx-runtime";
2
- import t from "clsx";
3
- import { Loader as c } from "lucide-react";
4
- import '../../assets/loader-BBn4lDjH.css';const n = "_Loader_2orye_1", i = "_White_2orye_6", m = "_Primary_2orye_10", y = "_Secondary_2orye_14", r = {
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
- White: i,
7
- Primary: m,
8
- Secondary: y
9
- }, u = ({ size: a, color: e, className: o = "" }) => /* @__PURE__ */ s(
10
- c,
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
- size: (() => {
13
- switch (a) {
14
- case "xxs":
15
- return 16;
16
- case "xs":
17
- return 24;
18
- case "sm":
19
- return 32;
20
- case "md":
21
- return 40;
22
- case "lg":
23
- return 48;
24
- case "xl":
25
- return 56;
26
- case "xxl":
27
- return 64;
28
- case "xxxl":
29
- return 72;
30
- }
31
- })(),
32
- className: t(r.Loader, o, {
33
- [r.White]: e === "white",
34
- [r.Primary]: e === "primary",
35
- [r.Secondary]: e === "secondary"
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
- u as Loader
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-Cq46ev8T.js";
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-Cq46ev8T.js";
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 = {};