@zydon/common 2.8.76 → 2.8.78

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 (83) hide show
  1. package/dist/chunk-ANEPP6QT.js +4 -0
  2. package/dist/chunk-ANEPP6QT.js.map +1 -0
  3. package/dist/chunk-BHYLHO5P.js +4 -0
  4. package/dist/chunk-BHYLHO5P.js.map +1 -0
  5. package/dist/chunk-CBW32OUQ.js +13 -0
  6. package/dist/chunk-CBW32OUQ.js.map +1 -0
  7. package/dist/chunk-DRGARBKB.js +8 -0
  8. package/dist/chunk-DRGARBKB.js.map +1 -0
  9. package/dist/chunk-FYG3YWFZ.js +4 -0
  10. package/dist/chunk-FYG3YWFZ.js.map +1 -0
  11. package/dist/chunk-J5XGGHQ7.js +8 -0
  12. package/dist/chunk-J5XGGHQ7.js.map +1 -0
  13. package/dist/chunk-J7RPKCIN.js +9 -0
  14. package/dist/chunk-J7RPKCIN.js.map +1 -0
  15. package/dist/{chunk-NWT5TUJO.js → chunk-JM3SE72J.js} +2 -2
  16. package/dist/chunk-RMYYQLRJ.js +7 -0
  17. package/dist/chunk-RMYYQLRJ.js.map +1 -0
  18. package/dist/chunk-SP5U3DJP.js +7 -0
  19. package/dist/chunk-SP5U3DJP.js.map +1 -0
  20. package/dist/chunk-VGTQYKAC.js +8 -0
  21. package/dist/chunk-VGTQYKAC.js.map +1 -0
  22. package/dist/chunk-XAPSXJZO.js +8 -0
  23. package/dist/chunk-XAPSXJZO.js.map +1 -0
  24. package/dist/chunk-XL6SZZGI.js +6 -0
  25. package/dist/chunk-XL6SZZGI.js.map +1 -0
  26. package/dist/chunk-XQZPUMVQ.js +14 -0
  27. package/dist/chunk-XQZPUMVQ.js.map +1 -0
  28. package/dist/components/Analytics/OverviewAnalytics/index.d.ts +54 -0
  29. package/dist/components/Analytics/OverviewAnalytics/index.js +47 -0
  30. package/dist/components/Analytics/OverviewAnalytics/index.js.map +1 -0
  31. package/dist/components/Analytics/PartnerAnalysis/index.d.ts +122 -0
  32. package/dist/components/Analytics/PartnerAnalysis/index.js +28 -0
  33. package/dist/components/Analytics/PartnerAnalysis/index.js.map +1 -0
  34. package/dist/components/Analytics/index.d.ts +117 -0
  35. package/dist/components/Analytics/index.js +47 -0
  36. package/dist/components/Analytics/index.js.map +1 -0
  37. package/dist/components/Avatar/index.d.ts +1 -1
  38. package/dist/components/AvatarButton/index.js +6 -6
  39. package/dist/components/AvatarButton/index.js.map +1 -1
  40. package/dist/components/Common/index.js +2 -2
  41. package/dist/components/DataView/index.d.ts +1 -1
  42. package/dist/components/DateRangeCalendar/index.js +1 -7
  43. package/dist/components/DateRangeCalendar/index.js.map +1 -1
  44. package/dist/components/Drawer/index.js +3 -12
  45. package/dist/components/Drawer/index.js.map +1 -1
  46. package/dist/components/DynamicDataView/index.js +1 -1
  47. package/dist/components/InfoCircle/index.js +3 -7
  48. package/dist/components/InfoCircle/index.js.map +1 -1
  49. package/dist/components/SimpleCard/index.js +1 -7
  50. package/dist/components/SimpleCard/index.js.map +1 -1
  51. package/dist/components/ToggleTheme/index.js +2 -2
  52. package/dist/components/form/DateField/index.js +1 -8
  53. package/dist/components/form/DateField/index.js.map +1 -1
  54. package/dist/components/form/Form/index.js +1 -7
  55. package/dist/components/form/Form/index.js.map +1 -1
  56. package/dist/hooks/useDatagrid.js +1 -6
  57. package/dist/hooks/useDatagrid.js.map +1 -1
  58. package/dist/hooks/useSnackbar.d.ts +1 -1
  59. package/dist/hooks/useThemeToggle.js +2 -2
  60. package/dist/index.d.ts +2 -2
  61. package/dist/index.js +2 -2
  62. package/dist/theme/core/index.d.ts +1 -1
  63. package/dist/theme/styles/index.d.ts +13 -13
  64. package/dist/theme/theme-provider.js +2 -2
  65. package/dist/types/analytics.d.ts +29 -0
  66. package/dist/types/analytics.js +2 -0
  67. package/dist/types/analytics.js.map +1 -0
  68. package/dist/types/overviewAnalytics.d.ts +88 -0
  69. package/dist/types/overviewAnalytics.js +2 -0
  70. package/dist/types/overviewAnalytics.js.map +1 -0
  71. package/dist/types/partnerAnalysis.d.ts +91 -0
  72. package/dist/types/partnerAnalysis.js +2 -0
  73. package/dist/types/partnerAnalysis.js.map +1 -0
  74. package/dist/utils/buildExportPayload.js +1 -1
  75. package/dist/utils/chart.d.ts +6 -0
  76. package/dist/utils/chart.js +2 -0
  77. package/dist/utils/chart.js.map +1 -0
  78. package/dist/utils/periodDates.d.ts +20 -0
  79. package/dist/utils/periodDates.js +3 -0
  80. package/dist/utils/periodDates.js.map +1 -0
  81. package/package.json +16 -2
  82. package/dist/{chunk-NWT5TUJO.js.map → chunk-JM3SE72J.js.map} +0 -0
  83. package/dist/{index-5a5e5dc8.d.ts → index-c8f1e6e7.d.ts} +12 -12
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/AvatarButton/index.tsx","../../../src/components/AvatarButton/styles.ts"],"names":["Avatar","Divider","Stack","alpha","Typography","MuiLoadingButton","MuiButton","styled","Button","MenuPopover","MenuPopover_default","theme","AccountInformations","Section","MenuItem","ResourcesGrid","ResourceItem","LogoutButton","Fragment","jsx","jsxs","AvatarButton","name","email","src","content","menuItems","subContent","logout","loadingLogout","popover","usePopover_default","CustomAvatar_default","item","Icon_default","checkIsSpecialUser","Toggle_default","AvatarButton_default"],"mappings":"moBAAA,OAAOA,MAAY,uBACnB,OAAOC,MAAa,wBACpB,OAAOC,MAAW,sBAElB,OAAS,SAAAC,MAAa,uBACtB,OAAOC,MAAgB,2BCLvB,OAAOC,MAAsB,yBAC7B,OAAOC,MAAe,uBACtB,OAAOJ,MAAW,sBAClB,OAAS,SAAAC,EAAO,UAAAI,MAAc,uBAIvB,IAAMC,EAASD,EAAOL,CAAK,EAAE,CAClC,MAAO,GACP,OAAQ,GACR,WAAY,SACZ,eAAgB,SAChB,aAAc,MACd,OAAQ,oBACR,OAAQ,SACV,CAAC,EAEYO,EAAcF,EAAOG,CAAiB,EAAE,CAAC,CAAE,MAAAC,CAAM,KAAO,CACnE,MAAO,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AAG,EAACe,EAAA,CAAK,KAAK,UAAU,MAAM,eAAe,EAC1Cf,EAACf,EAAA,CAAW,QAAQ,UAAU,SAAS,mBAAmB,kBAE1D,GACF,EAEAgB,EAACJ,EAAA,CACC,cAAY,iBACZ,QAAS,IACP,OAAO,KACL,6BACA,SACA,qBACF,EAGF,UAAAG,EAACe,EAAA,CAAK,KAAK,cAAc,MAAM,eAAe,EAC9Cf,EAACf,EAAA,CAAW,QAAQ,UAAU,SAAS,mBAAmB,iBAE1D,GACF,EAEAgB,EAACJ,EAAA,CACC,cAAY,gBACZ,QAAS,IACP,OAAO,KACL,4BACA,SACA,qBACF,EAGF,UAAAG,EAACe,EAAA,CAAK,KAAK,cAAc,MAAM,eAAe,EAC9Cf,EAACf,EAAA,CAAW,QAAQ,UAAU,SAAS,mBAAmB,gBAE1D,GACF,GACF,EACF,EAEAe,EAAClB,EAAA,EAAQ,EAETmB,EAACP,EAAA,CAAQ,UAAU,MACjB,UAAAM,EAACF,EAAA,CACC,cAAY,gBACZ,UAAWE,EAACe,EAAA,CAAK,KAAK,YAAY,EAClC,KAAK,QACL,QAASN,EACT,QAASC,EAER,SAAAA,EAAgB,YAAc,OACjC,EACCM,EAAmBZ,CAAK,GACvBH,EAAClB,EAAA,CAAM,UAAU,MAAM,WAAW,SAAS,IAAK,EAC9C,UAAAiB,EAACf,EAAA,CACC,QAAQ,WACR,SAAU,GACV,MAAM,gBACP,yBAED,EACAe,EAACiB,EAAA,EAAY,GACf,GAEJ,GACF,GACF,CAEJ,EAEOC,GAAQhB","sourcesContent":["import Avatar from '@mui/material/Avatar';\nimport Divider from '@mui/material/Divider';\nimport Stack from '@mui/material/Stack';\nimport type { Theme } from '@mui/material/styles';\nimport { alpha } from '@mui/material/styles';\nimport Typography from '@mui/material/Typography';\n\nimport CustomAvatar from 'components/CustomAvatar';\nimport Icon from 'components/Icon';\nimport ToggleTheme from 'components/ToggleTheme';\nimport usePopover from 'hooks/usePopover';\nimport { checkIsSpecialUser } from 'utils/user';\n\nimport { AvatarButtonProps } from './props';\nimport {\n AccountInformations,\n Button,\n LogoutButton,\n MenuItem,\n MenuPopover,\n ResourceItem,\n ResourcesGrid,\n Section,\n} from './styles';\n\nconst AvatarButton = ({\n name = '',\n email = '',\n src,\n content,\n menuItems,\n subContent,\n logout,\n loadingLogout,\n}: AvatarButtonProps) => {\n const popover = usePopover();\n\n return (\n <>\n <Button data-testid=\"avatar-trigger-button\">\n <CustomAvatar\n alt={name}\n name={name}\n src={src}\n onClick={popover.onOpen}\n data-testid=\"avatar-trigger\"\n sx={{ maxWidth: 34, maxHeight: 34 }}\n />\n </Button>\n\n <MenuPopover\n open={popover.open}\n onClose={popover.onClose}\n arrow=\"top-right\"\n disableRestoreFocus\n data-testid=\"avatar-menu\"\n >\n <AccountInformations data-testid=\"avatar-account\">\n <Avatar\n sx={{\n bgcolor: theme =>\n theme.palette.mode === 'dark'\n ? alpha(theme.palette.primary.main, 0.04)\n : 'success.lighter',\n border: theme =>\n theme.palette.mode === 'dark'\n ? '1px solid rgb(255, 252, 252)'\n : 'none',\n color: theme =>\n theme.palette.mode === 'dark'\n ? 'primary.contrastText'\n : 'success.main',\n width: 60,\n height: 60,\n }}\n data-testid=\"avatar-initials\"\n >\n {name.slice(0, 2).toUpperCase()}\n </Avatar>\n\n <Stack alignItems=\"center\" textAlign=\"center\">\n <Typography\n variant=\"subtitle2\"\n fontSize=\"subtitle2.fontSize\"\n color=\"text.primary\"\n >\n {name}\n </Typography>\n\n <Typography\n variant=\"body2\"\n fontSize=\"body2.fontSize\"\n color=\"text.secondary\"\n >\n {email}\n </Typography>\n </Stack>\n </AccountInformations>\n\n <Divider />\n\n {content && (\n <>\n <Section data-testid=\"avatar-content\">{content}</Section>\n <Divider />\n </>\n )}\n\n {menuItems && (\n <>\n <Section data-testid=\"avatar-menu-items\">\n {menuItems.map(item => (\n <MenuItem\n key={item.label}\n data-testid={`avatar-menu-item-${item.label\n .toLowerCase()\n .replace(/\\s+/g, '-')}`}\n startIcon={\n <Icon\n icon={item.icon}\n color={(theme: Theme) =>\n theme.palette.mode === 'dark'\n ? 'text.secondary'\n : 'primary.main'\n }\n />\n }\n {...(item.component && {\n component: item.component,\n to: item.to,\n })}\n {...(item.onClick && { onClick: item.onClick })}\n >\n <Stack\n direction=\"row\"\n alignItems=\"center\"\n justifyContent=\"space-between\"\n flex={1}\n gap={1}\n >\n <Typography\n variant=\"caption\"\n fontSize={13}\n color=\"text.secondary\"\n >\n {item.label}\n </Typography>\n <Icon icon=\"ARROW_RIGHT_SIMPLE\" color=\"text.primary\" />\n </Stack>\n </MenuItem>\n ))}\n </Section>\n <Divider />\n </>\n )}\n\n {subContent && (\n <>\n <Section data-testid=\"avatar-subcontent\">{subContent}</Section>\n <Divider />\n </>\n )}\n\n <Section data-testid=\"avatar-resources\">\n <ResourcesGrid>\n <ResourceItem\n data-testid=\"resource-discord\"\n onClick={() =>\n window.open('https://discord.gg/HMpBbABGVW', '_blank')\n }\n >\n <Icon icon=\"DISCORD\" color=\"primary.main\" />\n <Typography variant=\"caption\" fontSize=\"caption.fontSize\">\n Comunidade\n </Typography>\n </ResourceItem>\n\n <ResourceItem\n data-testid=\"resource-youtube\"\n onClick={() =>\n window.open(\n 'https://youtube.com/playlist?list=PLqv8txNiT9o_LReCh5wKPiQaeBTg2Q1i3&si=3nGSAU3AdcPwoa-R',\n '_blank',\n 'noopener noreferrer',\n )\n }\n >\n <Icon icon=\"YOUTUBE\" color=\"primary.main\" />\n <Typography variant=\"caption\" fontSize=\"caption.fontSize\">\n Videos\n </Typography>\n </ResourceItem>\n\n <ResourceItem\n data-testid=\"resource-ajuda\"\n onClick={() =>\n window.open(\n 'https://ajuda.zydon.com.br',\n '_blank',\n 'noopener noreferrer',\n )\n }\n >\n <Icon icon=\"HELP_CIRCLE\" color=\"primary.main\" />\n <Typography variant=\"caption\" fontSize=\"caption.fontSize\">\n Ajuda\n </Typography>\n </ResourceItem>\n\n <ResourceItem\n data-testid=\"resource-docs\"\n onClick={() =>\n window.open(\n 'https://docs.zydon.com.br',\n '_blank',\n 'noopener noreferrer',\n )\n }\n >\n <Icon icon=\"CODE_FOLDER\" color=\"primary.main\" />\n <Typography variant=\"caption\" fontSize=\"caption.fontSize\">\n Docs\n </Typography>\n </ResourceItem>\n </ResourcesGrid>\n </Section>\n\n <Divider />\n\n <Section direction=\"row\">\n <LogoutButton\n data-testid=\"logout-button\"\n startIcon={<Icon icon=\"LOGOUT_02\" />}\n size=\"small\"\n onClick={logout}\n loading={loadingLogout}\n >\n {loadingLogout ? 'Saindo...' : 'Sair'}\n </LogoutButton>\n {checkIsSpecialUser(email) && (\n <Stack direction=\"row\" alignItems=\"center\" gap={1}>\n <Typography\n variant=\"overline\"\n fontSize={11}\n color=\"text.disabled\"\n >\n Aparência:\n </Typography>\n <ToggleTheme />\n </Stack>\n )}\n </Section>\n </MenuPopover>\n </>\n );\n};\n\nexport default AvatarButton;\n","import MuiLoadingButton from '@mui/lab/LoadingButton';\nimport MuiButton from '@mui/material/Button';\nimport Stack from '@mui/material/Stack';\nimport { alpha, styled } from '@mui/material/styles';\n\nimport CommonMenuPopover from 'components/MenuPopover';\n\nexport const Button = styled(Stack)({\n width: 40,\n height: 40,\n alignItems: 'center',\n justifyContent: 'center',\n borderRadius: '50%',\n border: '2px solid #1C1C1C',\n cursor: 'pointer',\n});\n\nexport const MenuPopover = styled(CommonMenuPopover)(({ theme }) => ({\n width: 322,\n marginTop: 20,\n\n '& .MuiPopover-paper': {\n width: 540,\n padding: 0,\n backgroundColor: theme.palette.background.paper,\n borderRadius: theme.spacing(1),\n backgroundImage: 'none',\n },\n}));\n\nexport const AccountInformations = styled(Stack)(({ theme }) => ({\n alignItems: 'center',\n justifyContent: 'center',\n gap: theme.spacing(1.5),\n padding: theme.spacing(3),\n backgroundColor: alpha(theme.palette.primary.main, 0.04),\n}));\n\nexport const Section = styled(Stack)(({ theme }) => ({\n marginLeft: theme.spacing(1.75),\n marginRight: theme.spacing(1.75),\n marginTop: theme.spacing(2),\n marginBottom: theme.spacing(2),\n gap: theme.spacing(1),\n}));\n\nexport const MenuItem = styled(MuiButton)(({ theme }) => ({\n width: '100%',\n alignItems: 'flex-start',\n justifyContent: 'flex-start',\n color: theme.palette.text.primary,\n}));\n\nexport const ResourcesGrid = styled(Stack)(({ theme }) => ({\n display: 'grid',\n gridTemplateColumns: 'repeat(4, 1fr)',\n gap: theme.spacing(2),\n cursor: 'pointer',\n}));\n\nexport const ResourceItem = styled(Stack)(({ theme }) => ({\n alignItems: 'center',\n gap: theme.spacing(0.5),\n color: theme.palette.text.secondary,\n textAlign: 'center',\n\n '&:hover': {\n color: theme.palette.primary.main,\n },\n}));\n\nexport const LogoutButton = styled(MuiLoadingButton)(({ theme }) => ({\n width: '100%',\n alignItems: 'flex-start',\n justifyContent: 'flex-start',\n color: theme.palette.error.main,\n}));\n"]}
1
+ {"version":3,"sources":["../../../src/components/AvatarButton/index.tsx","../../../src/components/AvatarButton/styles.ts"],"names":["Avatar","Divider","Stack","alpha","Typography","MuiLoadingButton","MuiButton","styled","Button","MenuPopover","MenuPopover_default","theme","AccountInformations","Section","MenuItem","ResourcesGrid","ResourceItem","LogoutButton","Fragment","jsx","jsxs","AvatarButton","name","email","src","content","menuItems","subContent","logout","loadingLogout","popover","usePopover_default","CustomAvatar_default","item","Icon_default","checkIsSpecialUser","Toggle_default","AvatarButton_default"],"mappings":"woBAAA,OAAOA,MAAY,uBACnB,OAAOC,MAAa,wBACpB,OAAOC,MAAW,sBAElB,OAAS,SAAAC,MAAa,uBACtB,OAAOC,MAAgB,2BCLvB,OAAOC,MAAsB,yBAC7B,OAAOC,MAAe,uBACtB,OAAOJ,MAAW,sBAClB,OAAS,SAAAC,EAAO,UAAAI,MAAc,uBAIvB,IAAMC,EAASD,EAAOL,CAAK,EAAE,CAClC,MAAO,GACP,OAAQ,GACR,WAAY,SACZ,eAAgB,SAChB,aAAc,MACd,OAAQ,oBACR,OAAQ,SACV,CAAC,EAEYO,EAAcF,EAAO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ACL,2FACA,SACA,qBACF,EAGF,UAAAG,EAACe,EAAA,CAAK,KAAK,UAAU,MAAM,eAAe,EAC1Cf,EAACf,EAAA,CAAW,QAAQ,UAAU,kBAAM,GACtC,EAEAgB,EAACJ,EAAA,CACC,cAAY,iBACZ,QAAS,IACP,OAAO,KACL,6BACA,SACA,qBACF,EAGF,UAAAG,EAACe,EAAA,CAAK,KAAK,cAAc,MAAM,eAAe,EAC9Cf,EAACf,EAAA,CAAW,QAAQ,UAAU,iBAAK,GACrC,EAEAgB,EAACJ,EAAA,CACC,cAAY,gBACZ,QAAS,IACP,OAAO,KACL,4BACA,SACA,qBACF,EAGF,UAAAG,EAACe,EAAA,CAAK,KAAK,cAAc,MAAM,eAAe,EAC9Cf,EAACf,EAAA,CAAW,QAAQ,UAAU,gBAAI,GACpC,GACF,EACF,EAEAe,EAAClB,EAAA,EAAQ,EAETmB,EAACP,EAAA,CAAQ,UAAU,MACjB,UAAAM,EAACF,EAAA,CACC,cAAY,gBACZ,UAAWE,EAACe,EAAA,CAAK,KAAK,YAAY,EAClC,KAAK,QACL,QAASN,EACT,QAASC,EAER,SAAAA,EAAgB,YAAc,OACjC,EACCM,EAAmBZ,CAAK,GACvBH,EAAClB,EAAA,CAAM,UAAU,MAAM,WAAW,SAAS,IAAK,EAC9C,UAAAiB,EAACf,EAAA,CACC,QAAQ,WACR,SAAU,GACV,MAAM,gBACP,yBAED,EACAe,EAACiB,EAAA,EAAY,GACf,GAEJ,GACF,GACF,CAEJ,EAEOC,GAAQhB","sourcesContent":["import Avatar from '@mui/material/Avatar';\nimport Divider from '@mui/material/Divider';\nimport Stack from '@mui/material/Stack';\nimport type { Theme } from '@mui/material/styles';\nimport { alpha } from '@mui/material/styles';\nimport Typography from '@mui/material/Typography';\n\nimport CustomAvatar from 'components/CustomAvatar';\nimport Icon from 'components/Icon';\nimport ToggleTheme from 'components/ToggleTheme';\nimport usePopover from 'hooks/usePopover';\nimport { checkIsSpecialUser } from 'utils/user';\n\nimport { AvatarButtonProps } from './props';\nimport {\n AccountInformations,\n Button,\n LogoutButton,\n MenuItem,\n MenuPopover,\n ResourceItem,\n ResourcesGrid,\n Section,\n} from './styles';\n\nconst AvatarButton = ({\n name = '',\n email = '',\n src,\n content,\n menuItems,\n subContent,\n logout,\n loadingLogout,\n}: AvatarButtonProps) => {\n const popover = usePopover();\n\n return (\n <>\n <Button data-testid=\"avatar-trigger-button\">\n <CustomAvatar\n alt={name}\n name={name}\n src={src}\n onClick={popover.onOpen}\n data-testid=\"avatar-trigger\"\n sx={{ maxWidth: 34, maxHeight: 34 }}\n />\n </Button>\n\n <MenuPopover\n open={popover.open}\n onClose={popover.onClose}\n arrow=\"top-right\"\n disableRestoreFocus\n data-testid=\"avatar-menu\"\n >\n <AccountInformations data-testid=\"avatar-account\">\n <Avatar\n sx={{\n bgcolor: theme =>\n theme.palette.mode === 'dark'\n ? alpha(theme.palette.primary.main, 0.04)\n : 'success.lighter',\n border: theme =>\n theme.palette.mode === 'dark'\n ? '1px solid rgb(255, 252, 252)'\n : 'none',\n color: theme =>\n theme.palette.mode === 'dark'\n ? 'primary.contrastText'\n : 'success.main',\n width: 60,\n height: 60,\n }}\n data-testid=\"avatar-initials\"\n >\n {name.slice(0, 2).toUpperCase()}\n </Avatar>\n\n <Stack alignItems=\"center\" textAlign=\"center\">\n <Typography variant=\"subtitle2\" color=\"text.primary\">\n {name}\n </Typography>\n\n <Typography variant=\"body2\" color=\"text.secondary\">\n {email}\n </Typography>\n </Stack>\n </AccountInformations>\n\n <Divider />\n\n {content && (\n <>\n <Section data-testid=\"avatar-content\">{content}</Section>\n <Divider />\n </>\n )}\n\n {menuItems && (\n <>\n <Section data-testid=\"avatar-menu-items\">\n {menuItems.map(item => (\n <MenuItem\n key={item.label}\n data-testid={`avatar-menu-item-${item.label\n .toLowerCase()\n .replace(/\\s+/g, '-')}`}\n startIcon={\n <Icon\n icon={item.icon}\n color={(theme: Theme) =>\n theme.palette.mode === 'dark'\n ? 'text.secondary'\n : 'primary.main'\n }\n />\n }\n {...(item.component && {\n component: item.component,\n to: item.to,\n })}\n {...(item.onClick && { onClick: item.onClick })}\n >\n <Stack\n direction=\"row\"\n alignItems=\"center\"\n justifyContent=\"space-between\"\n flex={1}\n gap={1}\n >\n <Typography\n variant=\"caption\"\n fontSize={13}\n color=\"text.secondary\"\n >\n {item.label}\n </Typography>\n <Icon icon=\"ARROW_RIGHT_SIMPLE\" color=\"text.primary\" />\n </Stack>\n </MenuItem>\n ))}\n </Section>\n <Divider />\n </>\n )}\n\n {subContent && (\n <>\n <Section data-testid=\"avatar-subcontent\">{subContent}</Section>\n <Divider />\n </>\n )}\n\n <Section data-testid=\"avatar-resources\">\n <ResourcesGrid>\n <ResourceItem\n data-testid=\"resource-discord\"\n onClick={() =>\n window.open('https://discord.gg/HMpBbABGVW', '_blank')\n }\n >\n <Icon icon=\"DISCORD\" color=\"primary.main\" />\n <Typography variant=\"caption\">Comunidade</Typography>\n </ResourceItem>\n\n <ResourceItem\n data-testid=\"resource-youtube\"\n onClick={() =>\n window.open(\n 'https://youtube.com/playlist?list=PLqv8txNiT9o_LReCh5wKPiQaeBTg2Q1i3&si=3nGSAU3AdcPwoa-R',\n '_blank',\n 'noopener noreferrer',\n )\n }\n >\n <Icon icon=\"YOUTUBE\" color=\"primary.main\" />\n <Typography variant=\"caption\">Videos</Typography>\n </ResourceItem>\n\n <ResourceItem\n data-testid=\"resource-ajuda\"\n onClick={() =>\n window.open(\n 'https://ajuda.zydon.com.br',\n '_blank',\n 'noopener noreferrer',\n )\n }\n >\n <Icon icon=\"HELP_CIRCLE\" color=\"primary.main\" />\n <Typography variant=\"caption\">Ajuda</Typography>\n </ResourceItem>\n\n <ResourceItem\n data-testid=\"resource-docs\"\n onClick={() =>\n window.open(\n 'https://docs.zydon.com.br',\n '_blank',\n 'noopener noreferrer',\n )\n }\n >\n <Icon icon=\"CODE_FOLDER\" color=\"primary.main\" />\n <Typography variant=\"caption\">Docs</Typography>\n </ResourceItem>\n </ResourcesGrid>\n </Section>\n\n <Divider />\n\n <Section direction=\"row\">\n <LogoutButton\n data-testid=\"logout-button\"\n startIcon={<Icon icon=\"LOGOUT_02\" />}\n size=\"small\"\n onClick={logout}\n loading={loadingLogout}\n >\n {loadingLogout ? 'Saindo...' : 'Sair'}\n </LogoutButton>\n {checkIsSpecialUser(email) && (\n <Stack direction=\"row\" alignItems=\"center\" gap={1}>\n <Typography\n variant=\"overline\"\n fontSize={11}\n color=\"text.disabled\"\n >\n Aparência:\n </Typography>\n <ToggleTheme />\n </Stack>\n )}\n </Section>\n </MenuPopover>\n </>\n );\n};\n\nexport default AvatarButton;\n","import MuiLoadingButton from '@mui/lab/LoadingButton';\nimport MuiButton from '@mui/material/Button';\nimport Stack from '@mui/material/Stack';\nimport { alpha, styled } from '@mui/material/styles';\n\nimport CommonMenuPopover from 'components/MenuPopover';\n\nexport const Button = styled(Stack)({\n width: 40,\n height: 40,\n alignItems: 'center',\n justifyContent: 'center',\n borderRadius: '50%',\n border: '2px solid #1C1C1C',\n cursor: 'pointer',\n});\n\nexport const MenuPopover = styled(CommonMenuPopover)(({ theme }) => ({\n width: 322,\n marginTop: 20,\n\n '& .MuiPopover-paper': {\n width: 540,\n padding: 0,\n backgroundColor: theme.palette.background.paper,\n borderRadius: theme.spacing(1),\n backgroundImage: 'none',\n },\n}));\n\nexport const AccountInformations = styled(Stack)(({ theme }) => ({\n alignItems: 'center',\n justifyContent: 'center',\n gap: theme.spacing(1.5),\n padding: theme.spacing(3),\n backgroundColor: alpha(theme.palette.primary.main, 0.04),\n}));\n\nexport const Section = styled(Stack)(({ theme }) => ({\n marginLeft: theme.spacing(1.75),\n marginRight: theme.spacing(1.75),\n marginTop: theme.spacing(2),\n marginBottom: theme.spacing(2),\n gap: theme.spacing(1),\n}));\n\nexport const MenuItem = styled(MuiButton)(({ theme }) => ({\n width: '100%',\n alignItems: 'flex-start',\n justifyContent: 'flex-start',\n color: theme.palette.text.primary,\n}));\n\nexport const ResourcesGrid = styled(Stack)(({ theme }) => ({\n display: 'grid',\n gridTemplateColumns: 'repeat(4, 1fr)',\n gap: theme.spacing(2),\n cursor: 'pointer',\n}));\n\nexport const ResourceItem = styled(Stack)(({ theme }) => ({\n alignItems: 'center',\n gap: theme.spacing(0.5),\n color: theme.palette.text.secondary,\n textAlign: 'center',\n\n '&:hover': {\n color: theme.palette.primary.main,\n },\n}));\n\nexport const LogoutButton = styled(MuiLoadingButton)(({ theme }) => ({\n width: '100%',\n alignItems: 'flex-start',\n justifyContent: 'flex-start',\n color: theme.palette.error.main,\n}));\n"]}
@@ -1,14 +1,14 @@
1
1
  import { a } from '../../chunk-2GTD4JW2.js';
2
2
  import '../../chunk-PBLSVXV5.js';
3
- import { b } from '../../chunk-NWT5TUJO.js';
3
+ import { b } from '../../chunk-JM3SE72J.js';
4
4
  import '../../chunk-373WGZZL.js';
5
+ import '../../chunk-WUFEPE2G.js';
5
6
  import '../../chunk-BX2DSNRV.js';
6
7
  import '../../chunk-X4F3O7PX.js';
7
8
  import '../../chunk-Q2AVS24Z.js';
8
9
  import '../../chunk-LNESYSHP.js';
9
10
  import '../../chunk-YPL4KIKN.js';
10
11
  import '../../chunk-HBOBTNB5.js';
11
- import '../../chunk-WUFEPE2G.js';
12
12
  import { k } from '../../chunk-GLRLKFPS.js';
13
13
  import 'dayjs/locale/pt-br';
14
14
  import _ from 'dayjs';
@@ -90,7 +90,7 @@ declare const SelectionOverlay: _emotion_styled.StyledComponent<_mui_material_St
90
90
  }, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_material_Stack.StackOwnProps> & _mui_system.MUIStyledCommonProps<_mui_material_styles.Theme>, {}, {}>;
91
91
  declare const SelectionCount: _emotion_styled.StyledComponent<_mui_material_Typography.TypographyOwnProps & _mui_material_OverridableComponent.CommonProps & Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
92
92
  ref?: ((instance: HTMLSpanElement | null) => void) | react.RefObject<HTMLSpanElement> | null | undefined;
93
- }, "typography" | "zIndex" | "fontFamily" | "fontWeight" | "children" | "pt" | "className" | "style" | "classes" | "sx" | "variant" | "border" | "boxShadow" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "p" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & _mui_system.MUIStyledCommonProps<_mui_material_styles.Theme>, {}, {}>;
93
+ }, "fontFamily" | "children" | "pt" | "className" | "style" | "classes" | "sx" | "variant" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "p" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & _mui_system.MUIStyledCommonProps<_mui_material_styles.Theme>, {}, {}>;
94
94
  declare const SelectionActions: _emotion_styled.StyledComponent<_mui_material_Stack.StackOwnProps & _mui_material_OverridableComponent.CommonProps & Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
95
95
  ref?: ((instance: HTMLDivElement | null) => void) | react.RefObject<HTMLDivElement> | null | undefined;
96
96
  }, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_material_Stack.StackOwnProps> & _mui_system.MUIStyledCommonProps<_mui_material_styles.Theme>, {}, {}>;
@@ -1,8 +1,2 @@
1
- import { DateRangeCalendar } from '@mui/x-date-pickers-pro';
2
- import e from 'dayjs';
3
- import { jsx } from 'react/jsx-runtime';
4
-
5
- var r=a=>[a?.[0]?e(a[0]):null,a?.[1]?e(a[1]):null],u=a=>[a[0]?a[0].toDate():null,a[1]?a[1].toDate():null],s=({value:a,onChange:l,...n})=>{let t=r(a);return jsx(DateRangeCalendar,{...n,value:t,onChange:o=>{l(u(o));}})},C=s;
6
-
7
- export { C as default, r as toCalendarValue, u as toDateRange };
1
+ export { c as default, a as toCalendarValue, b as toDateRange } from '../../chunk-VGTQYKAC.js';
8
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/DateRangeCalendar/index.tsx"],"names":["MuiDateRangeCalendar","dayjs","jsx","toCalendarValue","value","toDateRange","newRange","DateRangeCalendar","onChange","other","calendarValue","DateRangeCalendar_default"],"mappings":"AAAA,OAAS,qBAAqBA,MAA4B,0BAC1D,OAAOC,MAA2B,QAkC9B,cAAAC,MAAA,oBA1BG,IAAMC,EACXC,GACiC,CACjCA,IAAQ,CAAC,EAAIH,EAAMG,EAAM,CAAC,CAAC,EAAI,KAC/BA,IAAQ,CAAC,EAAIH,EAAMG,EAAM,CAAC,CAAC,EAAI,IACjC,EAEaC,EACXC,GACmB,CACnBA,EAAS,CAAC,EAAIA,EAAS,CAAC,EAAE,OAAO,EAAI,KACrCA,EAAS,CAAC,EAAIA,EAAS,CAAC,EAAE,OAAO,EAAI,IACvC,EAEMC,EAAoB,CAAC,CACzB,MAAAH,EACA,SAAAI,EACA,GAAGC,CACL,IAA8B,CAC5B,IAAMC,EAAgBP,EAAgBC,CAAK,EAM3C,OACEF,EAACF,EAAA,CACE,GAAGS,EACJ,MAAOC,EACP,SARkBJ,GAA2C,CAC/DE,EAASH,EAAYC,CAAQ,CAAC,CAChC,EAOE,CAEJ,EAEOK,EAAQJ","sourcesContent":["import { DateRangeCalendar as MuiDateRangeCalendar } from '@mui/x-date-pickers-pro';\nimport dayjs, { type Dayjs } from 'dayjs';\n\nimport {\n DateRangeCalendarProps,\n DateRangeValue,\n MaybeDateRangeValue,\n} from './props';\n\nexport const toCalendarValue = (\n value: MaybeDateRangeValue,\n): [Dayjs | null, Dayjs | null] => [\n value?.[0] ? dayjs(value[0]) : null,\n value?.[1] ? dayjs(value[1]) : null,\n];\n\nexport const toDateRange = (\n newRange: [Dayjs | null, Dayjs | null],\n): DateRangeValue => [\n newRange[0] ? newRange[0].toDate() : null,\n newRange[1] ? newRange[1].toDate() : null,\n];\n\nconst DateRangeCalendar = ({\n value,\n onChange,\n ...other\n}: DateRangeCalendarProps) => {\n const calendarValue = toCalendarValue(value);\n\n const handleChange = (newRange: [Dayjs | null, Dayjs | null]) => {\n onChange(toDateRange(newRange));\n };\n\n return (\n <MuiDateRangeCalendar\n {...other}\n value={calendarValue}\n onChange={handleChange}\n />\n );\n};\n\nexport default DateRangeCalendar;\n"]}
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -1,14 +1,5 @@
1
- import { a as a$1 } from '../../chunk-F65ZXAGV.js';
2
- import { a } from '../../chunk-2GTD4JW2.js';
1
+ export { a as default } from '../../chunk-CBW32OUQ.js';
2
+ import '../../chunk-F65ZXAGV.js';
3
+ import '../../chunk-2GTD4JW2.js';
3
4
  import '../../chunk-PBLSVXV5.js';
4
- import S from '@mui/material/Drawer';
5
- import T from '@mui/material/IconButton';
6
- import l from '@mui/material/Stack';
7
- import y from '@mui/material/DialogActions';
8
- import { styled } from '@mui/material/styles';
9
- import { jsxs, jsx } from 'react/jsx-runtime';
10
-
11
- var c=styled(l)(({theme:r})=>({alignItems:"center",borderBottom:`1px solid ${r.palette.grey[300]}`,padding:"22px 20px",gap:16})),d=styled(l)(({theme:r})=>({flexDirection:"row",alignItems:"center",gap:8,flex:1,fontSize:r.typography.subtitle1.fontSize,fontWeight:r.typography.subtitle1.fontWeight,fontFamily:r.typography.fontFamily})),m=styled(y)(({theme:r})=>({borderTop:`1px solid ${r.palette.divider}`,backgroundColor:r.palette.background.paper}));var D=({children:r,actionsProps:t})=>jsx(m,{"data-testid":"drawer-actions",...t,children:r}),f=D;var C=({headerTitle:r,headerProps:t,onClose:i,children:w,contentProps:A,maxWidth:h=684,actions:a$2,actionsProps:x,id:p,...b})=>{let u=p||"actions";return jsxs(S,{anchor:"right",id:p,PaperProps:{sx:{width:1,maxWidth:h}},onClose:i,...b,children:[jsxs(c,{direction:"row",...t,children:[jsx(T,{"aria-label":"Fechar gaveta lateral","data-testid":"close-drawer-btn",size:"small",onClick:i,children:jsx(a,{icon:"CLOSE_MARK_BUTTON",width:18})}),jsx(d,{children:r})]}),jsx(a$1,{children:jsx(l,{p:3,...A,children:w})}),a$2&&jsx(f,{actionsProps:{...x,id:u},children:a$2})]})},K=C;
12
-
13
- export { K as default };
14
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Drawer/index.tsx","../../../src/components/Drawer/styles.ts","../../../src/components/Drawer/Actions.tsx"],"names":["MuiDrawer","IconButton","Stack","DialogActions","styled","Header","theme","HeaderTitle","Actions","jsx","children","actionsProps","Actions_default","jsxs","Drawer","headerTitle","headerProps","onClose","contentProps","maxWidth","actions","id","other","DRAWER_ACTIONS","Icon_default","Scrollbar_default","Drawer_default"],"mappings":"wHAAA,OAAOA,MAAe,uBACtB,OAAOC,MAAgB,2BACvB,OAAOC,MAAW,sBCFlB,OAAOC,MAAmB,8BAC1B,OAAOD,MAAW,sBAClB,OAAS,UAAAE,MAAc,uBAEhB,IAAMC,EAASD,EAAOF,CAAK,EAAE,CAAC,CAAE,MAAAI,CAAM,KAAO,CAClD,WAAY,SACZ,aAAc,aAAaA,EAAM,QAAQ,KAAK,GAAG,IACjD,QAAS,YACT,IAAK,EACP,EAAE,EAEWC,EAAcH,EAAOF,CAAK,EAAE,CAAC,CAAE,MAAAI,CAAM,KAAO,CACvD,cAAe,MACf,WAAY,SACZ,IAAK,EACL,KAAM,EACN,SAAUA,EAAM,WAAW,UAAU,SACrC,WAAYA,EAAM,WAAW,UAAU,WACvC,WAAYA,EAAM,WAAW,UAC/B,EAAE,EAEWE,EAAUJ,EAAOD,CAAa,EAAE,CAAC,CAAE,MAAAG,CAAM,KAAO,CAC3D,UAAW,aAAaA,EAAM,QAAQ,UACtC,gBAAiBA,EAAM,QAAQ,WAAW,KAC5C,EAAE,ECdE,cAAAG,MAAA,oBALJ,IAAMD,EAAU,CAAC,CACf,SAAAE,EACA,aAAAC,CACF,IAEIF,EAACD,EAAA,CAAY,cAAY,iBAAkB,GAAGG,EAC3C,SAAAD,EACH,EAIGE,EAAQJ,EFkBT,OAOI,OAAAC,EAPJ,QAAAI,MAAA,oBAvBN,IAAMC,EAAS,CAAC,CACd,YAAAC,EACA,YAAAC,EACA,QAAAC,EACA,SAAAP,EACA,aAAAQ,EACA,SAAAC,EAAW,IACX,QAAAC,EACA,aAAAT,EACA,GAAAU,EACA,GAAGC,CACL,IAAmB,CACjB,IAAMC,EAAiBF,GAAM,UAC7B,OACER,EAACb,EAAA,CACC,OAAO,QACP,GAAIqB,EACJ,WAAY,CACV,GAAI,CAAE,MAAO,EAAG,SAAUF,CAAS,CACrC,EACA,QAASF,EACR,GAAGK,EAEJ,UAAAT,EAACR,EAAA,CAAO,UAAU,MAAO,GAAGW,EAC1B,UAAAP,EAACR,EAAA,CACC,aAAW,wBACX,cAAY,mBACZ,KAAK,QACL,QAASgB,EAET,SAAAR,EAACe,EAAA,CAAK,KAAK,oBAAoB,MAAO,GAAI,EAC5C,EAEAf,EAACF,EAAA,CAAa,SAAAQ,EAAY,GAC5B,EACAN,EAACgB,EAAA,CACC,SAAAhB,EAACP,EAAA,CAAM,EAAG,EAAI,GAAGgB,EACd,SAAAR,EACH,EACF,EAECU,GACCX,EAACG,EAAA,CAAQ,aAAc,CAAE,GAAGD,EAAc,GAAIY,CAAe,EAC1D,SAAAH,EACH,GAEJ,CAEJ,EAEOM,EAAQZ","sourcesContent":["import MuiDrawer from '@mui/material/Drawer';\nimport IconButton from '@mui/material/IconButton';\nimport Stack from '@mui/material/Stack';\n\nimport Icon from '../Icon';\nimport Scrollbar from '../Scrollbar';\n\nimport Actions from './Actions';\nimport { DrawerProps } from './props';\nimport { Header, HeaderTitle } from './styles';\n\nconst Drawer = ({\n headerTitle,\n headerProps,\n onClose,\n children,\n contentProps,\n maxWidth = 684,\n actions,\n actionsProps,\n id,\n ...other\n}: DrawerProps) => {\n const DRAWER_ACTIONS = id || '' + 'actions';\n return (\n <MuiDrawer\n anchor=\"right\"\n id={id}\n PaperProps={{\n sx: { width: 1, maxWidth: maxWidth },\n }}\n onClose={onClose}\n {...other}\n >\n <Header direction=\"row\" {...headerProps}>\n <IconButton\n aria-label=\"Fechar gaveta lateral\"\n data-testid=\"close-drawer-btn\"\n size=\"small\"\n onClick={onClose}\n >\n <Icon icon=\"CLOSE_MARK_BUTTON\" width={18} />\n </IconButton>\n\n <HeaderTitle>{headerTitle}</HeaderTitle>\n </Header>\n <Scrollbar>\n <Stack p={3} {...contentProps}>\n {children}\n </Stack>\n </Scrollbar>\n\n {actions && (\n <Actions actionsProps={{ ...actionsProps, id: DRAWER_ACTIONS }}>\n {actions}\n </Actions>\n )}\n </MuiDrawer>\n );\n};\n\nexport default Drawer;\n","import DialogActions from '@mui/material/DialogActions';\nimport Stack from '@mui/material/Stack';\nimport { styled } from '@mui/material/styles';\n\nexport const Header = styled(Stack)(({ theme }) => ({\n alignItems: 'center',\n borderBottom: `1px solid ${theme.palette.grey[300]}`,\n padding: '22px 20px',\n gap: 16,\n}));\n\nexport const HeaderTitle = styled(Stack)(({ theme }) => ({\n flexDirection: 'row',\n alignItems: 'center',\n gap: 8,\n flex: 1,\n fontSize: theme.typography.subtitle1.fontSize,\n fontWeight: theme.typography.subtitle1.fontWeight,\n fontFamily: theme.typography.fontFamily,\n}));\n\nexport const Actions = styled(DialogActions)(({ theme }) => ({\n borderTop: `1px solid ${theme.palette.divider}`,\n backgroundColor: theme.palette.background.paper,\n}));\n","import { PropsWithChildren } from 'react';\n\nimport { DrawerActionsProps } from './props';\nimport { Actions as ActionsElem } from './styles';\n\nconst Actions = ({\n children,\n actionsProps,\n}: PropsWithChildren<DrawerActionsProps>) => {\n return (\n <ActionsElem data-testid=\"drawer-actions\" {...actionsProps}>\n {children}\n </ActionsElem>\n );\n};\n\nexport default Actions;\n"]}
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
- export { a as FilterOperator, b as SortType } from '../../chunk-M62EJMQ6.js';
2
1
  import '../../chunk-4P2L7UJA.js';
2
+ export { a as FilterOperator, b as SortType } from '../../chunk-M62EJMQ6.js';
3
3
  import { a as a$3 } from '../../chunk-WLRSUL67.js';
4
4
  import { d, c } from '../../chunk-N7IK5EUP.js';
5
5
  import { h, a as a$5 } from '../../chunk-OF6623HG.js';
@@ -1,9 +1,5 @@
1
- import { a } from '../../chunk-5J35UAV6.js';
2
- import { a as a$1 } from '../../chunk-2GTD4JW2.js';
1
+ export { a as default } from '../../chunk-J5XGGHQ7.js';
2
+ import '../../chunk-5J35UAV6.js';
3
+ import '../../chunk-2GTD4JW2.js';
3
4
  import '../../chunk-PBLSVXV5.js';
4
- import { jsx } from 'react/jsx-runtime';
5
-
6
- var f=({text:i,icon:l="INFO_CIRCLE",width:p,color:c="text.secondary",...e})=>jsx(a,{title:i,...e,children:jsx(a$1,{icon:l,width:p,color:c})}),m=f;
7
-
8
- export { m as default };
9
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/InfoCircle/index.tsx"],"names":["jsx","InfoCircle","text","icon","width","color","props","Tooltip_default","Icon_default","InfoCircle_default"],"mappings":"wHAcM,cAAAA,MAAA,oBATN,IAAMC,EAAa,CAAC,CAClB,KAAAC,EACA,KAAAC,EAAO,cACP,MAAAC,EACA,MAAAC,EAAQ,iBACR,GAAGC,CACL,IAEIN,EAACO,EAAA,CAAQ,MAAOL,EAAO,GAAGI,EACxB,SAAAN,EAACQ,EAAA,CAAK,KAAML,EAAM,MAAOC,EAAO,MAAOC,EAAO,EAChD,EAIGI,EAAQR","sourcesContent":["import Icon from 'components/Icon';\nimport Tooltip from 'components/Tooltip';\n\nimport { InfoCircleProps } from './props';\n\nconst InfoCircle = ({\n text,\n icon = 'INFO_CIRCLE',\n width,\n color = 'text.secondary',\n ...props\n}: InfoCircleProps) => {\n return (\n <Tooltip title={text} {...props}>\n <Icon icon={icon} width={width} color={color} />\n </Tooltip>\n );\n};\n\nexport default InfoCircle;\n"]}
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -1,8 +1,2 @@
1
- import a from '@mui/material/Stack';
2
- import { styled } from '@mui/material/styles';
3
- import { jsx } from 'react/jsx-runtime';
4
-
5
- var o=styled(a)(({theme:r})=>({backgroundColor:r.palette.background.paper,border:`1px solid ${r.palette.divider}`,borderRadius:12}));var d=({children:r,...p})=>jsx(o,{borderRadius:2,gap:1.25,p:3,...p,children:r}),m=d;
6
-
7
- export { m as default };
1
+ export { a as default } from '../../chunk-DRGARBKB.js';
8
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/SimpleCard/styles.ts","../../../src/components/SimpleCard/index.tsx"],"names":["Stack","styled","Card","theme","jsx","SimpleCard","children","props","SimpleCard_default"],"mappings":"AAAA,OAAOA,MAA2B,sBAClC,OAAS,UAAAC,MAAc,uBAEhB,IAAMC,EAAOD,EAAOD,CAAK,EAAc,CAAC,CAAE,MAAAG,CAAM,KAAO,CAC5D,gBAAiBA,EAAM,QAAQ,WAAW,MAC1C,OAAQ,aAAaA,EAAM,QAAQ,UACnC,aAAc,EAChB,EAAE,ECDE,cAAAC,MAAA,oBAFJ,IAAMC,EAAa,CAAC,CAAE,SAAAC,EAAU,GAAGC,CAAM,IAErCH,EAACF,EAAA,CAAK,aAAc,EAAG,IAAK,KAAM,EAAG,EAAI,GAAGK,EACzC,SAAAD,EACH,EAIGE,EAAQH","sourcesContent":["import Stack, { StackProps } from '@mui/material/Stack';\nimport { styled } from '@mui/material/styles';\n\nexport const Card = styled(Stack)<StackProps>(({ theme }) => ({\n backgroundColor: theme.palette.background.paper,\n border: `1px solid ${theme.palette.divider}`,\n borderRadius: 12,\n}));\n","import { StackProps } from '@mui/material/Stack';\n\nimport { Card } from './styles';\n\nconst SimpleCard = ({ children, ...props }: StackProps) => {\n return (\n <Card borderRadius={2} gap={1.25} p={3} {...props}>\n {children}\n </Card>\n );\n};\n\nexport default SimpleCard;\n"]}
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -1,13 +1,13 @@
1
1
  export { a as default } from '../../chunk-UJMWTYPH.js';
2
2
  import '../../chunk-U4I7JPER.js';
3
- import '../../chunk-NWT5TUJO.js';
3
+ import '../../chunk-JM3SE72J.js';
4
4
  import '../../chunk-373WGZZL.js';
5
+ import '../../chunk-WUFEPE2G.js';
5
6
  import '../../chunk-BX2DSNRV.js';
6
7
  import '../../chunk-X4F3O7PX.js';
7
8
  import '../../chunk-Q2AVS24Z.js';
8
9
  import '../../chunk-LNESYSHP.js';
9
10
  import '../../chunk-YPL4KIKN.js';
10
11
  import '../../chunk-HBOBTNB5.js';
11
- import '../../chunk-WUFEPE2G.js';
12
12
  import '../../chunk-GLRLKFPS.js';
13
13
  //# sourceMappingURL=index.js.map
@@ -1,9 +1,2 @@
1
- import { useFormContext, Controller } from 'react-hook-form';
2
- import { DateField } from '@mui/x-date-pickers-pro';
3
- import c from 'dayjs';
4
- import { jsx } from 'react/jsx-runtime';
5
-
6
- var g=({name:t,rules:s,tabIndex:i,helperText:p,required:u,...e})=>{let{control:d}=useFormContext();return jsx(Controller,{name:t,control:d,rules:s,render:({field:{ref:f,onChange:m,...o},fieldState:{error:l}})=>jsx(DateField,{inputRef:f,format:"DD/MM/YYYY",...o,"data-intercom-target":t,...e,value:o.value?c(o.value):null,onChange:r=>{let a=r?r.toDate():null;m(a),e.onChange&&e.onChange(a);},slotProps:{textField:{...e.slotProps?.textField,name:t,required:u,error:!!l,helperText:l?.message||p,autoComplete:"off",spellCheck:"false",fullWidth:!0,inputProps:{tabIndex:i}}}})})},h=g;
7
-
8
- export { h as default };
1
+ export { a as default } from '../../../chunk-J7RPKCIN.js';
9
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/form/DateField/index.tsx"],"names":["Controller","useFormContext","MuiDateField","dayjs","jsx","DateField","name","rules","tabIndex","helperText","required","other","control","ref","onChange","field","error","v","newValue","DateField_default"],"mappings":"AAAA,OAAS,cAAAA,EAAY,kBAAAC,MAAsB,kBAC3C,OAAS,aAAaC,MAAoB,0BAC1C,OAAOC,MAAW,QAuBV,cAAAC,MAAA,oBAnBR,IAAMC,EAAY,CAAC,CACjB,KAAAC,EACA,MAAAC,EACA,SAAAC,EACA,WAAAC,EACA,SAAAC,EACA,GAAGC,CACL,IAAsB,CACpB,GAAM,CAAE,QAAAC,CAAQ,EAAIX,EAAe,EAEnC,OACEG,EAACJ,EAAA,CACC,KAAMM,EACN,QAASM,EACT,MAAOL,EACP,OAAQ,CAAC,CACP,MAAO,CAAE,IAAAM,EAAK,SAAAC,EAAU,GAAGC,CAAM,EACjC,WAAY,CAAE,MAAAC,CAAM,CACtB,IACEZ,EAACF,EAAA,CACC,SAAUW,EACV,OAAO,aACN,GAAGE,EACJ,uBAAsBT,EACrB,GAAGK,EACJ,MAAOI,EAAM,MAAQZ,EAAMY,EAAM,KAAK,EAAI,KAC1C,SAAUE,GAAK,CACb,IAAMC,EAAWD,EAAIA,EAAE,OAAO,EAAI,KAClCH,EAASI,CAAQ,EACjBP,EAAM,UAAYA,EAAM,SAASO,CAAQ,CAC3C,EACA,UAAW,CACT,UAAW,CACT,GAAGP,EAAM,WAAW,UACpB,KAAAL,EACA,SAAAI,EACA,MAAO,CAAC,CAACM,EACT,WAAYA,GAAO,SAAWP,EAC9B,aAAc,MACd,WAAY,QACZ,UAAW,GACX,WAAY,CACV,SAAAD,CACF,CACF,CACF,EACF,EAEJ,CAEJ,EAEOW,EAAQd","sourcesContent":["import { Controller, useFormContext } from 'react-hook-form';\nimport { DateField as MuiDateField } from '@mui/x-date-pickers-pro';\nimport dayjs from 'dayjs';\n\nimport { DateFieldProps } from 'types/dateFieldProps';\n\nconst DateField = ({\n name,\n rules,\n tabIndex,\n helperText,\n required,\n ...other\n}: DateFieldProps) => {\n const { control } = useFormContext();\n\n return (\n <Controller\n name={name}\n control={control}\n rules={rules}\n render={({\n field: { ref, onChange, ...field },\n fieldState: { error },\n }) => (\n <MuiDateField\n inputRef={ref}\n format=\"DD/MM/YYYY\"\n {...field}\n data-intercom-target={name}\n {...other}\n value={field.value ? dayjs(field.value) : null}\n onChange={v => {\n const newValue = v ? v.toDate() : null;\n onChange(newValue);\n other.onChange && other.onChange(newValue);\n }}\n slotProps={{\n textField: {\n ...other.slotProps?.textField,\n name,\n required,\n error: !!error,\n helperText: error?.message || helperText,\n autoComplete: 'off',\n spellCheck: 'false',\n fullWidth: true,\n inputProps: {\n tabIndex,\n },\n },\n }}\n />\n )}\n />\n );\n};\n\nexport default DateField;\n"]}
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -1,8 +1,2 @@
1
- import { FormProvider } from 'react-hook-form';
2
- import e from '@mui/material/Stack';
3
- import { jsx } from 'react/jsx-runtime';
4
-
5
- var f=({id:r,children:m,onSubmit:t,methods:i,...p})=>jsx(FormProvider,{...i,children:jsx(e,{component:"form",id:r,onSubmit:t,flex:1,width:1,noValidate:!0,...p,children:m})}),h=f;
6
-
7
- export { h as default };
1
+ export { a as default } from '../../../chunk-XAPSXJZO.js';
8
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/form/Form/index.tsx"],"names":["FormProvider","Stack","jsx","Form","id","children","onSubmit","methods","other","Form_default"],"mappings":"AACA,OAAS,gBAAAA,MAAoB,kBAC7B,OAAOC,MAAW,sBAaZ,cAAAC,MAAA,oBATN,IAAMC,EAAO,CAAC,CACZ,GAAAC,EACA,SAAAC,EACA,SAAAC,EACA,QAAAC,EACA,GAAGC,CACL,IAEIN,EAACF,EAAA,CAAc,GAAGO,EAChB,SAAAL,EAACD,EAAA,CACC,UAAU,OACV,GAAIG,EACJ,SAAUE,EACV,KAAM,EACN,MAAO,EACP,WAAU,GACT,GAAGE,EAEH,SAAAH,EACH,EACF,EAIGI,EAAQN","sourcesContent":["import { PropsWithChildren } from 'react';\nimport { FormProvider } from 'react-hook-form';\nimport Stack from '@mui/material/Stack';\n\nimport { FormProps } from './props';\n\nconst Form = ({\n id,\n children,\n onSubmit,\n methods,\n ...other\n}: PropsWithChildren<FormProps>) => {\n return (\n <FormProvider {...methods}>\n <Stack\n component=\"form\"\n id={id}\n onSubmit={onSubmit}\n flex={1}\n width={1}\n noValidate\n {...other}\n >\n {children}\n </Stack>\n </FormProvider>\n );\n};\n\nexport default Form;\n"]}
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -1,7 +1,2 @@
1
- import { useState } from 'react';
2
- import { useGridApiRef } from '@mui/x-data-grid-premium';
3
-
4
- var R=({page:c,perPage:g,dir:o,search:p,searchValue:u,sort:d}={page:0,perPage:25})=>{let t=useGridApiRef(),[s,r]=useState({page:c,perPage:g,dir:o,search:p,searchValue:u,sort:d}),i=({pageSize:e=25,page:a=0})=>{r(n=>({...n,page:a,perPage:e}));},l=e=>r(a=>({...a,page:0,search:e})),f=e=>r(a=>({...a,searchValue:e})),h=()=>r(e=>({...e,page:0,search:e.searchValue})),m=(e,a)=>r(n=>({...n,sort:e,dir:a})),P=()=>{t.current&&t.current.setPage(0),i({page:0});};return {...s,apiRef:t,page:s.page||0,perPage:s.perPage||25,handlePaginationModelChange:i,handleSearch:l,handleSort:m,handleSearchValue:f,applySearchValue:h,goToPageFirstPage:P}},M=R;
5
-
6
- export { M as default };
1
+ export { a as default } from '../chunk-RMYYQLRJ.js';
7
2
  //# sourceMappingURL=useDatagrid.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/hooks/useDatagrid.ts"],"names":["useState","useGridApiRef","useDatagrid","page","perPage","dir","search","searchValue","sort","apiRef","state","setState","handlePaginationModelChange","pageSize","handleSearch","handleSearchValue","applySearchValue","handleSort","field","goToPageFirstPage","useDatagrid_default"],"mappings":"AAAA,OAA2B,YAAAA,MAAgB,QAC3C,OAAS,iBAAAC,MAAqB,2BAY9B,IAAMC,EAAc,CAClB,CAAE,KAAAC,EAAM,QAAAC,EAAS,IAAAC,EAAK,OAAAC,EAAQ,YAAAC,EAAa,KAAAC,CAAK,EAAW,CACzD,KAAM,EACN,QAAS,EACX,IACG,CACH,IAAMC,EAASR,EAAc,EACvB,CAACS,EAAOC,CAAQ,EAAIX,EAAgB,CACxC,KAAAG,EACA,QAAAC,EACA,IAAAC,EACA,OAAAC,EACA,YAAAC,EACA,KAAAC,CACF,CAAC,EAEKI,EAA8B,CAAC,CAAE,SAAAC,EAAW,GAAI,KAAAV,EAAO,CAAE,IAAM,CACnEQ,EAASD,IAAU,CAAE,GAAGA,EAAO,KAAAP,EAAM,QAASU,CAAS,EAAE,CAC3D,EAEMC,EAAgBR,GACpBK,EAASD,IAAU,CAAE,GAAGA,EAAO,KAAM,EAAG,OAAAJ,CAAO,EAAE,EAE7CS,EAAqBT,GACzBK,EAASD,IAAU,CAAE,GAAGA,EAAO,YAAaJ,CAAO,EAAE,EAEjDU,EAAmB,IACvBL,EAASD,IAAU,CAAE,GAAGA,EAAO,KAAM,EAAG,OAAQA,EAAM,WAAY,EAAE,EAEhEO,EAAa,CAACC,EAAgBb,IAClCM,EAASD,IAAU,CAAE,GAAGA,EAAO,KAAMQ,EAAO,IAAAb,CAAI,EAAE,EAE9Cc,EAAoB,IAAM,CAC1BV,EAAO,SAASA,EAAO,QAAQ,QAAQ,CAAC,EAC5CG,EAA4B,CAAE,KAAM,CAAE,CAAC,CACzC,EAEA,MAAO,CACL,GAAGF,EACH,OAAQD,EACR,KAAMC,EAAM,MAAQ,EACpB,QAASA,EAAM,SAAW,GAC1B,4BAAAE,EACA,aAAAE,EACA,WAAAG,EACA,kBAAAF,EACA,iBAAAC,EACA,kBAAAG,CACF,CACF,EAEOC,EAAQlB","sourcesContent":["import { MutableRefObject, useState } from 'react';\nimport { useGridApiRef } from '@mui/x-data-grid-premium';\nimport { GridApiPremium } from '@mui/x-data-grid-premium/models/gridApiPremium';\n\ninterface State {\n page?: number;\n perPage?: number;\n search?: string;\n searchValue?: string;\n sort?: string;\n dir?: 'asc' | 'desc';\n}\n\nconst useDatagrid = (\n { page, perPage, dir, search, searchValue, sort }: State = {\n page: 0,\n perPage: 25,\n },\n) => {\n const apiRef = useGridApiRef();\n const [state, setState] = useState<State>({\n page,\n perPage,\n dir,\n search,\n searchValue,\n sort,\n });\n\n const handlePaginationModelChange = ({ pageSize = 25, page = 0 }) => {\n setState(state => ({ ...state, page, perPage: pageSize }));\n };\n\n const handleSearch = (search: string | undefined) =>\n setState(state => ({ ...state, page: 0, search }));\n\n const handleSearchValue = (search: string | undefined) =>\n setState(state => ({ ...state, searchValue: search }));\n\n const applySearchValue = () =>\n setState(state => ({ ...state, page: 0, search: state.searchValue }));\n\n const handleSort = (field?: string, dir?: 'asc' | 'desc') =>\n setState(state => ({ ...state, sort: field, dir }));\n\n const goToPageFirstPage = () => {\n if (apiRef.current) apiRef.current.setPage(0);\n handlePaginationModelChange({ page: 0 });\n };\n\n return {\n ...state,\n apiRef: apiRef as MutableRefObject<GridApiPremium>,\n page: state.page || 0,\n perPage: state.perPage || 25,\n handlePaginationModelChange,\n handleSearch,\n handleSort,\n handleSearchValue,\n applySearchValue,\n goToPageFirstPage,\n };\n};\n\nexport default useDatagrid;\n"]}
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -12,6 +12,7 @@ declare const useSnackbar: () => {
12
12
  custom: (jsx: (id: string | number) => react.ReactElement<any, string | react.JSXElementConstructor<any>>, data?: ExternalToast | undefined) => string | number;
13
13
  message: (message: string | number | boolean | react.ReactElement<any, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | react.ReactPortal | (() => ReactNode) | null | undefined, data?: ExternalToast | undefined) => string | number;
14
14
  promise: <ToastData>(promise: Promise<ToastData> | (() => Promise<ToastData>), data?: ({
15
+ cancel?: ReactNode | sonner.Action;
15
16
  className?: string | undefined;
16
17
  style?: react.CSSProperties | undefined;
17
18
  position?: ("top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right") | undefined;
@@ -20,7 +21,6 @@ declare const useSnackbar: () => {
20
21
  icon?: ReactNode;
21
22
  duration?: number | undefined;
22
23
  onDismiss?: ((toast: sonner.ToastT) => void) | undefined;
23
- cancel?: ReactNode | sonner.Action;
24
24
  richColors?: boolean | undefined;
25
25
  invert?: boolean | undefined;
26
26
  closeButton?: boolean | undefined;
@@ -1,12 +1,12 @@
1
1
  export { a as useThemeToggle } from '../chunk-U4I7JPER.js';
2
- import '../chunk-NWT5TUJO.js';
2
+ import '../chunk-JM3SE72J.js';
3
3
  import '../chunk-373WGZZL.js';
4
+ import '../chunk-WUFEPE2G.js';
4
5
  import '../chunk-BX2DSNRV.js';
5
6
  import '../chunk-X4F3O7PX.js';
6
7
  import '../chunk-Q2AVS24Z.js';
7
8
  import '../chunk-LNESYSHP.js';
8
9
  import '../chunk-YPL4KIKN.js';
9
10
  import '../chunk-HBOBTNB5.js';
10
- import '../chunk-WUFEPE2G.js';
11
11
  import '../chunk-GLRLKFPS.js';
12
12
  //# sourceMappingURL=useThemeToggle.js.map
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
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';
1
+ import { C as CustomShadows } from './index-c8f1e6e7.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-c8f1e6e7.js';
3
3
  export { S as SettingsContextValue, _ as SettingsProvider, T as ThemeProviderProps, u as useSettingsContext } from './settings-provider-38d09283.js';
4
4
  export { THEME_CONFIG, default as ThemeProvider } from './theme/theme-provider.js';
5
5
  import { S as SettingsState } from './settings-583c107c.js';
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  export { a as useThemeToggle } from './chunk-U4I7JPER.js';
2
- export { b as ThemeProvider, a as createTheme } from './chunk-NWT5TUJO.js';
2
+ export { b as ThemeProvider, a as createTheme } from './chunk-JM3SE72J.js';
3
3
  import './chunk-373WGZZL.js';
4
+ import './chunk-WUFEPE2G.js';
4
5
  export { c as SettingsProvider, b as useSettingsContext } from './chunk-BX2DSNRV.js';
5
6
  export { b as defaultFont, c as primaryFont, d as secondaryFont, a as shadows, e as typography } from './chunk-X4F3O7PX.js';
6
7
  import './chunk-Q2AVS24Z.js';
7
8
  import './chunk-LNESYSHP.js';
8
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-YPL4KIKN.js';
9
10
  import './chunk-HBOBTNB5.js';
10
- import './chunk-WUFEPE2G.js';
11
11
  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-GLRLKFPS.js';
12
12
  //# sourceMappingURL=index.js.map
@@ -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-5a5e5dc8.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-c8f1e6e7.js';
2
2
  import '@mui/lab/TimelineConnector';
3
3
  import '@mui/system';
4
4
  import '@mui/lab/TimelineDot';
@@ -173,7 +173,7 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
173
173
  float?: csstype.Property.Float | readonly NonNullable<csstype.Property.Float | undefined>[] | readonly csstype.Property.Float[] | undefined;
174
174
  floodColor?: readonly string[] | csstype.Property.FloodColor | readonly csstype.Property.FloodColor[] | undefined;
175
175
  floodOpacity?: readonly ((string & {}) | csstype.Globals)[] | csstype.Property.FloodOpacity | readonly NonNullable<csstype.Property.FloodOpacity | undefined>[] | undefined;
176
- fontFamily?: csstype.Property.FontFamily | readonly string[] | readonly csstype.Property.FontFamily[] | undefined;
176
+ fontFamily?: readonly string[] | csstype.Property.FontFamily | readonly csstype.Property.FontFamily[] | undefined;
177
177
  fontFeatureSettings?: readonly string[] | csstype.Property.FontFeatureSettings | readonly csstype.Property.FontFeatureSettings[] | undefined;
178
178
  fontKerning?: csstype.Property.FontKerning | readonly NonNullable<csstype.Property.FontKerning | undefined>[] | readonly csstype.Property.FontKerning[] | undefined;
179
179
  fontLanguageOverride?: readonly string[] | csstype.Property.FontLanguageOverride | readonly csstype.Property.FontLanguageOverride[] | undefined;
@@ -197,7 +197,7 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
197
197
  fontVariantNumeric?: readonly string[] | csstype.Property.FontVariantNumeric | readonly csstype.Property.FontVariantNumeric[] | undefined;
198
198
  fontVariantPosition?: csstype.Property.FontVariantPosition | readonly NonNullable<csstype.Property.FontVariantPosition | undefined>[] | readonly csstype.Property.FontVariantPosition[] | undefined;
199
199
  fontVariationSettings?: readonly string[] | csstype.Property.FontVariationSettings | readonly csstype.Property.FontVariationSettings[] | undefined;
200
- fontWeight?: csstype.Property.FontWeight | readonly NonNullable<csstype.Property.FontWeight | undefined>[] | readonly ((string & {}) | csstype.Globals | "bold" | "normal" | "bolder" | "lighter")[] | undefined;
200
+ fontWeight?: csstype.Property.FontWeight | readonly NonNullable<csstype.Property.FontWeight | undefined>[] | readonly ("bold" | (string & {}) | csstype.Globals | "normal" | "bolder" | "lighter")[] | undefined;
201
201
  fontWidth?: readonly string[] | csstype.Property.FontWidth | readonly csstype.Property.FontWidth[] | undefined;
202
202
  forcedColorAdjust?: csstype.Property.ForcedColorAdjust | readonly NonNullable<csstype.Property.ForcedColorAdjust | undefined>[] | readonly csstype.Property.ForcedColorAdjust[] | undefined;
203
203
  gridAutoColumns?: readonly (string | (string & {}))[] | csstype.Property.GridAutoColumns<string | number> | readonly NonNullable<csstype.Property.GridAutoColumns<string | number> | undefined>[] | undefined;
@@ -460,9 +460,9 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
460
460
  x?: readonly (string | (string & {}))[] | csstype.Property.X<string | number> | readonly NonNullable<csstype.Property.X<string | number> | undefined>[] | undefined;
461
461
  y?: readonly (string | (string & {}))[] | csstype.Property.Y<string | number> | readonly NonNullable<csstype.Property.Y<string | number> | undefined>[] | undefined;
462
462
  zIndex?: readonly ((string & {}) | csstype.Globals | "auto")[] | csstype.Property.ZIndex | readonly NonNullable<csstype.Property.ZIndex | undefined>[] | undefined;
463
- zoom?: csstype.Property.Zoom | readonly NonNullable<csstype.Property.Zoom | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "reset")[] | undefined;
463
+ zoom?: csstype.Property.Zoom | readonly NonNullable<csstype.Property.Zoom | undefined>[] | readonly ("reset" | (string & {}) | csstype.Globals | "normal")[] | undefined;
464
464
  all?: csstype.Globals | readonly NonNullable<csstype.Globals | undefined>[] | readonly csstype.Globals[] | undefined;
465
- animation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "reverse" | "none" | "auto" | "alternate" | "alternate-reverse" | "backwards" | "both" | "forwards" | "infinite" | "paused" | "running" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear")[] | undefined;
465
+ animation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ("reverse" | (string & {}) | csstype.Globals | "none" | "auto" | "normal" | "alternate" | "alternate-reverse" | "backwards" | "both" | "forwards" | "infinite" | "paused" | "running" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear")[] | undefined;
466
466
  animationRange?: readonly (string | (string & {}))[] | csstype.Property.AnimationRange<string | number> | readonly NonNullable<csstype.Property.AnimationRange<string | number> | undefined>[] | undefined;
467
467
  background?: readonly (string | (string & {}))[] | csstype.Property.Background<string | number> | readonly NonNullable<csstype.Property.Background<string | number> | undefined>[] | undefined;
468
468
  border?: readonly (string | (string & {}))[] | csstype.Property.Border<string | number> | readonly NonNullable<csstype.Property.Border<string | number> | undefined>[] | undefined;
@@ -474,7 +474,7 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
474
474
  borderBlockWidth?: readonly (string | (string & {}))[] | csstype.Property.BorderBlockWidth<string | number> | readonly NonNullable<csstype.Property.BorderBlockWidth<string | number> | undefined>[] | undefined;
475
475
  borderBottom?: readonly (string | (string & {}))[] | csstype.Property.BorderBottom<string | number> | readonly NonNullable<csstype.Property.BorderBottom<string | number> | undefined>[] | undefined;
476
476
  borderColor?: readonly string[] | csstype.Property.BorderColor | readonly csstype.Property.BorderColor[] | undefined;
477
- borderImage?: csstype.Property.BorderImage | readonly NonNullable<csstype.Property.BorderImage | undefined>[] | readonly ((string & {}) | csstype.Globals | "repeat" | "none" | "round" | "space" | "stretch")[] | undefined;
477
+ borderImage?: csstype.Property.BorderImage | readonly NonNullable<csstype.Property.BorderImage | undefined>[] | readonly ("repeat" | (string & {}) | csstype.Globals | "none" | "round" | "space" | "stretch")[] | undefined;
478
478
  borderInline?: readonly (string | (string & {}))[] | csstype.Property.BorderInline<string | number> | readonly NonNullable<csstype.Property.BorderInline<string | number> | undefined>[] | undefined;
479
479
  borderInlineColor?: readonly string[] | csstype.Property.BorderInlineColor | readonly csstype.Property.BorderInlineColor[] | undefined;
480
480
  borderInlineEnd?: readonly (string | (string & {}))[] | csstype.Property.BorderInlineEnd<string | number> | readonly NonNullable<csstype.Property.BorderInlineEnd<string | number> | undefined>[] | undefined;
@@ -509,7 +509,7 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
509
509
  marginBlock?: readonly (string | (string & {}))[] | csstype.Property.MarginBlock<string | number> | readonly NonNullable<csstype.Property.MarginBlock<string | number> | undefined>[] | undefined;
510
510
  marginInline?: readonly (string | (string & {}))[] | csstype.Property.MarginInline<string | number> | readonly NonNullable<csstype.Property.MarginInline<string | number> | undefined>[] | undefined;
511
511
  mask?: readonly (string | (string & {}))[] | csstype.Property.Mask<string | number> | readonly NonNullable<csstype.Property.Mask<string | number> | undefined>[] | undefined;
512
- maskBorder?: csstype.Property.MaskBorder | readonly NonNullable<csstype.Property.MaskBorder | undefined>[] | readonly ((string & {}) | csstype.Globals | "repeat" | "none" | "round" | "space" | "alpha" | "luminance" | "stretch")[] | undefined;
512
+ maskBorder?: csstype.Property.MaskBorder | readonly NonNullable<csstype.Property.MaskBorder | undefined>[] | readonly ("repeat" | (string & {}) | csstype.Globals | "none" | "round" | "space" | "alpha" | "luminance" | "stretch")[] | undefined;
513
513
  motion?: readonly (string | (string & {}))[] | csstype.Property.Offset<string | number> | readonly NonNullable<csstype.Property.Offset<string | number> | undefined>[] | undefined;
514
514
  offset?: readonly (string | (string & {}))[] | csstype.Property.Offset<string | number> | readonly NonNullable<csstype.Property.Offset<string | number> | undefined>[] | undefined;
515
515
  outline?: readonly (string | (string & {}))[] | csstype.Property.Outline<string | number> | readonly NonNullable<csstype.Property.Outline<string | number> | undefined>[] | undefined;
@@ -758,8 +758,8 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
758
758
  WebkitUserModify?: csstype.Property.WebkitUserModify | readonly NonNullable<csstype.Property.WebkitUserModify | undefined>[] | readonly csstype.Property.WebkitUserModify[] | undefined;
759
759
  WebkitUserSelect?: csstype.Property.WebkitUserSelect | readonly NonNullable<csstype.Property.WebkitUserSelect | undefined>[] | readonly csstype.Property.WebkitUserSelect[] | undefined;
760
760
  WebkitWritingMode?: csstype.Property.WritingMode | readonly NonNullable<csstype.Property.WritingMode | undefined>[] | readonly csstype.Property.WritingMode[] | undefined;
761
- MozAnimation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "reverse" | "none" | "auto" | "alternate" | "alternate-reverse" | "backwards" | "both" | "forwards" | "infinite" | "paused" | "running" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear")[] | undefined;
762
- MozBorderImage?: csstype.Property.BorderImage | readonly NonNullable<csstype.Property.BorderImage | undefined>[] | readonly ((string & {}) | csstype.Globals | "repeat" | "none" | "round" | "space" | "stretch")[] | undefined;
761
+ MozAnimation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ("reverse" | (string & {}) | csstype.Globals | "none" | "auto" | "normal" | "alternate" | "alternate-reverse" | "backwards" | "both" | "forwards" | "infinite" | "paused" | "running" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear")[] | undefined;
762
+ MozBorderImage?: csstype.Property.BorderImage | readonly NonNullable<csstype.Property.BorderImage | undefined>[] | readonly ("repeat" | (string & {}) | csstype.Globals | "none" | "round" | "space" | "stretch")[] | undefined;
763
763
  MozColumnRule?: readonly (string | (string & {}))[] | csstype.Property.ColumnRule<string | number> | readonly NonNullable<csstype.Property.ColumnRule<string | number> | undefined>[] | undefined;
764
764
  MozColumns?: readonly (string | (string & {}))[] | csstype.Property.Columns<string | number> | readonly NonNullable<csstype.Property.Columns<string | number> | undefined>[] | undefined;
765
765
  MozOutlineRadius?: readonly (string | (string & {}))[] | csstype.Property.MozOutlineRadius<string | number> | readonly NonNullable<csstype.Property.MozOutlineRadius<string | number> | undefined>[] | undefined;
@@ -771,16 +771,16 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
771
771
  msScrollSnapX?: readonly string[] | csstype.Property.MsScrollSnapX | readonly csstype.Property.MsScrollSnapX[] | undefined;
772
772
  msScrollSnapY?: readonly string[] | csstype.Property.MsScrollSnapY | readonly csstype.Property.MsScrollSnapY[] | undefined;
773
773
  msTransition?: readonly string[] | csstype.Property.Transition<string & {}> | readonly csstype.Property.Transition<string & {}>[] | undefined;
774
- WebkitAnimation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "reverse" | "none" | "auto" | "alternate" | "alternate-reverse" | "backwards" | "both" | "forwards" | "infinite" | "paused" | "running" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear")[] | undefined;
774
+ WebkitAnimation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ("reverse" | (string & {}) | csstype.Globals | "none" | "auto" | "normal" | "alternate" | "alternate-reverse" | "backwards" | "both" | "forwards" | "infinite" | "paused" | "running" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear")[] | undefined;
775
775
  WebkitBorderBefore?: readonly (string | (string & {}))[] | csstype.Property.WebkitBorderBefore<string | number> | readonly NonNullable<csstype.Property.WebkitBorderBefore<string | number> | undefined>[] | undefined;
776
- WebkitBorderImage?: csstype.Property.BorderImage | readonly NonNullable<csstype.Property.BorderImage | undefined>[] | readonly ((string & {}) | csstype.Globals | "repeat" | "none" | "round" | "space" | "stretch")[] | undefined;
776
+ WebkitBorderImage?: csstype.Property.BorderImage | readonly NonNullable<csstype.Property.BorderImage | undefined>[] | readonly ("repeat" | (string & {}) | csstype.Globals | "none" | "round" | "space" | "stretch")[] | undefined;
777
777
  WebkitBorderRadius?: readonly (string | (string & {}))[] | csstype.Property.BorderRadius<string | number> | readonly NonNullable<csstype.Property.BorderRadius<string | number> | undefined>[] | undefined;
778
778
  WebkitColumnRule?: readonly (string | (string & {}))[] | csstype.Property.ColumnRule<string | number> | readonly NonNullable<csstype.Property.ColumnRule<string | number> | undefined>[] | undefined;
779
779
  WebkitColumns?: readonly (string | (string & {}))[] | csstype.Property.Columns<string | number> | readonly NonNullable<csstype.Property.Columns<string | number> | undefined>[] | undefined;
780
780
  WebkitFlex?: readonly (string | (string & {}))[] | csstype.Property.Flex<string | number> | readonly NonNullable<csstype.Property.Flex<string | number> | undefined>[] | undefined;
781
781
  WebkitFlexFlow?: readonly string[] | csstype.Property.FlexFlow | readonly csstype.Property.FlexFlow[] | undefined;
782
782
  WebkitMask?: readonly (string | (string & {}))[] | csstype.Property.WebkitMask<string | number> | readonly NonNullable<csstype.Property.WebkitMask<string | number> | undefined>[] | undefined;
783
- WebkitMaskBoxImage?: csstype.Property.MaskBorder | readonly NonNullable<csstype.Property.MaskBorder | undefined>[] | readonly ((string & {}) | csstype.Globals | "repeat" | "none" | "round" | "space" | "alpha" | "luminance" | "stretch")[] | undefined;
783
+ WebkitMaskBoxImage?: csstype.Property.MaskBorder | readonly NonNullable<csstype.Property.MaskBorder | undefined>[] | readonly ("repeat" | (string & {}) | csstype.Globals | "none" | "round" | "space" | "alpha" | "luminance" | "stretch")[] | undefined;
784
784
  WebkitTextEmphasis?: readonly string[] | csstype.Property.TextEmphasis | readonly csstype.Property.TextEmphasis[] | undefined;
785
785
  WebkitTextStroke?: readonly (string | (string & {}))[] | csstype.Property.WebkitTextStroke<string | number> | readonly NonNullable<csstype.Property.WebkitTextStroke<string | number> | undefined>[] | undefined;
786
786
  WebkitTransition?: readonly string[] | csstype.Property.Transition<string & {}> | readonly csstype.Property.Transition<string & {}>[] | undefined;
@@ -861,7 +861,7 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
861
861
  MozUserFocus?: csstype.Property.MozUserFocus | readonly NonNullable<csstype.Property.MozUserFocus | undefined>[] | readonly csstype.Property.MozUserFocus[] | undefined;
862
862
  MozUserInput?: csstype.Property.MozUserInput | readonly NonNullable<csstype.Property.MozUserInput | undefined>[] | readonly csstype.Property.MozUserInput[] | undefined;
863
863
  msImeMode?: csstype.Property.ImeMode | readonly NonNullable<csstype.Property.ImeMode | undefined>[] | readonly csstype.Property.ImeMode[] | undefined;
864
- OAnimation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ((string & {}) | csstype.Globals | "normal" | "reverse" | "none" | "auto" | "alternate" | "alternate-reverse" | "backwards" | "both" | "forwards" | "infinite" | "paused" | "running" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear")[] | undefined;
864
+ OAnimation?: csstype.Property.Animation<string & {}> | readonly NonNullable<csstype.Property.Animation<string & {}> | undefined>[] | readonly ("reverse" | (string & {}) | csstype.Globals | "none" | "auto" | "normal" | "alternate" | "alternate-reverse" | "backwards" | "both" | "forwards" | "infinite" | "paused" | "running" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "step-end" | "step-start" | "linear")[] | undefined;
865
865
  OAnimationDelay?: readonly string[] | csstype.Property.AnimationDelay<string & {}> | readonly csstype.Property.AnimationDelay<string & {}>[] | undefined;
866
866
  OAnimationDirection?: readonly string[] | csstype.Property.AnimationDirection | readonly csstype.Property.AnimationDirection[] | undefined;
867
867
  OAnimationDuration?: readonly string[] | csstype.Property.AnimationDuration<string & {}> | readonly csstype.Property.AnimationDuration<string & {}>[] | undefined;
@@ -871,7 +871,7 @@ declare function paper({ theme, color, dropdown }: PaperProps): {
871
871
  OAnimationPlayState?: readonly string[] | csstype.Property.AnimationPlayState | readonly csstype.Property.AnimationPlayState[] | undefined;
872
872
  OAnimationTimingFunction?: readonly string[] | csstype.Property.AnimationTimingFunction | readonly csstype.Property.AnimationTimingFunction[] | undefined;
873
873
  OBackgroundSize?: readonly (string | (string & {}))[] | csstype.Property.BackgroundSize<string | number> | readonly NonNullable<csstype.Property.BackgroundSize<string | number> | undefined>[] | undefined;
874
- OBorderImage?: csstype.Property.BorderImage | readonly NonNullable<csstype.Property.BorderImage | undefined>[] | readonly ((string & {}) | csstype.Globals | "repeat" | "none" | "round" | "space" | "stretch")[] | undefined;
874
+ OBorderImage?: csstype.Property.BorderImage | readonly NonNullable<csstype.Property.BorderImage | undefined>[] | readonly ("repeat" | (string & {}) | csstype.Globals | "none" | "round" | "space" | "stretch")[] | undefined;
875
875
  OObjectFit?: csstype.Property.ObjectFit | readonly NonNullable<csstype.Property.ObjectFit | undefined>[] | readonly csstype.Property.ObjectFit[] | undefined;
876
876
  OObjectPosition?: readonly (string | (string & {}))[] | csstype.Property.ObjectPosition<string | number> | readonly NonNullable<csstype.Property.ObjectPosition<string | number> | undefined>[] | undefined;
877
877
  OTabSize?: readonly (string | (string & {}))[] | csstype.Property.TabSize<string | number> | readonly NonNullable<csstype.Property.TabSize<string | number> | undefined>[] | undefined;
@@ -1,11 +1,11 @@
1
- export { b as default } from '../chunk-NWT5TUJO.js';
1
+ export { b as default } from '../chunk-JM3SE72J.js';
2
2
  import '../chunk-373WGZZL.js';
3
+ import '../chunk-WUFEPE2G.js';
3
4
  export { b as useSettingsContext } from '../chunk-BX2DSNRV.js';
4
5
  import '../chunk-X4F3O7PX.js';
5
6
  import '../chunk-Q2AVS24Z.js';
6
7
  import '../chunk-LNESYSHP.js';
7
8
  import '../chunk-YPL4KIKN.js';
8
9
  import '../chunk-HBOBTNB5.js';
9
- import '../chunk-WUFEPE2G.js';
10
10
  export { a as THEME_CONFIG } from '../chunk-GLRLKFPS.js';
11
11
  //# sourceMappingURL=theme-provider.js.map
@@ -0,0 +1,29 @@
1
+ declare enum ViewMode {
2
+ MONTHLY = "MONTHLY",
3
+ DAILY = "DAILY"
4
+ }
5
+ declare const VIEW_MODE_LABELS: Record<ViewMode, string>;
6
+ declare enum ExportFormat {
7
+ XLSX = "XLSX",
8
+ PDF = "PDF"
9
+ }
10
+ declare enum FilterPeriod {
11
+ TODAY = "TODAY",
12
+ YESTERDAY = "YESTERDAY",
13
+ LAST_7_DAYS = "LAST_7_DAYS",
14
+ LAST_28_DAYS = "LAST_28_DAYS",
15
+ LAST_90_DAYS = "LAST_90_DAYS",
16
+ LAST_WEEK = "LAST_WEEK",
17
+ LAST_MONTH = "LAST_MONTH",
18
+ THIS_MONTH = "THIS_MONTH",
19
+ THIS_YEAR = "THIS_YEAR",
20
+ OTHER = "OTHER"
21
+ }
22
+ declare const FILTER_PERIOD_LABELS: Record<FilterPeriod, string>;
23
+ interface FilterDateState {
24
+ period: FilterPeriod;
25
+ start_date: string;
26
+ end_date: string;
27
+ }
28
+
29
+ export { ExportFormat, FILTER_PERIOD_LABELS, FilterDateState, FilterPeriod, VIEW_MODE_LABELS, ViewMode };
@@ -0,0 +1,2 @@
1
+ export { c as ExportFormat, e as FILTER_PERIOD_LABELS, d as FilterPeriod, b as VIEW_MODE_LABELS, a as ViewMode } from '../chunk-ANEPP6QT.js';
2
+ //# sourceMappingURL=analytics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}