@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.esm58.js
CHANGED
|
@@ -1,15 +1,63 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
const t = "_stack_45gcn_1", c = "_stack--direction-row_45gcn_6", s = "_stack--direction-column_45gcn_10", a = "_stack--direction-row-reverse_45gcn_14", n = "_stack--direction-column-reverse_45gcn_18", e = "_stack--align-start_45gcn_23", r = "_stack--align-end_45gcn_27", _ = "_stack--align-center_45gcn_31", i = "_stack--align-stretch_45gcn_35", k = "_stack--align-baseline_45gcn_39", o = "_stack--justify-start_45gcn_44", g = "_stack--justify-end_45gcn_48", l = "_stack--justify-center_45gcn_52", u = "_stack--justify-between_45gcn_56", y = "_stack--justify-around_45gcn_60", w = "_stack--justify-evenly_45gcn_64", f = "_stack--wrap-nowrap_45gcn_69", p = "_stack--wrap-wrap_45gcn_73", d = "_stack--wrap-wrap-reverse_45gcn_77", v = {
|
|
3
|
+
stack: t,
|
|
4
|
+
"stack--direction-row": "_stack--direction-row_45gcn_6",
|
|
5
|
+
stackDirectionRow: c,
|
|
6
|
+
"stack--direction-column": "_stack--direction-column_45gcn_10",
|
|
7
|
+
stackDirectionColumn: s,
|
|
8
|
+
"stack--direction-row-reverse": "_stack--direction-row-reverse_45gcn_14",
|
|
9
|
+
stackDirectionRowReverse: a,
|
|
10
|
+
"stack--direction-column-reverse": "_stack--direction-column-reverse_45gcn_18",
|
|
11
|
+
stackDirectionColumnReverse: n,
|
|
12
|
+
"stack--align-start": "_stack--align-start_45gcn_23",
|
|
13
|
+
stackAlignStart: e,
|
|
14
|
+
"stack--align-end": "_stack--align-end_45gcn_27",
|
|
15
|
+
stackAlignEnd: r,
|
|
16
|
+
"stack--align-center": "_stack--align-center_45gcn_31",
|
|
17
|
+
stackAlignCenter: _,
|
|
18
|
+
"stack--align-stretch": "_stack--align-stretch_45gcn_35",
|
|
19
|
+
stackAlignStretch: i,
|
|
20
|
+
"stack--align-baseline": "_stack--align-baseline_45gcn_39",
|
|
21
|
+
stackAlignBaseline: k,
|
|
22
|
+
"stack--justify-start": "_stack--justify-start_45gcn_44",
|
|
23
|
+
stackJustifyStart: o,
|
|
24
|
+
"stack--justify-end": "_stack--justify-end_45gcn_48",
|
|
25
|
+
stackJustifyEnd: g,
|
|
26
|
+
"stack--justify-center": "_stack--justify-center_45gcn_52",
|
|
27
|
+
stackJustifyCenter: l,
|
|
28
|
+
"stack--justify-between": "_stack--justify-between_45gcn_56",
|
|
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
|
|
7
40
|
};
|
|
8
41
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
42
|
+
v as default,
|
|
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
|
|
14
62
|
};
|
|
15
63
|
//# sourceMappingURL=index.esm58.js.map
|
package/dist/index.esm58.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm58.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm58.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.esm59.js
CHANGED
|
@@ -1,34 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
viewBox: "0 0 24 24",
|
|
13
|
-
fill: "none",
|
|
14
|
-
stroke: "currentColor",
|
|
15
|
-
strokeWidth: 2,
|
|
16
|
-
strokeLinecap: "round",
|
|
17
|
-
strokeLinejoin: "round",
|
|
18
|
-
"aria-hidden": t,
|
|
19
|
-
className: a(n.root, o),
|
|
20
|
-
...r,
|
|
21
|
-
children: [
|
|
22
|
-
/* @__PURE__ */ s.jsx("line", { "data-hash-stick": "top", x1: "4", x2: "20", y1: "9", y2: "9" }),
|
|
23
|
-
/* @__PURE__ */ s.jsx("line", { "data-hash-stick": "bottom", x1: "4", x2: "20", y1: "15", y2: "15" }),
|
|
24
|
-
/* @__PURE__ */ s.jsx("line", { "data-hash-stick": "left", x1: "10", x2: "8", y1: "3", y2: "21" }),
|
|
25
|
-
/* @__PURE__ */ s.jsx("line", { "data-hash-stick": "right", x1: "16", x2: "14", y1: "3", y2: "21" })
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
)
|
|
29
|
-
);
|
|
30
|
-
x.displayName = "HashIcon";
|
|
2
|
+
const o = "_root_1epwz_1", t = "_root--interactive_1epwz_16", r = "_cardLink_1epwz_20", _ = "_root--card_1epwz_41", e = "_root--row_1epwz_47", c = {
|
|
3
|
+
root: o,
|
|
4
|
+
"root--interactive": "_root--interactive_1epwz_16",
|
|
5
|
+
rootInteractive: t,
|
|
6
|
+
cardLink: r,
|
|
7
|
+
"root--card": "_root--card_1epwz_41",
|
|
8
|
+
rootCard: _,
|
|
9
|
+
"root--row": "_root--row_1epwz_47",
|
|
10
|
+
rootRow: e
|
|
11
|
+
};
|
|
31
12
|
export {
|
|
32
|
-
|
|
13
|
+
r as cardLink,
|
|
14
|
+
c as default,
|
|
15
|
+
o as root,
|
|
16
|
+
_ as rootCard,
|
|
17
|
+
t as rootInteractive,
|
|
18
|
+
e as rootRow
|
|
33
19
|
};
|
|
34
20
|
//# sourceMappingURL=index.esm59.js.map
|
package/dist/index.esm59.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm59.js","sources":[
|
|
1
|
+
{"version":3,"file":"index.esm59.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
package/dist/index.esm60.js
CHANGED
|
@@ -1,45 +1,101 @@
|
|
|
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
|
-
|
|
2
|
+
import { j as s } from "./index.esm36.js";
|
|
3
|
+
import p from "./index.esm42.js";
|
|
4
|
+
import { AnimatedEyeIcon as N } from "./index.esm386.js";
|
|
5
|
+
import { AnimatedClockIcon as v } from "./index.esm387.js";
|
|
6
|
+
import a from "./index.esm388.js";
|
|
7
|
+
import { FileTextIcon as I } from "./index.esm389.js";
|
|
8
|
+
import { Typography as c } from "./index.esm9.js";
|
|
9
|
+
import { EyeIcon as g } from "./index.esm390.js";
|
|
10
|
+
function h(e) {
|
|
11
|
+
return e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).toFixed(1)}K` : String(e);
|
|
12
|
+
}
|
|
13
|
+
function f(e) {
|
|
14
|
+
if (e < 60) return `${e} мин`;
|
|
15
|
+
const i = Math.floor(e / 60), r = e % 60;
|
|
16
|
+
return r > 0 ? `${i} ч ${r} мин` : `${i} ч`;
|
|
17
|
+
}
|
|
18
|
+
function w({
|
|
19
|
+
title: e,
|
|
20
|
+
description: i,
|
|
21
|
+
viewsCount: r,
|
|
22
|
+
readingTimeMinutes: t,
|
|
23
|
+
author: n,
|
|
24
|
+
imageUrl: d,
|
|
25
|
+
imageAlt: y,
|
|
26
|
+
formattedDate: m,
|
|
27
|
+
view: x,
|
|
28
|
+
tags: o,
|
|
29
|
+
href: j
|
|
30
|
+
}) {
|
|
31
|
+
return x === "row" ? /* @__PURE__ */ s.jsxs("div", { className: p(a.content, a["content--row"]), children: [
|
|
32
|
+
/* @__PURE__ */ s.jsx("div", { className: a.rowIcon, "aria-hidden": !0, children: /* @__PURE__ */ s.jsx(I, { size: 24, strokeWidth: 2 }) }),
|
|
33
|
+
/* @__PURE__ */ s.jsxs("div", { className: a.rowBody, children: [
|
|
34
|
+
o && /* @__PURE__ */ s.jsx("div", { className: a.tagsSlotRow, onClick: (l) => l.stopPropagation(), children: o }),
|
|
35
|
+
/* @__PURE__ */ s.jsx(c, { variant: "h5", as: "h2", className: a.title, title: e, children: e }),
|
|
36
|
+
/* @__PURE__ */ s.jsxs("div", { className: a.rowMeta, children: [
|
|
37
|
+
/* @__PURE__ */ s.jsx(c, { variant: "caption", className: a.date, children: m }),
|
|
38
|
+
r != null && /* @__PURE__ */ s.jsxs("span", { className: a.views, title: "Просмотры", children: [
|
|
39
|
+
/* @__PURE__ */ s.jsx(g, { size: 14, strokeWidth: 2 }),
|
|
40
|
+
/* @__PURE__ */ s.jsx("span", { children: h(r) })
|
|
41
|
+
] })
|
|
42
|
+
] })
|
|
43
|
+
] })
|
|
44
|
+
] }) : x === "card" ? /* @__PURE__ */ s.jsxs("div", { className: p(a.content, a["content--card"], !d && a["content--card-no-image"]), children: [
|
|
45
|
+
/* @__PURE__ */ s.jsxs("div", { className: a.cardBody, children: [
|
|
46
|
+
n ? /* @__PURE__ */ s.jsxs("div", { className: a.author, onClick: (l) => l.stopPropagation(), children: [
|
|
47
|
+
n.avatarUrl ? /* @__PURE__ */ s.jsx(
|
|
48
|
+
"img",
|
|
49
|
+
{
|
|
50
|
+
src: n.avatarUrl,
|
|
51
|
+
alt: "",
|
|
52
|
+
className: a.authorAvatar,
|
|
53
|
+
width: 32,
|
|
54
|
+
height: 32
|
|
55
|
+
}
|
|
56
|
+
) : /* @__PURE__ */ s.jsx("div", { className: a.authorAvatarPlaceholder, "aria-hidden": !0, children: n.name.charAt(0).toUpperCase() }),
|
|
57
|
+
/* @__PURE__ */ s.jsx(c, { variant: "caption", className: a.authorName, children: n.name }),
|
|
58
|
+
/* @__PURE__ */ s.jsx(c, { variant: "caption", className: a.date, children: m })
|
|
59
|
+
] }) : /* @__PURE__ */ s.jsx(c, { variant: "caption", className: a.date, children: m }),
|
|
60
|
+
/* @__PURE__ */ s.jsx(c, { variant: "h5", as: "h2", className: a.title, title: e, children: e }),
|
|
61
|
+
i && /* @__PURE__ */ s.jsx(c, { variant: "caption", className: a.description, children: i }),
|
|
62
|
+
/* @__PURE__ */ s.jsxs("div", { className: a.cardFooter, children: [
|
|
63
|
+
o && /* @__PURE__ */ s.jsx("div", { className: a.tagsSlotCard, onClick: (l) => l.stopPropagation(), children: o }),
|
|
64
|
+
j ? /* @__PURE__ */ s.jsxs("a", { href: j, className: a.meta, children: [
|
|
65
|
+
t != null && /* @__PURE__ */ s.jsxs("span", { className: a.readingTime, title: "Время чтения", children: [
|
|
66
|
+
/* @__PURE__ */ s.jsx(v, { size: 14, className: a.clockIcon }),
|
|
67
|
+
/* @__PURE__ */ s.jsx("span", { children: f(t) })
|
|
68
|
+
] }),
|
|
69
|
+
r != null && /* @__PURE__ */ s.jsxs("span", { className: a.views, title: "Просмотры", children: [
|
|
70
|
+
/* @__PURE__ */ s.jsx(N, { size: 14, className: a.eyeIcon }),
|
|
71
|
+
/* @__PURE__ */ s.jsx("span", { children: h(r) })
|
|
72
|
+
] })
|
|
73
|
+
] }) : /* @__PURE__ */ s.jsxs("div", { className: a.meta, children: [
|
|
74
|
+
t != null && /* @__PURE__ */ s.jsxs("span", { className: a.readingTime, title: "Время чтения", children: [
|
|
75
|
+
/* @__PURE__ */ s.jsx(v, { size: 14, className: a.clockIcon }),
|
|
76
|
+
/* @__PURE__ */ s.jsx("span", { children: f(t) })
|
|
77
|
+
] }),
|
|
78
|
+
r != null && /* @__PURE__ */ s.jsxs("span", { className: a.views, title: "Просмотры", children: [
|
|
79
|
+
/* @__PURE__ */ s.jsx(N, { size: 14, className: a.eyeIcon }),
|
|
80
|
+
/* @__PURE__ */ s.jsx("span", { children: h(r) })
|
|
81
|
+
] })
|
|
82
|
+
] })
|
|
83
|
+
] })
|
|
84
|
+
] }),
|
|
85
|
+
d && /* @__PURE__ */ s.jsx("div", { className: a.previewWrap, children: /* @__PURE__ */ s.jsx(
|
|
86
|
+
"img",
|
|
87
|
+
{
|
|
88
|
+
src: d,
|
|
89
|
+
alt: y || e,
|
|
90
|
+
className: a.previewImage,
|
|
91
|
+
decoding: "async",
|
|
92
|
+
loading: "lazy"
|
|
93
|
+
}
|
|
94
|
+
) })
|
|
95
|
+
] }) : null;
|
|
96
|
+
}
|
|
97
|
+
w.displayName = "ArticlePreviewContent";
|
|
29
98
|
export {
|
|
30
|
-
|
|
31
|
-
v as cardBordered,
|
|
32
|
-
o as cardElevationLg,
|
|
33
|
-
i as cardElevationMd,
|
|
34
|
-
t as cardElevationNone,
|
|
35
|
-
s as cardElevationSm,
|
|
36
|
-
l as cardElevationXl,
|
|
37
|
-
c as cardSizeLg,
|
|
38
|
-
e as cardSizeMd,
|
|
39
|
-
r as cardSizeSm,
|
|
40
|
-
n as cardVariantAccent,
|
|
41
|
-
d as cardVariantDefault,
|
|
42
|
-
_ as cardVariantPaper,
|
|
43
|
-
m as default
|
|
99
|
+
w as ArticlePreviewContent
|
|
44
100
|
};
|
|
45
101
|
//# sourceMappingURL=index.esm60.js.map
|
package/dist/index.esm60.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm60.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"index.esm60.js","sources":["../src/components/content/ArticlePreview/components/ArticlePreviewContent/ArticlePreviewContent.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'classnames';\nimport { Typography } from '../../../../primitives/Typography';\nimport { EyeIcon, FileTextIcon } from '../../../../primitives/Icon/Icons';\nimport { AnimatedEyeIcon } from './AnimatedEyeIcon';\nimport type { ArticlePreviewAuthor } from '../../ArticlePreview';\nimport { AnimatedClockIcon } from './AnimatedClockIcon';\nimport styles from './ArticlePreviewContent.module.pcss';\n\nexport type ArticlePreviewContentView = 'card' | 'row';\n\nexport interface ArticlePreviewContentProps {\n title: string;\n description?: string;\n viewsCount?: number;\n readingTimeMinutes?: number;\n author?: ArticlePreviewAuthor;\n imageUrl?: string;\n imageAlt?: string;\n formattedDate: string;\n view: ArticlePreviewContentView;\n tags?: React.ReactNode;\n href?: string;\n}\n\nfunction formatViews(count: number): string {\n if (count >= 1_000_000) return `${(count / 1_000_000).toFixed(1)}M`;\n if (count >= 1_000) return `${(count / 1_000).toFixed(1)}K`;\n return String(count);\n}\n\nfunction formatReadingTime(minutes: number): string {\n if (minutes < 60) return `${minutes} мин`;\n const h = Math.floor(minutes / 60);\n const m = minutes % 60;\n return m > 0 ? `${h} ч ${m} мин` : `${h} ч`;\n}\n\nexport function ArticlePreviewContent({\n title,\n description,\n viewsCount,\n readingTimeMinutes,\n author,\n imageUrl,\n imageAlt,\n formattedDate,\n view,\n tags,\n href,\n}: ArticlePreviewContentProps) {\n if (view === 'row') {\n return (\n <div className={cn(styles.content, styles['content--row'])}>\n <div className={styles.rowIcon} aria-hidden>\n <FileTextIcon size={24} strokeWidth={2} />\n </div>\n <div className={styles.rowBody}>\n {tags && (\n <div className={styles.tagsSlotRow} onClick={(e) => e.stopPropagation()}>\n {tags}\n </div>\n )}\n <Typography variant=\"h5\" as=\"h2\" className={styles.title} title={title}>\n {title}\n </Typography>\n <div className={styles.rowMeta}>\n <Typography variant=\"caption\" className={styles.date}>\n {formattedDate}\n </Typography>\n {viewsCount != null && (\n <span className={styles.views} title=\"Просмотры\">\n <EyeIcon size={14} strokeWidth={2} />\n <span>{formatViews(viewsCount)}</span>\n </span>\n )}\n </div>\n </div>\n </div>\n );\n }\n\n if (view === 'card') {\n return (\n <div className={cn(styles.content, styles['content--card'], !imageUrl && styles['content--card-no-image'])}>\n <div className={styles.cardBody}>\n {author ? (\n <div className={styles.author} onClick={(e) => e.stopPropagation()}>\n {author.avatarUrl ? (\n <img\n src={author.avatarUrl}\n alt=\"\"\n className={styles.authorAvatar}\n width={32}\n height={32}\n />\n ) : (\n <div className={styles.authorAvatarPlaceholder} aria-hidden>\n {author.name.charAt(0).toUpperCase()}\n </div>\n )}\n <Typography variant=\"caption\" className={styles.authorName}>\n {author.name}\n </Typography>\n <Typography variant=\"caption\" className={styles.date}>\n {formattedDate}\n </Typography>\n </div>\n ) : (\n <Typography variant=\"caption\" className={styles.date}>\n {formattedDate}\n </Typography>\n )}\n <Typography variant=\"h5\" as=\"h2\" className={styles.title} title={title}>\n {title}\n </Typography>\n {description && (\n <Typography variant=\"caption\" className={styles.description}>\n {description}\n </Typography>\n )}\n <div className={styles.cardFooter}>\n {tags && (\n <div className={styles.tagsSlotCard} onClick={(e) => e.stopPropagation()}>\n {tags}\n </div>\n )}\n {href ? (\n <a href={href} className={styles.meta}>\n {readingTimeMinutes != null && (\n <span className={styles.readingTime} title=\"Время чтения\">\n <AnimatedClockIcon size={14} className={styles.clockIcon} />\n <span>{formatReadingTime(readingTimeMinutes)}</span>\n </span>\n )}\n {viewsCount != null && (\n <span className={styles.views} title=\"Просмотры\">\n <AnimatedEyeIcon size={14} className={styles.eyeIcon} />\n <span>{formatViews(viewsCount)}</span>\n </span>\n )}\n </a>\n ) : (\n <div className={styles.meta}>\n {readingTimeMinutes != null && (\n <span className={styles.readingTime} title=\"Время чтения\">\n <AnimatedClockIcon size={14} className={styles.clockIcon} />\n <span>{formatReadingTime(readingTimeMinutes)}</span>\n </span>\n )}\n {viewsCount != null && (\n <span className={styles.views} title=\"Просмотры\">\n <AnimatedEyeIcon size={14} className={styles.eyeIcon} />\n <span>{formatViews(viewsCount)}</span>\n </span>\n )}\n </div>\n )}\n </div>\n </div>\n {imageUrl && (\n <div className={styles.previewWrap}>\n <img\n src={imageUrl}\n alt={imageAlt || title}\n className={styles.previewImage}\n decoding=\"async\"\n loading=\"lazy\"\n />\n </div>\n )}\n </div>\n );\n }\n\n return null;\n}\n\nArticlePreviewContent.displayName = 'ArticlePreviewContent';\n"],"names":["formatViews","count","formatReadingTime","minutes","h","m","ArticlePreviewContent","title","description","viewsCount","readingTimeMinutes","author","imageUrl","imageAlt","formattedDate","view","tags","href","jsxs","cn","styles","jsx","FileTextIcon","e","Typography","EyeIcon","AnimatedClockIcon","An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
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
|
|
2
|
+
const a = "_island_1pzuz_1", n = "_island--size-sm_1pzuz_7", i = "_island--size-md_1pzuz_11", l = "_island--size-lg_1pzuz_15", s = "_island--variant-default_1pzuz_20", e = "_island--variant-paper_1pzuz_24", d = "_island--variant-accent_1pzuz_28", _ = "_island--elevation-none_1pzuz_33", t = "_island--elevation-sm_1pzuz_37", z = "_island--elevation-md_1pzuz_41", o = "_island--elevation-lg_1pzuz_45", p = "_island--elevation-xl_1pzuz_49", v = "_island--bordered_1pzuz_54", u = {
|
|
3
|
+
island: a,
|
|
4
|
+
"island--size-sm": "_island--size-sm_1pzuz_7",
|
|
5
|
+
islandSizeSm: n,
|
|
6
|
+
"island--size-md": "_island--size-md_1pzuz_11",
|
|
7
|
+
islandSizeMd: i,
|
|
8
|
+
"island--size-lg": "_island--size-lg_1pzuz_15",
|
|
9
|
+
islandSizeLg: l,
|
|
10
|
+
"island--variant-default": "_island--variant-default_1pzuz_20",
|
|
11
|
+
islandVariantDefault: s,
|
|
12
|
+
"island--variant-paper": "_island--variant-paper_1pzuz_24",
|
|
13
|
+
islandVariantPaper: e,
|
|
14
|
+
"island--variant-accent": "_island--variant-accent_1pzuz_28",
|
|
15
|
+
islandVariantAccent: d,
|
|
16
|
+
"island--elevation-none": "_island--elevation-none_1pzuz_33",
|
|
17
|
+
islandElevationNone: _,
|
|
18
|
+
"island--elevation-sm": "_island--elevation-sm_1pzuz_37",
|
|
19
|
+
islandElevationSm: t,
|
|
20
|
+
"island--elevation-md": "_island--elevation-md_1pzuz_41",
|
|
21
|
+
islandElevationMd: z,
|
|
22
|
+
"island--elevation-lg": "_island--elevation-lg_1pzuz_45",
|
|
23
|
+
islandElevationLg: o,
|
|
24
|
+
"island--elevation-xl": "_island--elevation-xl_1pzuz_49",
|
|
25
|
+
islandElevationXl: p,
|
|
26
|
+
"island--bordered": "_island--bordered_1pzuz_54",
|
|
27
|
+
islandBordered: v
|
|
26
28
|
};
|
|
27
29
|
export {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
i as
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
_ as spin
|
|
30
|
+
u as default,
|
|
31
|
+
a as island,
|
|
32
|
+
v as islandBordered,
|
|
33
|
+
o as islandElevationLg,
|
|
34
|
+
z as islandElevationMd,
|
|
35
|
+
_ as islandElevationNone,
|
|
36
|
+
t as islandElevationSm,
|
|
37
|
+
p as islandElevationXl,
|
|
38
|
+
l as islandSizeLg,
|
|
39
|
+
i as islandSizeMd,
|
|
40
|
+
n as islandSizeSm,
|
|
41
|
+
d as islandVariantAccent,
|
|
42
|
+
s as islandVariantDefault,
|
|
43
|
+
e as islandVariantPaper
|
|
43
44
|
};
|
|
44
45
|
//# sourceMappingURL=index.esm61.js.map
|
package/dist/index.esm61.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm61.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm61.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.esm62.js
CHANGED
|
@@ -1,33 +1,92 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
2
|
+
const w = [
|
|
3
|
+
[[0, 0], [1, 0], [0, 1]],
|
|
4
|
+
[[0, 0], [1, 0], [1, 1]],
|
|
5
|
+
[[0, 0], [0, 1], [1, 1]],
|
|
6
|
+
[[0, 1], [1, 0], [1, 1]]
|
|
7
|
+
], F = 9301, X = 49297, R = 233280, k = 4, M = 1, b = 8, H = 0.12, Y = 0.3, E = { circle: 0.2, dot: 0.35, triangle: 0.5, diamond: 0.62, cross: 0.75 }, z = 0.3, V = 0.3, j = 450, v = 320, Z = 300, q = 0.8, J = 0.17, T = 0.25, d = 0.25, K = 0.25, Q = 7e3, $ = 2, W = 5, g = 0.75;
|
|
8
|
+
function _(t, o, s) {
|
|
9
|
+
return Math.floor(s() * (o - t + 1)) + t;
|
|
10
|
+
}
|
|
11
|
+
function et(t) {
|
|
12
|
+
return () => (t = (t * F + X) % R, t / R);
|
|
13
|
+
}
|
|
14
|
+
function at(t, o, s, I, r, c = "right", e = 2) {
|
|
15
|
+
return tt(t, o, s, I, r, c, e);
|
|
16
|
+
}
|
|
17
|
+
function tt(t, o, s, I, r, c, e) {
|
|
18
|
+
if (t <= 0 || o <= 0) return [];
|
|
19
|
+
const N = Math.max(k, s), A = Math.max(M, Math.floor(o / N)), i = Math.min(b, Math.max(M, e));
|
|
20
|
+
let a = 1;
|
|
21
|
+
for (; a < A && o / (a + 1) >= N; )
|
|
22
|
+
a++;
|
|
23
|
+
let n = o / a;
|
|
24
|
+
n > t && (n = t, a = Math.max(M, Math.floor(o / n)));
|
|
25
|
+
const y = t / i, L = o / i;
|
|
26
|
+
if (n = Math.min(n, y, L), n <= 0) return [];
|
|
27
|
+
a = Math.max(M, Math.floor(o / n));
|
|
28
|
+
const C = Math.max(M, Math.floor(t / n)), x = () => r() > H, P = (l) => _(Math.max(M, Math.floor(l * Y)), l, r), f = c === "right" || c === "left", O = f ? a : C, u = f ? C : a, p = c === "right" || c === "bottom", S = [];
|
|
29
|
+
for (let l = 0; l < O; l++) {
|
|
30
|
+
if (!x()) continue;
|
|
31
|
+
const m = P(u), D = p ? u - m : 0, U = p ? u : m;
|
|
32
|
+
for (let h = D; h < U; h++) {
|
|
33
|
+
const B = f ? h : l, G = f ? l : h;
|
|
34
|
+
nt(S, B * n, G * n, n, n, I, r);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return S;
|
|
38
|
+
}
|
|
39
|
+
function ot(t) {
|
|
40
|
+
const o = t();
|
|
41
|
+
if (o < E.circle) return { shapeType: "circle" };
|
|
42
|
+
if (o < E.dot)
|
|
43
|
+
return { shapeType: "dot", dotScale: z + t() * V };
|
|
44
|
+
if (o < E.triangle)
|
|
45
|
+
return {
|
|
46
|
+
shapeType: "triangle",
|
|
47
|
+
triangleIndex: _(0, w.length - 1, t)
|
|
48
|
+
};
|
|
49
|
+
if (o < E.diamond) return { shapeType: "diamond" };
|
|
50
|
+
if (o < E.cross) return { shapeType: "cross" };
|
|
51
|
+
const s = _($, W, t);
|
|
52
|
+
return {
|
|
53
|
+
shapeType: "stripes",
|
|
54
|
+
stripeDirection: t() > 0.35 ? 1 : 0,
|
|
55
|
+
stripeCount: s,
|
|
56
|
+
stripeMask: Array.from({ length: s }, () => t() > 1 - g)
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function nt(t, o, s, I, r, c, e) {
|
|
60
|
+
const N = _(0, c - 1, e);
|
|
61
|
+
let A = _(0, c - 1, e);
|
|
62
|
+
for (; A === N; )
|
|
63
|
+
A = _(0, c - 1, e);
|
|
64
|
+
const i = ot(e), a = e();
|
|
65
|
+
let n;
|
|
66
|
+
a < T ? n = "breathe" : a < T + d ? n = "pulse" : a < T + d + K && (n = "opacity"), t.push({
|
|
67
|
+
x: o,
|
|
68
|
+
y: s,
|
|
69
|
+
width: I,
|
|
70
|
+
height: r,
|
|
71
|
+
bgColorIndex: N,
|
|
72
|
+
shapeColorIndex: A,
|
|
73
|
+
shapeType: i.shapeType,
|
|
74
|
+
triangleIndex: i.triangleIndex,
|
|
75
|
+
stripeDirection: i.stripeDirection,
|
|
76
|
+
stripeCount: i.stripeCount,
|
|
77
|
+
stripeMask: i.stripeMask,
|
|
78
|
+
animationDelay: Math.floor(e() * j),
|
|
79
|
+
animationDuration: v + Math.floor(e() * Z),
|
|
80
|
+
animationScaleFrom: q + e() * J,
|
|
81
|
+
dotScale: i.dotScale,
|
|
82
|
+
animationType: n,
|
|
83
|
+
animationPhase: n ? Math.floor(e() * Q) : void 0
|
|
84
|
+
});
|
|
85
|
+
}
|
|
20
86
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
r as wrapper,
|
|
26
|
-
_ as wrapperDisabled,
|
|
27
|
-
p as wrapperError,
|
|
28
|
-
s as wrapperFullWidth,
|
|
29
|
-
o as wrapperLg,
|
|
30
|
-
n as wrapperMd,
|
|
31
|
-
t as wrapperSm
|
|
87
|
+
w as TRIANGLE_TEMPLATES,
|
|
88
|
+
et as createSeededRandom,
|
|
89
|
+
at as generatePattern,
|
|
90
|
+
_ as getRandomInt
|
|
32
91
|
};
|
|
33
92
|
//# sourceMappingURL=index.esm62.js.map
|
package/dist/index.esm62.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm62.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"index.esm62.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 animationType?: 'breathe' | 'pulse' | 'opacity';\n animationPhase?: 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;\n// Animation\nconst ANIM_BREATHE_CHANCE = 0.25;\nconst ANIM_PULSE_CHANCE = 0.25;\nconst ANIM_OPACITY_CHANCE = 0.25;\nconst ANIM_PHASE_MAX = 7000;\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 const roll = rng();\n let animationType: 'breathe' | 'pulse' | 'opacity' | undefined;\n if (roll < ANIM_BREATHE_CHANCE) animationType = 'breathe';\n else if (roll < ANIM_BREATHE_CHANCE + ANIM_PULSE_CHANCE) animationType = 'pulse';\n else if (roll < ANIM_BREATHE_CHANCE + ANIM_PULSE_CHANCE + ANIM_OPACITY_CHANCE) animationType = 'opacity';\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 animationType,\n animationPhase: animationType ? Math.floor(rng() * ANIM_PHASE_MAX) : undefined,\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","ANIM_BREATHE_CHANCE","ANIM_PULSE_CHANCE","ANIM_OPACITY_CHANCE","ANIM_PHASE_MAX","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","animationType"],"mappings":";AAEO,MAAMA,IAAkC;AAAA,EAC7C,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAA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ChET,IAAO7C,IAAsBC,IAAoBC,MAAqBoD,IAAgB,YAE/FnB,EAAM,KAAK;AAAA,IACT,GAAAY;AAAA,IACA,GAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAAC;AAAA,IACA,cAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,WAAWC,EAAM;AAAA,IACjB,eAAeA,EAAM;AAAA,IACrB,iBAAiBA,EAAM;AAAA,IACvB,aAAaA,EAAM;AAAA,IACnB,YAAYA,EAAM;AAAA,IAClB,gBAAgB,KAAK,MAAM3C,EAAA,IAAQf,CAAc;AAAA,IACjD,mBAAmBC,IAAoB,KAAK,MAAMc,EAAA,IAAQb,CAAmB;AAAA,IAC7E,oBAAoBC,IAAsBY,EAAA,IAAQX;AAAA,IAClD,UAAUsD,EAAM;AAAA,IAChB,eAAAC;AAAA,IACA,gBAAgBA,IAAgB,KAAK,MAAM5C,EAAA,IAAQP,CAAc,IAAI;AAAA,EAAA,CACtE;AACH;"}
|
package/dist/index.esm63.js
CHANGED
|
@@ -1,21 +1,39 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const t = "
|
|
3
|
-
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
|
|
2
|
+
const t = "_root_mptdu_1", o = "_root--edge-top_mptdu_6", r = "_root--edge-bottom_mptdu_10", _ = "_root--edge-left_mptdu_14", p = "_root--edge-right_mptdu_18", e = "_content_mptdu_22", s = "_strip_mptdu_28", d = "_strip--top_mptdu_36", i = "_strip--bottom_mptdu_37", g = "_strip--left_mptdu_42", m = "_strip--right_mptdu_43", u = "_stripMirror_mptdu_48", n = {
|
|
3
|
+
root: t,
|
|
4
|
+
"root--edge-top": "_root--edge-top_mptdu_6",
|
|
5
|
+
rootEdgeTop: o,
|
|
6
|
+
"root--edge-bottom": "_root--edge-bottom_mptdu_10",
|
|
7
|
+
rootEdgeBottom: r,
|
|
8
|
+
"root--edge-left": "_root--edge-left_mptdu_14",
|
|
9
|
+
rootEdgeLeft: _,
|
|
10
|
+
"root--edge-right": "_root--edge-right_mptdu_18",
|
|
11
|
+
rootEdgeRight: p,
|
|
12
|
+
content: e,
|
|
13
|
+
strip: s,
|
|
14
|
+
"strip--top": "_strip--top_mptdu_36",
|
|
15
|
+
stripTop: d,
|
|
16
|
+
"strip--bottom": "_strip--bottom_mptdu_37",
|
|
17
|
+
stripBottom: i,
|
|
18
|
+
"strip--left": "_strip--left_mptdu_42",
|
|
19
|
+
stripLeft: g,
|
|
20
|
+
"strip--right": "_strip--right_mptdu_43",
|
|
21
|
+
stripRight: m,
|
|
22
|
+
stripMirror: u
|
|
12
23
|
};
|
|
13
24
|
export {
|
|
14
|
-
e as
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
25
|
+
e as content,
|
|
26
|
+
n as default,
|
|
27
|
+
t as root,
|
|
28
|
+
r as rootEdgeBottom,
|
|
29
|
+
_ as rootEdgeLeft,
|
|
30
|
+
p as rootEdgeRight,
|
|
31
|
+
o as rootEdgeTop,
|
|
32
|
+
s as strip,
|
|
33
|
+
i as stripBottom,
|
|
34
|
+
g as stripLeft,
|
|
35
|
+
u as stripMirror,
|
|
36
|
+
m as stripRight,
|
|
37
|
+
d as stripTop
|
|
20
38
|
};
|
|
21
39
|
//# sourceMappingURL=index.esm63.js.map
|
package/dist/index.esm63.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm63.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm63.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
|