wcz-layout 7.6.2 → 7.6.4

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.
@@ -1,4 +1,4 @@
1
- import { CloseDialog, OpenDialog } from '../hooks/DialogsHooks';
1
+ import { CloseDialog, OpenDialog } from '../hooks/useDialogs';
2
2
  export interface DialogsContextValue {
3
3
  open: OpenDialog;
4
4
  close: CloseDialog;
@@ -1,6 +1,6 @@
1
- export { useFieldContext, useFormContext, useLayoutForm, withLayoutForm } from '../hooks/FormHooks';
2
- export { useDialogs } from '../hooks/DialogsHooks';
3
- export type { DialogProps } from '../hooks/DialogsHooks';
1
+ export { useFieldContext, useFormContext, useLayoutForm, withLayoutForm } from '../hooks/useForm';
2
+ export { useDialogs } from '../hooks/useDialogs';
3
+ export type { DialogProps } from '../hooks/useDialogs';
4
4
  export { useNotification } from '../hooks/UseNotification';
5
5
  export { useInView } from 'react-intersection-observer';
6
6
  export { useTranslation } from 'react-i18next';
@@ -1,5 +1,5 @@
1
1
  export { createEnv } from '@t3-oss/env-core';
2
- export { t } from 'i18next';
2
+ export { default as i18next, t } from 'i18next';
3
3
  export { uuidv7 } from 'uuidv7';
4
4
  export { getAccessToken } from '../lib/auth/msalClient';
5
5
  export { getAppToken, getTokenOnBehalfOf } from '../lib/auth/msalServer';
@@ -0,0 +1 @@
1
+ export declare function useTheme(locale: string): import('@mui/material').Theme;
package/dist/hooks.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./NotificationContext-DovR_auQ.js";
2
2
  import { a as t } from "./utils-C4oJ0tr5.js";
3
- import { n, t as r } from "./DialogsHooks-CZVdKmPv.js";
3
+ import { n, t as r } from "./useDialogs-CX8kuAuA.js";
4
4
  import { c as i } from "react/compiler-runtime";
5
5
  import { Autocomplete as a, Button as o, Checkbox as s, FormControl as c, FormControlLabel as l, FormHelperText as u, FormLabel as d, Radio as f, RadioGroup as p, Slider as m, Switch as h, TextField as g } from "@mui/material";
6
6
  import { useTranslation as _ } from "react-i18next";
@@ -688,7 +688,7 @@ function Oe(e, t, n) {
688
688
  var _ = function(e, t, n) {
689
689
  var r = !1, i = !1;
690
690
  a.startsWith("-") ? r = !1 : e.startsWith("--") ? (r = !1, i = !0) : o.startsWith("-") && e.length === o.length ? r = !1 : e[0] === "-" && (r = !0);
691
- var s = r ? 1 : 0;
691
+ var s = +!!r;
692
692
  return i && (s = 2), s && (e = e.substring(s), t -= s, n -= s), {
693
693
  value: e,
694
694
  start: t,
@@ -718,7 +718,7 @@ function ke(e, t) {
718
718
  var i = Array.from({ length: e.length + 1 }).map(function() {
719
719
  return !0;
720
720
  }), a = e[0] === "-";
721
- i.fill(!1, 0, Math.min(n.length + (a ? 1 : 0), e.length));
721
+ i.fill(!1, 0, Math.min(n.length + +!!a, e.length));
722
722
  var o = e.length;
723
723
  return i.fill(!1, o - r.length + 1, o + 1), i;
724
724
  }
@@ -1033,8 +1033,8 @@ var qe = (e) => {
1033
1033
  let M = j, N;
1034
1034
  t[6] !== g || t[7] !== S || t[8] !== s || t[9] !== c || t[10] !== v ? (N = () => {
1035
1035
  clearTimeout(A.current);
1036
- let e = k.current.map(Je).slice(1).reduce(Ye, 0) / (k.current.length - 1), t = k.current.slice(v.length > 0 ? 1 : 0).filter(Xe).map(Ze).join("");
1037
- e <= g && k.current.slice(v.length > 0 ? 1 : 0).length >= S ? s(t) : e <= g && c && c(t), M();
1036
+ let e = k.current.map(Je).slice(1).reduce(Ye, 0) / (k.current.length - 1), t = k.current.slice(+(v.length > 0)).filter(Xe).map(Ze).join("");
1037
+ e <= g && k.current.slice(+(v.length > 0)).length >= S ? s(t) : e <= g && c && c(t), M();
1038
1038
  }, t[6] = g, t[7] = S, t[8] = s, t[9] = c, t[10] = v, t[11] = N) : N = t[11];
1039
1039
  let P = N, F;
1040
1040
  t[12] !== D || t[13] !== x || t[14] !== P || t[15] !== u || t[16] !== T || t[17] !== v || t[18] !== w || t[19] !== h ? (F = (e) => {