@atme-lab/ui-kit 0.1.19 → 0.1.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/content/ArticlePreview/components/ArticlePreviewContent/ArticlePreviewContent.d.ts +2 -1
- package/dist/components/content/DecorativeFrame/utils/patternGenerator.d.ts +2 -0
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs18.js +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs20.js +1 -1
- package/dist/index.cjs21.js +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs23.js +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs25.js.map +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs28.js.map +1 -1
- package/dist/index.cjs29.js +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/index.cjs386.js +1 -1
- package/dist/index.cjs386.js.map +1 -1
- package/dist/index.cjs387.js +1 -1
- package/dist/index.cjs387.js.map +1 -1
- package/dist/index.cjs388.js +1 -1
- package/dist/index.cjs388.js.map +1 -1
- package/dist/index.cjs389.js +1 -1
- package/dist/index.cjs389.js.map +1 -1
- package/dist/index.cjs390.js +1 -1
- package/dist/index.cjs390.js.map +1 -1
- package/dist/index.cjs391.js +1 -1
- package/dist/index.cjs391.js.map +1 -1
- package/dist/index.cjs392.js +1 -1
- package/dist/index.cjs392.js.map +1 -1
- package/dist/index.cjs411.js +6 -1
- package/dist/index.cjs411.js.map +1 -1
- package/dist/index.cjs412.js +6 -1
- package/dist/index.cjs412.js.map +1 -1
- package/dist/index.cjs413.js +2 -2
- package/dist/index.cjs413.js.map +1 -1
- package/dist/index.cjs414.js +2 -2
- package/dist/index.cjs414.js.map +1 -1
- package/dist/index.cjs415.js +1 -6
- package/dist/index.cjs415.js.map +1 -1
- package/dist/index.cjs416.js +1 -6
- package/dist/index.cjs416.js.map +1 -1
- package/dist/index.cjs420.js +1 -1
- package/dist/index.cjs421.js +1 -1
- package/dist/index.cjs422.js +1 -1
- package/dist/index.cjs423.js +1 -1
- package/dist/index.cjs424.js +1 -1
- package/dist/index.cjs425.js +1 -1
- package/dist/index.cjs426.js +1 -1
- package/dist/index.cjs428.js +1 -1
- package/dist/index.cjs43.js +1 -1
- package/dist/index.cjs430.js +1 -1
- package/dist/index.cjs433.js +1 -1
- package/dist/index.cjs434.js +1 -6
- package/dist/index.cjs434.js.map +1 -1
- package/dist/index.cjs435.js +1 -6
- package/dist/index.cjs435.js.map +1 -1
- package/dist/index.cjs436.js +1 -6
- package/dist/index.cjs436.js.map +1 -1
- package/dist/index.cjs437.js +1 -6
- package/dist/index.cjs437.js.map +1 -1
- package/dist/index.cjs438.js +1 -1
- package/dist/index.cjs438.js.map +1 -1
- package/dist/index.cjs439.js +1 -1
- package/dist/index.cjs439.js.map +1 -1
- package/dist/index.cjs44.js +1 -1
- package/dist/index.cjs440.js +1 -1
- package/dist/index.cjs440.js.map +1 -1
- package/dist/index.cjs441.js +1 -1
- package/dist/index.cjs441.js.map +1 -1
- package/dist/index.cjs442.js +1 -1
- package/dist/index.cjs442.js.map +1 -1
- package/dist/index.cjs443.js +1 -1
- package/dist/index.cjs443.js.map +1 -1
- package/dist/index.cjs444.js +1 -1
- package/dist/index.cjs444.js.map +1 -1
- package/dist/index.cjs445.js +1 -1
- package/dist/index.cjs445.js.map +1 -1
- package/dist/index.cjs446.js +1 -1
- package/dist/index.cjs446.js.map +1 -1
- package/dist/index.cjs447.js +1 -1
- package/dist/index.cjs447.js.map +1 -1
- package/dist/index.cjs448.js +1 -1
- package/dist/index.cjs448.js.map +1 -1
- package/dist/index.cjs449.js +6 -1
- package/dist/index.cjs449.js.map +1 -1
- package/dist/index.cjs45.js +1 -1
- package/dist/index.cjs450.js +6 -1
- package/dist/index.cjs450.js.map +1 -1
- package/dist/index.cjs451.js +6 -1
- package/dist/index.cjs451.js.map +1 -1
- package/dist/index.cjs452.js +6 -1
- package/dist/index.cjs452.js.map +1 -1
- package/dist/index.cjs46.js +1 -1
- package/dist/index.cjs46.js.map +1 -1
- package/dist/index.cjs47.js +1 -1
- package/dist/index.cjs48.js +1 -1
- package/dist/index.cjs49.js +1 -1
- package/dist/index.cjs5.js +1 -1
- package/dist/index.cjs5.js.map +1 -1
- package/dist/index.cjs50.js +1 -1
- package/dist/index.cjs53.js +1 -1
- package/dist/index.cjs54.js +1 -1
- package/dist/index.cjs55.js +1 -1
- package/dist/index.cjs56.js +1 -1
- package/dist/index.cjs56.js.map +1 -1
- package/dist/index.cjs57.js +1 -1
- package/dist/index.cjs58.js +1 -1
- package/dist/index.cjs59.js +1 -1
- package/dist/index.cjs59.js.map +1 -1
- package/dist/index.cjs60.js +1 -1
- package/dist/index.cjs60.js.map +1 -1
- package/dist/index.cjs61.js +1 -1
- package/dist/index.cjs62.js +1 -1
- package/dist/index.cjs62.js.map +1 -1
- package/dist/index.cjs63.js +1 -1
- package/dist/index.cjs64.js +1 -1
- package/dist/index.cjs64.js.map +1 -1
- package/dist/index.cjs65.js +1 -1
- package/dist/index.cjs66.js +1 -1
- package/dist/index.cjs66.js.map +1 -1
- package/dist/index.cjs67.js +1 -1
- package/dist/index.cjs67.js.map +1 -1
- package/dist/index.cjs68.js +1 -1
- package/dist/index.cjs68.js.map +1 -1
- package/dist/index.cjs69.js +1 -1
- package/dist/index.cjs69.js.map +1 -1
- package/dist/index.cjs70.js +1 -1
- package/dist/index.cjs71.js +1 -1
- package/dist/index.cjs72.js +1 -1
- package/dist/index.cjs73.js +1 -1
- package/dist/index.cjs73.js.map +1 -1
- package/dist/index.cjs86.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.esm10.js +2 -2
- package/dist/index.esm11.js +1 -1
- package/dist/index.esm13.js +1 -1
- package/dist/index.esm14.js +1 -1
- package/dist/index.esm15.js +1 -1
- package/dist/index.esm16.js +1 -1
- package/dist/index.esm17.js +1 -1
- package/dist/index.esm18.js +1 -1
- package/dist/index.esm19.js +1 -1
- package/dist/index.esm20.js +1 -1
- package/dist/index.esm21.js +2 -2
- package/dist/index.esm22.js +2 -2
- package/dist/index.esm23.js +1 -1
- package/dist/index.esm24.js +2 -2
- package/dist/index.esm25.js +26 -26
- package/dist/index.esm25.js.map +1 -1
- package/dist/index.esm26.js +1 -1
- package/dist/index.esm27.js +1 -1
- package/dist/index.esm28.js +48 -28
- package/dist/index.esm28.js.map +1 -1
- package/dist/index.esm29.js +1 -1
- package/dist/index.esm30.js +3 -3
- package/dist/index.esm386.js +29 -5
- package/dist/index.esm386.js.map +1 -1
- package/dist/index.esm387.js +24 -25
- package/dist/index.esm387.js.map +1 -1
- package/dist/index.esm388.js +50 -29
- package/dist/index.esm388.js.map +1 -1
- package/dist/index.esm389.js +7 -24
- package/dist/index.esm389.js.map +1 -1
- package/dist/index.esm390.js +7 -50
- package/dist/index.esm390.js.map +1 -1
- package/dist/index.esm391.js +33 -7
- package/dist/index.esm391.js.map +1 -1
- package/dist/index.esm392.js +5 -7
- package/dist/index.esm392.js.map +1 -1
- package/dist/index.esm411.js +9 -5
- package/dist/index.esm411.js.map +1 -1
- package/dist/index.esm412.js +18 -5
- package/dist/index.esm412.js.map +1 -1
- package/dist/index.esm413.js +9 -3
- package/dist/index.esm413.js.map +1 -1
- package/dist/index.esm414.js +6 -7
- package/dist/index.esm414.js.map +1 -1
- package/dist/index.esm415.js +5 -15
- package/dist/index.esm415.js.map +1 -1
- package/dist/index.esm416.js +5 -17
- package/dist/index.esm416.js.map +1 -1
- package/dist/index.esm420.js +1 -1
- package/dist/index.esm421.js +2 -2
- package/dist/index.esm422.js +3 -3
- package/dist/index.esm423.js +3 -3
- package/dist/index.esm424.js +1 -1
- package/dist/index.esm425.js +2 -2
- package/dist/index.esm426.js +1 -1
- package/dist/index.esm428.js +1 -1
- package/dist/index.esm43.js +28 -64
- package/dist/index.esm43.js.map +1 -1
- package/dist/index.esm430.js +7 -7
- package/dist/index.esm433.js +1 -1
- package/dist/index.esm434.js +19 -21
- package/dist/index.esm434.js.map +1 -1
- package/dist/index.esm435.js +17 -9
- package/dist/index.esm435.js.map +1 -1
- package/dist/index.esm436.js +12 -38
- package/dist/index.esm436.js.map +1 -1
- package/dist/index.esm437.js +5 -18
- package/dist/index.esm437.js.map +1 -1
- package/dist/index.esm438.js +3 -5
- package/dist/index.esm438.js.map +1 -1
- package/dist/index.esm439.js +30 -9
- package/dist/index.esm439.js.map +1 -1
- package/dist/index.esm44.js +5 -36
- package/dist/index.esm44.js.map +1 -1
- package/dist/index.esm440.js +33 -6
- package/dist/index.esm440.js.map +1 -1
- package/dist/index.esm441.js +25 -3
- package/dist/index.esm441.js.map +1 -1
- package/dist/index.esm442.js +3 -84
- package/dist/index.esm442.js.map +1 -1
- package/dist/index.esm443.js +5 -37
- package/dist/index.esm443.js.map +1 -1
- package/dist/index.esm444.js +9 -30
- package/dist/index.esm444.js.map +1 -1
- package/dist/index.esm445.js +6 -18
- package/dist/index.esm445.js.map +1 -1
- package/dist/index.esm446.js +3 -16
- package/dist/index.esm446.js.map +1 -1
- package/dist/index.esm447.js +84 -11
- package/dist/index.esm447.js.map +1 -1
- package/dist/index.esm448.js +37 -4
- package/dist/index.esm448.js.map +1 -1
- package/dist/index.esm449.js +21 -4
- package/dist/index.esm449.js.map +1 -1
- package/dist/index.esm45.js +10 -8
- package/dist/index.esm45.js.map +1 -1
- package/dist/index.esm450.js +9 -34
- package/dist/index.esm450.js.map +1 -1
- package/dist/index.esm451.js +38 -26
- package/dist/index.esm451.js.map +1 -1
- package/dist/index.esm452.js +18 -4
- package/dist/index.esm452.js.map +1 -1
- package/dist/index.esm46.js +30 -9
- package/dist/index.esm46.js.map +1 -1
- package/dist/index.esm47.js +65 -47
- package/dist/index.esm47.js.map +1 -1
- package/dist/index.esm48.js +40 -10
- package/dist/index.esm48.js.map +1 -1
- package/dist/index.esm49.js +36 -5
- package/dist/index.esm49.js.map +1 -1
- package/dist/index.esm5.js +2 -2
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.esm50.js +4 -32
- package/dist/index.esm50.js.map +1 -1
- package/dist/index.esm53.js +1 -1
- package/dist/index.esm54.js +39 -42
- package/dist/index.esm54.js.map +1 -1
- package/dist/index.esm55.js +47 -9
- package/dist/index.esm55.js.map +1 -1
- package/dist/index.esm56.js +11 -28
- package/dist/index.esm56.js.map +1 -1
- package/dist/index.esm57.js +8 -40
- package/dist/index.esm57.js.map +1 -1
- package/dist/index.esm58.js +58 -10
- package/dist/index.esm58.js.map +1 -1
- package/dist/index.esm59.js +16 -30
- package/dist/index.esm59.js.map +1 -1
- package/dist/index.esm60.js +97 -41
- package/dist/index.esm60.js.map +1 -1
- package/dist/index.esm61.js +40 -39
- package/dist/index.esm61.js.map +1 -1
- package/dist/index.esm62.js +88 -29
- package/dist/index.esm62.js.map +1 -1
- package/dist/index.esm63.js +34 -16
- package/dist/index.esm63.js.map +1 -1
- package/dist/index.esm64.js +127 -16
- package/dist/index.esm64.js.map +1 -1
- package/dist/index.esm65.js +7 -3
- package/dist/index.esm65.js.map +1 -1
- package/dist/index.esm66.js +28 -59
- package/dist/index.esm66.js.map +1 -1
- package/dist/index.esm67.js +17 -85
- package/dist/index.esm67.js.map +1 -1
- package/dist/index.esm68.js +16 -35
- package/dist/index.esm68.js.map +1 -1
- package/dist/index.esm69.js +33 -120
- package/dist/index.esm69.js.map +1 -1
- package/dist/index.esm70.js +15 -40
- package/dist/index.esm70.js.map +1 -1
- package/dist/index.esm71.js +42 -15
- package/dist/index.esm71.js.map +1 -1
- package/dist/index.esm72.js +8 -13
- package/dist/index.esm72.js.map +1 -1
- package/dist/index.esm73.js +41 -87
- package/dist/index.esm73.js.map +1 -1
- package/dist/index.esm86.js +1 -1
- package/dist/index.esm9.js +1 -1
- package/dist/server.cjs.js +1 -1
- package/dist/server.cjs.js.map +1 -1
- package/dist/server.esm.js +2 -2
- package/dist/server.esm.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/ui-kit.css +1 -1
- package/package.json +1 -1
package/dist/index.esm64.js
CHANGED
|
@@ -1,20 +1,131 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { j as
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
import { j as s } from "./index.esm36.js";
|
|
3
|
+
import T from "./index.esm42.js";
|
|
4
|
+
import { TRIANGLE_TEMPLATES as y } from "./index.esm62.js";
|
|
5
|
+
import e from "./index.esm391.js";
|
|
6
|
+
function D(i) {
|
|
7
|
+
return `polygon(${i.map(([c, t]) => `${c * 100}% ${t * 100}%`).join(", ")})`;
|
|
8
|
+
}
|
|
9
|
+
function I({ cell: i, colors: o }) {
|
|
10
|
+
const c = o[i.bgColorIndex] ?? o[0], t = o[i.shapeColorIndex] ?? o[1], a = Math.min(i.width, i.height), {
|
|
11
|
+
x,
|
|
12
|
+
y: C,
|
|
13
|
+
width: j,
|
|
14
|
+
height: b,
|
|
15
|
+
shapeType: l,
|
|
16
|
+
triangleIndex: d,
|
|
17
|
+
stripeDirection: h,
|
|
18
|
+
stripeCount: r = 4,
|
|
19
|
+
stripeMask: v,
|
|
20
|
+
animationDelay: N,
|
|
21
|
+
animationDuration: f,
|
|
22
|
+
animationScaleFrom: $ = 0.9,
|
|
23
|
+
dotScale: m = 0.45,
|
|
24
|
+
animationType: p,
|
|
25
|
+
animationPhase: k = 0
|
|
26
|
+
} = i, g = h === 1 ? a : a / (r * 2 - 1), u = h === 1 ? a / (r * 2 - 1) : a, P = v ?? Array(r).fill(!0), w = {
|
|
27
|
+
position: "absolute",
|
|
28
|
+
left: x,
|
|
29
|
+
top: C,
|
|
30
|
+
width: j,
|
|
31
|
+
height: b,
|
|
32
|
+
"--cell-delay": `${N}ms`,
|
|
33
|
+
"--cell-duration": `${f}ms`,
|
|
34
|
+
"--cell-scale-from": $,
|
|
35
|
+
"--cell-animation-phase": `${k}ms`
|
|
36
|
+
};
|
|
37
|
+
return /* @__PURE__ */ s.jsx("div", { className: e.cell, style: w, "aria-hidden": !0, children: /* @__PURE__ */ s.jsxs(
|
|
38
|
+
"div",
|
|
39
|
+
{
|
|
40
|
+
className: T(
|
|
41
|
+
e.cellInner,
|
|
42
|
+
p === "breathe" && e.cellBreathes,
|
|
43
|
+
p === "pulse" && e.cellPulses,
|
|
44
|
+
p === "opacity" && e.cellOpacity
|
|
45
|
+
),
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ s.jsx("div", { className: e.bg, style: { backgroundColor: c } }),
|
|
48
|
+
l === "circle" && /* @__PURE__ */ s.jsx(
|
|
49
|
+
"div",
|
|
50
|
+
{
|
|
51
|
+
className: e.shapeCircle,
|
|
52
|
+
style: { backgroundColor: t }
|
|
53
|
+
}
|
|
54
|
+
),
|
|
55
|
+
l === "dot" && /* @__PURE__ */ s.jsx(
|
|
56
|
+
"div",
|
|
57
|
+
{
|
|
58
|
+
className: e.shapeDot,
|
|
59
|
+
style: {
|
|
60
|
+
backgroundColor: t,
|
|
61
|
+
width: `${m * 100}%`,
|
|
62
|
+
height: `${m * 100}%`
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
),
|
|
66
|
+
l === "triangle" && d !== void 0 && y[d] && /* @__PURE__ */ s.jsx(
|
|
67
|
+
"div",
|
|
68
|
+
{
|
|
69
|
+
className: e.shapeTriangle,
|
|
70
|
+
style: {
|
|
71
|
+
backgroundColor: t,
|
|
72
|
+
clipPath: D(y[d])
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
),
|
|
76
|
+
l === "diamond" && /* @__PURE__ */ s.jsx(
|
|
77
|
+
"div",
|
|
78
|
+
{
|
|
79
|
+
className: e.shapeDiamond,
|
|
80
|
+
style: { backgroundColor: t }
|
|
81
|
+
}
|
|
82
|
+
),
|
|
83
|
+
l === "cross" && /* @__PURE__ */ s.jsxs("div", { className: e.shapeCross, children: [
|
|
84
|
+
/* @__PURE__ */ s.jsx(
|
|
85
|
+
"div",
|
|
86
|
+
{
|
|
87
|
+
className: e.crossBar,
|
|
88
|
+
style: { backgroundColor: t }
|
|
89
|
+
}
|
|
90
|
+
),
|
|
91
|
+
/* @__PURE__ */ s.jsx(
|
|
92
|
+
"div",
|
|
93
|
+
{
|
|
94
|
+
className: e.crossBarVertical,
|
|
95
|
+
style: { backgroundColor: t }
|
|
96
|
+
}
|
|
97
|
+
)
|
|
98
|
+
] }),
|
|
99
|
+
l === "stripes" && /* @__PURE__ */ s.jsx("div", { className: e.stripes, children: Array.from(
|
|
100
|
+
{ length: r },
|
|
101
|
+
(S, n) => P[n] ? /* @__PURE__ */ s.jsx(
|
|
102
|
+
"div",
|
|
103
|
+
{
|
|
104
|
+
className: e.stripe,
|
|
105
|
+
style: {
|
|
106
|
+
backgroundColor: t,
|
|
107
|
+
...h === 1 ? {
|
|
108
|
+
top: `${2 * n * u / a * 100}%`,
|
|
109
|
+
left: 0,
|
|
110
|
+
width: "100%",
|
|
111
|
+
height: `${u / a * 100}%`
|
|
112
|
+
} : {
|
|
113
|
+
left: `${2 * n * g / a * 100}%`,
|
|
114
|
+
top: 0,
|
|
115
|
+
width: `${g / a * 100}%`,
|
|
116
|
+
height: "100%"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
n
|
|
121
|
+
) : null
|
|
122
|
+
) })
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
) });
|
|
126
|
+
}
|
|
127
|
+
I.displayName = "PatternCell";
|
|
17
128
|
export {
|
|
18
|
-
|
|
129
|
+
I as PatternCell
|
|
19
130
|
};
|
|
20
131
|
//# sourceMappingURL=index.esm64.js.map
|
package/dist/index.esm64.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm64.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index.esm64.js","sources":["../src/components/content/DecorativeFrame/components/PatternCell/PatternCell.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'classnames';\nimport type { CellConfig, Point2D } from '../../utils/patternGenerator';\nimport { TRIANGLE_TEMPLATES } from '../../utils/patternGenerator';\nimport styles from './PatternCell.module.pcss';\n\nexport interface PatternCellProps {\n cell: CellConfig;\n colors: string[];\n}\n\nfunction polygonClipPath(template: Point2D[]): string {\n const points = template.map(([px, py]) => `${px * 100}% ${py * 100}%`).join(', ');\n return `polygon(${points})`;\n}\n\nexport function PatternCell({ cell, colors }: PatternCellProps) {\n const bgColor = colors[cell.bgColorIndex] ?? colors[0];\n const shapeColor = colors[cell.shapeColorIndex] ?? colors[1];\n const size = Math.min(cell.width, cell.height);\n const {\n x,\n y,\n width: cellWidth,\n height: cellHeight,\n shapeType,\n triangleIndex,\n stripeDirection,\n stripeCount = 4,\n stripeMask,\n animationDelay,\n animationDuration,\n animationScaleFrom = 0.9,\n dotScale = 0.45,\n animationType,\n animationPhase = 0,\n } = cell;\n\n const stripeWidth =\n stripeDirection === 1 ? size : size / (stripeCount * 2 - 1);\n const stripeHeight =\n stripeDirection === 1 ? size / (stripeCount * 2 - 1) : size;\n const visibleStripes = stripeMask ?? Array(stripeCount).fill(true);\n\n const cellStyle: React.CSSProperties = {\n position: 'absolute',\n left: x,\n top: y,\n width: cellWidth,\n height: cellHeight,\n '--cell-delay': `${animationDelay}ms`,\n '--cell-duration': `${animationDuration}ms`,\n '--cell-scale-from': animationScaleFrom,\n '--cell-animation-phase': `${animationPhase}ms`,\n } as React.CSSProperties;\n\n return (\n <div className={styles.cell} style={cellStyle} aria-hidden>\n <div\n className={cn(\n styles.cellInner,\n animationType === 'breathe' && styles.cellBreathes,\n animationType === 'pulse' && styles.cellPulses,\n animationType === 'opacity' && styles.cellOpacity\n )}\n >\n <div className={styles.bg} style={{ backgroundColor: bgColor }} />\n\n {shapeType === 'circle' && (\n <div\n className={styles.shapeCircle}\n style={{ backgroundColor: shapeColor }}\n />\n )}\n\n {shapeType === 'dot' && (\n <div\n className={styles.shapeDot}\n style={{\n backgroundColor: shapeColor,\n width: `${dotScale * 100}%`,\n height: `${dotScale * 100}%`,\n }}\n />\n )}\n\n {shapeType === 'triangle' &&\n triangleIndex !== undefined &&\n TRIANGLE_TEMPLATES[triangleIndex] && (\n <div\n className={styles.shapeTriangle}\n style={{\n backgroundColor: shapeColor,\n clipPath: polygonClipPath(TRIANGLE_TEMPLATES[triangleIndex]!),\n }}\n />\n )}\n\n {shapeType === 'diamond' && (\n <div\n className={styles.shapeDiamond}\n style={{ backgroundColor: shapeColor }}\n />\n )}\n\n {shapeType === 'cross' && (\n <div className={styles.shapeCross}>\n <div\n className={styles.crossBar}\n style={{ backgroundColor: shapeColor }}\n />\n <div\n className={styles.crossBarVertical}\n style={{ backgroundColor: shapeColor }}\n />\n </div>\n )}\n\n {shapeType === 'stripes' && (\n <div className={styles.stripes}>\n {Array.from({ length: stripeCount }, (_, i) =>\n visibleStripes[i] ? (\n <div\n key={i}\n className={styles.stripe}\n style={{\n backgroundColor: shapeColor,\n ...(stripeDirection === 1\n ? {\n top: `${((2 * i * stripeHeight) / size) * 100}%`,\n left: 0,\n width: '100%',\n height: `${(stripeHeight / size) * 100}%`,\n }\n : {\n left: `${((2 * i * stripeWidth) / size) * 100}%`,\n top: 0,\n width: `${(stripeWidth / size) * 100}%`,\n height: '100%',\n }),\n }}\n />\n ) : null\n )}\n </div>\n )}\n </div>\n </div>\n );\n}\n\nPatternCell.displayName = 'PatternCell';\n"],"names":["polygonClipPath","template","px","py","PatternCell","cell","colors","bgColor","shapeColor","size","y","cellWidth","cellHeight","shapeType","triangleIndex","stripeDirection","stripeCount","stripeMask","animationDelay","animationDuration","animationScaleFrom","dotScale","animationType","animationPhase","stripeWidth","stripeHeight","visibleStripes","cellStyle","jsx","styles","jsxs","cn","TRIANGLE_TEMPLATES","_","i"],"mappings":";;;;;AAWA,SAASA,EAAgBC,GAA6B;AAEpD,SAAO,WADQA,EAAS,IAAI,CAAC,CAACC,GAAIC,CAAE,MAAM,GAAGD,IAAK,GAAG,KAAKC,IAAK,GAAG,GAAG,EAAE,KAAK,IAAI,CACxD;AAC1B;AAEO,SAASC,EAAY,EAAE,MAAAC,GAAM,QAAAC,KAA4B;AAC9D,QAAMC,IAAUD,EAAOD,EAAK,YAAY,KAAKC,EAAO,CAAC,GAC/CE,IAAaF,EAAOD,EAAK,eAAe,KAAKC,EAAO,CAAC,GACrDG,IAAO,KAAK,IAAIJ,EAAK,OAAOA,EAAK,MAAM,GACvC;AAAA,IACJ;AAAA,IACA,GAAAK;AAAA,IACA,OAAOC;AAAA,IACP,QAAQC;AAAA,IACR,WAAAC;AAAA,IACA,eAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,aAAAC,IAAc;AAAA,IACd,YAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,oBAAAC,IAAqB;AAAA,IACrB,UAAAC,IAAW;AAAA,IACX,eAAAC;AAAA,IACA,gBAAAC,IAAiB;AAAA,EAAA,IACflB,GAEEmB,IACJT,MAAoB,IAAIN,IAAOA,KAAQO,IAAc,IAAI,IACrDS,IACJV,MAAoB,IAAIN,KAAQO,IAAc,IAAI,KAAKP,GACnDiB,IAAiBT,KAAc,MAAMD,CAAW,EAAE,KAAK,EAAI,GAE3DW,IAAiC;AAAA,IACrC,UAAU;AAAA,IACV,MAAM;AAAA,IACN,KAAKjB;AAAA,IACL,OAAOC;AAAA,IACP,QAAQC;AAAA,IACR,gBAAgB,GAAGM,CAAc;AAAA,IACjC,mBAAmB,GAAGC,CAAiB;AAAA,IACvC,qBAAqBC;AAAA,IACrB,0B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
1
|
"use client";
|
|
2
|
-
const
|
|
3
|
-
|
|
2
|
+
const n = "_link_10e20_1", l = "_linkText_10e20_33", e = "_linkIcon_10e20_38", t = {
|
|
3
|
+
link: n,
|
|
4
|
+
linkText: l,
|
|
5
|
+
linkIcon: e
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
8
|
t as default,
|
|
7
|
-
|
|
9
|
+
n as link,
|
|
10
|
+
e as linkIcon,
|
|
11
|
+
l as linkText
|
|
8
12
|
};
|
|
9
13
|
//# sourceMappingURL=index.esm65.js.map
|
package/dist/index.esm65.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm65.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm65.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
package/dist/index.esm66.js
CHANGED
|
@@ -1,63 +1,32 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
stackJustifyBetween: u,
|
|
30
|
-
"stack--justify-around": "_stack--justify-around_45gcn_60",
|
|
31
|
-
stackJustifyAround: y,
|
|
32
|
-
"stack--justify-evenly": "_stack--justify-evenly_45gcn_64",
|
|
33
|
-
stackJustifyEvenly: w,
|
|
34
|
-
"stack--wrap-nowrap": "_stack--wrap-nowrap_45gcn_69",
|
|
35
|
-
stackWrapNowrap: f,
|
|
36
|
-
"stack--wrap-wrap": "_stack--wrap-wrap_45gcn_73",
|
|
37
|
-
stackWrapWrap: p,
|
|
38
|
-
"stack--wrap-wrap-reverse": "_stack--wrap-wrap-reverse_45gcn_77",
|
|
39
|
-
stackWrapWrapReverse: d
|
|
40
|
-
};
|
|
2
|
+
import { j as r } from "./index.esm36.js";
|
|
3
|
+
import { forwardRef as n } from "react";
|
|
4
|
+
import s from "./index.esm42.js";
|
|
5
|
+
import a from "./index.esm415.js";
|
|
6
|
+
const l = n(
|
|
7
|
+
({ decorative: o = !0, className: t, ...e }, i) => /* @__PURE__ */ r.jsxs(
|
|
8
|
+
"svg",
|
|
9
|
+
{
|
|
10
|
+
ref: i,
|
|
11
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
12
|
+
viewBox: "0 0 24 24",
|
|
13
|
+
fill: "none",
|
|
14
|
+
stroke: "currentColor",
|
|
15
|
+
strokeWidth: 2,
|
|
16
|
+
strokeLinecap: "round",
|
|
17
|
+
strokeLinejoin: "round",
|
|
18
|
+
"aria-hidden": o,
|
|
19
|
+
className: s(a.root, t),
|
|
20
|
+
...e,
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ r.jsx("g", { "data-chain": "left", children: /* @__PURE__ */ r.jsx("path", { d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" }) }),
|
|
23
|
+
/* @__PURE__ */ r.jsx("g", { "data-chain": "right", children: /* @__PURE__ */ r.jsx("path", { d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" }) })
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
)
|
|
27
|
+
);
|
|
28
|
+
l.displayName = "LinkIcon";
|
|
41
29
|
export {
|
|
42
|
-
|
|
43
|
-
t as stack,
|
|
44
|
-
k as stackAlignBaseline,
|
|
45
|
-
_ as stackAlignCenter,
|
|
46
|
-
r as stackAlignEnd,
|
|
47
|
-
e as stackAlignStart,
|
|
48
|
-
i as stackAlignStretch,
|
|
49
|
-
s as stackDirectionColumn,
|
|
50
|
-
n as stackDirectionColumnReverse,
|
|
51
|
-
c as stackDirectionRow,
|
|
52
|
-
a as stackDirectionRowReverse,
|
|
53
|
-
y as stackJustifyAround,
|
|
54
|
-
u as stackJustifyBetween,
|
|
55
|
-
l as stackJustifyCenter,
|
|
56
|
-
g as stackJustifyEnd,
|
|
57
|
-
w as stackJustifyEvenly,
|
|
58
|
-
o as stackJustifyStart,
|
|
59
|
-
f as stackWrapNowrap,
|
|
60
|
-
p as stackWrapWrap,
|
|
61
|
-
d as stackWrapWrapReverse
|
|
30
|
+
l as LinkIcon
|
|
62
31
|
};
|
|
63
32
|
//# sourceMappingURL=index.esm66.js.map
|
package/dist/index.esm66.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm66.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm66.js","sources":["../src/components/primitives/Icon/Icons/custom/LinkIcon/LinkIcon.tsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\nimport cn from \"classnames\";\nimport styles from \"./LinkIcon.module.pcss\";\n\nexport interface LinkIconProps extends React.SVGProps<SVGSVGElement> {\n decorative?: boolean;\n}\n\nexport const LinkIcon = forwardRef<SVGSVGElement, LinkIconProps>(\n ({ decorative = true, className, ...props }, ref) => (\n <svg\n ref={ref}\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth={2}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden={decorative}\n className={cn(styles.root, className)}\n {...props}\n >\n <g data-chain=\"left\">\n <path d=\"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71\" />\n </g>\n <g data-chain=\"right\">\n <path d=\"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71\" />\n </g>\n </svg>\n )\n);\n\nLinkIcon.displayName = \"LinkIcon\";\n"],"names":["LinkIcon","forwardRef","decorative","className","props","ref","jsxs","cn","styles","jsx"],"mappings":";;;;;AAQO,MAAMA,IAAWC;AAAA,EACtB,CAAC,EAAE,YAAAC,IAAa,IAAM,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC3CC,gBAAAA,EAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAAD;AAAA,MACA,OAAM;AAAA,MACN,SAAQ;AAAA,MACR,MAAK;AAAA,MACL,QAAO;AAAA,MACP,aAAa;AAAA,MACb,eAAc;AAAA,MACd,gBAAe;AAAA,MACf,eAAaH;AAAA,MACb,WAAWK,EAAGC,EAAO,MAAML,CAAS;AAAA,MACnC,GAAGC;AAAA,MAEJ,UAAA;AAAA,QAAAK,gBAAAA,EAAAA,IAAC,OAAE,cAAW,QACZ,gCAAC,QAAA,EAAK,GAAE,+DAA8D,EAAA,CACxE;AAAA,QACAA,gBAAAA,EAAAA,IAAC,OAAE,cAAW,SACZ,gCAAC,QAAA,EAAK,GAAE,gEAA+D,EAAA,CACzE;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN;AAEAT,EAAS,cAAc;"}
|
package/dist/index.esm67.js
CHANGED
|
@@ -1,89 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
function tt(t, o, a, I, i, c = "right", e = 2) {
|
|
15
|
-
return $(t, o, a, I, i, c, e);
|
|
16
|
-
}
|
|
17
|
-
function $(t, o, a, I, i, c, e) {
|
|
18
|
-
if (t <= 0 || o <= 0) return [];
|
|
19
|
-
const u = Math.max(F, a), h = Math.max(M, Math.floor(o / u)), s = Math.min(k, Math.max(M, e));
|
|
20
|
-
let r = 1;
|
|
21
|
-
for (; r < h && o / (r + 1) >= u; )
|
|
22
|
-
r++;
|
|
23
|
-
let n = o / r;
|
|
24
|
-
n > t && (n = t, r = Math.max(M, Math.floor(o / n)));
|
|
25
|
-
const C = t / s, d = o / s;
|
|
26
|
-
if (n = Math.min(n, C, d), n <= 0) return [];
|
|
27
|
-
r = Math.max(M, Math.floor(o / n));
|
|
28
|
-
const p = Math.max(M, Math.floor(t / n)), x = () => i() > X, L = (l) => _(Math.max(M, Math.floor(l * b)), l, i), f = c === "right" || c === "left", y = f ? r : p, T = f ? p : r, A = c === "right" || c === "bottom", S = [];
|
|
29
|
-
for (let l = 0; l < y; l++) {
|
|
30
|
-
if (!x()) continue;
|
|
31
|
-
const R = L(T), O = A ? T - R : 0, P = A ? T : R;
|
|
32
|
-
for (let E = O; E < P; E++) {
|
|
33
|
-
const D = f ? E : l, U = f ? l : E;
|
|
34
|
-
W(S, D * n, U * n, n, n, I, i);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
return S;
|
|
38
|
-
}
|
|
39
|
-
function H(t) {
|
|
40
|
-
const o = t();
|
|
41
|
-
if (o < N.circle) return { shapeType: "circle" };
|
|
42
|
-
if (o < N.dot)
|
|
43
|
-
return { shapeType: "dot", dotScale: z + t() * V };
|
|
44
|
-
if (o < N.triangle)
|
|
45
|
-
return {
|
|
46
|
-
shapeType: "triangle",
|
|
47
|
-
triangleIndex: _(0, G.length - 1, t)
|
|
48
|
-
};
|
|
49
|
-
if (o < N.diamond) return { shapeType: "diamond" };
|
|
50
|
-
if (o < N.cross) return { shapeType: "cross" };
|
|
51
|
-
const a = _(J, K, t);
|
|
52
|
-
return {
|
|
53
|
-
shapeType: "stripes",
|
|
54
|
-
stripeDirection: t() > 0.35 ? 1 : 0,
|
|
55
|
-
stripeCount: a,
|
|
56
|
-
stripeMask: Array.from({ length: a }, () => t() > 1 - Q)
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
function W(t, o, a, I, i, c, e) {
|
|
60
|
-
const u = _(0, c - 1, e);
|
|
61
|
-
let h = _(0, c - 1, e);
|
|
62
|
-
for (; h === u; )
|
|
63
|
-
h = _(0, c - 1, e);
|
|
64
|
-
const s = H(e);
|
|
65
|
-
t.push({
|
|
66
|
-
x: o,
|
|
67
|
-
y: a,
|
|
68
|
-
width: I,
|
|
69
|
-
height: i,
|
|
70
|
-
bgColorIndex: u,
|
|
71
|
-
shapeColorIndex: h,
|
|
72
|
-
shapeType: s.shapeType,
|
|
73
|
-
triangleIndex: s.triangleIndex,
|
|
74
|
-
stripeDirection: s.stripeDirection,
|
|
75
|
-
stripeCount: s.stripeCount,
|
|
76
|
-
stripeMask: s.stripeMask,
|
|
77
|
-
animationDelay: Math.floor(e() * Y),
|
|
78
|
-
animationDuration: j + Math.floor(e() * Z),
|
|
79
|
-
animationScaleFrom: q + e() * v,
|
|
80
|
-
dotScale: s.dotScale
|
|
81
|
-
});
|
|
82
|
-
}
|
|
2
|
+
const t = "_likeButton_1nv5d_1", n = "_heartWrap_1nv5d_49", _ = "_heart_1nv5d_49", o = "_countWrap_1nv5d_112", e = "_count_1nv5d_112", u = {
|
|
3
|
+
likeButton: t,
|
|
4
|
+
"likeButton--disabled": "_likeButton--disabled_1nv5d_19",
|
|
5
|
+
"likeButton--liked": "_likeButton--liked_1nv5d_25",
|
|
6
|
+
"likeButton--pop": "_likeButton--pop_1nv5d_49",
|
|
7
|
+
heartWrap: n,
|
|
8
|
+
heart: _,
|
|
9
|
+
countWrap: o,
|
|
10
|
+
"countWrap--bump": "_countWrap--bump_1nv5d_119",
|
|
11
|
+
count: e
|
|
12
|
+
};
|
|
83
13
|
export {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
_ as
|
|
14
|
+
e as count,
|
|
15
|
+
o as countWrap,
|
|
16
|
+
u as default,
|
|
17
|
+
_ as heart,
|
|
18
|
+
n as heartWrap,
|
|
19
|
+
t as likeButton
|
|
88
20
|
};
|
|
89
21
|
//# sourceMappingURL=index.esm67.js.map
|
package/dist/index.esm67.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm67.js","sources":["../src/components/content/DecorativeFrame/utils/patternGenerator.ts"],"sourcesContent":["export type Point2D = [number, number];\n\nexport const TRIANGLE_TEMPLATES: Point2D[][] = [\n [[0, 0], [1, 0], [0, 1]],\n [[0, 0], [1, 0], [1, 1]],\n [[0, 0], [0, 1], [1, 1]],\n [[0, 1], [1, 0], [1, 1]],\n];\n\nexport type ShapeType =\n | 'circle'\n | 'dot'\n | 'triangle'\n | 'diamond'\n | 'cross'\n | 'stripes'\n | null;\n\nexport interface CellConfig {\n x: number;\n y: number;\n width: number;\n height: number;\n bgColorIndex: number;\n shapeColorIndex: number;\n shapeType: ShapeType;\n triangleIndex?: number;\n stripeDirection?: 0 | 1;\n stripeCount?: number;\n stripeMask?: boolean[];\n animationDelay: number;\n animationDuration: number;\n animationScaleFrom?: number;\n dotScale?: number;\n}\n\nconst RNG_MULTIPLIER = 9301;\nconst RNG_INCREMENT = 49297;\nconst RNG_MODULUS = 233280;\n\nconst MIN_BOX_SIZE = 4;\nconst STRIP_LINES_MIN = 1;\nconst STRIP_LINES_MAX = 8;\nconst EMPTY_ROW_CHANCE = 0.12;\nconst FILL_COUNT_MIN_RATIO = 0.3;\n\nconst SHAPE_PROB = { circle: 0.2, dot: 0.35, triangle: 0.5, diamond: 0.62, cross: 0.75 } as const;\nconst DOT_SCALE_MIN = 0.3;\nconst DOT_SCALE_RANGE = 0.3;\nconst ANIM_DELAY_MAX = 450;\nconst ANIM_DURATION_MIN = 320;\nconst ANIM_DURATION_RANGE = 300;\nconst ANIM_SCALE_FROM_MIN = 0.8;\nconst ANIM_SCALE_FROM_RANGE = 0.17;\nconst STRIPE_COUNT_MIN = 2;\nconst STRIPE_COUNT_MAX = 5;\nconst STRIPE_VISIBLE_CHANCE = 0.75;\n\nexport function getRandomInt(min: number, max: number, rng: () => number): number {\n return Math.floor(rng() * (max - min + 1)) + min;\n}\n\nexport function createSeededRandom(seed: number): () => number {\n return () => {\n seed = (seed * RNG_MULTIPLIER + RNG_INCREMENT) % RNG_MODULUS;\n return seed / RNG_MODULUS;\n };\n}\n\nexport type PatternEdge = 'top' | 'right' | 'bottom' | 'left';\n\nexport function generatePattern(\n stripWidth: number,\n stripHeight: number,\n boxSize: number,\n colorCount: number,\n rng: () => number,\n edge: PatternEdge = 'right',\n stripDensity: number = 2\n): CellConfig[] {\n return generateEdgePattern(stripWidth, stripHeight, boxSize, colorCount, rng, edge, stripDensity);\n}\n\nfunction generateEdgePattern(\n stripWidth: number,\n stripHeight: number,\n boxSize: number,\n colorCount: number,\n rng: () => number,\n edge: PatternEdge,\n stripDensity: number\n): CellConfig[] {\n if (stripWidth <= 0 || stripHeight <= 0) return [];\n\n const safeBoxSize = Math.max(MIN_BOX_SIZE, boxSize);\n const maxRows = Math.max(STRIP_LINES_MIN, Math.floor(stripHeight / safeBoxSize));\n const minLines = Math.min(STRIP_LINES_MAX, Math.max(STRIP_LINES_MIN, stripDensity));\n\n let rowCount = 1;\n while (rowCount < maxRows && stripHeight / (rowCount + 1) >= safeBoxSize) {\n rowCount++;\n }\n\n let cellSize = stripHeight / rowCount;\n if (cellSize > stripWidth) {\n cellSize = stripWidth;\n rowCount = Math.max(STRIP_LINES_MIN, Math.floor(stripHeight / cellSize));\n }\n\n const maxCellByWidth = stripWidth / minLines;\n const maxCellByHeight = stripHeight / minLines;\n cellSize = Math.min(cellSize, maxCellByWidth, maxCellByHeight);\n if (cellSize <= 0) return [];\n\n rowCount = Math.max(STRIP_LINES_MIN, Math.floor(stripHeight / cellSize));\n const colCount = Math.max(STRIP_LINES_MIN, Math.floor(stripWidth / cellSize));\n\n const shouldFill = () => rng() > EMPTY_ROW_CHANCE;\n const fillCount = (max: number) =>\n getRandomInt(Math.max(STRIP_LINES_MIN, Math.floor(max * FILL_COUNT_MIN_RATIO)), max, rng);\n\n const isVerticalStrip = edge === 'right' || edge === 'left';\n const primaryCount = isVerticalStrip ? rowCount : colCount;\n const secondaryCount = isVerticalStrip ? colCount : rowCount;\n const isEndEdge = edge === 'right' || edge === 'bottom';\n\n const cells: CellConfig[] = [];\n\n for (let i = 0; i < primaryCount; i++) {\n if (!shouldFill()) continue;\n\n const count = fillCount(secondaryCount);\n const start = isEndEdge ? secondaryCount - count : 0;\n const end = isEndEdge ? secondaryCount : count;\n\n for (let j = start; j < end; j++) {\n const col = isVerticalStrip ? j : i;\n const row = isVerticalStrip ? i : j;\n pushCell(cells, col * cellSize, row * cellSize, cellSize, cellSize, colorCount, rng);\n }\n }\n\n return cells;\n}\n\nfunction pickShapeType(rng: () => number): {\n shapeType: ShapeType;\n triangleIndex?: number;\n stripeDirection?: 0 | 1;\n stripeCount?: number;\n stripeMask?: boolean[];\n dotScale?: number;\n} {\n const roll = rng();\n\n if (roll < SHAPE_PROB.circle) return { shapeType: 'circle' };\n if (roll < SHAPE_PROB.dot) {\n return { shapeType: 'dot', dotScale: DOT_SCALE_MIN + rng() * DOT_SCALE_RANGE };\n }\n if (roll < SHAPE_PROB.triangle) {\n return {\n shapeType: 'triangle',\n triangleIndex: getRandomInt(0, TRIANGLE_TEMPLATES.length - 1, rng),\n };\n }\n if (roll < SHAPE_PROB.diamond) return { shapeType: 'diamond' };\n if (roll < SHAPE_PROB.cross) return { shapeType: 'cross' };\n\n const stripeCount = getRandomInt(STRIPE_COUNT_MIN, STRIPE_COUNT_MAX, rng);\n return {\n shapeType: 'stripes',\n stripeDirection: rng() > 0.35 ? 1 : 0,\n stripeCount,\n stripeMask: Array.from({ length: stripeCount }, () => rng() > 1 - STRIPE_VISIBLE_CHANCE),\n };\n}\n\nfunction pushCell(\n cells: CellConfig[],\n x: number,\n y: number,\n width: number,\n height: number,\n colorCount: number,\n rng: () => number\n): void {\n const bgColorIndex = getRandomInt(0, colorCount - 1, rng);\n let shapeColorIndex = getRandomInt(0, colorCount - 1, rng);\n while (shapeColorIndex === bgColorIndex) {\n shapeColorIndex = getRandomInt(0, colorCount - 1, rng);\n }\n\n const shape = pickShapeType(rng);\n\n cells.push({\n x,\n y,\n width,\n height,\n bgColorIndex,\n shapeColorIndex,\n shapeType: shape.shapeType,\n triangleIndex: shape.triangleIndex,\n stripeDirection: shape.stripeDirection,\n stripeCount: shape.stripeCount,\n stripeMask: shape.stripeMask,\n animationDelay: Math.floor(rng() * ANIM_DELAY_MAX),\n animationDuration: ANIM_DURATION_MIN + Math.floor(rng() * ANIM_DURATION_RANGE),\n animationScaleFrom: ANIM_SCALE_FROM_MIN + rng() * ANIM_SCALE_FROM_RANGE,\n dotScale: shape.dotScale,\n });\n}\n"],"names":["TRIANGLE_TEMPLATES","RNG_MULTIPLIER","RNG_INCREMENT","RNG_MODULUS","MIN_BOX_SIZE","STRIP_LINES_MIN","STRIP_LINES_MAX","EMPTY_ROW_CHANCE","FILL_COUNT_MIN_RATIO","SHAPE_PROB","DOT_SCALE_MIN","DOT_SCALE_RANGE","ANIM_DELAY_MAX","ANIM_DURATION_MIN","ANIM_DURATION_RANGE","ANIM_SCALE_FROM_MIN","ANIM_SCALE_FROM_RANGE","STRIPE_COUNT_MIN","STRIPE_COUNT_MAX","STRIPE_VISIBLE_CHANCE","getRandomInt","min","max","rng","createSeededRandom","seed","generatePattern","stripWidth","stripHeight","boxSize","colorCount","edge","stripDensity","generateEdgePattern","safeBoxSize","maxRows","minLines","rowCount","cellSize","maxCellByWidth","maxCellByHeight","colCount","shouldFill","fillCount","isVerticalStrip","primaryCount","secondaryCount","isEndEdge","cells","i","count","start","end","j","col","row","pushCell","pickShapeType","roll","stripeCount","x","y","width","height","bgColorIndex","shapeColorIndex","shape"],"mappings":";AAEO,MAAMA,IAAkC;AAAA,EAC7C,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAAA,EACvB,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAAA,EACvB,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,KAAK,MAAM3C,EAAA,IAAQX,CAAc;AAAA,IACjD,mBAAmBC,IAAoB,KAAK,MAAMU,EAAA,IAAQT,CAAmB;AAAA,IAC7E,oBAAoBC,IAAsBQ,EAAA,IAAQP;AAAA,IAClD,UAAUkD,EAAM;AAAA,EAAA,CACjB;AACH;"}
|
|
1
|
+
{"version":3,"file":"index.esm67.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
package/dist/index.esm68.js
CHANGED
|
@@ -1,39 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
stripBottom: p,
|
|
18
|
-
"strip--left": "_strip--left_di5ju_43",
|
|
19
|
-
stripLeft: g,
|
|
20
|
-
"strip--right": "_strip--right_di5ju_44",
|
|
21
|
-
stripRight: u,
|
|
22
|
-
stripMirror: j
|
|
23
|
-
};
|
|
2
|
+
import { j as t } from "./index.esm36.js";
|
|
3
|
+
import n from "./index.esm414.js";
|
|
4
|
+
const a = ({
|
|
5
|
+
filled: r = !1,
|
|
6
|
+
decorative: o = !0,
|
|
7
|
+
...e
|
|
8
|
+
}) => /* @__PURE__ */ t.jsx(
|
|
9
|
+
n,
|
|
10
|
+
{
|
|
11
|
+
fill: r ? "currentColor" : "none",
|
|
12
|
+
stroke: "currentColor",
|
|
13
|
+
"aria-hidden": o,
|
|
14
|
+
...e
|
|
15
|
+
}
|
|
16
|
+
);
|
|
24
17
|
export {
|
|
25
|
-
|
|
26
|
-
n as default,
|
|
27
|
-
t as root,
|
|
28
|
-
r as rootEdgeBottom,
|
|
29
|
-
i as rootEdgeLeft,
|
|
30
|
-
_ as rootEdgeRight,
|
|
31
|
-
o as rootEdgeTop,
|
|
32
|
-
s as strip,
|
|
33
|
-
p as stripBottom,
|
|
34
|
-
g as stripLeft,
|
|
35
|
-
j as stripMirror,
|
|
36
|
-
u as stripRight,
|
|
37
|
-
d as stripTop
|
|
18
|
+
a as HeartIcon
|
|
38
19
|
};
|
|
39
20
|
//# sourceMappingURL=index.esm68.js.map
|
package/dist/index.esm68.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm68.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm68.js","sources":["../src/components/primitives/Icon/Icons/lucide/HeartIcon.tsx"],"sourcesContent":["import React from \"react\";\nimport { Heart, type LucideProps } from \"lucide-react\";\n\nexport interface HeartIconProps extends LucideProps {\n /** Залитое сердечко (лайк поставлен) */\n filled?: boolean;\n decorative?: boolean;\n className?: string;\n}\n\nexport const HeartIcon: React.FC<HeartIconProps> = ({\n filled = false,\n decorative = true,\n ...props\n}) => (\n <Heart\n fill={filled ? \"currentColor\" : \"none\"}\n stroke=\"currentColor\"\n aria-hidden={decorative}\n {...props}\n />\n);\n"],"names":["HeartIcon","filled","decorative","props","jsx","Heart"],"mappings":";;;AAUO,MAAMA,IAAsC,CAAC;AAAA,EAClD,QAAAC,IAAS;AAAA,EACT,YAAAC,IAAa;AAAA,EACb,GAAGC;AACL,MACEC,gBAAAA,EAAAA;AAAAA,EAACC;AAAA,EAAA;AAAA,IACC,MAAMJ,IAAS,iBAAiB;AAAA,IAChC,QAAO;AAAA,IACP,eAAaC;AAAA,IACZ,GAAGC;AAAA,EAAA;AACN;"}
|
package/dist/index.esm69.js
CHANGED
|
@@ -1,124 +1,37 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
dotScale: p = 0.45
|
|
23
|
-
} = i, m = h === 1 ? o : o / (r * 2 - 1), g = h === 1 ? o / (r * 2 - 1) : o, $ = b ?? Array(r).fill(!0), k = {
|
|
24
|
-
position: "absolute",
|
|
25
|
-
left: y,
|
|
26
|
-
top: x,
|
|
27
|
-
width: C,
|
|
28
|
-
height: j,
|
|
29
|
-
"--cell-delay": `${v}ms`,
|
|
30
|
-
"--cell-duration": `${N}ms`,
|
|
31
|
-
"--cell-scale-from": f
|
|
32
|
-
};
|
|
33
|
-
return /* @__PURE__ */ s.jsxs(
|
|
34
|
-
"div",
|
|
35
|
-
{
|
|
36
|
-
className: e.cell,
|
|
37
|
-
style: k,
|
|
38
|
-
"aria-hidden": !0,
|
|
39
|
-
children: [
|
|
40
|
-
/* @__PURE__ */ s.jsx("div", { className: e.bg, style: { backgroundColor: c } }),
|
|
41
|
-
a === "circle" && /* @__PURE__ */ s.jsx(
|
|
42
|
-
"div",
|
|
43
|
-
{
|
|
44
|
-
className: e.shapeCircle,
|
|
45
|
-
style: { backgroundColor: t }
|
|
46
|
-
}
|
|
47
|
-
),
|
|
48
|
-
a === "dot" && /* @__PURE__ */ s.jsx(
|
|
49
|
-
"div",
|
|
50
|
-
{
|
|
51
|
-
className: e.shapeDot,
|
|
52
|
-
style: {
|
|
53
|
-
backgroundColor: t,
|
|
54
|
-
width: `${p * 100}%`,
|
|
55
|
-
height: `${p * 100}%`
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
),
|
|
59
|
-
a === "triangle" && d !== void 0 && u[d] && /* @__PURE__ */ s.jsx(
|
|
60
|
-
"div",
|
|
61
|
-
{
|
|
62
|
-
className: e.shapeTriangle,
|
|
63
|
-
style: {
|
|
64
|
-
backgroundColor: t,
|
|
65
|
-
clipPath: w(u[d])
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
),
|
|
69
|
-
a === "diamond" && /* @__PURE__ */ s.jsx(
|
|
70
|
-
"div",
|
|
71
|
-
{
|
|
72
|
-
className: e.shapeDiamond,
|
|
73
|
-
style: { backgroundColor: t }
|
|
74
|
-
}
|
|
75
|
-
),
|
|
76
|
-
a === "cross" && /* @__PURE__ */ s.jsxs("div", { className: e.shapeCross, children: [
|
|
77
|
-
/* @__PURE__ */ s.jsx(
|
|
78
|
-
"div",
|
|
79
|
-
{
|
|
80
|
-
className: e.crossBar,
|
|
81
|
-
style: { backgroundColor: t }
|
|
82
|
-
}
|
|
83
|
-
),
|
|
84
|
-
/* @__PURE__ */ s.jsx(
|
|
85
|
-
"div",
|
|
86
|
-
{
|
|
87
|
-
className: e.crossBarVertical,
|
|
88
|
-
style: { backgroundColor: t }
|
|
89
|
-
}
|
|
90
|
-
)
|
|
91
|
-
] }),
|
|
92
|
-
a === "stripes" && /* @__PURE__ */ s.jsx("div", { className: e.stripes, children: Array.from(
|
|
93
|
-
{ length: r },
|
|
94
|
-
(P, n) => $[n] ? /* @__PURE__ */ s.jsx(
|
|
95
|
-
"div",
|
|
96
|
-
{
|
|
97
|
-
className: e.stripe,
|
|
98
|
-
style: {
|
|
99
|
-
backgroundColor: t,
|
|
100
|
-
...h === 1 ? {
|
|
101
|
-
top: `${2 * n * g / o * 100}%`,
|
|
102
|
-
left: 0,
|
|
103
|
-
width: "100%",
|
|
104
|
-
height: `${g / o * 100}%`
|
|
105
|
-
} : {
|
|
106
|
-
left: `${2 * n * m / o * 100}%`,
|
|
107
|
-
top: 0,
|
|
108
|
-
width: `${m / o * 100}%`,
|
|
109
|
-
height: "100%"
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
n
|
|
114
|
-
) : null
|
|
115
|
-
) })
|
|
116
|
-
]
|
|
117
|
-
}
|
|
118
|
-
);
|
|
119
|
-
}
|
|
120
|
-
D.displayName = "PatternCell";
|
|
2
|
+
const o = "_root_13e6p_1", t = "_root--disabled_13e6p_10", c = "_input_13e6p_15", n = "_control_13e6p_26", _ = "_control--sm_13e6p_44", l = "_control--md_13e6p_49", r = "_control--lg_13e6p_54", e = "_control--checkbox_13e6p_59", s = "_control--radio_13e6p_63", p = "_content_13e6p_123", d = "_label_13e6p_129", i = "_description_13e6p_135", a = {
|
|
3
|
+
root: o,
|
|
4
|
+
"root--disabled": "_root--disabled_13e6p_10",
|
|
5
|
+
rootDisabled: t,
|
|
6
|
+
input: c,
|
|
7
|
+
control: n,
|
|
8
|
+
"control--sm": "_control--sm_13e6p_44",
|
|
9
|
+
controlSm: _,
|
|
10
|
+
"control--md": "_control--md_13e6p_49",
|
|
11
|
+
controlMd: l,
|
|
12
|
+
"control--lg": "_control--lg_13e6p_54",
|
|
13
|
+
controlLg: r,
|
|
14
|
+
"control--checkbox": "_control--checkbox_13e6p_59",
|
|
15
|
+
controlCheckbox: e,
|
|
16
|
+
"control--radio": "_control--radio_13e6p_63",
|
|
17
|
+
controlRadio: s,
|
|
18
|
+
content: p,
|
|
19
|
+
label: d,
|
|
20
|
+
description: i
|
|
21
|
+
};
|
|
121
22
|
export {
|
|
122
|
-
|
|
23
|
+
p as content,
|
|
24
|
+
n as control,
|
|
25
|
+
e as controlCheckbox,
|
|
26
|
+
r as controlLg,
|
|
27
|
+
l as controlMd,
|
|
28
|
+
s as controlRadio,
|
|
29
|
+
_ as controlSm,
|
|
30
|
+
a as default,
|
|
31
|
+
i as description,
|
|
32
|
+
c as input,
|
|
33
|
+
d as label,
|
|
34
|
+
o as root,
|
|
35
|
+
t as rootDisabled
|
|
123
36
|
};
|
|
124
37
|
//# sourceMappingURL=index.esm69.js.map
|