@frontify/fondue-components 29.1.0 → 30.0.0

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 (317) hide show
  1. package/dist/fondue-components.js +72 -70
  2. package/dist/fondue-components.js.map +1 -1
  3. package/dist/fondue-components10.js +181 -33
  4. package/dist/fondue-components10.js.map +1 -1
  5. package/dist/fondue-components100.js +8 -23
  6. package/dist/fondue-components100.js.map +1 -1
  7. package/dist/fondue-components101.js +11 -34
  8. package/dist/fondue-components101.js.map +1 -1
  9. package/dist/fondue-components102.js +10 -10
  10. package/dist/fondue-components103.js +6 -67
  11. package/dist/fondue-components103.js.map +1 -1
  12. package/dist/fondue-components104.js +12 -14
  13. package/dist/fondue-components104.js.map +1 -1
  14. package/dist/fondue-components105.js +22 -25
  15. package/dist/fondue-components105.js.map +1 -1
  16. package/dist/fondue-components106.js +34 -19
  17. package/dist/fondue-components106.js.map +1 -1
  18. package/dist/fondue-components107.js +10 -24
  19. package/dist/fondue-components107.js.map +1 -1
  20. package/dist/fondue-components108.js +67 -8
  21. package/dist/fondue-components108.js.map +1 -1
  22. package/dist/fondue-components109.js +14 -30
  23. package/dist/fondue-components109.js.map +1 -1
  24. package/dist/fondue-components11.js +35 -185
  25. package/dist/fondue-components11.js.map +1 -1
  26. package/dist/fondue-components110.js +23 -4
  27. package/dist/fondue-components110.js.map +1 -1
  28. package/dist/fondue-components111.js +18 -4
  29. package/dist/fondue-components111.js.map +1 -1
  30. package/dist/fondue-components112.js +24 -4
  31. package/dist/fondue-components112.js.map +1 -1
  32. package/dist/fondue-components113.js +9 -14
  33. package/dist/fondue-components113.js.map +1 -1
  34. package/dist/fondue-components114.js +32 -16
  35. package/dist/fondue-components114.js.map +1 -1
  36. package/dist/fondue-components115.js +7 -111
  37. package/dist/fondue-components115.js.map +1 -1
  38. package/dist/fondue-components116.js +4 -12
  39. package/dist/fondue-components116.js.map +1 -1
  40. package/dist/fondue-components117.js +5 -17
  41. package/dist/fondue-components117.js.map +1 -1
  42. package/dist/fondue-components118.js +214 -10
  43. package/dist/fondue-components118.js.map +1 -1
  44. package/dist/fondue-components119.js +18 -16
  45. package/dist/fondue-components119.js.map +1 -1
  46. package/dist/fondue-components12.js +185 -7
  47. package/dist/fondue-components12.js.map +1 -1
  48. package/dist/fondue-components120.js +15 -125
  49. package/dist/fondue-components120.js.map +1 -1
  50. package/dist/fondue-components121.js +151 -11
  51. package/dist/fondue-components121.js.map +1 -1
  52. package/dist/fondue-components122.js +45 -36
  53. package/dist/fondue-components122.js.map +1 -1
  54. package/dist/fondue-components123.js +16 -216
  55. package/dist/fondue-components123.js.map +1 -1
  56. package/dist/fondue-components124.js +14 -19
  57. package/dist/fondue-components124.js.map +1 -1
  58. package/dist/fondue-components125.js +16 -16
  59. package/dist/fondue-components125.js.map +1 -1
  60. package/dist/fondue-components126.js +107 -147
  61. package/dist/fondue-components126.js.map +1 -1
  62. package/dist/fondue-components127.js +12 -44
  63. package/dist/fondue-components127.js.map +1 -1
  64. package/dist/fondue-components128.js +17 -42
  65. package/dist/fondue-components128.js.map +1 -1
  66. package/dist/fondue-components129.js +16 -0
  67. package/dist/fondue-components129.js.map +1 -0
  68. package/dist/fondue-components13.js +8 -63
  69. package/dist/fondue-components13.js.map +1 -1
  70. package/dist/fondue-components130.js +127 -41
  71. package/dist/fondue-components130.js.map +1 -1
  72. package/dist/fondue-components131.js +11 -170
  73. package/dist/fondue-components131.js.map +1 -1
  74. package/dist/fondue-components132.js +34 -58
  75. package/dist/fondue-components132.js.map +1 -1
  76. package/dist/fondue-components133.js +33 -9
  77. package/dist/fondue-components133.js.map +1 -1
  78. package/dist/fondue-components134.js +6 -256
  79. package/dist/fondue-components134.js.map +1 -1
  80. package/dist/fondue-components137.js +4 -4
  81. package/dist/fondue-components138.js +1 -1
  82. package/dist/fondue-components139.js +1 -1
  83. package/dist/fondue-components14.js +61 -35
  84. package/dist/fondue-components14.js.map +1 -1
  85. package/dist/fondue-components140.js +2 -2
  86. package/dist/fondue-components141.js +3 -3
  87. package/dist/fondue-components142.js +2 -2
  88. package/dist/fondue-components143.js +168 -17
  89. package/dist/fondue-components143.js.map +1 -1
  90. package/dist/fondue-components144.js +60 -70
  91. package/dist/fondue-components144.js.map +1 -1
  92. package/dist/fondue-components145.js +7 -1350
  93. package/dist/fondue-components145.js.map +1 -1
  94. package/dist/fondue-components146.js +217 -902
  95. package/dist/fondue-components146.js.map +1 -1
  96. package/dist/fondue-components147.js +17 -196
  97. package/dist/fondue-components147.js.map +1 -1
  98. package/dist/fondue-components149.js +41 -39
  99. package/dist/fondue-components149.js.map +1 -1
  100. package/dist/fondue-components15.js +36 -121
  101. package/dist/fondue-components15.js.map +1 -1
  102. package/dist/fondue-components150.js +40 -67
  103. package/dist/fondue-components150.js.map +1 -1
  104. package/dist/fondue-components151.js +20 -30
  105. package/dist/fondue-components151.js.map +1 -1
  106. package/dist/fondue-components152.js +40 -9
  107. package/dist/fondue-components152.js.map +1 -1
  108. package/dist/fondue-components153.js +67 -150
  109. package/dist/fondue-components153.js.map +1 -1
  110. package/dist/fondue-components154.js +1351 -107
  111. package/dist/fondue-components154.js.map +1 -1
  112. package/dist/fondue-components155.js +943 -18
  113. package/dist/fondue-components155.js.map +1 -1
  114. package/dist/fondue-components156.js +197 -15
  115. package/dist/fondue-components156.js.map +1 -1
  116. package/dist/fondue-components157.js +68 -29
  117. package/dist/fondue-components157.js.map +1 -1
  118. package/dist/fondue-components158.js +31 -13
  119. package/dist/fondue-components158.js.map +1 -1
  120. package/dist/fondue-components159.js +9 -7
  121. package/dist/fondue-components159.js.map +1 -1
  122. package/dist/fondue-components16.js +121 -36
  123. package/dist/fondue-components16.js.map +1 -1
  124. package/dist/fondue-components160.js +156 -0
  125. package/dist/fondue-components160.js.map +1 -0
  126. package/dist/fondue-components161.js +111 -0
  127. package/dist/fondue-components161.js.map +1 -0
  128. package/dist/fondue-components162.js +19 -0
  129. package/dist/fondue-components162.js.map +1 -0
  130. package/dist/fondue-components163.js +32 -0
  131. package/dist/fondue-components163.js.map +1 -0
  132. package/dist/fondue-components164.js +16 -0
  133. package/dist/fondue-components164.js.map +1 -0
  134. package/dist/fondue-components165.js +19 -0
  135. package/dist/fondue-components165.js.map +1 -0
  136. package/dist/fondue-components166.js +10 -0
  137. package/dist/fondue-components166.js.map +1 -0
  138. package/dist/fondue-components17.js +30 -39
  139. package/dist/fondue-components17.js.map +1 -1
  140. package/dist/fondue-components18.js +44 -41
  141. package/dist/fondue-components18.js.map +1 -1
  142. package/dist/fondue-components19.js +42 -57
  143. package/dist/fondue-components19.js.map +1 -1
  144. package/dist/fondue-components20.js +55 -41
  145. package/dist/fondue-components20.js.map +1 -1
  146. package/dist/fondue-components21.js +39 -16
  147. package/dist/fondue-components21.js.map +1 -1
  148. package/dist/fondue-components22.js +17 -43
  149. package/dist/fondue-components22.js.map +1 -1
  150. package/dist/fondue-components23.js +46 -68
  151. package/dist/fondue-components23.js.map +1 -1
  152. package/dist/fondue-components24.js +67 -71
  153. package/dist/fondue-components24.js.map +1 -1
  154. package/dist/fondue-components25.js +72 -16
  155. package/dist/fondue-components25.js.map +1 -1
  156. package/dist/fondue-components26.js +18 -77
  157. package/dist/fondue-components26.js.map +1 -1
  158. package/dist/fondue-components27.js +75 -34
  159. package/dist/fondue-components27.js.map +1 -1
  160. package/dist/fondue-components28.js +34 -53
  161. package/dist/fondue-components28.js.map +1 -1
  162. package/dist/fondue-components29.js +55 -23
  163. package/dist/fondue-components29.js.map +1 -1
  164. package/dist/fondue-components3.js +1 -1
  165. package/dist/fondue-components30.js +23 -55
  166. package/dist/fondue-components30.js.map +1 -1
  167. package/dist/fondue-components31.js +52 -97
  168. package/dist/fondue-components31.js.map +1 -1
  169. package/dist/fondue-components32.js +98 -31
  170. package/dist/fondue-components32.js.map +1 -1
  171. package/dist/fondue-components33.js +31 -194
  172. package/dist/fondue-components33.js.map +1 -1
  173. package/dist/fondue-components34.js +184 -134
  174. package/dist/fondue-components34.js.map +1 -1
  175. package/dist/fondue-components35.js +143 -130
  176. package/dist/fondue-components35.js.map +1 -1
  177. package/dist/fondue-components36.js +131 -30
  178. package/dist/fondue-components36.js.map +1 -1
  179. package/dist/fondue-components37.js +29 -79
  180. package/dist/fondue-components37.js.map +1 -1
  181. package/dist/fondue-components38.js +68 -110
  182. package/dist/fondue-components38.js.map +1 -1
  183. package/dist/fondue-components39.js +121 -34
  184. package/dist/fondue-components39.js.map +1 -1
  185. package/dist/fondue-components4.js +21 -19
  186. package/dist/fondue-components4.js.map +1 -1
  187. package/dist/fondue-components40.js +36 -56
  188. package/dist/fondue-components40.js.map +1 -1
  189. package/dist/fondue-components41.js +56 -20
  190. package/dist/fondue-components41.js.map +1 -1
  191. package/dist/fondue-components42.js +20 -25
  192. package/dist/fondue-components42.js.map +1 -1
  193. package/dist/fondue-components43.js +25 -7
  194. package/dist/fondue-components43.js.map +1 -1
  195. package/dist/fondue-components44.js +7 -8
  196. package/dist/fondue-components44.js.map +1 -1
  197. package/dist/fondue-components45.js +9 -41
  198. package/dist/fondue-components45.js.map +1 -1
  199. package/dist/fondue-components46.js +41 -5
  200. package/dist/fondue-components46.js.map +1 -1
  201. package/dist/fondue-components47.js +1 -1
  202. package/dist/fondue-components48.js +3 -11
  203. package/dist/fondue-components48.js.map +1 -1
  204. package/dist/fondue-components49.js +25 -29
  205. package/dist/fondue-components49.js.map +1 -1
  206. package/dist/fondue-components5.js +2 -2
  207. package/dist/fondue-components50.js +33 -54
  208. package/dist/fondue-components50.js.map +1 -1
  209. package/dist/fondue-components51.js +20 -130
  210. package/dist/fondue-components51.js.map +1 -1
  211. package/dist/fondue-components52.js +85 -20
  212. package/dist/fondue-components52.js.map +1 -1
  213. package/dist/fondue-components53.js +13 -53
  214. package/dist/fondue-components53.js.map +1 -1
  215. package/dist/fondue-components54.js +32 -8
  216. package/dist/fondue-components54.js.map +1 -1
  217. package/dist/fondue-components55.js +54 -13
  218. package/dist/fondue-components55.js.map +1 -1
  219. package/dist/fondue-components56.js +130 -16
  220. package/dist/fondue-components56.js.map +1 -1
  221. package/dist/fondue-components57.js +20 -4
  222. package/dist/fondue-components57.js.map +1 -1
  223. package/dist/fondue-components58.js +52 -17
  224. package/dist/fondue-components58.js.map +1 -1
  225. package/dist/fondue-components59.js +7 -18
  226. package/dist/fondue-components59.js.map +1 -1
  227. package/dist/fondue-components6.js +1 -1
  228. package/dist/fondue-components60.js +13 -44
  229. package/dist/fondue-components60.js.map +1 -1
  230. package/dist/fondue-components61.js +16 -24
  231. package/dist/fondue-components61.js.map +1 -1
  232. package/dist/fondue-components62.js +4 -22
  233. package/dist/fondue-components62.js.map +1 -1
  234. package/dist/fondue-components63.js +18 -7
  235. package/dist/fondue-components63.js.map +1 -1
  236. package/dist/fondue-components64.js +18 -4
  237. package/dist/fondue-components64.js.map +1 -1
  238. package/dist/fondue-components65.js +43 -12
  239. package/dist/fondue-components65.js.map +1 -1
  240. package/dist/fondue-components66.js +24 -4
  241. package/dist/fondue-components66.js.map +1 -1
  242. package/dist/fondue-components67.js +22 -17
  243. package/dist/fondue-components67.js.map +1 -1
  244. package/dist/fondue-components68.js +4 -8
  245. package/dist/fondue-components68.js.map +1 -1
  246. package/dist/fondue-components69.js +4 -36
  247. package/dist/fondue-components69.js.map +1 -1
  248. package/dist/fondue-components7.js +32 -65
  249. package/dist/fondue-components7.js.map +1 -1
  250. package/dist/fondue-components70.js +12 -6
  251. package/dist/fondue-components70.js.map +1 -1
  252. package/dist/fondue-components71.js +1 -1
  253. package/dist/fondue-components72.js +17 -12
  254. package/dist/fondue-components72.js.map +1 -1
  255. package/dist/fondue-components73.js +10 -51
  256. package/dist/fondue-components73.js.map +1 -1
  257. package/dist/fondue-components74.js +37 -44
  258. package/dist/fondue-components74.js.map +1 -1
  259. package/dist/fondue-components75.js +7 -6
  260. package/dist/fondue-components75.js.map +1 -1
  261. package/dist/fondue-components76.js +5 -6
  262. package/dist/fondue-components76.js.map +1 -1
  263. package/dist/fondue-components77.js +13 -13
  264. package/dist/fondue-components77.js.map +1 -1
  265. package/dist/fondue-components78.js +51 -27
  266. package/dist/fondue-components78.js.map +1 -1
  267. package/dist/fondue-components79.js +42 -11
  268. package/dist/fondue-components79.js.map +1 -1
  269. package/dist/fondue-components8.js +65 -51
  270. package/dist/fondue-components8.js.map +1 -1
  271. package/dist/fondue-components80.js +6 -5
  272. package/dist/fondue-components80.js.map +1 -1
  273. package/dist/fondue-components81.js +6 -13
  274. package/dist/fondue-components81.js.map +1 -1
  275. package/dist/fondue-components82.js +13 -48
  276. package/dist/fondue-components82.js.map +1 -1
  277. package/dist/fondue-components83.js +27 -22
  278. package/dist/fondue-components83.js.map +1 -1
  279. package/dist/fondue-components84.js +13 -629
  280. package/dist/fondue-components84.js.map +1 -1
  281. package/dist/fondue-components85.js +4 -8
  282. package/dist/fondue-components85.js.map +1 -1
  283. package/dist/fondue-components86.js +12 -12
  284. package/dist/fondue-components86.js.map +1 -1
  285. package/dist/fondue-components87.js +47 -4
  286. package/dist/fondue-components87.js.map +1 -1
  287. package/dist/fondue-components88.js +22 -24
  288. package/dist/fondue-components88.js.map +1 -1
  289. package/dist/fondue-components89.js +628 -16
  290. package/dist/fondue-components89.js.map +1 -1
  291. package/dist/fondue-components9.js +46 -173
  292. package/dist/fondue-components9.js.map +1 -1
  293. package/dist/fondue-components90.js +9 -20
  294. package/dist/fondue-components90.js.map +1 -1
  295. package/dist/fondue-components91.js +13 -20
  296. package/dist/fondue-components91.js.map +1 -1
  297. package/dist/fondue-components92.js +5 -20
  298. package/dist/fondue-components92.js.map +1 -1
  299. package/dist/fondue-components93.js +24 -19
  300. package/dist/fondue-components93.js.map +1 -1
  301. package/dist/fondue-components94.js +17 -19
  302. package/dist/fondue-components94.js.map +1 -1
  303. package/dist/fondue-components95.js +20 -8
  304. package/dist/fondue-components95.js.map +1 -1
  305. package/dist/fondue-components96.js +20 -11
  306. package/dist/fondue-components96.js.map +1 -1
  307. package/dist/fondue-components97.js +20 -11
  308. package/dist/fondue-components97.js.map +1 -1
  309. package/dist/fondue-components98.js +20 -7
  310. package/dist/fondue-components98.js.map +1 -1
  311. package/dist/fondue-components99.js +19 -13
  312. package/dist/fondue-components99.js.map +1 -1
  313. package/dist/index.d.ts +187 -15
  314. package/dist/style.css +1 -1
  315. package/package.json +9 -5
  316. package/dist/fondue-components148.js +0 -24
  317. package/dist/fondue-components148.js.map +0 -1
@@ -1,259 +1,9 @@
1
- var m = Symbol.for("preact-signals");
2
- function d() {
3
- if (s > 1)
4
- s--;
5
- else {
6
- for (var t, i = !1; u !== void 0; ) {
7
- var o = u;
8
- for (u = void 0, c++; o !== void 0; ) {
9
- var n = o.o;
10
- if (o.o = void 0, o.f &= -3, !(8 & o.f) && w(o)) try {
11
- o.c();
12
- } catch (h) {
13
- i || (t = h, i = !0);
14
- }
15
- o = n;
16
- }
17
- }
18
- if (c = 0, s--, i) throw t;
19
- }
20
- }
21
- function E(t) {
22
- if (s > 0) return t();
23
- s++;
24
- try {
25
- return t();
26
- } finally {
27
- d();
28
- }
29
- }
30
- var r = void 0;
31
- function p(t) {
32
- var i = r;
33
- r = void 0;
34
- try {
35
- return t();
36
- } finally {
37
- r = i;
38
- }
39
- }
40
- var u = void 0, s = 0, c = 0, a = 0;
41
- function y(t) {
42
- if (r !== void 0) {
43
- var i = t.n;
44
- if (i === void 0 || i.t !== r)
45
- return i = { i: 0, S: t, p: r.s, n: void 0, t: r, e: void 0, x: void 0, r: i }, r.s !== void 0 && (r.s.n = i), r.s = i, t.n = i, 32 & r.f && t.S(i), i;
46
- if (i.i === -1)
47
- return i.i = 0, i.n !== void 0 && (i.n.p = i.p, i.p !== void 0 && (i.p.n = i.n), i.p = r.s, i.n = void 0, r.s.n = i, r.s = i), i;
48
- }
49
- }
50
- function f(t, i) {
51
- this.v = t, this.i = 0, this.n = void 0, this.t = void 0, this.W = i == null ? void 0 : i.watched, this.Z = i == null ? void 0 : i.unwatched, this.name = i == null ? void 0 : i.name;
52
- }
53
- f.prototype.brand = m;
54
- f.prototype.h = function() {
55
- return !0;
56
- };
57
- f.prototype.S = function(t) {
58
- var i = this, o = this.t;
59
- o !== t && t.e === void 0 && (t.x = o, this.t = t, o !== void 0 ? o.e = t : p(function() {
60
- var n;
61
- (n = i.W) == null || n.call(i);
62
- }));
63
- };
64
- f.prototype.U = function(t) {
65
- var i = this;
66
- if (this.t !== void 0) {
67
- var o = t.e, n = t.x;
68
- o !== void 0 && (o.x = n, t.e = void 0), n !== void 0 && (n.e = o, t.x = void 0), t === this.t && (this.t = n, n === void 0 && p(function() {
69
- var h;
70
- (h = i.Z) == null || h.call(i);
71
- }));
72
- }
73
- };
74
- f.prototype.subscribe = function(t) {
75
- var i = this;
76
- return U(function() {
77
- var o = i.value, n = r;
78
- r = void 0;
79
- try {
80
- t(o);
81
- } finally {
82
- r = n;
83
- }
84
- }, { name: "sub" });
85
- };
86
- f.prototype.valueOf = function() {
87
- return this.value;
88
- };
89
- f.prototype.toString = function() {
90
- return this.value + "";
91
- };
92
- f.prototype.toJSON = function() {
93
- return this.value;
94
- };
95
- f.prototype.peek = function() {
96
- var t = r;
97
- r = void 0;
98
- try {
99
- return this.value;
100
- } finally {
101
- r = t;
102
- }
103
- };
104
- Object.defineProperty(f.prototype, "value", { get: function() {
105
- var t = y(this);
106
- return t !== void 0 && (t.i = this.i), this.v;
107
- }, set: function(t) {
108
- if (t !== this.v) {
109
- if (c > 100) throw new Error("Cycle detected");
110
- this.v = t, this.i++, a++, s++;
111
- try {
112
- for (var i = this.t; i !== void 0; i = i.x) i.t.N();
113
- } finally {
114
- d();
115
- }
116
- }
117
- } });
118
- function N(t, i) {
119
- return new f(t, i);
120
- }
121
- function w(t) {
122
- for (var i = t.s; i !== void 0; i = i.n) if (i.S.i !== i.i || !i.S.h() || i.S.i !== i.i) return !0;
123
- return !1;
124
- }
125
- function S(t) {
126
- for (var i = t.s; i !== void 0; i = i.n) {
127
- var o = i.S.n;
128
- if (o !== void 0 && (i.r = o), i.S.n = i, i.i = -1, i.n === void 0) {
129
- t.s = i;
130
- break;
131
- }
132
- }
133
- }
134
- function x(t) {
135
- for (var i = t.s, o = void 0; i !== void 0; ) {
136
- var n = i.p;
137
- i.i === -1 ? (i.S.U(i), n !== void 0 && (n.n = i.n), i.n !== void 0 && (i.n.p = n)) : o = i, i.S.n = i.r, i.r !== void 0 && (i.r = void 0), i = n;
138
- }
139
- t.s = o;
140
- }
141
- function e(t, i) {
142
- f.call(this, void 0), this.x = t, this.s = void 0, this.g = a - 1, this.f = 4, this.W = i == null ? void 0 : i.watched, this.Z = i == null ? void 0 : i.unwatched, this.name = i == null ? void 0 : i.name;
143
- }
144
- e.prototype = new f();
145
- e.prototype.h = function() {
146
- if (this.f &= -3, 1 & this.f) return !1;
147
- if ((36 & this.f) == 32 || (this.f &= -5, this.g === a)) return !0;
148
- if (this.g = a, this.f |= 1, this.i > 0 && !w(this))
149
- return this.f &= -2, !0;
150
- var t = r;
151
- try {
152
- S(this), r = this;
153
- var i = this.x();
154
- (16 & this.f || this.v !== i || this.i === 0) && (this.v = i, this.f &= -17, this.i++);
155
- } catch (o) {
156
- this.v = o, this.f |= 16, this.i++;
157
- }
158
- return r = t, x(this), this.f &= -2, !0;
159
- };
160
- e.prototype.S = function(t) {
161
- if (this.t === void 0) {
162
- this.f |= 36;
163
- for (var i = this.s; i !== void 0; i = i.n) i.S.S(i);
164
- }
165
- f.prototype.S.call(this, t);
166
- };
167
- e.prototype.U = function(t) {
168
- if (this.t !== void 0 && (f.prototype.U.call(this, t), this.t === void 0)) {
169
- this.f &= -33;
170
- for (var i = this.s; i !== void 0; i = i.n) i.S.U(i);
171
- }
172
- };
173
- e.prototype.N = function() {
174
- if (!(2 & this.f)) {
175
- this.f |= 6;
176
- for (var t = this.t; t !== void 0; t = t.x) t.t.N();
177
- }
178
- };
179
- Object.defineProperty(e.prototype, "value", { get: function() {
180
- if (1 & this.f) throw new Error("Cycle detected");
181
- var t = y(this);
182
- if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f) throw this.v;
183
- return this.v;
184
- } });
185
- function O(t, i) {
186
- return new e(t, i);
187
- }
188
- function b(t) {
189
- var i = t.u;
190
- if (t.u = void 0, typeof i == "function") {
191
- s++;
192
- var o = r;
193
- r = void 0;
194
- try {
195
- i();
196
- } catch (n) {
197
- throw t.f &= -2, t.f |= 8, l(t), n;
198
- } finally {
199
- r = o, d();
200
- }
201
- }
202
- }
203
- function l(t) {
204
- for (var i = t.s; i !== void 0; i = i.n) i.S.U(i);
205
- t.x = void 0, t.s = void 0, b(t);
206
- }
207
- function g(t) {
208
- if (r !== this) throw new Error("Out-of-order effect");
209
- x(this), r = t, this.f &= -2, 8 & this.f && l(this), d();
210
- }
211
- function v(t, i) {
212
- this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32, this.name = i == null ? void 0 : i.name;
213
- }
214
- v.prototype.c = function() {
215
- var t = this.S();
216
- try {
217
- if (8 & this.f || this.x === void 0) return;
218
- var i = this.x();
219
- typeof i == "function" && (this.u = i);
220
- } finally {
221
- t();
222
- }
223
- };
224
- v.prototype.S = function() {
225
- if (1 & this.f) throw new Error("Cycle detected");
226
- this.f |= 1, this.f &= -9, b(this), S(this), s++;
227
- var t = r;
228
- return r = this, g.bind(this, t);
229
- };
230
- v.prototype.N = function() {
231
- 2 & this.f || (this.f |= 2, this.o = u, u = this);
232
- };
233
- v.prototype.d = function() {
234
- this.f |= 8, 1 & this.f || l(this);
235
- };
236
- v.prototype.dispose = function() {
237
- this.d();
238
- };
239
- function U(t, i) {
240
- var o = new v(t, i);
241
- try {
242
- o.c();
243
- } catch (h) {
244
- throw o.d(), h;
245
- }
246
- var n = o.d.bind(o);
247
- return n[Symbol.dispose] = n, n;
248
- }
1
+ import { createContext as e, useContext as o } from "react";
2
+ const t = e(null);
3
+ t.displayName = "CardContext";
4
+ const C = () => o(t);
249
5
  export {
250
- e as Computed,
251
- v as Effect,
252
- f as Signal,
253
- E as batch,
254
- O as computed,
255
- U as effect,
256
- N as signal,
257
- p as untracked
6
+ t as CardContext,
7
+ C as useCardContext
258
8
  };
259
9
  //# sourceMappingURL=fondue-components134.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fondue-components134.js","sources":["../../../node_modules/.pnpm/@preact+signals-core@1.13.0/node_modules/@preact/signals-core/dist/signals-core.module.js"],"sourcesContent":["var i=Symbol.for(\"preact-signals\");function t(){if(!(s>1)){var i,t=!1;while(void 0!==h){var n=h;h=void 0;v++;while(void 0!==n){var r=n.o;n.o=void 0;n.f&=-3;if(!(8&n.f)&&a(n))try{n.c()}catch(n){if(!t){i=n;t=!0}}n=r}}v=0;s--;if(t)throw i}else s--}function n(i){if(s>0)return i();s++;try{return i()}finally{t()}}var r=void 0;function o(i){var t=r;r=void 0;try{return i()}finally{r=t}}var f,h=void 0,s=0,v=0,u=0;function e(i){if(void 0!==r){var t=i.n;if(void 0===t||t.t!==r){t={i:0,S:i,p:r.s,n:void 0,t:r,e:void 0,x:void 0,r:t};if(void 0!==r.s)r.s.n=t;r.s=t;i.n=t;if(32&r.f)i.S(t);return t}else if(-1===t.i){t.i=0;if(void 0!==t.n){t.n.p=t.p;if(void 0!==t.p)t.p.n=t.n;t.p=r.s;t.n=void 0;r.s.n=t;r.s=t}return t}}}function d(i,t){this.v=i;this.i=0;this.n=void 0;this.t=void 0;this.W=null==t?void 0:t.watched;this.Z=null==t?void 0:t.unwatched;this.name=null==t?void 0:t.name}d.prototype.brand=i;d.prototype.h=function(){return!0};d.prototype.S=function(i){var t=this,n=this.t;if(n!==i&&void 0===i.e){i.x=n;this.t=i;if(void 0!==n)n.e=i;else o(function(){var i;null==(i=t.W)||i.call(t)})}};d.prototype.U=function(i){var t=this;if(void 0!==this.t){var n=i.e,r=i.x;if(void 0!==n){n.x=r;i.e=void 0}if(void 0!==r){r.e=n;i.x=void 0}if(i===this.t){this.t=r;if(void 0===r)o(function(){var i;null==(i=t.Z)||i.call(t)})}}};d.prototype.subscribe=function(i){var t=this;return m(function(){var n=t.value,o=r;r=void 0;try{i(n)}finally{r=o}},{name:\"sub\"})};d.prototype.valueOf=function(){return this.value};d.prototype.toString=function(){return this.value+\"\"};d.prototype.toJSON=function(){return this.value};d.prototype.peek=function(){var i=r;r=void 0;try{return this.value}finally{r=i}};Object.defineProperty(d.prototype,\"value\",{get:function(){var i=e(this);if(void 0!==i)i.i=this.i;return this.v},set:function(i){if(i!==this.v){if(v>100)throw new Error(\"Cycle detected\");this.v=i;this.i++;u++;s++;try{for(var n=this.t;void 0!==n;n=n.x)n.t.N()}finally{t()}}}});function c(i,t){return new d(i,t)}function a(i){for(var t=i.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function l(i){for(var t=i.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n)t.r=n;t.S.n=t;t.i=-1;if(void 0===t.n){i.s=t;break}}}function y(i){var t=i.s,n=void 0;while(void 0!==t){var r=t.p;if(-1===t.i){t.S.U(t);if(void 0!==r)r.n=t.n;if(void 0!==t.n)t.n.p=r}else n=t;t.S.n=t.r;if(void 0!==t.r)t.r=void 0;t=r}i.s=n}function w(i,t){d.call(this,void 0);this.x=i;this.s=void 0;this.g=u-1;this.f=4;this.W=null==t?void 0:t.watched;this.Z=null==t?void 0:t.unwatched;this.name=null==t?void 0:t.name}w.prototype=new d;w.prototype.h=function(){this.f&=-3;if(1&this.f)return!1;if(32==(36&this.f))return!0;this.f&=-5;if(this.g===u)return!0;this.g=u;this.f|=1;if(this.i>0&&!a(this)){this.f&=-2;return!0}var i=r;try{l(this);r=this;var t=this.x();if(16&this.f||this.v!==t||0===this.i){this.v=t;this.f&=-17;this.i++}}catch(i){this.v=i;this.f|=16;this.i++}r=i;y(this);this.f&=-2;return!0};w.prototype.S=function(i){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}d.prototype.S.call(this,i)};w.prototype.U=function(i){if(void 0!==this.t){d.prototype.U.call(this,i);if(void 0===this.t){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}}};w.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var i=this.t;void 0!==i;i=i.x)i.t.N()}};Object.defineProperty(w.prototype,\"value\",{get:function(){if(1&this.f)throw new Error(\"Cycle detected\");var i=e(this);this.h();if(void 0!==i)i.i=this.i;if(16&this.f)throw this.v;return this.v}});function b(i,t){return new w(i,t)}function _(i){var n=i.u;i.u=void 0;if(\"function\"==typeof n){s++;var o=r;r=void 0;try{n()}catch(t){i.f&=-2;i.f|=8;p(i);throw t}finally{r=o;t()}}}function p(i){for(var t=i.s;void 0!==t;t=t.n)t.S.U(t);i.x=void 0;i.s=void 0;_(i)}function g(i){if(r!==this)throw new Error(\"Out-of-order effect\");y(this);r=i;this.f&=-2;if(8&this.f)p(this);t()}function S(i,t){this.x=i;this.u=void 0;this.s=void 0;this.o=void 0;this.f=32;this.name=null==t?void 0:t.name;if(f)f.push(this)}S.prototype.c=function(){var i=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();if(\"function\"==typeof t)this.u=t}finally{i()}};S.prototype.S=function(){if(1&this.f)throw new Error(\"Cycle detected\");this.f|=1;this.f&=-9;_(this);l(this);s++;var i=r;r=this;return g.bind(this,i)};S.prototype.N=function(){if(!(2&this.f)){this.f|=2;this.o=h;h=this}};S.prototype.d=function(){this.f|=8;if(!(1&this.f))p(this)};S.prototype.dispose=function(){this.d()};function m(i,t){var n=new S(i,t);try{n.c()}catch(i){n.d();throw i}var r=n.d.bind(n);r[Symbol.dispose]=r;return r}function E(i){return function(){var t=arguments,r=this;return n(function(){return o(function(){return i.apply(r,[].slice.call(t))})})}}function x(){var i=f;f=[];return function(){var t=f;if(f&&i)i=i.concat(f);f=i;return t}}function C(i){return function(){var t,n,r=x();try{n=i.apply(void 0,[].slice.call(arguments))}catch(i){f=void 0;throw i}finally{t=r()}for(var o in n)if(\"function\"==typeof n[o])n[o]=E(n[o]);n[Symbol.dispose]=E(function(){if(t)for(var i=0;i<t.length;i++)t[i].dispose();t=void 0});return n}}export{w as Computed,S as Effect,d as Signal,E as action,n as batch,b as computed,C as createModel,m as effect,c as signal,o as untracked};//# sourceMappingURL=signals-core.module.js.map\n"],"names":["i","t","h","n","v","r","a","o","u","e","d","m","c","l","y","w","b","_","p","S"],"mappings":"AAAA,IAAIA,IAAE,OAAO,IAAI,gBAAgB;AAAE,SAASC,IAAG;AAAC,MAAK,IAAE;AAA0L;AAAA,OAAvL;AAAY,aAAPD,GAAEC,IAAE,IAAkBC,MAAT,UAAW;AAAC,UAAIC,IAAED;AAAe,WAAbA,IAAE,QAAOE,KAAmBD,MAAT,UAAW;AAAC,YAAIE,IAAEF,EAAE;AAAqB,YAAnBA,EAAE,IAAE,QAAOA,EAAE,KAAG,IAAM,EAAE,IAAEA,EAAE,MAAIG,EAAEH,CAAC,EAAE,KAAG;AAAC,UAAAA,EAAE,EAAC;AAAA,QAAE,SAAOA,GAAE;AAAC,UAAIF,MAAGD,IAAEG,GAAEF,IAAE;AAAA,QAAG;AAAC,QAAAE,IAAEE;AAAA,MAAC;AAAA,IAAC;AAAS,QAARD,IAAE,GAAE,KAAOH,EAAE,OAAMD;AAAA,EAAC;AAAS;AAAC,SAASG,EAAEH,GAAE;AAAC,MAAG,IAAE,EAAE,QAAOA,EAAC;AAAG;AAAI,MAAG;AAAC,WAAOA,EAAC;AAAA,EAAE,UAAC;AAAQ,IAAAC,EAAC;AAAA,EAAE;AAAC;AAAC,IAAI,IAAE;AAAO,SAASM,EAAEP,GAAE;AAAC,MAAIC,IAAE;AAAE,MAAE;AAAO,MAAG;AAAC,WAAOD,EAAC;AAAA,EAAE,UAAC;AAAQ,QAAEC;AAAA,EAAC;AAAC;AAAI,IAAGC,IAAE,QAAO,IAAE,GAAEE,IAAE,GAAEI,IAAE;AAAE,SAASC,EAAET,GAAE;AAAC,MAAY,MAAT,QAAW;AAAC,QAAIC,IAAED,EAAE;AAAE,QAAYC,MAAT,UAAYA,EAAE,MAAI;AAAG,aAAAA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EC,CAAC;AAAE,MAAG;AAAC,IAAAE,EAAE,EAAC;AAAA,EAAE,SAAOH,GAAE;AAAC,UAAAG,EAAE,EAAC,GAASH;AAAA,EAAC;AAAC,MAAIK,IAAEF,EAAE,EAAE,KAAKA,CAAC;AAAE,SAAAE,EAAE,OAAO,OAAO,IAAEA,GAASA;AAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"fondue-components134.js","sources":["../src/components/Card/CardContext.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { createContext, useContext } from 'react';\n\ntype CardContextValue = {\n titleId: string;\n};\n\nexport const CardContext = createContext<CardContextValue | null>(null);\nCardContext.displayName = 'CardContext';\n\nexport const useCardContext = () => useContext(CardContext);\n"],"names":["CardContext","createContext","useCardContext","useContext"],"mappings":";AAQO,MAAMA,IAAcC,EAAuC,IAAI;AACtED,EAAY,cAAc;AAEnB,MAAME,IAAiB,MAAMC,EAAWH,CAAW;"}
@@ -1,9 +1,9 @@
1
1
  import { jsx as E } from "react/jsx-runtime";
2
2
  import { useState as S, useMemo as b, Children as V, isValidElement as C, cloneElement as w, useCallback as B, useEffect as x } from "react";
3
- import { SelectClear as F } from "./fondue-components148.js";
4
- import { ForwardedRefSelectItem as L } from "./fondue-components94.js";
5
- import { ForwardedRefSelectSlot as y } from "./fondue-components95.js";
6
- import { getSelectOptionValue as I } from "./fondue-components149.js";
3
+ import { SelectClear as F } from "./fondue-components151.js";
4
+ import { ForwardedRefSelectItem as L } from "./fondue-components99.js";
5
+ import { ForwardedRefSelectSlot as y } from "./fondue-components100.js";
6
+ import { getSelectOptionValue as I } from "./fondue-components152.js";
7
7
  const d = (n, s) => {
8
8
  const [e, r] = S(!1), [m, i] = S(null), [l, f] = S({
9
9
  menuComponents: [],
@@ -1,5 +1,5 @@
1
1
  import { useId as u, useMemo as f } from "react";
2
- import { useTranslation as D } from "./fondue-components42.js";
2
+ import { useTranslation as D } from "./fondue-components43.js";
3
3
  const g = (t, n, r) => {
4
4
  const { t: i } = D(), s = u(), e = f(() => {
5
5
  if (!t || n.length === 0)
@@ -1,6 +1,6 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { Slot as e } from "@radix-ui/react-slot";
3
- import a from "./fondue-components127.js";
3
+ import a from "./fondue-components122.js";
4
4
  const m = ({ children: o, onClear: t }) => /* @__PURE__ */ r(e, { onClick: (l) => {
5
5
  l.stopPropagation(), t();
6
6
  }, className: a.clear, role: "button", "aria-label": "Clear selection", children: o });
@@ -1,40 +1,66 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import { forwardRef as n } from "react";
3
- import { propsToCssVariables as y } from "./fondue-components45.js";
4
- import x from "./fondue-components64.js";
5
- const u = n(
1
+ import { jsx as f } from "react/jsx-runtime";
2
+ import { Slot as v } from "@radix-ui/react-slot";
3
+ import { forwardRef as N, useState as S, useRef as c } from "react";
4
+ import g from "./fondue-components68.js";
5
+ const A = N(
6
6
  ({
7
- as: a = "div",
8
- "data-test-id": e = "fondue-flex",
9
- children: r,
10
- role: i,
11
- "aria-label": d,
12
- "aria-hidden": s,
13
- "aria-describedby": t,
14
- "aria-labelledby": o,
15
- "aria-expanded": l,
16
- "aria-haspopup": p,
17
- ...b
18
- }, f) => /* @__PURE__ */ m(
19
- a,
20
- {
21
- className: x.root,
22
- "data-test-id": e,
23
- style: y(b, { justify: "justify-content" }),
24
- role: i,
25
- "aria-label": d,
26
- "aria-hidden": s,
27
- "aria-describedby": t,
28
- "aria-labelledby": o,
29
- "aria-expanded": l,
30
- "aria-haspopup": p,
31
- ref: f,
32
- children: r
33
- }
34
- )
7
+ onChange: o,
8
+ asChild: m,
9
+ hugWidth: x = !0,
10
+ "aria-label": b,
11
+ children: p,
12
+ "data-test-id": w = "fondue-editable-text"
13
+ }, E) => {
14
+ const R = m ? v : "span", [n, u] = S(!1), s = c(!1), l = c(null), i = c(""), T = () => {
15
+ s.current = !0;
16
+ }, h = (t) => {
17
+ var d;
18
+ i.current = t.currentTarget.textContent ?? "", u(!0), (d = l.current) == null || d.setAttribute("data-show-focus-ring", String(!s.current));
19
+ const a = t.currentTarget, e = document.createRange();
20
+ e.selectNodeContents(a), e.collapse(!1);
21
+ const r = window.getSelection();
22
+ r == null || r.removeAllRanges(), r == null || r.addRange(e);
23
+ }, y = (t) => {
24
+ t.key === "Enter" && (t.preventDefault(), t.currentTarget.blur());
25
+ }, D = (t) => {
26
+ var e;
27
+ u(!1), (e = l.current) == null || e.setAttribute("data-show-focus-ring", "false"), s.current = !1, t.currentTarget.scrollLeft = 0;
28
+ const a = t.currentTarget.textContent ?? "";
29
+ a !== i.current && (o == null || o(a));
30
+ };
31
+ return /* @__PURE__ */ f(
32
+ "div",
33
+ {
34
+ ref: l,
35
+ className: g.root,
36
+ "data-editing": n,
37
+ "data-hug-width": x,
38
+ "data-show-focus-ring": "false",
39
+ "data-test-id": w,
40
+ children: /* @__PURE__ */ f(
41
+ R,
42
+ {
43
+ ref: E,
44
+ className: g.text,
45
+ contentEditable: n ? "plaintext-only" : void 0,
46
+ suppressContentEditableWarning: !0,
47
+ tabIndex: 0,
48
+ role: n ? "textbox" : void 0,
49
+ "aria-label": n ? b : void 0,
50
+ "aria-live": "off",
51
+ onMouseDown: T,
52
+ onFocus: h,
53
+ onKeyDown: y,
54
+ onBlur: D,
55
+ children: p
56
+ }
57
+ )
58
+ }
59
+ );
60
+ }
35
61
  );
36
- u.displayName = "Flex";
62
+ A.displayName = "EditableText";
37
63
  export {
38
- u as Flex
64
+ A as EditableText
39
65
  };
40
66
  //# sourceMappingURL=fondue-components14.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fondue-components14.js","sources":["../src/components/Flex/Flex.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { forwardRef, type ReactNode } from 'react';\n\nimport { type CommonAriaProps } from '#/helpers/aria';\nimport { type Responsive, type SizeValue, type LayoutComponentProps } from '#/helpers/layout';\nimport { propsToCssVariables } from '#/helpers/propsToCssVariables';\n\nimport styles from './styles/flex.module.scss';\n\nexport type FlexProps = LayoutComponentProps & {\n /**\n * The element to render the Flex component as.\n * @default 'div'\n */\n as?: 'div' | 'span';\n /**\n * The display property.\n * @default 'flex'\n */\n display?: Responsive<'none' | 'flex' | 'inline-flex'>;\n /**\n * The direction of the children.\n * @default 'row'\n */\n direction?: Responsive<'row' | 'row-reverse' | 'column' | 'column-reverse'>;\n /**\n * The alignment of the children.\n */\n align?: Responsive<'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline'>;\n /**\n * The justification of the children.\n */\n justify?: Responsive<'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly'>;\n /**\n * The wrap property.\n */\n wrap?: Responsive<'nowrap' | 'wrap' | 'wrap-reverse'>;\n /**\n * The gap between the children.\n */\n gap?: Responsive<SizeValue>;\n /**\n * The horizontal gap between the children.\n */\n gapX?: Responsive<SizeValue>;\n /**\n * The vertical gap between the children.\n */\n gapY?: Responsive<SizeValue>;\n\n children?: ReactNode;\n 'data-test-id'?: string;\n} & CommonAriaProps;\n\nexport const Flex = forwardRef<HTMLDivElement, FlexProps>(\n (\n {\n as: Component = 'div',\n 'data-test-id': dataTestId = 'fondue-flex',\n children,\n role,\n 'aria-label': ariaLabel,\n 'aria-hidden': ariaHidden,\n 'aria-describedby': ariaDescribedBy,\n 'aria-labelledby': ariaLabelledBy,\n 'aria-expanded': ariaExpanded,\n 'aria-haspopup': ariaHasPopup,\n ...props\n },\n ref,\n ) => {\n return (\n <Component\n className={styles.root}\n data-test-id={dataTestId}\n style={propsToCssVariables(props, { justify: 'justify-content' })}\n role={role}\n aria-label={ariaLabel}\n aria-hidden={ariaHidden}\n aria-describedby={ariaDescribedBy}\n aria-labelledby={ariaLabelledBy}\n aria-expanded={ariaExpanded}\n aria-haspopup={ariaHasPopup}\n ref={ref}\n >\n {children}\n </Component>\n );\n },\n);\nFlex.displayName = 'Flex';\n"],"names":["Flex","forwardRef","Component","dataTestId","children","role","ariaLabel","ariaHidden","ariaDescribedBy","ariaLabelledBy","ariaExpanded","ariaHasPopup","props","ref","jsx","styles","propsToCssVariables"],"mappings":";;;;AAuDO,MAAMA,IAAOC;AAAA,EAChB,CACI;AAAA,IACI,IAAIC,IAAY;AAAA,IAChB,gBAAgBC,IAAa;AAAA,IAC7B,UAAAC;AAAA,IACA,MAAAC;AAAA,IACA,cAAcC;AAAA,IACd,eAAeC;AAAA,IACf,oBAAoBC;AAAA,IACpB,mBAAmBC;AAAA,IACnB,iBAAiBC;AAAA,IACjB,iBAAiBC;AAAA,IACjB,GAAGC;AAAA,EAAA,GAEPC,MAGI,gBAAAC;AAAA,IAACZ;AAAA,IAAA;AAAA,MACG,WAAWa,EAAO;AAAA,MAClB,gBAAcZ;AAAA,MACd,OAAOa,EAAoBJ,GAAO,EAAE,SAAS,mBAAmB;AAAA,MAChE,MAAAP;AAAA,MACA,cAAYC;AAAA,MACZ,eAAaC;AAAA,MACb,oBAAkBC;AAAA,MAClB,mBAAiBC;AAAA,MACjB,iBAAeC;AAAA,MACf,iBAAeC;AAAA,MACf,KAAAE;AAAA,MAEC,UAAAT;AAAA,IAAA;AAAA,EAAA;AAIjB;AACAJ,EAAK,cAAc;"}
1
+ {"version":3,"file":"fondue-components14.js","sources":["../src/components/EditableText/EditableText.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { Slot } from '@radix-ui/react-slot';\nimport { type ReactNode, forwardRef, useRef, useState } from 'react';\n\nimport styles from './styles/editable-text.module.scss';\n\nexport type EditableTextProps = {\n /**\n * Callback fired with the plain text value when editing is confirmed (on blur or Enter).\n * Only fires if the value has actually changed.\n */\n onChange?: (value: string) => void;\n /**\n * When true, renders the child element instead of a default span,\n * merging all editable props onto it.\n */\n asChild?: boolean;\n /**\n * When true, the EditableText only takes the width of the content.\n * @default true\n */\n hugWidth?: boolean;\n /**\n * Accessible label for the editable text field.\n */\n 'aria-label'?: string;\n children?: ReactNode;\n 'data-test-id'?: string;\n};\n\nexport const EditableText = forwardRef<HTMLElement, EditableTextProps>(\n (\n {\n onChange,\n asChild,\n hugWidth = true,\n 'aria-label': ariaLabel,\n children,\n 'data-test-id': dataTestId = 'fondue-editable-text',\n },\n forwardedRef,\n ) => {\n const TextElement = asChild ? Slot : 'span';\n const [isEditing, setIsEditing] = useState(false);\n const wasClickedRef = useRef(false);\n const rootRef = useRef<HTMLDivElement>(null);\n const valueOnFocusRef = useRef('');\n\n const handleMouseDown = () => {\n wasClickedRef.current = true;\n };\n\n const handleFocus = (event: React.FocusEvent<HTMLElement>) => {\n valueOnFocusRef.current = event.currentTarget.textContent ?? '';\n setIsEditing(true);\n rootRef.current?.setAttribute('data-show-focus-ring', String(!wasClickedRef.current));\n const element = event.currentTarget;\n const range = document.createRange();\n range.selectNodeContents(element);\n range.collapse(false);\n const selection = window.getSelection();\n selection?.removeAllRanges();\n selection?.addRange(range);\n };\n\n const handleKeyDown = (event: React.KeyboardEvent<HTMLElement>) => {\n if (event.key === 'Enter') {\n event.preventDefault();\n event.currentTarget.blur();\n }\n };\n\n const handleBlur = (event: React.FocusEvent<HTMLElement>) => {\n setIsEditing(false);\n rootRef.current?.setAttribute('data-show-focus-ring', 'false');\n wasClickedRef.current = false;\n event.currentTarget.scrollLeft = 0;\n const currentValue = event.currentTarget.textContent ?? '';\n if (currentValue !== valueOnFocusRef.current) {\n onChange?.(currentValue);\n }\n };\n\n return (\n <div\n ref={rootRef}\n className={styles.root}\n data-editing={isEditing}\n data-hug-width={hugWidth}\n data-show-focus-ring=\"false\"\n data-test-id={dataTestId}\n >\n <TextElement\n ref={forwardedRef}\n className={styles.text}\n contentEditable={isEditing ? 'plaintext-only' : undefined}\n suppressContentEditableWarning\n tabIndex={0}\n role={isEditing ? 'textbox' : undefined}\n aria-label={isEditing ? ariaLabel : undefined}\n aria-live=\"off\"\n onMouseDown={handleMouseDown}\n onFocus={handleFocus}\n onKeyDown={handleKeyDown}\n onBlur={handleBlur}\n >\n {children}\n </TextElement>\n </div>\n );\n },\n);\n\nEditableText.displayName = 'EditableText';\n"],"names":["EditableText","forwardRef","onChange","asChild","hugWidth","ariaLabel","children","dataTestId","forwardedRef","TextElement","Slot","isEditing","setIsEditing","useState","wasClickedRef","useRef","rootRef","valueOnFocusRef","handleMouseDown","handleFocus","event","_a","element","range","selection","handleKeyDown","handleBlur","currentValue","jsx","styles"],"mappings":";;;;AA+BO,MAAMA,IAAeC;AAAA,EACxB,CACI;AAAA,IACI,UAAAC;AAAA,IACA,SAAAC;AAAA,IACA,UAAAC,IAAW;AAAA,IACX,cAAcC;AAAA,IACd,UAAAC;AAAA,IACA,gBAAgBC,IAAa;AAAA,EAAA,GAEjCC,MACC;AACD,UAAMC,IAAcN,IAAUO,IAAO,QAC/B,CAACC,GAAWC,CAAY,IAAIC,EAAS,EAAK,GAC1CC,IAAgBC,EAAO,EAAK,GAC5BC,IAAUD,EAAuB,IAAI,GACrCE,IAAkBF,EAAO,EAAE,GAE3BG,IAAkB,MAAM;AAC1B,MAAAJ,EAAc,UAAU;AAAA,IAC5B,GAEMK,IAAc,CAACC,MAAyC;;AAC1D,MAAAH,EAAgB,UAAUG,EAAM,cAAc,eAAe,IAC7DR,EAAa,EAAI,IACjBS,IAAAL,EAAQ,YAAR,QAAAK,EAAiB,aAAa,wBAAwB,OAAO,CAACP,EAAc,OAAO;AACnF,YAAMQ,IAAUF,EAAM,eAChBG,IAAQ,SAAS,YAAA;AACvB,MAAAA,EAAM,mBAAmBD,CAAO,GAChCC,EAAM,SAAS,EAAK;AACpB,YAAMC,IAAY,OAAO,aAAA;AACzB,MAAAA,KAAA,QAAAA,EAAW,mBACXA,KAAA,QAAAA,EAAW,SAASD;AAAA,IACxB,GAEME,IAAgB,CAACL,MAA4C;AAC/D,MAAIA,EAAM,QAAQ,YACdA,EAAM,eAAA,GACNA,EAAM,cAAc,KAAA;AAAA,IAE5B,GAEMM,IAAa,CAACN,MAAyC;;AACzD,MAAAR,EAAa,EAAK,IAClBS,IAAAL,EAAQ,YAAR,QAAAK,EAAiB,aAAa,wBAAwB,UACtDP,EAAc,UAAU,IACxBM,EAAM,cAAc,aAAa;AACjC,YAAMO,IAAeP,EAAM,cAAc,eAAe;AACxD,MAAIO,MAAiBV,EAAgB,YACjCf,KAAA,QAAAA,EAAWyB;AAAA,IAEnB;AAEA,WACI,gBAAAC;AAAA,MAAC;AAAA,MAAA;AAAA,QACG,KAAKZ;AAAA,QACL,WAAWa,EAAO;AAAA,QAClB,gBAAclB;AAAA,QACd,kBAAgBP;AAAA,QAChB,wBAAqB;AAAA,QACrB,gBAAcG;AAAA,QAEd,UAAA,gBAAAqB;AAAA,UAACnB;AAAA,UAAA;AAAA,YACG,KAAKD;AAAA,YACL,WAAWqB,EAAO;AAAA,YAClB,iBAAiBlB,IAAY,mBAAmB;AAAA,YAChD,gCAA8B;AAAA,YAC9B,UAAU;AAAA,YACV,MAAMA,IAAY,YAAY;AAAA,YAC9B,cAAYA,IAAYN,IAAY;AAAA,YACpC,aAAU;AAAA,YACV,aAAaa;AAAA,YACb,SAASC;AAAA,YACT,WAAWM;AAAA,YACX,QAAQC;AAAA,YAEP,UAAApB;AAAA,UAAA;AAAA,QAAA;AAAA,MACL;AAAA,IAAA;AAAA,EAGZ;AACJ;AAEAN,EAAa,cAAc;"}
@@ -1,8 +1,8 @@
1
1
  import { jsxs as S, jsx as f } from "react/jsx-runtime";
2
2
  import { useRef as m, useState as C, useEffect as _ } from "react";
3
3
  import { Badge as w } from "./fondue-components4.js";
4
- import { useTranslation as I } from "./fondue-components42.js";
5
- import p from "./fondue-components127.js";
4
+ import { useTranslation as I } from "./fondue-components43.js";
5
+ import p from "./fondue-components122.js";
6
6
  const W = 4, D = 40, E = 24, M = (r, h, u, o) => {
7
7
  const g = r.offsetWidth;
8
8
  let s = o ? E + W : 0, n = 0;
@@ -2,9 +2,9 @@ import { jsx as r } from "react/jsx-runtime";
2
2
  import * as p from "@radix-ui/react-popover";
3
3
  import { Slot as M } from "@radix-ui/react-slot";
4
4
  import { isValidElement as T } from "react";
5
- import { useFondueTheme as E, ThemeProvider as F } from "./fondue-components39.js";
6
- import a from "./fondue-components127.js";
7
- import { recursiveMap as R, getSelectOptionValue as _ } from "./fondue-components149.js";
5
+ import { useFondueTheme as E, ThemeProvider as F } from "./fondue-components40.js";
6
+ import a from "./fondue-components122.js";
7
+ import { recursiveMap as R, getSelectOptionValue as _ } from "./fondue-components152.js";
8
8
  const j = ({
9
9
  highlightedIndex: l,
10
10
  getMenuProps: u,
@@ -1,7 +1,7 @@
1
1
  import { jsxs as c, Fragment as n, jsx as r } from "react/jsx-runtime";
2
2
  import { IconCheckMark as i, IconExclamationMarkTriangle as l } from "@frontify/fondue-icons";
3
- import { useTranslation as m } from "./fondue-components42.js";
4
- import s from "./fondue-components127.js";
3
+ import { useTranslation as m } from "./fondue-components43.js";
4
+ import s from "./fondue-components122.js";
5
5
  const f = ({ status: o, hasError: a, dataTestId: e }) => {
6
6
  const { t } = m();
7
7
  return /* @__PURE__ */ c(n, { children: [