@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.
- package/dist/components/animation/animation.component.js +9 -0
- package/dist/components/animation/fade-scale/fade-scale.component.d.ts +13 -0
- package/dist/components/animation/fade-scale/fade-scale.component.js +28 -0
- package/dist/components/animation/fade-slide/fade-slide.component.d.ts +14 -0
- package/dist/components/animation/fade-slide/fade-slide.component.js +29 -0
- package/dist/components/info-panel/info-panel.component.d.ts +1 -1
- package/dist/components/info-panel/info-panel.component.js +13 -12
- package/dist/main.d.ts +1 -0
- package/dist/main.js +16 -14
- package/dist/proxy-BfgGIllg.js +4750 -0
- package/package.json +3 -1
|
@@ -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
|
|
5
|
+
export declare const InfoPanel: (props: InfoPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as n, jsxs as c } from "react/jsx-runtime";
|
|
2
2
|
import { useWindowSize as f } from "usehooks-ts";
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
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:
|
|
9
|
-
},
|
|
10
|
-
const { data:
|
|
11
|
-
return
|
|
12
|
-
/* @__PURE__ */
|
|
13
|
-
/* @__PURE__ */
|
|
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
|
-
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
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
|
-
|
|
10
|
-
f as
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
i as
|
|
14
|
-
C as
|
|
15
|
-
d as
|
|
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
|
};
|