@caspeco/casper-ui-library 9.0.2 → 9.2.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.
- package/README.md +10 -4
- package/dist/components/combobox/combobox.d.ts.map +1 -1
- package/dist/components/icon/icons/calendar-icon.d.ts +2 -0
- package/dist/components/icon/icons/calendar-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/calendar-icon.js +8 -0
- package/dist/components/icon/icons/cart-icon.js +1 -1
- package/dist/components/icon/icons/closed-icon.d.ts +2 -0
- package/dist/components/icon/icons/closed-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/closed-icon.js +8 -0
- package/dist/components/icon/icons/comment-add-icon.d.ts +2 -0
- package/dist/components/icon/icons/comment-add-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/comment-add-icon.js +8 -0
- package/dist/components/icon/icons/comment-icon.js +1 -1
- package/dist/components/icon/icons/deliverect-icon.d.ts +2 -0
- package/dist/components/icon/icons/deliverect-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/deliverect-icon.js +8 -0
- package/dist/components/icon/icons/door-closed-icon.d.ts +2 -0
- package/dist/components/icon/icons/door-closed-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/door-closed-icon.js +8 -0
- package/dist/components/icon/icons/door-open-icon.d.ts +2 -0
- package/dist/components/icon/icons/door-open-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/door-open-icon.js +8 -0
- package/dist/components/icon/icons/failed-print-icon.d.ts +2 -0
- package/dist/components/icon/icons/failed-print-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/failed-print-icon.js +8 -0
- package/dist/components/icon/icons/index.d.ts +27 -4
- package/dist/components/icon/icons/index.d.ts.map +1 -1
- package/dist/components/icon/icons/key-command-icon.d.ts +2 -0
- package/dist/components/icon/icons/key-command-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/key-command-icon.js +8 -0
- package/dist/components/icon/icons/key-enter-icon.d.ts +2 -0
- package/dist/components/icon/icons/key-enter-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/key-enter-icon.js +8 -0
- package/dist/components/icon/icons/key-option-icon.d.ts +2 -0
- package/dist/components/icon/icons/key-option-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/key-option-icon.js +8 -0
- package/dist/components/icon/icons/message-add-icon.d.ts +2 -0
- package/dist/components/icon/icons/message-add-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/message-add-icon.js +8 -0
- package/dist/components/icon/icons/message-icon.js +1 -1
- package/dist/components/icon/icons/message-lines-icon.d.ts +2 -0
- package/dist/components/icon/icons/message-lines-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/message-lines-icon.js +8 -0
- package/dist/components/icon/icons/module-home-icon.js +1 -1
- package/dist/components/icon/icons/no-cart-icon.d.ts +2 -0
- package/dist/components/icon/icons/no-cart-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/no-cart-icon.js +8 -0
- package/dist/components/icon/icons/note-icon.d.ts +2 -0
- package/dist/components/icon/icons/note-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/note-icon.js +8 -0
- package/dist/components/icon/icons/product-my-pages-icon.d.ts +2 -0
- package/dist/components/icon/icons/product-my-pages-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/product-my-pages-icon.js +8 -0
- package/dist/components/icon/icons/puck-icon.d.ts +2 -0
- package/dist/components/icon/icons/puck-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/puck-icon.js +8 -0
- package/dist/components/icon/icons/redo-icon.d.ts +2 -0
- package/dist/components/icon/icons/redo-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/redo-icon.js +8 -0
- package/dist/components/icon/icons/sidebar-hide-icon.d.ts +2 -0
- package/dist/components/icon/icons/sidebar-hide-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/sidebar-hide-icon.js +8 -0
- package/dist/components/icon/icons/sidebar-left-icon.d.ts +2 -0
- package/dist/components/icon/icons/sidebar-left-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/sidebar-left-icon.js +8 -0
- package/dist/components/icon/icons/sidebar-right-icon.d.ts +2 -0
- package/dist/components/icon/icons/sidebar-right-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/sidebar-right-icon.js +8 -0
- package/dist/components/icon/icons/sidebar-show-icon.d.ts +2 -0
- package/dist/components/icon/icons/sidebar-show-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/sidebar-show-icon.js +8 -0
- package/dist/components/icon/icons/swatch-icon.d.ts +2 -0
- package/dist/components/icon/icons/swatch-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/swatch-icon.js +8 -0
- package/dist/components/icon/icons/trivec-icon.d.ts +2 -0
- package/dist/components/icon/icons/trivec-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/trivec-icon.js +9 -0
- package/dist/components/icon/icons/waste-icon.d.ts +2 -0
- package/dist/components/icon/icons/waste-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/waste-icon.js +8 -0
- package/dist/components/table/table-toolbar-settings.d.ts +15 -1
- package/dist/components/table/table-toolbar-settings.d.ts.map +1 -1
- package/dist/components/table/table-toolbar-settings.js +71 -44
- package/dist/components/table/table-toolbar-settings.spec.d.ts +2 -0
- package/dist/components/table/table-toolbar-settings.spec.d.ts.map +1 -0
- package/dist/components/table/table.constants.d.ts +2 -0
- package/dist/components/table/table.constants.d.ts.map +1 -0
- package/dist/components/table/table.constants.js +4 -0
- package/dist/components/table/translations.d.ts +14 -0
- package/dist/components/table/translations.d.ts.map +1 -1
- package/dist/components/table/translations.js +12 -0
- package/dist/index.js +727 -681
- package/dist/node_modules/@dnd-kit/abstract/index.js +502 -442
- package/dist/node_modules/@dnd-kit/dom/index.js +817 -779
- package/dist/node_modules/@dnd-kit/dom/sortable.js +260 -262
- package/dist/node_modules/@dnd-kit/dom/utilities.js +470 -463
- package/dist/node_modules/@dnd-kit/react/hooks.js +26 -26
- package/dist/node_modules/@dnd-kit/react/index.js +8 -1
- package/dist/node_modules/@dnd-kit/react/sortable.js +45 -46
- package/dist/node_modules/@preact/signals-core/dist/signals-core.module.js +11 -11
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +85 -73
- package/package.json +20 -18
- package/dist/components/icon/icons/tablet-icon.d.ts +0 -2
- package/dist/components/icon/icons/tablet-icon.d.ts.map +0 -1
- package/dist/components/icon/icons/tablet-icon.js +0 -8
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { memo as
|
|
2
|
-
const
|
|
1
|
+
import { memo as p, notUndefined as M, approxEqual as R, debounce as _ } from "./utils.js";
|
|
2
|
+
const I = (l) => {
|
|
3
3
|
const { offsetWidth: a, offsetHeight: t } = l;
|
|
4
4
|
return { width: a, height: t };
|
|
5
|
-
},
|
|
5
|
+
}, F = (l) => l, W = (l) => {
|
|
6
6
|
const a = Math.max(l.startIndex - l.overscan, 0), t = Math.min(l.endIndex + l.overscan, l.count - 1), e = [];
|
|
7
7
|
for (let s = a; s <= t; s++)
|
|
8
8
|
e.push(s);
|
|
9
9
|
return e;
|
|
10
|
-
},
|
|
10
|
+
}, k = (l, a) => {
|
|
11
11
|
const t = l.scrollElement;
|
|
12
12
|
if (!t)
|
|
13
13
|
return;
|
|
@@ -18,7 +18,7 @@ const M = (l) => {
|
|
|
18
18
|
const { width: n, height: r } = o;
|
|
19
19
|
a({ width: Math.round(n), height: Math.round(r) });
|
|
20
20
|
};
|
|
21
|
-
if (s(
|
|
21
|
+
if (s(I(t)), !e.ResizeObserver)
|
|
22
22
|
return () => {
|
|
23
23
|
};
|
|
24
24
|
const i = new e.ResizeObserver((o) => {
|
|
@@ -31,16 +31,16 @@ const M = (l) => {
|
|
|
31
31
|
return;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
s(
|
|
34
|
+
s(I(t));
|
|
35
35
|
};
|
|
36
36
|
l.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(n) : n();
|
|
37
37
|
});
|
|
38
38
|
return i.observe(t, { box: "border-box" }), () => {
|
|
39
39
|
i.unobserve(t);
|
|
40
40
|
};
|
|
41
|
-
},
|
|
41
|
+
}, w = {
|
|
42
42
|
passive: !0
|
|
43
|
-
},
|
|
43
|
+
}, z = typeof window > "u" ? !0 : "onscrollend" in window, D = (l, a) => {
|
|
44
44
|
const t = l.scrollElement;
|
|
45
45
|
if (!t)
|
|
46
46
|
return;
|
|
@@ -48,23 +48,23 @@ const M = (l) => {
|
|
|
48
48
|
if (!e)
|
|
49
49
|
return;
|
|
50
50
|
let s = 0;
|
|
51
|
-
const i = l.options.useScrollendEvent &&
|
|
52
|
-
} :
|
|
51
|
+
const i = l.options.useScrollendEvent && z ? () => {
|
|
52
|
+
} : _(
|
|
53
53
|
e,
|
|
54
54
|
() => {
|
|
55
55
|
a(s, !1);
|
|
56
56
|
},
|
|
57
57
|
l.options.isScrollingResetDelay
|
|
58
58
|
), o = (c) => () => {
|
|
59
|
-
const { horizontal:
|
|
60
|
-
s =
|
|
59
|
+
const { horizontal: d, isRtl: v } = l.options;
|
|
60
|
+
s = d ? t.scrollLeft * (v && -1 || 1) : t.scrollTop, i(), a(s, c);
|
|
61
61
|
}, n = o(!0), r = o(!1);
|
|
62
|
-
t.addEventListener("scroll", n,
|
|
63
|
-
const u = l.options.useScrollendEvent &&
|
|
64
|
-
return u && t.addEventListener("scrollend", r,
|
|
62
|
+
t.addEventListener("scroll", n, w);
|
|
63
|
+
const u = l.options.useScrollendEvent && z;
|
|
64
|
+
return u && t.addEventListener("scrollend", r, w), () => {
|
|
65
65
|
t.removeEventListener("scroll", n), u && t.removeEventListener("scrollend", r);
|
|
66
66
|
};
|
|
67
|
-
},
|
|
67
|
+
}, N = (l, a, t) => {
|
|
68
68
|
if (a?.borderBoxSize) {
|
|
69
69
|
const e = a.borderBoxSize[0];
|
|
70
70
|
if (e)
|
|
@@ -73,7 +73,7 @@ const M = (l) => {
|
|
|
73
73
|
);
|
|
74
74
|
}
|
|
75
75
|
return l[t.options.horizontal ? "offsetWidth" : "offsetHeight"];
|
|
76
|
-
},
|
|
76
|
+
}, V = (l, {
|
|
77
77
|
adjustments: a = 0,
|
|
78
78
|
behavior: t
|
|
79
79
|
}, e) => {
|
|
@@ -84,7 +84,7 @@ const M = (l) => {
|
|
|
84
84
|
behavior: t
|
|
85
85
|
});
|
|
86
86
|
};
|
|
87
|
-
class
|
|
87
|
+
class j {
|
|
88
88
|
constructor(a) {
|
|
89
89
|
this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.scrollState = null, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.laneAssignments = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.prevLanes = void 0, this.lanesChangedFlag = !1, this.lanesSettling = !1, this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.now = () => {
|
|
90
90
|
var t, e, s;
|
|
@@ -133,11 +133,11 @@ class D {
|
|
|
133
133
|
scrollPaddingStart: 0,
|
|
134
134
|
scrollPaddingEnd: 0,
|
|
135
135
|
horizontal: !1,
|
|
136
|
-
getItemKey:
|
|
137
|
-
rangeExtractor:
|
|
136
|
+
getItemKey: F,
|
|
137
|
+
rangeExtractor: W,
|
|
138
138
|
onChange: () => {
|
|
139
139
|
},
|
|
140
|
-
measureElement:
|
|
140
|
+
measureElement: N,
|
|
141
141
|
initialRect: { width: 0, height: 0 },
|
|
142
142
|
scrollMargin: 0,
|
|
143
143
|
gap: 0,
|
|
@@ -149,12 +149,13 @@ class D {
|
|
|
149
149
|
isRtl: !1,
|
|
150
150
|
useScrollendEvent: !1,
|
|
151
151
|
useAnimationFrameWithResizeObserver: !1,
|
|
152
|
+
laneAssignmentMode: "estimate",
|
|
152
153
|
...t
|
|
153
154
|
};
|
|
154
155
|
}, this.notify = (t) => {
|
|
155
156
|
var e, s;
|
|
156
157
|
(s = (e = this.options).onChange) == null || s.call(e, this, t);
|
|
157
|
-
}, this.maybeNotify =
|
|
158
|
+
}, this.maybeNotify = p(
|
|
158
159
|
() => (this.calculateRange(), [
|
|
159
160
|
this.isScrolling,
|
|
160
161
|
this.range ? this.range.startIndex : null,
|
|
@@ -212,29 +213,39 @@ class D {
|
|
|
212
213
|
break;
|
|
213
214
|
}
|
|
214
215
|
return i.size === this.options.lanes ? Array.from(i.values()).sort((o, n) => o.end === n.end ? o.index - n.index : o.end - n.end)[0] : void 0;
|
|
215
|
-
}, this.getMeasurementOptions =
|
|
216
|
+
}, this.getMeasurementOptions = p(
|
|
216
217
|
() => [
|
|
217
218
|
this.options.count,
|
|
218
219
|
this.options.paddingStart,
|
|
219
220
|
this.options.scrollMargin,
|
|
220
221
|
this.options.getItemKey,
|
|
221
222
|
this.options.enabled,
|
|
222
|
-
this.options.lanes
|
|
223
|
+
this.options.lanes,
|
|
224
|
+
this.options.laneAssignmentMode
|
|
223
225
|
],
|
|
224
|
-
(t, e, s, i, o, n) => (this.prevLanes !== void 0 && this.prevLanes !== n && (this.lanesChangedFlag = !0), this.prevLanes = n, this.pendingMeasuredCacheIndexes = [], {
|
|
226
|
+
(t, e, s, i, o, n, r) => (this.prevLanes !== void 0 && this.prevLanes !== n && (this.lanesChangedFlag = !0), this.prevLanes = n, this.pendingMeasuredCacheIndexes = [], {
|
|
225
227
|
count: t,
|
|
226
228
|
paddingStart: e,
|
|
227
229
|
scrollMargin: s,
|
|
228
230
|
getItemKey: i,
|
|
229
231
|
enabled: o,
|
|
230
|
-
lanes: n
|
|
232
|
+
lanes: n,
|
|
233
|
+
laneAssignmentMode: r
|
|
231
234
|
}),
|
|
232
235
|
{
|
|
233
236
|
key: !1
|
|
234
237
|
}
|
|
235
|
-
), this.getMeasurements =
|
|
238
|
+
), this.getMeasurements = p(
|
|
236
239
|
() => [this.getMeasurementOptions(), this.itemSizeCache],
|
|
237
|
-
({
|
|
240
|
+
({
|
|
241
|
+
count: t,
|
|
242
|
+
paddingStart: e,
|
|
243
|
+
scrollMargin: s,
|
|
244
|
+
getItemKey: i,
|
|
245
|
+
enabled: o,
|
|
246
|
+
lanes: n,
|
|
247
|
+
laneAssignmentMode: r
|
|
248
|
+
}, u) => {
|
|
238
249
|
if (!o)
|
|
239
250
|
return this.measurementsCache = [], this.itemSizeCache.clear(), this.laneAssignments.clear(), [];
|
|
240
251
|
if (this.laneAssignments.size > t)
|
|
@@ -243,50 +254,51 @@ class D {
|
|
|
243
254
|
this.lanesChangedFlag && (this.lanesChangedFlag = !1, this.lanesSettling = !0, this.measurementsCache = [], this.itemSizeCache.clear(), this.laneAssignments.clear(), this.pendingMeasuredCacheIndexes = []), this.measurementsCache.length === 0 && !this.lanesSettling && (this.measurementsCache = this.options.initialMeasurementsCache, this.measurementsCache.forEach((h) => {
|
|
244
255
|
this.itemSizeCache.set(h.key, h.size);
|
|
245
256
|
}));
|
|
246
|
-
const
|
|
257
|
+
const c = this.lanesSettling ? 0 : this.pendingMeasuredCacheIndexes.length > 0 ? Math.min(...this.pendingMeasuredCacheIndexes) : 0;
|
|
247
258
|
this.pendingMeasuredCacheIndexes = [], this.lanesSettling && this.measurementsCache.length === t && (this.lanesSettling = !1);
|
|
248
|
-
const
|
|
259
|
+
const d = this.measurementsCache.slice(0, c), v = new Array(n).fill(
|
|
249
260
|
void 0
|
|
250
261
|
);
|
|
251
|
-
for (let h = 0; h <
|
|
252
|
-
const
|
|
253
|
-
|
|
262
|
+
for (let h = 0; h < c; h++) {
|
|
263
|
+
const m = d[h];
|
|
264
|
+
m && (v[m.lane] = h);
|
|
254
265
|
}
|
|
255
|
-
for (let h =
|
|
256
|
-
const
|
|
257
|
-
let
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
v =
|
|
266
|
+
for (let h = c; h < t; h++) {
|
|
267
|
+
const m = i(h), b = this.laneAssignments.get(h);
|
|
268
|
+
let g, S;
|
|
269
|
+
const y = r === "estimate" || u.has(m);
|
|
270
|
+
if (b !== void 0 && this.options.lanes > 1) {
|
|
271
|
+
g = b;
|
|
272
|
+
const f = v[g], O = f !== void 0 ? d[f] : void 0;
|
|
273
|
+
S = O ? O.end + this.options.gap : e + s;
|
|
262
274
|
} else {
|
|
263
|
-
const
|
|
264
|
-
|
|
275
|
+
const f = this.options.lanes === 1 ? d[h - 1] : this.getFurthestMeasurement(d, h);
|
|
276
|
+
S = f ? f.end + this.options.gap : e + s, g = f ? f.lane : h % this.options.lanes, this.options.lanes > 1 && y && this.laneAssignments.set(h, g);
|
|
265
277
|
}
|
|
266
|
-
const
|
|
267
|
-
|
|
278
|
+
const E = u.get(m), x = typeof E == "number" ? E : this.options.estimateSize(h), A = S + x;
|
|
279
|
+
d[h] = {
|
|
268
280
|
index: h,
|
|
269
|
-
start:
|
|
270
|
-
size:
|
|
271
|
-
end:
|
|
272
|
-
key:
|
|
273
|
-
lane:
|
|
274
|
-
}, g
|
|
281
|
+
start: S,
|
|
282
|
+
size: x,
|
|
283
|
+
end: A,
|
|
284
|
+
key: m,
|
|
285
|
+
lane: g
|
|
286
|
+
}, v[g] = h;
|
|
275
287
|
}
|
|
276
|
-
return this.measurementsCache =
|
|
288
|
+
return this.measurementsCache = d, d;
|
|
277
289
|
},
|
|
278
290
|
{
|
|
279
291
|
key: process.env.NODE_ENV !== "production" && "getMeasurements",
|
|
280
292
|
debug: () => this.options.debug
|
|
281
293
|
}
|
|
282
|
-
), this.calculateRange =
|
|
294
|
+
), this.calculateRange = p(
|
|
283
295
|
() => [
|
|
284
296
|
this.getMeasurements(),
|
|
285
297
|
this.getSize(),
|
|
286
298
|
this.getScrollOffset(),
|
|
287
299
|
this.options.lanes
|
|
288
300
|
],
|
|
289
|
-
(t, e, s, i) => this.range = t.length > 0 && e > 0 ?
|
|
301
|
+
(t, e, s, i) => this.range = t.length > 0 && e > 0 ? T({
|
|
290
302
|
measurements: t,
|
|
291
303
|
outerSize: e,
|
|
292
304
|
scrollOffset: s,
|
|
@@ -296,7 +308,7 @@ class D {
|
|
|
296
308
|
key: process.env.NODE_ENV !== "production" && "calculateRange",
|
|
297
309
|
debug: () => this.options.debug
|
|
298
310
|
}
|
|
299
|
-
), this.getVirtualIndexes =
|
|
311
|
+
), this.getVirtualIndexes = p(
|
|
300
312
|
() => {
|
|
301
313
|
let t = null, e = null;
|
|
302
314
|
const s = this.calculateRange();
|
|
@@ -357,7 +369,7 @@ class D {
|
|
|
357
369
|
adjustments: this.scrollAdjustments += n,
|
|
358
370
|
behavior: void 0
|
|
359
371
|
})), this.pendingMeasuredCacheIndexes.push(i.index), this.itemSizeCache = new Map(this.itemSizeCache.set(i.key, e)), this.notify(!1));
|
|
360
|
-
}, this.getVirtualItems =
|
|
372
|
+
}, this.getVirtualItems = p(
|
|
361
373
|
() => [this.getVirtualIndexes(), this.getMeasurements()],
|
|
362
374
|
(t, e) => {
|
|
363
375
|
const s = [];
|
|
@@ -374,11 +386,11 @@ class D {
|
|
|
374
386
|
), this.getVirtualItemForOffset = (t) => {
|
|
375
387
|
const e = this.getMeasurements();
|
|
376
388
|
if (e.length !== 0)
|
|
377
|
-
return
|
|
378
|
-
e[
|
|
389
|
+
return M(
|
|
390
|
+
e[C(
|
|
379
391
|
0,
|
|
380
392
|
e.length - 1,
|
|
381
|
-
(s) =>
|
|
393
|
+
(s) => M(e[s]).start,
|
|
382
394
|
t
|
|
383
395
|
)]
|
|
384
396
|
);
|
|
@@ -497,7 +509,7 @@ class D {
|
|
|
497
509
|
return;
|
|
498
510
|
}
|
|
499
511
|
const e = this.scrollState.index != null ? this.getOffsetForIndex(this.scrollState.index, this.scrollState.align) : void 0, s = e ? e[0] : this.scrollState.lastTargetOffset, i = 1, o = s !== this.scrollState.lastTargetOffset;
|
|
500
|
-
if (!o &&
|
|
512
|
+
if (!o && R(s, this.getScrollOffset())) {
|
|
501
513
|
if (this.scrollState.stableFrames++, this.scrollState.stableFrames >= i) {
|
|
502
514
|
this.scrollState = null;
|
|
503
515
|
return;
|
|
@@ -510,7 +522,7 @@ class D {
|
|
|
510
522
|
this.scheduleScrollReconcile();
|
|
511
523
|
}
|
|
512
524
|
}
|
|
513
|
-
const
|
|
525
|
+
const C = (l, a, t, e) => {
|
|
514
526
|
for (; l <= a; ) {
|
|
515
527
|
const s = (l + a) / 2 | 0, i = t(s);
|
|
516
528
|
if (i < e)
|
|
@@ -522,7 +534,7 @@ const z = (l, a, t, e) => {
|
|
|
522
534
|
}
|
|
523
535
|
return l > 0 ? l - 1 : 0;
|
|
524
536
|
};
|
|
525
|
-
function
|
|
537
|
+
function T({
|
|
526
538
|
measurements: l,
|
|
527
539
|
outerSize: a,
|
|
528
540
|
scrollOffset: t,
|
|
@@ -534,7 +546,7 @@ function W({
|
|
|
534
546
|
startIndex: 0,
|
|
535
547
|
endIndex: s
|
|
536
548
|
};
|
|
537
|
-
let o =
|
|
549
|
+
let o = C(
|
|
538
550
|
0,
|
|
539
551
|
s,
|
|
540
552
|
i,
|
|
@@ -559,15 +571,15 @@ function W({
|
|
|
559
571
|
return { startIndex: o, endIndex: n };
|
|
560
572
|
}
|
|
561
573
|
export {
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
574
|
+
j as Virtualizer,
|
|
575
|
+
R as approxEqual,
|
|
576
|
+
_ as debounce,
|
|
577
|
+
F as defaultKeyExtractor,
|
|
578
|
+
W as defaultRangeExtractor,
|
|
579
|
+
V as elementScroll,
|
|
580
|
+
N as measureElement,
|
|
581
|
+
p as memo,
|
|
582
|
+
M as notUndefined,
|
|
583
|
+
D as observeElementOffset,
|
|
584
|
+
k as observeElementRect
|
|
573
585
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caspeco/casper-ui-library",
|
|
3
|
-
"version": "9.0
|
|
3
|
+
"version": "9.2.0",
|
|
4
4
|
"prettier": "@caspeco/prettier-config",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -32,32 +32,34 @@
|
|
|
32
32
|
"chakra:types": "npm run chakra typegen lib/theme/theme.ts -- --tsconfig tsconfig.app.json",
|
|
33
33
|
"lint": "eslint .",
|
|
34
34
|
"preview": "vite preview",
|
|
35
|
-
"chakra": "chakra"
|
|
35
|
+
"chakra": "chakra",
|
|
36
|
+
"clean:icons": "node ./scripts/clean-icons.js",
|
|
37
|
+
"generate:icons": "node ./scripts/generate-icons.js"
|
|
36
38
|
},
|
|
37
39
|
"devDependencies": {
|
|
38
40
|
"@arethetypeswrong/cli": "^0.18.2",
|
|
39
|
-
"@caspeco/eslint-config-react": "^5.1
|
|
41
|
+
"@caspeco/eslint-config-react": "^5.2.1",
|
|
40
42
|
"@caspeco/prettier-config": "^1.0.7",
|
|
41
|
-
"@chakra-ui/cli": "^3.
|
|
43
|
+
"@chakra-ui/cli": "^3.35.0",
|
|
42
44
|
"@eslint/js": "^9.39.2",
|
|
43
|
-
"@types/node": "^24.
|
|
45
|
+
"@types/node": "^24.12.2",
|
|
44
46
|
"@types/react": "^18.3.12",
|
|
45
47
|
"@types/react-dom": "^18.3.1",
|
|
46
48
|
"@vitejs/plugin-react-swc": "^4.3.0",
|
|
47
|
-
"@vitest/browser-playwright": "^4.1.
|
|
48
|
-
"@vitest/ui": "^4.1.
|
|
49
|
+
"@vitest/browser-playwright": "^4.1.5",
|
|
50
|
+
"@vitest/ui": "^4.1.5",
|
|
49
51
|
"eslint": "^9.39.2",
|
|
50
|
-
"eslint-plugin-react-hooks": "^7.
|
|
52
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
51
53
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
52
|
-
"globals": "^17.
|
|
54
|
+
"globals": "^17.6.0",
|
|
53
55
|
"rimraf": "^6.1.3",
|
|
54
|
-
"tsc-alias": "^1.8.
|
|
55
|
-
"typescript": "~
|
|
56
|
-
"typescript-eslint": "^8.
|
|
56
|
+
"tsc-alias": "^1.8.17",
|
|
57
|
+
"typescript": "~6.0.3",
|
|
58
|
+
"typescript-eslint": "^8.59.1",
|
|
57
59
|
"vite": "^7.3.1",
|
|
58
60
|
"vite-plugin-dts": "^4.5.4",
|
|
59
61
|
"vite-tsconfig-paths": "^6.1.1",
|
|
60
|
-
"vitest": "^4.1.
|
|
62
|
+
"vitest": "^4.1.5",
|
|
61
63
|
"vitest-browser-react": "^2.2.0"
|
|
62
64
|
},
|
|
63
65
|
"peerDependencies": {
|
|
@@ -69,13 +71,13 @@
|
|
|
69
71
|
},
|
|
70
72
|
"dependencies": {
|
|
71
73
|
"@chakra-ui/anatomy": "^2.3.4",
|
|
72
|
-
"@dnd-kit/abstract": "^0.
|
|
73
|
-
"@dnd-kit/collision": "^0.
|
|
74
|
-
"@dnd-kit/dom": "^0.
|
|
75
|
-
"@dnd-kit/react": "^0.
|
|
74
|
+
"@dnd-kit/abstract": "^0.4.0",
|
|
75
|
+
"@dnd-kit/collision": "^0.4.0",
|
|
76
|
+
"@dnd-kit/dom": "^0.4.0",
|
|
77
|
+
"@dnd-kit/react": "^0.4.0",
|
|
76
78
|
"@floating-ui/dom": "^1.7.6",
|
|
77
79
|
"@tanstack/react-table": "^8.21.3",
|
|
78
|
-
"@tanstack/react-virtual": "^3.13.
|
|
80
|
+
"@tanstack/react-virtual": "^3.13.24",
|
|
79
81
|
"csstype": "^3.2.3",
|
|
80
82
|
"date-fns": "^4.1.0",
|
|
81
83
|
"next-themes": "^0.4.6"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tablet-icon.d.ts","sourceRoot":"","sources":["../../../../lib/components/icon/icons/tablet-icon.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,iCAGtB,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { createCasperIcon as C } from "../create-icon.js";
|
|
2
|
-
const o = C(
|
|
3
|
-
"TabletIcon",
|
|
4
|
-
"M16.5 5C16.5 4.71875 16.25 4.5 16 4.5L4 4.5C3.71875 4.5 3.5 4.71875 3.5 5L3.5 15C3.5 15.25 3.71875 15.5 4 15.5L16 15.5C16.25 15.5 16.5 15.25 16.5 15L16.5 5ZM16 3C17.0938 3 18 3.875 18 5L18 15C18 16.0938 17.0937 17 16 17L4 17C2.875 17 2 16.0937 2 15L2 5C2 3.875 2.875 3 4 3L16 3ZM5.5 9L5.5 11C5.5 11.25 5.25 11.5 5 11.5C4.71875 11.5 4.5 11.25 4.5 11L4.5 9C4.5 8.71875 4.71875 8.5 5 8.5C5.25 8.5 5.5 8.71875 5.5 9Z"
|
|
5
|
-
);
|
|
6
|
-
export {
|
|
7
|
-
o as TabletIcon
|
|
8
|
-
};
|