@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.
Files changed (266) hide show
  1. package/dist/components/primitives/Callout/Callout.d.ts +1 -0
  2. package/dist/index.cjs10.js +1 -1
  3. package/dist/index.cjs11.js +1 -1
  4. package/dist/index.cjs12.js +1 -1
  5. package/dist/index.cjs13.js +1 -1
  6. package/dist/index.cjs14.js +1 -1
  7. package/dist/index.cjs15.js +1 -1
  8. package/dist/index.cjs16.js +1 -1
  9. package/dist/index.cjs18.js +1 -1
  10. package/dist/index.cjs19.js +1 -1
  11. package/dist/index.cjs20.js +1 -1
  12. package/dist/index.cjs21.js +1 -1
  13. package/dist/index.cjs22.js +1 -1
  14. package/dist/index.cjs23.js +1 -1
  15. package/dist/index.cjs24.js +1 -1
  16. package/dist/index.cjs24.js.map +1 -1
  17. package/dist/index.cjs25.js +1 -1
  18. package/dist/index.cjs26.js +1 -1
  19. package/dist/index.cjs27.js +1 -1
  20. package/dist/index.cjs28.js +1 -1
  21. package/dist/index.cjs30.js +1 -1
  22. package/dist/index.cjs31.js +1 -1
  23. package/dist/index.cjs32.js +1 -1
  24. package/dist/index.cjs389.js +1 -1
  25. package/dist/index.cjs394.js +1 -1
  26. package/dist/index.cjs395.js +1 -1
  27. package/dist/index.cjs415.js +6 -1
  28. package/dist/index.cjs415.js.map +1 -1
  29. package/dist/index.cjs416.js +6 -1
  30. package/dist/index.cjs416.js.map +1 -1
  31. package/dist/index.cjs417.js +1 -1
  32. package/dist/index.cjs417.js.map +1 -1
  33. package/dist/index.cjs418.js +1 -1
  34. package/dist/index.cjs418.js.map +1 -1
  35. package/dist/index.cjs419.js +1 -6
  36. package/dist/index.cjs419.js.map +1 -1
  37. package/dist/index.cjs420.js +1 -6
  38. package/dist/index.cjs420.js.map +1 -1
  39. package/dist/index.cjs424.js +1 -1
  40. package/dist/index.cjs425.js +1 -1
  41. package/dist/index.cjs426.js +1 -1
  42. package/dist/index.cjs427.js +1 -1
  43. package/dist/index.cjs428.js +1 -1
  44. package/dist/index.cjs429.js +1 -1
  45. package/dist/index.cjs430.js +1 -1
  46. package/dist/index.cjs432.js +1 -1
  47. package/dist/index.cjs434.js +1 -1
  48. package/dist/index.cjs437.js +1 -1
  49. package/dist/index.cjs442.js +1 -1
  50. package/dist/index.cjs442.js.map +1 -1
  51. package/dist/index.cjs443.js +1 -1
  52. package/dist/index.cjs443.js.map +1 -1
  53. package/dist/index.cjs444.js +1 -1
  54. package/dist/index.cjs444.js.map +1 -1
  55. package/dist/index.cjs445.js +1 -1
  56. package/dist/index.cjs445.js.map +1 -1
  57. package/dist/index.cjs446.js +1 -1
  58. package/dist/index.cjs446.js.map +1 -1
  59. package/dist/index.cjs447.js +1 -1
  60. package/dist/index.cjs447.js.map +1 -1
  61. package/dist/index.cjs448.js +1 -1
  62. package/dist/index.cjs448.js.map +1 -1
  63. package/dist/index.cjs449.js +1 -1
  64. package/dist/index.cjs449.js.map +1 -1
  65. package/dist/index.cjs45.js +1 -1
  66. package/dist/index.cjs450.js +1 -1
  67. package/dist/index.cjs450.js.map +1 -1
  68. package/dist/index.cjs451.js +1 -1
  69. package/dist/index.cjs451.js.map +1 -1
  70. package/dist/index.cjs452.js +1 -1
  71. package/dist/index.cjs452.js.map +1 -1
  72. package/dist/index.cjs453.js +1 -1
  73. package/dist/index.cjs453.js.map +1 -1
  74. package/dist/index.cjs454.js +1 -1
  75. package/dist/index.cjs454.js.map +1 -1
  76. package/dist/index.cjs455.js +1 -1
  77. package/dist/index.cjs455.js.map +1 -1
  78. package/dist/index.cjs456.js +1 -1
  79. package/dist/index.cjs456.js.map +1 -1
  80. package/dist/index.cjs46.js +1 -1
  81. package/dist/index.cjs46.js.map +1 -1
  82. package/dist/index.cjs47.js +1 -1
  83. package/dist/index.cjs47.js.map +1 -1
  84. package/dist/index.cjs48.js +1 -1
  85. package/dist/index.cjs50.js +1 -1
  86. package/dist/index.cjs51.js +1 -1
  87. package/dist/index.cjs51.js.map +1 -1
  88. package/dist/index.cjs52.js +1 -1
  89. package/dist/index.cjs53.js +1 -1
  90. package/dist/index.cjs53.js.map +1 -1
  91. package/dist/index.cjs54.js +1 -1
  92. package/dist/index.cjs54.js.map +1 -1
  93. package/dist/index.cjs55.js +1 -1
  94. package/dist/index.cjs55.js.map +1 -1
  95. package/dist/index.cjs56.js +1 -1
  96. package/dist/index.cjs56.js.map +1 -1
  97. package/dist/index.cjs57.js +1 -1
  98. package/dist/index.cjs58.js +1 -1
  99. package/dist/index.cjs58.js.map +1 -1
  100. package/dist/index.cjs59.js +1 -1
  101. package/dist/index.cjs59.js.map +1 -1
  102. package/dist/index.cjs60.js +1 -1
  103. package/dist/index.cjs61.js +1 -1
  104. package/dist/index.cjs61.js.map +1 -1
  105. package/dist/index.cjs62.js +1 -1
  106. package/dist/index.cjs63.js +1 -1
  107. package/dist/index.cjs64.js +1 -1
  108. package/dist/index.cjs65.js +1 -1
  109. package/dist/index.cjs66.js +1 -1
  110. package/dist/index.cjs67.js +1 -1
  111. package/dist/index.cjs67.js.map +1 -1
  112. package/dist/index.cjs68.js +1 -1
  113. package/dist/index.cjs69.js +1 -1
  114. package/dist/index.cjs69.js.map +1 -1
  115. package/dist/index.cjs70.js +1 -1
  116. package/dist/index.cjs70.js.map +1 -1
  117. package/dist/index.cjs71.js +1 -1
  118. package/dist/index.cjs72.js +1 -1
  119. package/dist/index.cjs73.js +1 -1
  120. package/dist/index.cjs74.js +1 -1
  121. package/dist/index.cjs74.js.map +1 -1
  122. package/dist/index.cjs76.js +1 -1
  123. package/dist/index.cjs77.js +1 -1
  124. package/dist/index.cjs77.js.map +1 -1
  125. package/dist/index.cjs9.js +1 -1
  126. package/dist/index.esm10.js +2 -2
  127. package/dist/index.esm11.js +1 -1
  128. package/dist/index.esm12.js +3 -3
  129. package/dist/index.esm13.js +1 -1
  130. package/dist/index.esm14.js +1 -1
  131. package/dist/index.esm15.js +1 -1
  132. package/dist/index.esm16.js +1 -1
  133. package/dist/index.esm18.js +1 -1
  134. package/dist/index.esm19.js +1 -1
  135. package/dist/index.esm20.js +1 -1
  136. package/dist/index.esm21.js +2 -2
  137. package/dist/index.esm22.js +2 -2
  138. package/dist/index.esm23.js +1 -1
  139. package/dist/index.esm24.js +15 -14
  140. package/dist/index.esm24.js.map +1 -1
  141. package/dist/index.esm25.js +1 -1
  142. package/dist/index.esm26.js +2 -2
  143. package/dist/index.esm27.js +1 -1
  144. package/dist/index.esm28.js +1 -1
  145. package/dist/index.esm30.js +2 -2
  146. package/dist/index.esm31.js +1 -1
  147. package/dist/index.esm32.js +3 -3
  148. package/dist/index.esm389.js +1 -1
  149. package/dist/index.esm394.js +1 -1
  150. package/dist/index.esm395.js +1 -1
  151. package/dist/index.esm415.js +9 -5
  152. package/dist/index.esm415.js.map +1 -1
  153. package/dist/index.esm416.js +18 -5
  154. package/dist/index.esm416.js.map +1 -1
  155. package/dist/index.esm417.js +8 -2
  156. package/dist/index.esm417.js.map +1 -1
  157. package/dist/index.esm418.js +5 -6
  158. package/dist/index.esm418.js.map +1 -1
  159. package/dist/index.esm419.js +5 -15
  160. package/dist/index.esm419.js.map +1 -1
  161. package/dist/index.esm420.js +5 -17
  162. package/dist/index.esm420.js.map +1 -1
  163. package/dist/index.esm424.js +1 -1
  164. package/dist/index.esm425.js +2 -2
  165. package/dist/index.esm426.js +3 -3
  166. package/dist/index.esm427.js +3 -3
  167. package/dist/index.esm428.js +1 -1
  168. package/dist/index.esm429.js +2 -2
  169. package/dist/index.esm430.js +1 -1
  170. package/dist/index.esm432.js +1 -1
  171. package/dist/index.esm434.js +7 -7
  172. package/dist/index.esm437.js +1 -1
  173. package/dist/index.esm442.js +5 -18
  174. package/dist/index.esm442.js.map +1 -1
  175. package/dist/index.esm443.js +9 -16
  176. package/dist/index.esm443.js.map +1 -1
  177. package/dist/index.esm444.js +6 -11
  178. package/dist/index.esm444.js.map +1 -1
  179. package/dist/index.esm445.js +3 -4
  180. package/dist/index.esm445.js.map +1 -1
  181. package/dist/index.esm446.js +84 -3
  182. package/dist/index.esm446.js.map +1 -1
  183. package/dist/index.esm447.js +34 -27
  184. package/dist/index.esm447.js.map +1 -1
  185. package/dist/index.esm448.js +27 -30
  186. package/dist/index.esm448.js.map +1 -1
  187. package/dist/index.esm449.js +13 -20
  188. package/dist/index.esm449.js.map +1 -1
  189. package/dist/index.esm45.js +16 -39
  190. package/dist/index.esm45.js.map +1 -1
  191. package/dist/index.esm450.js +16 -3
  192. package/dist/index.esm450.js.map +1 -1
  193. package/dist/index.esm451.js +11 -5
  194. package/dist/index.esm451.js.map +1 -1
  195. package/dist/index.esm452.js +4 -9
  196. package/dist/index.esm452.js.map +1 -1
  197. package/dist/index.esm453.js +3 -6
  198. package/dist/index.esm453.js.map +1 -1
  199. package/dist/index.esm454.js +33 -3
  200. package/dist/index.esm454.js.map +1 -1
  201. package/dist/index.esm455.js +26 -85
  202. package/dist/index.esm455.js.map +1 -1
  203. package/dist/index.esm456.js +3 -37
  204. package/dist/index.esm456.js.map +1 -1
  205. package/dist/index.esm46.js +16 -17
  206. package/dist/index.esm46.js.map +1 -1
  207. package/dist/index.esm47.js +7 -16
  208. package/dist/index.esm47.js.map +1 -1
  209. package/dist/index.esm48.js +39 -40
  210. package/dist/index.esm48.js.map +1 -1
  211. package/dist/index.esm50.js +8 -32
  212. package/dist/index.esm50.js.map +1 -1
  213. package/dist/index.esm51.js +28 -9
  214. package/dist/index.esm51.js.map +1 -1
  215. package/dist/index.esm52.js +58 -6
  216. package/dist/index.esm52.js.map +1 -1
  217. package/dist/index.esm53.js +41 -9
  218. package/dist/index.esm53.js.map +1 -1
  219. package/dist/index.esm54.js +11 -7
  220. package/dist/index.esm54.js.map +1 -1
  221. package/dist/index.esm55.js +30 -9
  222. package/dist/index.esm55.js.map +1 -1
  223. package/dist/index.esm56.js +37 -28
  224. package/dist/index.esm56.js.map +1 -1
  225. package/dist/index.esm57.js +64 -10
  226. package/dist/index.esm57.js.map +1 -1
  227. package/dist/index.esm58.js +9 -30
  228. package/dist/index.esm58.js.map +1 -1
  229. package/dist/index.esm59.js +88 -9
  230. package/dist/index.esm59.js.map +1 -1
  231. package/dist/index.esm60.js +34 -19
  232. package/dist/index.esm60.js.map +1 -1
  233. package/dist/index.esm61.js +127 -47
  234. package/dist/index.esm61.js.map +1 -1
  235. package/dist/index.esm62.js +28 -10
  236. package/dist/index.esm62.js.map +1 -1
  237. package/dist/index.esm63.js +42 -5
  238. package/dist/index.esm63.js.map +1 -1
  239. package/dist/index.esm64.js +7 -3
  240. package/dist/index.esm64.js.map +1 -1
  241. package/dist/index.esm65.js +47 -65
  242. package/dist/index.esm65.js.map +1 -1
  243. package/dist/index.esm66.js +10 -36
  244. package/dist/index.esm66.js.map +1 -1
  245. package/dist/index.esm67.js +5 -88
  246. package/dist/index.esm67.js.map +1 -1
  247. package/dist/index.esm68.js +6 -34
  248. package/dist/index.esm68.js.map +1 -1
  249. package/dist/index.esm69.js +8 -126
  250. package/dist/index.esm69.js.map +1 -1
  251. package/dist/index.esm70.js +7 -59
  252. package/dist/index.esm70.js.map +1 -1
  253. package/dist/index.esm71.js +27 -40
  254. package/dist/index.esm71.js.map +1 -1
  255. package/dist/index.esm72.js +32 -6
  256. package/dist/index.esm72.js.map +1 -1
  257. package/dist/index.esm73.js +5 -15
  258. package/dist/index.esm73.js.map +1 -1
  259. package/dist/index.esm74.js +20 -109
  260. package/dist/index.esm74.js.map +1 -1
  261. package/dist/index.esm76.js +15 -28
  262. package/dist/index.esm76.js.map +1 -1
  263. package/dist/index.esm77.js +109 -30
  264. package/dist/index.esm77.js.map +1 -1
  265. package/dist/index.esm9.js +1 -1
  266. package/package.json +1 -1
@@ -1,92 +1,9 @@
1
1
  "use client";
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
- }
2
+ const s = "_grid_16nbv_1", t = {
3
+ grid: s
4
+ };
86
5
  export {
87
- w as TRIANGLE_TEMPLATES,
88
- et as createSeededRandom,
89
- at as generatePattern,
90
- _ as getRandomInt
6
+ t as default,
7
+ s as grid
91
8
  };
92
9
  //# sourceMappingURL=index.esm67.js.map
@@ -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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D,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":";;;;"}
@@ -1,39 +1,11 @@
1
1
  "use client";
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
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 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
7
+ e as default,
8
+ t as tagGroup,
9
+ a as tagInteractive
38
10
  };
39
11
  //# sourceMappingURL=index.esm68.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm68.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.esm68.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
@@ -1,131 +1,13 @@
1
1
  "use client";
2
- import { j as s } from "./index.esm38.js";
3
- import T from "./index.esm44.js";
4
- import { TRIANGLE_TEMPLATES as y } from "./index.esm67.js";
5
- import e from "./index.esm390.js";
6
- function D(i) {
7
- return `polygon(${i.map(([c, t]) => `${c * 100}% ${t * 100}%`).join(", ")})`;
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
- I as PatternCell
11
+ p as TagGroupItemView
130
12
  };
131
13
  //# sourceMappingURL=index.esm69.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm69.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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AAA,IAAC,SAAI,WAAWC,EAAO,SACpB,UAAA,MAAM;AAAA,UAAK,EAAE,QAAQb,EAAA;AAAA,UAAe,CAACiB,GAAGC,MACvCR,EAAeQ,CAAC,IACdN,gBAAAA,EAAAA;AAAAA,YAAC;AAAA,YAAA;AAAA,cAEC,WAAWC,EAAO;AAAA,cAClB,OAAO;AAAA,gBACL,iBAAiBrB;AAAA,gBACjB,GAAIO,MAAoB,IACtB;AAAA,kBACE,KAAK,GAAK,IAAImB,IAAIT,IAAgBhB,IAAQ,GAAG;AAAA,kBAC7C,MAAM;AAAA,kBACN,OAAO;AAAA,kBACP,QAAQ,GAAIgB,IAAehB,IAAQ,GAAG;AAAA,gBAAA,IAExC;AAAA,kBACE,MAAM,GAAK,IAAIyB,IAAIV,IAAef,IAAQ,GAAG;AAAA,kBAC7C,KAAK;AAAA,kBACL,OAAO,GAAIe,IAAcf,IAAQ,GAAG;AAAA,kBACpC,QAAQ;AAAA,gBAAA;AAAA,cACV;AAAA,YACJ;AAAA,YAjBKyB;AAAA,UAAA,IAmBL;AAAA,QAAA,EACN,CACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA,GAGJ;AAEJ;AAEA9B,EAAY,cAAc;"}
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;"}
@@ -1,63 +1,11 @@
1
1
  "use client";
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
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
- 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
9
+ p as ChevronUpIcon
62
10
  };
63
11
  //# sourceMappingURL=index.esm70.js.map
@@ -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;"}
@@ -1,47 +1,34 @@
1
1
  "use client";
2
- const e = "_root_1lfx3_1", t = "_root--sm_1lfx3_8", s = "_root--md_1lfx3_14", n = "_root--lg_1lfx3_20", _ = "_track_1lfx3_26", o = "_segments_1lfx3_34", m = "_segment_1lfx3_34", g = "_segment--primary_1lfx3_50", l = "_segment--secondary_1lfx3_54", r = "_segment--success_1lfx3_58", c = "_segment--warning_1lfx3_62", a = "_segment--active_1lfx3_66", f = "_segment--sequential_1lfx3_66", x = "_segment-reveal_1lfx3_1", i = "_valueLabel_1lfx3_89", u = {
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
- "root--sm": "_root--sm_1lfx3_8",
5
- rootSm: t,
6
- "root--md": "_root--md_1lfx3_14",
7
- rootMd: s,
8
- "root--lg": "_root--lg_1lfx3_20",
9
- rootLg: n,
10
- track: _,
11
- segments: o,
12
- segment: m,
13
- "segment--primary": "_segment--primary_1lfx3_50",
14
- segmentPrimary: g,
15
- "segment--secondary": "_segment--secondary_1lfx3_54",
16
- segmentSecondary: l,
17
- "segment--success": "_segment--success_1lfx3_58",
18
- segmentSuccess: r,
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
- u as default,
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
- n as rootLg,
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
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm71.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.esm71.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
@@ -1,11 +1,37 @@
1
1
  "use client";
2
- const e = "_wrapper_1qp7o_1", r = "_term_1qp7o_5", t = {
3
- wrapper: e,
4
- term: r
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
- t as default,
8
- r as term,
9
- e as wrapper
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
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm72.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
1
+ {"version":3,"file":"index.esm72.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;"}
@@ -1,20 +1,10 @@
1
1
  "use client";
2
- const o = "_root_iwlyv_1", t = "_root--interactive_iwlyv_16", r = "_cardLink_iwlyv_20", _ = "_root--card_iwlyv_41", i = "_root--row_iwlyv_50", c = {
3
- root: o,
4
- "root--interactive": "_root--interactive_iwlyv_16",
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
- r as cardLink,
14
- c as default,
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
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm73.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
1
+ {"version":3,"file":"index.esm73.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}