react-luminus-components 1.2.114 → 1.2.115

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 x, t as J, a as oe, g as pr, T as gr, b as xr, s as kt, E as wr, d as vr, e as yr, f as br, h as _r, u as V, i as me, k as Jt, F as Nt, l as jr, m as kr, n as Nr, o as Cr, p as Ir, q as $r, r as Sr, v as Tr, w as ut, x as Zt, y as Er, z as Dr, A as be, B as Or, C as Pr, P as Xe, D as dt, S as Ct, G as Ae, H as Me, I as ht, J as Ar, K as en, L as $e, M as Ye, O as It, N as Mr, Q as ae, R as Fr, U as Wr, V as tn, W as mt, X as ft, Y as G, Z as Rr, _ as nn, $ as Lr, a0 as rn, a1 as pt, a2 as Yr, a3 as qr, a4 as sn, a5 as on, a6 as ce, a7 as Hr, a8 as Br, a9 as Vr, aa as Gr, ab as an, ac as zr, ad as Ur, ae as Je, af as ke, ag as cn, ah as fe } from "./NoInputContainer-BAgsWdLH.js";
2
- import { aj as Ll, ai as Yl } from "./NoInputContainer-BAgsWdLH.js";
1
+ import { j as o, c as x, t as J, a as oe, g as pr, T as gr, b as xr, s as kt, E as wr, d as vr, e as yr, f as br, h as _r, u as V, i as me, k as Jt, F as Nt, l as jr, m as kr, n as Nr, o as Cr, p as Ir, q as $r, r as Sr, v as Tr, w as ut, x as Zt, y as Er, z as Dr, A as be, B as Or, C as Pr, P as Xe, D as dt, S as Ct, G as Ae, H as Me, I as ht, J as Ar, K as en, L as $e, M as Ye, O as It, N as Mr, Q as ae, R as Fr, U as Wr, V as tn, W as mt, X as ft, Y as G, Z as Rr, _ as nn, $ as Lr, a0 as rn, a1 as pt, a2 as Yr, a3 as qr, a4 as sn, a5 as on, a6 as ce, a7 as Hr, a8 as Br, a9 as Vr, aa as Gr, ab as an, ac as zr, ad as Ur, ae as Je, af as ke, ag as cn, ah as fe } from "./NoInputContainer-Bgh3cEfG.js";
2
+ import { aj as Ll, ai as Yl } from "./NoInputContainer-Bgh3cEfG.js";
3
3
  import * as W from "react";
4
4
  import ne, { useCallback as S, useMemo as K, useEffect as D, useRef as q, useState as O, useReducer as ln, useContext as L, Component as Kr, isValidElement as Qr, Suspense as Xr, createElement as Jr } from "react";
5
- import { c as de, d as Zr, C as es, a as un, u as ts, q as $t, F as ns, b as dn, E as Fe, P as St, M as We, L as Tt } from "./PrimaryButton-DEmq1lC9.js";
5
+ import { c as de, d as Zr, C as es, a as un, u as ts, q as $t, F as ns, b as dn, E as Fe, P as St, M as We, L as Tt } from "./PrimaryButton-DDQG35ET.js";
6
6
  import { m as rs, a as hn } from "./latinize-BQrinury.js";
7
7
  import { useFormContext as le, Controller as mn } from "react-hook-form";
8
8
  import { u as fn, a as pn, b as gn } from "./useFormControlType-BAFqxupC.js";
9
- import { S as Hl } from "./SimpleTooltip-DcjdypSH.js";
9
+ import { S as Hl } from "./SimpleTooltip-YiM19KZ0.js";
10
10
  import { s as ss } from "./searchUtils-Du4JnXdQ.js";
11
11
  const rl = ({ fileLoader: n, fileName: e, children: t }) => {
12
12
  const r = S(async () => {
@@ -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-BAgsWdLH.js";
2
+ import { am as p, al as h } from "./NoInputContainer-Bgh3cEfG.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"),f=require("./NoInputContainer-BK9oG3tT.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-BTMhF5K2.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 +1 @@
1
- "use strict";const r=require("react"),t=require("./NoInputContainer-BK9oG3tT.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-BTMhF5K2.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-BAgsWdLH.js";
2
+ import { aa as n } from "./NoInputContainer-Bgh3cEfG.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.114",
3
+ "version": "1.2.115",
4
4
  "description": "Library of React Components reusable in Luminus projects (Fleetman, CAFM)",
5
5
  "type": "module",
6
6
  "repository": {