@nice2dev/ui-core 1.0.30 → 1.1.6

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 (71) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist/core/NiceFieldStatus.d.ts +0 -1
  3. package/dist/core/NiceInlineHelp.d.ts +0 -1
  4. package/dist/core/NiceThemeProvider.d.ts +0 -1
  5. package/dist/core/NiceThemeVariants.d.ts +2 -3
  6. package/dist/core/NiceThemeVariants.d.ts.map +1 -1
  7. package/dist/core/NiceUserPreferences.d.ts +2 -3
  8. package/dist/core/NiceUserPreferences.d.ts.map +1 -1
  9. package/dist/core/a11y-advanced.d.ts +1 -2
  10. package/dist/core/a11y.d.ts +1 -2
  11. package/dist/core/a11y.d.ts.map +1 -1
  12. package/dist/core/access-control.d.ts +0 -1
  13. package/dist/core/adapters.d.ts +0 -1
  14. package/dist/core/adapters.d.ts.map +1 -1
  15. package/dist/core/ai.d.ts +0 -1
  16. package/dist/core/animations.d.ts +0 -1
  17. package/dist/core/colorBlind.d.ts +0 -1
  18. package/dist/core/datasource-advanced.d.ts +0 -1
  19. package/dist/core/datasource-aggregation.d.ts +0 -1
  20. package/dist/core/datasource-aggregation.d.ts.map +1 -1
  21. package/dist/core/datasource-hooks.d.ts +0 -1
  22. package/dist/core/datasource-offline.d.ts +0 -1
  23. package/dist/core/datasource.d.ts +0 -1
  24. package/dist/core/deprecation.d.ts +0 -1
  25. package/dist/core/displayMode.d.ts +0 -1
  26. package/dist/core/displayStyle.d.ts +0 -1
  27. package/dist/core/filterToSql.d.ts +0 -1
  28. package/dist/core/helpContext.d.ts +0 -1
  29. package/dist/core/hooks.d.ts +0 -1
  30. package/dist/core/i18n.d.ts +0 -1
  31. package/dist/core/i18nDictionaries.d.ts +0 -1
  32. package/dist/core/icons.d.ts +0 -1
  33. package/dist/core/icuMessageFormat.d.ts +0 -1
  34. package/dist/core/leak-detector.d.ts +0 -1
  35. package/dist/core/omniverkTypes.d.ts +0 -1
  36. package/dist/core/pluginSystem.d.ts +0 -1
  37. package/dist/core/profiling.d.ts +0 -1
  38. package/dist/core/responsive.d.ts +0 -1
  39. package/dist/core/rtl.d.ts +0 -1
  40. package/dist/core/sanitizeHtml.d.ts +0 -1
  41. package/dist/core/spatialNav.d.ts +0 -1
  42. package/dist/core/standardProps.d.ts +0 -1
  43. package/dist/core/testing.d.ts +0 -1
  44. package/dist/core/theme.d.ts +0 -1
  45. package/dist/core/themeGallery.d.ts +0 -1
  46. package/dist/core/themePacks.d.ts +0 -1
  47. package/dist/core/themePacksExtended.d.ts +0 -1
  48. package/dist/core/themePresets.d.ts +0 -1
  49. package/dist/core/themeVariants.d.ts +0 -1
  50. package/dist/core/touch.d.ts +0 -1
  51. package/dist/core/touch.d.ts.map +1 -1
  52. package/dist/core/traceless.d.ts +0 -1
  53. package/dist/core/tutorials.d.ts +0 -1
  54. package/dist/core/types.d.ts +0 -1
  55. package/dist/core/useControllableState.d.ts +0 -1
  56. package/dist/core/useGamepad.d.ts +0 -1
  57. package/dist/core/useThemeIsDark.d.ts +0 -1
  58. package/dist/core/validation.d.ts +0 -1
  59. package/dist/index.cjs +4 -5
  60. package/dist/index.cjs.map +1 -1
  61. package/dist/index.d.ts +0 -1
  62. package/dist/index.mjs +18 -11
  63. package/dist/index.mjs.map +1 -1
  64. package/dist/performance/concurrent.d.ts +0 -1
  65. package/dist/performance/images.d.ts +2 -3
  66. package/dist/performance/index.d.ts +0 -1
  67. package/dist/performance/memory.d.ts +1 -2
  68. package/dist/performance/virtualization.d.ts +0 -1
  69. package/dist/performance/workers.d.ts +0 -1
  70. package/dist/viewSchema.d.ts +0 -1
  71. package/package.json +11 -10
package/dist/index.d.ts CHANGED
@@ -55,4 +55,3 @@ export * from './core/useControllableState';
55
55
  export * from './core/NiceFieldStatus';
56
56
  export * from './core/useGamepad';
57
57
  export * from './core/spatialNav';
58
- //# sourceMappingURL=index.d.ts.map
package/dist/index.mjs CHANGED
@@ -2932,7 +2932,7 @@ const tt = {
2932
2932
  none: ""
2933
2933
  };
2934
2934
  function Tc(e) {
2935
- const { visible: t, animation: r = "fade", duration: a = "normal", onEntered: n, onExited: o } = e, [s, i] = C(t ? "entered" : "exited"), [c, l] = C(t), d = H(), u = er(a), m = W(() => typeof window > "u" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches, []), y = m || r === "none" ? 0 : u;
2935
+ const { visible: t, animation: r = "fade", duration: a = "normal", onEntered: n, onExited: o } = e, [s, i] = C(t ? "entered" : "exited"), [c, l] = C(t), d = H(void 0), u = er(a), m = W(() => typeof window > "u" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches, []), y = m || r === "none" ? 0 : u;
2936
2936
  E(() => (d.current && clearTimeout(d.current), t ? (l(!0), i("entering"), d.current = setTimeout(() => {
2937
2937
  i("entered"), n == null || n();
2938
2938
  }, y)) : (i("exiting"), d.current = setTimeout(() => {
@@ -3883,7 +3883,15 @@ function Zc(e = {}) {
3883
3883
  );
3884
3884
  }
3885
3885
  function el(e = {}) {
3886
- const { onClick: t, disabled: r = !1, role: a, tabIndex: n, triggerOnSpace: o = !0, as: s, selected: i } = e, c = a ?? s ?? "button", l = M(
3886
+ const {
3887
+ onClick: t,
3888
+ disabled: r = !1,
3889
+ role: a,
3890
+ tabIndex: n,
3891
+ triggerOnSpace: o = !0,
3892
+ as: s,
3893
+ selected: i
3894
+ } = e, c = a ?? s ?? "button", l = M(
3887
3895
  (m) => {
3888
3896
  r || t == null || t(m);
3889
3897
  },
@@ -3953,7 +3961,7 @@ function tl(e = {}) {
3953
3961
  return E(() => () => l(), []), { isListening: t, isSupported: s, start: c, stop: l, transcript: a };
3954
3962
  }
3955
3963
  function ba(e = {}) {
3956
- const [t, r] = C(""), a = H(), n = M(
3964
+ const [t, r] = C(""), a = H(void 0), n = M(
3957
3965
  (s) => {
3958
3966
  r(""), requestAnimationFrame(() => {
3959
3967
  r(s), e.clearAfterMs && (a.current && clearTimeout(a.current), a.current = setTimeout(() => r(""), e.clearAfterMs));
@@ -4604,7 +4612,7 @@ const bl = ({
4604
4612
  return V.enabled ? /* @__PURE__ */ k(Xr, { id: e, onRender: s, children: t }) : /* @__PURE__ */ k(Fe, { children: t });
4605
4613
  };
4606
4614
  function Ra(e, t) {
4607
- const r = H(), a = H(0);
4615
+ const r = H(void 0), a = H(0);
4608
4616
  E(() => {
4609
4617
  if (!V.enabled || !V.trackPropsChanges)
4610
4618
  return;
@@ -6046,7 +6054,7 @@ function ad({
6046
6054
  saveDebounce: a = 500,
6047
6055
  children: n
6048
6056
  }) {
6049
- const [o, s] = C(Rt), [i, c] = C(!0), [l, d] = C(!1), [u, m] = C(null), y = H(), f = H();
6057
+ const [o, s] = C(Rt), [i, c] = C(!0), [l, d] = C(!1), [u, m] = C(null), y = H(void 0), f = H(void 0);
6050
6058
  E(() => {
6051
6059
  let N = !0;
6052
6060
  return (async () => {
@@ -16096,7 +16104,7 @@ function Ms(e, t) {
16096
16104
  return a;
16097
16105
  }
16098
16106
  function As(e) {
16099
- const { itemCount: t, itemHeight: r, containerHeight: a, overscan: n = 3, initialScrollTop: o = 0 } = e, [s, i] = C(o), [c, l] = C(!1), d = H(), u = W(() => {
16107
+ const { itemCount: t, itemHeight: r, containerHeight: a, overscan: n = 3, initialScrollTop: o = 0 } = e, [s, i] = C(o), [c, l] = C(!1), d = H(void 0), u = W(() => {
16100
16108
  if (typeof r == "number")
16101
16109
  return null;
16102
16110
  const x = new Array(t + 1);
@@ -16200,7 +16208,7 @@ function vu(e) {
16200
16208
  containerHeight: o,
16201
16209
  containerWidth: s,
16202
16210
  overscan: i = 2
16203
- } = e, [c, l] = C(0), [d, u] = C(0), [m, y] = C(!1), f = H(), g = W(() => {
16211
+ } = e, [c, l] = C(0), [d, u] = C(0), [m, y] = C(!1), f = H(void 0), g = W(() => {
16204
16212
  if (typeof a == "number")
16205
16213
  return t * a;
16206
16214
  let v = 0;
@@ -16323,7 +16331,7 @@ function Su(e, t, r, a = 3) {
16323
16331
  };
16324
16332
  }
16325
16333
  function xu(e) {
16326
- const { items: t, searchFn: r, debounce: a = 0, minLength: n = 0 } = e, [o, s] = C(""), i = At(o), [c, l] = C(""), d = H();
16334
+ const { items: t, searchFn: r, debounce: a = 0, minLength: n = 0 } = e, [o, s] = C(""), i = At(o), [c, l] = C(""), d = H(void 0);
16327
16335
  E(() => {
16328
16336
  if (a > 0)
16329
16337
  return d.current = window.setTimeout(() => {
@@ -16447,7 +16455,7 @@ function Au(e) {
16447
16455
  };
16448
16456
  }
16449
16457
  function Cu(e) {
16450
- const { workerScript: t, idleTimeout: r = 3e4 } = e, [a, n] = C(null), [o, s] = C(!1), [i, c] = C(null), l = H(null), d = H(0), u = H(null), m = H(), y = M(() => {
16458
+ const { workerScript: t, idleTimeout: r = 3e4 } = e, [a, n] = C(null), [o, s] = C(!1), [i, c] = C(null), l = H(null), d = H(0), u = H(null), m = H(void 0), y = M(() => {
16451
16459
  if (!l.current) {
16452
16460
  if (typeof t == "function") {
16453
16461
  const h = new Blob([`(${t.toString()})()`], {
@@ -16506,7 +16514,7 @@ function Lu(e) {
16506
16514
  workerScript: t,
16507
16515
  poolSize: r = navigator.hardwareConcurrency || 4,
16508
16516
  idleTimeout: a = 6e4
16509
- } = e, n = H([]), o = H([]), s = H(0), i = H(), c = M(() => {
16517
+ } = e, n = H([]), o = H([]), s = H(0), i = H(void 0), c = M(() => {
16510
16518
  if (typeof t == "function") {
16511
16519
  const p = new Blob([`(${t.toString()})()`], { type: "application/javascript" });
16512
16520
  return new Worker(URL.createObjectURL(p));
@@ -18122,4 +18130,3 @@ export {
18122
18130
  Xi as zenMinimal,
18123
18131
  fs as zinePunk
18124
18132
  };
18125
- //# sourceMappingURL=index.mjs.map