@arthurzakharov/ui-kit 1.2.5 → 1.2.7

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 (30) hide show
  1. package/dist/assets/loader-BBn4lDjH.css +1 -0
  2. package/dist/assets/{main--usgu9xb.css → main-BK_1RcKG.css} +1 -1
  3. package/dist/assets/message-CgGyIv5e.css +1 -0
  4. package/dist/assets/not-found-CyFlnajG.css +1 -0
  5. package/dist/components/certifications/certifications.types.d.ts +1 -3
  6. package/dist/components/control/components/button/button.component.js +1 -1
  7. package/dist/components/footer/footer.types.d.ts +4 -6
  8. package/dist/components/loader/index.d.ts +2 -0
  9. package/dist/components/loader/index.js +4 -0
  10. package/dist/components/loader/loader.component.d.ts +2 -5
  11. package/dist/components/loader/loader.component.js +39 -23
  12. package/dist/components/loader/loader.types.d.ts +5 -0
  13. package/dist/components/loader/loader.types.js +1 -0
  14. package/dist/components/loading-block/loading-block.component.js +2 -2
  15. package/dist/components/message/index.d.ts +2 -0
  16. package/dist/components/message/index.js +4 -0
  17. package/dist/components/message/message.component.d.ts +2 -7
  18. package/dist/components/message/message.component.js +36 -46
  19. package/dist/components/message/message.types.d.ts +7 -0
  20. package/dist/components/message/message.types.js +1 -0
  21. package/dist/components/not-found/not-found.component.js +7 -7
  22. package/dist/components/not-found/not-found.types.d.ts +4 -6
  23. package/dist/components/payment/components/glass/glass.component.js +1 -1
  24. package/dist/components/signature/signature.component.js +1 -1
  25. package/dist/main.d.ts +2 -2
  26. package/dist/main.js +1 -1
  27. package/package.json +1 -1
  28. package/dist/assets/loader-CfjW_qtY.css +0 -1
  29. package/dist/assets/message-xpCz4pZE.css +0 -1
  30. package/dist/assets/not-found-ColZD3Vb.css +0 -1
@@ -0,0 +1 @@
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 +1 @@
1
- *,*:before,*:after{margin:0;padding:0;box-sizing:border-box}body{background-color:var(--rm-ui-body-bg);font-family:Lato,sans-serif;font-weight:var(--rm-ui-font-weight-regular);font-size:16px;line-height:24px;-webkit-hyphens:manual;hyphens:manual;white-space:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}ul,ol{list-style:none}h1,h2,h3,h4,h5,h6,b,strong{font-weight:var(--rm-ui-font-weight-medium)}h1{font-size:var(--rm-ui-font-size-hl1);line-height:var(--rm-ui-line-height-hl1)}h2{font-size:var(--rm-ui-font-size-hl2);line-height:var(--rm-ui-line-height-hl2)}h3{font-size:var(--rm-ui-font-size-hl3);line-height:var(--rm-ui-line-height-hl3)}h4{font-size:var(--rm-ui-font-size-hl4);line-height:var(--rm-ui-line-height-hl4)}h5,h6{font-size:var(--rm-ui-font-size-hl5);line-height:var(--rm-ui-line-height-hl5)}a{text-decoration:none;color:inherit;border-radius:var(--rm-ui-border-radius-sm);outline:2px solid transparent}button,*[role=button]{border:none;border-radius:0;background-color:transparent;font-family:inherit;font-weight:inherit;font-size:inherit;line-height:inherit;color:inherit;-webkit-hyphens:inherit;hyphens:inherit;white-space:inherit;outline-offset:-2px;outline:2px solid transparent}a:hover,button:hover,*[role=button]:hover{cursor:pointer}a:active,button:active,*[role=button]:active{outline:none}a:focus-visible,button:focus-visible,*[role=button]:focus-visible{outline-color:var(--rm-ui-color-focus);outline-offset:-2px;transition:outline-color var(--rm-ui-amimation-speed-primary) ease-in-out;transition-delay:calc(var(--rm-ui-amimation-speed-primary) / 2)}.text-primary{color:var(--rm-ui-color-text-primary)}.text-secondary{color:var(--rm-ui-color-text-secondary)}.fw-light{font-weight:var(--rm-ui-font-weight-light)}.fw-regular{font-weight:var(--rm-ui-font-weight-regular)}.fw-medium{font-weight:var(--rm-ui-font-weight-medium)}.fw-bold{font-weight:var(--rm-ui-font-weight-bold)}:root{--rm-ui-padding-xxs: 4px;--rm-ui-padding-xs: 8px;--rm-ui-padding-sm: 12px;--rm-ui-padding-md: 16px;--rm-ui-padding-lg: 24px;--rm-ui-padding-xl: 32px;--rm-ui-padding-xxl: 40px;--rm-ui-padding-xxxl: 48px;--rm-ui-border-radius-sm: 8px;--rm-ui-border-radius-md: 12px;--rm-ui-border-radius-lg: 16px;--rm-ui-border-radius-xl: 24px;--rm-ui-font-size-body-extra-small: 12px;--rm-ui-line-height-body-extra-small: 16px;--rm-ui-font-size-body-small: 14px;--rm-ui-line-height-body-small: 20px;--rm-ui-font-size-body: 16px;--rm-ui-line-height-body: 24px;--rm-ui-font-size-body-large: 20px;--rm-ui-line-height-body-large: 30px;--rm-ui-font-size-hl5: 14px;--rm-ui-line-height-hl5: 22px;--rm-ui-font-size-hl4: 18px;--rm-ui-line-height-hl4: 24px;--rm-ui-font-size-hl3: 20px;--rm-ui-line-height-hl3: 30px;--rm-ui-font-size-hl2: 24px;--rm-ui-line-height-hl2: 32px;--rm-ui-font-size-hl1: 28px;--rm-ui-line-height-hl1: 36px;--rm-ui-font-weight-light: 300;--rm-ui-font-weight-regular: 400;--rm-ui-font-weight-medium: 700;--rm-ui-font-weight-bold: 900;--rm-ui-grey-950: #0a0a0a;--rm-ui-grey-900: #171717;--rm-ui-grey-800: #262626;--rm-ui-grey-700: #404040;--rm-ui-grey-600: #525252;--rm-ui-grey-500: #737373;--rm-ui-grey-400: #a3a3a3;--rm-ui-grey-300: #d4d4d4;--rm-ui-grey-200: #e5e5e5;--rm-ui-grey-100: #f5f5f5;--rm-ui-grey-50: #fafafa;--rm-ui-color-text-primary: var(--rm-ui-grey-800);--rm-ui-color-text-secondary: var(--rm-ui-grey-500);--rm-ui-color-accent-primary: #23bf96;--rm-ui-color-accent-secondary: #23bf96;--rm-ui-color-theme-primary: #302677;--rm-ui-color-theme-secondary: #302677;--rm-ui-color-action: #006cff;--rm-ui-color-inverted: #ffffff;--rm-ui-color-error: #dc2626;--rm-ui-color-success: #00b649;--rm-ui-color-focus: #ff8d02;--rm-ui-color-link: #ff8206;--rm-ui-body-color: #f0faff;--rm-ui-header-logo-height: 30px;--rm-ui-header-phone: #ff9900;--rm-ui-header-phone-size: 22px;--rm-ui-header-text: var(--rm-ui-color-text-primary);--rm-ui-header-check-icon: var(--rm-ui-color-text-primary);--rm-ui-certifications-color: #b1b4c7;--rm-ui-certifications-size: 20px;--rm-ui-message-success-primary: #29c667;--rm-ui-message-success-secondary: #f1fdf4;--rm-ui-message-question-primary: #a76000;--rm-ui-message-question-secondary: #fefce8;--rm-ui-message-error-primary: var(--rm-ui-color-error);--rm-ui-message-error-secondary: #fef3f3;--rm-ui-message-info-primary: #3289c4;--rm-ui-message-info-secondary: #f3f7fe;--rm-ui-payment-sidebar-bg: #f8fcff;--rm-ui-payment-text-blocks-gap: var(--rm-ui-padding-lg);--rm-ui-data-protected-label-icon: var(--rm-ui-next-btn-bg);--rm-ui-data-protected-label-text: var(--rm-ui-color-text-primary);--rm-ui-status-idle-color: #82868f;--rm-ui-status-success-color: var(--rm-ui-color-accent-primary);--rm-ui-status-error-color: var(--rm-ui-color-error);--rm-ui-card-background: #ffffff;--rm-ui-next-btn-bg: #23bf96;--rm-ui-next-btn-bg-hover: #3adbb1;--rm-ui-info-panel-bg: var(--rm-ui-body-color);--rm-ui-sidebar-bg: #f6f6f6;--rm-ui-sidebar-line-color: var(--rm-ui-grey-200);--rm-ui-loading-screen-height: 400px;--rm-ui-body-bg: #f9fcff;--rm-ui-content-bg: #ffffff;--rm-ui-amimation-speed-primary: .15s;--rm-ui-amimation-speed-secondary: .3s;--rm-ui-amimation-speed-tertiary: .4s;--rm-ui-amimation-cubic-primary: cubic-bezier(.3, 0, 0, 1);--rm-ui-amimation-cubic-secondary: cubic-bezier(.65, 0, .35, 1);--rm-ui-amimation-cubic-tertiary: cubic-bezier(.68, -.6, .32, 1.6);--rm-ui-warranty-bg: #f9fcff}
1
+ *,*:before,*:after{margin:0;padding:0;box-sizing:border-box}body{background-color:var(--rm-ui-body-bg);font-family:Lato,sans-serif;font-weight:var(--rm-ui-font-weight-regular);font-size:16px;line-height:24px;-webkit-hyphens:manual;hyphens:manual;white-space:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}ul,ol{list-style:none}h1,h2,h3,h4,h5,h6,b,strong{font-weight:var(--rm-ui-font-weight-medium)}h1{font-size:var(--rm-ui-font-size-hl1);line-height:var(--rm-ui-line-height-hl1)}h2{font-size:var(--rm-ui-font-size-hl2);line-height:var(--rm-ui-line-height-hl2)}h3{font-size:var(--rm-ui-font-size-hl3);line-height:var(--rm-ui-line-height-hl3)}h4{font-size:var(--rm-ui-font-size-hl4);line-height:var(--rm-ui-line-height-hl4)}h5,h6{font-size:var(--rm-ui-font-size-hl5);line-height:var(--rm-ui-line-height-hl5)}a{text-decoration:none;color:inherit;border-radius:var(--rm-ui-border-radius-sm);outline:2px solid transparent}button,*[role=button]{border:none;border-radius:0;background-color:transparent;font-family:inherit;font-weight:inherit;font-size:inherit;line-height:inherit;color:inherit;-webkit-hyphens:inherit;hyphens:inherit;white-space:inherit;outline-offset:-2px;outline:2px solid transparent}a:hover,button:hover,*[role=button]:hover{cursor:pointer}a:active,button:active,*[role=button]:active{outline:none}a:focus-visible,button:focus-visible,*[role=button]:focus-visible{outline-color:var(--rm-ui-color-focus);outline-offset:-2px;transition:outline-color var(--rm-ui-amimation-speed-primary) ease-in-out;transition-delay:calc(var(--rm-ui-amimation-speed-primary) / 2)}.text-primary{color:var(--rm-ui-color-text-primary)}.text-secondary{color:var(--rm-ui-color-text-secondary)}.fw-light{font-weight:var(--rm-ui-font-weight-light)}.fw-regular{font-weight:var(--rm-ui-font-weight-regular)}.fw-medium{font-weight:var(--rm-ui-font-weight-medium)}.fw-bold{font-weight:var(--rm-ui-font-weight-bold)}:root{--rm-ui-padding-xxs: 4px;--rm-ui-padding-xs: 8px;--rm-ui-padding-sm: 12px;--rm-ui-padding-md: 16px;--rm-ui-padding-lg: 24px;--rm-ui-padding-xl: 32px;--rm-ui-padding-xxl: 40px;--rm-ui-padding-xxxl: 48px;--rm-ui-border-radius-sm: 8px;--rm-ui-border-radius-md: 12px;--rm-ui-border-radius-lg: 16px;--rm-ui-border-radius-xl: 24px;--rm-ui-font-size-body-extra-small: 12px;--rm-ui-line-height-body-extra-small: 16px;--rm-ui-font-size-body-small: 14px;--rm-ui-line-height-body-small: 20px;--rm-ui-font-size-body: 16px;--rm-ui-line-height-body: 24px;--rm-ui-font-size-body-large: 20px;--rm-ui-line-height-body-large: 30px;--rm-ui-font-size-hl5: 14px;--rm-ui-line-height-hl5: 22px;--rm-ui-font-size-hl4: 18px;--rm-ui-line-height-hl4: 24px;--rm-ui-font-size-hl3: 20px;--rm-ui-line-height-hl3: 30px;--rm-ui-font-size-hl2: 24px;--rm-ui-line-height-hl2: 32px;--rm-ui-font-size-hl1: 28px;--rm-ui-line-height-hl1: 36px;--rm-ui-font-weight-light: 300;--rm-ui-font-weight-regular: 400;--rm-ui-font-weight-medium: 700;--rm-ui-font-weight-bold: 900;--rm-ui-grey-950: #0a0a0a;--rm-ui-grey-900: #171717;--rm-ui-grey-800: #262626;--rm-ui-grey-700: #404040;--rm-ui-grey-600: #525252;--rm-ui-grey-500: #737373;--rm-ui-grey-400: #a3a3a3;--rm-ui-grey-300: #d4d4d4;--rm-ui-grey-200: #e5e5e5;--rm-ui-grey-100: #f5f5f5;--rm-ui-grey-50: #fafafa;--rm-ui-color-text-primary: var(--rm-ui-grey-800);--rm-ui-color-text-secondary: var(--rm-ui-grey-500);--rm-ui-color-accent-primary: #23bf96;--rm-ui-color-accent-secondary: #ff9900;--rm-ui-color-theme-primary: #302677;--rm-ui-color-theme-secondary: #302677;--rm-ui-color-action: #006cff;--rm-ui-color-inverted: #ffffff;--rm-ui-color-error: #dc2626;--rm-ui-color-success: #00b649;--rm-ui-color-focus: #ff8d02;--rm-ui-color-link: #ff8206;--rm-ui-body-color: #f0faff;--rm-ui-header-logo-height: 30px;--rm-ui-header-phone: #ff9900;--rm-ui-header-phone-size: 22px;--rm-ui-header-text: var(--rm-ui-color-text-primary);--rm-ui-header-check-icon: var(--rm-ui-color-text-primary);--rm-ui-certifications-color: #b1b4c7;--rm-ui-certifications-size: 20px;--rm-ui-message-success-primary: #29c667;--rm-ui-message-success-secondary: #f1fdf4;--rm-ui-message-question-primary: #a76000;--rm-ui-message-question-secondary: #fefce8;--rm-ui-message-error-primary: var(--rm-ui-color-error);--rm-ui-message-error-secondary: #fef3f3;--rm-ui-message-info-primary: #3289c4;--rm-ui-message-info-secondary: #f3f7fe;--rm-ui-payment-sidebar-bg: #f8fcff;--rm-ui-payment-text-blocks-gap: var(--rm-ui-padding-lg);--rm-ui-data-protected-label-icon: var(--rm-ui-next-btn-bg);--rm-ui-data-protected-label-text: var(--rm-ui-color-text-primary);--rm-ui-status-idle-color: #82868f;--rm-ui-status-success-color: var(--rm-ui-color-accent-primary);--rm-ui-status-error-color: var(--rm-ui-color-error);--rm-ui-not-found-color: var(--rm-ui-color-text-primary);--rm-ui-not-found-border: var(--rm-ui-grey-300);--rm-ui-card-background: #ffffff;--rm-ui-next-btn-bg: #23bf96;--rm-ui-next-btn-bg-hover: #3adbb1;--rm-ui-info-panel-bg: var(--rm-ui-body-color);--rm-ui-sidebar-bg: #f6f6f6;--rm-ui-sidebar-line-color: var(--rm-ui-grey-200);--rm-ui-loading-screen-height: 400px;--rm-ui-body-bg: #f9fcff;--rm-ui-content-bg: #ffffff;--rm-ui-amimation-speed-primary: .15s;--rm-ui-amimation-speed-secondary: .3s;--rm-ui-amimation-speed-tertiary: .4s;--rm-ui-amimation-cubic-primary: cubic-bezier(.3, 0, 0, 1);--rm-ui-amimation-cubic-secondary: cubic-bezier(.65, 0, .35, 1);--rm-ui-amimation-cubic-tertiary: cubic-bezier(.68, -.6, .32, 1.6);--rm-ui-warranty-bg: #f9fcff}
@@ -0,0 +1 @@
1
+ ._Message_fkc6l_1{--message-icon-size: 24px;border-radius:var(--rm-ui-border-radius-md);padding:var(--rm-ui-padding-md);display:flex;flex-direction:row;flex-wrap:nowrap;align-items:flex-start;justify-content:flex-start;gap:var(--rm-ui-padding-xs);font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body)}._Success_fkc6l_15{background-color:var(--rm-ui-message-success-secondary)}._Success_fkc6l_15 ._Icon_fkc6l_19{stroke:var(--rm-ui-message-success-primary)}._Question_fkc6l_23{background-color:var(--rm-ui-message-question-secondary)}._Question_fkc6l_23 ._Icon_fkc6l_19{stroke:var(--rm-ui-message-question-primary)}._Error_fkc6l_31{background-color:var(--rm-ui-message-error-secondary)}._Error_fkc6l_31 ._Icon_fkc6l_19{stroke:var(--rm-ui-message-error-primary)}._Info_fkc6l_39{background-color:var(--rm-ui-message-info-secondary)}._Info_fkc6l_39 ._Icon_fkc6l_19{stroke:var(--rm-ui-message-info-primary)}._Icon_fkc6l_19{width:var(--message-icon-size);height:var(--message-icon-size)}._Content_fkc6l_52{flex-basis:calc(100% - var(--message-icon-size) - var(--rm-ui-padding-xs));display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;justify-content:flex-start;gap:var(--rm-ui-padding-xxs)}._Title_fkc6l_62{font-weight:var(--rm-ui-font-weight-medium)}._Text_fkc6l_66{font-weight:var(--rm-ui-font-weight-regular)}
@@ -0,0 +1 @@
1
+ ._NotFound_d40xv_1{padding:var(--rm-ui-padding-sm) var(--rm-ui-padding-md);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-not-found-color)}._Title_d40xv_9{margin-bottom:var(--rm-ui-padding-lg);font-weight:var(--rm-ui-font-weight-regular);font-size:var(--rm-ui-font-size-hl2);line-height:var(--rm-ui-line-height-hl2)}._Subtitle_d40xv_16{margin-bottom:var(--rm-ui-padding-md);font-weight:var(--rm-ui-font-weight-regular);font-size:var(--rm-ui-font-size-hl3);line-height:var(--rm-ui-line-height-hl3)}._TableTitle_d40xv_23{margin-bottom:var(--rm-ui-padding-md);font-weight:var(--rm-ui-font-weight-light);font-size:var(--rm-ui-font-size-hl4);line-height:var(--rm-ui-line-height-hl4)}._Table_d40xv_23{width:100%;border-spacing:0;border-collapse:collapse;font-size:var(--rm-ui-font-size-body-small);line-height:var(--rm-ui-line-height-body-small)}._TableRow_d40xv_38{border-top:1px solid var(--rm-ui-not-found-border)}._CellHead_d40xv_42,._CellData_d40xv_43{padding:var(--rm-ui-padding-xs);vertical-align:top}._CellHead_d40xv_42{text-align:left;font-weight:var(--rm-ui-font-weight-regular)}._CellData_d40xv_43{font-weight:var(--rm-ui-font-weight-light)}@media screen and (min-width:1024px){._NotFound_d40xv_1{padding:var(--rm-ui-padding-md) var(--rm-ui-padding-lg)}}@media screen and (min-width:1200px){._NotFound_d40xv_1{padding:var(--rm-ui-padding-lg)}._Title_d40xv_9{font-size:var(--rm-ui-font-size-hl1);line-height:var(--rm-ui-line-height-hl1)}._Subtitle_d40xv_16{font-size:var(--rm-ui-font-size-hl2);line-height:var(--rm-ui-line-height-hl2)}._TableTitle_d40xv_23{font-size:var(--rm-ui-font-size-hl3);line-height:var(--rm-ui-line-height-hl3)}._Table_d40xv_23{font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body)}}
@@ -1,6 +1,4 @@
1
1
  import { BaseProps } from '../../utils/types';
2
- type CertificationsIcon = 'free' | 'gdpr' | 'ssl';
3
2
  export interface CertificationsProps extends BaseProps {
4
- icons: CertificationsIcon[];
3
+ icons: ('free' | 'gdpr' | 'ssl')[];
5
4
  }
6
- export {};
@@ -66,7 +66,7 @@ import '../../../../assets/button-4MJZ7yPE.css';const g = "_Button_1utzs_1", h =
66
66
  duration: 0.2,
67
67
  delay: 0.2,
68
68
  className: t.ButtonLoaderAnimationWrap,
69
- children: /* @__PURE__ */ o(p, { size: 24, color: "white" })
69
+ children: /* @__PURE__ */ o(p, { size: "xs", color: "white" })
70
70
  }
71
71
  ) }),
72
72
  /* @__PURE__ */ l("div", { className: i(t.ButtonContent, u ? t.ButtonContentLoading : t.ButtonContentIdle), children: [
@@ -1,10 +1,8 @@
1
1
  import { BaseProps } from '../../utils/types';
2
- interface FooterLink {
3
- text: string;
4
- onClick: () => void;
5
- }
6
2
  export interface FooterProps extends BaseProps {
7
3
  name: string;
8
- links: FooterLink[];
4
+ links: {
5
+ text: string;
6
+ onClick: () => void;
7
+ }[];
9
8
  }
10
- export {};
@@ -0,0 +1,2 @@
1
+ export { Loader } from './loader.component';
2
+ export type { LoaderProps } from './loader.types';
@@ -0,0 +1,4 @@
1
+ import { Loader as e } from "./loader.component.js";
2
+ export {
3
+ e as Loader
4
+ };
@@ -1,5 +1,2 @@
1
- export interface LoaderProps {
2
- size?: number;
3
- color?: 'white' | 'primary' | 'secondary';
4
- }
5
- export declare const Loader: (props: LoaderProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { LoaderProps } from './loader.types';
2
+ export declare const Loader: ({ size, color, className }: LoaderProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,25 +1,41 @@
1
- import { jsx as d } from "react/jsx-runtime";
2
- import L from "clsx";
3
- import { Loader as t } from "lucide-react";
4
- import '../../assets/loader-CfjW_qtY.css';const c = "_Loader_e61ge_1", i = "_LoaderColorWhite_e61ge_6", l = "_LoaderColorPrimary_e61ge_10", n = "_LoaderColorSecondary_e61ge_14", o = {
5
- Loader: c,
6
- LoaderColorWhite: i,
7
- LoaderColorPrimary: l,
8
- LoaderColorSecondary: n
9
- }, _ = (e) => {
10
- const { size: a = 24, color: r = "white" } = e;
11
- return /* @__PURE__ */ d(
12
- t,
13
- {
14
- size: a,
15
- className: L(o.Loader, {
16
- [o.LoaderColorWhite]: r === "white",
17
- [o.LoaderColorPrimary]: r === "primary",
18
- [o.LoaderColorSecondary]: r === "secondary"
19
- })
20
- }
21
- );
22
- };
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 = {
5
+ Loader: n,
6
+ White: i,
7
+ Primary: m,
8
+ Secondary: y
9
+ }, u = ({ size: a, color: e, className: o = "" }) => /* @__PURE__ */ s(
10
+ c,
11
+ {
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
+ })
37
+ }
38
+ );
23
39
  export {
24
- _ as Loader
40
+ u as Loader
25
41
  };
@@ -0,0 +1,5 @@
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
+ }
@@ -2,7 +2,7 @@ import { jsx as o } from "react/jsx-runtime";
2
2
  import { Loader as c } from "../loader/loader.component.js";
3
3
  import '../../assets/loading-block-al0S6J3z.css';const n = "_LoadingBlock_1h5nh_1", r = {
4
4
  LoadingBlock: n
5
- }, d = () => /* @__PURE__ */ o("div", { className: r.LoadingBlock, children: /* @__PURE__ */ o(c, { color: "primary", size: 48 }) });
5
+ }, l = () => /* @__PURE__ */ o("div", { className: r.LoadingBlock, children: /* @__PURE__ */ o(c, { size: "lg", color: "primary" }) });
6
6
  export {
7
- d as LoadingBlock
7
+ l as LoadingBlock
8
8
  };
@@ -0,0 +1,2 @@
1
+ export { Message } from './message.component';
2
+ export type { MessageProps } from './message.types';
@@ -0,0 +1,4 @@
1
+ import { Message as r } from "./message.component.js";
2
+ export {
3
+ r as Message
4
+ };
@@ -1,7 +1,2 @@
1
- import { ReactNode } from 'react';
2
- export interface MessageProps {
3
- type: 'success' | 'question' | 'error' | 'info';
4
- title: () => ReactNode;
5
- text: () => ReactNode;
6
- }
7
- export declare const Message: (props: MessageProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { MessageProps } from './message.types';
2
+ export declare const Message: ({ type, title, text, className }: MessageProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,48 +1,38 @@
1
- import { jsxs as o, jsx as s } from "react/jsx-runtime";
2
- import { CircleAlert as M, X as i, CircleQuestionMark as _, Check as l } from "lucide-react";
3
- import r from "clsx";
4
- import '../../assets/message-xpCz4pZE.css';const T = "_Message_1rcng_1", p = "_MessageTypeSuccess_1rcng_15", u = "_MessageIcon_1rcng_19", y = "_MessageTypeQuestion_1rcng_23", m = "_MessageTypeError_1rcng_31", I = "_MessageTypeInfo_1rcng_39", f = "_MessageContent_1rcng_52", x = "_MessageTitle_1rcng_62", d = "_MessageText_1rcng_66", e = {
5
- Message: T,
6
- MessageTypeSuccess: p,
7
- MessageIcon: u,
8
- MessageTypeQuestion: y,
9
- MessageTypeError: m,
10
- MessageTypeInfo: I,
11
- MessageContent: f,
12
- MessageTitle: x,
13
- MessageText: d
14
- }, Q = (t) => {
15
- const { type: c = "info", title: n = "", text: a = "" } = t, g = () => {
16
- switch (c) {
17
- case "success":
18
- return /* @__PURE__ */ s(l, { className: e.MessageIcon });
19
- case "question":
20
- return /* @__PURE__ */ s(_, { className: e.MessageIcon });
21
- case "error":
22
- return /* @__PURE__ */ s(i, { className: e.MessageIcon });
23
- case "info":
24
- return /* @__PURE__ */ s(M, { className: e.MessageIcon });
25
- }
26
- };
27
- return /* @__PURE__ */ o(
28
- "div",
29
- {
30
- className: r(e.Message, {
31
- [e.MessageTypeSuccess]: c === "success",
32
- [e.MessageTypeQuestion]: c === "question",
33
- [e.MessageTypeError]: c === "error",
34
- [e.MessageTypeInfo]: c === "info"
35
- }),
36
- children: [
37
- g(),
38
- /* @__PURE__ */ o("div", { className: r(e.MessageContent), children: [
39
- n ? /* @__PURE__ */ s("div", { className: e.MessageTitle, children: n() }) : null,
40
- a ? /* @__PURE__ */ s("div", { className: e.MessageText, children: a() }) : null
41
- ] })
42
- ]
43
- }
44
- );
45
- };
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,
9
+ Error: "_Error_fkc6l_31",
10
+ Info: I,
11
+ Content: g,
12
+ Title: x,
13
+ Text: N
14
+ }, h = ({ type: e, title: o, text: t, className: a = "" }) => /* @__PURE__ */ n(
15
+ "div",
16
+ {
17
+ "data-testid": "message",
18
+ className: d(s.Message, a, {
19
+ [s.Success]: e === "success",
20
+ [s.Question]: e === "question",
21
+ [s.Error]: e === "error",
22
+ [s.Info]: e === "info"
23
+ }),
24
+ 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 })
32
+ ] })
33
+ ]
34
+ }
35
+ );
46
36
  export {
47
- Q as Message
37
+ h as Message
48
38
  };
@@ -0,0 +1,7 @@
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,17 +1,17 @@
1
1
  import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
2
  import c from "clsx";
3
- import '../../assets/not-found-ColZD3Vb.css';const b = "_NotFound_9ebj8_1", _ = "_Title_9ebj8_9", T = "_Subtitle_9ebj8_16", u = "_TableTitle_9ebj8_23", r = "_Table_9ebj8_23", h = "_TableRow_9ebj8_38", m = "_CellHead_9ebj8_42", N = "_CellData_9ebj8_43", t = {
4
- NotFound: b,
5
- Title: _,
3
+ import '../../assets/not-found-CyFlnajG.css';const _ = "_NotFound_d40xv_1", b = "_Title_d40xv_9", T = "_Subtitle_d40xv_16", u = "_TableTitle_d40xv_23", r = "_Table_d40xv_23", h = "_TableRow_d40xv_38", m = "_CellHead_d40xv_42", N = "_CellData_d40xv_43", t = {
4
+ NotFound: _,
5
+ Title: b,
6
6
  Subtitle: T,
7
7
  TableTitle: u,
8
8
  Table: r,
9
9
  TableRow: h,
10
10
  CellHead: m,
11
11
  CellData: N
12
- }, C = ({ title: o, subtitle: d, tableTitle: n, tableRows: s, className: i = "" }) => /* @__PURE__ */ a("section", { "data-testid": "not-found", className: c(t.NotFound, i), children: [
13
- /* @__PURE__ */ e("h1", { "data-testid": "not-found-title", className: t.Title, children: o }),
14
- /* @__PURE__ */ e("h2", { "data-testid": "not-found-subtitle", className: t.Subtitle, children: d }),
12
+ }, v = ({ title: d, subtitle: o, tableTitle: n, tableRows: s, className: i = "" }) => /* @__PURE__ */ a("section", { "data-testid": "not-found", className: c(t.NotFound, i), children: [
13
+ /* @__PURE__ */ e("h1", { "data-testid": "not-found-title", className: t.Title, children: d }),
14
+ /* @__PURE__ */ e("h2", { "data-testid": "not-found-subtitle", className: t.Subtitle, children: o }),
15
15
  /* @__PURE__ */ e("h3", { "data-testid": "not-found-table-title", className: t.TableTitle, children: n }),
16
16
  /* @__PURE__ */ e("table", { "data-testid": "not-found-table", className: t.Table, children: /* @__PURE__ */ e("tbody", { children: s.map((l) => /* @__PURE__ */ a("tr", { "data-testid": "not-found-row", className: t.TableRow, children: [
17
17
  /* @__PURE__ */ e("th", { "data-testid": "not-found-cell-head", className: t.CellHead, children: l.key }),
@@ -26,5 +26,5 @@ import '../../assets/not-found-ColZD3Vb.css';const b = "_NotFound_9ebj8_1", _ =
26
26
  ] }, l.key)) }) })
27
27
  ] });
28
28
  export {
29
- C as NotFound
29
+ v as NotFound
30
30
  };
@@ -1,12 +1,10 @@
1
1
  import { BaseProps } from '../../utils/types';
2
- interface TableRow {
3
- key: string;
4
- value: string;
5
- }
6
2
  export interface NotFoundProps extends BaseProps {
7
3
  title: string;
8
4
  subtitle: string;
9
5
  tableTitle: string;
10
- tableRows: TableRow[];
6
+ tableRows: {
7
+ key: string;
8
+ value: string;
9
+ }[];
11
10
  }
12
- export {};
@@ -16,7 +16,7 @@ import '../../../../assets/glass-CfX3rUed.css';const m = "_Glass_12crp_1", p = "
16
16
  exit: { opacity: 0, scale: 0.75 },
17
17
  transition: { duration: 0.125 },
18
18
  className: o.Cover,
19
- children: i && /* @__PURE__ */ s(t, { color: "primary", size: 48 })
19
+ children: i && /* @__PURE__ */ s(t, { size: "lg", color: "primary" })
20
20
  }
21
21
  ) }),
22
22
  a
@@ -1107,7 +1107,7 @@ const ut = /* @__PURE__ */ qe(st), ct = "_Signature_mhdg5_1", lt = "_SignatureMa
1107
1107
  ] }),
1108
1108
  /* @__PURE__ */ z(ie, { direction: "row", align: "end", justify: "center", children: N(["auto-generated"]) ? /* @__PURE__ */ Q(ie, { direction: "column", align: "center", justify: "start", children: [
1109
1109
  /* @__PURE__ */ z(ee.FadeScale, { flex: !0, name: "signature", condition: t !== "", children: /* @__PURE__ */ z("img", { className: V.SignatureAutoPanelImage, src: t, alt: "signature" }) }),
1110
- /* @__PURE__ */ z(ee.FadeScale, { flex: !0, name: "signature", condition: t === "", children: /* @__PURE__ */ z("div", { className: V.SignatureAutoPanelLoader, children: /* @__PURE__ */ z(Ne, { size: 30, color: "primary" }) }) }),
1110
+ /* @__PURE__ */ z(ee.FadeScale, { flex: !0, name: "signature", condition: t === "", children: /* @__PURE__ */ z("div", { className: V.SignatureAutoPanelLoader, children: /* @__PURE__ */ z(Ne, { size: "sm", color: "primary" }) }) }),
1111
1111
  /* @__PURE__ */ Q(ie, { direction: "row", align: "center", justify: "center", gap: "xxs", mt: "xs", children: [
1112
1112
  /* @__PURE__ */ z(Ye, { size: 24, className: V.SignatureAutoPanelNoteIcon }),
1113
1113
  /* @__PURE__ */ z(Pe.Tag, { weight: "regular", size: "small", color: "secondary", children: "Diese Unterschrift ist ausreichend" })
package/dist/main.d.ts CHANGED
@@ -15,10 +15,10 @@ export { InfoPanel, type InfoPanelProps } from './components/info-panel/info-pan
15
15
  export { Information, type InformationProps } from './components/information/information.component';
16
16
  export { Layout, type LayoutProps } from './components/layout/layout.component';
17
17
  export { Line } from './components/line/line.component';
18
- export { Loader, type LoaderProps } from './components/loader/loader.component';
18
+ export { Loader, type LoaderProps } from './components/loader';
19
19
  export { LoadingBlock } from './components/loading-block/loading-block.component';
20
20
  export { MainAttachment, type MainAttachmentProps } from './components/main-attachment/main-attachment.component';
21
- export { Message, type MessageProps } from './components/message/message.component';
21
+ export { Message, type MessageProps } from './components/message';
22
22
  export { MessageBlock, type MessageBlockProps } from './components/message-block/message-block.component';
23
23
  export { NotFound, type NotFoundProps } from './components/not-found';
24
24
  export { Payment, type PaymentBlockProps, type PaymentGlassProps, type PaymentSidebarProps, type PaymentTextBlocksProps, type PaymentTextBlockItem, } from './components/payment/payment.component';
package/dist/main.js CHANGED
@@ -28,7 +28,7 @@ import { Svg as oo } from "./components/svg/svg.component.js";
28
28
  import { Text as eo } from "./components/text/text.component.js";
29
29
  import { UserPanel as mo } from "./components/user-panel/user-panel.component.js";
30
30
  import { Warranty as xo } from "./components/warranty/warranty.component.js";
31
- import './assets/main--usgu9xb.css';export {
31
+ import './assets/main-BK_1RcKG.css';export {
32
32
  e as AccordionTable,
33
33
  m as Animation,
34
34
  x as BottomBar,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arthurzakharov/ui-kit",
3
3
  "private": false,
4
- "version": "1.2.5",
4
+ "version": "1.2.7",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -1 +0,0 @@
1
- ._Loader_e61ge_1{animation:_spinPulse_e61ge_1 2s linear infinite;transform-origin:center}._LoaderColorWhite_e61ge_6{stroke:#fff}._LoaderColorPrimary_e61ge_10{stroke:var(--rm-ui-color-accent-primary)}._LoaderColorSecondary_e61ge_14{stroke:var(--rm-ui-color-accent-secondary)}._Loader_e61ge_1>path{animation:_dash_e61ge_1 2s linear infinite}@keyframes _spinPulse_e61ge_1{0%{transform:rotate(0) scale(1)}50%{transform:rotate(180deg) scale(1.25)}to{transform:rotate(360deg) scale(1)}}@keyframes _dash_e61ge_1{0%{stroke-opacity:1}50%{stroke-opacity:.5}to{stroke-opacity:1}}
@@ -1 +0,0 @@
1
- ._Message_1rcng_1{--message-icon-size: 24px;border-radius:var(--rm-ui-border-radius-md);padding:var(--rm-ui-padding-md);display:flex;flex-direction:row;flex-wrap:nowrap;align-items:flex-start;justify-content:flex-start;gap:var(--rm-ui-padding-xs);font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body)}._MessageTypeSuccess_1rcng_15{background-color:var(--rm-ui-message-success-secondary)}._MessageTypeSuccess_1rcng_15 ._MessageIcon_1rcng_19{stroke:var(--rm-ui-message-success-primary)}._MessageTypeQuestion_1rcng_23{background-color:var(--rm-ui-message-question-secondary)}._MessageTypeQuestion_1rcng_23 ._MessageIcon_1rcng_19{stroke:var(--rm-ui-message-question-primary)}._MessageTypeError_1rcng_31{background-color:var(--rm-ui-message-error-secondary)}._MessageTypeError_1rcng_31 ._MessageIcon_1rcng_19{stroke:var(--rm-ui-message-error-primary)}._MessageTypeInfo_1rcng_39{background-color:var(--rm-ui-message-info-secondary)}._MessageTypeInfo_1rcng_39 ._MessageIcon_1rcng_19{stroke:var(--rm-ui-message-info-primary)}._MessageIcon_1rcng_19{width:var(--message-icon-size);height:var(--message-icon-size)}._MessageContent_1rcng_52{flex-basis:calc(100% - var(--message-icon-size) - var(--rm-ui-padding-xs));display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;justify-content:flex-start;gap:var(--rm-ui-padding-xxs)}._MessageTitle_1rcng_62{font-weight:var(--rm-ui-font-weight-medium)}._MessageText_1rcng_66{font-weight:var(--rm-ui-font-weight-regular)}
@@ -1 +0,0 @@
1
- ._NotFound_9ebj8_1{padding:var(--rm-ui-padding-sm) var(--rm-ui-padding-md);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-primary)}._Title_9ebj8_9{margin-bottom:var(--rm-ui-padding-lg);font-weight:var(--rm-ui-font-weight-regular);font-size:var(--rm-ui-font-size-hl2);line-height:var(--rm-ui-line-height-hl2)}._Subtitle_9ebj8_16{margin-bottom:var(--rm-ui-padding-md);font-weight:var(--rm-ui-font-weight-regular);font-size:var(--rm-ui-font-size-hl3);line-height:var(--rm-ui-line-height-hl3)}._TableTitle_9ebj8_23{margin-bottom:var(--rm-ui-padding-md);font-weight:var(--rm-ui-font-weight-light);font-size:var(--rm-ui-font-size-hl4);line-height:var(--rm-ui-line-height-hl4)}._Table_9ebj8_23{width:100%;border-spacing:0;border-collapse:collapse;font-size:var(--rm-ui-font-size-body-small);line-height:var(--rm-ui-line-height-body-small)}._TableRow_9ebj8_38{border-top:1px solid var(--rm-ui-grey-300)}._CellHead_9ebj8_42,._CellData_9ebj8_43{padding:var(--rm-ui-padding-xs);vertical-align:top}._CellHead_9ebj8_42{text-align:left;font-weight:var(--rm-ui-font-weight-regular)}._CellData_9ebj8_43{font-weight:var(--rm-ui-font-weight-light)}@media screen and (min-width:1024px){._NotFound_9ebj8_1{padding:var(--rm-ui-padding-md) var(--rm-ui-padding-lg)}}@media screen and (min-width:1200px){._NotFound_9ebj8_1{padding:var(--rm-ui-padding-lg)}._Title_9ebj8_9{font-size:var(--rm-ui-font-size-hl1);line-height:var(--rm-ui-line-height-hl1)}._Subtitle_9ebj8_16{font-size:var(--rm-ui-font-size-hl2);line-height:var(--rm-ui-line-height-hl2)}._TableTitle_9ebj8_23{font-size:var(--rm-ui-font-size-hl3);line-height:var(--rm-ui-line-height-hl3)}._Table_9ebj8_23{font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body)}}