@arthurzakharov/ui-kit 1.0.21 → 1.0.22

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,9 @@
1
+ import { FadeScale as o } from "./fade-scale/fade-scale.component.js";
2
+ import { FadeSlide as e } from "./fade-slide/fade-slide.component.js";
3
+ const r = {
4
+ FadeScale: o,
5
+ FadeSlide: e
6
+ };
7
+ export {
8
+ r as Animation
9
+ };
@@ -0,0 +1,13 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { AnimationGeneratorType, Easing } from 'motion';
3
+ interface FadeScaleProps extends PropsWithChildren {
4
+ name: string;
5
+ condition: boolean;
6
+ className?: string;
7
+ type?: AnimationGeneratorType;
8
+ ease?: Easing | Easing[];
9
+ duration?: number;
10
+ delay?: number;
11
+ }
12
+ export declare const FadeScale: (props: FadeScaleProps) => import("react/jsx-runtime").JSX.Element | null;
13
+ export {};
@@ -0,0 +1,28 @@
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { m } from "../../../proxy-BfgGIllg.js";
3
+ const u = (e) => {
4
+ const {
5
+ children: t,
6
+ name: a,
7
+ condition: i,
8
+ ease: n = "easeInOut",
9
+ type: o = "tween",
10
+ className: r = "",
11
+ duration: s = 0.125,
12
+ delay: c = 0
13
+ } = e;
14
+ return i ? /* @__PURE__ */ l(
15
+ m.div,
16
+ {
17
+ initial: { opacity: 0, scale: 0.95 },
18
+ animate: { opacity: 1, scale: 1 },
19
+ transition: { ease: n, duration: s, delay: c, type: o },
20
+ className: r,
21
+ children: t
22
+ },
23
+ a
24
+ ) : null;
25
+ };
26
+ export {
27
+ u as FadeScale
28
+ };
@@ -0,0 +1,14 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { AnimationGeneratorType, Easing } from 'motion';
3
+ interface FadeSlideProps extends PropsWithChildren {
4
+ name: string;
5
+ condition: boolean;
6
+ direction?: 'ltr' | 'rtl';
7
+ className?: string;
8
+ type?: AnimationGeneratorType;
9
+ ease?: Easing | Easing[];
10
+ duration?: number;
11
+ delay?: number;
12
+ }
13
+ export declare const FadeSlide: (props: FadeSlideProps) => import("react/jsx-runtime").JSX.Element | null;
14
+ export {};
@@ -0,0 +1,29 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { m } from "../../../proxy-BfgGIllg.js";
3
+ const y = (t) => {
4
+ const {
5
+ children: e,
6
+ name: n,
7
+ condition: o,
8
+ direction: r = "ltr",
9
+ ease: a = "easeInOut",
10
+ type: d = "tween",
11
+ className: l = "",
12
+ duration: s = 0.125,
13
+ delay: c = 0
14
+ } = t;
15
+ return o ? /* @__PURE__ */ i("div", { style: { overflow: "hidden" }, children: /* @__PURE__ */ i(
16
+ m.div,
17
+ {
18
+ initial: { x: r === "ltr" ? "-100%" : "100%", opacity: 0 },
19
+ animate: { x: 0, opacity: 1 },
20
+ transition: { ease: a, duration: s, delay: c, type: d },
21
+ className: l,
22
+ children: e
23
+ },
24
+ n
25
+ ) }) : null;
26
+ };
27
+ export {
28
+ y as FadeSlide
29
+ };
@@ -2,4 +2,4 @@ export interface InfoPanelProps {
2
2
  data: [string, string][];
3
3
  notVisibleAfter?: number;
4
4
  }
5
- export declare const InfoPanel: (props: InfoPanelProps) => import("react/jsx-runtime").JSX.Element | null;
5
+ export declare const InfoPanel: (props: InfoPanelProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,18 +1,19 @@
1
- import { jsx as e, jsxs as c } from "react/jsx-runtime";
1
+ import { jsx as n, jsxs as c } from "react/jsx-runtime";
2
2
  import { useWindowSize as f } from "usehooks-ts";
3
- import '../../assets/info-panel-DQN2uPs8.css';const i = "_InfoPanel_1tthc_1", P = "_InfoPanelList_1tthc_27", r = "_InfoPanelItem_1tthc_41", _ = "_InfoPanelKey_1tthc_48", m = "_InfoPanelValue_1tthc_55", n = {
4
- InfoPanel: i,
5
- InfoPanelList: P,
3
+ import { Animation as I } from "../animation/animation.component.js";
4
+ import '../../assets/info-panel-DQN2uPs8.css';const P = "_InfoPanel_1tthc_1", m = "_InfoPanelList_1tthc_27", r = "_InfoPanelItem_1tthc_41", _ = "_InfoPanelKey_1tthc_48", d = "_InfoPanelValue_1tthc_55", e = {
5
+ InfoPanel: P,
6
+ InfoPanelList: m,
6
7
  InfoPanelItem: r,
7
8
  InfoPanelKey: _,
8
- InfoPanelValue: m
9
- }, d = (l) => {
10
- const { data: t = [], notVisibleAfter: o = 1024 } = l, { width: s } = f({ initializeWithValue: !0, debounceDelay: 200 });
11
- return s >= o ? null : /* @__PURE__ */ e("div", { className: n.InfoPanel, children: /* @__PURE__ */ e("ul", { className: n.InfoPanelList, children: t.map(([a, I]) => /* @__PURE__ */ c("li", { className: n.InfoPanelItem, children: [
12
- /* @__PURE__ */ e("span", { className: n.InfoPanelKey, children: a }),
13
- /* @__PURE__ */ e("span", { className: n.InfoPanelValue, dangerouslySetInnerHTML: { __html: I } })
14
- ] }, a)) }) });
9
+ InfoPanelValue: d
10
+ }, V = (l) => {
11
+ const { data: o = [], notVisibleAfter: t = 1024 } = l, { width: s } = f({ initializeWithValue: !0, debounceDelay: 100 });
12
+ return /* @__PURE__ */ n(I.FadeScale, { name: "info-panel", condition: s < t, children: /* @__PURE__ */ n("div", { className: e.InfoPanel, children: /* @__PURE__ */ n("ul", { className: e.InfoPanelList, children: o.map(([a, i]) => /* @__PURE__ */ c("li", { className: e.InfoPanelItem, children: [
13
+ /* @__PURE__ */ n("span", { className: e.InfoPanelKey, children: a }),
14
+ /* @__PURE__ */ n("span", { className: e.InfoPanelValue, dangerouslySetInnerHTML: { __html: i } })
15
+ ] }, a)) }) }) });
15
16
  };
16
17
  export {
17
- d as InfoPanel
18
+ V as InfoPanel
18
19
  };
package/dist/main.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export { Animation } from './components/animation/animation.component';
1
2
  export { Certifications, type CertificationsProps, type CertificationsIcon, } from './components/certifications/certifications.component';
2
3
  export { Control } from './components/control/control.component';
3
4
  export { Footer, type FooterProps } from './components/footer/footer.component';
package/dist/main.js CHANGED
@@ -1,16 +1,18 @@
1
- import { Certifications as e } from "./components/certifications/certifications.component.js";
2
- import { Control as f } from "./components/control/control.component.js";
3
- import { Footer as m } from "./components/footer/footer.component.js";
4
- import { Header as a } from "./components/header/header.component.js";
5
- import { InfoPanel as i } from "./components/info-panel/info-panel.component.js";
6
- import { Layout as C } from "./components/layout/layout.component.js";
7
- import { Text as d } from "./components/text/text.component.js";
1
+ import { Animation as t } from "./components/animation/animation.component.js";
2
+ import { Certifications as f } from "./components/certifications/certifications.component.js";
3
+ import { Control as x } from "./components/control/control.component.js";
4
+ import { Footer as n } from "./components/footer/footer.component.js";
5
+ import { Header as i } from "./components/header/header.component.js";
6
+ import { InfoPanel as C } from "./components/info-panel/info-panel.component.js";
7
+ import { Layout as d } from "./components/layout/layout.component.js";
8
+ import { Text as u } from "./components/text/text.component.js";
8
9
  import './assets/main-2dYBPRqY.css';export {
9
- e as Certifications,
10
- f as Control,
11
- m as Footer,
12
- a as Header,
13
- i as InfoPanel,
14
- C as Layout,
15
- d as Text
10
+ t as Animation,
11
+ f as Certifications,
12
+ x as Control,
13
+ n as Footer,
14
+ i as Header,
15
+ C as InfoPanel,
16
+ d as Layout,
17
+ u as Text
16
18
  };