@lmvz-ds/components 0.12.3-alpha.3 → 0.12.3

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 (138) hide show
  1. package/dist/cjs/{Effect-BIlTHtLK.js → Effect-CNhHt4Xb.js} +615 -885
  2. package/dist/cjs/MutableQueue-Bk9tBfaK.js +462 -0
  3. package/dist/cjs/{aria-validation-controller-B7unOPxT.js → aria-validation-controller-B3hMkau3.js} +157 -156
  4. package/dist/cjs/assets-iuJtMMdw.js +60 -0
  5. package/dist/cjs/{icons-CvFeZlNJ.js → icons-CAiJpiUC.js} +22 -74
  6. package/dist/cjs/index.cjs.js +4 -2
  7. package/dist/cjs/lmvz-button.cjs.entry.js +3 -2
  8. package/dist/cjs/lmvz-card.cjs.entry.js +7 -2
  9. package/dist/cjs/lmvz-header.cjs.entry.js +3 -2
  10. package/dist/cjs/lmvz-icon.cjs.entry.js +5 -3
  11. package/dist/cjs/lmvz-input.cjs.entry.js +3 -2
  12. package/dist/cjs/lmvz-menuitem.cjs.entry.js +3 -2
  13. package/dist/collection/components/lmvz-card/lmvz-card.js +8 -3
  14. package/dist/collection/components/lmvz-icon/icons.js +3 -3
  15. package/dist/collection/utils/{url.js → assets.js} +1 -1
  16. package/dist/components/index.js +1 -1
  17. package/dist/components/lmvz-button.js +1 -1
  18. package/dist/components/lmvz-card.js +1 -1
  19. package/dist/components/lmvz-header.js +1 -1
  20. package/dist/components/lmvz-icon.js +1 -1
  21. package/dist/components/lmvz-input.js +1 -1
  22. package/dist/components/lmvz-menuitem.js +1 -1
  23. package/dist/components/p-3I3wZmp8.js +1 -0
  24. package/dist/components/p-BQTNPxka.js +1 -0
  25. package/dist/components/p-CdofjRtQ.js +1 -0
  26. package/dist/components/p-xpxyPpHZ.js +1 -0
  27. package/dist/esm/{Effect-D9S7OTyY.js → Effect-BhQLGXPs.js} +568 -829
  28. package/dist/esm/MutableQueue-CNlEFklh.js +431 -0
  29. package/dist/esm/{aria-validation-controller-C7nQzCCq.js → aria-validation-controller-iA4YWFG-.js} +2 -1
  30. package/dist/esm/assets-BymuU366.js +57 -0
  31. package/dist/esm/{icons-AUbenGXq.js → icons-D7UubWaN.js} +5 -57
  32. package/dist/esm/index.js +4 -2
  33. package/dist/esm/lmvz-button.entry.js +3 -2
  34. package/dist/esm/lmvz-card.entry.js +8 -3
  35. package/dist/esm/lmvz-header.entry.js +3 -2
  36. package/dist/esm/lmvz-icon.entry.js +5 -3
  37. package/dist/esm/lmvz-input.entry.js +3 -2
  38. package/dist/esm/lmvz-menuitem.entry.js +3 -2
  39. package/dist/lmvz-components/index.esm.js +1 -1
  40. package/dist/lmvz-components/lmvz-components.esm.js +1 -1
  41. package/dist/lmvz-components/p-1d916449.entry.js +1 -0
  42. package/dist/lmvz-components/p-274c36df.entry.js +1 -0
  43. package/dist/lmvz-components/p-4b70fe08.entry.js +1 -0
  44. package/dist/lmvz-components/p-68001ab7.entry.js +1 -0
  45. package/dist/lmvz-components/p-77e26e71.entry.js +1 -0
  46. package/dist/lmvz-components/p-BhQLGXPs.js +1 -0
  47. package/dist/lmvz-components/p-CXWyvf0D.js +1 -0
  48. package/dist/lmvz-components/p-Ce_AL9kY.js +1 -0
  49. package/dist/lmvz-components/p-D7I-Bc5i.js +1 -0
  50. package/dist/lmvz-components/p-DohldYb4.js +1 -0
  51. package/dist/lmvz-components/p-de18e27e.entry.js +1 -0
  52. package/dist/manifest.json +1 -1
  53. package/dist/types/components/lmvz-card/lmvz-card.d.ts +1 -0
  54. package/dist/types/utils/{url.d.ts → assets.d.ts} +1 -1
  55. package/hydrate/index.js +487 -7
  56. package/hydrate/index.mjs +487 -7
  57. package/package.json +4 -4
  58. package/dist/components/p-4GImsUGe.js +0 -1
  59. package/dist/components/p-BFwzIh71.js +0 -1
  60. package/dist/lmvz-components/assets/LMVZ_logo_175.svg +0 -1
  61. package/dist/lmvz-components/assets/card-placeholder.svg +0 -4
  62. package/dist/lmvz-components/assets/fonts/Router-Bold.woff +0 -0
  63. package/dist/lmvz-components/assets/fonts/Router-Book.woff +0 -0
  64. package/dist/lmvz-components/assets/fonts/Router-Medium.woff +0 -0
  65. package/dist/lmvz-components/assets/icons/Logo.svg +0 -10
  66. package/dist/lmvz-components/assets/icons/actions.svg +0 -5
  67. package/dist/lmvz-components/assets/icons/adduser.svg +0 -3
  68. package/dist/lmvz-components/assets/icons/alert.svg +0 -3
  69. package/dist/lmvz-components/assets/icons/apple.svg +0 -3
  70. package/dist/lmvz-components/assets/icons/arrow-down.svg +0 -3
  71. package/dist/lmvz-components/assets/icons/arrow-left.svg +0 -3
  72. package/dist/lmvz-components/assets/icons/arrow-right.svg +0 -3
  73. package/dist/lmvz-components/assets/icons/arrow-up.svg +0 -3
  74. package/dist/lmvz-components/assets/icons/book.svg +0 -3
  75. package/dist/lmvz-components/assets/icons/bookmark.svg +0 -3
  76. package/dist/lmvz-components/assets/icons/checkmark.svg +0 -3
  77. package/dist/lmvz-components/assets/icons/chevron-down.svg +0 -3
  78. package/dist/lmvz-components/assets/icons/chevron-left.svg +0 -3
  79. package/dist/lmvz-components/assets/icons/chevron-right.svg +0 -3
  80. package/dist/lmvz-components/assets/icons/chevron-up.svg +0 -3
  81. package/dist/lmvz-components/assets/icons/close-l.svg +0 -3
  82. package/dist/lmvz-components/assets/icons/close-sm.svg +0 -3
  83. package/dist/lmvz-components/assets/icons/cog.svg +0 -4
  84. package/dist/lmvz-components/assets/icons/computer.svg +0 -3
  85. package/dist/lmvz-components/assets/icons/dashboard.svg +0 -6
  86. package/dist/lmvz-components/assets/icons/delete.svg +0 -3
  87. package/dist/lmvz-components/assets/icons/download.svg +0 -3
  88. package/dist/lmvz-components/assets/icons/edit.svg +0 -3
  89. package/dist/lmvz-components/assets/icons/external.svg +0 -3
  90. package/dist/lmvz-components/assets/icons/facebook.svg +0 -3
  91. package/dist/lmvz-components/assets/icons/favorite.svg +0 -3
  92. package/dist/lmvz-components/assets/icons/filter.svg +0 -3
  93. package/dist/lmvz-components/assets/icons/group.svg +0 -3
  94. package/dist/lmvz-components/assets/icons/hide.svg +0 -3
  95. package/dist/lmvz-components/assets/icons/home.svg +0 -3
  96. package/dist/lmvz-components/assets/icons/info.svg +0 -3
  97. package/dist/lmvz-components/assets/icons/instagram.svg +0 -3
  98. package/dist/lmvz-components/assets/icons/letter.svg +0 -3
  99. package/dist/lmvz-components/assets/icons/linkedin.svg +0 -5
  100. package/dist/lmvz-components/assets/icons/logout.svg +0 -3
  101. package/dist/lmvz-components/assets/icons/map.svg +0 -3
  102. package/dist/lmvz-components/assets/icons/minus.svg +0 -3
  103. package/dist/lmvz-components/assets/icons/navigation.svg +0 -3
  104. package/dist/lmvz-components/assets/icons/plus.svg +0 -3
  105. package/dist/lmvz-components/assets/icons/qr-scan.svg +0 -3
  106. package/dist/lmvz-components/assets/icons/question.svg +0 -10
  107. package/dist/lmvz-components/assets/icons/reader.svg +0 -3
  108. package/dist/lmvz-components/assets/icons/reset.svg +0 -3
  109. package/dist/lmvz-components/assets/icons/school.svg +0 -3
  110. package/dist/lmvz-components/assets/icons/search.svg +0 -3
  111. package/dist/lmvz-components/assets/icons/send.svg +0 -3
  112. package/dist/lmvz-components/assets/icons/settings.svg +0 -3
  113. package/dist/lmvz-components/assets/icons/share.svg +0 -10
  114. package/dist/lmvz-components/assets/icons/shopping-cart.svg +0 -3
  115. package/dist/lmvz-components/assets/icons/show.svg +0 -3
  116. package/dist/lmvz-components/assets/icons/snapchat.svg +0 -3
  117. package/dist/lmvz-components/assets/icons/sort.svg +0 -3
  118. package/dist/lmvz-components/assets/icons/speech-bubble.svg +0 -3
  119. package/dist/lmvz-components/assets/icons/star.svg +0 -3
  120. package/dist/lmvz-components/assets/icons/student.svg +0 -3
  121. package/dist/lmvz-components/assets/icons/upload.svg +0 -3
  122. package/dist/lmvz-components/assets/icons/user.svg +0 -3
  123. package/dist/lmvz-components/assets/icons/warn-circle.svg +0 -3
  124. package/dist/lmvz-components/assets/icons/warn-triangle.svg +0 -3
  125. package/dist/lmvz-components/assets/icons/whatsapp.svg +0 -4
  126. package/dist/lmvz-components/assets/icons/world.svg +0 -10
  127. package/dist/lmvz-components/assets/icons/x.svg +0 -3
  128. package/dist/lmvz-components/assets/icons/youtube.svg +0 -3
  129. package/dist/lmvz-components/assets/zukunftslinie.svg +0 -3
  130. package/dist/lmvz-components/p-CMnnKjsp.js +0 -1
  131. package/dist/lmvz-components/p-D9S7OTyY.js +0 -1
  132. package/dist/lmvz-components/p-DlrjrWsu.js +0 -1
  133. package/dist/lmvz-components/p-a4615e4b.entry.js +0 -1
  134. package/dist/lmvz-components/p-a8c88454.entry.js +0 -1
  135. package/dist/lmvz-components/p-b7f0a6fd.entry.js +0 -1
  136. package/dist/lmvz-components/p-e63e239a.entry.js +0 -1
  137. package/dist/lmvz-components/p-f956a5e7.entry.js +0 -1
  138. package/dist/lmvz-components/p-fefd2fe4.entry.js +0 -1
@@ -0,0 +1,431 @@
1
+ import { aq as deferredMake, aB as deferredAwait, az as deferredSucceed, bZ as deferredFailCause, aG as deferredUnsafeMake, b_ as deferredInterrupt, b$ as deferredDone, c0 as deferredIsDone, c1 as exitIsFailure, c2 as exitIsSuccess, c3 as exitMatch, c4 as exitFailCause, c5 as exitSucceed, c6 as exitFail, c7 as exitZipRight, c8 as exitCollectAll, c9 as exitVoid, ca as exitDie, cb as exitMap, cc as exitZip, ap as dual, as as pipeArguments, cd as NodeInspectSymbol, ce as toJSON, cf as format, aJ as prepend, aO as empty$1, cg as reverse } from './Effect-BhQLGXPs.js';
2
+
3
+ /**
4
+ * Creates a new `Deferred`.
5
+ *
6
+ * @since 2.0.0
7
+ * @category constructors
8
+ */
9
+ const make$1 = deferredMake;
10
+ const _await = deferredAwait;
11
+ /**
12
+ * Exits the `Deferred` with the specified `Exit` value, which will be
13
+ * propagated to all fibers waiting on the value of the `Deferred`.
14
+ *
15
+ * @since 2.0.0
16
+ * @category utils
17
+ */
18
+ const done = deferredDone;
19
+ /**
20
+ * Fails the `Deferred` with the specified `Cause`, which will be propagated to
21
+ * all fibers waiting on the value of the `Deferred`.
22
+ *
23
+ * @since 2.0.0
24
+ * @category utils
25
+ */
26
+ const failCause$1 = deferredFailCause;
27
+ /**
28
+ * Completes the `Deferred` with interruption. This will interrupt all fibers
29
+ * waiting on the value of the `Deferred` with the `FiberId` of the fiber
30
+ * calling this method.
31
+ *
32
+ * @since 2.0.0
33
+ * @category utils
34
+ */
35
+ const interrupt = deferredInterrupt;
36
+ /**
37
+ * Returns `true` if this `Deferred` has already been completed with a value or
38
+ * an error, `false` otherwise.
39
+ *
40
+ * @since 2.0.0
41
+ * @category getters
42
+ */
43
+ const isDone = deferredIsDone;
44
+ /**
45
+ * Completes the `Deferred` with the specified value.
46
+ *
47
+ * @since 2.0.0
48
+ * @category utils
49
+ */
50
+ const succeed$1 = deferredSucceed;
51
+ /**
52
+ * Unsafely creates a new `Deferred` from the specified `FiberId`.
53
+ *
54
+ * @since 2.0.0
55
+ * @category unsafe
56
+ */
57
+ const unsafeMake = deferredUnsafeMake;
58
+
59
+ /**
60
+ * Returns `true` if the specified `Exit` is a `Failure`, `false` otherwise.
61
+ *
62
+ * @since 2.0.0
63
+ * @category refinements
64
+ */
65
+ const isFailure = exitIsFailure;
66
+ /**
67
+ * Returns `true` if the specified `Exit` is a `Success`, `false` otherwise.
68
+ *
69
+ * @since 2.0.0
70
+ * @category refinements
71
+ */
72
+ const isSuccess = exitIsSuccess;
73
+ /**
74
+ * Collects all of the specified exit values into a `Some<Exit<List<A>, E>>`. If
75
+ * the provided iterable contains no elements, `None` will be returned.
76
+ *
77
+ * @since 2.0.0
78
+ * @category constructors
79
+ */
80
+ const all = exitCollectAll;
81
+ /**
82
+ * Constructs a new `Exit.Failure` from the specified unrecoverable defect.
83
+ *
84
+ * @since 2.0.0
85
+ * @category constructors
86
+ */
87
+ const die = exitDie;
88
+ /**
89
+ * Constructs a new `Exit.Failure` from the specified recoverable error of type
90
+ * `E`.
91
+ *
92
+ * @since 2.0.0
93
+ * @category constructors
94
+ */
95
+ const fail = exitFail;
96
+ /**
97
+ * Constructs a new `Exit.Failure` from the specified `Cause` of type `E`.
98
+ *
99
+ * @since 2.0.0
100
+ * @category constructors
101
+ */
102
+ const failCause = exitFailCause;
103
+ /**
104
+ * Maps over the `Success` value of the specified exit using the provided
105
+ * function.
106
+ *
107
+ * @since 2.0.0
108
+ * @category mapping
109
+ */
110
+ const map = exitMap;
111
+ /**
112
+ * @since 2.0.0
113
+ * @category folding
114
+ */
115
+ const match = exitMatch;
116
+ /**
117
+ * Constructs a new `Exit.Success` containing the specified value of type `A`.
118
+ *
119
+ * @since 2.0.0
120
+ * @category constructors
121
+ */
122
+ const succeed = exitSucceed;
123
+ const void_ = exitVoid;
124
+ /**
125
+ * Sequentially zips the this result with the specified result or else returns
126
+ * the failed `Cause<E | E2>`.
127
+ *
128
+ * @since 2.0.0
129
+ * @category zipping
130
+ */
131
+ const zip = exitZip;
132
+ /**
133
+ * Sequentially zips the this result with the specified result discarding the
134
+ * first element of the tuple or else returns the failed `Cause<E | E2>`.
135
+ *
136
+ * @since 2.0.0
137
+ * @category zipping
138
+ */
139
+ const zipRight = exitZipRight;
140
+
141
+ /**
142
+ * @since 2.0.0
143
+ */
144
+ const TypeId$1 = /*#__PURE__*/Symbol.for("effect/MutableList");
145
+ const MutableListProto = {
146
+ [TypeId$1]: TypeId$1,
147
+ [Symbol.iterator]() {
148
+ let done = false;
149
+ let head = this.head;
150
+ return {
151
+ next() {
152
+ if (done) {
153
+ return this.return();
154
+ }
155
+ if (head == null) {
156
+ done = true;
157
+ return this.return();
158
+ }
159
+ const value = head.value;
160
+ head = head.next;
161
+ return {
162
+ done,
163
+ value
164
+ };
165
+ },
166
+ return(value) {
167
+ if (!done) {
168
+ done = true;
169
+ }
170
+ return {
171
+ done: true,
172
+ value
173
+ };
174
+ }
175
+ };
176
+ },
177
+ toString() {
178
+ return format(this.toJSON());
179
+ },
180
+ toJSON() {
181
+ return {
182
+ _id: "MutableList",
183
+ values: Array.from(this).map(toJSON)
184
+ };
185
+ },
186
+ [NodeInspectSymbol]() {
187
+ return this.toJSON();
188
+ },
189
+ pipe() {
190
+ return pipeArguments(this, arguments);
191
+ }
192
+ };
193
+ /** @internal */
194
+ const makeNode = value => ({
195
+ value,
196
+ removed: false,
197
+ prev: undefined,
198
+ next: undefined
199
+ });
200
+ /**
201
+ * Creates an empty `MutableList`.
202
+ *
203
+ * @since 2.0.0
204
+ * @category constructors
205
+ */
206
+ const empty = () => {
207
+ const list = Object.create(MutableListProto);
208
+ list.head = undefined;
209
+ list.tail = undefined;
210
+ list._length = 0;
211
+ return list;
212
+ };
213
+ /**
214
+ * Returns `true` if the list contains zero elements, `false`, otherwise.
215
+ *
216
+ * @since 2.0.0
217
+ * @category getters
218
+ */
219
+ const isEmpty$1 = self => length$1(self) === 0;
220
+ /**
221
+ * Returns the length of the list.
222
+ *
223
+ * @since 2.0.0
224
+ * @category getters
225
+ */
226
+ const length$1 = self => self._length;
227
+ /**
228
+ * Appends the specified element to the end of the `MutableList`.
229
+ *
230
+ * @category concatenating
231
+ * @since 2.0.0
232
+ */
233
+ const append = /*#__PURE__*/dual(2, (self, value) => {
234
+ const node = makeNode(value);
235
+ if (self.head === undefined) {
236
+ self.head = node;
237
+ }
238
+ if (self.tail === undefined) {
239
+ self.tail = node;
240
+ } else {
241
+ self.tail.next = node;
242
+ node.prev = self.tail;
243
+ self.tail = node;
244
+ }
245
+ self._length += 1;
246
+ return self;
247
+ });
248
+ /**
249
+ * Removes the first value from the list and returns it, if it exists.
250
+ *
251
+ * @since 0.0.1
252
+ */
253
+ const shift = self => {
254
+ const head = self.head;
255
+ if (head !== undefined) {
256
+ remove(self, head);
257
+ return head.value;
258
+ }
259
+ return undefined;
260
+ };
261
+ const remove = (self, node) => {
262
+ if (node.removed) {
263
+ return;
264
+ }
265
+ node.removed = true;
266
+ if (node.prev !== undefined && node.next !== undefined) {
267
+ node.prev.next = node.next;
268
+ node.next.prev = node.prev;
269
+ } else if (node.prev !== undefined) {
270
+ self.tail = node.prev;
271
+ node.prev.next = undefined;
272
+ } else if (node.next !== undefined) {
273
+ self.head = node.next;
274
+ node.next.prev = undefined;
275
+ } else {
276
+ self.tail = undefined;
277
+ self.head = undefined;
278
+ }
279
+ if (self._length > 0) {
280
+ self._length -= 1;
281
+ }
282
+ };
283
+
284
+ /**
285
+ * @since 2.0.0
286
+ */
287
+ const TypeId = /*#__PURE__*/Symbol.for("effect/MutableQueue");
288
+ /**
289
+ * @since 2.0.0
290
+ * @category symbol
291
+ */
292
+ const EmptyMutableQueue = /*#__PURE__*/Symbol.for("effect/mutable/MutableQueue/Empty");
293
+ const MutableQueueProto = {
294
+ [TypeId]: TypeId,
295
+ [Symbol.iterator]() {
296
+ return Array.from(this.queue)[Symbol.iterator]();
297
+ },
298
+ toString() {
299
+ return format(this.toJSON());
300
+ },
301
+ toJSON() {
302
+ return {
303
+ _id: "MutableQueue",
304
+ values: Array.from(this).map(toJSON)
305
+ };
306
+ },
307
+ [NodeInspectSymbol]() {
308
+ return this.toJSON();
309
+ },
310
+ pipe() {
311
+ return pipeArguments(this, arguments);
312
+ }
313
+ };
314
+ const make = capacity => {
315
+ const queue = Object.create(MutableQueueProto);
316
+ queue.queue = empty();
317
+ queue.capacity = capacity;
318
+ return queue;
319
+ };
320
+ /**
321
+ * Creates a new bounded `MutableQueue`.
322
+ *
323
+ * @since 2.0.0
324
+ * @category constructors
325
+ */
326
+ const bounded = capacity => make(capacity);
327
+ /**
328
+ * Creates a new unbounded `MutableQueue`.
329
+ *
330
+ * @since 2.0.0
331
+ * @category constructors
332
+ */
333
+ const unbounded = () => make(undefined);
334
+ /**
335
+ * Returns the current number of elements in the queue.
336
+ *
337
+ * @since 2.0.0
338
+ * @category getters
339
+ */
340
+ const length = self => length$1(self.queue);
341
+ /**
342
+ * Returns `true` if the queue is empty, `false` otherwise.
343
+ *
344
+ * @since 2.0.0
345
+ * @category getters
346
+ */
347
+ const isEmpty = self => isEmpty$1(self.queue);
348
+ /**
349
+ * The **maximum** number of elements that a queue can hold.
350
+ *
351
+ * **Note**: unbounded queues can still implement this interface with
352
+ * `capacity = Infinity`.
353
+ *
354
+ * @since 2.0.0
355
+ * @category getters
356
+ */
357
+ const capacity = self => self.capacity === undefined ? Infinity : self.capacity;
358
+ /**
359
+ * Offers an element to the queue.
360
+ *
361
+ * Returns whether the enqueue was successful or not.
362
+ *
363
+ * @since 2.0.0
364
+ */
365
+ const offer = /*#__PURE__*/dual(2, (self, value) => {
366
+ const queueLength = length$1(self.queue);
367
+ if (self.capacity !== undefined && queueLength === self.capacity) {
368
+ return false;
369
+ }
370
+ append(value)(self.queue);
371
+ return true;
372
+ });
373
+ /**
374
+ * Enqueues a collection of values into the queue.
375
+ *
376
+ * Returns a `Chunk` of the values that were **not** able to be enqueued.
377
+ *
378
+ * @since 2.0.0
379
+ */
380
+ const offerAll = /*#__PURE__*/dual(2, (self, values) => {
381
+ const iterator = values[Symbol.iterator]();
382
+ let next;
383
+ let remainder = empty$1();
384
+ let offering = true;
385
+ while (offering && (next = iterator.next()) && !next.done) {
386
+ offering = offer(next.value)(self);
387
+ }
388
+ while (next != null && !next.done) {
389
+ remainder = prepend(next.value)(remainder);
390
+ next = iterator.next();
391
+ }
392
+ return reverse(remainder);
393
+ });
394
+ /**
395
+ * Dequeues an element from the queue.
396
+ *
397
+ * Returns either an element from the queue, or the `def` param.
398
+ *
399
+ * **Note**: if there is no meaningful default for your type, you can always
400
+ * use `poll(MutableQueue.EmptyMutableQueue)`.
401
+ *
402
+ * @since 2.0.0
403
+ */
404
+ const poll = /*#__PURE__*/dual(2, (self, def) => {
405
+ if (isEmpty$1(self.queue)) {
406
+ return def;
407
+ }
408
+ return shift(self.queue);
409
+ });
410
+ /**
411
+ * Dequeues up to `n` elements from the queue.
412
+ *
413
+ * Returns a `List` of up to `n` elements.
414
+ *
415
+ * @since 2.0.0
416
+ */
417
+ const pollUpTo = /*#__PURE__*/dual(2, (self, n) => {
418
+ let result = empty$1();
419
+ let count = 0;
420
+ while (count < n) {
421
+ const element = poll(EmptyMutableQueue)(self);
422
+ if (element === EmptyMutableQueue) {
423
+ break;
424
+ }
425
+ result = prepend(element)(result);
426
+ count += 1;
427
+ }
428
+ return reverse(result);
429
+ });
430
+
431
+ export { zip as A, isSuccess as B, EmptyMutableQueue as E, _await as _, unbounded as a, pollUpTo as b, isEmpty as c, done as d, offerAll as e, bounded as f, capacity as g, isFailure as h, interrupt as i, failCause as j, all as k, length as l, match as m, die as n, offer as o, poll as p, map as q, make$1 as r, succeed as s, isDone as t, unsafeMake as u, void_ as v, succeed$1 as w, failCause$1 as x, fail as y, zipRight as z };
@@ -1,5 +1,6 @@
1
1
  import { B as Build } from './index-smGPjoDX.js';
2
- import { ae as make$4, af as modify$1, ag as get$1, ah as update$1, ai as isInterrupted$1, aj as fail$2, ak as failureOrCause$1, al as flipCauseOption$1, am as map$3, an as die$1, ao as interrupt$2, ap as isDieType$1, aq as interruptors$1, ar as isInterruptedOnly$1, as as join$1, at as interruptFiber, au as _await$1, av as inheritAll$1, aw as interruptAsFiber, R as pipe, F as flatMap$2, p as sync$1, ax as dual, h as map$4, O as make$5, P as unbounded$2, ay as deferredMake, az as Class, aA as pipeArguments, u as suspend$2, aB as catchAll, aC as interrupt$3, aD as get$2, x as none, A as some, aE as length, aF as uninterruptible, aG as withFiberRuntime, N as set, Y as asVoid, aH as whenEffect, aI as deferredSucceed, a2 as zipRight$1, aJ as forEachConcurrentDiscard, aK as deferredAwait, L as poll, M as EmptyMutableQueue, w as succeed$1, aL as fromIterable, aM as empty, aN as splitAt, aO as isEmpty, aP as deferredUnsafeMake, a1 as onInterrupt, J as offer$2, aQ as fromIterable$1, aR as pollUpTo, aS as deferredUnsafeDone, aT as prepend, aU as isEmpty$1, aV as filter, aW as appendAll, aX as append, aY as offerAll, aZ as deferredInterruptWith, a_ as empty$1, a$ as bounded$2, b0 as capacity, b1 as void_$1, n as fiberId, b2 as isFailure, W as hasProperty, b3 as isEffect, i as identity, b4 as match$1, b5 as _void, b6 as ignore, b7 as zipWith, b8 as exit, b9 as zipRight$2, ba as sync$2, bb as provide, bc as matchCauseEffect, bd as zipRight$3, be as flatMap$3, bf as forkDaemon, bg as interruptible, bh as suspend$3, bi as ensuring$2, bj as uninterruptible$1, bk as map$5, bl as zip$1, $ as succeed$2, bm as failCause$3, bn as match$2, bo as forEach, s as succeed$3, z as isSome, bp as all, bq as getOrElse, br as void_$2, bs as dieMessage, bt as catchAllCause, bu as die$2, bv as map$6, bw as uninterruptibleMask, bx as all$1, by as fork, bz as make$6, bA as sequential, bB as acquireUseRelease, bC as forkIn, bD as isDone, bE as succeed$4, bF as size$2, bG as combineAll, _ as _await$2, bH as intoDeferred, bI as zipLeft, bJ as tapErrorCause, bK as addFinalizer, bL as failCause$4, bM as flatten$2, bN as fiberIdWith, bO as interrupt$4, b as left, a as right, bP as failCause$5, bQ as fail$3, bR as matchCause, bS as scopedWith$2, bT as unsafeGet, bU as constVoid, bV as scope, a8 as gen, bW as withFiberRuntime$1, bX as make$7, bY as extend, bZ as close, b_ as raceWith, b$ as runtime, c0 as tap, c1 as addFinalizerExit, c2 as makeSemaphore, c3 as when, c4 as race, c5 as as, m as match$3, c6 as repeat, c7 as asVoid$1, X as equals, c8 as zip$2, c9 as raceFirst, ca as forever, cb as of$1, cc as fail$4, cd as mapError, ce as reduce, cf as map$7, cg as match$4, ch as splitWhere, ci as isSuccess, cj as head, ck as filterMap, c as catchAll$1, cl as catchSomeCause, cm as unsafeFromArray, cn as runFork, co as promise, cp as async } from './Effect-D9S7OTyY.js';
2
+ import { a6 as make$4, a7 as modify$1, a8 as get$1, a9 as update$1, aa as isInterrupted$1, ab as fail$2, ac as failureOrCause$1, ad as flipCauseOption$1, ae as map$3, af as die$1, ag as interrupt$2, ah as isDieType$1, ai as interruptors$1, aj as isInterruptedOnly$1, ak as join$1, al as interruptFiber, am as _await$1, an as inheritAll$1, ao as interruptAsFiber, N as pipe, F as flatMap$2, q as sync$1, ap as dual, j as map$4, L as make$5, aq as deferredMake, ar as Class, as as pipeArguments, v as suspend$2, at as catchAll, au as interrupt$3, av as get$2, y as none, B as some, aw as uninterruptible, ax as withFiberRuntime, K as set, U as asVoid, ay as whenEffect, az as deferredSucceed, Y as zipRight$1, aA as forEachConcurrentDiscard, aB as deferredAwait, x as succeed$1, aC as fromIterable, aD as empty, aE as splitAt, aF as isEmpty, aG as deferredUnsafeMake, X as onInterrupt, aH as fromIterable$1, aI as deferredUnsafeDone, aJ as prepend, aK as filter, aL as appendAll, aM as append, aN as deferredInterruptWith, aO as empty$1, aP as void_$1, o as fiberId, S as hasProperty, aQ as isEffect, i as identity, aR as match$1, aS as _void, aT as ignore, aU as zipWith, aV as exit, aW as sync$2, aX as provide, aY as matchCauseEffect, aZ as zipRight$3, a_ as flatMap$3, a$ as forkDaemon, b0 as interruptible, b1 as suspend$3, b2 as ensuring$2, b3 as uninterruptible$1, b4 as map$5, b5 as zip$1, b6 as forEach, s as succeed$3, A as isSome, b7 as getOrElse, b8 as dieMessage, b9 as catchAllCause, ba as uninterruptibleMask, bb as all$1, bc as fork, bd as sequential, be as acquireUseRelease, bf as forkIn, bg as size$2, bh as combineAll, bi as intoDeferred, bj as zipLeft, bk as tapErrorCause, bl as addFinalizer, bm as failCause$4, bn as flatten$2, bo as fiberIdWith, bp as interrupt$4, d as left, b as right, bq as matchCause, br as scopedWith$2, bs as unsafeGet, bt as constVoid, bu as scope, $ as gen, bv as withFiberRuntime$1, bw as make$7, bx as extend, by as close, bz as raceWith, bA as runtime, bB as tap, bC as addFinalizerExit, bD as makeSemaphore, bE as when, bF as race, bG as as, m as match$3, bH as repeat, bI as asVoid$1, T as equals, bJ as raceFirst, bK as forever, bL as of$1, bM as fail$4, bN as mapError, bO as reduce, bP as map$7, bQ as match$4, bR as splitWhere, bS as head, bT as filterMap, c as catchAll$1, bU as catchSomeCause, bV as unsafeFromArray, bW as runFork, bX as promise, bY as async } from './Effect-BhQLGXPs.js';
3
+ import { a as unbounded$2, l as length, p as poll, E as EmptyMutableQueue, o as offer$2, b as pollUpTo, c as isEmpty$1, e as offerAll, f as bounded$2, g as capacity, h as isFailure, z as zipRight$2, s as succeed$2, j as failCause$3, m as match$2, k as all, v as void_$2, n as die$2, q as map$6, r as make$6, t as isDone, w as succeed$4, _ as _await$2, x as failCause$5, y as fail$3, A as zip$2, B as isSuccess } from './MutableQueue-CNlEFklh.js';
3
4
 
4
5
  /**
5
6
  * @since 2.0.0
@@ -0,0 +1,57 @@
1
+ import { a as getAssetPath } from './index-smGPjoDX.js';
2
+ import { a4 as YieldableError, a1 as try_, t as tapError, a2 as logWarning, a5 as orElseSucceed } from './Effect-BhQLGXPs.js';
3
+
4
+ /**
5
+ * Provides a constructor for a Case Class.
6
+ *
7
+ * @since 2.0.0
8
+ * @category constructors
9
+ */
10
+ const Error = /*#__PURE__*/function () {
11
+ const plainArgsSymbol = /*#__PURE__*/Symbol.for("effect/Data/Error/plainArgs");
12
+ const O = {
13
+ BaseEffectError: class extends YieldableError {
14
+ constructor(args) {
15
+ super(args?.message, args?.cause ? {
16
+ cause: args.cause
17
+ } : undefined);
18
+ if (args) {
19
+ Object.assign(this, args);
20
+ // @effect-diagnostics-next-line floatingEffect:off
21
+ Object.defineProperty(this, plainArgsSymbol, {
22
+ value: args,
23
+ enumerable: false
24
+ });
25
+ }
26
+ }
27
+ toJSON() {
28
+ return {
29
+ ...this[plainArgsSymbol],
30
+ ...this
31
+ };
32
+ }
33
+ }
34
+ };
35
+ return O.BaseEffectError;
36
+ }();
37
+ /**
38
+ * @since 2.0.0
39
+ * @category constructors
40
+ */
41
+ const TaggedError = tag => {
42
+ const O = {
43
+ BaseEffectError: class extends Error {
44
+ _tag = tag;
45
+ }
46
+ };
47
+ O.BaseEffectError.prototype.name = tag;
48
+ return O.BaseEffectError;
49
+ };
50
+
51
+ class URLCreationError extends TaggedError('URLCreationError') {
52
+ }
53
+ const syncCreateAssetUrlSafely = (file) => try_(() => getAssetPath(['../../assets', file].join('/').replace('//', '/').replace('/./', '/'))).pipe(tapError(() => logWarning(`Failed to create URL for icon "${file}".
54
+ Please provide an absolute URL in your app's 'setAssetPath(...)' configuration!
55
+ Falling back to /assets/`)), orElseSucceed(() => window.location.origin + '/assets/' + file));
56
+
57
+ export { TaggedError as T, syncCreateAssetUrlSafely as s };
@@ -1,5 +1,6 @@
1
- import { g as getOrThrowWith, a as right, b as left, i as identity, d as isRight, e as getRight, m as match, f as decode, h as map, j as all, k as context, n as fiberId, o as merge, p as sync, q as size, u as suspend, v as get, w as succeed, x as none, y as has, z as isSome, A as some, B as getOrUndefined, C as unsafeMake, D as set, E as struct, F as flatMap, G as remove, H as empty, I as clockWith, J as offer, K as compareAndSet, L as poll, M as EmptyMutableQueue, N as set$1, O as make$2, P as unbounded, Q as symbol, R as pipe, S as cached, T as combine, U as hash, V as symbol$1, W as hasProperty, X as equals, Y as asVoid, _ as _await, Z as when, $ as succeed$1, a0 as toMillis, a1 as onInterrupt, a2 as zipRight, a3 as interrupt, a4 as done, a5 as exit, a6 as provideContext, a7 as YieldableError, a8 as gen, a9 as tryPromise, aa as try_, t as tapError, ab as logWarning, ac as orElseSucceed, ad as infinity } from './Effect-D9S7OTyY.js';
2
- import { a as getAssetPath } from './index-smGPjoDX.js';
1
+ import { g as getOrThrowWith, b as right, d as left, i as identity, e as isRight, f as getRight, m as match, h as decode, j as map, k as all, n as context, o as fiberId, p as merge, q as sync, u as size, v as suspend, w as get, x as succeed, y as none, z as has, A as isSome, B as some, C as getOrUndefined, D as set, E as struct, F as flatMap, G as remove, H as empty, I as clockWith, J as compareAndSet, K as set$1, L as make$2, M as symbol, N as pipe, O as cached, P as combine, Q as hash, R as symbol$1, S as hasProperty, T as equals, U as asVoid, V as when, W as toMillis, X as onInterrupt, Y as zipRight, Z as exit, _ as provideContext, $ as gen, a0 as tryPromise, a1 as try_, a2 as logWarning, a3 as infinity } from './Effect-BhQLGXPs.js';
2
+ import { u as unsafeMake, o as offer, p as poll, E as EmptyMutableQueue, a as unbounded, _ as _await, s as succeed$1, i as interrupt, d as done } from './MutableQueue-CNlEFklh.js';
3
+ import { T as TaggedError, s as syncCreateAssetUrlSafely } from './assets-BymuU366.js';
3
4
 
4
5
  /**
5
6
  * This module provides types and utility functions to create and work with branded types,
@@ -518,53 +519,6 @@ const makeWith = options => map(all([context(), fiberId]), ([context, fiberId])
518
519
  */
519
520
  const make = make$1;
520
521
 
521
- /**
522
- * Provides a constructor for a Case Class.
523
- *
524
- * @since 2.0.0
525
- * @category constructors
526
- */
527
- const Error$1 = /*#__PURE__*/function () {
528
- const plainArgsSymbol = /*#__PURE__*/Symbol.for("effect/Data/Error/plainArgs");
529
- const O = {
530
- BaseEffectError: class extends YieldableError {
531
- constructor(args) {
532
- super(args?.message, args?.cause ? {
533
- cause: args.cause
534
- } : undefined);
535
- if (args) {
536
- Object.assign(this, args);
537
- // @effect-diagnostics-next-line floatingEffect:off
538
- Object.defineProperty(this, plainArgsSymbol, {
539
- value: args,
540
- enumerable: false
541
- });
542
- }
543
- }
544
- toJSON() {
545
- return {
546
- ...this[plainArgsSymbol],
547
- ...this
548
- };
549
- }
550
- }
551
- };
552
- return O.BaseEffectError;
553
- }();
554
- /**
555
- * @since 2.0.0
556
- * @category constructors
557
- */
558
- const TaggedError = tag => {
559
- const O = {
560
- BaseEffectError: class extends Error$1 {
561
- _tag = tag;
562
- }
563
- };
564
- O.BaseEffectError.prototype.name = tag;
565
- return O.BaseEffectError;
566
- };
567
-
568
522
  class FetchError extends TaggedError('FetchError') {
569
523
  }
570
524
  class NotFoundError extends TaggedError('NotFoundError') {
@@ -589,12 +543,6 @@ const responseAsText = (res) => tryPromise({
589
543
  catch: error => new ResponseTextError(error),
590
544
  });
591
545
 
592
- class URLCreationError extends TaggedError('URLCreationError') {
593
- }
594
- const createAssetUrlSafely = (file) => try_(() => getAssetPath([file].join('/').replace('//', '/'))).pipe(tapError(() => logWarning(`Failed to create URL for icon "${file}".
595
- Please provide an absolute URL in your app's 'setAssetPath(...)' configuration!
596
- Falling back to /assets/`)), orElseSucceed(() => window.location.origin + '/assets/' + file));
597
-
598
546
  const SVGString = refined(isValidSVG, () => error('SVG data is malformed'));
599
547
  class BrandValidationError extends TaggedError('BrandValidationError') {
600
548
  constructor(error, type) {
@@ -625,8 +573,8 @@ const createIconCache = () => make({
625
573
  timeToLive: infinity,
626
574
  lookup: (key) => gen(function* () {
627
575
  const name = key;
628
- const icon = `../assets/icons/${name}.svg`;
629
- const assetPath = yield* createAssetUrlSafely(icon);
576
+ const icon = `/icons/${name}.svg`;
577
+ const assetPath = yield* syncCreateAssetUrlSafely(icon);
630
578
  const res = yield* httpClient(assetPath);
631
579
  const responseString = yield* responseAsText(res);
632
580
  return yield* createValidSVGString(responseString);
package/dist/esm/index.js CHANGED
@@ -1,5 +1,7 @@
1
- export { c as clearIconCache } from './icons-AUbenGXq.js';
2
- import { r as runPromise } from './Effect-D9S7OTyY.js';
1
+ export { c as clearIconCache } from './icons-D7UubWaN.js';
2
+ import { r as runPromise } from './Effect-BhQLGXPs.js';
3
+ import './MutableQueue-CNlEFklh.js';
4
+ import './assets-BymuU366.js';
3
5
  import './index-smGPjoDX.js';
4
6
 
5
7
  const variants = ['primary', 'secondary', 'tertiary'];
@@ -2,9 +2,10 @@ import { g as getElement, r as registerInstance, c as createEvent, h, H as Host
2
2
  import { c as classNames } from './index-Bt32KzDW.js';
3
3
  import { i as inheritAriaAttributes, f as findFormByRef } from './component-B3JVFwO1.js';
4
4
  import { E as ElementActivationController } from './element-activation-controller-CN0JX9-m.js';
5
- import { R as ReactiveControllerHost, A as AriaValidationController } from './aria-validation-controller-C7nQzCCq.js';
5
+ import { R as ReactiveControllerHost, A as AriaValidationController } from './aria-validation-controller-iA4YWFG-.js';
6
6
  import './_commonjsHelpers-B85MJLTf.js';
7
- import './Effect-D9S7OTyY.js';
7
+ import './Effect-BhQLGXPs.js';
8
+ import './MutableQueue-CNlEFklh.js';
8
9
 
9
10
  const lmvzButtonCss = () => ` @layer lmvz-ds.reset, lmvz-ds.theme, lmvz-ds.components, lmvz-ds.overrides; @layer lmvz-ds.theme { @font-face { font-family: Router; src: local('Router-Book'), url('/assets/fonts/Router-Book.woff') format('woff'), local('Router'); font-weight: 400 normal; } @font-face { font-family: Router; src: local('Router-Medium'), url('/assets/fonts/Router-Medium.woff') format('woff'), local('Router'); font-weight: 500; } @font-face { font-family: Router; src: local('Router-Bold'), url('/assets/fonts/Router-Bold.woff') format('woff'), local('Router'); font-weight: 700 bold; } } @layer lmvz-ds.reset { h1, h2, h3, h4, h5, h6 { margin: 0; } } :host { button { --lmvz-button-color: var(--lmvz-component-color, var(--lmvz-semantic-color-int-on-primary, #ffffff)); --lmvz-button-padding-inline: var(--lmvz-button-padding, var(--lmvz-component-input-md-padding-x, clamp(0.75rem, 0.69rem + 0.26vw, 1rem))); --lmvz-button-padding-block: var(--lmvz-button-padding, var(--lmvz-component-input-md-padding-y, clamp(0.75rem, 0.69rem + 0.26vw, 1rem))); --lmvz-button-gap: var(--lmvz-component-input-md-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); --lmvz-button-font: var(--lmvz-typography-body-lg, 400 clamp(1rem, 0.97rem + 0.13vw, 1.13rem) / 1.4 Router); --lmvz-button-radius: var(--lmvz-component-input-radius-default, 999px); --lmvz-button-border-width: 0; --lmvz-button-border-color: transparent; --lmvz-button-background: var(--lmvz-semantic-color-int-primary, #000000); display: inline-flex; align-items: center; justify-content: center; gap: var(--lmvz-button-gap); padding-block: var(--lmvz-button-padding-block); padding-inline: var(--lmvz-button-padding-inline); border-radius: var(--lmvz-button-radius); border: var(--lmvz-button-border-width) solid var(--lmvz-button-border-color); background-color: var(--lmvz-button-background); color: var(--lmvz-button-color); cursor: pointer; font: var(--lmvz-button-font); text-align: center; text-decoration: none; white-space: nowrap; transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; } button > * { font: inherit; color: inherit; } button:focus-visible { outline: var(--lmvz-semantic-border-width-default, 1px) solid var(--lmvz-semantic-color-status-selected, #f1f9fe); outline-offset: var(--lmvz-component-input-sm-padding-x, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem)); } button:is([disabled], .disabled) { cursor: not-allowed; pointer-events: none; opacity: var(--lmvz-component-input-disabled-opacity, 40%); } button:not([disabled]):hover { --lmvz-button-background: var(--lmvz-semantic-color-int-primary-hover, #2e2e2e); } button:not([disabled]):active { --lmvz-button-background: var(--lmvz-semantic-color-int-primary-active, #545454); } button.secondary { --lmvz-button-background: var(--lmvz-semantic-color-int-secondary, #f0f0f0); --lmvz-button-color: var(--lmvz-semantic-color-int-on-secondary, #000000); --lmvz-button-border-width: var(--lmvz-semantic-border-width-default, 1px); --lmvz-button-border-color: var(--lmvz-semantic-color-border-default, #e0e0e0); } button.secondary:not([disabled], .disabled):hover { --lmvz-button-background: var(--lmvz-semantic-color-int-secondary-hover, #e0e0e0); --lmvz-button-border-color: var(--lmvz-semantic-color-border-hover, #c7c7c7); } button.secondary:not([disabled], .disabled):active { --lmvz-button-background: var(--lmvz-semantic-color-int-secondary-active, #d4d4d4); --lmvz-button-border-color: var(--lmvz-semantic-color-border-active, #d4d4d4); } button.tertiary { --lmvz-button-background: var(--lmvz-semantic-color-int-tertiary, #ffffff); --lmvz-button-color: var(--lmvz-semantic-color-int-on-tertiary, #545454); } button.tertiary:not([disabled], .disabled):hover { --lmvz-button-background: var(--lmvz-semantic-color-int-tertiary-hover, #f0f0f0); } button.tertiary:not([disabled], .disabled):active { --lmvz-button-background: var(--lmvz-semantic-color-int-tertiary-active, #e0e0e0); } button.small { --lmvz-button-padding-inline: var(--lmvz-component-input-sm-padding-x, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem)); --lmvz-button-padding-block: var(--lmvz-component-input-sm-padding-y, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem)); --lmvz-button-gap: var(--lmvz-component-input-sm-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); --lmvz-button-font: var(--lmvz-typography-body-md, 400 clamp(0.88rem, 0.84rem + 0.13vw, 1rem) / 1.4 Router); } button.large { --lmvz-button-padding-inline: var(--lmvz-component-input-lg-padding-x, clamp(0.88rem, 0.78rem + 0.39vw, 1.25rem)); --lmvz-button-padding-block: var(--lmvz-component-input-lg-padding-y, clamp(0.88rem, 0.78rem + 0.39vw, 1.25rem)); --lmvz-button-gap: var(--lmvz-component-input-lg-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem)); --lmvz-button-font: var(--lmvz-typography-body-lg, 400 clamp(1rem, 0.97rem + 0.13vw, 1.13rem) / 1.4 Router); } display: contents; } ::slotted(*) { --lmvz-component-color: var(--lmvz-button-color); } `;
10
11