@atme-lab/ui-kit 0.1.26 → 0.1.27
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/primitives/Callout/Callout.d.ts +1 -0
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs12.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.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.cjs24.js.map +1 -1
- package/dist/index.cjs25.js +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.cjs30.js +1 -1
- package/dist/index.cjs31.js +1 -1
- package/dist/index.cjs32.js +1 -1
- package/dist/index.cjs389.js +1 -1
- package/dist/index.cjs394.js +1 -1
- package/dist/index.cjs395.js +1 -1
- package/dist/index.cjs415.js +6 -1
- package/dist/index.cjs415.js.map +1 -1
- package/dist/index.cjs416.js +6 -1
- package/dist/index.cjs416.js.map +1 -1
- package/dist/index.cjs417.js +1 -1
- package/dist/index.cjs417.js.map +1 -1
- package/dist/index.cjs418.js +1 -1
- package/dist/index.cjs418.js.map +1 -1
- package/dist/index.cjs419.js +1 -6
- package/dist/index.cjs419.js.map +1 -1
- package/dist/index.cjs420.js +1 -6
- package/dist/index.cjs420.js.map +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.cjs427.js +1 -1
- package/dist/index.cjs428.js +1 -1
- package/dist/index.cjs429.js +1 -1
- package/dist/index.cjs430.js +1 -1
- package/dist/index.cjs432.js +1 -1
- package/dist/index.cjs434.js +1 -1
- package/dist/index.cjs437.js +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 +1 -1
- package/dist/index.cjs449.js.map +1 -1
- package/dist/index.cjs45.js +1 -1
- package/dist/index.cjs450.js +1 -1
- package/dist/index.cjs450.js.map +1 -1
- package/dist/index.cjs451.js +1 -1
- package/dist/index.cjs451.js.map +1 -1
- package/dist/index.cjs452.js +1 -1
- package/dist/index.cjs452.js.map +1 -1
- package/dist/index.cjs453.js +1 -1
- package/dist/index.cjs453.js.map +1 -1
- package/dist/index.cjs454.js +1 -1
- package/dist/index.cjs454.js.map +1 -1
- package/dist/index.cjs455.js +1 -1
- package/dist/index.cjs455.js.map +1 -1
- package/dist/index.cjs456.js +1 -1
- package/dist/index.cjs456.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.cjs47.js.map +1 -1
- package/dist/index.cjs48.js +1 -1
- package/dist/index.cjs50.js +1 -1
- package/dist/index.cjs51.js +1 -1
- package/dist/index.cjs51.js.map +1 -1
- package/dist/index.cjs52.js +1 -1
- package/dist/index.cjs53.js +1 -1
- package/dist/index.cjs53.js.map +1 -1
- package/dist/index.cjs54.js +1 -1
- package/dist/index.cjs54.js.map +1 -1
- package/dist/index.cjs55.js +1 -1
- package/dist/index.cjs55.js.map +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.cjs58.js.map +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.cjs61.js +1 -1
- package/dist/index.cjs61.js.map +1 -1
- package/dist/index.cjs62.js +1 -1
- package/dist/index.cjs63.js +1 -1
- package/dist/index.cjs64.js +1 -1
- package/dist/index.cjs65.js +1 -1
- package/dist/index.cjs66.js +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.cjs69.js +1 -1
- package/dist/index.cjs69.js.map +1 -1
- package/dist/index.cjs70.js +1 -1
- package/dist/index.cjs70.js.map +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.cjs74.js +1 -1
- package/dist/index.cjs74.js.map +1 -1
- package/dist/index.cjs76.js +1 -1
- package/dist/index.cjs77.js +1 -1
- package/dist/index.cjs77.js.map +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.esm12.js +3 -3
- 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.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 +15 -14
- package/dist/index.esm24.js.map +1 -1
- package/dist/index.esm25.js +1 -1
- package/dist/index.esm26.js +2 -2
- package/dist/index.esm27.js +1 -1
- package/dist/index.esm28.js +1 -1
- package/dist/index.esm30.js +2 -2
- package/dist/index.esm31.js +1 -1
- package/dist/index.esm32.js +3 -3
- package/dist/index.esm389.js +1 -1
- package/dist/index.esm394.js +1 -1
- package/dist/index.esm395.js +1 -1
- package/dist/index.esm415.js +9 -5
- package/dist/index.esm415.js.map +1 -1
- package/dist/index.esm416.js +18 -5
- package/dist/index.esm416.js.map +1 -1
- package/dist/index.esm417.js +8 -2
- package/dist/index.esm417.js.map +1 -1
- package/dist/index.esm418.js +5 -6
- package/dist/index.esm418.js.map +1 -1
- package/dist/index.esm419.js +5 -15
- package/dist/index.esm419.js.map +1 -1
- package/dist/index.esm420.js +5 -17
- package/dist/index.esm420.js.map +1 -1
- package/dist/index.esm424.js +1 -1
- package/dist/index.esm425.js +2 -2
- package/dist/index.esm426.js +3 -3
- package/dist/index.esm427.js +3 -3
- package/dist/index.esm428.js +1 -1
- package/dist/index.esm429.js +2 -2
- package/dist/index.esm430.js +1 -1
- package/dist/index.esm432.js +1 -1
- package/dist/index.esm434.js +7 -7
- package/dist/index.esm437.js +1 -1
- package/dist/index.esm442.js +5 -18
- package/dist/index.esm442.js.map +1 -1
- package/dist/index.esm443.js +9 -16
- package/dist/index.esm443.js.map +1 -1
- package/dist/index.esm444.js +6 -11
- package/dist/index.esm444.js.map +1 -1
- package/dist/index.esm445.js +3 -4
- package/dist/index.esm445.js.map +1 -1
- package/dist/index.esm446.js +84 -3
- package/dist/index.esm446.js.map +1 -1
- package/dist/index.esm447.js +34 -27
- package/dist/index.esm447.js.map +1 -1
- package/dist/index.esm448.js +27 -30
- package/dist/index.esm448.js.map +1 -1
- package/dist/index.esm449.js +13 -20
- package/dist/index.esm449.js.map +1 -1
- package/dist/index.esm45.js +16 -39
- package/dist/index.esm45.js.map +1 -1
- package/dist/index.esm450.js +16 -3
- package/dist/index.esm450.js.map +1 -1
- package/dist/index.esm451.js +11 -5
- package/dist/index.esm451.js.map +1 -1
- package/dist/index.esm452.js +4 -9
- package/dist/index.esm452.js.map +1 -1
- package/dist/index.esm453.js +3 -6
- package/dist/index.esm453.js.map +1 -1
- package/dist/index.esm454.js +33 -3
- package/dist/index.esm454.js.map +1 -1
- package/dist/index.esm455.js +26 -85
- package/dist/index.esm455.js.map +1 -1
- package/dist/index.esm456.js +3 -37
- package/dist/index.esm456.js.map +1 -1
- package/dist/index.esm46.js +16 -17
- package/dist/index.esm46.js.map +1 -1
- package/dist/index.esm47.js +7 -16
- package/dist/index.esm47.js.map +1 -1
- package/dist/index.esm48.js +39 -40
- package/dist/index.esm48.js.map +1 -1
- package/dist/index.esm50.js +8 -32
- package/dist/index.esm50.js.map +1 -1
- package/dist/index.esm51.js +28 -9
- package/dist/index.esm51.js.map +1 -1
- package/dist/index.esm52.js +58 -6
- package/dist/index.esm52.js.map +1 -1
- package/dist/index.esm53.js +41 -9
- package/dist/index.esm53.js.map +1 -1
- package/dist/index.esm54.js +11 -7
- package/dist/index.esm54.js.map +1 -1
- package/dist/index.esm55.js +30 -9
- package/dist/index.esm55.js.map +1 -1
- package/dist/index.esm56.js +37 -28
- package/dist/index.esm56.js.map +1 -1
- package/dist/index.esm57.js +64 -10
- package/dist/index.esm57.js.map +1 -1
- package/dist/index.esm58.js +9 -30
- package/dist/index.esm58.js.map +1 -1
- package/dist/index.esm59.js +88 -9
- package/dist/index.esm59.js.map +1 -1
- package/dist/index.esm60.js +34 -19
- package/dist/index.esm60.js.map +1 -1
- package/dist/index.esm61.js +127 -47
- package/dist/index.esm61.js.map +1 -1
- package/dist/index.esm62.js +28 -10
- package/dist/index.esm62.js.map +1 -1
- package/dist/index.esm63.js +42 -5
- package/dist/index.esm63.js.map +1 -1
- package/dist/index.esm64.js +7 -3
- package/dist/index.esm64.js.map +1 -1
- package/dist/index.esm65.js +47 -65
- package/dist/index.esm65.js.map +1 -1
- package/dist/index.esm66.js +10 -36
- package/dist/index.esm66.js.map +1 -1
- package/dist/index.esm67.js +5 -88
- package/dist/index.esm67.js.map +1 -1
- package/dist/index.esm68.js +6 -34
- package/dist/index.esm68.js.map +1 -1
- package/dist/index.esm69.js +8 -126
- package/dist/index.esm69.js.map +1 -1
- package/dist/index.esm70.js +7 -59
- package/dist/index.esm70.js.map +1 -1
- package/dist/index.esm71.js +27 -40
- package/dist/index.esm71.js.map +1 -1
- package/dist/index.esm72.js +32 -6
- package/dist/index.esm72.js.map +1 -1
- package/dist/index.esm73.js +5 -15
- package/dist/index.esm73.js.map +1 -1
- package/dist/index.esm74.js +20 -109
- package/dist/index.esm74.js.map +1 -1
- package/dist/index.esm76.js +15 -28
- package/dist/index.esm76.js.map +1 -1
- package/dist/index.esm77.js +109 -30
- package/dist/index.esm77.js.map +1 -1
- package/dist/index.esm9.js +1 -1
- package/package.json +1 -1
package/dist/index.esm67.js
CHANGED
|
@@ -1,92 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
}
|
|
2
|
+
const s = "_grid_16nbv_1", t = {
|
|
3
|
+
grid: s
|
|
4
|
+
};
|
|
86
5
|
export {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
at as generatePattern,
|
|
90
|
-
_ as getRandomInt
|
|
6
|
+
t as default,
|
|
7
|
+
s as grid
|
|
91
8
|
};
|
|
92
9
|
//# 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 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,CAAC;AAAA,EACvB,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,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACzB,GA+BMC,IAAiB,MACjBC,IAAgB,OAChBC,IAAc,QAEdC,IAAe,GACfC,IAAkB,GAClBC,IAAkB,GAClBC,IAAmB,MACnBC,IAAuB,KAEvBC,IAAa,EAAE,QAAQ,KAAK,KAAK,MAAM,UAAU,KAAK,SAAS,MAAM,OAAO,KAAA,GAC5EC,IAAgB,KAChBC,IAAkB,KAClBC,IAAiB,KACjBC,IAAoB,KACpBC,IAAsB,KACtBC,IAAsB,KACtBC,IAAwB,MAExBC,IAAsB,MACtBC,IAAoB,MACpBC,IAAsB,MACtBC,IAAiB,KACjBC,IAAmB,GACnBC,IAAmB,GACnBC,IAAwB;AAEvB,SAASC,EAAaC,GAAaC,GAAaC,GAA2B;AAChF,SAAO,KAAK,MAAMA,EAAA,KAASD,IAAMD,IAAM,EAAE,IAAIA;AAC/C;AAEO,SAASG,GAAmBC,GAA4B;AAC7D,SAAO,OACLA,KAAQA,IAAO5B,IAAiBC,KAAiBC,GAC1C0B,IAAO1B;AAElB;AAIO,SAAS2B,GACdC,GACAC,GACAC,GACAC,GACAP,GACAQ,IAAoB,SACpBC,IAAuB,GACT;AACd,SAAOC,GAAoBN,GAAYC,GAAaC,GAASC,GAAYP,GAAKQ,GAAMC,CAAY;AAClG;AAEA,SAASC,GACPN,GACAC,GACAC,GACAC,GACAP,GACAQ,GACAC,GACc;AACd,MAAIL,KAAc,KAAKC,KAAe,UAAU,CAAA;AAEhD,QAAMM,IAAc,KAAK,IAAIlC,GAAc6B,CAAO,GAC5CM,IAAU,KAAK,IAAIlC,GAAiB,KAAK,MAAM2B,IAAcM,CAAW,CAAC,GACzEE,IAAW,KAAK,IAAIlC,GAAiB,KAAK,IAAID,GAAiB+B,CAAY,CAAC;AAElF,MAAIK,IAAW;AACf,SAAOA,IAAWF,KAAWP,KAAeS,IAAW,MAAMH;AAC3D,IAAAG;AAGF,MAAIC,IAAWV,IAAcS;AAC7B,EAAIC,IAAWX,MACbW,IAAWX,GACXU,IAAW,KAAK,IAAIpC,GAAiB,KAAK,MAAM2B,IAAcU,CAAQ,CAAC;AAGzE,QAAMC,IAAiBZ,IAAaS,GAC9BI,IAAkBZ,IAAcQ;AAEtC,MADAE,IAAW,KAAK,IAAIA,GAAUC,GAAgBC,CAAe,GACzDF,KAAY,EAAG,QAAO,CAAA;AAE1B,EAAAD,IAAW,KAAK,IAAIpC,GAAiB,KAAK,MAAM2B,IAAcU,CAAQ,CAAC;AACvE,QAAMG,IAAW,KAAK,IAAIxC,GAAiB,KAAK,MAAM0B,IAAaW,CAAQ,CAAC,GAEtEI,IAAa,MAAMnB,EAAA,IAAQpB,GAC3BwC,IAAY,CAACrB,MACjBF,EAAa,KAAK,IAAInB,GAAiB,KAAK,MAAMqB,IAAMlB,CAAoB,CAAC,GAAGkB,GAAKC,CAAG,GAEpFqB,IAAkBb,MAAS,WAAWA,MAAS,QAC/Cc,IAAeD,IAAkBP,IAAWI,GAC5CK,IAAiBF,IAAkBH,IAAWJ,GAC9CU,IAAYhB,MAAS,WAAWA,MAAS,UAEzCiB,IAAsB,CAAA;AAE5B,WAASC,IAAI,GAAGA,IAAIJ,GAAcI,KAAK;AACrC,QAAI,CAACP,IAAc;AAEnB,UAAMQ,IAAQP,EAAUG,CAAc,GAChCK,IAAQJ,IAAYD,IAAiBI,IAAQ,GAC7CE,IAAML,IAAYD,IAAiBI;AAEzC,aAASG,IAAIF,GAAOE,IAAID,GAAKC,KAAK;AAChC,YAAMC,IAAMV,IAAkBS,IAAIJ,GAC5BM,IAAMX,IAAkBK,IAAII;AAClC,MAAAG,GAASR,GAAOM,IAAMhB,GAAUiB,IAAMjB,GAAUA,GAAUA,GAAUR,GAAYP,CAAG;AAAA,IACrF;AAAA,EACF;AAEA,SAAOyB;AACT;AAEA,SAASS,GAAclC,GAOrB;AACA,QAAMmC,IAAOnC,EAAA;AAEb,MAAImC,IAAOrD,EAAW,OAAQ,QAAO,EAAE,WAAW,SAAA;AAClD,MAAIqD,IAAOrD,EAAW;AACpB,WAAO,EAAE,WAAW,OAAO,UAAUC,IAAgBiB,EAAA,IAAQhB,EAAA;AAE/D,MAAImD,IAAOrD,EAAW;AACpB,WAAO;AAAA,MACL,WAAW;AAAA,MACX,eAAee,EAAa,GAAGxB,EAAmB,SAAS,GAAG2B,CAAG;AAAA,IAAA;AAGrE,MAAImC,IAAOrD,EAAW,QAAS,QAAO,EAAE,WAAW,UAAA;AACnD,MAAIqD,IAAOrD,EAAW,MAAO,QAAO,EAAE,WAAW,QAAA;AAEjD,QAAMsD,IAAcvC,EAAaH,GAAkBC,GAAkBK,CAAG;AACxE,SAAO;AAAA,IACL,WAAW;AAAA,IACX,iBAAiBA,EAAA,IAAQ,OAAO,IAAI;AAAA,IACpC,aAAAoC;AAAA,IACA,YAAY,MAAM,KAAK,EAAE,QAAQA,EAAA,GAAe,MAAMpC,MAAQ,IAAIJ,CAAqB;AAAA,EAAA;AAE3F;AAEA,SAASqC,GACPR,GACAY,GACAC,GACAC,GACAC,GACAjC,GACAP,GACM;AACN,QAAMyC,IAAe5C,EAAa,GAAGU,IAAa,GAAGP,CAAG;AACxD,MAAI0C,IAAkB7C,EAAa,GAAGU,IAAa,GAAGP,CAAG;AACzD,SAAO0C,MAAoBD;AACzB,IAAAC,IAAkB7C,EAAa,GAAGU,IAAa,GAAGP,CAAG;AAGvD,QAAM2C,IAAQT,GAAclC,CAAG,GAEzBmC,IAAOnC,EAAA;AACb,MAAI4C;AACJ,EAAIT,IAAO7C,IAAqBsD,IAAgB,YACvCT,IAAO7C,IAAsBC,IAAmBqD,IAAgB,UAChET,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;"}
|
|
1
|
+
{"version":3,"file":"index.esm67.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/index.esm68.js
CHANGED
|
@@ -1,39 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const t = "
|
|
3
|
-
|
|
4
|
-
|
|
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
|
|
2
|
+
const t = "_tagGroup_m7mju_1", a = "_tagInteractive_m7mju_8", e = {
|
|
3
|
+
tagGroup: t,
|
|
4
|
+
tagInteractive: a
|
|
23
5
|
};
|
|
24
6
|
export {
|
|
25
|
-
e as
|
|
26
|
-
|
|
27
|
-
|
|
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
|
|
7
|
+
e as default,
|
|
8
|
+
t as tagGroup,
|
|
9
|
+
a as tagInteractive
|
|
38
10
|
};
|
|
39
11
|
//# 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":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
package/dist/index.esm69.js
CHANGED
|
@@ -1,131 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { j as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import { j as e } from "./index.esm38.js";
|
|
3
|
+
import o from "react";
|
|
4
|
+
import { TagGroupItemButton as m } from "./index.esm389.js";
|
|
5
|
+
import { isTagGroupItem as t } from "./index.esm82.js";
|
|
6
|
+
import { Tag as n } from "./index.esm11.js";
|
|
7
|
+
function p({ tag: r, baseTagProps: i }) {
|
|
8
|
+
return t(r) ? r.href ? /* @__PURE__ */ e.jsx(n, { ...i, href: r.href, children: r.label }) : r.onClick ? /* @__PURE__ */ e.jsx(m, { tag: r, baseTagProps: i }) : /* @__PURE__ */ e.jsx(n, { ...i, children: r.label }) : typeof r == "object" && o.isValidElement(r) ? /* @__PURE__ */ e.jsx(e.Fragment, { children: r }) : /* @__PURE__ */ e.jsx(n, { ...i, children: r });
|
|
8
9
|
}
|
|
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";
|
|
128
10
|
export {
|
|
129
|
-
|
|
11
|
+
p as TagGroupItemView
|
|
130
12
|
};
|
|
131
13
|
//# sourceMappingURL=index.esm69.js.map
|
package/dist/index.esm69.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm69.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index.esm69.js","sources":["../src/components/primitives/TagGroup/components/TagGroupItemView.tsx"],"sourcesContent":["import React from \"react\";\nimport { Tag } from \"../../Tag\";\nimport { TagGroupItemButton } from \"./TagGroupItemButton\";\nimport { isTagGroupItem, type TagGroupTag, type TagGroupBaseTagProps } from \"../types\";\n\nexport interface TagGroupItemViewProps {\n tag: TagGroupTag;\n baseTagProps: TagGroupBaseTagProps;\n}\n\nexport function TagGroupItemView({ tag, baseTagProps }: TagGroupItemViewProps) {\n if (isTagGroupItem(tag)) {\n if (tag.href) {\n return (\n <Tag {...baseTagProps} href={tag.href}>\n {tag.label}\n </Tag>\n );\n }\n if (tag.onClick) {\n return <TagGroupItemButton tag={tag} baseTagProps={baseTagProps} />;\n }\n return (\n <Tag {...baseTagProps}>\n {tag.label}\n </Tag>\n );\n }\n\n if (typeof tag === \"object\" && React.isValidElement(tag)) {\n return <>{tag}</>;\n }\n\n return <Tag {...baseTagProps}>{tag}</Tag>;\n}\n"],"names":["TagGroupItemView","tag","baseTagProps","isTagGroupItem","jsx","Tag","TagGroupItemButton","React"],"mappings":";;;;;;AAUO,SAASA,EAAiB,EAAE,KAAAC,GAAK,cAAAC,KAAuC;AAC7E,SAAIC,EAAeF,CAAG,IAChBA,EAAI,OAEJG,gBAAAA,MAACC,KAAK,GAAGH,GAAc,MAAMD,EAAI,MAC9B,YAAI,MAAA,CACP,IAGAA,EAAI,UACCG,gBAAAA,EAAAA,IAACE,GAAA,EAAmB,KAAAL,GAAU,cAAAC,EAAA,CAA4B,IAGjEE,gBAAAA,EAAAA,IAACC,GAAA,EAAK,GAAGH,GACN,YAAI,OACP,IAIA,OAAOD,KAAQ,YAAYM,EAAM,eAAeN,CAAG,wCAC3C,UAAAA,EAAA,CAAI,IAGTG,gBAAAA,EAAAA,IAACC,GAAA,EAAK,GAAGH,GAAe,UAAAD,GAAI;AACrC;"}
|
package/dist/index.esm70.js
CHANGED
|
@@ -1,63 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
|
40
|
-
};
|
|
2
|
+
import { j as e } from "./index.esm38.js";
|
|
3
|
+
import t from "./index.esm415.js";
|
|
4
|
+
const p = ({
|
|
5
|
+
decorative: o = !0,
|
|
6
|
+
...r
|
|
7
|
+
}) => /* @__PURE__ */ e.jsx(t, { "aria-hidden": o, ...r });
|
|
41
8
|
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
|
|
9
|
+
p as ChevronUpIcon
|
|
62
10
|
};
|
|
63
11
|
//# sourceMappingURL=index.esm70.js.map
|
package/dist/index.esm70.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm70.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm70.js","sources":["../src/components/primitives/Icon/Icons/lucide/ChevronUpIcon.tsx"],"sourcesContent":["import React from \"react\";\nimport { ChevronUp, type LucideProps } from \"lucide-react\";\n\nexport const ChevronUpIcon: React.FC<LucideProps & { decorative?: boolean }> = ({\n decorative = true,\n ...props\n}) => <ChevronUp aria-hidden={decorative} {...props} />;\n"],"names":["ChevronUpIcon","decorative","props","jsx","ChevronUp"],"mappings":";;;AAGO,MAAMA,IAAkE,CAAC;AAAA,EAC9E,YAAAC,IAAa;AAAA,EACb,GAAGC;AACL,MAAMC,gBAAAA,EAAAA,IAACC,GAAA,EAAU,eAAaH,GAAa,GAAGC,EAAA,CAAO;"}
|
package/dist/index.esm71.js
CHANGED
|
@@ -1,47 +1,34 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const e = "
|
|
2
|
+
const e = "_root_1k5u2_1", t = "_title_1k5u2_7", l = "_list_1k5u2_13", _ = "_item_1k5u2_20", i = "_item--level3_1k5u2_25", k = "_link_1k5u2_25", v = "_item--level4_1k5u2_29", n = "_item--level5_1k5u2_33", m = "_item--level6_1k5u2_37", o = "_link--active_1k5u2_64", s = "_linkText_1k5u2_64", c = {
|
|
3
3
|
root: e,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"segment--warning": "_segment--warning_1lfx3_62",
|
|
20
|
-
segmentWarning: c,
|
|
21
|
-
"segment--active": "_segment--active_1lfx3_66",
|
|
22
|
-
segmentActive: a,
|
|
23
|
-
"segment--sequential": "_segment--sequential_1lfx3_66",
|
|
24
|
-
segmentSequential: f,
|
|
25
|
-
"segment-reveal": "_segment-reveal_1lfx3_1",
|
|
26
|
-
segmentReveal: x,
|
|
27
|
-
valueLabel: i
|
|
4
|
+
title: t,
|
|
5
|
+
list: l,
|
|
6
|
+
item: _,
|
|
7
|
+
"item--level3": "_item--level3_1k5u2_25",
|
|
8
|
+
itemLevel3: i,
|
|
9
|
+
link: k,
|
|
10
|
+
"item--level4": "_item--level4_1k5u2_29",
|
|
11
|
+
itemLevel4: v,
|
|
12
|
+
"item--level5": "_item--level5_1k5u2_33",
|
|
13
|
+
itemLevel5: n,
|
|
14
|
+
"item--level6": "_item--level6_1k5u2_37",
|
|
15
|
+
itemLevel6: m,
|
|
16
|
+
"link--active": "_link--active_1k5u2_64",
|
|
17
|
+
linkActive: o,
|
|
18
|
+
linkText: s
|
|
28
19
|
};
|
|
29
20
|
export {
|
|
30
|
-
|
|
21
|
+
c as default,
|
|
22
|
+
_ as item,
|
|
23
|
+
i as itemLevel3,
|
|
24
|
+
v as itemLevel4,
|
|
25
|
+
n as itemLevel5,
|
|
26
|
+
m as itemLevel6,
|
|
27
|
+
k as link,
|
|
28
|
+
o as linkActive,
|
|
29
|
+
s as linkText,
|
|
30
|
+
l as list,
|
|
31
31
|
e as root,
|
|
32
|
-
|
|
33
|
-
s as rootMd,
|
|
34
|
-
t as rootSm,
|
|
35
|
-
m as segment,
|
|
36
|
-
a as segmentActive,
|
|
37
|
-
g as segmentPrimary,
|
|
38
|
-
x as segmentReveal,
|
|
39
|
-
l as segmentSecondary,
|
|
40
|
-
f as segmentSequential,
|
|
41
|
-
r as segmentSuccess,
|
|
42
|
-
c as segmentWarning,
|
|
43
|
-
o as segments,
|
|
44
|
-
_ as track,
|
|
45
|
-
i as valueLabel
|
|
32
|
+
t as title
|
|
46
33
|
};
|
|
47
34
|
//# sourceMappingURL=index.esm71.js.map
|
package/dist/index.esm71.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm71.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm71.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.esm72.js
CHANGED
|
@@ -1,11 +1,37 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
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
|
|
5
21
|
};
|
|
6
22
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
e as
|
|
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
|
|
10
36
|
};
|
|
11
37
|
//# sourceMappingURL=index.esm72.js.map
|
package/dist/index.esm72.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm72.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm72.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.esm73.js
CHANGED
|
@@ -1,20 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
"
|
|
5
|
-
rootInteractive: t,
|
|
6
|
-
cardLink: r,
|
|
7
|
-
"root--card": "_root--card_iwlyv_41",
|
|
8
|
-
rootCard: _,
|
|
9
|
-
"root--row": "_root--row_iwlyv_50",
|
|
10
|
-
rootRow: i
|
|
2
|
+
const c = "_icon_1se7w_1", o = {
|
|
3
|
+
icon: c,
|
|
4
|
+
"icon--custom": "_icon--custom_1se7w_9"
|
|
11
5
|
};
|
|
12
6
|
export {
|
|
13
|
-
|
|
14
|
-
c as
|
|
15
|
-
o as root,
|
|
16
|
-
_ as rootCard,
|
|
17
|
-
t as rootInteractive,
|
|
18
|
-
i as rootRow
|
|
7
|
+
o as default,
|
|
8
|
+
c as icon
|
|
19
9
|
};
|
|
20
10
|
//# sourceMappingURL=index.esm73.js.map
|
package/dist/index.esm73.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm73.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm73.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|