@arthurzakharov/ui-kit 1.2.9 → 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 (57) 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/components/accordion-table/accordion-table.component.d.ts +10 -8
  5. package/dist/components/accordion-table/accordion-table.component.js +67 -50
  6. package/dist/components/accordion-table/index.d.ts +1 -0
  7. package/dist/components/accordion-table/index.js +4 -0
  8. package/dist/components/animation/animation.component.d.ts +2 -0
  9. package/dist/components/animation/animation.component.js +8 -6
  10. package/dist/components/animation/fade-grow/fade-grow.component.d.ts +14 -0
  11. package/dist/components/animation/fade-grow/fade-grow.component.js +40 -0
  12. package/dist/components/animation/fade-scale/fade-scale.component.js +1 -1
  13. package/dist/components/animation/fade-slide/fade-slide.component.js +1 -1
  14. package/dist/components/bottom-bar/bottom-bar.component.js +1 -1
  15. package/dist/components/control/components/button-card/button-card.component.d.ts +1 -1
  16. package/dist/components/control/components/button-card/button-card.component.js +2 -2
  17. package/dist/components/control/components/button-radio/button-radio.component.js +1 -1
  18. package/dist/components/control/components/button-text/button-text.component.d.ts +1 -1
  19. package/dist/components/control/components/button-text/button-text.component.js +1 -1
  20. package/dist/components/control/components/card-image/card-image.component.js +1 -1
  21. package/dist/components/control/components/card-text/card-text.component.js +1 -1
  22. package/dist/components/control/components/checkbox/checkbox.component.js +1 -1
  23. package/dist/components/control/components/dropdown/dropdown.component.js +1 -1
  24. package/dist/components/control/components/radio/radio.component.js +1 -1
  25. package/dist/components/control/components/text/text.component.js +1 -1
  26. package/dist/components/control/components/textarea/textarea.component.js +1 -1
  27. package/dist/components/control/control.component.js +1 -1
  28. package/dist/components/dialog-article/dialog-article.component.js +1 -1
  29. package/dist/components/flex/flex.component.d.ts +158 -158
  30. package/dist/components/info-panel/index.d.ts +1 -0
  31. package/dist/components/info-panel/index.js +4 -0
  32. package/dist/components/info-panel/info-panel.component.d.ts +3 -2
  33. package/dist/components/info-panel/info-panel.component.js +12 -13
  34. package/dist/components/information/index.d.ts +1 -0
  35. package/dist/components/information/index.js +4 -0
  36. package/dist/components/information/information.component.d.ts +5 -6
  37. package/dist/components/information/information.component.js +13 -38
  38. package/dist/components/sidebar/components/step/step.component.js +1 -1
  39. package/dist/components/signature/signature.component.js +1 -1
  40. package/dist/components/text/components/tag/tag.component.d.ts +316 -316
  41. package/dist/components/text/text.component.d.ts +316 -316
  42. package/dist/components/user-panel/user-panel.component.js +5 -5
  43. package/dist/{control.component-Cq46ev8T.js → control.component-B0Jbmunv.js} +1 -1
  44. package/dist/main.d.ts +4 -4
  45. package/dist/main.js +2 -2
  46. package/dist/utils/content/content.component.d.ts +8 -0
  47. package/dist/utils/svg/index.d.ts +1 -0
  48. package/dist/utils/svg/index.js +4 -0
  49. package/dist/utils/svg/svg.component.d.ts +10 -0
  50. package/dist/utils/svg/svg.component.js +12 -0
  51. package/package.json +1 -1
  52. package/dist/assets/accordion-table-dU2T0YSw.css +0 -1
  53. package/dist/assets/info-panel-Dv3LM7__.css +0 -1
  54. package/dist/assets/information-D17SaeRr.css +0 -1
  55. package/dist/components/svg/svg.component.d.ts +0 -6
  56. package/dist/components/svg/svg.component.js +0 -9
  57. /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
  };
@@ -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 = {};