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