@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.
Files changed (59) hide show
  1. package/dist/chunk-2R4UUSRL.js +6 -0
  2. package/dist/{chunk-3HJGN53F.js → chunk-3JXE4T4W.js} +1 -1
  3. package/dist/{chunk-YKX5RVAJ.js → chunk-5MFY3GOD.js} +1 -1
  4. package/dist/chunk-6H6VWBEU.js +7 -0
  5. package/dist/{chunk-Y7C7JIPZ.js → chunk-6HCH7BUB.js} +2 -2
  6. package/dist/{chunk-T7AZE2TB.js → chunk-AYGCYCIP.js} +1 -1
  7. package/dist/chunk-HKINZAZB.js +15 -0
  8. package/dist/{chunk-677WKIPE.js → chunk-OXND3IVT.js} +1 -1
  9. package/dist/{chunk-K25VBEKK.js → chunk-QCN7J3QD.js} +2 -2
  10. package/dist/{chunk-AJYSAO5N.js → chunk-RDX5MYRG.js} +1 -1
  11. package/dist/{chunk-7TWT67RG.js → chunk-SMRJS2UH.js} +1 -1
  12. package/dist/{chunk-RRH2346R.js → chunk-SVZBOLAL.js} +2 -2
  13. package/dist/{chunk-22LB74NN.js → chunk-UNSRJCI6.js} +2 -2
  14. package/dist/{chunk-7J53ZUIF.js → chunk-X3NSWXUJ.js} +3 -3
  15. package/dist/{chunk-HXXZVHQF.js → chunk-ZFNDQWIR.js} +1 -1
  16. package/dist/components/Avatar/index.d.ts +2 -2
  17. package/dist/components/AvatarButton/index.js +8 -12
  18. package/dist/components/Common/index.d.ts +1 -2
  19. package/dist/components/Common/index.js +7 -11
  20. package/dist/components/DataCards/index.js +2 -2
  21. package/dist/components/DataGrid/index.js +3 -3
  22. package/dist/components/DataView/index.d.ts +8 -8
  23. package/dist/components/DataView/index.js +3 -3
  24. package/dist/components/DragButton/index.d.ts +1 -1
  25. package/dist/components/DragContainer/index.d.ts +1 -1
  26. package/dist/components/EmptyContent/index.js +2 -2
  27. package/dist/components/Label/index.js +2 -2
  28. package/dist/components/ListBundles/index.js +2 -2
  29. package/dist/components/SplashScreen/index.js +1 -1
  30. package/dist/components/ToggleTheme/index.js +8 -12
  31. package/dist/components/WebhookCard/index.js +2 -2
  32. package/dist/components/carousel/index.d.ts +3 -3
  33. package/dist/components/carousel/index.js +2 -2
  34. package/dist/components/form/UploadAvatarWithCrop/index.js +3 -3
  35. package/dist/components/form/UploadWithCrop/index.js +3 -3
  36. package/dist/components/upload/index.js +5 -5
  37. package/dist/contexts/PushNotifications/index.js +3 -3
  38. package/dist/hooks/useThemeToggle.d.ts +1 -1
  39. package/dist/hooks/useThemeToggle.js +7 -11
  40. package/dist/{index-3e407e51.d.ts → index-5a5e5dc8.d.ts} +1 -1
  41. package/dist/index.d.ts +6 -6
  42. package/dist/index.js +7 -11
  43. package/dist/{settings-d0cceb05.d.ts → settings-4d4dc42f.d.ts} +0 -2
  44. package/dist/{settings-provider-918b7981.d.ts → settings-provider-4537dcad.d.ts} +2 -2
  45. package/dist/theme/core/index.d.ts +2 -2
  46. package/dist/theme/core/index.js +3 -3
  47. package/dist/theme/settings-provider.d.ts +2 -2
  48. package/dist/theme/settings-provider.js +1 -1
  49. package/dist/theme/styles/index.d.ts +7 -7
  50. package/dist/theme/styles/index.js +1 -1
  51. package/dist/theme/theme-provider.d.ts +9 -15
  52. package/dist/theme/theme-provider.js +6 -10
  53. package/dist/theme/with-settings/index.d.ts +2 -2
  54. package/dist/theme/with-settings/index.js +3 -3
  55. package/dist/{types-2a4efc17.d.ts → types-b8e8c021.d.ts} +5 -0
  56. package/package.json +1 -1
  57. package/dist/chunk-N2DMNLAX.js +0 -8
  58. package/dist/chunk-TYA2RDQJ.js +0 -6
  59. 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-T7AZE2TB.js';
5
+ import { a as a$9 } from '../../chunk-AYGCYCIP.js';
6
6
  import { a as a$7 } from '../../chunk-FK7DDO5L.js';
7
- import '../../chunk-7TWT67RG.js';
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-7J53ZUIF.js';
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" | "style" | "className" | "tabIndex" | "disabled" | "classes" | "sx" | "color" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "size" | "disableFocusRipple" | "edge"> & {
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?: react.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
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-7TWT67RG.js';
1
+ export { a as default } from '../../chunk-SMRJS2UH.js';
2
2
  import '../../chunk-U26IUEAG.js';
3
- import '../../chunk-7J53ZUIF.js';
3
+ import '../../chunk-X3NSWXUJ.js';
@@ -1,2 +1,2 @@
1
- export { a as default } from '../../chunk-HXXZVHQF.js';
2
- import '../../chunk-7J53ZUIF.js';
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-AJYSAO5N.js';
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-7J53ZUIF.js';
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,4 +1,4 @@
1
- import { k } from '../../chunk-7J53ZUIF.js';
1
+ import { k } from '../../chunk-X3NSWXUJ.js';
2
2
  import t from '@mui/material/Box';
3
3
  import { m } from 'framer-motion';
4
4
  import { jsx, jsxs } from 'react/jsx-runtime';
@@ -1,15 +1,11 @@
1
- export { a as default } from '../../chunk-677WKIPE.js';
2
- import '../../chunk-N2DMNLAX.js';
3
- import '../../chunk-XCJL6W4A.js';
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-TYA2RDQJ.js';
7
- import '../../chunk-K25VBEKK.js';
8
- import '../../chunk-RRH2346R.js';
6
+ import '../../chunk-2R4UUSRL.js';
7
+ import '../../chunk-QCN7J3QD.js';
8
+ import '../../chunk-SVZBOLAL.js';
9
9
  import '../../chunk-CFVUZ4S5.js';
10
- import '../../chunk-YKX5RVAJ.js';
11
- import '../../chunk-7J53ZUIF.js';
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-HXXZVHQF.js';
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-7J53ZUIF.js';
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?: react.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
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?: react.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
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?: react.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
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-AJYSAO5N.js';
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-7J53ZUIF.js';
5
+ import '../../chunk-X3NSWXUJ.js';
@@ -1,5 +1,5 @@
1
- import { b } from '../../../chunk-Y7C7JIPZ.js';
2
- import '../../../chunk-3HJGN53F.js';
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-7J53ZUIF.js';
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-22LB74NN.js';
2
- import '../../../chunk-3HJGN53F.js';
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-7J53ZUIF.js';
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-22LB74NN.js';
2
- export { a as UploadAvatar, b as UploadAvatarWithCrop } from '../../chunk-Y7C7JIPZ.js';
3
- import { o } from '../../chunk-3HJGN53F.js';
4
- export { p as RejectionFiles } from '../../chunk-3HJGN53F.js';
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-7J53ZUIF.js';
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 K=createContext(void 0),re=({children:d,originId:S,originType:C,bearerToken:N,vapidKey:M,serviceWorkerPath:T="/",serviceWorkerFile:k="service-worker.js",pollingInterval:x=1e3,apiAdapters:s,onMessageReceived:g,onError:o})=>{let[t,h]=useState(null),[D,m]=useState(0),[I,w]=useState(!1),[L,b]=useState(!1),[B,Q]=useState({subscriptions:[]}),[R,W]=useState(!1),[P]=useState(new Set),V=useMemo(()=>!t||R,[t,R]);useEffect(()=>{if(!L||!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),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);}}}catch(r){console.error("Erro ao buscar mensagens:",r);}},x);return ()=>clearInterval(e)},[L,t,x,s,g,P]);let v=useCallback(async(e,r)=>{try{let n=e?.toJSON().keys,i={origin_type:C,origin_id:S,...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,S,C,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(`${T}${k}`);if(!e||(await navigator.serviceWorker.ready,!e))return;a$1=await p.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:a(M)}),r=async H=>{let J=H.data?.payload,U=H.data?.id;if(J&&(m(y=>y+1),g?.(J)),U)try{await s.updateMessageStatus(U,{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 F=await v(a$1,f);e&&F&&(h(F),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 N&&n(),()=>{e=!1,r&&"serviceWorker"in navigator&&navigator.serviceWorker.removeEventListener("message",r);}},[N,v,s,M,T,k,g,o]);let c=useCallback(async()=>{if(t){W(!0);try{let e=await s.listSubscriptions(t);Q(e);}catch(e){console.error("Erro ao listar inscri\xE7\xF5es:",e),o?.(e);}finally{W(!1);}}},[t,s,o]);useEffect(()=>{t&&c();},[t]);let z=useCallback(async e=>{if(t)try{await s.subscribeTopic(t,e),await c();}catch(r){console.error("Erro ao inscrever em t\xF3pico:",r),o?.(r);}},[t,s,c,o]),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();}catch(r){console.error("Erro ao inscrever em t\xF3picos:",r),o?.(r);}},[t,s,c,o]),$=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]),q=useCallback(()=>{m(0);},[]),X=useMemo(()=>({clientId:t,subscribedTopics:B,isLoading:V,newMessageCount:D,isRegisterError:I,subscribeToTopic:z,unsubscribeFromTopic:O,subscribeTopicsBatch:_,unsubscribeTopicsBatch:$,resetMessageCount:q}),[t,B,V,D,I,z,O,_,$,q]);return jsx(K.Provider,{value:X,children:d})};function se(){let d=useContext(K);if(!d)throw new Error("usePushNotifications precisa estar dentro de PushNotificationProvider");return d}
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 { re as PushNotificationProvider, se as usePushNotifications };
8
+ export { oe as PushNotificationProvider, ie as usePushNotifications };
@@ -1,4 +1,4 @@
1
- import { C as ColorScheme } from '../settings-d0cceb05.js';
1
+ import { C as ColorScheme } from '../settings-4d4dc42f.js';
2
2
 
3
3
  interface UseThemeToggleReturn {
4
4
  colorScheme: ColorScheme;
@@ -1,14 +1,10 @@
1
- export { a as useThemeToggle } from '../chunk-N2DMNLAX.js';
2
- import '../chunk-XCJL6W4A.js';
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-TYA2RDQJ.js';
6
- import '../chunk-K25VBEKK.js';
7
- import '../chunk-RRH2346R.js';
5
+ import '../chunk-2R4UUSRL.js';
6
+ import '../chunk-QCN7J3QD.js';
7
+ import '../chunk-SVZBOLAL.js';
8
8
  import '../chunk-CFVUZ4S5.js';
9
- import '../chunk-YKX5RVAJ.js';
10
- import '../chunk-7J53ZUIF.js';
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-2a4efc17.js';
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-3e407e51.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-3e407e51.js';
3
- export { S as SettingsContextValue, _ as SettingsProvider, T as ThemeProviderProps, u as useSettingsContext } from './settings-provider-918b7981.js';
4
- export { default as ThemeProvider } from './theme/theme-provider.js';
5
- import { S as SettingsState } from './settings-d0cceb05.js';
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-2a4efc17.js';
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-N2DMNLAX.js';
2
- export { c as ThemeProvider, a as createTheme } from './chunk-XCJL6W4A.js';
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-TYA2RDQJ.js';
6
- export { b as defaultFont, c as primaryFont, d as secondaryFont, a as shadows, e as typography } from './chunk-K25VBEKK.js';
7
- import './chunk-RRH2346R.js';
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-YKX5RVAJ.js';
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-7J53ZUIF.js';
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-d0cceb05.js';
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, setColorScheme, scopeId, }: PropsWithChildren<SettingsState>) => react_jsx_runtime.JSX.Element>;
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-3e407e51.js';
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-2a4efc17.js';
13
+ import '../../types-b8e8c021.js';
14
14
  import '@mui/material/styles';
15
15
  import '@mui/material/styles/createTypography';
@@ -1,3 +1,3 @@
1
- export { b as defaultFont, c as primaryFont, d as secondaryFont, a as shadows, e as typography } from '../../chunk-K25VBEKK.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-YKX5RVAJ.js';
3
- import '../../chunk-7J53ZUIF.js';
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-d0cceb05.js';
4
- export { a as SettingsContext, _ as default, u as useSettingsContext } from '../settings-provider-918b7981.js';
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-TYA2RDQJ.js';
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 string[] | readonly csstype.Property.Display[] | undefined;
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?: csstype.Property.Height<string | number> | readonly (string | (string & {}))[] | readonly NonNullable<csstype.Property.Height<string | number> | undefined>[] | undefined;
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?: csstype.Property.Width<string | number> | readonly (string | (string & {}))[] | readonly NonNullable<csstype.Property.Width<string | number> | undefined>[] | undefined;
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" | "auto" | "none" | "alternate" | "alternate-reverse" | "reverse" | "backwards" | "both" | "forwards" | "infinite" | "paused" | "running" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear")[] | undefined;
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" | "auto" | "none" | "alternate" | "alternate-reverse" | "reverse" | "backwards" | "both" | "forwards" | "infinite" | "paused" | "running" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear")[] | undefined;
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" | "auto" | "none" | "alternate" | "alternate-reverse" | "reverse" | "backwards" | "both" | "forwards" | "infinite" | "paused" | "running" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear")[] | undefined;
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" | "auto" | "none" | "alternate" | "alternate-reverse" | "reverse" | "backwards" | "both" | "forwards" | "infinite" | "paused" | "running" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear")[] | undefined;
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-7J53ZUIF.js';
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-d0cceb05.js';
3
- import { T as ThemeProviderProps } from '../settings-provider-918b7981.js';
4
- export { u as useSettingsContext } from '../settings-provider-918b7981.js';
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 schemeConfig: {
8
- modeStorageKey: string;
9
- dataMuiColorScheme: string;
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, scopeId?: string) => void;
29
- declare const ThemeProvider: ({ children, cssVarPrefix, primaryColor, fontFamily, compactLayout, contrast, navColor, navLayout, colorScheme, scopeId, }: ThemeProviderProps) => react_jsx_runtime.JSX.Element;
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, schemeConfig };
25
+ export { THEME_CONFIG, ThemeProvider as default, forceDataMuiColorScheme };
@@ -1,13 +1,9 @@
1
- export { c as default, b as forceDataMuiColorScheme } from '../chunk-XCJL6W4A.js';
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-TYA2RDQJ.js';
5
- import '../chunk-K25VBEKK.js';
6
- import '../chunk-RRH2346R.js';
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-YKX5RVAJ.js';
9
- export { a as schemeConfig } from '../chunk-7J53ZUIF.js';
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-d0cceb05.js';
4
- import { T as ThemeUpdateOptions } from '../../types-2a4efc17.js';
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-RRH2346R.js';
1
+ export { c as buildPrimaryColors, b as updateComponentsWithSettings, a as updateCoreWithSettings } from '../../chunk-SVZBOLAL.js';
2
2
  import '../../chunk-CFVUZ4S5.js';
3
- import '../../chunk-YKX5RVAJ.js';
4
- import '../../chunk-7J53ZUIF.js';
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zydon/common",
3
- "version": "2.7.24",
3
+ "version": "2.7.26",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",