@caspeco/casper-ui-library 9.10.0 → 9.11.1
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/dist/components/accordion/accordion-recipe.js +1 -1
- package/dist/components/checkbox/checkbox-recipe.js +1 -1
- package/dist/components/drawer/drawer-recipe.js +1 -1
- package/dist/components/fieldset/fieldset-recipe.js +1 -1
- package/dist/components/form-control/form-control-recipe.js +1 -1
- package/dist/components/menu/menu-recipe.js +1 -1
- package/dist/components/modal/modal-recipe.js +1 -1
- package/dist/components/radio/radio-group-recipe.js +1 -1
- package/dist/components/rich-text-editor/boolean-control.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor-control.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.js +1 -1
- package/dist/components/rich-text-editor/use-rich-text-editor.js +1 -1
- package/dist/components/select/select-recipe.js +1 -1
- package/dist/components/switch/switch-recipe.js +1 -1
- package/dist/components/table/table-header-dropdown.d.ts.map +1 -1
- package/dist/components/table/table-header-dropdown.js +68 -66
- package/dist/components/tabs/tabs-recipe.js +1 -1
- package/dist/components/tag/tag-recipe.js +1 -1
- package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +83 -31
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +411 -226
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/lazy-measurements.js +33 -0
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +29 -28
- package/dist/node_modules/@tiptap/core/dist/index.js +251 -90
- package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +3 -1
- package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +3 -1
- package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +3 -1
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js +5 -1
- package/dist/node_modules/@tiptap/extension-link/dist/index.js +36 -8
- package/dist/node_modules/@tiptap/extension-list/dist/index.js +13 -2
- package/dist/node_modules/@tiptap/extensions/dist/index.js +236 -229
- package/dist/{node_modules → packages/casper-ui-library/node_modules}/@tiptap/react/dist/index.js +12 -7
- package/package.json +13 -13
- package/dist/node_modules/@ark-ui/react/dist/components/checkbox/checkbox.anatomy.js +0 -5
- package/dist/node_modules/@ark-ui/react/dist/components/color-picker/color-picker.anatomy.js +0 -5
- package/dist/node_modules/@ark-ui/react/dist/components/combobox/combobox.anatomy.js +0 -5
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker.anatomy.js +0 -5
- package/dist/node_modules/@ark-ui/react/dist/components/field/field.anatomy.js +0 -15
- package/dist/node_modules/@ark-ui/react/dist/components/fieldset/fieldset.anatomy.js +0 -6
- package/dist/node_modules/@ark-ui/react/dist/components/listbox/listbox.anatomy.js +0 -2
- package/dist/node_modules/@chakra-ui/react/dist/esm/anatomy.js +0 -186
- package/dist/node_modules/@zag-js/accordion/dist/accordion.anatomy.js +0 -6
- package/dist/node_modules/@zag-js/anatomy/dist/create-anatomy.js +0 -26
- package/dist/node_modules/@zag-js/checkbox/dist/checkbox.anatomy.js +0 -6
- package/dist/node_modules/@zag-js/clipboard/dist/clipboard.anatomy.js +0 -6
- package/dist/node_modules/@zag-js/color-picker/dist/color-picker.anatomy.js +0 -31
- package/dist/node_modules/@zag-js/combobox/dist/combobox.anatomy.js +0 -21
- package/dist/node_modules/@zag-js/date-picker/dist/date-picker.anatomy.js +0 -31
- package/dist/node_modules/@zag-js/dialog/dist/dialog.anatomy.js +0 -14
- package/dist/node_modules/@zag-js/editable/dist/editable.anatomy.js +0 -16
- package/dist/node_modules/@zag-js/file-upload/dist/file-upload.anatomy.js +0 -19
- package/dist/node_modules/@zag-js/listbox/dist/listbox.anatomy.js +0 -17
- package/dist/node_modules/@zag-js/menu/dist/menu.anatomy.js +0 -21
- package/dist/node_modules/@zag-js/popover/dist/popover.anatomy.js +0 -17
- package/dist/node_modules/@zag-js/radio-group/dist/radio-group.anatomy.js +0 -13
- package/dist/node_modules/@zag-js/rating-group/dist/rating-group.anatomy.js +0 -6
- package/dist/node_modules/@zag-js/select/dist/select.anatomy.js +0 -22
- package/dist/node_modules/@zag-js/slider/dist/slider.anatomy.js +0 -17
- package/dist/node_modules/@zag-js/splitter/dist/splitter.anatomy.js +0 -6
- package/dist/node_modules/@zag-js/switch/dist/switch.anatomy.js +0 -6
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
function d(t, r, u) {
|
|
2
|
+
const y = new Array(t);
|
|
3
|
+
return new Proxy(y, {
|
|
4
|
+
get(i, n, a) {
|
|
5
|
+
if (typeof n == "string") {
|
|
6
|
+
const c = n.charCodeAt(0);
|
|
7
|
+
if (c >= 48 && c <= 57) {
|
|
8
|
+
const e = +n;
|
|
9
|
+
if (Number.isInteger(e) && e >= 0 && e < t) {
|
|
10
|
+
let s = i[e];
|
|
11
|
+
if (!s) {
|
|
12
|
+
const f = r[e * 2];
|
|
13
|
+
s = i[e] = {
|
|
14
|
+
index: e,
|
|
15
|
+
key: u(e),
|
|
16
|
+
start: f,
|
|
17
|
+
size: r[e * 2 + 1],
|
|
18
|
+
end: f + r[e * 2 + 1],
|
|
19
|
+
lane: 0
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
return s;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
if (n === "length") return t;
|
|
26
|
+
}
|
|
27
|
+
return Reflect.get(i, n, a);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
d as createLazyMeasurementsView
|
|
33
|
+
};
|
|
@@ -1,52 +1,53 @@
|
|
|
1
|
-
function
|
|
2
|
-
let
|
|
1
|
+
function E(n, i, e) {
|
|
2
|
+
let t = e.initialDeps ?? [], o, s = !0;
|
|
3
3
|
function h() {
|
|
4
|
-
var d
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
4
|
+
var d;
|
|
5
|
+
const r = process.env.NODE_ENV !== "production" && !!e.key && !!((d = e.debug) != null && d.call(e));
|
|
6
|
+
let m = 0;
|
|
7
|
+
r && (m = Date.now());
|
|
8
|
+
const u = n();
|
|
9
|
+
if (!(u.length !== t.length || u.some((c, a) => t[a] !== c)))
|
|
10
|
+
return o;
|
|
11
|
+
t = u;
|
|
12
|
+
let f = 0;
|
|
13
|
+
if (r && (f = Date.now()), o = i(...u), r) {
|
|
14
|
+
const c = Math.round((Date.now() - m) * 100) / 100, a = Math.round((Date.now() - f) * 100) / 100, p = a / 16, g = (l, w) => {
|
|
15
|
+
for (l = String(l); l.length < w; )
|
|
16
|
+
l = " " + l;
|
|
17
|
+
return l;
|
|
17
18
|
};
|
|
18
19
|
console.info(
|
|
19
|
-
`%c⏱ ${
|
|
20
|
+
`%c⏱ ${g(a, 5)} /${g(c, 5)} ms`,
|
|
20
21
|
`
|
|
21
22
|
font-size: .6rem;
|
|
22
23
|
font-weight: bold;
|
|
23
24
|
color: hsl(${Math.max(
|
|
24
25
|
0,
|
|
25
|
-
Math.min(120 - 120 *
|
|
26
|
+
Math.min(120 - 120 * p, 120)
|
|
26
27
|
)}deg 100% 31%);`,
|
|
27
28
|
e?.key
|
|
28
29
|
);
|
|
29
30
|
}
|
|
30
|
-
return e?.onChange && !(
|
|
31
|
+
return e?.onChange && !(s && e.skipInitialOnChange) && e.onChange(o), s = !1, o;
|
|
31
32
|
}
|
|
32
33
|
return h.updateDeps = (d) => {
|
|
33
|
-
|
|
34
|
+
t = d;
|
|
34
35
|
}, h;
|
|
35
36
|
}
|
|
36
|
-
function
|
|
37
|
+
function b(n, i) {
|
|
37
38
|
if (n === void 0)
|
|
38
39
|
throw new Error("Unexpected undefined");
|
|
39
40
|
return n;
|
|
40
41
|
}
|
|
41
|
-
const
|
|
42
|
-
let
|
|
43
|
-
return function(...
|
|
44
|
-
n.clearTimeout(
|
|
42
|
+
const T = (n, i) => Math.abs(n - i) < 1.01, v = (n, i, e) => {
|
|
43
|
+
let t;
|
|
44
|
+
return function(...o) {
|
|
45
|
+
n.clearTimeout(t), t = n.setTimeout(() => i.apply(this, o), e);
|
|
45
46
|
};
|
|
46
47
|
};
|
|
47
48
|
export {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
T as approxEqual,
|
|
50
|
+
v as debounce,
|
|
51
|
+
E as memo,
|
|
52
|
+
b as notUndefined
|
|
52
53
|
};
|