@zydon/common 2.8.77 → 2.8.79
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-ERLI5GAP.js +4 -0
- package/dist/chunk-ERLI5GAP.js.map +1 -0
- package/dist/chunk-J7RPKCIN.js +9 -0
- package/dist/chunk-J7RPKCIN.js.map +1 -0
- package/dist/chunk-K2PWIYEM.js +4 -0
- package/dist/chunk-K2PWIYEM.js.map +1 -0
- package/dist/chunk-UWTX4JMW.js +7 -0
- package/dist/chunk-UWTX4JMW.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-UC2R4AXD.js → chunk-XQZPUMVQ.js} +4 -4
- package/dist/chunk-XQZPUMVQ.js.map +1 -0
- package/dist/components/Analytics/OverviewAnalytics/index.d.ts +1 -1
- package/dist/components/Analytics/OverviewAnalytics/index.js +6 -6
- package/dist/components/Analytics/OverviewAnalytics/index.js.map +1 -1
- package/dist/components/Analytics/PartnerAnalysis/index.d.ts +123 -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 +37 -2
- package/dist/components/Analytics/index.js +26 -13
- package/dist/components/Analytics/index.js.map +1 -1
- package/dist/components/Avatar/index.d.ts +1 -1
- package/dist/components/AvatarButton/index.js +4 -4
- package/dist/components/AvatarButton/index.js.map +1 -1
- 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/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/useSnackbar.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/theme/core/index.d.ts +1 -1
- package/dist/theme/styles/index.d.ts +13 -13
- package/dist/types/analytics.d.ts +7 -9
- package/dist/types/analytics.js +1 -1
- package/dist/types/overviewAnalytics.d.ts +1 -1
- package/dist/types/partnerAnalysis.d.ts +68 -0
- package/dist/types/partnerAnalysis.js +2 -0
- package/dist/types/partnerAnalysis.js.map +1 -0
- package/dist/utils/analytics.d.ts +24 -0
- package/dist/utils/analytics.js +2 -0
- package/dist/utils/analytics.js.map +1 -0
- package/dist/utils/partnerAnalysis.d.ts +28 -0
- package/dist/utils/partnerAnalysis.js +2 -0
- package/dist/utils/partnerAnalysis.js.map +1 -0
- package/dist/utils/periodDates.d.ts +21 -0
- package/dist/utils/periodDates.js +3 -0
- package/dist/utils/periodDates.js.map +1 -0
- package/package.json +5 -1
- package/dist/chunk-UC2R4AXD.js.map +0 -1
- package/dist/chunk-Y2SILVOR.js +0 -4
- package/dist/chunk-Y2SILVOR.js.map +0 -1
- package/dist/{index-c8f1e6e7.d.ts → index-5a5e5dc8.d.ts} +12 -12
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { AbcCurve } from '../utils/partnerAnalysis.js';
|
|
2
|
+
|
|
3
|
+
interface RankingItem {
|
|
4
|
+
partner_external_id: string;
|
|
5
|
+
partner_name: string;
|
|
6
|
+
total_value_by_customer: number;
|
|
7
|
+
total_sale_value: number;
|
|
8
|
+
}
|
|
9
|
+
interface Ranking {
|
|
10
|
+
items: RankingItem[];
|
|
11
|
+
}
|
|
12
|
+
interface PortfolioBreakdownItem {
|
|
13
|
+
status: string;
|
|
14
|
+
count: number;
|
|
15
|
+
percentage: number;
|
|
16
|
+
}
|
|
17
|
+
interface PortfolioBreakdown {
|
|
18
|
+
total: number;
|
|
19
|
+
breakdown: PortfolioBreakdownItem[];
|
|
20
|
+
}
|
|
21
|
+
interface AbcCurveBreakdownItem {
|
|
22
|
+
curve: AbcCurve;
|
|
23
|
+
count: number;
|
|
24
|
+
percentage: number;
|
|
25
|
+
}
|
|
26
|
+
interface AbcCurveBreakdown {
|
|
27
|
+
total: number;
|
|
28
|
+
breakdown: AbcCurveBreakdownItem[];
|
|
29
|
+
}
|
|
30
|
+
interface SellerPortfolioBreakdownEntry {
|
|
31
|
+
count: number;
|
|
32
|
+
percentage: number;
|
|
33
|
+
}
|
|
34
|
+
interface SellerPortfolioItem {
|
|
35
|
+
seller_external_id: string;
|
|
36
|
+
seller_name: string;
|
|
37
|
+
breakdown: Record<string, SellerPortfolioBreakdownEntry>;
|
|
38
|
+
}
|
|
39
|
+
interface SellerPortfolio {
|
|
40
|
+
items: SellerPortfolioItem[];
|
|
41
|
+
}
|
|
42
|
+
interface ByProfileItem {
|
|
43
|
+
profile: string;
|
|
44
|
+
count: number;
|
|
45
|
+
percentage: number;
|
|
46
|
+
}
|
|
47
|
+
interface ByProfile {
|
|
48
|
+
items: ByProfileItem[];
|
|
49
|
+
}
|
|
50
|
+
interface DashboardPartnerSaleAnalysis {
|
|
51
|
+
last_sale_external_id: string;
|
|
52
|
+
sale_count: number;
|
|
53
|
+
last_sale_negotiation_date: string;
|
|
54
|
+
total_sale_value: number;
|
|
55
|
+
}
|
|
56
|
+
interface DashboardPartner {
|
|
57
|
+
external_id: string;
|
|
58
|
+
name: string;
|
|
59
|
+
tax_id: string;
|
|
60
|
+
main_seller_external_id: string;
|
|
61
|
+
classification: string;
|
|
62
|
+
abc_curve: string;
|
|
63
|
+
recurrence?: Record<string, unknown>;
|
|
64
|
+
sale_analysis: DashboardPartnerSaleAnalysis;
|
|
65
|
+
state: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export { AbcCurveBreakdown, AbcCurveBreakdownItem, ByProfile, ByProfileItem, DashboardPartner, DashboardPartnerSaleAnalysis, PortfolioBreakdown, PortfolioBreakdownItem, Ranking, RankingItem, SellerPortfolio, SellerPortfolioBreakdownEntry, SellerPortfolioItem };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
|
|
24
|
+
export { ExportFormat, FILTER_PERIOD_LABELS, FilterPeriod, VIEW_MODE_LABELS, ViewMode };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare enum RankingType {
|
|
2
|
+
SALE_TOTAL_VALUE = "SALE_TOTAL_VALUE",
|
|
3
|
+
SALE_COUNT = "SALE_COUNT",
|
|
4
|
+
SALE_AVERAGE_VALUE = "SALE_AVERAGE_VALUE"
|
|
5
|
+
}
|
|
6
|
+
declare enum AbcCurve {
|
|
7
|
+
A = "A",
|
|
8
|
+
B = "B",
|
|
9
|
+
C = "C"
|
|
10
|
+
}
|
|
11
|
+
declare enum SellerPortfolioQueryType {
|
|
12
|
+
CLASSIFICATION = "CLASSIFICATION",
|
|
13
|
+
ABC_CURVE = "ABC_CURVE"
|
|
14
|
+
}
|
|
15
|
+
declare enum Status {
|
|
16
|
+
ACTIVE = "ACTIVE",
|
|
17
|
+
AT_RISK = "AT_RISK",
|
|
18
|
+
INACTIVE = "INACTIVE",
|
|
19
|
+
LOST = "LOST",
|
|
20
|
+
NEW_CLIENT = "NEW_CLIENT",
|
|
21
|
+
PROSPECT = "PROSPECT"
|
|
22
|
+
}
|
|
23
|
+
declare const STATUS_OPTIONS: Record<Status, {
|
|
24
|
+
label: string;
|
|
25
|
+
color: string;
|
|
26
|
+
}>;
|
|
27
|
+
|
|
28
|
+
export { AbcCurve, RankingType, STATUS_OPTIONS, SellerPortfolioQueryType, Status };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FilterDateState } from '../types/analytics.js';
|
|
2
|
+
import { FilterPeriod } from './analytics.js';
|
|
3
|
+
|
|
4
|
+
declare const periodOptions: {
|
|
5
|
+
label: string;
|
|
6
|
+
value: FilterPeriod;
|
|
7
|
+
}[];
|
|
8
|
+
declare function getPeriodDates(period: FilterPeriod): {
|
|
9
|
+
start_date: Date;
|
|
10
|
+
end_date: Date;
|
|
11
|
+
};
|
|
12
|
+
declare function getDefaultFilterDateState(): FilterDateState;
|
|
13
|
+
declare function getFilterDateStateFor(period: FilterPeriod): FilterDateState;
|
|
14
|
+
declare function findMatchingPeriod(startDate: Date | null, endDate: Date | null): FilterPeriod;
|
|
15
|
+
declare function toFilterDateState(form: {
|
|
16
|
+
period: FilterPeriod;
|
|
17
|
+
start_date: Date | null;
|
|
18
|
+
end_date: Date | null;
|
|
19
|
+
}): FilterDateState;
|
|
20
|
+
|
|
21
|
+
export { findMatchingPeriod, getDefaultFilterDateState, getFilterDateStateFor, getPeriodDates, periodOptions, toFilterDateState };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zydon/common",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.79",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -50,6 +50,10 @@
|
|
|
50
50
|
"import": "./dist/components/Analytics/OverviewAnalytics/index.js",
|
|
51
51
|
"types": "./dist/components/Analytics/OverviewAnalytics/index.d.ts"
|
|
52
52
|
},
|
|
53
|
+
"./components/Analytics/PartnerAnalysis": {
|
|
54
|
+
"import": "./dist/components/Analytics/PartnerAnalysis/index.js",
|
|
55
|
+
"types": "./dist/components/Analytics/PartnerAnalysis/index.d.ts"
|
|
56
|
+
},
|
|
53
57
|
"./contexts/*": {
|
|
54
58
|
"import": "./dist/contexts/*/index.js",
|
|
55
59
|
"types": "./dist/contexts/*/index.d.ts"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/Analytics/ChartStyles/styles.ts","../src/components/Analytics/EmptyState/index.tsx","../src/components/Analytics/RotatedTick/index.tsx"],"names":["Box","MuiCard","MuiCardHeader","MuiCheckbox","Stack","styled","ChartCard","theme","ChartCardHeader","ChartWrapper","TooltipContainer","TooltipDivider","TooltipDot","prop","dotColor","LegendContainer","LegendItem","ColoredCheckbox","checkboxColor","SummaryStack","SummaryDivider","EmptyStateContainer","Typography","jsx","jsxs","EmptyState","Icon_default","EmptyState_default","RotatedTick","props","x","y","payload","tickFormatter","index","maxChars","raw","label","RotatedTick_default"],"mappings":"wCAAA,OAAOA,MAAS,oBAChB,OAAOC,MAAa,qBACpB,OAAOC,MAAmB,2BAC1B,OAAOC,MAAiB,yBACxB,OAAOC,M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,CAACC,EAAS,OAAO,KAE/C,IAAMI,EAAMH,EACRA,EAAcD,EAAQ,MAAOE,CAAK,EAClCF,EAAQ,MACNK,EAAQD,EAAI,OAASD,EAAW,GAAGC,EAAI,MAAM,EAAGD,CAAQ,OAASC,EAEvE,OACEb,EAAC,KAAE,UAAW,aAAaO,KAAKC,KAC9B,SAAAR,EAAC,QACC,EAAG,EACH,EAAG,EACH,GAAI,EACJ,WAAW,MACX,KAAK,UACL,SAAU,GACV,UAAU,cAET,SAAAc,EACH,EACF,CAEJ,EAEOC,EAAQV","sourcesContent":["import Box from '@mui/material/Box';\nimport MuiCard from '@mui/material/Card';\nimport MuiCardHeader from '@mui/material/CardHeader';\nimport MuiCheckbox from '@mui/material/Checkbox';\nimport Stack from '@mui/material/Stack';\nimport { styled } from '@mui/material/styles';\n\nexport const ChartCard = styled(MuiCard)(({ theme }) => ({\n width: '100%',\n\n border: `1px solid ${theme.palette.divider}`,\n\n boxShadow: 'none',\n overflow: 'visible',\n}));\n\nexport const ChartCardHeader = styled(MuiCardHeader)(({ theme }) => ({\n [theme.breakpoints.down('sm')]: {\n flexWrap: 'wrap',\n gap: theme.spacing(2),\n\n '& .MuiCardHeader-action': {\n width: '100%',\n },\n },\n}));\n\nexport const ChartWrapper = styled(Stack)({\n position: 'relative',\n width: '100%',\n overflow: 'visible',\n\n '& .recharts-wrapper, & .recharts-wrapper *': {\n outline: 'none !important',\n boxShadow: 'none !important',\n WebkitTapHighlightColor: 'transparent',\n },\n});\n\nexport const TooltipContainer = styled(Box)(({ theme }) => ({\n backgroundColor: theme.palette.background.paper,\n border: '1px solid',\n borderColor: theme.palette.divider,\n borderRadius: theme.shape.borderRadius,\n padding: theme.spacing(1.5),\n boxShadow: theme.shadows[3],\n}));\n\nexport const TooltipDivider = styled(Box)(({ theme }) => ({\n width: '100%',\n height: '1px',\n backgroundColor: theme.palette.divider,\n marginBottom: theme.spacing(1.5),\n}));\n\nexport const TooltipDot = styled(Box, {\n shouldForwardProp: prop => prop !== 'dotColor',\n})<{ dotColor: string }>(({ dotColor }) => ({\n width: 10,\n height: 10,\n borderRadius: '50%',\n backgroundColor: dotColor,\n}));\n\nexport const LegendContainer = styled(Stack)({\n flexDirection: 'row',\n flexWrap: 'wrap',\n justifyContent: 'center',\n alignItems: 'center',\n gap: 16,\n marginTop: 16,\n});\n\nexport const LegendItem = styled(Stack)({\n flexDirection: 'row',\n alignItems: 'center',\n cursor: 'pointer',\n});\n\nexport const ColoredCheckbox = styled(MuiCheckbox, {\n shouldForwardProp: prop => prop !== 'checkboxColor',\n})<{ checkboxColor: string }>(({ checkboxColor }) => ({\n color: checkboxColor,\n '&.Mui-checked': { color: checkboxColor },\n padding: 4,\n}));\n\nexport const SummaryStack = styled(Stack)({\n flexDirection: 'row',\n alignItems: 'flex-start',\n gap: 32,\n marginBottom: 24,\n flexWrap: 'wrap',\n});\n\nexport const SummaryDivider = styled(Box)(({ theme }) => ({\n width: '1px',\n height: 40,\n backgroundColor: theme.palette.divider,\n alignSelf: 'center',\n}));\n\nexport const EmptyStateContainer = styled(Stack)({\n minHeight: 350,\n alignItems: 'center',\n justifyContent: 'center',\n gap: 12,\n});\n","import Stack from '@mui/material/Stack';\nimport Typography from '@mui/material/Typography';\n\nimport Icon from 'components/Icon';\n\nconst EmptyState = () => {\n return (\n <Stack\n minHeight={300}\n alignItems=\"center\"\n justifyContent=\"center\"\n gap={1.5}\n >\n <Icon icon=\"CALENDAR_TODAY\" width={60} color=\"text.secondary\" />\n\n <Stack textAlign=\"center\">\n <Typography variant=\"subtitle1\" fontSize=\"subtitle1.fontSize\">\n Nenhum dado disponível ainda\n </Typography>\n\n <Typography\n variant=\"body2\"\n fontSize=\"body2.fontSize\"\n color=\"text.secondary\"\n >\n Assim que houver registros, os dados serão exibidos aqui.\n </Typography>\n </Stack>\n </Stack>\n );\n};\n\nexport default EmptyState;\n","import { RotatedTickProps } from './props';\n\nconst RotatedTick = (props: RotatedTickProps) => {\n const { x, y, payload, tickFormatter, index = 0, maxChars = 10 } = props;\n if (x == null || y == null || !payload) return null;\n\n const raw = tickFormatter\n ? tickFormatter(payload.value, index)\n : payload.value;\n const label = raw.length > maxChars ? `${raw.slice(0, maxChars)}...` : raw;\n\n return (\n <g transform={`translate(${x},${y})`}>\n <text\n x={0}\n y={0}\n dy={4}\n textAnchor=\"end\"\n fill=\"#637381\"\n fontSize={11}\n transform=\"rotate(-45)\"\n >\n {label}\n </text>\n </g>\n );\n};\n\nexport default RotatedTick;\n"]}
|
package/dist/chunk-Y2SILVOR.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/types/analytics.ts"],"names":["ViewMode","VIEW_MODE_LABELS","ExportFormat"],"mappings":"AAAO,IAAKA,OACVA,EAAA,QAAU,UACVA,EAAA,MAAQ,QAFEA,OAAA,IAKCC,EAA6C,CACxD,CAAC,SAAgB,EAAG,SACpB,CAAC,OAAc,EAAG,WACpB,EAEYC,OACVA,EAAA,KAAO,OACPA,EAAA,IAAM,MAFIA,OAAA","sourcesContent":["export enum ViewMode {\n MONTHLY = 'MONTHLY',\n DAILY = 'DAILY',\n}\n\nexport const VIEW_MODE_LABELS: Record<ViewMode, string> = {\n [ViewMode.MONTHLY]: 'Mensal',\n [ViewMode.DAILY]: 'Diário',\n};\n\nexport enum ExportFormat {\n XLSX = 'XLSX',\n PDF = 'PDF',\n}\n"]}
|
|
@@ -286,13 +286,10 @@ declare const components: {
|
|
|
286
286
|
MuiTimelineDot: {
|
|
287
287
|
defaultProps?: Partial<_mui_lab_TimelineDot.TimelineDotProps> | undefined;
|
|
288
288
|
styleOverrides?: Partial<_mui_material_styles_overrides.OverridesStyleRules<keyof _mui_lab_TimelineDot.TimelineDotClasses, "MuiTimelineDot", {
|
|
289
|
-
|
|
290
|
-
zIndex: _mui_material.ZIndex;
|
|
291
|
-
direction: _mui_system.Direction;
|
|
292
|
-
opacity: _mui_material.Opacity;
|
|
293
|
-
typography: _mui_material.TypographyVariants;
|
|
289
|
+
transitions: _mui_material.Transitions;
|
|
294
290
|
palette: _mui_material.Palette;
|
|
295
291
|
colorSchemes: Record<_mui_material.SupportedColorScheme, _mui_material.ColorSystem>;
|
|
292
|
+
cssVarPrefix: string;
|
|
296
293
|
vars: _mui_material.ThemeVars;
|
|
297
294
|
getCssVar: (field: _mui_material.ThemeCssVar, ...vars: _mui_material.ThemeCssVar[]) => string;
|
|
298
295
|
getColorSchemeSelector: (colorScheme: _mui_material.SupportedColorScheme) => string;
|
|
@@ -303,13 +300,16 @@ declare const components: {
|
|
|
303
300
|
spacing: _mui_system.Spacing;
|
|
304
301
|
breakpoints: _mui_system.Breakpoints;
|
|
305
302
|
shape: _mui_system.Shape;
|
|
306
|
-
|
|
303
|
+
typography: _mui_material.TypographyVariants;
|
|
307
304
|
shadows: _mui_material.Shadows;
|
|
308
305
|
mixins: _mui_material.Mixins;
|
|
306
|
+
zIndex: _mui_material.ZIndex;
|
|
307
|
+
direction: _mui_system.Direction;
|
|
309
308
|
shouldSkipGeneratingVar: (keys: string[], value: string | number) => boolean;
|
|
310
309
|
unstable_sxConfig: _mui_system.SxConfig;
|
|
311
310
|
unstable_sx: (props: _mui_system.SxProps<_mui_material.Theme>) => _mui_styled_engine.CSSObject;
|
|
312
311
|
applyStyles: _mui_system.ApplyStyles<"light" | "dark">;
|
|
312
|
+
opacity: _mui_material.Opacity;
|
|
313
313
|
overlays: _mui_material.Overlays;
|
|
314
314
|
customShadows: CustomShadows;
|
|
315
315
|
unstable_strictMode?: boolean | undefined;
|
|
@@ -326,13 +326,10 @@ declare const components: {
|
|
|
326
326
|
MuiTimelineConnector: {
|
|
327
327
|
defaultProps?: Partial<_mui_lab_TimelineConnector.TimelineConnectorProps> | undefined;
|
|
328
328
|
styleOverrides?: Partial<_mui_material_styles_overrides.OverridesStyleRules<"root", "MuiTimelineConnector", {
|
|
329
|
-
|
|
330
|
-
zIndex: _mui_material.ZIndex;
|
|
331
|
-
direction: _mui_system.Direction;
|
|
332
|
-
opacity: _mui_material.Opacity;
|
|
333
|
-
typography: _mui_material.TypographyVariants;
|
|
329
|
+
transitions: _mui_material.Transitions;
|
|
334
330
|
palette: _mui_material.Palette;
|
|
335
331
|
colorSchemes: Record<_mui_material.SupportedColorScheme, _mui_material.ColorSystem>;
|
|
332
|
+
cssVarPrefix: string;
|
|
336
333
|
vars: _mui_material.ThemeVars;
|
|
337
334
|
getCssVar: (field: _mui_material.ThemeCssVar, ...vars: _mui_material.ThemeCssVar[]) => string;
|
|
338
335
|
getColorSchemeSelector: (colorScheme: _mui_material.SupportedColorScheme) => string;
|
|
@@ -343,13 +340,16 @@ declare const components: {
|
|
|
343
340
|
spacing: _mui_system.Spacing;
|
|
344
341
|
breakpoints: _mui_system.Breakpoints;
|
|
345
342
|
shape: _mui_system.Shape;
|
|
346
|
-
|
|
343
|
+
typography: _mui_material.TypographyVariants;
|
|
347
344
|
shadows: _mui_material.Shadows;
|
|
348
345
|
mixins: _mui_material.Mixins;
|
|
346
|
+
zIndex: _mui_material.ZIndex;
|
|
347
|
+
direction: _mui_system.Direction;
|
|
349
348
|
shouldSkipGeneratingVar: (keys: string[], value: string | number) => boolean;
|
|
350
349
|
unstable_sxConfig: _mui_system.SxConfig;
|
|
351
350
|
unstable_sx: (props: _mui_system.SxProps<_mui_material.Theme>) => _mui_styled_engine.CSSObject;
|
|
352
351
|
applyStyles: _mui_system.ApplyStyles<"light" | "dark">;
|
|
352
|
+
opacity: _mui_material.Opacity;
|
|
353
353
|
overlays: _mui_material.Overlays;
|
|
354
354
|
customShadows: CustomShadows;
|
|
355
355
|
unstable_strictMode?: boolean | undefined;
|