@zydon/common 2.7.25 → 2.7.27
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/chunk-2R4UUSRL.js +6 -0
- package/dist/{chunk-3HJGN53F.js → chunk-3JXE4T4W.js} +1 -1
- package/dist/{chunk-YKX5RVAJ.js → chunk-5MFY3GOD.js} +1 -1
- package/dist/chunk-6H6VWBEU.js +7 -0
- package/dist/{chunk-Y7C7JIPZ.js → chunk-6HCH7BUB.js} +2 -2
- package/dist/{chunk-T7AZE2TB.js → chunk-AYGCYCIP.js} +1 -1
- package/dist/chunk-HKINZAZB.js +15 -0
- package/dist/{chunk-677WKIPE.js → chunk-OXND3IVT.js} +1 -1
- package/dist/{chunk-K25VBEKK.js → chunk-QCN7J3QD.js} +2 -2
- package/dist/{chunk-AJYSAO5N.js → chunk-RDX5MYRG.js} +1 -1
- package/dist/{chunk-7TWT67RG.js → chunk-SMRJS2UH.js} +1 -1
- package/dist/{chunk-RRH2346R.js → chunk-SVZBOLAL.js} +2 -2
- package/dist/{chunk-22LB74NN.js → chunk-UNSRJCI6.js} +2 -2
- package/dist/{chunk-7J53ZUIF.js → chunk-X3NSWXUJ.js} +3 -3
- package/dist/{chunk-HXXZVHQF.js → chunk-ZFNDQWIR.js} +1 -1
- package/dist/components/Avatar/index.d.ts +2 -2
- package/dist/components/AvatarButton/index.js +8 -12
- package/dist/components/Common/index.d.ts +1 -2
- package/dist/components/Common/index.js +7 -11
- package/dist/components/DataCards/index.js +2 -2
- package/dist/components/DataGrid/index.js +3 -3
- package/dist/components/DataView/index.d.ts +8 -8
- package/dist/components/DataView/index.js +3 -3
- package/dist/components/DragButton/index.d.ts +1 -1
- package/dist/components/DragContainer/index.d.ts +1 -1
- package/dist/components/EmptyContent/index.js +2 -2
- package/dist/components/Label/index.js +2 -2
- package/dist/components/ListBundles/index.js +2 -2
- package/dist/components/SplashScreen/index.js +1 -1
- package/dist/components/ToggleTheme/index.js +8 -12
- package/dist/components/WebhookCard/index.js +2 -2
- package/dist/components/carousel/index.d.ts +3 -3
- package/dist/components/carousel/index.js +2 -2
- package/dist/components/form/UploadAvatarWithCrop/index.js +3 -3
- package/dist/components/form/UploadWithCrop/index.js +3 -3
- package/dist/components/upload/index.js +5 -5
- package/dist/contexts/PushNotifications/index.js +2 -2
- package/dist/hooks/useThemeToggle.d.ts +1 -1
- package/dist/hooks/useThemeToggle.js +7 -11
- package/dist/{index-8a737d25.d.ts → index-5a5e5dc8.d.ts} +13 -13
- package/dist/index.d.ts +6 -6
- package/dist/index.js +7 -11
- package/dist/{settings-d0cceb05.d.ts → settings-4d4dc42f.d.ts} +0 -2
- package/dist/{settings-provider-918b7981.d.ts → settings-provider-4537dcad.d.ts} +2 -2
- package/dist/theme/core/index.d.ts +2 -2
- package/dist/theme/core/index.js +3 -3
- package/dist/theme/settings-provider.d.ts +2 -2
- package/dist/theme/settings-provider.js +1 -1
- package/dist/theme/styles/index.d.ts +16 -16
- package/dist/theme/styles/index.js +1 -1
- package/dist/theme/theme-provider.d.ts +9 -15
- package/dist/theme/theme-provider.js +6 -10
- package/dist/theme/with-settings/index.d.ts +2 -2
- package/dist/theme/with-settings/index.js +3 -3
- package/dist/{types-2a4efc17.d.ts → types-b8e8c021.d.ts} +5 -0
- package/package.json +1 -1
- package/dist/chunk-N2DMNLAX.js +0 -8
- package/dist/chunk-TYA2RDQJ.js +0 -6
- package/dist/chunk-XCJL6W4A.js +0 -16
|
@@ -2,9 +2,9 @@ import { a as a$5 } from '../../chunk-URVMF4MW.js';
|
|
|
2
2
|
import { a as a$6 } from '../../chunk-OBYJ5SJ2.js';
|
|
3
3
|
import { a as a$2 } from '../../chunk-5YJTSVA2.js';
|
|
4
4
|
import { a } from '../../chunk-NPXVOPB2.js';
|
|
5
|
-
import { a as a$9 } from '../../chunk-
|
|
5
|
+
import { a as a$9 } from '../../chunk-AYGCYCIP.js';
|
|
6
6
|
import { a as a$7 } from '../../chunk-FK7DDO5L.js';
|
|
7
|
-
import '../../chunk-
|
|
7
|
+
import '../../chunk-SMRJS2UH.js';
|
|
8
8
|
import '../../chunk-U26IUEAG.js';
|
|
9
9
|
import { a as a$4 } from '../../chunk-X2EIL7EB.js';
|
|
10
10
|
import { a as a$1 } from '../../chunk-WIJV4EHZ.js';
|
|
@@ -13,7 +13,7 @@ import '../../chunk-C2JZG45F.js';
|
|
|
13
13
|
import { a as a$8 } from '../../chunk-26GV7WKC.js';
|
|
14
14
|
import { a as a$3 } from '../../chunk-ORYAES3Q.js';
|
|
15
15
|
import { b as b$1 } from '../../chunk-ILHUUK4X.js';
|
|
16
|
-
import '../../chunk-
|
|
16
|
+
import '../../chunk-X3NSWXUJ.js';
|
|
17
17
|
import { forwardRef, useState } from 'react';
|
|
18
18
|
import io from '@mui/material/Button';
|
|
19
19
|
import Do from '@mui/material/CircularProgress';
|
|
@@ -6,7 +6,7 @@ import * as _mui_material_IconButton from '@mui/material/IconButton';
|
|
|
6
6
|
|
|
7
7
|
declare const DragButton: ({ disableDrag, ...props }: _mui_material_IconButton.IconButtonOwnProps & Omit<_mui_material.ButtonBaseOwnProps, "classes"> & _mui_material_OverridableComponent.CommonProps & Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
8
8
|
ref?: ((instance: HTMLButtonElement | null) => void) | react.RefObject<HTMLButtonElement> | null | undefined;
|
|
9
|
-
}, "children" | "
|
|
9
|
+
}, "children" | "disabled" | "className" | "style" | "classes" | "sx" | "color" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "size" | "disableFocusRipple" | "edge"> & {
|
|
10
10
|
component?: react.ElementType<any, keyof react.JSX.IntrinsicElements> | undefined;
|
|
11
11
|
} & {
|
|
12
12
|
disableDrag?: boolean | undefined;
|
|
@@ -19,7 +19,7 @@ interface SortableStyleProps extends BoxProps {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
declare const DragContainer: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material_styles.Theme> & Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
22
|
-
ref?:
|
|
22
|
+
ref?: ((instance: HTMLDivElement | null) => void) | react.RefObject<HTMLDivElement> | null | undefined;
|
|
23
23
|
}, keyof _mui_system.BoxOwnProps<_mui_material_styles.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material_styles.Theme> & SortableStyleProps & Partial<DraggableAttributes>, {}, {}>;
|
|
24
24
|
|
|
25
25
|
export { DragContainer as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { a as default } from '../../chunk-
|
|
1
|
+
export { a as default } from '../../chunk-SMRJS2UH.js';
|
|
2
2
|
import '../../chunk-U26IUEAG.js';
|
|
3
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-X3NSWXUJ.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { a as default } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { a as default } from '../../chunk-ZFNDQWIR.js';
|
|
2
|
+
import '../../chunk-X3NSWXUJ.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as a$2 } from '../../chunk-Q7HPO5OB.js';
|
|
2
2
|
import { a as a$1 } from '../../chunk-OBYJ5SJ2.js';
|
|
3
|
-
import { o, a, f, k as k$1 } from '../../chunk-
|
|
3
|
+
import { o, a, f, k as k$1 } from '../../chunk-RDX5MYRG.js';
|
|
4
4
|
import '../../chunk-WIJV4EHZ.js';
|
|
5
5
|
import '../../chunk-FO7JCJ76.js';
|
|
6
6
|
import '../../chunk-C2JZG45F.js';
|
|
7
|
-
import '../../chunk-
|
|
7
|
+
import '../../chunk-X3NSWXUJ.js';
|
|
8
8
|
import { Fragment } from 'react';
|
|
9
9
|
import k from '@mui/material/Stack';
|
|
10
10
|
import { styled } from '@mui/material/styles';
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
export { a as default } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
1
|
+
export { a as default } from '../../chunk-OXND3IVT.js';
|
|
2
|
+
import '../../chunk-6H6VWBEU.js';
|
|
3
|
+
import '../../chunk-HKINZAZB.js';
|
|
4
4
|
import '../../chunk-SO64ZYQB.js';
|
|
5
5
|
import '../../chunk-GUFT6XPG.js';
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import '../../chunk-
|
|
8
|
-
import '../../chunk-
|
|
6
|
+
import '../../chunk-2R4UUSRL.js';
|
|
7
|
+
import '../../chunk-QCN7J3QD.js';
|
|
8
|
+
import '../../chunk-SVZBOLAL.js';
|
|
9
9
|
import '../../chunk-CFVUZ4S5.js';
|
|
10
|
-
import '../../chunk-
|
|
11
|
-
import '../../chunk-
|
|
12
|
-
import '../../chunk-QQDMA4TE.js';
|
|
13
|
-
import '../../chunk-Z2TDWMRU.js';
|
|
14
|
-
import '../../chunk-4INDXVIX.js';
|
|
15
|
-
import '../../chunk-3APKMSVD.js';
|
|
10
|
+
import '../../chunk-5MFY3GOD.js';
|
|
11
|
+
import '../../chunk-X3NSWXUJ.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { d } from '../../chunk-WUQSPJPN.js';
|
|
2
|
-
import { a as a$3 } from '../../chunk-
|
|
2
|
+
import { a as a$3 } from '../../chunk-ZFNDQWIR.js';
|
|
3
3
|
import { a as a$2 } from '../../chunk-NPXVOPB2.js';
|
|
4
4
|
import { a } from '../../chunk-X2EIL7EB.js';
|
|
5
5
|
import { a as a$4 } from '../../chunk-WIJV4EHZ.js';
|
|
6
6
|
import '../../chunk-FO7JCJ76.js';
|
|
7
7
|
import '../../chunk-C2JZG45F.js';
|
|
8
8
|
import { a as a$1 } from '../../chunk-ORYAES3Q.js';
|
|
9
|
-
import '../../chunk-
|
|
9
|
+
import '../../chunk-X3NSWXUJ.js';
|
|
10
10
|
import E from '@mui/material/Button';
|
|
11
11
|
import W from '@mui/material/FormControlLabel';
|
|
12
12
|
import w from '@mui/material/IconButton';
|
|
@@ -156,10 +156,10 @@ type CarouselProps = {
|
|
|
156
156
|
|
|
157
157
|
type StyledProps = Pick<CarouselOptions, 'axis' | 'slideSpacing'>;
|
|
158
158
|
declare const StyledRoot: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material_styles.Theme> & Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
159
|
-
ref?:
|
|
159
|
+
ref?: ((instance: HTMLDivElement | null) => void) | react.RefObject<HTMLDivElement> | null | undefined;
|
|
160
160
|
}, keyof _mui_system.BoxOwnProps<_mui_material_styles.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material_styles.Theme> & StyledProps, {}, {}>;
|
|
161
161
|
declare const StyledContainer: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material_styles.Theme> & Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
162
|
-
ref?:
|
|
162
|
+
ref?: ((instance: HTMLDivElement | null) => void) | react.RefObject<HTMLDivElement> | null | undefined;
|
|
163
163
|
}, keyof _mui_system.BoxOwnProps<_mui_material_styles.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material_styles.Theme> & StyledProps, {}, {}>;
|
|
164
164
|
declare function Carousel({ carousel, children, sx, slotProps, ...props }: CarouselProps): react_jsx_runtime.JSX.Element;
|
|
165
165
|
|
|
@@ -199,7 +199,7 @@ declare function CarouselProgressBar({ value, sx, ...other }: BoxProps & Carouse
|
|
|
199
199
|
declare function CarouselSlide({ sx, options, children, ...other }: BoxProps & CarouselSlideProps): react_jsx_runtime.JSX.Element;
|
|
200
200
|
|
|
201
201
|
declare const CarouselThumbs: react.ForwardRefExoticComponent<Omit<_mui_system.BoxOwnProps<Theme> & _mui_material_OverridableComponent.CommonProps & Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
202
|
-
ref?:
|
|
202
|
+
ref?: ((instance: HTMLDivElement | null) => void) | react.RefObject<HTMLDivElement> | null | undefined;
|
|
203
203
|
}, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_system.BoxOwnProps<Theme>> & CarouselThumbsProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
204
204
|
declare function CarouselThumb({ thumbType, sx, src, index, selected, imageRender, thumbAlt, ...other }: ButtonBaseProps & CarouselThumbProps): react_jsx_runtime.JSX.Element | null;
|
|
205
205
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { j as ArrowButton, f as Carousel, g as CarouselArrowBasicButtons, i as CarouselArrowFloatButtons, h as CarouselArrowNumberButtons, k as CarouselDotButtons, l as CarouselProgressBar, c as CarouselSlide, n as CarouselThumb, m as CarouselThumbs, e as StyledContainer, d as StyledRoot, a as carouselBreakpoints, b as carouselClasses, o as useCarousel } from '../../chunk-
|
|
1
|
+
export { j as ArrowButton, f as Carousel, g as CarouselArrowBasicButtons, i as CarouselArrowFloatButtons, h as CarouselArrowNumberButtons, k as CarouselDotButtons, l as CarouselProgressBar, c as CarouselSlide, n as CarouselThumb, m as CarouselThumbs, e as StyledContainer, d as StyledRoot, a as carouselBreakpoints, b as carouselClasses, o as useCarousel } from '../../chunk-RDX5MYRG.js';
|
|
2
2
|
import '../../chunk-WIJV4EHZ.js';
|
|
3
3
|
import '../../chunk-FO7JCJ76.js';
|
|
4
4
|
import '../../chunk-C2JZG45F.js';
|
|
5
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-X3NSWXUJ.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
1
|
+
import { b } from '../../../chunk-6HCH7BUB.js';
|
|
2
|
+
import '../../../chunk-3JXE4T4W.js';
|
|
3
3
|
import '../../../chunk-LGYLZTOS.js';
|
|
4
4
|
import '../../../chunk-RQ5Q6X5Y.js';
|
|
5
5
|
import '../../../chunk-ANAHA3L6.js';
|
|
@@ -11,7 +11,7 @@ import { a } from '../../../chunk-GA4A5P3S.js';
|
|
|
11
11
|
import '../../../chunk-X24QANPC.js';
|
|
12
12
|
import '../../../chunk-W3MYAMTH.js';
|
|
13
13
|
import '../../../chunk-KFZEM7KS.js';
|
|
14
|
-
import '../../../chunk-
|
|
14
|
+
import '../../../chunk-X3NSWXUJ.js';
|
|
15
15
|
import { useFormContext, Controller } from 'react-hook-form';
|
|
16
16
|
import W from '@mui/material/FormHelperText';
|
|
17
17
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { e } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
1
|
+
import { e } from '../../../chunk-UNSRJCI6.js';
|
|
2
|
+
import '../../../chunk-3JXE4T4W.js';
|
|
3
3
|
import '../../../chunk-LGYLZTOS.js';
|
|
4
4
|
import '../../../chunk-RQ5Q6X5Y.js';
|
|
5
5
|
import '../../../chunk-H5L4ARDB.js';
|
|
@@ -17,7 +17,7 @@ import '../../../chunk-W3MYAMTH.js';
|
|
|
17
17
|
import '../../../chunk-DMQW3LDF.js';
|
|
18
18
|
import '../../../chunk-ILHUUK4X.js';
|
|
19
19
|
import '../../../chunk-KFZEM7KS.js';
|
|
20
|
-
import '../../../chunk-
|
|
20
|
+
import '../../../chunk-X3NSWXUJ.js';
|
|
21
21
|
import { useFormContext, Controller } from 'react-hook-form';
|
|
22
22
|
import b from '@mui/material/FormHelperText';
|
|
23
23
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { c as DeleteButton, a as MultiFilePreview, b as SingleFilePreview, d as Upload, e as UploadWithCrop } from '../../chunk-
|
|
2
|
-
export { a as UploadAvatar, b as UploadAvatarWithCrop } from '../../chunk-
|
|
3
|
-
import { o } from '../../chunk-
|
|
4
|
-
export { p as RejectionFiles } from '../../chunk-
|
|
1
|
+
export { c as DeleteButton, a as MultiFilePreview, b as SingleFilePreview, d as Upload, e as UploadWithCrop } from '../../chunk-UNSRJCI6.js';
|
|
2
|
+
export { a as UploadAvatar, b as UploadAvatarWithCrop } from '../../chunk-6HCH7BUB.js';
|
|
3
|
+
import { o } from '../../chunk-3JXE4T4W.js';
|
|
4
|
+
export { p as RejectionFiles } from '../../chunk-3JXE4T4W.js';
|
|
5
5
|
import '../../chunk-LGYLZTOS.js';
|
|
6
6
|
import '../../chunk-RQ5Q6X5Y.js';
|
|
7
7
|
import '../../chunk-H5L4ARDB.js';
|
|
@@ -18,7 +18,7 @@ import '../../chunk-W3MYAMTH.js';
|
|
|
18
18
|
import '../../chunk-DMQW3LDF.js';
|
|
19
19
|
import '../../chunk-ILHUUK4X.js';
|
|
20
20
|
import '../../chunk-KFZEM7KS.js';
|
|
21
|
-
import '../../chunk-
|
|
21
|
+
import '../../chunk-X3NSWXUJ.js';
|
|
22
22
|
import { useDropzone } from 'react-dropzone';
|
|
23
23
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
24
24
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a } from '../../chunk-Q3ADZHO5.js';
|
|
2
2
|
import '../../chunk-IHAHXNLH.js';
|
|
3
|
-
import { createContext, useState,
|
|
3
|
+
import { createContext, useState, useMemo, useEffect, useCallback, useContext } from 'react';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var X=createContext(void 0),oe=({children:d,originId:C,originType:N,bearerToken:M,vapidKey:T,serviceWorkerPath:k="/",serviceWorkerFile:x="service-worker.js",pollingInterval:D=1e3,apiAdapters:s,onMessageReceived:g,onError:o})=>{let[t,h]=useState(null),[I,m]=useState(0),[L,w]=useState(!1),[B,P]=useState(!1),[R,b]=useState(!1),[W,Y]=useState({subscriptions:[]}),[V,z]=useState(!1),[E]=useState(new Set),O=useMemo(()=>!t||V,[t,V]);useEffect(()=>{if(!B||!R||!t||!s.fetchMessages)return;let e=setInterval(async()=>{try{let n=(await s.fetchMessages(t))?.messages?.[0];if(n?.payload){let i=n.id;if(E.has(i))return;E.add(i),m(a=>a+1),g?.(n.payload);try{await s.updateMessageStatus(i,{status:"DELIVERED"});}catch(a){console.error("Erro ao marcar mensagem como entregue:",a);}finally{P(!1);}}}catch(r){console.error("Erro ao buscar mensagens:",r);}},D);return ()=>clearInterval(e)},[B,R,t,D,s,g,E]);let v=useCallback(async(e,r)=>{try{let n=e?.toJSON().keys,i={origin_type:N,origin_id:C,...r&&e?{endpoint:e.endpoint,auth:n?.auth,p256dh:n?.p256dh}:{}},a=await s.registerClient(i);return h(a.id),w(!1),r||b(!0),a.id}catch(n){return console.error("Erro ao registrar cliente:",n),w(!0),o?.(n),null}},[s,C,N,o]);useEffect(()=>{let e=!0,r=null;async function n(){if(!("serviceWorker"in navigator)||!("PushManager"in window)){console.warn("Push notifications n\xE3o suportadas, criando cliente ativo com polling");try{let i=await v(null,!1);e&&i&&(h(i),b(!0));}catch(i){console.error("Erro ao registrar cliente ativo:",i),o?.(i);}return}try{let i=await Notification.requestPermission(),a$1=null,f=!1;if(i==="granted")try{let p=await navigator.serviceWorker.register(`${k}${x}`);if(!e||(await navigator.serviceWorker.ready,!e))return;a$1=await p.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:a(T)}),r=async U=>{let j=U.data?.payload,G=U.data?.id;if(j&&(m(y=>y+1),g?.(j)),G)try{await s.updateMessageStatus(G,{status:"DELIVERED"});}catch(y){console.error("Erro ao atualizar status da mensagem:",y),w(!0),o?.(y);}},navigator.serviceWorker.addEventListener("message",r),f=!0,console.log("Permiss\xE3o concedida, criando cliente passivo (aguarda webpush)");}catch(p){console.warn("Falha ao configurar push subscription, criando cliente ativo:",p),f=!1;}else console.warn("Permiss\xE3o de notifica\xE7\xE3o negada, criando cliente ativo com polling"),f=!1;let J=await v(a$1,f);e&&J&&(h(J),f||b(!0));}catch(i){console.error("Erro ao inicializar notifica\xE7\xF5es:",i),o?.(i);try{let a=await v(null,!1);e&&a&&(h(a),b(!0));}catch(a){console.error("Erro ao criar cliente ativo como fallback:",a);}}}return M&&n(),()=>{e=!1,r&&"serviceWorker"in navigator&&navigator.serviceWorker.removeEventListener("message",r);}},[M,v,s,T,k,x,g,o]);let c=useCallback(async()=>{if(t){z(!0);try{let e=await s.listSubscriptions(t);Y(e);}catch(e){console.error("Erro ao listar inscri\xE7\xF5es:",e),o?.(e);}finally{z(!1);}}},[t,s,o]);useEffect(()=>{t&&c();},[t]);let _=useCallback(async e=>{if(t)try{await s.subscribeTopic(t,e),await c(),P(!0);}catch(r){console.error("Erro ao inscrever em t\xF3pico:",r),o?.(r);}},[t,s,c,o]),$=useCallback(async e=>{if(t)try{await s.unsubscribeTopic(t,e),await c();}catch(r){console.error("Erro ao desinscrever de t\xF3pico:",r),o?.(r);}},[t,s,c,o]),q=useCallback(async e=>{if(!(!t||e.length===0))try{await s.subscribeTopicsBatch(t,e),await c(),P(!0);}catch(r){console.error("Erro ao inscrever em t\xF3picos:",r),o?.(r);}},[t,s,c,o]),F=useCallback(async e=>{if(!(!t||e.length===0))try{await s.unsubscribeTopicsBatch(t,e),await c();}catch(r){console.error("Erro ao desinscrever de t\xF3picos:",r),o?.(r);}},[t,s,c,o]),H=useCallback(()=>{m(0);},[]),Z=useMemo(()=>({clientId:t,subscribedTopics:W,isLoading:O,newMessageCount:I,isRegisterError:L,subscribeToTopic:_,unsubscribeFromTopic:$,subscribeTopicsBatch:q,unsubscribeTopicsBatch:F,resetMessageCount:H}),[t,W,O,I,L,_,$,q,F,H]);return jsx(X.Provider,{value:Z,children:d})};function ie(){let d=useContext(X);if(!d)throw new Error("usePushNotifications precisa estar dentro de PushNotificationProvider");return d}
|
|
7
7
|
|
|
8
8
|
export { oe as PushNotificationProvider, ie as usePushNotifications };
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
export { a as useThemeToggle } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { a as useThemeToggle } from '../chunk-6H6VWBEU.js';
|
|
2
|
+
import '../chunk-HKINZAZB.js';
|
|
3
3
|
import '../chunk-SO64ZYQB.js';
|
|
4
4
|
import '../chunk-GUFT6XPG.js';
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-2R4UUSRL.js';
|
|
6
|
+
import '../chunk-QCN7J3QD.js';
|
|
7
|
+
import '../chunk-SVZBOLAL.js';
|
|
8
8
|
import '../chunk-CFVUZ4S5.js';
|
|
9
|
-
import '../chunk-
|
|
10
|
-
import '../chunk-
|
|
11
|
-
import '../chunk-QQDMA4TE.js';
|
|
12
|
-
import '../chunk-Z2TDWMRU.js';
|
|
13
|
-
import '../chunk-4INDXVIX.js';
|
|
14
|
-
import '../chunk-3APKMSVD.js';
|
|
9
|
+
import '../chunk-5MFY3GOD.js';
|
|
10
|
+
import '../chunk-X3NSWXUJ.js';
|
|
@@ -9,7 +9,7 @@ import * as _mui_x_date_pickers_internals from '@mui/x-date-pickers/internals';
|
|
|
9
9
|
import * as _mui_styled_engine from '@mui/styled-engine';
|
|
10
10
|
import * as _mui_material_styles_overrides from '@mui/material/styles/overrides';
|
|
11
11
|
import * as _mui_material from '@mui/material';
|
|
12
|
-
import { b as ThemeColorScheme } from './types-
|
|
12
|
+
import { b as ThemeColorScheme } from './types-b8e8c021.js';
|
|
13
13
|
import { ColorSystemOptions, Shadows } from '@mui/material/styles';
|
|
14
14
|
import { TypographyOptions } from '@mui/material/styles/createTypography';
|
|
15
15
|
|
|
@@ -286,13 +286,10 @@ declare const components: {
|
|
|
286
286
|
MuiTimelineDot: {
|
|
287
287
|
defaultProps?: Partial<_mui_lab_TimelineDot.TimelineDotProps> | undefined;
|
|
288
288
|
styleOverrides?: Partial<_mui_material_styles_overrides.OverridesStyleRules<keyof _mui_lab_TimelineDot.TimelineDotClasses, "MuiTimelineDot", {
|
|
289
|
-
|
|
290
|
-
zIndex: _mui_material.ZIndex;
|
|
291
|
-
direction: _mui_system.Direction;
|
|
292
|
-
opacity: _mui_material.Opacity;
|
|
293
|
-
typography: _mui_material.TypographyVariants;
|
|
289
|
+
transitions: _mui_material.Transitions;
|
|
294
290
|
palette: _mui_material.Palette;
|
|
295
291
|
colorSchemes: Record<_mui_material.SupportedColorScheme, _mui_material.ColorSystem>;
|
|
292
|
+
cssVarPrefix: string;
|
|
296
293
|
vars: _mui_material.ThemeVars;
|
|
297
294
|
getCssVar: (field: _mui_material.ThemeCssVar, ...vars: _mui_material.ThemeCssVar[]) => string;
|
|
298
295
|
getColorSchemeSelector: (colorScheme: _mui_material.SupportedColorScheme) => string;
|
|
@@ -303,13 +300,16 @@ declare const components: {
|
|
|
303
300
|
spacing: _mui_system.Spacing;
|
|
304
301
|
breakpoints: _mui_system.Breakpoints;
|
|
305
302
|
shape: _mui_system.Shape;
|
|
306
|
-
|
|
303
|
+
typography: _mui_material.TypographyVariants;
|
|
307
304
|
shadows: _mui_material.Shadows;
|
|
308
305
|
mixins: _mui_material.Mixins;
|
|
306
|
+
zIndex: _mui_material.ZIndex;
|
|
307
|
+
direction: _mui_system.Direction;
|
|
309
308
|
shouldSkipGeneratingVar: (keys: string[], value: string | number) => boolean;
|
|
310
309
|
unstable_sxConfig: _mui_system.SxConfig;
|
|
311
310
|
unstable_sx: (props: _mui_system.SxProps<_mui_material.Theme>) => _mui_styled_engine.CSSObject;
|
|
312
311
|
applyStyles: _mui_system.ApplyStyles<"light" | "dark">;
|
|
312
|
+
opacity: _mui_material.Opacity;
|
|
313
313
|
overlays: _mui_material.Overlays;
|
|
314
314
|
customShadows: CustomShadows;
|
|
315
315
|
unstable_strictMode?: boolean | undefined;
|
|
@@ -326,13 +326,10 @@ declare const components: {
|
|
|
326
326
|
MuiTimelineConnector: {
|
|
327
327
|
defaultProps?: Partial<_mui_lab_TimelineConnector.TimelineConnectorProps> | undefined;
|
|
328
328
|
styleOverrides?: Partial<_mui_material_styles_overrides.OverridesStyleRules<"root", "MuiTimelineConnector", {
|
|
329
|
-
|
|
330
|
-
zIndex: _mui_material.ZIndex;
|
|
331
|
-
direction: _mui_system.Direction;
|
|
332
|
-
opacity: _mui_material.Opacity;
|
|
333
|
-
typography: _mui_material.TypographyVariants;
|
|
329
|
+
transitions: _mui_material.Transitions;
|
|
334
330
|
palette: _mui_material.Palette;
|
|
335
331
|
colorSchemes: Record<_mui_material.SupportedColorScheme, _mui_material.ColorSystem>;
|
|
332
|
+
cssVarPrefix: string;
|
|
336
333
|
vars: _mui_material.ThemeVars;
|
|
337
334
|
getCssVar: (field: _mui_material.ThemeCssVar, ...vars: _mui_material.ThemeCssVar[]) => string;
|
|
338
335
|
getColorSchemeSelector: (colorScheme: _mui_material.SupportedColorScheme) => string;
|
|
@@ -343,13 +340,16 @@ declare const components: {
|
|
|
343
340
|
spacing: _mui_system.Spacing;
|
|
344
341
|
breakpoints: _mui_system.Breakpoints;
|
|
345
342
|
shape: _mui_system.Shape;
|
|
346
|
-
|
|
343
|
+
typography: _mui_material.TypographyVariants;
|
|
347
344
|
shadows: _mui_material.Shadows;
|
|
348
345
|
mixins: _mui_material.Mixins;
|
|
346
|
+
zIndex: _mui_material.ZIndex;
|
|
347
|
+
direction: _mui_system.Direction;
|
|
349
348
|
shouldSkipGeneratingVar: (keys: string[], value: string | number) => boolean;
|
|
350
349
|
unstable_sxConfig: _mui_system.SxConfig;
|
|
351
350
|
unstable_sx: (props: _mui_system.SxProps<_mui_material.Theme>) => _mui_styled_engine.CSSObject;
|
|
352
351
|
applyStyles: _mui_system.ApplyStyles<"light" | "dark">;
|
|
352
|
+
opacity: _mui_material.Opacity;
|
|
353
353
|
overlays: _mui_material.Overlays;
|
|
354
354
|
customShadows: CustomShadows;
|
|
355
355
|
unstable_strictMode?: boolean | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { C as CustomShadows } from './index-
|
|
2
|
-
export { d as ColorType, k as action, j as background, l as basePalette, o as colorSchemes, h as common, c as components, a as createShadowColor, b as customShadows, n as darkPalette, r as defaultFont, f as error, g as grey, i as info, m as lightPalette, p as primary, u as primaryFont, s as secondary, v as secondaryFont, q as shadows, e as success, t as text, x as typography, w as warning } from './index-
|
|
3
|
-
export { S as SettingsContextValue, _ as SettingsProvider, T as ThemeProviderProps, u as useSettingsContext } from './settings-provider-
|
|
4
|
-
export { default as ThemeProvider } from './theme/theme-provider.js';
|
|
5
|
-
import { S as SettingsState } from './settings-
|
|
1
|
+
import { C as CustomShadows } from './index-5a5e5dc8.js';
|
|
2
|
+
export { d as ColorType, k as action, j as background, l as basePalette, o as colorSchemes, h as common, c as components, a as createShadowColor, b as customShadows, n as darkPalette, r as defaultFont, f as error, g as grey, i as info, m as lightPalette, p as primary, u as primaryFont, s as secondary, v as secondaryFont, q as shadows, e as success, t as text, x as typography, w as warning } from './index-5a5e5dc8.js';
|
|
3
|
+
export { S as SettingsContextValue, _ as SettingsProvider, T as ThemeProviderProps, u as useSettingsContext } from './settings-provider-4537dcad.js';
|
|
4
|
+
export { THEME_CONFIG, default as ThemeProvider } from './theme/theme-provider.js';
|
|
5
|
+
import { S as SettingsState } from './settings-4d4dc42f.js';
|
|
6
6
|
import { Theme as Theme$1 } from '@mui/material/styles';
|
|
7
|
-
import { a as ThemeLocaleComponents } from './types-
|
|
7
|
+
import { a as ThemeLocaleComponents } from './types-b8e8c021.js';
|
|
8
8
|
export { BgBlurProps, BgGradientProps, BorderGradientProps, ColorWithAlpha, MaxLineProps, MediaFontSize, bgBlur, bgGradient, borderGradient, createPaletteChannel, hexToRgbChannel, hexToRgbaChannel, hideScrollX, hideScrollY, maxLine, mediaQueries, menuItem, paper, pxToRem, remToPx, responsiveFontSizes, setFont, stylesMode, textGradient, varAlpha } from './theme/styles/index.js';
|
|
9
9
|
export { useThemeToggle } from './hooks/useThemeToggle.js';
|
|
10
10
|
import '@mui/lab/TimelineConnector';
|
package/dist/index.js
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
export { a as useThemeToggle } from './chunk-
|
|
2
|
-
export { c as ThemeProvider, a as createTheme } from './chunk-
|
|
1
|
+
export { a as useThemeToggle } from './chunk-6H6VWBEU.js';
|
|
2
|
+
export { c as ThemeProvider, a as createTheme } from './chunk-HKINZAZB.js';
|
|
3
3
|
import './chunk-SO64ZYQB.js';
|
|
4
4
|
import './chunk-GUFT6XPG.js';
|
|
5
|
-
export { c as SettingsProvider, b as useSettingsContext } from './chunk-
|
|
6
|
-
export { b as defaultFont, c as primaryFont, d as secondaryFont, a as shadows, e as typography } from './chunk-
|
|
7
|
-
import './chunk-
|
|
5
|
+
export { c as SettingsProvider, b as useSettingsContext } from './chunk-2R4UUSRL.js';
|
|
6
|
+
export { b as defaultFont, c as primaryFont, d as secondaryFont, a as shadows, e as typography } from './chunk-QCN7J3QD.js';
|
|
7
|
+
import './chunk-SVZBOLAL.js';
|
|
8
8
|
import './chunk-CFVUZ4S5.js';
|
|
9
|
-
export { l as action, k as background, m as basePalette, p as colorSchemes, i as common, a as components, q as createShadowColor, r as customShadows, o as darkPalette, h as error, b as grey, e as info, n as lightPalette, c as primary, d as secondary, f as success, j as text, g as warning } from './chunk-
|
|
10
|
-
export { q as bgBlur, p as bgGradient, o as borderGradient, j as createPaletteChannel, h as hexToRgbChannel, i as hexToRgbaChannel, l as hideScrollX, m as hideScrollY, r as maxLine, c as mediaQueries, t as menuItem, s as paper, f as pxToRem, e as remToPx, g as responsiveFontSizes, d as setFont, b as stylesMode, n as textGradient, k as varAlpha } from './chunk-
|
|
11
|
-
import './chunk-QQDMA4TE.js';
|
|
12
|
-
import './chunk-Z2TDWMRU.js';
|
|
13
|
-
import './chunk-4INDXVIX.js';
|
|
14
|
-
import './chunk-3APKMSVD.js';
|
|
9
|
+
export { l as action, k as background, m as basePalette, p as colorSchemes, i as common, a as components, q as createShadowColor, r as customShadows, o as darkPalette, h as error, b as grey, e as info, n as lightPalette, c as primary, d as secondary, f as success, j as text, g as warning } from './chunk-5MFY3GOD.js';
|
|
10
|
+
export { a as THEME_CONFIG, q as bgBlur, p as bgGradient, o as borderGradient, j as createPaletteChannel, h as hexToRgbChannel, i as hexToRgbaChannel, l as hideScrollX, m as hideScrollY, r as maxLine, c as mediaQueries, t as menuItem, s as paper, f as pxToRem, e as remToPx, g as responsiveFontSizes, d as setFont, b as stylesMode, n as textGradient, k as varAlpha } from './chunk-X3NSWXUJ.js';
|
|
15
11
|
|
|
16
12
|
var Y=()=>!0;
|
|
17
13
|
|
|
@@ -7,8 +7,6 @@ type SettingsState = {
|
|
|
7
7
|
contrast: 'default' | 'hight';
|
|
8
8
|
navColor: 'integrate' | 'apparent';
|
|
9
9
|
navLayout: 'vertical' | 'horizontal' | 'mini';
|
|
10
|
-
setColorScheme: (scheme: ColorScheme) => void;
|
|
11
|
-
scopeId?: string;
|
|
12
10
|
};
|
|
13
11
|
|
|
14
12
|
export { ColorScheme as C, SettingsState as S };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as react from 'react';
|
|
3
3
|
import { PropsWithChildren } from 'react';
|
|
4
|
-
import { S as SettingsState } from './settings-
|
|
4
|
+
import { S as SettingsState } from './settings-4d4dc42f.js';
|
|
5
5
|
|
|
6
6
|
interface ThemeProviderProps extends PropsWithChildren<Partial<SettingsState>> {
|
|
7
7
|
storageKey?: string;
|
|
@@ -13,6 +13,6 @@ type SettingsContextValue = {
|
|
|
13
13
|
|
|
14
14
|
declare const SettingsContext: react.Context<SettingsContextValue | undefined>;
|
|
15
15
|
declare const useSettingsContext: () => SettingsContextValue;
|
|
16
|
-
declare const _default: react.MemoExoticComponent<({ children, primaryColor, fontFamily, compactLayout, colorScheme, contrast, navColor, navLayout,
|
|
16
|
+
declare const _default: react.MemoExoticComponent<({ children, primaryColor, fontFamily, compactLayout, colorScheme, contrast, navColor, navLayout, }: PropsWithChildren<SettingsState>) => react_jsx_runtime.JSX.Element>;
|
|
17
17
|
|
|
18
18
|
export { SettingsContextValue as S, ThemeProviderProps as T, _default as _, SettingsContext as a, useSettingsContext as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { d as ColorType, k as action, j as background, l as basePalette, o as colorSchemes, h as common, c as components, a as createShadowColor, b as customShadows, n as darkPalette, r as defaultFont, f as error, g as grey, i as info, m as lightPalette, p as primary, u as primaryFont, s as secondary, v as secondaryFont, q as shadows, e as success, t as text, x as typography, w as warning } from '../../index-
|
|
1
|
+
export { d as ColorType, k as action, j as background, l as basePalette, o as colorSchemes, h as common, c as components, a as createShadowColor, b as customShadows, n as darkPalette, r as defaultFont, f as error, g as grey, i as info, m as lightPalette, p as primary, u as primaryFont, s as secondary, v as secondaryFont, q as shadows, e as success, t as text, x as typography, w as warning } from '../../index-5a5e5dc8.js';
|
|
2
2
|
import '@mui/lab/TimelineConnector';
|
|
3
3
|
import '@mui/system';
|
|
4
4
|
import '@mui/lab/TimelineDot';
|
|
@@ -10,6 +10,6 @@ import '@mui/x-date-pickers/internals';
|
|
|
10
10
|
import '@mui/styled-engine';
|
|
11
11
|
import '@mui/material/styles/overrides';
|
|
12
12
|
import '@mui/material';
|
|
13
|
-
import '../../types-
|
|
13
|
+
import '../../types-b8e8c021.js';
|
|
14
14
|
import '@mui/material/styles';
|
|
15
15
|
import '@mui/material/styles/createTypography';
|
package/dist/theme/core/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { b as defaultFont, c as primaryFont, d as secondaryFont, a as shadows, e as typography } from '../../chunk-
|
|
2
|
-
export { l as action, k as background, m as basePalette, p as colorSchemes, i as common, a as components, q as createShadowColor, r as customShadows, o as darkPalette, h as error, b as grey, e as info, n as lightPalette, c as primary, d as secondary, f as success, j as text, g as warning } from '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
1
|
+
export { b as defaultFont, c as primaryFont, d as secondaryFont, a as shadows, e as typography } from '../../chunk-QCN7J3QD.js';
|
|
2
|
+
export { l as action, k as background, m as basePalette, p as colorSchemes, i as common, a as components, q as createShadowColor, r as customShadows, o as darkPalette, h as error, b as grey, e as info, n as lightPalette, c as primary, d as secondary, f as success, j as text, g as warning } from '../../chunk-5MFY3GOD.js';
|
|
3
|
+
import '../../chunk-X3NSWXUJ.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import 'react/jsx-runtime';
|
|
2
2
|
import 'react';
|
|
3
|
-
import '../settings-
|
|
4
|
-
export { a as SettingsContext, _ as default, u as useSettingsContext } from '../settings-provider-
|
|
3
|
+
import '../settings-4d4dc42f.js';
|
|
4
|
+
export { a as SettingsContext, _ as default, u as useSettingsContext } from '../settings-provider-4537dcad.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as SettingsContext, c as default, b as useSettingsContext } from '../chunk-
|
|
1
|
+
export { a as SettingsContext, c as default, b as useSettingsContext } from '../chunk-2R4UUSRL.js';
|