react-luminus-components 1.4.27 → 1.4.29
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/.vite/manifest.json +28 -38
- package/dist/{FormDisabledProvider-BqRrJ0Kq.js → FormDisabledProvider-C4BJtnSl.js} +1 -1
- package/dist/{FormDisabledProvider-jEUon85O.cjs → FormDisabledProvider-D7ohrf6I.cjs} +1 -1
- package/dist/components/NotifCenter/Actions/NotificationActions.d.ts +14 -0
- package/dist/components/NotifCenter/Actions/components/ActionTemplates/ActionTemplates.d.ts +14 -0
- package/dist/components/NotifCenter/Actions/components/ActionTemplates/comps/Recipients/NotificationRecipients.d.ts +8 -0
- package/dist/components/NotifCenter/Actions/components/ActionTemplates/comps/index.d.ts +2 -0
- package/dist/components/NotifCenter/Actions/components/ActionTemplates/comps/modals/NotificationTargetModal.d.ts +12 -0
- package/dist/components/NotifCenter/Actions/components/HistoryTable/NotificationHistoryTable.d.ts +9 -0
- package/dist/components/NotifCenter/Actions/components/index.d.ts +2 -0
- package/dist/components/NotifCenter/Users/NotificationUsers.d.ts +9 -0
- package/dist/components/NotifCenter/Users/components/EmployeeNotifTable/EmployeeNotifHistoryTable.d.ts +9 -0
- package/dist/components/NotifCenter/Users/components/index.d.ts +1 -0
- package/dist/components/NotifCenter/index.d.ts +2 -0
- package/dist/components/common/StateToggle/StateToggle.d.ts +8 -0
- package/dist/components/common/index.d.ts +1 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +44 -45
- package/dist/hooks/useKeyPress/useKeyPress.d.ts +1 -1
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +22 -23
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +2 -2
- package/dist/main.cjs.js +53 -53
- package/dist/main.d.ts +3 -0
- package/dist/main.es.js +4844 -4593
- package/dist/models/index.d.ts +8 -0
- package/dist/models/texts/ComponentsContextTexts.d.ts +2 -0
- package/dist/models/texts/NotifCentrumTexts.d.ts +14 -0
- package/dist/models/types/notifCenter/NotifTargetModel.d.ts +7 -0
- package/dist/models/types/notifCenter/NotificationHistoryModel.d.ts +11 -0
- package/dist/models/types/notifCenter/NotificationHistoryPersonModel.d.ts +6 -0
- package/dist/models/types/notifCenter/NotificationHistoryUserDto.d.ts +13 -0
- package/dist/models/types/notifCenter/NotificationModel.d.ts +9 -0
- package/dist/models/types/notifCenter/NotificationTarget.d.ts +9 -0
- package/dist/models/types/notifCenter/NotificationTemplate.d.ts +14 -0
- package/dist/{nivo-bar.es-DCweuhLT.cjs → nivo-bar.es-C2UfrfEW.cjs} +40 -40
- package/dist/{nivo-bar.es-BdEuFoWH.js → nivo-bar.es-CAK_sBtK.js} +39 -36
- package/dist/style.css +1 -1
- package/dist/useLocalStorageState-DgnSxAxT.cjs +1 -0
- package/dist/useLocalStorageState-zVazoLpV.js +74 -0
- package/dist/utils/constants/CommonLuminusIconsArray.d.ts +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +46 -42
- package/package.json +1 -1
- package/dist/useGetApiData-8CkqvCJ7.cjs +0 -1
- package/dist/useGetApiData-EWN8nbww.js +0 -61
- package/dist/useLocalStorageState-BFc8Gc8H.cjs +0 -1
- package/dist/useLocalStorageState-Bt99kkCr.js +0 -17
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const a=require("react"),l=(t,c)=>{const s=a.useCallback(()=>{const e=localStorage.getItem(t);return e!=null&&e!=="undefined"?JSON.parse(e):c},[c,t]),[o,r]=a.useState(s);a.useEffect(()=>{localStorage.setItem(t,JSON.stringify(o))},[t,o]);const n=a.useCallback(()=>{r(s)},[s]);return[o,r,n]};exports.useLocalStorageState=l;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { useCallback as n, useState as S, useEffect as l } from "react";
|
|
2
|
-
const g = (t, s) => {
|
|
3
|
-
const a = n(() => {
|
|
4
|
-
const e = localStorage.getItem(t);
|
|
5
|
-
return e != null && e !== "undefined" ? JSON.parse(e) : s;
|
|
6
|
-
}, [s, t]), [o, r] = S(a);
|
|
7
|
-
l(() => {
|
|
8
|
-
localStorage.setItem(t, JSON.stringify(o));
|
|
9
|
-
}, [t, o]);
|
|
10
|
-
const c = n(() => {
|
|
11
|
-
r(a);
|
|
12
|
-
}, [a]);
|
|
13
|
-
return [o, r, c];
|
|
14
|
-
};
|
|
15
|
-
export {
|
|
16
|
-
g as u
|
|
17
|
-
};
|