@arthurzakharov/ui-kit 1.0.64 → 1.0.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{main-CQA3hKgm.css → main-D2d6ACnF.css} +1 -1
- package/dist/assets/message-CmLlka4r.css +1 -0
- package/dist/components/message/message.component.d.ts +6 -0
- package/dist/components/message/message.component.js +48 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +21 -19
- package/package.json +1 -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-size:16px;line-height:24px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}ul,ol{list-style:none}a{text-decoration:none;color:inherit;border-radius:.125rem;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;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)}: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-certifications-color: #b1b4c7;--rm-ui-certifications-size: 20px;--rm-ui-card-background: #ffffff;--rm-ui-next-btn-bg: #23bf96;--rm-ui-next-btn-bg-hover: #3adbb1;--rm-ui-header-logo-height: 30px;--rm-ui-info-panel-bg: var(--rm-ui-body-color);--rm-ui-step-idle-color: #82868f;--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: #f0faff;--rm-ui-amimation-speed-primary: .2s;--rm-ui-amimation-speed-secondary: .3s}
|
|
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-size:16px;line-height:24px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}ul,ol{list-style:none}a{text-decoration:none;color:inherit;border-radius:.125rem;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;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)}: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-certifications-color: #b1b4c7;--rm-ui-certifications-size: 20px;--rm-ui-card-background: #ffffff;--rm-ui-next-btn-bg: #23bf96;--rm-ui-next-btn-bg-hover: #3adbb1;--rm-ui-header-logo-height: 30px;--rm-ui-info-panel-bg: var(--rm-ui-body-color);--rm-ui-step-idle-color: #82868f;--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: #f0faff;--rm-ui-amimation-speed-primary: .2s;--rm-ui-amimation-speed-secondary: .3s;--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}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._Message_zgxrh_1{--message-icon-size: 24px;border-radius:var(--rm-ui-padding-sm);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_zgxrh_16{background-color:var(--rm-ui-message-success-secondary)}._MessageTypeSuccess_zgxrh_16 ._MessageIcon_zgxrh_20{stroke:var(--rm-ui-message-success-primary)}._MessageTypeQuestion_zgxrh_24{background-color:var(--rm-ui-message-question-secondary)}._MessageTypeQuestion_zgxrh_24 ._MessageIcon_zgxrh_20{stroke:var(--rm-ui-message-question-primary)}._MessageTypeError_zgxrh_32{background-color:var(--rm-ui-message-error-secondary)}._MessageTypeError_zgxrh_32 ._MessageIcon_zgxrh_20{stroke:var(--rm-ui-message-error-primary)}._MessageTypeInfo_zgxrh_40{background-color:var(--rm-ui-message-info-secondary)}._MessageTypeInfo_zgxrh_40 ._MessageIcon_zgxrh_20{stroke:var(--rm-ui-message-info-primary)}._MessageIcon_zgxrh_20{width:var(--message-icon-size);height:var(--message-icon-size)}._MessageContent_zgxrh_53{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_zgxrh_63{font-weight:var(--rm-ui-font-weight-medium)}._MessageText_zgxrh_67{font-weight:var(--rm-ui-font-weight-regular)}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsxs as o, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { CircleAlert as M, X as _, CircleQuestionMark as i, Check as l } from "lucide-react";
|
|
3
|
+
import r from "clsx";
|
|
4
|
+
import '../../assets/message-CmLlka4r.css';const T = "_Message_zgxrh_1", u = "_MessageTypeSuccess_zgxrh_16", p = "_MessageIcon_zgxrh_20", y = "_MessageTypeQuestion_zgxrh_24", x = "_MessageTypeError_zgxrh_32", m = "_MessageTypeInfo_zgxrh_40", h = "_MessageContent_zgxrh_53", I = "_MessageTitle_zgxrh_63", f = "_MessageText_zgxrh_67", e = {
|
|
5
|
+
Message: T,
|
|
6
|
+
MessageTypeSuccess: u,
|
|
7
|
+
MessageIcon: p,
|
|
8
|
+
MessageTypeQuestion: y,
|
|
9
|
+
MessageTypeError: x,
|
|
10
|
+
MessageTypeInfo: m,
|
|
11
|
+
MessageContent: h,
|
|
12
|
+
MessageTitle: I,
|
|
13
|
+
MessageText: f
|
|
14
|
+
}, C = (c) => {
|
|
15
|
+
const { type: a = "info", title: n = "", text: t = "" } = c, g = () => {
|
|
16
|
+
switch (a) {
|
|
17
|
+
case "success":
|
|
18
|
+
return /* @__PURE__ */ s(l, { className: e.MessageIcon });
|
|
19
|
+
case "question":
|
|
20
|
+
return /* @__PURE__ */ s(i, { className: e.MessageIcon });
|
|
21
|
+
case "error":
|
|
22
|
+
return /* @__PURE__ */ s(_, { 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]: a === "success",
|
|
32
|
+
[e.MessageTypeQuestion]: a === "question",
|
|
33
|
+
[e.MessageTypeError]: a === "error",
|
|
34
|
+
[e.MessageTypeInfo]: a === "info"
|
|
35
|
+
}),
|
|
36
|
+
children: [
|
|
37
|
+
g(),
|
|
38
|
+
/* @__PURE__ */ o("div", { className: r(e.MessageContent), children: [
|
|
39
|
+
n ? /* @__PURE__ */ s("div", { className: e.MessageTitle, dangerouslySetInnerHTML: { __html: n } }) : null,
|
|
40
|
+
t ? /* @__PURE__ */ s("div", { className: e.MessageText, dangerouslySetInnerHTML: { __html: t } }) : null
|
|
41
|
+
] })
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
};
|
|
46
|
+
export {
|
|
47
|
+
C as Message
|
|
48
|
+
};
|
package/dist/main.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export { Layout, type LayoutProps } from './components/layout/layout.component';
|
|
|
8
8
|
export { Line } from './components/line/line.component';
|
|
9
9
|
export { Loader, type LoaderProps } from './components/loader/loader.component';
|
|
10
10
|
export { LoadingBlock } from './components/loading-block/loading-block.component';
|
|
11
|
+
export { Message, type MessageProps } from './components/message/message.component';
|
|
11
12
|
export { NotFound, type NotFoundProps } from './components/not-found/not-found.component';
|
|
12
13
|
export { Sidebar, type SidebarProps } from './components/sidebar/sidebar.component';
|
|
13
14
|
export { Text } from './components/text/text.component';
|
package/dist/main.js
CHANGED
|
@@ -1,30 +1,32 @@
|
|
|
1
1
|
import { Animation as e } from "./components/animation/animation.component.js";
|
|
2
2
|
import { Certifications as f } from "./components/certifications/certifications.component.js";
|
|
3
3
|
import { Control as x } from "./components/control/control.component.js";
|
|
4
|
-
import { Footer as
|
|
4
|
+
import { Footer as a } from "./components/footer/footer.component.js";
|
|
5
5
|
import { Header as i } from "./components/header/header.component.js";
|
|
6
6
|
import { InfoPanel as l } from "./components/info-panel/info-panel.component.js";
|
|
7
|
-
import { Layout as
|
|
8
|
-
import { Line as
|
|
9
|
-
import { Loader as
|
|
10
|
-
import { LoadingBlock as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
7
|
+
import { Layout as L } from "./components/layout/layout.component.js";
|
|
8
|
+
import { Line as g } from "./components/line/line.component.js";
|
|
9
|
+
import { Loader as C } from "./components/loader/loader.component.js";
|
|
10
|
+
import { LoadingBlock as P } from "./components/loading-block/loading-block.component.js";
|
|
11
|
+
import { Message as k } from "./components/message/message.component.js";
|
|
12
|
+
import { NotFound as A } from "./components/not-found/not-found.component.js";
|
|
13
|
+
import { Sidebar as H } from "./components/sidebar/sidebar.component.js";
|
|
14
|
+
import { Text as M } from "./components/text/text.component.js";
|
|
15
|
+
import { UserPanel as S } from "./components/user-panel/user-panel.component.js";
|
|
16
|
+
import './assets/main-D2d6ACnF.css';export {
|
|
16
17
|
e as Animation,
|
|
17
18
|
f as Certifications,
|
|
18
19
|
x as Control,
|
|
19
|
-
|
|
20
|
+
a as Footer,
|
|
20
21
|
i as Header,
|
|
21
22
|
l as InfoPanel,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
k as
|
|
27
|
-
A as
|
|
28
|
-
H as
|
|
29
|
-
|
|
23
|
+
L as Layout,
|
|
24
|
+
g as Line,
|
|
25
|
+
C as Loader,
|
|
26
|
+
P as LoadingBlock,
|
|
27
|
+
k as Message,
|
|
28
|
+
A as NotFound,
|
|
29
|
+
H as Sidebar,
|
|
30
|
+
M as Text,
|
|
31
|
+
S as UserPanel
|
|
30
32
|
};
|