@caspeco/casper-ui-library 8.2.2 → 8.4.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 (45) hide show
  1. package/dist/components/modal/modal.spec.d.ts +0 -1
  2. package/dist/components/modal/modal.spec.d.ts.map +1 -1
  3. package/dist/components/paginator/paginator.composition.d.ts +1 -0
  4. package/dist/components/paginator/paginator.composition.d.ts.map +1 -1
  5. package/dist/components/paginator/paginator.d.ts +3 -1
  6. package/dist/components/paginator/paginator.d.ts.map +1 -1
  7. package/dist/components/paginator/paginator.js +12 -11
  8. package/dist/components/table/helper.d.ts +2 -0
  9. package/dist/components/table/helper.d.ts.map +1 -0
  10. package/dist/components/table/helper.js +7 -0
  11. package/dist/components/table/table-content.d.ts.map +1 -1
  12. package/dist/components/table/table-content.js +93 -80
  13. package/dist/components/table/table-context-provider.d.ts +10 -2
  14. package/dist/components/table/table-context-provider.d.ts.map +1 -1
  15. package/dist/components/table/table-context-provider.js +149 -110
  16. package/dist/components/table/table-header-row.d.ts.map +1 -1
  17. package/dist/components/table/table-header-row.js +170 -121
  18. package/dist/components/table/table-row.js +11 -11
  19. package/dist/components/table/table.d.ts +1 -1
  20. package/dist/components/table/table.d.ts.map +1 -1
  21. package/dist/components/table/table.js +16 -8
  22. package/dist/components/table/table.spec.d.ts +0 -1
  23. package/dist/components/table/table.spec.d.ts.map +1 -1
  24. package/dist/components/table/types.d.ts +21 -0
  25. package/dist/components/table/types.d.ts.map +1 -1
  26. package/dist/components/toggle-button/toggle-button.spec.d.ts +0 -1
  27. package/dist/components/toggle-button/toggle-button.spec.d.ts.map +1 -1
  28. package/dist/node_modules/@dnd-kit/abstract/index.js +1142 -0
  29. package/dist/node_modules/@dnd-kit/collision/dist/index.js +91 -0
  30. package/dist/node_modules/@dnd-kit/dom/index.js +1554 -0
  31. package/dist/node_modules/@dnd-kit/dom/sortable.js +631 -0
  32. package/dist/node_modules/@dnd-kit/dom/utilities.js +943 -0
  33. package/dist/node_modules/@dnd-kit/geometry/dist/index.js +200 -0
  34. package/dist/node_modules/@dnd-kit/react/hooks.js +69 -0
  35. package/dist/node_modules/@dnd-kit/react/index.js +235 -0
  36. package/dist/node_modules/@dnd-kit/react/sortable.js +129 -0
  37. package/dist/node_modules/@dnd-kit/react/utilities.js +11 -0
  38. package/dist/node_modules/@dnd-kit/state/dist/index.js +181 -0
  39. package/dist/node_modules/@preact/signals-core/dist/signals-core.module.js +265 -0
  40. package/dist/test-utils/hooks/setup-mock-resize-observer.d.ts +1 -1
  41. package/dist/test-utils/hooks/setup-mock-resize-observer.d.ts.map +1 -1
  42. package/dist/theme/theme-config/components/paginator-theme.d.ts +5 -19
  43. package/dist/theme/theme-config/components/paginator-theme.d.ts.map +1 -1
  44. package/dist/theme/theme-config/components/paginator-theme.js +34 -18
  45. package/package.json +3 -1
@@ -0,0 +1,181 @@
1
+ import { computed as U, effect as le, untracked as x, batch as X, signal as fe } from "../../../@preact/signals-core/dist/signals-core.module.js";
2
+ import { Signal as Ie } from "../../../@preact/signals-core/dist/signals-core.module.js";
3
+ var _e = Object.create, G = Object.defineProperty, he = Object.defineProperties, pe = Object.getOwnPropertyDescriptor, ve = Object.getOwnPropertyDescriptors, Y = Object.getOwnPropertySymbols, de = Object.prototype.hasOwnProperty, ge = Object.prototype.propertyIsEnumerable, Oe = (e, t) => (t = Symbol[e]) ? t : /* @__PURE__ */ Symbol.for("Symbol." + e), O = (e) => {
4
+ throw TypeError(e);
5
+ }, A = (e, t, r) => t in e ? G(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ye = (e, t) => {
6
+ for (var r in t || (t = {}))
7
+ de.call(t, r) && A(e, r, t[r]);
8
+ if (Y)
9
+ for (var r of Y(t))
10
+ ge.call(t, r) && A(e, r, t[r]);
11
+ return e;
12
+ }, we = (e, t) => he(e, ve(t)), Z = (e, t) => G(e, "name", { value: t, configurable: !0 }), Pe = (e) => {
13
+ var t;
14
+ return [, , , _e((t = void 0) != null ? t : null)];
15
+ }, ee = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], P = (e) => e !== void 0 && typeof e != "function" ? O("Function expected") : e, Se = (e, t, r, i, n) => ({ kind: ee[e], name: t, metadata: i, addInitializer: (a) => r._ ? O("Already initialized") : n.push(P(a || null)) }), te = (e, t) => A(t, Oe("metadata"), e[3]), d = (e, t, r, i) => {
16
+ for (var n = 0, a = e[t >> 1], p = a && a.length; n < p; n++) t & 1 ? a[n].call(r) : i = a[n].call(r, i);
17
+ return i;
18
+ }, y = (e, t, r, i, n, a) => {
19
+ var p, l, L, w, j, s = t & 7, m = !!(t & 8), h = !!(t & 16), D = s > 3 ? e.length + 1 : s ? m ? 1 : 2 : 0, Q = ee[s + 5], R = s > 3 && (e[D - 1] = []), ue = e[D] || (e[D] = []), _ = s && (!h && !m && (n = n.prototype), s < 5 && (s > 3 || !h) && pe(s < 4 ? n : { get [r]() {
20
+ return f(this, a);
21
+ }, set [r](u) {
22
+ return v(this, a, u);
23
+ } }, r));
24
+ s ? h && s < 4 && Z(a, (s > 2 ? "set " : s > 1 ? "get " : "") + r) : Z(n, r);
25
+ for (var M = i.length - 1; M >= 0; M--)
26
+ w = Se(s, r, L = {}, e[3], ue), s && (w.static = m, w.private = h, j = w.access = { has: h ? (u) => ke(n, u) : (u) => r in u }, s ^ 3 && (j.get = h ? (u) => (s ^ 1 ? f : je)(u, n, s ^ 4 ? a : _.get) : (u) => u[r]), s > 2 && (j.set = h ? (u, V) => v(u, n, V, s ^ 4 ? a : _.set) : (u, V) => u[r] = V)), l = (0, i[M])(s ? s < 4 ? h ? a : _[Q] : s > 4 ? void 0 : { get: _.get, set: _.set } : n, w), L._ = 1, s ^ 4 || l === void 0 ? P(l) && (s > 4 ? R.unshift(l) : s ? h ? a = l : _[Q] = l : n = l) : typeof l != "object" || l === null ? O("Object expected") : (P(p = l.get) && (_.get = p), P(p = l.set) && (_.set = p), P(p = l.init) && R.unshift(p));
27
+ return s || te(e, n), _ && G(n, r, _), h ? s ^ 4 ? a : _ : n;
28
+ }, N = (e, t, r) => t.has(e) || O("Cannot " + r), ke = (e, t) => Object(t) !== t ? O('Cannot use the "in" operator on this value') : e.has(t), f = (e, t, r) => (N(e, t, "read from private field"), r ? r.call(e) : t.get(e)), S = (e, t, r) => t.has(e) ? O("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), v = (e, t, r, i) => (N(e, t, "write to private field"), i ? i.call(e, r) : t.set(e, r), r), je = (e, t, r) => (N(e, t, "access private method"), r);
29
+ function me(e, t) {
30
+ if (t) {
31
+ let r;
32
+ return U(() => {
33
+ const i = e();
34
+ return i && r && t(r, i) ? r : (r = i, i);
35
+ });
36
+ }
37
+ return U(e);
38
+ }
39
+ function $(e, t) {
40
+ if (Object.is(e, t))
41
+ return !0;
42
+ if (e === null || t === null) return !1;
43
+ if (typeof e == "function" && typeof t == "function")
44
+ return e === t;
45
+ if (e instanceof Set && t instanceof Set) {
46
+ if (e.size !== t.size)
47
+ return !1;
48
+ for (const r of e)
49
+ if (!t.has(r))
50
+ return !1;
51
+ return !0;
52
+ }
53
+ if (Array.isArray(e))
54
+ return !Array.isArray(t) || e.length !== t.length ? !1 : !e.some(
55
+ (i, n) => !$(i, t[n])
56
+ );
57
+ if (typeof e == "object" && typeof t == "object") {
58
+ const r = Object.keys(e), i = Object.keys(t);
59
+ return r.length !== i.length ? !1 : !r.some(
60
+ (a) => !$(e[a], t[a])
61
+ );
62
+ }
63
+ return !1;
64
+ }
65
+ function W({ get: e }, t) {
66
+ return {
67
+ init(r) {
68
+ return fe(r);
69
+ },
70
+ get() {
71
+ return e.call(this).value;
72
+ },
73
+ set(r) {
74
+ const i = e.call(this);
75
+ i.peek() !== r && (i.value = r);
76
+ }
77
+ };
78
+ }
79
+ function Me(e, t) {
80
+ const r = /* @__PURE__ */ new WeakMap();
81
+ return function() {
82
+ let i = r.get(this);
83
+ return i || (i = me(e.bind(this)), r.set(this, i)), i.value;
84
+ };
85
+ }
86
+ function z(e = !0) {
87
+ return function(t, r) {
88
+ r.addInitializer(function() {
89
+ const i = r.kind === "field" ? this : r.static ? this : Object.getPrototypeOf(this), n = Object.getOwnPropertyDescriptor(i, r.name);
90
+ n && Object.defineProperty(i, r.name, we(ye({}, n), { enumerable: e }));
91
+ });
92
+ };
93
+ }
94
+ function Ve(...e) {
95
+ const t = e.map((r) => le(r));
96
+ return () => t.forEach((r) => r());
97
+ }
98
+ var re, ie, se, ne, ae, oe, c, T, b, C, q, o, B, E, ce, F, J, I, H, K;
99
+ oe = [W], ae = [W], ne = [W], se = [z()], ie = [z()], re = [z()];
100
+ var k = class {
101
+ constructor(e, t = Object.is) {
102
+ this.defaultValue = e, this.equals = t, d(c, 5, this), S(this, o), S(this, T, d(c, 8, this)), d(c, 11, this), S(this, B, d(c, 12, this)), d(c, 15, this), S(this, J, d(c, 16, this)), d(c, 19, this), this.reset = this.reset.bind(this), this.reset();
103
+ }
104
+ get current() {
105
+ return f(this, o, H);
106
+ }
107
+ get initial() {
108
+ return f(this, o, C);
109
+ }
110
+ get previous() {
111
+ return f(this, o, ce);
112
+ }
113
+ /** Set the current value */
114
+ set current(e) {
115
+ const t = x(() => f(this, o, H));
116
+ e && t && this.equals(t, e) || X(() => {
117
+ f(this, o, C) || v(this, o, e, q), v(this, o, t, F), v(this, o, e, K);
118
+ });
119
+ }
120
+ /** Reset the state to the initial value */
121
+ reset(e = this.defaultValue) {
122
+ X(() => {
123
+ v(this, o, void 0, F), v(this, o, e, q), v(this, o, e, K);
124
+ });
125
+ }
126
+ };
127
+ c = Pe();
128
+ T = /* @__PURE__ */ new WeakMap();
129
+ o = /* @__PURE__ */ new WeakSet();
130
+ B = /* @__PURE__ */ new WeakMap();
131
+ J = /* @__PURE__ */ new WeakMap();
132
+ b = y(c, 20, "#initial", oe, o, T), C = b.get, q = b.set;
133
+ E = y(c, 20, "#previous", ae, o, B), ce = E.get, F = E.set;
134
+ I = y(c, 20, "#current", ne, o, J), H = I.get, K = I.set;
135
+ y(c, 2, "current", se, k);
136
+ y(c, 2, "initial", ie, k);
137
+ y(c, 2, "previous", re, k);
138
+ te(c, k);
139
+ function We(e) {
140
+ return x(() => {
141
+ const t = {};
142
+ for (const r in e)
143
+ t[r] = e[r];
144
+ return t;
145
+ });
146
+ }
147
+ var g, ze = class {
148
+ constructor() {
149
+ S(this, g, /* @__PURE__ */ new WeakMap());
150
+ }
151
+ get(e, t) {
152
+ var r;
153
+ return e ? (r = f(this, g).get(e)) == null ? void 0 : r.get(t) : void 0;
154
+ }
155
+ set(e, t, r) {
156
+ var i;
157
+ if (e)
158
+ return f(this, g).has(e) || f(this, g).set(e, /* @__PURE__ */ new Map()), (i = f(this, g).get(e)) == null ? void 0 : i.set(t, r);
159
+ }
160
+ clear(e) {
161
+ var t;
162
+ return e ? (t = f(this, g).get(e)) == null ? void 0 : t.clear() : void 0;
163
+ }
164
+ };
165
+ g = /* @__PURE__ */ new WeakMap();
166
+ export {
167
+ Ie as Signal,
168
+ k as ValueHistory,
169
+ ze as WeakStore,
170
+ X as batch,
171
+ me as computed,
172
+ $ as deepEqual,
173
+ Me as derived,
174
+ le as effect,
175
+ Ve as effects,
176
+ z as enumerable,
177
+ W as reactive,
178
+ fe as signal,
179
+ We as snapshot,
180
+ x as untracked
181
+ };
@@ -0,0 +1,265 @@
1
+ var E = /* @__PURE__ */ Symbol.for("preact-signals");
2
+ function l() {
3
+ if (e > 1)
4
+ e--;
5
+ else {
6
+ var t, i = !1;
7
+ for ((function() {
8
+ var s = a;
9
+ for (a = void 0; s !== void 0; )
10
+ s.S.v === s.v && (s.S.i = s.i), s = s.o;
11
+ })(); u !== void 0; ) {
12
+ var o = u;
13
+ for (u = void 0, d++; o !== void 0; ) {
14
+ var r = o.u;
15
+ if (o.u = void 0, o.f &= -3, !(8 & o.f) && m(o)) try {
16
+ o.c();
17
+ } catch (s) {
18
+ i || (t = s, i = !0);
19
+ }
20
+ o = r;
21
+ }
22
+ }
23
+ if (d = 0, e--, i) throw t;
24
+ }
25
+ }
26
+ function O(t) {
27
+ if (e > 0) return t();
28
+ p = ++U, e++;
29
+ try {
30
+ return t();
31
+ } finally {
32
+ l();
33
+ }
34
+ }
35
+ var n = void 0;
36
+ function S(t) {
37
+ var i = n;
38
+ n = void 0;
39
+ try {
40
+ return t();
41
+ } finally {
42
+ n = i;
43
+ }
44
+ }
45
+ var u = void 0, e = 0, d = 0, U = 0, p = 0, a = void 0, c = 0;
46
+ function w(t) {
47
+ if (n !== void 0) {
48
+ var i = t.n;
49
+ if (i === void 0 || i.t !== n)
50
+ return i = { i: 0, S: t, p: n.s, n: void 0, t: n, e: void 0, x: void 0, r: i }, n.s !== void 0 && (n.s.n = i), n.s = i, t.n = i, 32 & n.f && t.S(i), i;
51
+ if (i.i === -1)
52
+ return i.i = 0, i.n !== void 0 && (i.n.p = i.p, i.p !== void 0 && (i.p.n = i.n), i.p = n.s, i.n = void 0, n.s.n = i, n.s = i), i;
53
+ }
54
+ }
55
+ function f(t, i) {
56
+ this.v = t, this.i = 0, this.n = void 0, this.t = void 0, this.l = 0, this.W = i?.watched, this.Z = i?.unwatched, this.name = i?.name;
57
+ }
58
+ f.prototype.brand = E;
59
+ f.prototype.h = function() {
60
+ return !0;
61
+ };
62
+ f.prototype.S = function(t) {
63
+ var i = this, o = this.t;
64
+ o !== t && t.e === void 0 && (t.x = o, this.t = t, o !== void 0 ? o.e = t : S(function() {
65
+ var r;
66
+ (r = i.W) == null || r.call(i);
67
+ }));
68
+ };
69
+ f.prototype.U = function(t) {
70
+ var i = this;
71
+ if (this.t !== void 0) {
72
+ var o = t.e, r = t.x;
73
+ o !== void 0 && (o.x = r, t.e = void 0), r !== void 0 && (r.e = o, t.x = void 0), t === this.t && (this.t = r, r === void 0 && S(function() {
74
+ var s;
75
+ (s = i.Z) == null || s.call(i);
76
+ }));
77
+ }
78
+ };
79
+ f.prototype.subscribe = function(t) {
80
+ var i = this;
81
+ return N(function() {
82
+ var o = i.value, r = n;
83
+ n = void 0;
84
+ try {
85
+ t(o);
86
+ } finally {
87
+ n = r;
88
+ }
89
+ }, { name: "sub" });
90
+ };
91
+ f.prototype.valueOf = function() {
92
+ return this.value;
93
+ };
94
+ f.prototype.toString = function() {
95
+ return this.value + "";
96
+ };
97
+ f.prototype.toJSON = function() {
98
+ return this.value;
99
+ };
100
+ f.prototype.peek = function() {
101
+ var t = n;
102
+ n = void 0;
103
+ try {
104
+ return this.value;
105
+ } finally {
106
+ n = t;
107
+ }
108
+ };
109
+ Object.defineProperty(f.prototype, "value", { get: function() {
110
+ var t = w(this);
111
+ return t !== void 0 && (t.i = this.i), this.v;
112
+ }, set: function(t) {
113
+ if (t !== this.v) {
114
+ if (d > 100) throw new Error("Cycle detected");
115
+ (function(o) {
116
+ e !== 0 && d === 0 && o.l !== p && (o.l = p, a = { S: o, v: o.v, i: o.i, o: a });
117
+ })(this), this.v = t, this.i++, c++, e++;
118
+ try {
119
+ for (var i = this.t; i !== void 0; i = i.x) i.t.N();
120
+ } finally {
121
+ l();
122
+ }
123
+ }
124
+ } });
125
+ function k(t, i) {
126
+ return new f(t, i);
127
+ }
128
+ function m(t) {
129
+ 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;
130
+ return !1;
131
+ }
132
+ function x(t) {
133
+ for (var i = t.s; i !== void 0; i = i.n) {
134
+ var o = i.S.n;
135
+ if (o !== void 0 && (i.r = o), i.S.n = i, i.i = -1, i.n === void 0) {
136
+ t.s = i;
137
+ break;
138
+ }
139
+ }
140
+ }
141
+ function b(t) {
142
+ for (var i = t.s, o = void 0; i !== void 0; ) {
143
+ var r = i.p;
144
+ i.i === -1 ? (i.S.U(i), r !== void 0 && (r.n = i.n), i.n !== void 0 && (i.n.p = r)) : o = i, i.S.n = i.r, i.r !== void 0 && (i.r = void 0), i = r;
145
+ }
146
+ t.s = o;
147
+ }
148
+ function h(t, i) {
149
+ f.call(this, void 0), this.x = t, this.s = void 0, this.g = c - 1, this.f = 4, this.W = i?.watched, this.Z = i?.unwatched, this.name = i?.name;
150
+ }
151
+ h.prototype = new f();
152
+ h.prototype.h = function() {
153
+ if (this.f &= -3, 1 & this.f) return !1;
154
+ if ((36 & this.f) == 32 || (this.f &= -5, this.g === c)) return !0;
155
+ if (this.g = c, this.f |= 1, this.i > 0 && !m(this))
156
+ return this.f &= -2, !0;
157
+ var t = n;
158
+ try {
159
+ x(this), n = this;
160
+ var i = this.x();
161
+ (16 & this.f || this.v !== i || this.i === 0) && (this.v = i, this.f &= -17, this.i++);
162
+ } catch (o) {
163
+ this.v = o, this.f |= 16, this.i++;
164
+ }
165
+ return n = t, b(this), this.f &= -2, !0;
166
+ };
167
+ h.prototype.S = function(t) {
168
+ if (this.t === void 0) {
169
+ this.f |= 36;
170
+ for (var i = this.s; i !== void 0; i = i.n) i.S.S(i);
171
+ }
172
+ f.prototype.S.call(this, t);
173
+ };
174
+ h.prototype.U = function(t) {
175
+ if (this.t !== void 0 && (f.prototype.U.call(this, t), this.t === void 0)) {
176
+ this.f &= -33;
177
+ for (var i = this.s; i !== void 0; i = i.n) i.S.U(i);
178
+ }
179
+ };
180
+ h.prototype.N = function() {
181
+ if (!(2 & this.f)) {
182
+ this.f |= 6;
183
+ for (var t = this.t; t !== void 0; t = t.x) t.t.N();
184
+ }
185
+ };
186
+ Object.defineProperty(h.prototype, "value", { get: function() {
187
+ if (1 & this.f) throw new Error("Cycle detected");
188
+ var t = w(this);
189
+ if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f) throw this.v;
190
+ return this.v;
191
+ } });
192
+ function W(t, i) {
193
+ return new h(t, i);
194
+ }
195
+ function g(t) {
196
+ var i = t.m;
197
+ if (t.m = void 0, typeof i == "function") {
198
+ e++;
199
+ var o = n;
200
+ n = void 0;
201
+ try {
202
+ i();
203
+ } catch (r) {
204
+ throw t.f &= -2, t.f |= 8, y(t), r;
205
+ } finally {
206
+ n = o, l();
207
+ }
208
+ }
209
+ }
210
+ function y(t) {
211
+ for (var i = t.s; i !== void 0; i = i.n) i.S.U(i);
212
+ t.x = void 0, t.s = void 0, g(t);
213
+ }
214
+ function C(t) {
215
+ if (n !== this) throw new Error("Out-of-order effect");
216
+ b(this), n = t, this.f &= -2, 8 & this.f && y(this), l();
217
+ }
218
+ function v(t, i) {
219
+ this.x = t, this.m = void 0, this.s = void 0, this.u = void 0, this.f = 32, this.name = i?.name;
220
+ }
221
+ v.prototype.c = function() {
222
+ var t = this.S();
223
+ try {
224
+ if (8 & this.f || this.x === void 0) return;
225
+ var i = this.x();
226
+ typeof i == "function" && (this.m = i);
227
+ } finally {
228
+ t();
229
+ }
230
+ };
231
+ v.prototype.S = function() {
232
+ if (1 & this.f) throw new Error("Cycle detected");
233
+ this.f |= 1, this.f &= -9, g(this), x(this), e++;
234
+ var t = n;
235
+ return n = this, C.bind(this, t);
236
+ };
237
+ v.prototype.N = function() {
238
+ 2 & this.f || (this.f |= 2, this.u = u, u = this);
239
+ };
240
+ v.prototype.d = function() {
241
+ this.f |= 8, 1 & this.f || y(this);
242
+ };
243
+ v.prototype.dispose = function() {
244
+ this.d();
245
+ };
246
+ function N(t, i) {
247
+ var o = new v(t, i);
248
+ try {
249
+ o.c();
250
+ } catch (s) {
251
+ throw o.d(), s;
252
+ }
253
+ var r = o.d.bind(o);
254
+ return r[Symbol.dispose] = r, r;
255
+ }
256
+ export {
257
+ h as Computed,
258
+ v as Effect,
259
+ f as Signal,
260
+ O as batch,
261
+ W as computed,
262
+ N as effect,
263
+ k as signal,
264
+ S as untracked
265
+ };
@@ -1,2 +1,2 @@
1
- export declare const setupMockResizeObserver: () => void;
1
+ export {};
2
2
  //# sourceMappingURL=setup-mock-resize-observer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"setup-mock-resize-observer.d.ts","sourceRoot":"","sources":["../../../lib/test-utils/hooks/setup-mock-resize-observer.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,YAYnC,CAAC"}
1
+ {"version":3,"file":"setup-mock-resize-observer.d.ts","sourceRoot":"","sources":["../../../lib/test-utils/hooks/setup-mock-resize-observer.ts"],"names":[],"mappings":""}
@@ -1,31 +1,17 @@
1
- import { ThemeColorVariable, ThemeFontSizeVariable, ThemeFontVariable, ThemeSpaceVariable } from '../../theme-types.js';
2
1
  export declare const paginatorConfig: {
3
- baseStyle?: {
4
- width: string;
5
- fontFamily: ThemeFontVariable;
6
- color: ThemeColorVariable;
7
- display: string;
8
- justifyContent: string;
9
- alignItems: string;
10
- fontVariant: string;
11
- padding: ThemeSpaceVariable;
12
- gap: ThemeSpaceVariable;
13
- div: {
14
- button: {
15
- fontSize: ThemeFontSizeVariable;
16
- };
17
- };
18
- } | undefined;
2
+ baseStyle?: (import('@chakra-ui/styled-system').CSSWithMultiValues & import('@chakra-ui/styled-system').RecursiveCSSSelector<import('@chakra-ui/styled-system').CSSWithMultiValues>) | undefined;
19
3
  sizes?: {
20
4
  [key: string]: import('@chakra-ui/styled-system').SystemStyleInterpolation;
21
5
  } | undefined;
22
6
  variants?: {
23
- [key: string]: import('@chakra-ui/styled-system').SystemStyleInterpolation;
7
+ ghost: import('@chakra-ui/styled-system').CSSWithMultiValues | (import('@chakra-ui/styled-system').CSSWithMultiValues & import('@chakra-ui/styled-system').RecursiveCSSSelector<import('@chakra-ui/styled-system').CSSWithMultiValues>);
8
+ outline: import('@chakra-ui/styled-system').CSSWithMultiValues & import('@chakra-ui/styled-system').RecursiveCSSSelector<import('@chakra-ui/styled-system').CSSWithMultiValues>;
24
9
  } | undefined;
25
10
  defaultProps?: {
26
11
  size?: string | number | undefined;
27
- variant?: string | number | undefined;
12
+ variant?: "outline" | "ghost" | undefined;
28
13
  colorScheme?: string | undefined;
29
14
  } | undefined;
30
15
  };
16
+ export type PaginatorVariant = keyof Exclude<typeof paginatorConfig.variants, undefined>;
31
17
  //# sourceMappingURL=paginator-theme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"paginator-theme.d.ts","sourceRoot":"","sources":["../../../../lib/theme/theme-config/components/paginator-theme.ts"],"names":[],"mappings":"AACA,OAAO,EACN,kBAAkB,EAClB,qBAAqB,EACrB,iBAAiB,EACjB,kBAAkB,EAClB,MAAM,mBAAmB,CAAC;AAE3B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiB1B,CAAC"}
1
+ {"version":3,"file":"paginator-theme.d.ts","sourceRoot":"","sources":["../../../../lib/theme/theme-config/components/paginator-theme.ts"],"names":[],"mappings":"AA4CA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;CAM1B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,CAAC,OAAO,eAAe,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC"}
@@ -1,23 +1,39 @@
1
- import { defineStyleConfig as a } from "@chakra-ui/react";
2
- import { ThemeFontSizeVariable as o, ThemeSpaceVariable as e, ThemeColorVariable as t, ThemeFontVariable as i } from "../../theme-types.js";
3
- const l = a({
4
- baseStyle: {
5
- width: "100%",
6
- fontFamily: i.Body,
7
- color: t.OnBackground,
8
- display: "flex",
9
- justifyContent: "flex-end",
10
- alignItems: "center",
11
- fontVariant: "tabular-nums",
12
- padding: e.Small,
13
- gap: e.Medium,
14
- div: {
15
- button: {
16
- fontSize: o.Large
17
- }
1
+ import { defineStyleConfig as t } from "@chakra-ui/react";
2
+ import { ThemeSpaceVariable as a, ThemeColorVariable as o, ThemeFontSizeVariable as e, ThemeFontVariable as n } from "../../theme-types.js";
3
+ const i = {
4
+ fontFamily: n.Body,
5
+ color: o.OnBackground,
6
+ fontVariant: "tabular-nums",
7
+ display: "flex",
8
+ alignItems: "center",
9
+ gap: a.Medium,
10
+ ".paginator-buttons-container": {
11
+ display: "inline-flex",
12
+ button: {
13
+ fontSize: e.Large
18
14
  }
19
15
  }
16
+ }, r = {
17
+ width: "100%",
18
+ justifyContent: "flex-end",
19
+ padding: a.Small
20
+ }, l = {
21
+ width: "fit-content",
22
+ padding: `${a.XSmall} ${a.Medium}`,
23
+ borderRadius: a.Small,
24
+ border: `1px solid ${o.OnSurfaceBorder}`,
25
+ backgroundColor: o.Surface,
26
+ boxShadow: `0 4px 12px 0 ${o.ShadowCard}`,
27
+ ".paginator-buttons-container": {
28
+ gap: a.Small
29
+ }
30
+ }, s = t({
31
+ baseStyle: i,
32
+ variants: {
33
+ ghost: r,
34
+ outline: l
35
+ }
20
36
  });
21
37
  export {
22
- l as paginatorConfig
38
+ s as paginatorConfig
23
39
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caspeco/casper-ui-library",
3
- "version": "8.2.2",
3
+ "version": "8.4.0",
4
4
  "prettier": "@caspeco/prettier-config",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -68,6 +68,8 @@
68
68
  },
69
69
  "dependencies": {
70
70
  "@chakra-ui/anatomy": "^2.3.4",
71
+ "@dnd-kit/collision": "^0.3.2",
72
+ "@dnd-kit/react": "^0.3.2",
71
73
  "@floating-ui/dom": "^1.7.5",
72
74
  "@tanstack/react-table": "^8.21.3",
73
75
  "@tanstack/react-virtual": "^3.13.18",