@arthurzakharov/ui-kit 1.2.7 → 1.2.9

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 (53) hide show
  1. package/dist/assets/loader-C0f3AvRU.css +1 -0
  2. package/dist/assets/user-panel-BJB6pJ70.css +1 -0
  3. package/dist/assets/warranty-8YaLpEkj.css +1 -0
  4. package/dist/components/certifications/certifications.component.d.ts +6 -1
  5. package/dist/components/certifications/index.d.ts +1 -2
  6. package/dist/components/flex/flex.component.d.ts +17 -17
  7. package/dist/components/footer/footer.component.d.ts +10 -1
  8. package/dist/components/footer/index.d.ts +1 -2
  9. package/dist/components/form-row/form-row.component.d.ts +2 -2
  10. package/dist/components/loader/index.d.ts +1 -2
  11. package/dist/components/loader/loader.component.d.ts +9 -2
  12. package/dist/components/loader/loader.component.js +66 -35
  13. package/dist/components/message/index.d.ts +1 -2
  14. package/dist/components/message/message.component.d.ts +9 -1
  15. package/dist/components/message/message.component.js +22 -21
  16. package/dist/components/not-found/index.d.ts +1 -2
  17. package/dist/components/not-found/not-found.component.d.ts +12 -1
  18. package/dist/components/user-panel/index.d.ts +1 -0
  19. package/dist/components/user-panel/index.js +4 -0
  20. package/dist/components/user-panel/user-panel.component.d.ts +6 -5
  21. package/dist/components/user-panel/user-panel.component.js +27 -27
  22. package/dist/components/warranty/index.d.ts +1 -0
  23. package/dist/components/warranty/index.js +4 -0
  24. package/dist/components/warranty/warranty.component.d.ts +5 -4
  25. package/dist/components/warranty/warranty.component.js +29 -26
  26. package/dist/main.d.ts +2 -3
  27. package/dist/main.js +34 -36
  28. package/dist/utils/content/content.component.d.ts +272 -0
  29. package/dist/utils/content/content.component.js +6 -0
  30. package/dist/utils/content/index.d.ts +1 -0
  31. package/dist/utils/content/index.js +4 -0
  32. package/dist/utils/functions/functions.util.d.ts +21 -0
  33. package/dist/utils/functions/functions.util.js +18 -0
  34. package/dist/utils/functions/index.d.ts +1 -0
  35. package/dist/utils/functions/index.js +7 -0
  36. package/dist/utils/types.d.ts +1 -1
  37. package/package.json +2 -1
  38. package/dist/assets/loader-BBn4lDjH.css +0 -1
  39. package/dist/assets/loading-block-al0S6J3z.css +0 -1
  40. package/dist/assets/user-panel-BEeXLR6v.css +0 -1
  41. package/dist/assets/warranty-BoOQkbCu.css +0 -1
  42. package/dist/components/certifications/certifications.types.d.ts +0 -4
  43. package/dist/components/certifications/certifications.types.js +0 -1
  44. package/dist/components/footer/footer.types.d.ts +0 -8
  45. package/dist/components/footer/footer.types.js +0 -1
  46. package/dist/components/loader/loader.types.d.ts +0 -5
  47. package/dist/components/loader/loader.types.js +0 -1
  48. package/dist/components/loading-block/loading-block.component.d.ts +0 -1
  49. package/dist/components/loading-block/loading-block.component.js +0 -8
  50. package/dist/components/message/message.types.d.ts +0 -7
  51. package/dist/components/message/message.types.js +0 -1
  52. package/dist/components/not-found/not-found.types.d.ts +0 -10
  53. package/dist/components/not-found/not-found.types.js +0 -1
@@ -0,0 +1 @@
1
+ ._Loader_11mao_1{display:inline-flex}._Padding_11mao_5{display:flex;justify-content:center}._XXS_11mao_10{padding:32px}._XS_11mao_14{padding:64px}._SM_11mao_18{padding:96px}._MD_11mao_22{padding:128px}._LG_11mao_26{padding:160px}._XL_11mao_30{padding:192px}._XXL_11mao_34{padding:224px}._XXXL_11mao_38{padding:256px}._Icon_11mao_42{animation:_spinPulse_11mao_1 2s linear infinite;transform-origin:center}._White_11mao_47{stroke:#fff}._Primary_11mao_51{stroke:var(--rm-ui-color-accent-primary)}._Secondary_11mao_55{stroke:var(--rm-ui-color-accent-secondary)}._Icon_11mao_42>path{animation:_dash_11mao_1 2s linear infinite}@keyframes _spinPulse_11mao_1{0%{transform:rotate(0) scale(1)}50%{transform:rotate(180deg) scale(1.25)}to{transform:rotate(360deg) scale(1)}}@keyframes _dash_11mao_1{0%{stroke-opacity:1}50%{stroke-opacity:.5}to{stroke-opacity:1}}
@@ -0,0 +1 @@
1
+ ._User_12b2p_1{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:var(--rm-ui-padding-sm);font-weight:var(--rm-ui-font-weight-light);font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body);color:var(--rm-ui-color-text-secondary)}._Head_12b2p_13{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:space-between;font-weight:var(--rm-ui-font-weight-medium);font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body);color:var(--rm-ui-color-text-primary)}._Info_12b2p_25{display:inline-flex;flex-direction:column;flex-wrap:nowrap;align-items:flex-start;justify-content:flex-start}
@@ -0,0 +1 @@
1
+ ._Warranty_1gdgm_1{--icon-width: 48px;--icon-height: 56px;--gap: var(--rm-ui-padding-sm);display:flex;flex-direction:row;flex-wrap:nowrap;align-items:flex-start;justify-content:flex-start;gap:var(--gap);padding:var(--rm-ui-padding-md);border-radius:var(--rm-ui-border-radius-md);background-color:var(--rm-ui-warranty-bg)}._Icon_1gdgm_16{height:var(--icon-height);width:var(--icon-width);color:var(--rm-ui-color-accent-primary)}._Main_1gdgm_22{flex-basis:calc(100% - var(--icon-width) - var(--gap));font-weight:var(--rm-ui-font-weight-regular);font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body)}._Title_1gdgm_29{font-weight:var(--rm-ui-font-weight-medium);color:var(--rm-ui-color-theme-primary)}._Text_1gdgm_34{color:var(--rm-ui-color-text-primary)}
@@ -1,2 +1,7 @@
1
- import { CertificationsProps } from './certifications.types';
1
+ import { BaseProps } from '../../utils/types';
2
+ type CertificationsIcon = 'free' | 'gdpr' | 'ssl';
3
+ export interface CertificationsProps extends BaseProps {
4
+ icons: CertificationsIcon[];
5
+ }
2
6
  export declare const Certifications: ({ icons, className }: CertificationsProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -1,2 +1 @@
1
- export { Certifications } from './certifications.component';
2
- export type { CertificationsProps } from './certifications.types';
1
+ export { Certifications, type CertificationsProps } from './certifications.component';
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes, PropsWithChildren } from 'react';
2
- import { Padding } from '../../utils/types';
2
+ import { Size } from '../../utils/types';
3
3
  type TagNames = keyof HTMLElementTagNameMap;
4
4
  type Position = 'relative' | 'absolute' | 'fixed' | 'static' | 'sticky';
5
5
  type Grow = 'content' | 'equal';
@@ -9,7 +9,7 @@ type Justify = 'center' | 'start' | 'end' | 'space-between';
9
9
  type ScreeSize = 'tablet' | 'laptop' | 'desktop';
10
10
  export interface FlexProps extends PropsWithChildren, HTMLAttributes<HTMLElementTagNameMap[TagNames]> {
11
11
  tag?: TagNames;
12
- gap?: Padding;
12
+ gap?: Size;
13
13
  pos?: Position;
14
14
  basis?: string | number;
15
15
  grow?: Grow;
@@ -17,13 +17,13 @@ export interface FlexProps extends PropsWithChildren, HTMLAttributes<HTMLElement
17
17
  wrap?: boolean;
18
18
  align?: Align;
19
19
  justify?: Justify;
20
- mt?: Padding;
21
- mb?: Padding;
22
- ml?: Padding;
23
- mr?: Padding;
24
- mx?: Padding;
25
- my?: Padding;
26
- m?: Padding;
20
+ mt?: Size;
21
+ mb?: Size;
22
+ ml?: Size;
23
+ mr?: Size;
24
+ mx?: Size;
25
+ my?: Size;
26
+ m?: Size;
27
27
  changeDirectionAfter?: ScreeSize;
28
28
  }
29
29
  export declare const Flex: (props: FlexProps) => import('react').DetailedReactHTMLElement<{
@@ -295,16 +295,16 @@ export declare const Flex: (props: FlexProps) => import('react').DetailedReactHT
295
295
  'data-fd': Direction;
296
296
  'data-fd-change-after': ScreeSize | undefined;
297
297
  'data-fxw': string;
298
- 'data-gap': Padding | undefined;
298
+ 'data-gap': Size | undefined;
299
299
  'data-ai': Align;
300
300
  'data-jc': Justify;
301
- 'data-mt': Padding | undefined;
302
- 'data-mb': Padding | undefined;
303
- 'data-ml': Padding | undefined;
304
- 'data-mr': Padding | undefined;
305
- 'data-mx': Padding | undefined;
306
- 'data-my': Padding | undefined;
307
- 'data-m': Padding | undefined;
301
+ 'data-mt': Size | undefined;
302
+ 'data-mb': Size | undefined;
303
+ 'data-ml': Size | undefined;
304
+ 'data-mr': Size | undefined;
305
+ 'data-mx': Size | undefined;
306
+ 'data-my': Size | undefined;
307
+ 'data-m': Size | undefined;
308
308
  'data-pos': Position | undefined;
309
309
  children: (string | number | Iterable<import('react').ReactNode> | import("react/jsx-runtime").JSX.Element)[] | null | undefined;
310
310
  }, HTMLElement>;
@@ -1,2 +1,11 @@
1
- import { FooterProps } from './footer.types';
1
+ import { BaseProps } from '../../utils/types';
2
+ type FooterLink = {
3
+ text: string;
4
+ onClick: () => void;
5
+ };
6
+ export interface FooterProps extends BaseProps {
7
+ name: string;
8
+ links: FooterLink[];
9
+ }
2
10
  export declare const Footer: ({ name, links, className }: FooterProps) => import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -1,2 +1 @@
1
- export { Footer } from './footer.component';
2
- export type { FooterProps } from './footer.types';
1
+ export { Footer, type FooterProps } from './footer.component';
@@ -1,6 +1,6 @@
1
- import { Padding } from '../../utils/types';
1
+ import { Size } from '../../utils/types';
2
2
  import { PropsWithChildren } from 'react';
3
3
  export interface FormRowProps extends PropsWithChildren {
4
- gap: Padding;
4
+ gap: Size;
5
5
  }
6
6
  export declare const FormRow: (props: FormRowProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,2 +1 @@
1
- export { Loader } from './loader.component';
2
- export type { LoaderProps } from './loader.types';
1
+ export { Loader, type LoaderProps } from './loader.component';
@@ -1,2 +1,9 @@
1
- import { LoaderProps } from './loader.types';
2
- export declare const Loader: ({ size, color, className }: LoaderProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { BaseProps, Size } from '../../utils/types';
2
+ type LoaderColor = 'white' | 'primary' | 'secondary';
3
+ export interface LoaderProps extends BaseProps {
4
+ size: Size;
5
+ color: LoaderColor;
6
+ padding?: Size;
7
+ }
8
+ export declare const Loader: ({ size, color, padding, className }: LoaderProps) => import("react/jsx-runtime").JSX.Element;
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,2 +1 @@
1
- export { Message } from './message.component';
2
- export type { MessageProps } from './message.types';
1
+ export { Message, type MessageProps } from './message.component';
@@ -1,2 +1,10 @@
1
- import { MessageProps } from './message.types';
1
+ import { ReactNode } from 'react';
2
+ import { BaseProps } from '../../utils/types';
3
+ type MessageType = 'success' | 'question' | 'error' | 'info';
4
+ export interface MessageProps extends BaseProps {
5
+ type: MessageType;
6
+ title: ReactNode;
7
+ text: ReactNode;
8
+ }
2
9
  export declare const Message: ({ type, title, text, className }: MessageProps) => import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -1,38 +1,39 @@
1
- import { jsxs as n, jsx as c } from "react/jsx-runtime";
2
- import { Check as i, CircleQuestionMark as r, X as l, CircleAlert as _ } from "lucide-react";
3
- import d from "clsx";
4
- import '../../assets/message-CgGyIv5e.css';const f = "_Message_fkc6l_1", m = "_Success_fkc6l_15", u = "_Icon_fkc6l_19", k = "_Question_fkc6l_23", I = "_Info_fkc6l_39", g = "_Content_fkc6l_52", x = "_Title_fkc6l_62", N = "_Text_fkc6l_66", s = {
5
- Message: f,
6
- Success: m,
7
- Icon: u,
8
- Question: k,
1
+ import { jsxs as c, jsx as t } from "react/jsx-runtime";
2
+ import { Check as r, CircleQuestionMark as l, X as _, CircleAlert as d } from "lucide-react";
3
+ import f from "clsx";
4
+ import { Content as o } from "../../utils/content/content.component.js";
5
+ import '../../assets/message-CgGyIv5e.css';const m = "_Message_fkc6l_1", u = "_Success_fkc6l_15", k = "_Icon_fkc6l_19", I = "_Question_fkc6l_23", x = "_Info_fkc6l_39", C = "_Content_fkc6l_52", g = "_Title_fkc6l_62", N = "_Text_fkc6l_66", s = {
6
+ Message: m,
7
+ Success: u,
8
+ Icon: k,
9
+ Question: I,
9
10
  Error: "_Error_fkc6l_31",
10
- Info: I,
11
- Content: g,
12
- Title: x,
11
+ Info: x,
12
+ Content: C,
13
+ Title: g,
13
14
  Text: N
14
- }, h = ({ type: e, title: o, text: t, className: a = "" }) => /* @__PURE__ */ n(
15
+ }, S = ({ type: e, title: n, text: a, className: i = "" }) => /* @__PURE__ */ c(
15
16
  "div",
16
17
  {
17
18
  "data-testid": "message",
18
- className: d(s.Message, a, {
19
+ className: f(s.Message, i, {
19
20
  [s.Success]: e === "success",
20
21
  [s.Question]: e === "question",
21
22
  [s.Error]: e === "error",
22
23
  [s.Info]: e === "info"
23
24
  }),
24
25
  children: [
25
- e === "success" && /* @__PURE__ */ c(i, { "data-testid": "success-icon", className: s.Icon }),
26
- e === "question" && /* @__PURE__ */ c(r, { "data-testid": "question-icon", className: s.Icon }),
27
- e === "error" && /* @__PURE__ */ c(l, { "data-testid": "error-icon", className: s.Icon }),
28
- e === "info" && /* @__PURE__ */ c(_, { "data-testid": "info-icon", className: s.Icon }),
29
- /* @__PURE__ */ n("div", { className: s.Content, children: [
30
- o && /* @__PURE__ */ c("div", { "data-testid": "message-title", className: s.Title, children: o }),
31
- t && /* @__PURE__ */ c("div", { "data-testid": "message-text", className: s.Text, children: t })
26
+ e === "success" && /* @__PURE__ */ t(r, { "data-testid": "success-icon", className: s.Icon }),
27
+ e === "question" && /* @__PURE__ */ t(l, { "data-testid": "question-icon", className: s.Icon }),
28
+ e === "error" && /* @__PURE__ */ t(_, { "data-testid": "error-icon", className: s.Icon }),
29
+ e === "info" && /* @__PURE__ */ t(d, { "data-testid": "info-icon", className: s.Icon }),
30
+ /* @__PURE__ */ c("div", { className: s.Content, children: [
31
+ /* @__PURE__ */ t(o, { "data-testid": "message-title", className: s.Title, children: n }),
32
+ /* @__PURE__ */ t(o, { "data-testid": "message-text", className: s.Text, children: a })
32
33
  ] })
33
34
  ]
34
35
  }
35
36
  );
36
37
  export {
37
- h as Message
38
+ S as Message
38
39
  };
@@ -1,2 +1 @@
1
- export { NotFound } from './not-found.component';
2
- export type { NotFoundProps } from './not-found.types';
1
+ export { NotFound, type NotFoundProps } from './not-found.component';
@@ -1,2 +1,13 @@
1
- import { NotFoundProps } from './not-found.types';
1
+ import { BaseProps } from '../../utils/types';
2
+ type TableRow = {
3
+ key: string;
4
+ value: string;
5
+ };
6
+ export interface NotFoundProps extends BaseProps {
7
+ title: string;
8
+ subtitle: string;
9
+ tableTitle: string;
10
+ tableRows: TableRow[];
11
+ }
2
12
  export declare const NotFound: ({ title, subtitle, tableTitle, tableRows, className }: NotFoundProps) => import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1 @@
1
+ export { UserPanel, type UserPanelProps } from './user-panel.component';
@@ -0,0 +1,4 @@
1
+ import { UserPanel as o } from "./user-panel.component.js";
2
+ export {
3
+ o as UserPanel
4
+ };
@@ -1,7 +1,8 @@
1
- export interface UserPanelProps {
2
- title?: string;
3
- button?: string;
4
- data?: string[];
1
+ import { BaseProps } from '../../utils/types';
2
+ export interface UserPanelProps extends BaseProps {
3
+ title: string;
4
+ button: string;
5
+ data: string[];
5
6
  onClick: () => void;
6
7
  }
7
- export declare const UserPanel: (props: UserPanelProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const UserPanel: ({ title, button, data, onClick, className }: UserPanelProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,29 +1,29 @@
1
- import { jsxs as n, jsx as s } from "react/jsx-runtime";
2
- import { Pencil as u } from "lucide-react";
3
- import '../../assets/user-panel-BEeXLR6v.css';const i = "_User_1kveo_1", d = "_UserHead_1kveo_9", m = "_UserTitle_1kveo_17", I = "_UserButton_1kveo_24", B = "_UserButtonText_1kveo_41", f = "_UserButtonIcon_1kveo_48", k = "_UserInfo_1kveo_55", v = "_UserInfoRaw_1kveo_63", e = {
4
- User: i,
5
- UserHead: d,
6
- UserTitle: m,
7
- UserButton: I,
8
- UserButtonText: B,
9
- UserButtonIcon: f,
10
- UserInfo: k,
11
- UserInfoRaw: v
12
- }, p = (o) => {
13
- const { title: r = "Ihre Angaben", button: c = "Ändern", data: a = [], onClick: U } = o, l = (t) => {
14
- t.preventDefault(), t.currentTarget.blur(), U();
15
- };
16
- return /* @__PURE__ */ n("div", { className: e.User, children: [
17
- /* @__PURE__ */ n("div", { className: e.UserHead, children: [
18
- /* @__PURE__ */ s("span", { className: e.UserTitle, dangerouslySetInnerHTML: { __html: r } }),
19
- /* @__PURE__ */ n("button", { type: "button", className: e.UserButton, onClick: l, children: [
20
- /* @__PURE__ */ s("span", { className: e.UserButtonText, children: c }),
21
- /* @__PURE__ */ s(u, { className: e.UserButtonIcon })
22
- ] })
23
- ] }),
24
- /* @__PURE__ */ s("ul", { className: e.UserInfo, children: a.map((t, _) => /* @__PURE__ */ s("li", { className: e.UserInfoRaw, children: t }, _)) })
25
- ] });
26
- };
1
+ import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
+ import { Pencil as d } from "lucide-react";
3
+ import m from "clsx";
4
+ import { C as p } from "../../control.component-Cq46ev8T.js";
5
+ import '../../assets/user-panel-BJB6pJ70.css';const f = "_Head_12b2p_13", u = "_Info_12b2p_25", r = {
6
+ Head: f,
7
+ Info: u
8
+ }, I = ({ title: n, button: o, data: i, onClick: s, className: a = "" }) => /* @__PURE__ */ t("div", { "data-testid": "user-panel", className: m(r.UserPanel, a), children: [
9
+ /* @__PURE__ */ t("div", { className: r.Head, children: [
10
+ /* @__PURE__ */ e("span", { "data-testid": "user-panel-title", children: n }),
11
+ /* @__PURE__ */ e(
12
+ p.ButtonText,
13
+ {
14
+ preventDefault: !0,
15
+ blurAfterClick: !0,
16
+ icon: /* @__PURE__ */ e(d, {}),
17
+ iconPosition: "right",
18
+ size: "md",
19
+ color: "primary",
20
+ onClick: s,
21
+ children: o
22
+ }
23
+ )
24
+ ] }),
25
+ /* @__PURE__ */ e("ul", { className: r.Info, children: i.map((l, c) => /* @__PURE__ */ e("li", { children: l }, c)) })
26
+ ] });
27
27
  export {
28
- p as UserPanel
28
+ I as UserPanel
29
29
  };
@@ -0,0 +1 @@
1
+ export { Warranty, type WarrantyProps } from './warranty.component';
@@ -0,0 +1,4 @@
1
+ import { Warranty as o } from "./warranty.component.js";
2
+ export {
3
+ o as Warranty
4
+ };
@@ -1,6 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
- export interface WarrantyProps {
3
- title: () => ReactNode;
4
- text: () => ReactNode;
2
+ import { BaseProps } from '../../utils/types';
3
+ export interface WarrantyProps extends BaseProps {
4
+ title: ReactNode;
5
+ text: ReactNode;
5
6
  }
6
- export declare const Warranty: ({ title, text }: WarrantyProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const Warranty: ({ title, text, className }: WarrantyProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,40 +1,43 @@
1
- import { jsxs as r, jsx as C } from "react/jsx-runtime";
2
- import '../../assets/warranty-BoOQkbCu.css';const c = "_Warranty_m4wqt_1", i = "_WarrantyIcon_m4wqt_15", e = "_WarrantyMain_m4wqt_21", l = "_WarrantyTitle_m4wqt_27", s = "_WarrantyText_m4wqt_32", a = {
3
- Warranty: c,
4
- WarrantyIcon: i,
5
- WarrantyMain: e,
6
- WarrantyTitle: l,
7
- WarrantyText: s
8
- }, o = () => /* @__PURE__ */ r(
1
+ import { jsxs as c, jsx as a } from "react/jsx-runtime";
2
+ import h from "clsx";
3
+ import { Content as r } from "../../utils/content/content.component.js";
4
+ import { isHtmlString as i } from "../../utils/functions/functions.util.js";
5
+ import '../../assets/warranty-8YaLpEkj.css';const s = "_Warranty_1gdgm_1", o = "_Icon_1gdgm_16", d = "_Main_1gdgm_22", m = "_Title_1gdgm_29", g = "_Text_1gdgm_34", t = {
6
+ Warranty: s,
7
+ Icon: o,
8
+ Main: d,
9
+ Title: m,
10
+ Text: g
11
+ }, _ = () => /* @__PURE__ */ c(
9
12
  "svg",
10
13
  {
14
+ "data-testid": "warranty-icon",
11
15
  focusable: "false",
12
16
  role: "img",
13
17
  fill: "none",
14
18
  xmlns: "http://www.w3.org/2000/svg",
15
19
  viewBox: "0 0 48 56",
16
- className: a.WarrantyIcon,
20
+ className: t.Icon,
17
21
  children: [
18
- /* @__PURE__ */ r("g", { clipPath: "url(#icon)", fill: "currentColor", children: [
19
- /* @__PURE__ */ C("path", { d: "M23.3727 0H23.8767H24.3797C27.9406 0.00123204 31.4914 0.380487 34.9723 1.13139C38.4733 1.88914 41.8852 3.01212 45.1519 4.4819H45.1576C45.941 4.85793 46.6009 5.44959 47.0599 6.18747C47.5188 6.92534 47.7578 7.77881 47.7488 8.64773V26.618C47.7488 26.618 47.7488 26.6247 47.7488 26.6285C47.7179 29.6952 47.2447 32.7413 46.344 35.6729C45.4746 38.5084 44.2 41.2034 42.5598 43.6743C40.9509 46.1026 38.9857 48.2749 36.7301 50.1181C34.4692 51.9654 31.9259 53.4371 29.1976 54.4766L26.7573 55.4476C24.9061 56.1835 22.8434 56.1835 20.9922 55.4476L18.55 54.4757C15.8217 53.4361 13.2784 51.9645 11.0175 50.1171C8.76215 48.2733 6.79722 46.1004 5.18879 43.6715C3.54855 41.2005 2.27395 38.5056 1.40452 35.6701C0.50383 32.7385 0.0307102 29.6923 -0.000222695 26.6256C-0.000222695 26.6256 -0.000222695 26.619 -0.000222695 26.6152V8.65437C-0.00960005 7.78453 0.229522 6.93008 0.689038 6.19146C1.14855 5.45284 1.80937 4.86073 2.59381 4.48475H2.59951C5.86621 3.01497 9.27811 1.89199 12.7792 1.13424C16.2602 0.382311 19.8113 0.00210057 23.3727 0ZM23.8767 1.89831H23.8672C23.703 1.89831 23.5378 1.89831 23.3736 1.89831C19.9464 1.89927 16.5289 2.26421 13.1788 2.98698C9.80888 3.71715 6.52488 4.79878 3.38066 6.2141C2.92716 6.43865 2.54692 6.78762 2.28439 7.22025C2.02186 7.65287 1.88787 8.15127 1.89808 8.65722V26.6123C1.93517 32.31 3.6275 37.874 6.76913 42.6274C9.76301 47.2105 14.1225 50.7358 19.2306 52.7045L19.2448 52.7102L21.6927 53.6841C23.0946 54.2419 24.6568 54.2419 26.0588 53.6841L28.5047 52.7112L28.519 52.7055C33.6268 50.7364 37.986 47.2107 40.9794 42.6274C44.1202 37.8754 45.8125 32.3131 45.8505 26.6171V8.65437C45.8606 8.14856 45.7266 7.65031 45.4641 7.21785C45.2015 6.7854 44.8213 6.43659 44.3679 6.2122C41.2245 4.79771 37.9415 3.71673 34.5727 2.98698C31.2222 2.2642 27.8044 1.89926 24.3769 1.89831H23.8833H23.8767Z" }),
20
- /* @__PURE__ */ C("path", { d: "M14.1662 40.1449H10.643C10.44 40.1492 10.2383 40.1124 10.05 40.0367C9.8617 39.9609 9.69065 39.8479 9.54717 39.7043C9.4037 39.5607 9.29075 39.3896 9.21514 39.2013C9.13954 39.0129 9.10283 38.8112 9.10723 38.6083V30.3886C9.10283 30.1857 9.13954 29.984 9.21514 29.7956C9.29075 29.6072 9.4037 29.4361 9.54717 29.2925C9.69065 29.149 9.8617 29.0359 10.05 28.9602C10.2383 28.8845 10.44 28.8476 10.643 28.8519H14.1662C14.3692 28.8475 14.571 28.8843 14.7594 28.9599C14.9479 29.0356 15.119 29.1486 15.2626 29.2922C15.4062 29.4358 15.5192 29.6069 15.5949 29.7954C15.6706 29.9838 15.7073 30.1856 15.7029 30.3886V38.6092C15.7072 38.8121 15.6703 39.0138 15.5946 39.2021C15.5189 39.3905 15.4058 39.5615 15.2623 39.705C15.1187 39.8485 14.9476 39.9614 14.7592 40.037C14.5708 40.1126 14.3691 40.1493 14.1662 40.1449ZM11.0055 38.2466H13.8046V30.7483H11.0055V38.2466Z" }),
21
- /* @__PURE__ */ C("path", { d: "M24.3838 41.2536C22.831 41.2536 21.2213 40.6841 18.3093 39.6628C17.2111 39.2765 15.9668 38.8389 14.4538 38.334C14.2147 38.2543 14.017 38.0829 13.9042 37.8575C13.7914 37.632 13.7728 37.371 13.8525 37.1319C13.9322 36.8927 14.1036 36.695 14.329 36.5823C14.5545 36.4695 14.8155 36.4509 15.0546 36.5306C16.5818 37.0393 17.8337 37.4797 18.9395 37.8689C21.9293 38.9206 23.4309 39.4483 24.7588 39.3363C26.0866 39.2243 27.5407 38.4441 30.4233 36.8932C31.7426 36.1832 33.3277 35.3299 35.3304 34.3096C34.8527 34.1142 34.323 34.0855 33.827 34.2279L28.6351 35.9535C28.5167 35.9928 28.3917 36.0083 28.2673 35.9993C28.1428 35.9902 28.0214 35.9568 27.9099 35.9008C27.7984 35.8448 27.6991 35.7675 27.6175 35.6731C27.5359 35.5787 27.4737 35.4692 27.4344 35.3508C27.3952 35.2324 27.3796 35.1074 27.3886 34.983C27.3977 34.8585 27.4311 34.7371 27.4871 34.6256C27.5431 34.5141 27.6204 34.4148 27.7148 34.3332C27.8092 34.2516 27.9187 34.1894 28.0371 34.1501L33.2442 32.4217L33.2745 32.4122C34.0982 32.1705 34.9761 32.1865 35.7904 32.4579C36.6047 32.7294 37.3166 33.2433 37.8305 33.9309C37.9132 34.0421 37.9706 34.1702 37.9985 34.306C38.0264 34.4419 38.0243 34.5822 37.9922 34.7171C37.96 34.852 37.8988 34.9782 37.8126 35.0869C37.7265 35.1955 37.6175 35.284 37.4935 35.346C34.8805 36.653 32.9091 37.7132 31.324 38.5656C28.2099 40.2418 26.6476 41.0827 24.9201 41.2289C24.7388 41.246 24.5613 41.2536 24.3838 41.2536Z" }),
22
- /* @__PURE__ */ C("path", { d: "M27.2968 36.6407C27.2016 36.6407 27.1064 36.6343 27.012 36.6217H20.6252C20.3735 36.6217 20.132 36.5217 19.954 36.3437C19.776 36.1657 19.676 35.9243 19.676 35.6725C19.676 35.4208 19.776 35.1794 19.954 35.0014C20.132 34.8234 20.3735 34.7234 20.6252 34.7234H27.0794C27.1358 34.7234 27.192 34.7285 27.2474 34.7386C27.2825 34.7448 27.3186 34.7433 27.3531 34.7341C27.3875 34.725 27.4196 34.7083 27.4469 34.6855C27.4742 34.6626 27.4962 34.6339 27.5113 34.6016C27.5264 34.5693 27.5342 34.5341 27.5342 34.4984C27.5342 34.4628 27.5264 34.4275 27.5113 34.3952C27.4962 34.3629 27.4742 34.3343 27.4469 34.3114C27.4196 34.2885 27.3875 34.2719 27.3531 34.2627C27.3186 34.2535 27.2825 34.252 27.2474 34.2583C27.192 34.2683 27.1358 34.2734 27.0794 34.2735H23.5571C23.4303 34.274 23.3046 34.249 23.1875 34.2001C23.0705 34.1512 22.9644 34.0793 22.8756 33.9887C21.66 32.7301 20.0038 31.9918 18.2552 31.9291H14.7537C14.502 31.9291 14.2606 31.8291 14.0826 31.6511C13.9046 31.4731 13.8046 31.2316 13.8046 30.9799C13.8046 30.7282 13.9046 30.4868 14.0826 30.3088C14.2606 30.1308 14.502 30.0308 14.7537 30.0308H18.3102C20.4132 30.1007 22.4184 30.9353 23.9501 32.378H27.012C27.3028 32.3391 27.5984 32.3602 27.8806 32.4402C28.1628 32.5201 28.4256 32.6572 28.6527 32.8429C28.8798 33.0286 29.0663 33.2589 29.2007 33.5196C29.3351 33.7804 29.4145 34.0659 29.4341 34.3586C29.4536 34.6513 29.4128 34.9448 29.3143 35.2211C29.2157 35.4974 29.0615 35.7505 28.8611 35.9647C28.6607 36.1789 28.4185 36.3497 28.1494 36.4664C27.8803 36.5832 27.5901 36.6435 27.2968 36.6435V36.6407Z" }),
23
- /* @__PURE__ */ C("path", { d: "M27.4637 14.0063C27.234 14.0063 27.0121 13.923 26.8391 13.7718L23.2039 10.5912C23.0939 10.4955 23.0075 10.3757 22.9513 10.2412C22.8951 10.1067 22.8706 9.96108 22.8798 9.81559C22.889 9.6701 22.9316 9.52868 23.0042 9.40229C23.0769 9.27591 23.1777 9.16796 23.2988 9.08682L27.3953 6.3618C27.6048 6.22743 27.8586 6.1807 28.1022 6.23167C28.3458 6.28264 28.5596 6.42724 28.6976 6.63432C28.8356 6.8414 28.8868 7.0944 28.8401 7.33883C28.7934 7.58327 28.6526 7.79958 28.4479 7.94119L25.3869 9.97902L28.0882 12.3424C28.2337 12.4696 28.3369 12.6381 28.3841 12.8255C28.4312 13.0129 28.4201 13.2102 28.3521 13.3911C28.2841 13.572 28.1625 13.7278 28.0036 13.8377C27.8446 13.9477 27.6569 14.0065 27.4637 14.0063Z" }),
24
- /* @__PURE__ */ C("path", { d: "M24.737 28.6507C22.6851 28.6508 20.6833 28.0176 19.0048 26.8376C17.3262 25.6576 16.0528 23.9883 15.3584 22.0575C14.664 20.1268 14.5824 18.0288 15.1248 16.05C15.6672 14.0712 16.8072 12.308 18.389 11.0012L19.4881 12.5616C18.0514 13.7943 17.0938 15.4931 16.7832 17.3606C16.4725 19.2281 16.8284 21.1453 17.7887 22.7769C18.749 24.4084 20.2524 25.6503 22.0359 26.2852C23.8195 26.9201 25.7694 26.9075 27.5447 26.2498C29.3199 25.592 30.8072 24.3309 31.7465 22.6872C32.6857 21.0434 33.017 19.1218 32.6823 17.2584C32.3477 15.3951 31.3684 13.7088 29.9159 12.4946C28.4634 11.2804 26.6301 10.6157 24.737 10.6168C24.6126 10.6168 24.4864 10.6168 24.3573 10.6253L24.1827 8.73272C24.3725 8.72228 24.5623 8.71753 24.737 8.71753C27.3801 8.71753 29.9151 9.76753 31.7841 11.6365C33.6531 13.5055 34.7031 16.0405 34.7031 18.6836C34.7031 21.3268 33.6531 23.8617 31.7841 25.7307C29.9151 27.5997 27.3801 28.6497 24.737 28.6497V28.6507Z" }),
25
- /* @__PURE__ */ C("path", { d: "M18.9469 12.7229C19.4711 12.7229 19.8961 12.2979 19.8961 11.7737C19.8961 11.2495 19.4711 10.8246 18.9469 10.8246C18.4227 10.8246 17.9978 11.2495 17.9978 11.7737C17.9978 12.2979 18.4227 12.7229 18.9469 12.7229Z" }),
26
- /* @__PURE__ */ C("path", { d: "M25.9899 20.9483C25.8467 21.0987 25.6731 21.2168 25.4806 21.2947C25.2881 21.3726 25.0812 21.4086 24.8737 21.4001C24.5964 21.4078 24.3264 21.3109 24.1172 21.1288C23.908 20.9466 23.7748 20.6925 23.7442 20.4168C23.7309 20.3371 23.7442 20.2839 23.8638 20.2839H25.1528C25.2266 20.2839 25.2996 20.2683 25.3669 20.238C25.4343 20.2077 25.4944 20.1634 25.5434 20.1082C25.5924 20.0529 25.6291 19.9879 25.6511 19.9174C25.6731 19.8469 25.6799 19.7726 25.671 19.6993C25.6816 19.6264 25.676 19.5521 25.6544 19.4817C25.6329 19.4113 25.596 19.3465 25.5465 19.2921C25.4969 19.2376 25.4359 19.1948 25.3678 19.1667C25.2997 19.1387 25.2263 19.1261 25.1528 19.1298H23.7309C23.636 19.1298 23.6113 19.1032 23.6113 19.0633V18.6362C23.6113 18.5413 23.6246 18.5166 23.7176 18.5166H25.1528C25.2266 18.5166 25.2996 18.5009 25.3669 18.4706C25.4343 18.4403 25.4944 18.3961 25.5434 18.3409C25.5924 18.2856 25.6291 18.2206 25.6511 18.1501C25.6731 18.0796 25.6799 18.0052 25.671 17.9319C25.6816 17.8591 25.676 17.7848 25.6544 17.7144C25.6329 17.644 25.596 17.5792 25.5465 17.5247C25.4969 17.4703 25.4359 17.4275 25.3678 17.3994C25.2997 17.3714 25.2263 17.3587 25.1528 17.3624H23.8372C23.7423 17.3624 23.7176 17.3093 23.7423 17.2163C23.7732 16.9424 23.9075 16.6906 24.1177 16.5124C24.328 16.3342 24.5985 16.2431 24.8737 16.2576C25.0746 16.2444 25.2759 16.277 25.4624 16.353C25.6488 16.4289 25.8156 16.5463 25.9501 16.6961C26.0758 16.791 26.2313 16.8381 26.3886 16.829C26.6086 16.8054 26.8137 16.7065 26.9694 16.5492C27.125 16.3918 27.2216 16.1856 27.2428 15.9653C27.2335 15.8157 27.1874 15.6707 27.1086 15.5432C27.0297 15.4157 26.9207 15.3097 26.791 15.2344C26.2418 14.8192 25.5654 14.6078 24.8775 14.6365C22.9507 14.6365 22.3148 15.7926 22.0471 17.241C22.0339 17.3207 21.994 17.3605 21.9275 17.3605H21.6352C21.5617 17.3568 21.4882 17.3695 21.4202 17.3975C21.3521 17.4256 21.2911 17.4684 21.2415 17.5228C21.192 17.5773 21.1551 17.6421 21.1336 17.7125C21.112 17.7829 21.1064 17.8572 21.117 17.93C21.1081 18.0033 21.1149 18.0777 21.1369 18.1482C21.1589 18.2187 21.1956 18.2837 21.2446 18.339C21.2935 18.3942 21.3537 18.4385 21.421 18.4687C21.4884 18.499 21.5614 18.5147 21.6352 18.5147H21.8345C21.901 18.5147 21.9408 18.5147 21.9408 18.6343V19.0064C21.9408 19.0728 21.9408 19.126 21.8212 19.126H21.6314C21.5579 19.1223 21.4844 19.1349 21.4164 19.1629C21.3483 19.191 21.2873 19.2338 21.2377 19.2883C21.1882 19.3427 21.1513 19.4075 21.1298 19.4779C21.1082 19.5483 21.1026 19.6226 21.1132 19.6955C21.1043 19.7688 21.1111 19.8431 21.1331 19.9136C21.1551 19.9841 21.1918 20.0491 21.2408 20.1044C21.2898 20.1596 21.3499 20.2039 21.4172 20.2342C21.4846 20.2645 21.5576 20.2801 21.6314 20.2801H21.9238C21.9902 20.2801 22.0301 20.3067 22.0433 20.413C22.2958 21.8747 22.9735 23.0042 24.8737 23.0042C25.3006 23.0359 25.7291 22.9685 26.1256 22.8071C26.5221 22.6457 26.8759 22.3948 27.1593 22.074C27.2399 22.0029 27.3042 21.9152 27.3478 21.8169C27.3914 21.7186 27.4132 21.6121 27.4118 21.5045C27.3765 21.2899 27.2715 21.0928 27.1129 20.9439C26.9544 20.795 26.7512 20.7024 26.5347 20.6807C26.4305 20.6858 26.3284 20.7122 26.2347 20.7582C26.141 20.8043 26.0577 20.869 25.9899 20.9483Z" })
27
- ] }),
28
- /* @__PURE__ */ C("defs", { children: /* @__PURE__ */ C("clipPath", { id: "icon", children: /* @__PURE__ */ C("rect", { width: "47.749", height: "56" }) }) })
22
+ /* @__PURE__ */ a("title", { children: "Warranty Icon" }),
23
+ /* @__PURE__ */ c("g", { fill: "currentColor", children: [
24
+ /* @__PURE__ */ a("path", { d: "M23.373 0H24.38c3.56.001 7.111.38 10.592 1.131a51.213 51.213 0 0 1 10.18 3.35h.006a4.569 4.569 0 0 1 2.59 4.167v17.98a31.89 31.89 0 0 1-1.404 9.045 30.786 30.786 0 0 1-3.784 8.001 29.024 29.024 0 0 1-5.83 6.444 27.225 27.225 0 0 1-7.532 4.359l-2.44.97a7.803 7.803 0 0 1-5.766 0l-2.442-.971a27.225 27.225 0 0 1-7.533-4.359 29.023 29.023 0 0 1-5.828-6.445 30.787 30.787 0 0 1-3.784-8.002A31.892 31.892 0 0 1 0 26.626V8.654a4.57 4.57 0 0 1 2.594-4.17H2.6a51.212 51.212 0 0 1 10.18-3.35A50.314 50.314 0 0 1 23.372 0Zm.504 1.898h-.503a48.406 48.406 0 0 0-10.195 1.089A49.31 49.31 0 0 0 3.38 6.214a2.666 2.666 0 0 0-1.483 2.443v17.955A29.392 29.392 0 0 0 6.77 42.627a26.093 26.093 0 0 0 12.462 10.078l.014.005 2.448.974a5.905 5.905 0 0 0 4.366 0l2.446-.973.014-.005a26.093 26.093 0 0 0 12.46-10.079 29.392 29.392 0 0 0 4.871-16.01V8.654a2.666 2.666 0 0 0-1.482-2.442 49.31 49.31 0 0 0-9.795-3.225 48.415 48.415 0 0 0-10.196-1.089h-.5Z" }),
25
+ /* @__PURE__ */ a("path", { d: "M14.166 40.145h-3.523a1.504 1.504 0 0 1-1.536-1.537v-8.22a1.505 1.505 0 0 1 1.536-1.536h3.523a1.505 1.505 0 0 1 1.537 1.537v8.22a1.504 1.504 0 0 1-1.537 1.536Zm-3.16-1.898h2.799v-7.499h-2.8v7.499Z" }),
26
+ /* @__PURE__ */ a("path", { d: "M24.384 41.254c-1.553 0-3.163-.57-6.075-1.591a239.187 239.187 0 0 0-3.855-1.329.95.95 0 0 1 .6-1.803c1.528.508 2.78.949 3.885 1.338 2.99 1.052 4.492 1.58 5.82 1.467 1.328-.112 2.782-.892 5.664-2.443 1.32-.71 2.905-1.563 4.907-2.583a2.297 2.297 0 0 0-1.503-.082l-5.192 1.725a.95.95 0 1 1-.598-1.803l5.207-1.728.03-.01a4.209 4.209 0 0 1 4.556 1.519.949.949 0 0 1-.337 1.415c-2.613 1.307-4.584 2.367-6.169 3.22-3.114 1.676-4.676 2.517-6.404 2.663a5.686 5.686 0 0 1-.536.025Z" }),
27
+ /* @__PURE__ */ a("path", { d: "M27.297 36.64c-.095 0-.19-.006-.285-.018h-6.387a.95.95 0 0 1 0-1.899h6.454c.057 0 .113.005.168.016a.245.245 0 0 0 .287-.24.244.244 0 0 0-.287-.24.955.955 0 0 1-.168.014h-3.522a.95.95 0 0 1-.681-.284 6.76 6.76 0 0 0-4.62-2.06h-3.502a.95.95 0 0 1 0-1.898h3.556a8.645 8.645 0 0 1 5.64 2.347h3.062a2.143 2.143 0 1 1 .285 4.266v-.003ZM27.464 14.006a.95.95 0 0 1-.625-.234l-3.635-3.18a.949.949 0 0 1 .095-1.505l4.096-2.725a.95.95 0 0 1 1.053 1.58l-3.061 2.037 2.701 2.363a.95.95 0 0 1-.624 1.664Z" }),
28
+ /* @__PURE__ */ a("path", { d: "M24.737 28.65a9.966 9.966 0 0 1-6.348-17.649l1.1 1.56a8.068 8.068 0 1 0 5.248-1.944c-.124 0-.25 0-.38.008l-.174-1.892a9.966 9.966 0 1 1 .554 19.917Z" }),
29
+ /* @__PURE__ */ a("path", { d: "M18.947 12.723a.95.95 0 1 0 0-1.899.95.95 0 0 0 0 1.899ZM25.99 20.948a1.459 1.459 0 0 1-1.116.452 1.106 1.106 0 0 1-1.13-.983c-.013-.08 0-.133.12-.133h1.289a.522.522 0 0 0 .518-.585.498.498 0 0 0-.518-.57H23.73c-.095 0-.12-.026-.12-.066v-.427c0-.095.014-.12.107-.12h1.435a.522.522 0 0 0 .518-.584.497.497 0 0 0-.518-.57h-1.316c-.095 0-.12-.053-.095-.146a1.082 1.082 0 0 1 1.132-.958 1.33 1.33 0 0 1 1.076.438.664.664 0 0 0 .439.133.962.962 0 0 0 .854-.864.91.91 0 0 0-.452-.73 2.968 2.968 0 0 0-1.913-.598c-1.927 0-2.563 1.156-2.83 2.604-.014.08-.054.12-.12.12h-.293a.5.5 0 0 0-.518.569.522.522 0 0 0 .518.585h.2c.066 0 .106 0 .106.12v.371c0 .067 0 .12-.12.12h-.19a.5.5 0 0 0-.518.57.521.521 0 0 0 .518.584h.293c.066 0 .106.027.12.133.252 1.462.93 2.591 2.83 2.591a2.775 2.775 0 0 0 2.285-.93.746.746 0 0 0 .253-.57.99.99 0 0 0-.877-.823.766.766 0 0 0-.545.267Z" })
30
+ ] })
29
31
  ]
30
32
  }
31
- ), d = ({ title: t, text: n }) => /* @__PURE__ */ r("div", { className: a.Warranty, children: [
32
- /* @__PURE__ */ C(o, {}),
33
- /* @__PURE__ */ r("div", { className: a.WarrantyMain, children: [
34
- /* @__PURE__ */ C("div", { className: a.WarrantyTitle, children: t() }),
35
- /* @__PURE__ */ C("div", { className: a.WarrantyText, children: n() })
33
+ ), x = ({ title: l, text: n, className: e = "" }) => /* @__PURE__ */ c("div", { "data-testid": "warranty", className: h(t.Warranty, e), children: [
34
+ /* @__PURE__ */ a(_, {}),
35
+ /* @__PURE__ */ c("div", { className: t.Main, children: [
36
+ i(n),
37
+ /* @__PURE__ */ a(r, { "data-testid": "warranty-title", className: t.Title, children: l }),
38
+ /* @__PURE__ */ a(r, { "data-testid": "warranty-text", className: t.Text, children: n })
36
39
  ] })
37
40
  ] });
38
41
  export {
39
- d as Warranty
42
+ x as Warranty
40
43
  };
package/dist/main.d.ts CHANGED
@@ -16,7 +16,6 @@ export { Information, type InformationProps } from './components/information/inf
16
16
  export { Layout, type LayoutProps } from './components/layout/layout.component';
17
17
  export { Line } from './components/line/line.component';
18
18
  export { Loader, type LoaderProps } from './components/loader';
19
- export { LoadingBlock } from './components/loading-block/loading-block.component';
20
19
  export { MainAttachment, type MainAttachmentProps } from './components/main-attachment/main-attachment.component';
21
20
  export { Message, type MessageProps } from './components/message';
22
21
  export { MessageBlock, type MessageBlockProps } from './components/message-block/message-block.component';
@@ -26,5 +25,5 @@ export { Sidebar, type SidebarProps } from './components/sidebar/sidebar.compone
26
25
  export { Signature, type SignatureProps, type SignatureMode } from './components/signature/signature.component';
27
26
  export { Svg, type SvgProps } from './components/svg/svg.component';
28
27
  export { Text } from './components/text/text.component';
29
- export { UserPanel, type UserPanelProps } from './components/user-panel/user-panel.component';
30
- export { Warranty, type WarrantyProps } from './components/warranty/warranty.component';
28
+ export { UserPanel, type UserPanelProps } from './components/user-panel';
29
+ export { Warranty, type WarrantyProps } from './components/warranty';
package/dist/main.js CHANGED
@@ -5,29 +5,28 @@ import { Certifications as a } from "./components/certifications/certifications.
5
5
  import { C as i } from "./control.component-Cq46ev8T.js";
6
6
  import { DataProtectedLabel as s } from "./components/data-protected-label/data-protected-label.component.js";
7
7
  import { Dialog as d } from "./components/dialog/dialog.component.js";
8
- import { DialogArticle as L } from "./components/dialog-article/dialog-article.component.js";
9
- import { Expenses as B } from "./components/expenses/expenses.component.js";
10
- import { Flex as P } from "./components/flex/flex.component.js";
11
- import { Footer as u } from "./components/footer/footer.component.js";
8
+ import { DialogArticle as A } from "./components/dialog-article/dialog-article.component.js";
9
+ import { Expenses as L } from "./components/expenses/expenses.component.js";
10
+ import { Flex as b } from "./components/flex/flex.component.js";
11
+ import { Footer as y } from "./components/footer/footer.component.js";
12
12
  import { FormRow as C } from "./components/form-row/form-row.component.js";
13
13
  import { Header as M } from "./components/header/header.component.js";
14
- import { InfoPanel as k } from "./components/info-panel/info-panel.component.js";
15
- import { Information as T } from "./components/information/information.component.js";
14
+ import { InfoPanel as I } from "./components/info-panel/info-panel.component.js";
15
+ import { Information as h } from "./components/information/information.component.js";
16
16
  import { Layout as v } from "./components/layout/layout.component.js";
17
17
  import { Line as E } from "./components/line/line.component.js";
18
18
  import { Loader as N } from "./components/loader/loader.component.js";
19
- import { LoadingBlock as U } from "./components/loading-block/loading-block.component.js";
20
- import { MainAttachment as j } from "./components/main-attachment/main-attachment.component.js";
21
- import { Message as z } from "./components/message/message.component.js";
22
- import { MessageBlock as J } from "./components/message-block/message-block.component.js";
23
- import { NotFound as O } from "./components/not-found/not-found.component.js";
24
- import { Payment as V } from "./components/payment/payment.component.js";
25
- import { Sidebar as Y } from "./components/sidebar/sidebar.component.js";
26
- import { Signature as _ } from "./components/signature/signature.component.js";
27
- import { Svg as oo } from "./components/svg/svg.component.js";
28
- import { Text as eo } from "./components/text/text.component.js";
29
- import { UserPanel as mo } from "./components/user-panel/user-panel.component.js";
30
- import { Warranty as xo } from "./components/warranty/warranty.component.js";
19
+ import { MainAttachment as U } from "./components/main-attachment/main-attachment.component.js";
20
+ import { Message as j } from "./components/message/message.component.js";
21
+ import { MessageBlock as z } from "./components/message-block/message-block.component.js";
22
+ import { NotFound as J } from "./components/not-found/not-found.component.js";
23
+ import { Payment as O } from "./components/payment/payment.component.js";
24
+ import { Sidebar as V } from "./components/sidebar/sidebar.component.js";
25
+ import { Signature as Y } from "./components/signature/signature.component.js";
26
+ import { Svg as _ } from "./components/svg/svg.component.js";
27
+ import { Text as oo } from "./components/text/text.component.js";
28
+ import { UserPanel as eo } from "./components/user-panel/user-panel.component.js";
29
+ import { Warranty as mo } from "./components/warranty/warranty.component.js";
31
30
  import './assets/main-BK_1RcKG.css';export {
32
31
  e as AccordionTable,
33
32
  m as Animation,
@@ -36,27 +35,26 @@ import './assets/main-BK_1RcKG.css';export {
36
35
  i as Control,
37
36
  s as DataProtectedLabel,
38
37
  d as Dialog,
39
- L as DialogArticle,
40
- B as Expenses,
41
- P as Flex,
42
- u as Footer,
38
+ A as DialogArticle,
39
+ L as Expenses,
40
+ b as Flex,
41
+ y as Footer,
43
42
  C as FormRow,
44
43
  M as Header,
45
- k as InfoPanel,
46
- T as Information,
44
+ I as InfoPanel,
45
+ h as Information,
47
46
  v as Layout,
48
47
  E as Line,
49
48
  N as Loader,
50
- U as LoadingBlock,
51
- j as MainAttachment,
52
- z as Message,
53
- J as MessageBlock,
54
- O as NotFound,
55
- V as Payment,
56
- Y as Sidebar,
57
- _ as Signature,
58
- oo as Svg,
59
- eo as Text,
60
- mo as UserPanel,
61
- xo as Warranty
49
+ U as MainAttachment,
50
+ j as Message,
51
+ z as MessageBlock,
52
+ J as NotFound,
53
+ O as Payment,
54
+ V as Sidebar,
55
+ Y as Signature,
56
+ _ as Svg,
57
+ oo as Text,
58
+ eo as UserPanel,
59
+ mo as Warranty
62
60
  };
@@ -0,0 +1,272 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export interface ContentProps extends HTMLAttributes<HTMLElementTagNameMap> {
3
+ tag?: keyof HTMLElementTagNameMap;
4
+ alwaysRender?: boolean;
5
+ }
6
+ export declare const Content: ({ tag, alwaysRender, children, ...rest }: ContentProps) => import('react').ReactElement<{
7
+ defaultChecked?: boolean | undefined;
8
+ defaultValue?: string | number | readonly string[] | undefined;
9
+ suppressContentEditableWarning?: boolean | undefined;
10
+ suppressHydrationWarning?: boolean | undefined;
11
+ accessKey?: string | undefined;
12
+ autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
13
+ autoFocus?: boolean | undefined;
14
+ className?: string | undefined;
15
+ contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
16
+ contextMenu?: string | undefined;
17
+ dir?: string | undefined;
18
+ draggable?: (boolean | "true" | "false") | undefined;
19
+ enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
20
+ hidden?: boolean | undefined;
21
+ id?: string | undefined;
22
+ lang?: string | undefined;
23
+ nonce?: string | undefined;
24
+ slot?: string | undefined;
25
+ spellCheck?: (boolean | "true" | "false") | undefined;
26
+ style?: import('react').CSSProperties | undefined;
27
+ tabIndex?: number | undefined;
28
+ title?: string | undefined;
29
+ translate?: "yes" | "no" | undefined;
30
+ radioGroup?: string | undefined;
31
+ role?: import('react').AriaRole | undefined;
32
+ about?: string | undefined;
33
+ content?: string | undefined;
34
+ datatype?: string | undefined;
35
+ inlist?: any;
36
+ prefix?: string | undefined;
37
+ property?: string | undefined;
38
+ rel?: string | undefined;
39
+ resource?: string | undefined;
40
+ rev?: string | undefined;
41
+ typeof?: string | undefined;
42
+ vocab?: string | undefined;
43
+ autoCorrect?: string | undefined;
44
+ autoSave?: string | undefined;
45
+ color?: string | undefined;
46
+ itemProp?: string | undefined;
47
+ itemScope?: boolean | undefined;
48
+ itemType?: string | undefined;
49
+ itemID?: string | undefined;
50
+ itemRef?: string | undefined;
51
+ results?: number | undefined;
52
+ security?: string | undefined;
53
+ unselectable?: "on" | "off" | undefined;
54
+ inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
55
+ is?: string | undefined;
56
+ exportparts?: string | undefined;
57
+ part?: string | undefined;
58
+ "aria-activedescendant"?: string | undefined;
59
+ "aria-atomic"?: (boolean | "true" | "false") | undefined;
60
+ "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
61
+ "aria-braillelabel"?: string | undefined;
62
+ "aria-brailleroledescription"?: string | undefined;
63
+ "aria-busy"?: (boolean | "true" | "false") | undefined;
64
+ "aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
65
+ "aria-colcount"?: number | undefined;
66
+ "aria-colindex"?: number | undefined;
67
+ "aria-colindextext"?: string | undefined;
68
+ "aria-colspan"?: number | undefined;
69
+ "aria-controls"?: string | undefined;
70
+ "aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
71
+ "aria-describedby"?: string | undefined;
72
+ "aria-description"?: string | undefined;
73
+ "aria-details"?: string | undefined;
74
+ "aria-disabled"?: (boolean | "true" | "false") | undefined;
75
+ "aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
76
+ "aria-errormessage"?: string | undefined;
77
+ "aria-expanded"?: (boolean | "true" | "false") | undefined;
78
+ "aria-flowto"?: string | undefined;
79
+ "aria-grabbed"?: (boolean | "true" | "false") | undefined;
80
+ "aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
81
+ "aria-hidden"?: (boolean | "true" | "false") | undefined;
82
+ "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
83
+ "aria-keyshortcuts"?: string | undefined;
84
+ "aria-label"?: string | undefined;
85
+ "aria-labelledby"?: string | undefined;
86
+ "aria-level"?: number | undefined;
87
+ "aria-live"?: "off" | "assertive" | "polite" | undefined;
88
+ "aria-modal"?: (boolean | "true" | "false") | undefined;
89
+ "aria-multiline"?: (boolean | "true" | "false") | undefined;
90
+ "aria-multiselectable"?: (boolean | "true" | "false") | undefined;
91
+ "aria-orientation"?: "horizontal" | "vertical" | undefined;
92
+ "aria-owns"?: string | undefined;
93
+ "aria-placeholder"?: string | undefined;
94
+ "aria-posinset"?: number | undefined;
95
+ "aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
96
+ "aria-readonly"?: (boolean | "true" | "false") | undefined;
97
+ "aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
98
+ "aria-required"?: (boolean | "true" | "false") | undefined;
99
+ "aria-roledescription"?: string | undefined;
100
+ "aria-rowcount"?: number | undefined;
101
+ "aria-rowindex"?: number | undefined;
102
+ "aria-rowindextext"?: string | undefined;
103
+ "aria-rowspan"?: number | undefined;
104
+ "aria-selected"?: (boolean | "true" | "false") | undefined;
105
+ "aria-setsize"?: number | undefined;
106
+ "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
107
+ "aria-valuemax"?: number | undefined;
108
+ "aria-valuemin"?: number | undefined;
109
+ "aria-valuenow"?: number | undefined;
110
+ "aria-valuetext"?: string | undefined;
111
+ dangerouslySetInnerHTML?: {
112
+ __html: string | TrustedHTML;
113
+ } | undefined;
114
+ onCopy?: import('react').ClipboardEventHandler<HTMLElementTagNameMap> | undefined;
115
+ onCopyCapture?: import('react').ClipboardEventHandler<HTMLElementTagNameMap> | undefined;
116
+ onCut?: import('react').ClipboardEventHandler<HTMLElementTagNameMap> | undefined;
117
+ onCutCapture?: import('react').ClipboardEventHandler<HTMLElementTagNameMap> | undefined;
118
+ onPaste?: import('react').ClipboardEventHandler<HTMLElementTagNameMap> | undefined;
119
+ onPasteCapture?: import('react').ClipboardEventHandler<HTMLElementTagNameMap> | undefined;
120
+ onCompositionEnd?: import('react').CompositionEventHandler<HTMLElementTagNameMap> | undefined;
121
+ onCompositionEndCapture?: import('react').CompositionEventHandler<HTMLElementTagNameMap> | undefined;
122
+ onCompositionStart?: import('react').CompositionEventHandler<HTMLElementTagNameMap> | undefined;
123
+ onCompositionStartCapture?: import('react').CompositionEventHandler<HTMLElementTagNameMap> | undefined;
124
+ onCompositionUpdate?: import('react').CompositionEventHandler<HTMLElementTagNameMap> | undefined;
125
+ onCompositionUpdateCapture?: import('react').CompositionEventHandler<HTMLElementTagNameMap> | undefined;
126
+ onFocus?: import('react').FocusEventHandler<HTMLElementTagNameMap> | undefined;
127
+ onFocusCapture?: import('react').FocusEventHandler<HTMLElementTagNameMap> | undefined;
128
+ onBlur?: import('react').FocusEventHandler<HTMLElementTagNameMap> | undefined;
129
+ onBlurCapture?: import('react').FocusEventHandler<HTMLElementTagNameMap> | undefined;
130
+ onChange?: import('react').FormEventHandler<HTMLElementTagNameMap> | undefined;
131
+ onChangeCapture?: import('react').FormEventHandler<HTMLElementTagNameMap> | undefined;
132
+ onBeforeInput?: import('react').InputEventHandler<HTMLElementTagNameMap> | undefined;
133
+ onBeforeInputCapture?: import('react').FormEventHandler<HTMLElementTagNameMap> | undefined;
134
+ onInput?: import('react').FormEventHandler<HTMLElementTagNameMap> | undefined;
135
+ onInputCapture?: import('react').FormEventHandler<HTMLElementTagNameMap> | undefined;
136
+ onReset?: import('react').FormEventHandler<HTMLElementTagNameMap> | undefined;
137
+ onResetCapture?: import('react').FormEventHandler<HTMLElementTagNameMap> | undefined;
138
+ onSubmit?: import('react').FormEventHandler<HTMLElementTagNameMap> | undefined;
139
+ onSubmitCapture?: import('react').FormEventHandler<HTMLElementTagNameMap> | undefined;
140
+ onInvalid?: import('react').FormEventHandler<HTMLElementTagNameMap> | undefined;
141
+ onInvalidCapture?: import('react').FormEventHandler<HTMLElementTagNameMap> | undefined;
142
+ onLoad?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
143
+ onLoadCapture?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
144
+ onError?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
145
+ onErrorCapture?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
146
+ onKeyDown?: import('react').KeyboardEventHandler<HTMLElementTagNameMap> | undefined;
147
+ onKeyDownCapture?: import('react').KeyboardEventHandler<HTMLElementTagNameMap> | undefined;
148
+ onKeyPress?: import('react').KeyboardEventHandler<HTMLElementTagNameMap> | undefined;
149
+ onKeyPressCapture?: import('react').KeyboardEventHandler<HTMLElementTagNameMap> | undefined;
150
+ onKeyUp?: import('react').KeyboardEventHandler<HTMLElementTagNameMap> | undefined;
151
+ onKeyUpCapture?: import('react').KeyboardEventHandler<HTMLElementTagNameMap> | undefined;
152
+ onAbort?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
153
+ onAbortCapture?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
154
+ onCanPlay?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
155
+ onCanPlayCapture?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
156
+ onCanPlayThrough?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
157
+ onCanPlayThroughCapture?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
158
+ onDurationChange?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
159
+ onDurationChangeCapture?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
160
+ onEmptied?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
161
+ onEmptiedCapture?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
162
+ onEncrypted?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
163
+ onEncryptedCapture?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
164
+ onEnded?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
165
+ onEndedCapture?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
166
+ onLoadedData?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
167
+ onLoadedDataCapture?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
168
+ onLoadedMetadata?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
169
+ onLoadedMetadataCapture?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
170
+ onLoadStart?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
171
+ onLoadStartCapture?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
172
+ onPause?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
173
+ onPauseCapture?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
174
+ onPlay?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
175
+ onPlayCapture?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
176
+ onPlaying?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
177
+ onPlayingCapture?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
178
+ onProgress?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
179
+ onProgressCapture?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
180
+ onRateChange?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
181
+ onRateChangeCapture?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
182
+ onSeeked?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
183
+ onSeekedCapture?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
184
+ onSeeking?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
185
+ onSeekingCapture?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
186
+ onStalled?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
187
+ onStalledCapture?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
188
+ onSuspend?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
189
+ onSuspendCapture?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
190
+ onTimeUpdate?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
191
+ onTimeUpdateCapture?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
192
+ onVolumeChange?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
193
+ onVolumeChangeCapture?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
194
+ onWaiting?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
195
+ onWaitingCapture?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
196
+ onAuxClick?: import('react').MouseEventHandler<HTMLElementTagNameMap> | undefined;
197
+ onAuxClickCapture?: import('react').MouseEventHandler<HTMLElementTagNameMap> | undefined;
198
+ onClick?: import('react').MouseEventHandler<HTMLElementTagNameMap> | undefined;
199
+ onClickCapture?: import('react').MouseEventHandler<HTMLElementTagNameMap> | undefined;
200
+ onContextMenu?: import('react').MouseEventHandler<HTMLElementTagNameMap> | undefined;
201
+ onContextMenuCapture?: import('react').MouseEventHandler<HTMLElementTagNameMap> | undefined;
202
+ onDoubleClick?: import('react').MouseEventHandler<HTMLElementTagNameMap> | undefined;
203
+ onDoubleClickCapture?: import('react').MouseEventHandler<HTMLElementTagNameMap> | undefined;
204
+ onDrag?: import('react').DragEventHandler<HTMLElementTagNameMap> | undefined;
205
+ onDragCapture?: import('react').DragEventHandler<HTMLElementTagNameMap> | undefined;
206
+ onDragEnd?: import('react').DragEventHandler<HTMLElementTagNameMap> | undefined;
207
+ onDragEndCapture?: import('react').DragEventHandler<HTMLElementTagNameMap> | undefined;
208
+ onDragEnter?: import('react').DragEventHandler<HTMLElementTagNameMap> | undefined;
209
+ onDragEnterCapture?: import('react').DragEventHandler<HTMLElementTagNameMap> | undefined;
210
+ onDragExit?: import('react').DragEventHandler<HTMLElementTagNameMap> | undefined;
211
+ onDragExitCapture?: import('react').DragEventHandler<HTMLElementTagNameMap> | undefined;
212
+ onDragLeave?: import('react').DragEventHandler<HTMLElementTagNameMap> | undefined;
213
+ onDragLeaveCapture?: import('react').DragEventHandler<HTMLElementTagNameMap> | undefined;
214
+ onDragOver?: import('react').DragEventHandler<HTMLElementTagNameMap> | undefined;
215
+ onDragOverCapture?: import('react').DragEventHandler<HTMLElementTagNameMap> | undefined;
216
+ onDragStart?: import('react').DragEventHandler<HTMLElementTagNameMap> | undefined;
217
+ onDragStartCapture?: import('react').DragEventHandler<HTMLElementTagNameMap> | undefined;
218
+ onDrop?: import('react').DragEventHandler<HTMLElementTagNameMap> | undefined;
219
+ onDropCapture?: import('react').DragEventHandler<HTMLElementTagNameMap> | undefined;
220
+ onMouseDown?: import('react').MouseEventHandler<HTMLElementTagNameMap> | undefined;
221
+ onMouseDownCapture?: import('react').MouseEventHandler<HTMLElementTagNameMap> | undefined;
222
+ onMouseEnter?: import('react').MouseEventHandler<HTMLElementTagNameMap> | undefined;
223
+ onMouseLeave?: import('react').MouseEventHandler<HTMLElementTagNameMap> | undefined;
224
+ onMouseMove?: import('react').MouseEventHandler<HTMLElementTagNameMap> | undefined;
225
+ onMouseMoveCapture?: import('react').MouseEventHandler<HTMLElementTagNameMap> | undefined;
226
+ onMouseOut?: import('react').MouseEventHandler<HTMLElementTagNameMap> | undefined;
227
+ onMouseOutCapture?: import('react').MouseEventHandler<HTMLElementTagNameMap> | undefined;
228
+ onMouseOver?: import('react').MouseEventHandler<HTMLElementTagNameMap> | undefined;
229
+ onMouseOverCapture?: import('react').MouseEventHandler<HTMLElementTagNameMap> | undefined;
230
+ onMouseUp?: import('react').MouseEventHandler<HTMLElementTagNameMap> | undefined;
231
+ onMouseUpCapture?: import('react').MouseEventHandler<HTMLElementTagNameMap> | undefined;
232
+ onSelect?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
233
+ onSelectCapture?: import('react').ReactEventHandler<HTMLElementTagNameMap> | undefined;
234
+ onTouchCancel?: import('react').TouchEventHandler<HTMLElementTagNameMap> | undefined;
235
+ onTouchCancelCapture?: import('react').TouchEventHandler<HTMLElementTagNameMap> | undefined;
236
+ onTouchEnd?: import('react').TouchEventHandler<HTMLElementTagNameMap> | undefined;
237
+ onTouchEndCapture?: import('react').TouchEventHandler<HTMLElementTagNameMap> | undefined;
238
+ onTouchMove?: import('react').TouchEventHandler<HTMLElementTagNameMap> | undefined;
239
+ onTouchMoveCapture?: import('react').TouchEventHandler<HTMLElementTagNameMap> | undefined;
240
+ onTouchStart?: import('react').TouchEventHandler<HTMLElementTagNameMap> | undefined;
241
+ onTouchStartCapture?: import('react').TouchEventHandler<HTMLElementTagNameMap> | undefined;
242
+ onPointerDown?: import('react').PointerEventHandler<HTMLElementTagNameMap> | undefined;
243
+ onPointerDownCapture?: import('react').PointerEventHandler<HTMLElementTagNameMap> | undefined;
244
+ onPointerMove?: import('react').PointerEventHandler<HTMLElementTagNameMap> | undefined;
245
+ onPointerMoveCapture?: import('react').PointerEventHandler<HTMLElementTagNameMap> | undefined;
246
+ onPointerUp?: import('react').PointerEventHandler<HTMLElementTagNameMap> | undefined;
247
+ onPointerUpCapture?: import('react').PointerEventHandler<HTMLElementTagNameMap> | undefined;
248
+ onPointerCancel?: import('react').PointerEventHandler<HTMLElementTagNameMap> | undefined;
249
+ onPointerCancelCapture?: import('react').PointerEventHandler<HTMLElementTagNameMap> | undefined;
250
+ onPointerEnter?: import('react').PointerEventHandler<HTMLElementTagNameMap> | undefined;
251
+ onPointerLeave?: import('react').PointerEventHandler<HTMLElementTagNameMap> | undefined;
252
+ onPointerOver?: import('react').PointerEventHandler<HTMLElementTagNameMap> | undefined;
253
+ onPointerOverCapture?: import('react').PointerEventHandler<HTMLElementTagNameMap> | undefined;
254
+ onPointerOut?: import('react').PointerEventHandler<HTMLElementTagNameMap> | undefined;
255
+ onPointerOutCapture?: import('react').PointerEventHandler<HTMLElementTagNameMap> | undefined;
256
+ onGotPointerCapture?: import('react').PointerEventHandler<HTMLElementTagNameMap> | undefined;
257
+ onGotPointerCaptureCapture?: import('react').PointerEventHandler<HTMLElementTagNameMap> | undefined;
258
+ onLostPointerCapture?: import('react').PointerEventHandler<HTMLElementTagNameMap> | undefined;
259
+ onLostPointerCaptureCapture?: import('react').PointerEventHandler<HTMLElementTagNameMap> | undefined;
260
+ onScroll?: import('react').UIEventHandler<HTMLElementTagNameMap> | undefined;
261
+ onScrollCapture?: import('react').UIEventHandler<HTMLElementTagNameMap> | undefined;
262
+ onWheel?: import('react').WheelEventHandler<HTMLElementTagNameMap> | undefined;
263
+ onWheelCapture?: import('react').WheelEventHandler<HTMLElementTagNameMap> | undefined;
264
+ onAnimationStart?: import('react').AnimationEventHandler<HTMLElementTagNameMap> | undefined;
265
+ onAnimationStartCapture?: import('react').AnimationEventHandler<HTMLElementTagNameMap> | undefined;
266
+ onAnimationEnd?: import('react').AnimationEventHandler<HTMLElementTagNameMap> | undefined;
267
+ onAnimationEndCapture?: import('react').AnimationEventHandler<HTMLElementTagNameMap> | undefined;
268
+ onAnimationIteration?: import('react').AnimationEventHandler<HTMLElementTagNameMap> | undefined;
269
+ onAnimationIterationCapture?: import('react').AnimationEventHandler<HTMLElementTagNameMap> | undefined;
270
+ onTransitionEnd?: import('react').TransitionEventHandler<HTMLElementTagNameMap> | undefined;
271
+ onTransitionEndCapture?: import('react').TransitionEventHandler<HTMLElementTagNameMap> | undefined;
272
+ }, string | import('react').JSXElementConstructor<any>> | null;
@@ -0,0 +1,6 @@
1
+ import { createElement as e } from "react";
2
+ import { isHtmlString as m } from "../functions/functions.util.js";
3
+ const f = ({ tag: n = "div", alwaysRender: o = !1, children: t, ...r }) => !o && !t ? null : m(t) ? e(n, { dangerouslySetInnerHTML: { __html: t }, ...r }, null) : e(n, r, t);
4
+ export {
5
+ f as Content
6
+ };
@@ -0,0 +1 @@
1
+ export { Content, type ContentProps } from './content.component';
@@ -0,0 +1,4 @@
1
+ import { Content as e } from "./content.component.js";
2
+ export {
3
+ e as Content
4
+ };
@@ -0,0 +1,21 @@
1
+ import { SyntheticEvent } from 'react';
2
+ /**
3
+ * Type guard: checks whether value is a string
4
+ */
5
+ export declare function isString(value: unknown): value is string;
6
+ /**
7
+ * Checks whether a string contains HTML-like markup
8
+ * (basic heuristic, not a full HTML parser)
9
+ */
10
+ export declare function containsHtml(value: string): boolean;
11
+ /**
12
+ * Combined helper:
13
+ * Checks if unknown value is a string containing HTML markup
14
+ */
15
+ export declare function isHtmlString(value: unknown): value is string;
16
+ type ControlAction = 'prevent' | 'stop' | 'blur';
17
+ /**
18
+ * A higher-order function to wrap event handlers with common event control logic.
19
+ */
20
+ export declare const withControl: <E extends SyntheticEvent<HTMLElement>>(handler: (e: E) => void, ...actions: ControlAction[]) => (e: E) => void;
21
+ export {};
@@ -0,0 +1,18 @@
1
+ function e(t) {
2
+ return typeof t == "string";
3
+ }
4
+ function i(t) {
5
+ return /<\/?[a-z][\s\S]*>/i.test(t);
6
+ }
7
+ function o(t) {
8
+ return e(t) && i(t);
9
+ }
10
+ const u = (t, ...n) => (r) => {
11
+ n.includes("prevent") && r.preventDefault(), n.includes("stop") && r.stopPropagation(), n.includes("blur") && r.currentTarget.blur(), t(r);
12
+ };
13
+ export {
14
+ i as containsHtml,
15
+ o as isHtmlString,
16
+ e as isString,
17
+ u as withControl
18
+ };
@@ -0,0 +1 @@
1
+ export * from './functions.util';
@@ -0,0 +1,7 @@
1
+ import { containsHtml as n, isHtmlString as o, isString as r, withControl as l } from "./functions.util.js";
2
+ export {
3
+ n as containsHtml,
4
+ o as isHtmlString,
5
+ r as isString,
6
+ l as withControl
7
+ };
@@ -1,4 +1,4 @@
1
- export type Padding = 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'xxxl';
1
+ export type Size = 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'xxxl';
2
2
  export interface BaseProps {
3
3
  className?: string;
4
4
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arthurzakharov/ui-kit",
3
3
  "private": false,
4
- "version": "1.2.7",
4
+ "version": "1.2.9",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -25,6 +25,7 @@
25
25
  "prettier:fix": "prettier --write --log-level=log .",
26
26
  "test:unit:once": "vitest run --project unit",
27
27
  "test:unit:watch": "vitest --project unit --watch",
28
+ "test:unit:update": "vitest --project unit --update",
28
29
  "storybook": "storybook dev -p 6006",
29
30
  "build-storybook": "storybook build"
30
31
  },
@@ -1 +0,0 @@
1
- ._Loader_2orye_1{animation:_spinPulse_2orye_1 2s linear infinite;transform-origin:center}._White_2orye_6{stroke:#fff}._Primary_2orye_10{stroke:var(--rm-ui-color-accent-primary)}._Secondary_2orye_14{stroke:var(--rm-ui-color-accent-secondary)}._Loader_2orye_1>path{animation:_dash_2orye_1 2s linear infinite}@keyframes _spinPulse_2orye_1{0%{transform:rotate(0) scale(1)}50%{transform:rotate(180deg) scale(1.25)}to{transform:rotate(360deg) scale(1)}}@keyframes _dash_2orye_1{0%{stroke-opacity:1}50%{stroke-opacity:.5}to{stroke-opacity:1}}
@@ -1 +0,0 @@
1
- ._LoadingBlock_1h5nh_1{height:var(--rm-ui-loading-screen-height);display:flex;align-items:center;justify-content:center;background-color:transparent}
@@ -1 +0,0 @@
1
- ._User_1kveo_1{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:var(--rm-ui-padding-sm)}._UserHead_1kveo_9{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:space-between}._UserTitle_1kveo_17{font-weight:var(--rm-ui-font-weight-medium);font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body);color:var(--rm-ui-color-text-primary)}._UserButton_1kveo_24{padding:0;border:none;background-color:transparent;display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:var(--rm-ui-padding-xs)}._UserButton_1kveo_24:focus-visible{outline-offset:2px;outline-color:var(--rm-ui-color-focus)}._UserButtonText_1kveo_41{font-weight:var(--rm-ui-font-weight-medium);font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body);color:var(--rm-ui-color-text-primary)}._UserButtonIcon_1kveo_48{width:24px;height:24px;stroke-width:2px;stroke:var(--rm-ui-color-text-primary)}._UserInfo_1kveo_55{display:inline-flex;flex-direction:column;flex-wrap:nowrap;align-items:flex-start;justify-content:flex-start}._UserInfoRaw_1kveo_63{font-weight:var(--rm-ui-font-weight-light);font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body);color:var(--rm-ui-color-text-secondary)}
@@ -1 +0,0 @@
1
- ._Warranty_m4wqt_1{--icon-width: 48px;--icon-height: 56px;display:flex;flex-direction:row;flex-wrap:nowrap;align-items:flex-start;justify-content:flex-start;gap:var(--rm-ui-padding-sm);padding:var(--rm-ui-padding-md);border-radius:var(--rm-ui-border-radius-md);background-color:var(--rm-ui-warranty-bg)}._WarrantyIcon_m4wqt_15{height:var(--icon-height);width:var(--icon-width);color:var(--rm-ui-color-accent-primary)}._WarrantyMain_m4wqt_21{flex-basis:calc(100% - var(--icon-width) - var(--rm-ui-padding-sm));font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body)}._WarrantyTitle_m4wqt_27{font-weight:var(--rm-ui-font-weight-medium);color:var(--rm-ui-color-theme-primary)}._WarrantyText_m4wqt_32{font-weight:var(--rm-ui-font-weight-regular);line-height:1.5;color:var(--rm-ui-color-text-primary)}
@@ -1,4 +0,0 @@
1
- import { BaseProps } from '../../utils/types';
2
- export interface CertificationsProps extends BaseProps {
3
- icons: ('free' | 'gdpr' | 'ssl')[];
4
- }
@@ -1,8 +0,0 @@
1
- import { BaseProps } from '../../utils/types';
2
- export interface FooterProps extends BaseProps {
3
- name: string;
4
- links: {
5
- text: string;
6
- onClick: () => void;
7
- }[];
8
- }
@@ -1,5 +0,0 @@
1
- import { BaseProps } from '../../utils/types';
2
- export interface LoaderProps extends BaseProps {
3
- size: 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'xxxl';
4
- color: 'white' | 'primary' | 'secondary';
5
- }
@@ -1 +0,0 @@
1
- export declare const LoadingBlock: () => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { Loader as c } from "../loader/loader.component.js";
3
- import '../../assets/loading-block-al0S6J3z.css';const n = "_LoadingBlock_1h5nh_1", r = {
4
- LoadingBlock: n
5
- }, l = () => /* @__PURE__ */ o("div", { className: r.LoadingBlock, children: /* @__PURE__ */ o(c, { size: "lg", color: "primary" }) });
6
- export {
7
- l as LoadingBlock
8
- };
@@ -1,7 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { BaseProps } from '../../utils/types';
3
- export interface MessageProps extends BaseProps {
4
- type: 'success' | 'question' | 'error' | 'info';
5
- title: ReactNode;
6
- text: ReactNode;
7
- }
@@ -1,10 +0,0 @@
1
- import { BaseProps } from '../../utils/types';
2
- export interface NotFoundProps extends BaseProps {
3
- title: string;
4
- subtitle: string;
5
- tableTitle: string;
6
- tableRows: {
7
- key: string;
8
- value: string;
9
- }[];
10
- }