@arthurzakharov/ui-kit 1.0.85 → 1.0.87

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.
@@ -0,0 +1 @@
1
+ ._MainAttachment_1oa7f_1{display:block;background-color:transparent}._MainAttachmentTitle_1oa7f_5{margin-bottom:var(--rm-ui-padding-lg)}._MainAttachmentTitleWithSubtitle_1oa7f_9{margin-bottom:var(--rm-ui-padding-xs)}._MainAttachmentSubtitle_1oa7f_13{margin-bottom:var(--rm-ui-padding-lg)}
@@ -0,0 +1 @@
1
+ ._PageSubtitle_xx4pk_1{font-weight:var(--rm-ui-font-weight-regular);font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body);color:var(--rm-ui-color-text-secondary)}
@@ -2,7 +2,7 @@ import { AnimationGeneratorType, Easing } from 'motion';
2
2
  import { PropsWithChildren } from 'react';
3
3
  export interface FadeScaleProps extends PropsWithChildren {
4
4
  name: string;
5
- condition: boolean;
5
+ condition?: boolean;
6
6
  flex?: boolean;
7
7
  className?: string;
8
8
  type?: AnimationGeneratorType;
@@ -6,14 +6,14 @@ import '../../../assets/fade-scale-B23oZuuD.css';const _ = "_Flex_1t96l_1", h =
6
6
  Flex: _
7
7
  }, S = (n) => {
8
8
  const {
9
- children: o,
10
- name: s,
11
- condition: r,
9
+ children: s,
10
+ name: o,
11
+ condition: r = !1,
12
12
  flex: e = !1,
13
13
  ease: i = "easeInOut",
14
- type: c = "tween",
14
+ type: l = "tween",
15
15
  className: t = "",
16
- duration: l = 0.125,
16
+ duration: c = 0.125,
17
17
  delay: m = 0,
18
18
  animateOnStart: f = !1
19
19
  } = n, a = p(f);
@@ -26,13 +26,13 @@ import '../../../assets/fade-scale-B23oZuuD.css';const _ = "_Flex_1t96l_1", h =
26
26
  {
27
27
  initial: u,
28
28
  animate: { opacity: 1, scale: 1 },
29
- transition: { ease: i, duration: l, delay: m, type: c },
29
+ transition: { ease: i, duration: c, delay: m, type: l },
30
30
  className: t || e ? F(t, {
31
31
  [h.Flex]: e
32
32
  }) : void 0,
33
- children: o
33
+ children: s
34
34
  },
35
- s
35
+ o
36
36
  );
37
37
  };
38
38
  export {
@@ -2,7 +2,7 @@ import { AnimationGeneratorType, Easing } from 'motion';
2
2
  import { PropsWithChildren } from 'react';
3
3
  export interface FadeSlideProps extends PropsWithChildren {
4
4
  name: string;
5
- condition: boolean;
5
+ condition?: boolean;
6
6
  flex?: boolean;
7
7
  direction?: 'ltr' | 'rtl';
8
8
  className?: string;
@@ -8,7 +8,7 @@ import '../../../assets/fade-scale-B23oZuuD.css';const v = "_Flex_1t96l_1", _ =
8
8
  const {
9
9
  children: o,
10
10
  name: a,
11
- condition: l,
11
+ condition: l = !1,
12
12
  flex: e = !1,
13
13
  direction: s = "ltr",
14
14
  ease: c = "easeInOut",
@@ -0,0 +1,6 @@
1
+ import { PropsWithChildren } from 'react';
2
+ export interface MainAttachmentProps extends PropsWithChildren {
3
+ title?: string;
4
+ subtitle?: string;
5
+ }
6
+ export declare const MainAttachment: (props: MainAttachmentProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,20 @@
1
+ import { jsxs as m, jsx as t } from "react/jsx-runtime";
2
+ import h from "clsx";
3
+ import { Animation as o } from "../animation/animation.component.js";
4
+ import { Text as a } from "../text/text.component.js";
5
+ import '../../assets/main-attachment-Cw8AP6xv.css';const r = "_MainAttachment_1oa7f_1", s = "_MainAttachmentTitle_1oa7f_5", A = "_MainAttachmentTitleWithSubtitle_1oa7f_9", M = "_MainAttachmentSubtitle_1oa7f_13", i = {
6
+ MainAttachment: r,
7
+ MainAttachmentTitle: s,
8
+ MainAttachmentTitleWithSubtitle: A,
9
+ MainAttachmentSubtitle: M
10
+ }, b = (c) => {
11
+ const { children: l, title: e = "", subtitle: n = "" } = c;
12
+ return /* @__PURE__ */ m("div", { className: i.MainAttachment, children: [
13
+ e ? /* @__PURE__ */ t("div", { className: h(i.MainAttachmentTitle, { [i.MainAttachmentTitleWithSubtitle]: !!n }), children: /* @__PURE__ */ t(a.PageTitle, { children: e }) }) : null,
14
+ n ? /* @__PURE__ */ t("div", { className: i.MainAttachmentSubtitle, children: /* @__PURE__ */ t(a.PageSubtitle, { children: n }) }) : null,
15
+ /* @__PURE__ */ t(o.FadeScale, { name: "attachment-main", condition: !0, animateOnStart: !0, duration: 0.2, delay: 0.1, children: l })
16
+ ] });
17
+ };
18
+ export {
19
+ b as MainAttachment
20
+ };
@@ -0,0 +1,2 @@
1
+ import { PropsWithChildren } from 'react';
2
+ export declare const PageSubtitle: (props: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import '../../../../assets/page-subtitle-BrFA-H2S.css';const n = "_PageSubtitle_xx4pk_1", a = {
3
+ PageSubtitle: n
4
+ }, i = (l) => {
5
+ const { children: t } = l;
6
+ return typeof t == "string" ? /* @__PURE__ */ e("h6", { className: a.PageSubtitle, dangerouslySetInnerHTML: { __html: t } }) : /* @__PURE__ */ e("h6", { className: a.PageSubtitle, children: t });
7
+ };
8
+ export {
9
+ i as PageSubtitle
10
+ };
@@ -1,6 +1,7 @@
1
1
  import { Paragraph } from './components/paragraph/paragraph.component';
2
2
  export declare const Text: {
3
3
  PageInfo: (props: import('react').PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
4
+ PageSubtitle: (props: import('react').PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
4
5
  PageTitle: (props: import('react').PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
5
6
  Paragraph: typeof Paragraph;
6
7
  SidebarTitle: (props: import('react').PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
@@ -1,15 +1,17 @@
1
1
  import { PageInfo as r } from "./components/page-info/page-info.component.js";
2
- import { PageTitle as o } from "./components/page-title/page-title.component.js";
3
- import { Paragraph as t } from "./components/paragraph/paragraph.component.js";
4
- import { SidebarTitle as m } from "./components/sidebar-title/sidebar-title.component.js";
5
- import { StepTitle as e } from "./components/step-title/step-title.component.js";
6
- const g = {
2
+ import { PageSubtitle as o } from "./components/page-subtitle/page-subtitle.component.js";
3
+ import { PageTitle as t } from "./components/page-title/page-title.component.js";
4
+ import { Paragraph as m } from "./components/paragraph/paragraph.component.js";
5
+ import { SidebarTitle as e } from "./components/sidebar-title/sidebar-title.component.js";
6
+ import { StepTitle as i } from "./components/step-title/step-title.component.js";
7
+ const T = {
7
8
  PageInfo: r,
8
- PageTitle: o,
9
- Paragraph: t,
10
- SidebarTitle: m,
11
- StepTitle: e
9
+ PageSubtitle: o,
10
+ PageTitle: t,
11
+ Paragraph: m,
12
+ SidebarTitle: e,
13
+ StepTitle: i
12
14
  };
13
15
  export {
14
- g as Text
16
+ T as Text
15
17
  };
package/dist/main.d.ts CHANGED
@@ -11,6 +11,7 @@ export { Layout, type LayoutProps } from './components/layout/layout.component';
11
11
  export { Line } from './components/line/line.component';
12
12
  export { Loader, type LoaderProps } from './components/loader/loader.component';
13
13
  export { LoadingBlock } from './components/loading-block/loading-block.component';
14
+ export { MainAttachment, type MainAttachmentProps } from './components/main-attachment/main-attachment.component';
14
15
  export { Message, type MessageProps } from './components/message/message.component';
15
16
  export { NotFound, type NotFoundProps } from './components/not-found/not-found.component';
16
17
  export { Sidebar, type SidebarProps } from './components/sidebar/sidebar.component';
package/dist/main.js CHANGED
@@ -1,40 +1,42 @@
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
- import { Control as m } from "./components/control/control.component.js";
3
+ import { Control as x } from "./components/control/control.component.js";
4
4
  import { Dialog as a } from "./components/dialog/dialog.component.js";
5
5
  import { DialogArticle as i } from "./components/dialog-article/dialog-article.component.js";
6
6
  import { Expenses as s } from "./components/expenses/expenses.component.js";
7
- import { Footer as g } from "./components/footer/footer.component.js";
8
- import { Header as c } from "./components/header/header.component.js";
9
- import { InfoPanel as y } from "./components/info-panel/info-panel.component.js";
7
+ import { Footer as c } from "./components/footer/footer.component.js";
8
+ import { Header as L } from "./components/header/header.component.js";
9
+ import { InfoPanel as u } from "./components/info-panel/info-panel.component.js";
10
10
  import { Layout as C } from "./components/layout/layout.component.js";
11
11
  import { Line as F } from "./components/line/line.component.js";
12
- import { Loader as b } from "./components/loader/loader.component.js";
13
- import { LoadingBlock as B } from "./components/loading-block/loading-block.component.js";
12
+ import { Loader as P } from "./components/loader/loader.component.js";
13
+ import { LoadingBlock as h } from "./components/loading-block/loading-block.component.js";
14
+ import { MainAttachment as B } from "./components/main-attachment/main-attachment.component.js";
14
15
  import { Message as H } from "./components/message/message.component.js";
15
- import { NotFound as M } from "./components/not-found/not-found.component.js";
16
- import { Sidebar as S } from "./components/sidebar/sidebar.component.js";
17
- import { Text as U } from "./components/text/text.component.js";
18
- import { UserPanel as h } from "./components/user-panel/user-panel.component.js";
19
- import { Warranty as q } from "./components/warranty/warranty.component.js";
16
+ import { NotFound as N } from "./components/not-found/not-found.component.js";
17
+ import { Sidebar as T } from "./components/sidebar/sidebar.component.js";
18
+ import { Text as W } from "./components/text/text.component.js";
19
+ import { UserPanel as q } from "./components/user-panel/user-panel.component.js";
20
+ import { Warranty as w } from "./components/warranty/warranty.component.js";
20
21
  import './assets/main-qdiWzY1M.css';export {
21
22
  e as Animation,
22
23
  f as Certifications,
23
- m as Control,
24
+ x as Control,
24
25
  a as Dialog,
25
26
  i as DialogArticle,
26
27
  s as Expenses,
27
- g as Footer,
28
- c as Header,
29
- y as InfoPanel,
28
+ c as Footer,
29
+ L as Header,
30
+ u as InfoPanel,
30
31
  C as Layout,
31
32
  F as Line,
32
- b as Loader,
33
- B as LoadingBlock,
33
+ P as Loader,
34
+ h as LoadingBlock,
35
+ B as MainAttachment,
34
36
  H as Message,
35
- M as NotFound,
36
- S as Sidebar,
37
- U as Text,
38
- h as UserPanel,
39
- q as Warranty
37
+ N as NotFound,
38
+ T as Sidebar,
39
+ W as Text,
40
+ q as UserPanel,
41
+ w as Warranty
40
42
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arthurzakharov/ui-kit",
3
3
  "private": false,
4
- "version": "1.0.85",
4
+ "version": "1.0.87",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",