@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.
- package/dist/chunk-ANEPP6QT.js +4 -0
- package/dist/chunk-ANEPP6QT.js.map +1 -0
- package/dist/chunk-BHYLHO5P.js +4 -0
- package/dist/chunk-BHYLHO5P.js.map +1 -0
- package/dist/chunk-CBW32OUQ.js +13 -0
- package/dist/chunk-CBW32OUQ.js.map +1 -0
- package/dist/chunk-DRGARBKB.js +8 -0
- package/dist/chunk-DRGARBKB.js.map +1 -0
- package/dist/chunk-FYG3YWFZ.js +4 -0
- package/dist/chunk-FYG3YWFZ.js.map +1 -0
- package/dist/chunk-J5XGGHQ7.js +8 -0
- package/dist/chunk-J5XGGHQ7.js.map +1 -0
- package/dist/chunk-J7RPKCIN.js +9 -0
- package/dist/chunk-J7RPKCIN.js.map +1 -0
- package/dist/{chunk-NWT5TUJO.js → chunk-JM3SE72J.js} +2 -2
- package/dist/chunk-RMYYQLRJ.js +7 -0
- package/dist/chunk-RMYYQLRJ.js.map +1 -0
- package/dist/chunk-SP5U3DJP.js +7 -0
- package/dist/chunk-SP5U3DJP.js.map +1 -0
- package/dist/chunk-VGTQYKAC.js +8 -0
- package/dist/chunk-VGTQYKAC.js.map +1 -0
- package/dist/chunk-XAPSXJZO.js +8 -0
- package/dist/chunk-XAPSXJZO.js.map +1 -0
- package/dist/chunk-XL6SZZGI.js +6 -0
- package/dist/chunk-XL6SZZGI.js.map +1 -0
- package/dist/chunk-XQZPUMVQ.js +14 -0
- package/dist/chunk-XQZPUMVQ.js.map +1 -0
- package/dist/components/Analytics/OverviewAnalytics/index.d.ts +54 -0
- package/dist/components/Analytics/OverviewAnalytics/index.js +47 -0
- package/dist/components/Analytics/OverviewAnalytics/index.js.map +1 -0
- package/dist/components/Analytics/PartnerAnalysis/index.d.ts +122 -0
- package/dist/components/Analytics/PartnerAnalysis/index.js +28 -0
- package/dist/components/Analytics/PartnerAnalysis/index.js.map +1 -0
- package/dist/components/Analytics/index.d.ts +117 -0
- package/dist/components/Analytics/index.js +47 -0
- package/dist/components/Analytics/index.js.map +1 -0
- package/dist/components/Avatar/index.d.ts +1 -1
- package/dist/components/AvatarButton/index.js +6 -6
- package/dist/components/AvatarButton/index.js.map +1 -1
- package/dist/components/Common/index.js +2 -2
- package/dist/components/DataView/index.d.ts +1 -1
- package/dist/components/DateRangeCalendar/index.js +1 -7
- package/dist/components/DateRangeCalendar/index.js.map +1 -1
- package/dist/components/Drawer/index.js +3 -12
- package/dist/components/Drawer/index.js.map +1 -1
- package/dist/components/DynamicDataView/index.js +1 -1
- package/dist/components/InfoCircle/index.js +3 -7
- package/dist/components/InfoCircle/index.js.map +1 -1
- package/dist/components/SimpleCard/index.js +1 -7
- package/dist/components/SimpleCard/index.js.map +1 -1
- package/dist/components/ToggleTheme/index.js +2 -2
- package/dist/components/form/DateField/index.js +1 -8
- package/dist/components/form/DateField/index.js.map +1 -1
- package/dist/components/form/Form/index.js +1 -7
- package/dist/components/form/Form/index.js.map +1 -1
- package/dist/hooks/useDatagrid.js +1 -6
- package/dist/hooks/useDatagrid.js.map +1 -1
- package/dist/hooks/useSnackbar.d.ts +1 -1
- package/dist/hooks/useThemeToggle.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/theme/core/index.d.ts +1 -1
- package/dist/theme/styles/index.d.ts +13 -13
- package/dist/theme/theme-provider.js +2 -2
- package/dist/types/analytics.d.ts +29 -0
- package/dist/types/analytics.js +2 -0
- package/dist/types/analytics.js.map +1 -0
- package/dist/types/overviewAnalytics.d.ts +88 -0
- package/dist/types/overviewAnalytics.js +2 -0
- package/dist/types/overviewAnalytics.js.map +1 -0
- package/dist/types/partnerAnalysis.d.ts +91 -0
- package/dist/types/partnerAnalysis.js +2 -0
- package/dist/types/partnerAnalysis.js.map +1 -0
- package/dist/utils/buildExportPayload.js +1 -1
- package/dist/utils/chart.d.ts +6 -0
- package/dist/utils/chart.js +2 -0
- package/dist/utils/chart.js.map +1 -0
- package/dist/utils/periodDates.d.ts +20 -0
- package/dist/utils/periodDates.js +3 -0
- package/dist/utils/periodDates.js.map +1 -0
- package/package.json +16 -2
- package/dist/{chunk-NWT5TUJO.js.map → chunk-JM3SE72J.js.map} +0 -0
- 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,IACP,UAAW,GAEX,sBAAuB,CACrB,MAAO,IACP,QAAS,EACT,gBAAiBA,EAAM,QAAQ,WAAW,MAC1C,aAAcA,EAAM,QAAQ,CAAC,EAC7B,gBAAiB,MACnB,CACF,EAAE,EAEWC,EAAsBL,EAAOL,CAAK,EAAE,CAAC,CAAE,MAAA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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,EAAOG,CAAiB,EAAE,CAAC,CAAE,MAAAC,CAAM,KAAO,CACnE,MAAO,IACP,UAAW,GAEX,sBAAuB,CACrB,MAAO,IACP,QAAS,EACT,gBAAiBA,EAAM,QAAQ,WAAW,MAC1C,aAAcA,EAAM,QAAQ,CAAC,EAC7B,gBAAiB,MAC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BACA,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-
|
|
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
|
-
}, "
|
|
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
|
-
|
|
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":[
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
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":[
|
|
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
|
-
|
|
2
|
-
import
|
|
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":[
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
|
|
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":[
|
|
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-
|
|
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
|
-
|
|
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":[
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
|
|
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":[
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
|
|
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":[
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
|
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 | "
|
|
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"
|
|
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 | "
|
|
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 | "
|
|
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 | "
|
|
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 | "
|
|
762
|
-
MozBorderImage?: csstype.Property.BorderImage | readonly NonNullable<csstype.Property.BorderImage | undefined>[] | readonly ((string & {}) | csstype.Globals | "
|
|
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 | "
|
|
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 | "
|
|
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 | "
|
|
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 | "
|
|
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 | "
|
|
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-
|
|
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 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|