react-luminus-components 1.2.105 → 1.2.107

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/main.es.js CHANGED
@@ -1,12 +1,12 @@
1
- import { j as o, c as w, t as J, a as oe, g as hr, T as mr, b as fr, s as kt, E as pr, d as gr, e as xr, f as wr, h as vr, u as V, i as me, k as Xt, F as Nt, l as yr, m as br, n as _r, o as jr, p as kr, q as Nr, r as Cr, v as Ir, w as ut, x as Jt, y as $r, z as Sr, A as be, B as Tr, C as Er, P as Xe, D as dt, S as Ct, G as Me, H as Ae, I as ht, J as Dr, K as Zt, L as $e, M as Le, O as It, N as Or, Q as ae, R as Pr, U as Mr, V as en, W as mt, X as ft, Y as G, Z as Ar, _ as tn, $ as Fr, a0 as nn, a1 as pt, a2 as Wr, a3 as Rr, a4 as Yr, a5 as rn, a6 as ce, a7 as Lr, a8 as qr, a9 as Hr, aa as Br, ab as sn, ac as Vr, ad as Gr, ae as Je, af as ke, ag as on, ah as fe } from "./NoInputContainer-0WkO5fEr.js";
2
- import { aj as Fl, ai as Wl } from "./NoInputContainer-0WkO5fEr.js";
1
+ import { j as o, c as w, t as J, a as oe, g as hr, T as mr, b as fr, s as kt, E as pr, d as gr, e as xr, f as wr, h as vr, u as V, i as me, k as Xt, F as Nt, l as yr, m as br, n as _r, o as jr, p as kr, q as Nr, r as Cr, v as Ir, w as ut, x as Jt, y as $r, z as Sr, A as be, B as Tr, C as Er, P as Xe, D as dt, S as Ct, G as Me, H as Ae, I as ht, J as Dr, K as Zt, L as $e, M as Le, O as It, N as Or, Q as ae, R as Pr, U as Mr, V as en, W as mt, X as ft, Y as G, Z as Ar, _ as tn, $ as Fr, a0 as nn, a1 as pt, a2 as Wr, a3 as Rr, a4 as Yr, a5 as rn, a6 as ce, a7 as Lr, a8 as qr, a9 as Hr, aa as Br, ab as sn, ac as Vr, ad as Gr, ae as Je, af as ke, ag as on, ah as fe } from "./NoInputContainer-Cqy8FIXY.js";
2
+ import { aj as Fl, ai as Wl } from "./NoInputContainer-Cqy8FIXY.js";
3
3
  import * as W from "react";
4
4
  import ne, { useCallback as S, useMemo as K, useEffect as O, useRef as q, useState as P, useReducer as an, useContext as Y, Component as zr, isValidElement as Ur, Suspense as Kr, createElement as Qr } from "react";
5
- import { c as de, d as Xr, C as Jr, a as cn, u as Zr, q as $t, F as es, b as ln, E as Fe, P as St, M as We, L as ts } from "./PrimaryButton-S3jW-L2o.js";
5
+ import { c as de, d as Xr, C as Jr, a as cn, u as Zr, q as $t, F as es, b as ln, E as Fe, P as St, M as We, L as ts } from "./PrimaryButton-hVB9eFW7.js";
6
6
  import { m as ns, a as un } from "./latinize-BQrinury.js";
7
7
  import { useFormContext as le, Controller as dn } from "react-hook-form";
8
8
  import { u as hn, a as mn, b as fn } from "./useFormControlType-BAFqxupC.js";
9
- import { S as Yl } from "./SimpleTooltip-4Vgxz25r.js";
9
+ import { S as Yl } from "./SimpleTooltip-BJ5ACGJd.js";
10
10
  import { s as rs } from "./searchUtils-Du4JnXdQ.js";
11
11
  const tl = ({ fileLoader: n, fileName: e, children: t }) => {
12
12
  const r = S(async () => {
@@ -1 +1 @@
1
- "use strict";const r=require("react"),f=require("./NoInputContainer-DUqvY4oq.cjs"),p=()=>{const{isShown:s,text:c,showPrompt:e,hidePrompt:t,resolveRef:n,setOptions:i}=r.useContext(f.PromptContext),a=r.useCallback(o=>{t(),n.current(o)},[t,n]),l=r.useCallback(async(o,u)=>(i(m=>({...m,...u})),e(o),new Promise(m=>{n.current=m})),[n,i,e]);return{isShown:s,text:c,prompt:l,onFinish:a}};let C;const h=()=>{const{show:s,text:c,showConfirm:e,hideConfirm:t}=r.useContext(f.ConfirmContext),n=()=>{t()};return{confirm:async o=>(e(o),new Promise(u=>{C=u})),onConfirm:()=>{n(),C(!0)},onCancel:()=>{n(),C(!1)},show:s,text:c}};exports.useConfirm=h;exports.usePrompt=p;
1
+ "use strict";const r=require("react"),f=require("./NoInputContainer-Vht2G69u.cjs"),p=()=>{const{isShown:s,text:c,showPrompt:e,hidePrompt:t,resolveRef:n,setOptions:i}=r.useContext(f.PromptContext),a=r.useCallback(o=>{t(),n.current(o)},[t,n]),l=r.useCallback(async(o,u)=>(i(m=>({...m,...u})),e(o),new Promise(m=>{n.current=m})),[n,i,e]);return{isShown:s,text:c,prompt:l,onFinish:a}};let C;const h=()=>{const{show:s,text:c,showConfirm:e,hideConfirm:t}=r.useContext(f.ConfirmContext),n=()=>{t()};return{confirm:async o=>(e(o),new Promise(u=>{C=u})),onConfirm:()=>{n(),C(!0)},onCancel:()=>{n(),C(!1)},show:s,text:c}};exports.useConfirm=h;exports.usePrompt=p;
@@ -1,5 +1,5 @@
1
1
  import { useContext as u, useCallback as l } from "react";
2
- import { am as p, al as h } from "./NoInputContainer-0WkO5fEr.js";
2
+ import { am as p, al as h } from "./NoInputContainer-Cqy8FIXY.js";
3
3
  const P = () => {
4
4
  const { isShown: e, text: s, showPrompt: t, hidePrompt: r, resolveRef: o, setOptions: c } = u(p), C = l((n) => {
5
5
  r(), o.current(n);
@@ -1 +1 @@
1
- "use strict";const r=require("react"),t=require("./NoInputContainer-DUqvY4oq.cjs");require("./latinize-DaqzUOla.cjs");require("react-hook-form");const o=()=>{const{user:e}=r.useContext(t.UserContext);return{checkUserHasPermissions:r.useCallback(n=>n.every(i=>{var s;return(s=e==null?void 0:e.permissions)==null?void 0:s.includes(i)}),[e])}};exports.usePermissions=o;
1
+ "use strict";const r=require("react"),t=require("./NoInputContainer-Vht2G69u.cjs");require("./latinize-DaqzUOla.cjs");require("react-hook-form");const o=()=>{const{user:e}=r.useContext(t.UserContext);return{checkUserHasPermissions:r.useCallback(n=>n.every(i=>{var s;return(s=e==null?void 0:e.permissions)==null?void 0:s.includes(i)}),[e])}};exports.usePermissions=o;
@@ -1,5 +1,5 @@
1
1
  import { useContext as t, useCallback as i } from "react";
2
- import { aa as n } from "./NoInputContainer-0WkO5fEr.js";
2
+ import { aa as n } from "./NoInputContainer-Cqy8FIXY.js";
3
3
  import "./latinize-BQrinury.js";
4
4
  import "react-hook-form";
5
5
  const k = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-luminus-components",
3
- "version": "1.2.105",
3
+ "version": "1.2.107",
4
4
  "description": "Library of React Components reusable in Luminus projects (Fleetman, CAFM)",
5
5
  "type": "module",
6
6
  "repository": {