@undefine-ui/design-system 3.2.0 → 3.3.0
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/README.md +51 -0
- package/dist/index.cjs +290 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +36 -1
- package/dist/index.d.ts +36 -1
- package/dist/index.js +290 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2094,6 +2094,41 @@ declare function paper({ theme, color, dropdown }: {
|
|
|
2094
2094
|
*/
|
|
2095
2095
|
declare const menuItem: (theme: Theme$1) => SxProps$1<Theme$1>;
|
|
2096
2096
|
|
|
2097
|
+
/**
|
|
2098
|
+
* ApexCharts style utilities for MUI theming integration.
|
|
2099
|
+
* Use these in your consuming app to style ApexCharts with Define theme.
|
|
2100
|
+
*
|
|
2101
|
+
* @example
|
|
2102
|
+
* // In your app, create a styled wrapper:
|
|
2103
|
+
* import { styled } from '@mui/material/styles';
|
|
2104
|
+
* import { apexChartsStyles } from '@undefine-ui/design-system';
|
|
2105
|
+
*
|
|
2106
|
+
* export const ChartWrapper = styled('div')(({ theme }) => ({
|
|
2107
|
+
* ...apexChartsStyles(theme),
|
|
2108
|
+
* }));
|
|
2109
|
+
*
|
|
2110
|
+
* // Then wrap your chart:
|
|
2111
|
+
* <ChartWrapper>
|
|
2112
|
+
* <ReactApexChart {...chartProps} />
|
|
2113
|
+
* </ChartWrapper>
|
|
2114
|
+
*/
|
|
2115
|
+
declare const apexChartsStyles: (theme: Theme) => SxProps<Theme>;
|
|
2116
|
+
/**
|
|
2117
|
+
* Default chart options for ApexCharts with Define theme integration.
|
|
2118
|
+
* Use these as a base and extend with your chart-specific options.
|
|
2119
|
+
*
|
|
2120
|
+
* @example
|
|
2121
|
+
* import { useTheme } from '@mui/material/styles';
|
|
2122
|
+
* import { getDefaultChartOptions } from '@undefine-ui/design-system';
|
|
2123
|
+
*
|
|
2124
|
+
* const theme = useTheme();
|
|
2125
|
+
* const options = {
|
|
2126
|
+
* ...getDefaultChartOptions(theme),
|
|
2127
|
+
* // Your chart-specific options
|
|
2128
|
+
* };
|
|
2129
|
+
*/
|
|
2130
|
+
declare const getDefaultChartOptions: (theme: Theme) => Record<string, any>;
|
|
2131
|
+
|
|
2097
2132
|
declare const createTheme: (settings: SettingsValueProps) => Theme;
|
|
2098
2133
|
|
|
2099
2134
|
declare const schemeConfig: {
|
|
@@ -2113,4 +2148,4 @@ type ThemeProviderProps = {
|
|
|
2113
2148
|
};
|
|
2114
2149
|
declare const ThemeProvider: ({ children }: ThemeProviderProps) => react_jsx_runtime.JSX.Element;
|
|
2115
2150
|
|
|
2116
|
-
export { AnimatedLogo, Attachment, Bank, BellNotification, Building, Calendar, CheckCircleSolid, CheckboxDefault, CheckboxIndeterminate, CheckboxSelect, Circle, ClipboardCheck, Clock, CloudUpload, type ColorSchema, Copy, CopyButton, type CustomShadowOptions, type CustomSpacingOptions, type DatePickerProps, type DateTimePickerProps, Download, EmptyContent, type EmptyContentProps, ErrorToast, Eye, EyeClosed, Field, Form, HelpCircle, Icon, type IconProps, type IconType, Image, type ImageProps, type ImageStatus, InfoCircle, InfoCircleSolid, InfoToast, KeyCommand, Loader, LoadingScreen, LocalStorageAvailable, LocalStorageGetItem, Logo, LongArrowUpLeftSolid, NavArrowDown, NavArrowDownSolid, NavArrowLeft, NavArrowRight, OTPInput, type OTPInputProps, Plus, PlusSquare, RHFAutocomplete, type RHFAutocompleteProps, RHFCheckbox, type RHFCheckboxProps, RHFDatePicker, type RHFDatePickerProps, RHFDateTimePicker, type RHFDateTimePickerProps, RHFMultiCheckbox, type RHFMultiCheckboxOption, type RHFMultiCheckboxProps, RHFMultiSwitch, RHFOTPInput, type RHFOTPInputProps, RHFRadioGroup, type RHFRadioGroupProps, RHFSwitch, RHFTextField, RHFTimePicker, type RHFTimePickerProps, RHFUpload, type RHFUploadProps, RadioDefault, RadioSelect, type RadiusOptions, STORAGE_KEY, Search, Settings, SettingsConsumer, SettingsContext, type SettingsContextProps, SettingsProvider, type SettingsValueProps, SortDown, SortUp, SplashScreen, StatDown, StatUp, SuccessToast, Table, TablePagination, ThemeProvider, type TimePickerProps, Toast, Trash, Upload, type UploadProps, type UseBooleanReturnType, type UseSetStateReturnType, User, UserSolid, WarningToast, XMark, XMarkSolid, action, background, baseAction, basePalette, bgBlur, bgGradient, border, borderGradient, breakpoints, colorSchemes, common, components, createPaletteChannel, createShadowColor, createTheme, customShadows, customSpacing, darkPalette, defaultSettings, error, fCurrency, fData, fNumber, fPercent, fShortenNumber, formatFullname, getCurrencySymbol, getInitials, getStorage, grey, hexToRgbChannel, hideScrollX, hideScrollY, icon, iconClasses, info, isEqual, lightPalette, maxLine, mediaQueries, menuItem, neutral, orderBy, paper, paramCase, primary, primaryFont, pxToRem, radius, remToPx, removeStorage, responsiveFontSizes, schemeConfig, secondary, secondaryFont, sentenceCase, setFont, setStorage, shadows, snakeCase, splitFullname, stylesMode, success, surface, tertiaryFont, text, textGradient, typography, updateComponentsWithSettings, updateCoreWithSettings, useBoolean, useCopyToClipboard, useCountdownDate, useCountdownSeconds, useEventListener, useLocalStorage, usePopover, useResponsive, useScrollOffSetTop, useSetState, useSettings, useWidth, varAlpha, warning };
|
|
2151
|
+
export { AnimatedLogo, Attachment, Bank, BellNotification, Building, Calendar, CheckCircleSolid, CheckboxDefault, CheckboxIndeterminate, CheckboxSelect, Circle, ClipboardCheck, Clock, CloudUpload, type ColorSchema, Copy, CopyButton, type CustomShadowOptions, type CustomSpacingOptions, type DatePickerProps, type DateTimePickerProps, Download, EmptyContent, type EmptyContentProps, ErrorToast, Eye, EyeClosed, Field, Form, HelpCircle, Icon, type IconProps, type IconType, Image, type ImageProps, type ImageStatus, InfoCircle, InfoCircleSolid, InfoToast, KeyCommand, Loader, LoadingScreen, LocalStorageAvailable, LocalStorageGetItem, Logo, LongArrowUpLeftSolid, NavArrowDown, NavArrowDownSolid, NavArrowLeft, NavArrowRight, OTPInput, type OTPInputProps, Plus, PlusSquare, RHFAutocomplete, type RHFAutocompleteProps, RHFCheckbox, type RHFCheckboxProps, RHFDatePicker, type RHFDatePickerProps, RHFDateTimePicker, type RHFDateTimePickerProps, RHFMultiCheckbox, type RHFMultiCheckboxOption, type RHFMultiCheckboxProps, RHFMultiSwitch, RHFOTPInput, type RHFOTPInputProps, RHFRadioGroup, type RHFRadioGroupProps, RHFSwitch, RHFTextField, RHFTimePicker, type RHFTimePickerProps, RHFUpload, type RHFUploadProps, RadioDefault, RadioSelect, type RadiusOptions, STORAGE_KEY, Search, Settings, SettingsConsumer, SettingsContext, type SettingsContextProps, SettingsProvider, type SettingsValueProps, SortDown, SortUp, SplashScreen, StatDown, StatUp, SuccessToast, Table, TablePagination, ThemeProvider, type TimePickerProps, Toast, Trash, Upload, type UploadProps, type UseBooleanReturnType, type UseSetStateReturnType, User, UserSolid, WarningToast, XMark, XMarkSolid, action, apexChartsStyles, background, baseAction, basePalette, bgBlur, bgGradient, border, borderGradient, breakpoints, colorSchemes, common, components, createPaletteChannel, createShadowColor, createTheme, customShadows, customSpacing, darkPalette, defaultSettings, error, fCurrency, fData, fNumber, fPercent, fShortenNumber, formatFullname, getCurrencySymbol, getDefaultChartOptions, getInitials, getStorage, grey, hexToRgbChannel, hideScrollX, hideScrollY, icon, iconClasses, info, isEqual, lightPalette, maxLine, mediaQueries, menuItem, neutral, orderBy, paper, paramCase, primary, primaryFont, pxToRem, radius, remToPx, removeStorage, responsiveFontSizes, schemeConfig, secondary, secondaryFont, sentenceCase, setFont, setStorage, shadows, snakeCase, splitFullname, stylesMode, success, surface, tertiaryFont, text, textGradient, typography, updateComponentsWithSettings, updateCoreWithSettings, useBoolean, useCopyToClipboard, useCountdownDate, useCountdownSeconds, useEventListener, useLocalStorage, usePopover, useResponsive, useScrollOffSetTop, useSetState, useSettings, useWidth, varAlpha, warning };
|
package/dist/index.d.ts
CHANGED
|
@@ -2094,6 +2094,41 @@ declare function paper({ theme, color, dropdown }: {
|
|
|
2094
2094
|
*/
|
|
2095
2095
|
declare const menuItem: (theme: Theme$1) => SxProps$1<Theme$1>;
|
|
2096
2096
|
|
|
2097
|
+
/**
|
|
2098
|
+
* ApexCharts style utilities for MUI theming integration.
|
|
2099
|
+
* Use these in your consuming app to style ApexCharts with Define theme.
|
|
2100
|
+
*
|
|
2101
|
+
* @example
|
|
2102
|
+
* // In your app, create a styled wrapper:
|
|
2103
|
+
* import { styled } from '@mui/material/styles';
|
|
2104
|
+
* import { apexChartsStyles } from '@undefine-ui/design-system';
|
|
2105
|
+
*
|
|
2106
|
+
* export const ChartWrapper = styled('div')(({ theme }) => ({
|
|
2107
|
+
* ...apexChartsStyles(theme),
|
|
2108
|
+
* }));
|
|
2109
|
+
*
|
|
2110
|
+
* // Then wrap your chart:
|
|
2111
|
+
* <ChartWrapper>
|
|
2112
|
+
* <ReactApexChart {...chartProps} />
|
|
2113
|
+
* </ChartWrapper>
|
|
2114
|
+
*/
|
|
2115
|
+
declare const apexChartsStyles: (theme: Theme) => SxProps<Theme>;
|
|
2116
|
+
/**
|
|
2117
|
+
* Default chart options for ApexCharts with Define theme integration.
|
|
2118
|
+
* Use these as a base and extend with your chart-specific options.
|
|
2119
|
+
*
|
|
2120
|
+
* @example
|
|
2121
|
+
* import { useTheme } from '@mui/material/styles';
|
|
2122
|
+
* import { getDefaultChartOptions } from '@undefine-ui/design-system';
|
|
2123
|
+
*
|
|
2124
|
+
* const theme = useTheme();
|
|
2125
|
+
* const options = {
|
|
2126
|
+
* ...getDefaultChartOptions(theme),
|
|
2127
|
+
* // Your chart-specific options
|
|
2128
|
+
* };
|
|
2129
|
+
*/
|
|
2130
|
+
declare const getDefaultChartOptions: (theme: Theme) => Record<string, any>;
|
|
2131
|
+
|
|
2097
2132
|
declare const createTheme: (settings: SettingsValueProps) => Theme;
|
|
2098
2133
|
|
|
2099
2134
|
declare const schemeConfig: {
|
|
@@ -2113,4 +2148,4 @@ type ThemeProviderProps = {
|
|
|
2113
2148
|
};
|
|
2114
2149
|
declare const ThemeProvider: ({ children }: ThemeProviderProps) => react_jsx_runtime.JSX.Element;
|
|
2115
2150
|
|
|
2116
|
-
export { AnimatedLogo, Attachment, Bank, BellNotification, Building, Calendar, CheckCircleSolid, CheckboxDefault, CheckboxIndeterminate, CheckboxSelect, Circle, ClipboardCheck, Clock, CloudUpload, type ColorSchema, Copy, CopyButton, type CustomShadowOptions, type CustomSpacingOptions, type DatePickerProps, type DateTimePickerProps, Download, EmptyContent, type EmptyContentProps, ErrorToast, Eye, EyeClosed, Field, Form, HelpCircle, Icon, type IconProps, type IconType, Image, type ImageProps, type ImageStatus, InfoCircle, InfoCircleSolid, InfoToast, KeyCommand, Loader, LoadingScreen, LocalStorageAvailable, LocalStorageGetItem, Logo, LongArrowUpLeftSolid, NavArrowDown, NavArrowDownSolid, NavArrowLeft, NavArrowRight, OTPInput, type OTPInputProps, Plus, PlusSquare, RHFAutocomplete, type RHFAutocompleteProps, RHFCheckbox, type RHFCheckboxProps, RHFDatePicker, type RHFDatePickerProps, RHFDateTimePicker, type RHFDateTimePickerProps, RHFMultiCheckbox, type RHFMultiCheckboxOption, type RHFMultiCheckboxProps, RHFMultiSwitch, RHFOTPInput, type RHFOTPInputProps, RHFRadioGroup, type RHFRadioGroupProps, RHFSwitch, RHFTextField, RHFTimePicker, type RHFTimePickerProps, RHFUpload, type RHFUploadProps, RadioDefault, RadioSelect, type RadiusOptions, STORAGE_KEY, Search, Settings, SettingsConsumer, SettingsContext, type SettingsContextProps, SettingsProvider, type SettingsValueProps, SortDown, SortUp, SplashScreen, StatDown, StatUp, SuccessToast, Table, TablePagination, ThemeProvider, type TimePickerProps, Toast, Trash, Upload, type UploadProps, type UseBooleanReturnType, type UseSetStateReturnType, User, UserSolid, WarningToast, XMark, XMarkSolid, action, background, baseAction, basePalette, bgBlur, bgGradient, border, borderGradient, breakpoints, colorSchemes, common, components, createPaletteChannel, createShadowColor, createTheme, customShadows, customSpacing, darkPalette, defaultSettings, error, fCurrency, fData, fNumber, fPercent, fShortenNumber, formatFullname, getCurrencySymbol, getInitials, getStorage, grey, hexToRgbChannel, hideScrollX, hideScrollY, icon, iconClasses, info, isEqual, lightPalette, maxLine, mediaQueries, menuItem, neutral, orderBy, paper, paramCase, primary, primaryFont, pxToRem, radius, remToPx, removeStorage, responsiveFontSizes, schemeConfig, secondary, secondaryFont, sentenceCase, setFont, setStorage, shadows, snakeCase, splitFullname, stylesMode, success, surface, tertiaryFont, text, textGradient, typography, updateComponentsWithSettings, updateCoreWithSettings, useBoolean, useCopyToClipboard, useCountdownDate, useCountdownSeconds, useEventListener, useLocalStorage, usePopover, useResponsive, useScrollOffSetTop, useSetState, useSettings, useWidth, varAlpha, warning };
|
|
2151
|
+
export { AnimatedLogo, Attachment, Bank, BellNotification, Building, Calendar, CheckCircleSolid, CheckboxDefault, CheckboxIndeterminate, CheckboxSelect, Circle, ClipboardCheck, Clock, CloudUpload, type ColorSchema, Copy, CopyButton, type CustomShadowOptions, type CustomSpacingOptions, type DatePickerProps, type DateTimePickerProps, Download, EmptyContent, type EmptyContentProps, ErrorToast, Eye, EyeClosed, Field, Form, HelpCircle, Icon, type IconProps, type IconType, Image, type ImageProps, type ImageStatus, InfoCircle, InfoCircleSolid, InfoToast, KeyCommand, Loader, LoadingScreen, LocalStorageAvailable, LocalStorageGetItem, Logo, LongArrowUpLeftSolid, NavArrowDown, NavArrowDownSolid, NavArrowLeft, NavArrowRight, OTPInput, type OTPInputProps, Plus, PlusSquare, RHFAutocomplete, type RHFAutocompleteProps, RHFCheckbox, type RHFCheckboxProps, RHFDatePicker, type RHFDatePickerProps, RHFDateTimePicker, type RHFDateTimePickerProps, RHFMultiCheckbox, type RHFMultiCheckboxOption, type RHFMultiCheckboxProps, RHFMultiSwitch, RHFOTPInput, type RHFOTPInputProps, RHFRadioGroup, type RHFRadioGroupProps, RHFSwitch, RHFTextField, RHFTimePicker, type RHFTimePickerProps, RHFUpload, type RHFUploadProps, RadioDefault, RadioSelect, type RadiusOptions, STORAGE_KEY, Search, Settings, SettingsConsumer, SettingsContext, type SettingsContextProps, SettingsProvider, type SettingsValueProps, SortDown, SortUp, SplashScreen, StatDown, StatUp, SuccessToast, Table, TablePagination, ThemeProvider, type TimePickerProps, Toast, Trash, Upload, type UploadProps, type UseBooleanReturnType, type UseSetStateReturnType, User, UserSolid, WarningToast, XMark, XMarkSolid, action, apexChartsStyles, background, baseAction, basePalette, bgBlur, bgGradient, border, borderGradient, breakpoints, colorSchemes, common, components, createPaletteChannel, createShadowColor, createTheme, customShadows, customSpacing, darkPalette, defaultSettings, error, fCurrency, fData, fNumber, fPercent, fShortenNumber, formatFullname, getCurrencySymbol, getDefaultChartOptions, getInitials, getStorage, grey, hexToRgbChannel, hideScrollX, hideScrollY, icon, iconClasses, info, isEqual, lightPalette, maxLine, mediaQueries, menuItem, neutral, orderBy, paper, paramCase, primary, primaryFont, pxToRem, radius, remToPx, removeStorage, responsiveFontSizes, schemeConfig, secondary, secondaryFont, sentenceCase, setFont, setStorage, shadows, snakeCase, splitFullname, stylesMode, success, surface, tertiaryFont, text, textGradient, typography, updateComponentsWithSettings, updateCoreWithSettings, useBoolean, useCopyToClipboard, useCountdownDate, useCountdownSeconds, useEventListener, useLocalStorage, usePopover, useResponsive, useScrollOffSetTop, useSetState, useSettings, useWidth, varAlpha, warning };
|
package/dist/index.js
CHANGED
|
@@ -100,6 +100,7 @@ __export(index_exports, {
|
|
|
100
100
|
XMark: () => XMark,
|
|
101
101
|
XMarkSolid: () => XMarkSolid,
|
|
102
102
|
action: () => action,
|
|
103
|
+
apexChartsStyles: () => apexChartsStyles,
|
|
103
104
|
background: () => background,
|
|
104
105
|
baseAction: () => baseAction,
|
|
105
106
|
basePalette: () => basePalette,
|
|
@@ -126,6 +127,7 @@ __export(index_exports, {
|
|
|
126
127
|
fShortenNumber: () => fShortenNumber,
|
|
127
128
|
formatFullname: () => formatFullname,
|
|
128
129
|
getCurrencySymbol: () => getCurrencySymbol,
|
|
130
|
+
getDefaultChartOptions: () => getDefaultChartOptions,
|
|
129
131
|
getInitials: () => getInitials,
|
|
130
132
|
getStorage: () => getStorage,
|
|
131
133
|
grey: () => grey,
|
|
@@ -1216,6 +1218,292 @@ var menuItem = (theme) => {
|
|
|
1216
1218
|
};
|
|
1217
1219
|
};
|
|
1218
1220
|
|
|
1221
|
+
// src/theme/styles/apex-charts.ts
|
|
1222
|
+
var apexChartsStyles = (theme) => ({
|
|
1223
|
+
// Chart container
|
|
1224
|
+
"& .apexcharts-canvas": {
|
|
1225
|
+
// Tooltip
|
|
1226
|
+
"& .apexcharts-tooltip": {
|
|
1227
|
+
border: "none",
|
|
1228
|
+
boxShadow: theme.customShadows["shadow-md"],
|
|
1229
|
+
borderRadius: theme.radius["radius-md"],
|
|
1230
|
+
backgroundColor: theme.vars.palette.background.paper,
|
|
1231
|
+
color: theme.vars.palette.text.primary,
|
|
1232
|
+
"&.apexcharts-theme-light": {
|
|
1233
|
+
border: `1px solid ${theme.vars.palette.border.subtle}`,
|
|
1234
|
+
backgroundColor: theme.vars.palette.background.paper
|
|
1235
|
+
},
|
|
1236
|
+
"& .apexcharts-tooltip-title": {
|
|
1237
|
+
fontWeight: theme.typography.fontWeightBold,
|
|
1238
|
+
backgroundColor: varAlpha(theme.vars.palette.grey["500Channel"], 0.08),
|
|
1239
|
+
borderColor: theme.vars.palette.border.subtle,
|
|
1240
|
+
color: theme.vars.palette.text.header
|
|
1241
|
+
},
|
|
1242
|
+
"& .apexcharts-tooltip-series-group": {
|
|
1243
|
+
backgroundColor: "transparent"
|
|
1244
|
+
}
|
|
1245
|
+
},
|
|
1246
|
+
// Xaxis & Yaxis labels
|
|
1247
|
+
"& .apexcharts-xaxis-label, & .apexcharts-yaxis-label": {
|
|
1248
|
+
fill: theme.vars.palette.text.secondary
|
|
1249
|
+
},
|
|
1250
|
+
// Xaxis tick
|
|
1251
|
+
"& .apexcharts-xaxis-tick": {
|
|
1252
|
+
stroke: theme.vars.palette.border.subtle
|
|
1253
|
+
},
|
|
1254
|
+
// Grid
|
|
1255
|
+
"& .apexcharts-gridline": {
|
|
1256
|
+
stroke: theme.vars.palette.border.subtle
|
|
1257
|
+
},
|
|
1258
|
+
"& .apexcharts-grid-borders line": {
|
|
1259
|
+
stroke: theme.vars.palette.border.subtle
|
|
1260
|
+
},
|
|
1261
|
+
// Data labels
|
|
1262
|
+
"& .apexcharts-datalabels-group": {
|
|
1263
|
+
"& .apexcharts-data-labels": {
|
|
1264
|
+
textAnchor: "middle"
|
|
1265
|
+
}
|
|
1266
|
+
},
|
|
1267
|
+
"& .apexcharts-datalabel": {
|
|
1268
|
+
fill: theme.vars.palette.text.primary
|
|
1269
|
+
},
|
|
1270
|
+
"& .apexcharts-datalabel-label": {
|
|
1271
|
+
fill: theme.vars.palette.text.secondary,
|
|
1272
|
+
fontSize: theme.typography.body2.fontSize,
|
|
1273
|
+
fontFamily: theme.typography.fontFamily
|
|
1274
|
+
},
|
|
1275
|
+
"& .apexcharts-datalabel-value": {
|
|
1276
|
+
fill: theme.vars.palette.text.primary,
|
|
1277
|
+
fontWeight: theme.typography.fontWeightSemiBold,
|
|
1278
|
+
fontFamily: theme.typography.fontFamily
|
|
1279
|
+
},
|
|
1280
|
+
// Radar
|
|
1281
|
+
"& .apexcharts-radar-series polygon": {
|
|
1282
|
+
fill: "transparent",
|
|
1283
|
+
stroke: theme.vars.palette.border.subtle
|
|
1284
|
+
},
|
|
1285
|
+
"& .apexcharts-radar-series line": {
|
|
1286
|
+
stroke: theme.vars.palette.border.subtle
|
|
1287
|
+
},
|
|
1288
|
+
// Legend
|
|
1289
|
+
"& .apexcharts-legend": {
|
|
1290
|
+
padding: 0,
|
|
1291
|
+
"& .apexcharts-legend-series": {
|
|
1292
|
+
alignItems: "center",
|
|
1293
|
+
display: "inline-flex !important"
|
|
1294
|
+
},
|
|
1295
|
+
"& .apexcharts-legend-marker": {
|
|
1296
|
+
marginRight: 8
|
|
1297
|
+
},
|
|
1298
|
+
"& .apexcharts-legend-text": {
|
|
1299
|
+
color: `${theme.vars.palette.text.primary} !important`,
|
|
1300
|
+
fontSize: `${theme.typography.body2.fontSize} !important`,
|
|
1301
|
+
fontWeight: `${theme.typography.fontWeightMedium} !important`,
|
|
1302
|
+
fontFamily: theme.typography.fontFamily,
|
|
1303
|
+
lineHeight: "18px",
|
|
1304
|
+
textTransform: "capitalize"
|
|
1305
|
+
}
|
|
1306
|
+
},
|
|
1307
|
+
// Annotations
|
|
1308
|
+
"& .apexcharts-xaxis-annotation-label, & .apexcharts-yaxis-annotation-label": {
|
|
1309
|
+
fill: theme.vars.palette.text.primary
|
|
1310
|
+
},
|
|
1311
|
+
"& .apexcharts-annotation-rect": {
|
|
1312
|
+
fill: varAlpha(theme.vars.palette.grey["500Channel"], 0.08)
|
|
1313
|
+
},
|
|
1314
|
+
// Point annotation
|
|
1315
|
+
"& .apexcharts-point-annotation-label": {
|
|
1316
|
+
fill: theme.vars.palette.text.primary,
|
|
1317
|
+
fontFamily: theme.typography.fontFamily
|
|
1318
|
+
},
|
|
1319
|
+
"& .apexcharts-point-annotation-marker": {
|
|
1320
|
+
stroke: theme.vars.palette.primary.main
|
|
1321
|
+
},
|
|
1322
|
+
// Toolbar icons (hidden by default, enable as needed)
|
|
1323
|
+
"& .apexcharts-toolbar": {
|
|
1324
|
+
"& .apexcharts-reset-icon, & .apexcharts-zoom-icon, & .apexcharts-zoomin-icon, & .apexcharts-zoomout-icon, & .apexcharts-pan-icon, & .apexcharts-selection-icon": {
|
|
1325
|
+
display: "none"
|
|
1326
|
+
}
|
|
1327
|
+
},
|
|
1328
|
+
// Treemap
|
|
1329
|
+
"& .apexcharts-treemap-rect": {
|
|
1330
|
+
stroke: theme.vars.palette.background.paper
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
});
|
|
1334
|
+
var getDefaultChartOptions = (theme) => ({
|
|
1335
|
+
chart: {
|
|
1336
|
+
toolbar: { show: false },
|
|
1337
|
+
zoom: { enabled: false },
|
|
1338
|
+
fontFamily: theme.typography.fontFamily,
|
|
1339
|
+
foreColor: theme.vars.palette.text.secondary
|
|
1340
|
+
},
|
|
1341
|
+
colors: [
|
|
1342
|
+
theme.vars.palette.primary.main,
|
|
1343
|
+
theme.vars.palette.info.main,
|
|
1344
|
+
theme.vars.palette.success.main,
|
|
1345
|
+
theme.vars.palette.warning.main,
|
|
1346
|
+
theme.vars.palette.error.main,
|
|
1347
|
+
theme.vars.palette.secondary.main
|
|
1348
|
+
],
|
|
1349
|
+
stroke: {
|
|
1350
|
+
width: 2.5,
|
|
1351
|
+
curve: "smooth",
|
|
1352
|
+
lineCap: "round"
|
|
1353
|
+
},
|
|
1354
|
+
grid: {
|
|
1355
|
+
strokeDashArray: 3,
|
|
1356
|
+
borderColor: theme.vars.palette.border.subtle,
|
|
1357
|
+
padding: { top: 0, right: 0, bottom: 0, left: 0 },
|
|
1358
|
+
xaxis: { lines: { show: false } },
|
|
1359
|
+
yaxis: { lines: { show: true } }
|
|
1360
|
+
},
|
|
1361
|
+
xaxis: {
|
|
1362
|
+
axisBorder: { show: false },
|
|
1363
|
+
axisTicks: { show: false },
|
|
1364
|
+
crosshairs: {
|
|
1365
|
+
show: true,
|
|
1366
|
+
stroke: {
|
|
1367
|
+
color: theme.vars.palette.primary.main,
|
|
1368
|
+
width: 2,
|
|
1369
|
+
dashArray: 5
|
|
1370
|
+
}
|
|
1371
|
+
},
|
|
1372
|
+
labels: {
|
|
1373
|
+
style: {
|
|
1374
|
+
colors: theme.vars.palette.text.secondary,
|
|
1375
|
+
fontSize: "12px",
|
|
1376
|
+
fontFamily: theme.typography.fontFamily
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
},
|
|
1380
|
+
yaxis: {
|
|
1381
|
+
crosshairs: {
|
|
1382
|
+
show: false
|
|
1383
|
+
},
|
|
1384
|
+
labels: {
|
|
1385
|
+
style: {
|
|
1386
|
+
colors: theme.vars.palette.text.secondary,
|
|
1387
|
+
fontSize: "12px",
|
|
1388
|
+
fontFamily: theme.typography.fontFamily
|
|
1389
|
+
}
|
|
1390
|
+
}
|
|
1391
|
+
},
|
|
1392
|
+
tooltip: {
|
|
1393
|
+
theme: "light",
|
|
1394
|
+
fillSeriesColor: false,
|
|
1395
|
+
x: { show: true },
|
|
1396
|
+
y: {
|
|
1397
|
+
formatter: (value) => value !== void 0 ? `${value}` : value,
|
|
1398
|
+
title: { formatter: (seriesName) => `${seriesName}: ` }
|
|
1399
|
+
},
|
|
1400
|
+
marker: { show: false }
|
|
1401
|
+
},
|
|
1402
|
+
legend: {
|
|
1403
|
+
show: true,
|
|
1404
|
+
position: "top",
|
|
1405
|
+
horizontalAlign: "right",
|
|
1406
|
+
fontSize: "13px",
|
|
1407
|
+
fontFamily: theme.typography.fontFamily,
|
|
1408
|
+
fontWeight: 500,
|
|
1409
|
+
markers: {
|
|
1410
|
+
size: 7,
|
|
1411
|
+
strokeWidth: 0
|
|
1412
|
+
},
|
|
1413
|
+
labels: {
|
|
1414
|
+
colors: theme.vars.palette.text.primary
|
|
1415
|
+
},
|
|
1416
|
+
itemMargin: {
|
|
1417
|
+
horizontal: 12,
|
|
1418
|
+
vertical: 0
|
|
1419
|
+
}
|
|
1420
|
+
},
|
|
1421
|
+
plotOptions: {
|
|
1422
|
+
bar: {
|
|
1423
|
+
borderRadius: 4,
|
|
1424
|
+
columnWidth: "40%",
|
|
1425
|
+
borderRadiusApplication: "end"
|
|
1426
|
+
},
|
|
1427
|
+
pie: {
|
|
1428
|
+
donut: {
|
|
1429
|
+
labels: {
|
|
1430
|
+
show: true,
|
|
1431
|
+
value: {
|
|
1432
|
+
fontWeight: 600,
|
|
1433
|
+
fontFamily: theme.typography.fontFamily
|
|
1434
|
+
},
|
|
1435
|
+
total: {
|
|
1436
|
+
show: true,
|
|
1437
|
+
fontFamily: theme.typography.fontFamily,
|
|
1438
|
+
label: "Total"
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
},
|
|
1443
|
+
radialBar: {
|
|
1444
|
+
track: {
|
|
1445
|
+
background: varAlpha(theme.vars.palette.grey["500Channel"], 0.16)
|
|
1446
|
+
},
|
|
1447
|
+
dataLabels: {
|
|
1448
|
+
value: {
|
|
1449
|
+
fontWeight: 600,
|
|
1450
|
+
fontFamily: theme.typography.fontFamily
|
|
1451
|
+
},
|
|
1452
|
+
total: {
|
|
1453
|
+
fontFamily: theme.typography.fontFamily
|
|
1454
|
+
}
|
|
1455
|
+
}
|
|
1456
|
+
},
|
|
1457
|
+
radar: {
|
|
1458
|
+
polygons: {
|
|
1459
|
+
fill: { colors: ["transparent"] },
|
|
1460
|
+
strokeColors: theme.vars.palette.border.subtle
|
|
1461
|
+
}
|
|
1462
|
+
},
|
|
1463
|
+
polarArea: {
|
|
1464
|
+
rings: {
|
|
1465
|
+
strokeColor: theme.vars.palette.border.subtle
|
|
1466
|
+
},
|
|
1467
|
+
spokes: {
|
|
1468
|
+
connectorColors: theme.vars.palette.border.subtle
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
},
|
|
1472
|
+
dataLabels: {
|
|
1473
|
+
enabled: false,
|
|
1474
|
+
dropShadow: { enabled: false },
|
|
1475
|
+
style: {
|
|
1476
|
+
fontFamily: theme.typography.fontFamily
|
|
1477
|
+
}
|
|
1478
|
+
},
|
|
1479
|
+
markers: {
|
|
1480
|
+
size: 4,
|
|
1481
|
+
strokeWidth: 0,
|
|
1482
|
+
hover: {
|
|
1483
|
+
size: 6,
|
|
1484
|
+
sizeOffset: 3,
|
|
1485
|
+
strokeWidth: 7
|
|
1486
|
+
}
|
|
1487
|
+
},
|
|
1488
|
+
fill: {
|
|
1489
|
+
opacity: 1
|
|
1490
|
+
},
|
|
1491
|
+
states: {
|
|
1492
|
+
hover: { filter: { type: "lighten", value: 0.04 } },
|
|
1493
|
+
active: { filter: { type: "darken", value: 0.88 } }
|
|
1494
|
+
},
|
|
1495
|
+
responsive: [
|
|
1496
|
+
{
|
|
1497
|
+
breakpoint: theme.breakpoints.values.sm,
|
|
1498
|
+
options: {
|
|
1499
|
+
plotOptions: {
|
|
1500
|
+
bar: { columnWidth: "60%" }
|
|
1501
|
+
}
|
|
1502
|
+
}
|
|
1503
|
+
}
|
|
1504
|
+
]
|
|
1505
|
+
});
|
|
1506
|
+
|
|
1219
1507
|
// src/theme/core/colors.json
|
|
1220
1508
|
var colors_default = {
|
|
1221
1509
|
primary: {
|
|
@@ -9526,6 +9814,7 @@ export {
|
|
|
9526
9814
|
XMark,
|
|
9527
9815
|
XMarkSolid,
|
|
9528
9816
|
action,
|
|
9817
|
+
apexChartsStyles,
|
|
9529
9818
|
background,
|
|
9530
9819
|
baseAction,
|
|
9531
9820
|
basePalette,
|
|
@@ -9552,6 +9841,7 @@ export {
|
|
|
9552
9841
|
fShortenNumber,
|
|
9553
9842
|
formatFullname,
|
|
9554
9843
|
getCurrencySymbol,
|
|
9844
|
+
getDefaultChartOptions,
|
|
9555
9845
|
getInitials,
|
|
9556
9846
|
getStorage,
|
|
9557
9847
|
grey,
|