@zydon/common 2.7.24 → 2.7.26
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 +3 -3
- package/dist/hooks/useThemeToggle.d.ts +1 -1
- package/dist/hooks/useThemeToggle.js +7 -11
- package/dist/{index-3e407e51.d.ts → index-5a5e5dc8.d.ts} +1 -1
- 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 +7 -7
- 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, useMemo, useEffect, useCallback, useContext } from 'react';
|
|
3
|
+
import { createContext, useState, useRef, useMemo, useEffect, useCallback, useContext } from 'react';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var Q=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,w]=useState(0),[L,P]=useState(!1),b=useRef(!1),[B,v]=useState(!1),[R,X]=useState({subscriptions:[]}),[W,V]=useState(!1),[p]=useState(new Set),z=useMemo(()=>!t||W,[t,W]);useEffect(()=>{if(!b.current||!B||!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(p.has(i))return;p.add(i),w(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{b.current=!1;}}}catch(r){console.error("Erro ao buscar mensagens:",r);}},D);return ()=>clearInterval(e)},[B,t,D,s,g,p]);let y=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),P(!1),r||v(!0),a.id}catch(n){return console.error("Erro ao registrar cliente:",n),P(!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 y(null,!1);e&&i&&(h(i),v(!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 E=await navigator.serviceWorker.register(`${k}${x}`);if(!e||(await navigator.serviceWorker.ready,!e))return;a$1=await E.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:a(T)}),r=async J=>{let U=J.data?.payload,j=J.data?.id;if(U&&(w(m=>m+1),g?.(U)),j)try{await s.updateMessageStatus(j,{status:"DELIVERED"});}catch(m){console.error("Erro ao atualizar status da mensagem:",m),P(!0),o?.(m);}},navigator.serviceWorker.addEventListener("message",r),f=!0,console.log("Permiss\xE3o concedida, criando cliente passivo (aguarda webpush)");}catch(E){console.warn("Falha ao configurar push subscription, criando cliente ativo:",E),f=!1;}else console.warn("Permiss\xE3o de notifica\xE7\xE3o negada, criando cliente ativo com polling"),f=!1;let H=await y(a$1,f);e&&H&&(h(H),f||v(!0));}catch(i){console.error("Erro ao inicializar notifica\xE7\xF5es:",i),o?.(i);try{let a=await y(null,!1);e&&a&&(h(a),v(!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,y,s,T,k,x,g,o]);let c=useCallback(async()=>{if(t){V(!0);try{let e=await s.listSubscriptions(t);X(e);}catch(e){console.error("Erro ao listar inscri\xE7\xF5es:",e),o?.(e);}finally{V(!1);}}},[t,s,o]);useEffect(()=>{t&&c();},[t]);let O=useCallback(async e=>{if(t)try{await s.subscribeTopic(t,e),await c(),b.current=!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]),$=useCallback(async e=>{if(!(!t||e.length===0))try{await s.subscribeTopicsBatch(t,e),await c(),b.current=!0;}catch(r){console.error("Erro ao inscrever em t\xF3picos:",r),o?.(r);}},[t,s,c,o]),q=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]),F=useCallback(()=>{w(0);},[]),Y=useMemo(()=>({clientId:t,subscribedTopics:R,isLoading:z,newMessageCount:I,isRegisterError:L,subscribeToTopic:O,unsubscribeFromTopic:_,subscribeTopicsBatch:$,unsubscribeTopicsBatch:q,resetMessageCount:F}),[t,R,z,I,L,O,_,$,q,F]);return jsx(Q.Provider,{value:Y,children:d})};function ie(){let d=useContext(Q);if(!d)throw new Error("usePushNotifications precisa estar dentro de PushNotificationProvider");return d}
|
|
7
7
|
|
|
8
|
-
export {
|
|
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
|
|
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';
|
|
@@ -184,7 +184,7 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
|
|
|
184
184
|
counterSet?: readonly string[] | csstype.Property.CounterSet | readonly csstype.Property.CounterSet[] | undefined;
|
|
185
185
|
cursor?: readonly string[] | csstype.Property.Cursor | readonly csstype.Property.Cursor[] | undefined;
|
|
186
186
|
direction?: csstype.Property.Direction | readonly NonNullable<csstype.Property.Direction | undefined>[] | readonly csstype.Property.Direction[] | undefined;
|
|
187
|
-
display?: csstype.Property.Display | readonly
|
|
187
|
+
display?: readonly string[] | csstype.Property.Display | readonly csstype.Property.Display[] | undefined;
|
|
188
188
|
emptyCells?: csstype.Property.EmptyCells | readonly NonNullable<csstype.Property.EmptyCells | undefined>[] | readonly csstype.Property.EmptyCells[] | undefined;
|
|
189
189
|
filter?: readonly string[] | csstype.Property.Filter | readonly csstype.Property.Filter[] | undefined;
|
|
190
190
|
flexBasis?: readonly (string | (string & {}))[] | csstype.Property.FlexBasis<string | number> | readonly NonNullable<csstype.Property.FlexBasis<string | number> | undefined>[] | undefined;
|
|
@@ -231,7 +231,7 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
|
|
|
231
231
|
gridTemplateColumns?: readonly (string | (string & {}))[] | csstype.Property.GridTemplateColumns<string | number> | readonly NonNullable<csstype.Property.GridTemplateColumns<string | number> | undefined>[] | undefined;
|
|
232
232
|
gridTemplateRows?: readonly (string | (string & {}))[] | csstype.Property.GridTemplateRows<string | number> | readonly NonNullable<csstype.Property.GridTemplateRows<string | number> | undefined>[] | undefined;
|
|
233
233
|
hangingPunctuation?: readonly string[] | csstype.Property.HangingPunctuation | readonly csstype.Property.HangingPunctuation[] | undefined;
|
|
234
|
-
height?:
|
|
234
|
+
height?: readonly (string | (string & {}))[] | csstype.Property.Height<string | number> | readonly NonNullable<csstype.Property.Height<string | number> | undefined>[] | undefined;
|
|
235
235
|
hyphenateCharacter?: readonly string[] | csstype.Property.HyphenateCharacter | readonly csstype.Property.HyphenateCharacter[] | undefined;
|
|
236
236
|
hyphenateLimitChars?: readonly ((string & {}) | csstype.Globals | "auto")[] | csstype.Property.HyphenateLimitChars | readonly NonNullable<csstype.Property.HyphenateLimitChars | undefined>[] | undefined;
|
|
237
237
|
hyphens?: csstype.Property.Hyphens | readonly NonNullable<csstype.Property.Hyphens | undefined>[] | readonly csstype.Property.Hyphens[] | undefined;
|
|
@@ -436,7 +436,7 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
|
|
|
436
436
|
whiteSpaceCollapse?: csstype.Property.WhiteSpaceCollapse | readonly NonNullable<csstype.Property.WhiteSpaceCollapse | undefined>[] | readonly csstype.Property.WhiteSpaceCollapse[] | undefined;
|
|
437
437
|
whiteSpaceTrim?: readonly string[] | csstype.Property.WhiteSpaceTrim | readonly csstype.Property.WhiteSpaceTrim[] | undefined;
|
|
438
438
|
widows?: readonly ((string & {}) | csstype.Globals)[] | csstype.Property.Widows | readonly NonNullable<csstype.Property.Widows | undefined>[] | undefined;
|
|
439
|
-
width?:
|
|
439
|
+
width?: readonly (string | (string & {}))[] | csstype.Property.Width<string | number> | readonly NonNullable<csstype.Property.Width<string | number> | undefined>[] | undefined;
|
|
440
440
|
willChange?: readonly string[] | csstype.Property.WillChange | readonly csstype.Property.WillChange[] | undefined;
|
|
441
441
|
wordBreak?: csstype.Property.WordBreak | readonly NonNullable<csstype.Property.WordBreak | undefined>[] | readonly csstype.Property.WordBreak[] | undefined;
|
|
442
442
|
wordSpacing?: readonly string[] | csstype.Property.WordSpacing<string | number> | readonly NonNullable<csstype.Property.WordSpacing<string | number> | undefined>[] | undefined;
|
|
@@ -445,7 +445,7 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
|
|
|
445
445
|
zIndex?: readonly ((string & {}) | csstype.Globals | "auto")[] | csstype.Property.ZIndex | readonly NonNullable<csstype.Property.ZIndex | undefined>[] | undefined;
|
|
446
446
|
zoom?: csstype.Property.Zoom | readonly NonNullable<csstype.Property.Zoom | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "reset")[] | undefined;
|
|
447
447
|
all?: csstype.Globals | readonly NonNullable<csstype.Globals | undefined>[] | readonly csstype.Globals[] | undefined;
|
|
448
|
-
animation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "
|
|
448
|
+
animation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "none" | "auto" | "alternate" | "alternate-reverse" | "reverse" | "backwards" | "both" | "forwards" | "infinite" | "paused" | "running" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear")[] | undefined;
|
|
449
449
|
animationRange?: readonly (string | (string & {}))[] | csstype.Property.AnimationRange<string | number> | readonly NonNullable<csstype.Property.AnimationRange<string | number> | undefined>[] | undefined;
|
|
450
450
|
background?: readonly (string | (string & {}))[] | csstype.Property.Background<string | number> | readonly NonNullable<csstype.Property.Background<string | number> | undefined>[] | undefined;
|
|
451
451
|
border?: readonly (string | (string & {}))[] | csstype.Property.Border<string | number> | readonly NonNullable<csstype.Property.Border<string | number> | undefined>[] | undefined;
|
|
@@ -729,7 +729,7 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
|
|
|
729
729
|
WebkitUserModify?: csstype.Property.WebkitUserModify | readonly NonNullable<csstype.Property.WebkitUserModify | undefined>[] | readonly csstype.Property.WebkitUserModify[] | undefined;
|
|
730
730
|
WebkitUserSelect?: csstype.Property.UserSelect | readonly NonNullable<csstype.Property.UserSelect | undefined>[] | readonly csstype.Property.UserSelect[] | undefined;
|
|
731
731
|
WebkitWritingMode?: csstype.Property.WritingMode | readonly NonNullable<csstype.Property.WritingMode | undefined>[] | readonly csstype.Property.WritingMode[] | undefined;
|
|
732
|
-
MozAnimation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "
|
|
732
|
+
MozAnimation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "none" | "auto" | "alternate" | "alternate-reverse" | "reverse" | "backwards" | "both" | "forwards" | "infinite" | "paused" | "running" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear")[] | undefined;
|
|
733
733
|
MozBorderImage?: csstype.Property.BorderImage | readonly NonNullable<csstype.Property.BorderImage | undefined>[] | readonly ((string & {}) | csstype.Globals | "repeat" | "none" | "round" | "space" | "stretch")[] | undefined;
|
|
734
734
|
MozColumnRule?: readonly (string | (string & {}))[] | csstype.Property.ColumnRule<string | number> | readonly NonNullable<csstype.Property.ColumnRule<string | number> | undefined>[] | undefined;
|
|
735
735
|
MozColumns?: readonly (string | (string & {}))[] | csstype.Property.Columns<string | number> | readonly NonNullable<csstype.Property.Columns<string | number> | undefined>[] | undefined;
|
|
@@ -741,7 +741,7 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
|
|
|
741
741
|
msScrollSnapX?: readonly string[] | csstype.Property.MsScrollSnapX | readonly csstype.Property.MsScrollSnapX[] | undefined;
|
|
742
742
|
msScrollSnapY?: readonly string[] | csstype.Property.MsScrollSnapY | readonly csstype.Property.MsScrollSnapY[] | undefined;
|
|
743
743
|
msTransition?: readonly string[] | csstype.Property.Transition<string & {}> | readonly csstype.Property.Transition<string & {}>[] | undefined;
|
|
744
|
-
WebkitAnimation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "
|
|
744
|
+
WebkitAnimation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "none" | "auto" | "alternate" | "alternate-reverse" | "reverse" | "backwards" | "both" | "forwards" | "infinite" | "paused" | "running" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear")[] | undefined;
|
|
745
745
|
WebkitBorderBefore?: readonly (string | (string & {}))[] | csstype.Property.WebkitBorderBefore<string | number> | readonly NonNullable<csstype.Property.WebkitBorderBefore<string | number> | undefined>[] | undefined;
|
|
746
746
|
WebkitBorderImage?: csstype.Property.BorderImage | readonly NonNullable<csstype.Property.BorderImage | undefined>[] | readonly ((string & {}) | csstype.Globals | "repeat" | "none" | "round" | "space" | "stretch")[] | undefined;
|
|
747
747
|
WebkitBorderRadius?: readonly (string | (string & {}))[] | csstype.Property.BorderRadius<string | number> | readonly NonNullable<csstype.Property.BorderRadius<string | number> | undefined>[] | undefined;
|
|
@@ -831,7 +831,7 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
|
|
|
831
831
|
MozTransitionTimingFunction?: readonly string[] | csstype.Property.TransitionTimingFunction | readonly csstype.Property.TransitionTimingFunction[] | undefined;
|
|
832
832
|
MozUserInput?: csstype.Property.MozUserInput | readonly NonNullable<csstype.Property.MozUserInput | undefined>[] | readonly csstype.Property.MozUserInput[] | undefined;
|
|
833
833
|
msImeMode?: csstype.Property.ImeMode | readonly NonNullable<csstype.Property.ImeMode | undefined>[] | readonly csstype.Property.ImeMode[] | undefined;
|
|
834
|
-
OAnimation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "
|
|
834
|
+
OAnimation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "none" | "auto" | "alternate" | "alternate-reverse" | "reverse" | "backwards" | "both" | "forwards" | "infinite" | "paused" | "running" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear")[] | undefined;
|
|
835
835
|
OAnimationDelay?: readonly string[] | csstype.Property.AnimationDelay<string & {}> | readonly csstype.Property.AnimationDelay<string & {}>[] | undefined;
|
|
836
836
|
OAnimationDirection?: readonly string[] | csstype.Property.AnimationDirection | readonly csstype.Property.AnimationDirection[] | undefined;
|
|
837
837
|
OAnimationDuration?: readonly string[] | csstype.Property.AnimationDuration<string & {}> | readonly csstype.Property.AnimationDuration<string & {}>[] | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-X3NSWXUJ.js';
|
|
@@ -1,31 +1,25 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { C as ColorScheme } from '../settings-
|
|
3
|
-
import { T as ThemeProviderProps } from '../settings-provider-
|
|
4
|
-
export { u as useSettingsContext } from '../settings-provider-
|
|
2
|
+
import { C as ColorScheme } from '../settings-4d4dc42f.js';
|
|
3
|
+
import { T as ThemeProviderProps } from '../settings-provider-4537dcad.js';
|
|
4
|
+
export { u as useSettingsContext } from '../settings-provider-4537dcad.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
|
|
7
|
-
declare const
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
declare const THEME_CONFIG: {
|
|
8
|
+
readonly STORAGE_KEY: "mui-mode";
|
|
9
|
+
readonly ATTRIBUTE: "data-mui-color-scheme";
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Força a aplicação de um esquema de cores (light/dark) no DOM.
|
|
14
14
|
*
|
|
15
15
|
* @param scheme - Esquema de cores a ser aplicado ('light' ou 'dark')
|
|
16
|
-
* @param scopeId - ID do container do tema isolado. Se fornecido, aplica no container específico.
|
|
17
|
-
* Se não fornecido, aplica globalmente no document.documentElement.
|
|
18
16
|
*
|
|
19
17
|
* @example
|
|
20
18
|
* ```tsx
|
|
21
|
-
* // Aplicar globalmente (comportamento padrão)
|
|
22
19
|
* forceDataMuiColorScheme('light');
|
|
23
|
-
*
|
|
24
|
-
* // Aplicar em scope específico
|
|
25
|
-
* forceDataMuiColorScheme('dark', 'b2b-theme-scope');
|
|
26
20
|
* ```
|
|
27
21
|
*/
|
|
28
|
-
declare const forceDataMuiColorScheme: (scheme: ColorScheme
|
|
29
|
-
declare const ThemeProvider: ({ children, cssVarPrefix, primaryColor, fontFamily, compactLayout, contrast, navColor, navLayout, colorScheme,
|
|
22
|
+
declare const forceDataMuiColorScheme: (scheme: ColorScheme) => void;
|
|
23
|
+
declare const ThemeProvider: ({ children, cssVarPrefix, primaryColor, fontFamily, compactLayout, contrast, navColor, navLayout, colorScheme, storageKey, }: ThemeProviderProps) => react_jsx_runtime.JSX.Element;
|
|
30
24
|
|
|
31
|
-
export { ThemeProvider as default, forceDataMuiColorScheme
|
|
25
|
+
export { THEME_CONFIG, ThemeProvider as default, forceDataMuiColorScheme };
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
export { c as default, b as forceDataMuiColorScheme } from '../chunk-
|
|
1
|
+
export { c as default, b as forceDataMuiColorScheme } from '../chunk-HKINZAZB.js';
|
|
2
2
|
import '../chunk-SO64ZYQB.js';
|
|
3
3
|
import '../chunk-GUFT6XPG.js';
|
|
4
|
-
export { b as useSettingsContext } from '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
4
|
+
export { b as useSettingsContext } from '../chunk-2R4UUSRL.js';
|
|
5
|
+
import '../chunk-QCN7J3QD.js';
|
|
6
|
+
import '../chunk-SVZBOLAL.js';
|
|
7
7
|
import '../chunk-CFVUZ4S5.js';
|
|
8
|
-
import '../chunk-
|
|
9
|
-
export { a as
|
|
10
|
-
import '../chunk-QQDMA4TE.js';
|
|
11
|
-
import '../chunk-Z2TDWMRU.js';
|
|
12
|
-
import '../chunk-4INDXVIX.js';
|
|
13
|
-
import '../chunk-3APKMSVD.js';
|
|
8
|
+
import '../chunk-5MFY3GOD.js';
|
|
9
|
+
export { a as THEME_CONFIG } from '../chunk-X3NSWXUJ.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _mui_material_styles from '@mui/material/styles';
|
|
2
2
|
import { Components, Theme } from '@mui/material/styles';
|
|
3
|
-
import { S as SettingsState } from '../../settings-
|
|
4
|
-
import { T as ThemeUpdateOptions } from '../../types-
|
|
3
|
+
import { S as SettingsState } from '../../settings-4d4dc42f.js';
|
|
4
|
+
import { T as ThemeUpdateOptions } from '../../types-b8e8c021.js';
|
|
5
5
|
import '@mui/material/styles/createTypography';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as buildPrimaryColors, b as updateComponentsWithSettings, a as updateCoreWithSettings } from '../../chunk-
|
|
1
|
+
export { c as buildPrimaryColors, b as updateComponentsWithSettings, a as updateCoreWithSettings } from '../../chunk-SVZBOLAL.js';
|
|
2
2
|
import '../../chunk-CFVUZ4S5.js';
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-5MFY3GOD.js';
|
|
4
|
+
import '../../chunk-X3NSWXUJ.js';
|
|
@@ -9,5 +9,10 @@ type ThemeColorScheme = 'light' | 'dark';
|
|
|
9
9
|
type ThemeLocaleComponents = {
|
|
10
10
|
components: ThemeComponents;
|
|
11
11
|
};
|
|
12
|
+
declare module '@mui/material/Button' {
|
|
13
|
+
interface ButtonPropsVariantOverrides {
|
|
14
|
+
soft: true;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
12
17
|
|
|
13
18
|
export { ThemeUpdateOptions as T, ThemeLocaleComponents as a, ThemeColorScheme as b };
|