@digital-ai/dot-components 2.21.0 → 2.22.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/index.esm.js
CHANGED
|
@@ -940,10 +940,11 @@ const typographyOptions = {
|
|
|
940
940
|
const breakpointOptions = {
|
|
941
941
|
values: {
|
|
942
942
|
xs: 0,
|
|
943
|
-
sm:
|
|
944
|
-
md:
|
|
945
|
-
lg:
|
|
946
|
-
xl:
|
|
943
|
+
sm: 540,
|
|
944
|
+
md: 720,
|
|
945
|
+
lg: 960,
|
|
946
|
+
xl: 1140,
|
|
947
|
+
xxl: 1320
|
|
947
948
|
}
|
|
948
949
|
};
|
|
949
950
|
// light colors by default
|
|
@@ -3627,7 +3628,7 @@ const DotCopyButton = ({
|
|
|
3627
3628
|
return _onClick(event);
|
|
3628
3629
|
}
|
|
3629
3630
|
return false;
|
|
3630
|
-
}, [_showCopiedIcon, _disabled, _onClick]);
|
|
3631
|
+
}, [value, _showCopiedIcon, _disabled, _onClick]);
|
|
3631
3632
|
return jsxs(StyledCopyButton, {
|
|
3632
3633
|
className: rootClassName$Q,
|
|
3633
3634
|
"data-testid": dataTestId,
|
|
@@ -3934,7 +3935,7 @@ const DotAppSwitcherView = ({
|
|
|
3934
3935
|
key: app.id
|
|
3935
3936
|
});
|
|
3936
3937
|
});
|
|
3937
|
-
const keys = Array.from(newAppTypeMap.keys()).sort();
|
|
3938
|
+
const keys = Array.from(newAppTypeMap.keys()).sort((a, b) => a.localeCompare(b));
|
|
3938
3939
|
const sortedAppTypeMap = new Map();
|
|
3939
3940
|
for (const appType of keys) {
|
|
3940
3941
|
const appTypeApps = newAppTypeMap.get(appType);
|
|
@@ -4563,7 +4564,7 @@ const DotAppToolbar = ({
|
|
|
4563
4564
|
const denseClass = _dense ? denseClassName : '';
|
|
4564
4565
|
const rootClasses = useStylesWithRootClass(rootClassName$L, className, denseClass, showMainMenu ? '' : 'without-menu-icon');
|
|
4565
4566
|
const mainMenuClasses = useStylesWithRootClass('dot-main-menu', denseClass, menuOpen ? 'open' : '');
|
|
4566
|
-
const targetBreakpoint = useMediaQuery(theme => theme.breakpoints.up('
|
|
4567
|
+
const targetBreakpoint = useMediaQuery(theme => theme.breakpoints.up('lg'));
|
|
4567
4568
|
useEffect(() => {
|
|
4568
4569
|
const handleInsideMenuClick = event => {
|
|
4569
4570
|
var _a, _b;
|
|
@@ -4707,7 +4708,7 @@ const StyledChip = styled(Chip).withConfig({
|
|
|
4707
4708
|
componentId: "f1tsra-0"
|
|
4708
4709
|
})(["", ""], ({
|
|
4709
4710
|
theme
|
|
4710
|
-
}) => css(["&.", "{background:", ";border-color:", ";color:", ";.dot-icon i{color:", ";height:auto;}.MuiChip-label{padding:", ";}&.MuiChip-sizeSmall{.dot-icon,.dot-avatar{width:18px;height:18px;}}&.Mui-error{background-color:", ";border-color:", ";.dot-icon i{color:", ";}.MuiChip-label{color:", ";}.MuiChip-deleteIcon{color:", ";}}&.Mui-disabled{background:", ";border-color:", " opacity:1;.dot-icon i{color:", ";}.MuiChip-deleteIcon,.MuiChip-label{color:", ";}}&:not(.Mui-error){&:hover{background-color:", ";}.MuiChip-deleteIcon:hover{color:", ";}}.MuiChip-deleteIcon{width:
|
|
4711
|
+
}) => css(["&.", "{background:", ";border-color:", ";color:", ";.dot-icon i{color:", ";height:auto;}.MuiChip-label{padding:", ";}&.MuiChip-sizeSmall{.dot-icon,.dot-avatar{width:18px;height:18px;}.dot-icon{margin-left:5px;}.dot-avatar{margin-left:3px;}.MuiChip-deleteIcon{width:17px;height:17px;margin-right:3px;}.MuiChip-label{padding:", ";}}&.Mui-error{background-color:", ";border-color:", ";.dot-icon i{color:", ";}.MuiChip-label{color:", ";}.MuiChip-deleteIcon{color:", ";}}&.Mui-disabled{background:", ";border-color:", " opacity:1;.dot-icon i{color:", ";}.MuiChip-deleteIcon,.MuiChip-label{color:", ";}}&:not(.Mui-error){&:hover{background-color:", ";}.MuiChip-deleteIcon:hover{color:", ";}}.MuiChip-deleteIcon{width:", ";height:", ";margin-right:", ";}.dot-icon{margin:", ";}.dot-avatar{margin-right:", ";}}"], rootClassName$J, theme.palette.figma.neutral.normal, theme.palette.figma.border.darker, theme.palette.figma.typography.black, theme.palette.figma.icon.black, theme.spacing(0, 1.5), theme.spacing(0, 1), theme.palette.figma.overlay.alerts.error.background, theme.palette.figma.overlay.alerts.error.icon, theme.palette.figma.overlay.alerts.custom.icon, theme.palette.figma.overlay.alerts.text.black, theme.palette.figma.overlay.alerts.error.icon, theme.palette.figma.disabled.normal, theme.palette.figma.border.default, theme.palette.figma.icon.disabled, theme.palette.figma.typography.disabled, theme.palette.figma.neutral.elevated, theme.palette.figma.icon.black, theme.spacing(3), theme.spacing(3), theme.spacing(0.5), theme.spacing(0, -0.5, 0, 1), theme.spacing(-0.5)));
|
|
4711
4712
|
|
|
4712
4713
|
const DEFAULT_CHARACTERS_LIMIT = 32;
|
|
4713
4714
|
const DotChip = ({
|
|
@@ -6091,22 +6092,29 @@ const breakpointsGetter$1 = (theme, columnsBreakpoints, columnGap, rowGap) => `$
|
|
|
6091
6092
|
}
|
|
6092
6093
|
${theme.breakpoints.up('xl')} {
|
|
6093
6094
|
column-gap: ${`${columnGap.xl}px`};
|
|
6094
|
-
grid-template-columns: ${frGetter(columnsBreakpoints.
|
|
6095
|
+
grid-template-columns: ${frGetter(columnsBreakpoints.xl)};
|
|
6095
6096
|
row-gap: ${`${rowGap.xl}px`};
|
|
6097
|
+
}
|
|
6098
|
+
${theme.breakpoints.up('xxl')} {
|
|
6099
|
+
column-gap: ${`${columnGap.xxl}px`};
|
|
6100
|
+
grid-template-columns: ${frGetter(columnsBreakpoints.xxl)};
|
|
6101
|
+
row-gap: ${`${rowGap.xxl}px`};
|
|
6096
6102
|
}`;
|
|
6097
6103
|
const defaultGutter = {
|
|
6098
6104
|
xs: 16,
|
|
6099
6105
|
sm: 16,
|
|
6100
6106
|
md: 24,
|
|
6101
6107
|
lg: 24,
|
|
6102
|
-
xl: 24
|
|
6108
|
+
xl: 24,
|
|
6109
|
+
xxl: 24
|
|
6103
6110
|
};
|
|
6104
6111
|
const defaultColumns = {
|
|
6105
6112
|
xs: 4,
|
|
6106
6113
|
sm: 8,
|
|
6107
6114
|
md: 12,
|
|
6108
6115
|
lg: 12,
|
|
6109
|
-
xl: 12
|
|
6116
|
+
xl: 12,
|
|
6117
|
+
xxl: 12
|
|
6110
6118
|
};
|
|
6111
6119
|
const Grid = ({
|
|
6112
6120
|
className,
|
|
@@ -6229,6 +6237,9 @@ const CssGridDebug = ({
|
|
|
6229
6237
|
if (getWidth() > theme.breakpoints.values.xl) {
|
|
6230
6238
|
setColumns(defaultColumns.xl);
|
|
6231
6239
|
}
|
|
6240
|
+
if (getWidth() > theme.breakpoints.values.xxl) {
|
|
6241
|
+
setColumns(defaultColumns.xxl);
|
|
6242
|
+
}
|
|
6232
6243
|
if (getWidth() < theme.breakpoints.values.sm) {
|
|
6233
6244
|
setColumns(defaultColumns.xs);
|
|
6234
6245
|
}
|
|
@@ -7846,7 +7857,7 @@ const StyledPill = styled(Chip).withConfig({
|
|
|
7846
7857
|
componentId: "l7oxi2-0"
|
|
7847
7858
|
})(["", ""], ({
|
|
7848
7859
|
theme
|
|
7849
|
-
}) => css(["&.", "{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";}&.MuiChip-outlined{&.error{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";}}&.success{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";}}&.warning{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";}}&.in-progress{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";}}}&.MuiChip-filled{&.error{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";}}&.success{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";}}&.warning{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";}}&.in-progress{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";}}}}"], rootClassName$o, ({
|
|
7860
|
+
}) => css(["&.", "{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";margin:", ";}&.MuiChip-sizeSmall .dot-icon{margin-left:5px;}&.MuiChip-outlined{&.error{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";}}&.success{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";}}&.warning{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";}}&.in-progress{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";}}}&.MuiChip-filled{&.error{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";}}&.success{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";}}&.warning{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";}}&.in-progress{background-color:", ";border-color:", ";color:", ";.dot-icon{color:", ";}}}}"], rootClassName$o, ({
|
|
7850
7861
|
backgroundcolor
|
|
7851
7862
|
}) => {
|
|
7852
7863
|
return backgroundcolor || theme.palette.grey[200];
|
|
@@ -7862,7 +7873,7 @@ const StyledPill = styled(Chip).withConfig({
|
|
|
7862
7873
|
labelcolor
|
|
7863
7874
|
}) => {
|
|
7864
7875
|
return labelcolor ? labelcolor : theme.palette.layer.n700;
|
|
7865
|
-
}, theme.palette.error[100], theme.palette.error.main, theme.palette.layer.n700, theme.palette.error.main, theme.palette.success[100], theme.palette.success.main, theme.palette.layer.n700, theme.palette.success.main, theme.palette.warning[100], theme.palette.warning.main, theme.palette.layer.n700, theme.palette.warning.main, theme.palette.primary[100], theme.palette.primary.main, theme.palette.layer.n700, theme.palette.primary.main, theme.palette.error.main, theme.palette.error.main, theme.palette.layer.n0, theme.palette.layer.n0, theme.palette.success.main, theme.palette.success.main, theme.palette.layer.n0, theme.palette.layer.n0, theme.palette.warning.main, theme.palette.warning.main, theme.palette.layer.n700, theme.palette.layer.n700, theme.palette.primary.main, theme.palette.primary.main, theme.palette.layer.n0, theme.palette.layer.n0));
|
|
7876
|
+
}, theme.spacing(0, -0.5, 0, 1), theme.palette.error[100], theme.palette.error.main, theme.palette.layer.n700, theme.palette.error.main, theme.palette.success[100], theme.palette.success.main, theme.palette.layer.n700, theme.palette.success.main, theme.palette.warning[100], theme.palette.warning.main, theme.palette.layer.n700, theme.palette.warning.main, theme.palette.primary[100], theme.palette.primary.main, theme.palette.layer.n700, theme.palette.primary.main, theme.palette.error.main, theme.palette.error.main, theme.palette.layer.n0, theme.palette.layer.n0, theme.palette.success.main, theme.palette.success.main, theme.palette.layer.n0, theme.palette.layer.n0, theme.palette.warning.main, theme.palette.warning.main, theme.palette.layer.n700, theme.palette.layer.n700, theme.palette.primary.main, theme.palette.primary.main, theme.palette.layer.n0, theme.palette.layer.n0));
|
|
7866
7877
|
|
|
7867
7878
|
const DotPill = ({
|
|
7868
7879
|
ariaLabel,
|
|
@@ -11104,4 +11115,4 @@ const DotCarousel = ({
|
|
|
11104
11115
|
});
|
|
11105
11116
|
};
|
|
11106
11117
|
|
|
11107
|
-
export { ApiError, Cell, CreateUUID, CssCell, CssGrid, CssGridDebug, DatePickerKeydownContext, Daytime, DotAccordion, DotActionToolbar, DotAlertBanner, DotAppLogo, DotAppSwitcher, DotAppToolbar, DotAutoComplete, DotAvatar, DotAvatarGroup, DotBadge, DotBreadcrumbs, DotButton, DotButtonToggle, DotCard, DotCardContent, DotCardFooter, DotCardHeader, DotCarousel, DotCheckbox, DotCheckboxGroup, DotChip, DotClickAwayListener, DotConfirmationDialog, DotCopyButton, DotCoreApiProvider, DotDatePicker, DotDialog, DotDivider, DotDraggableList, DotDrawer, DotDynamicForm, DotEmptyState, DotFileListItem, DotFileUpload, DotForm, DotFormGroup, DotHeaderRow, DotIcon, DotIconButton, DotInlineEdit, DotInputSelect, DotInputText, DotLinearProgress, DotLink, DotList, DotMenu, DotNavigationRail, DotPill, DotPopper, DotProgress, DotProgressButton, DotRadioButton, DotRadioGroup, DotSidebar, DotSkeleton, DotSnackbar, DotSnackbarContainer, DotSnackbarProvider, DotSplitButton, DotStepper, DotSwitch, DotTable, DotTableAction, DotTableActions, DotTablePagination, DotTabs, DotThemeProvider, DotTimePicker, DotTooltip, DotTruncateWithTooltip, DotTypography, avatarColors, checkIfValidDate, darkFigmaColors, lightThemeColors as lightColors, lightFigmaColors, mockScrollIntoView, parseAutoCompleteValue, variables as themeVariables, typographyOptions, useDotCoreApiContext, useDotSnackbarContext };
|
|
11118
|
+
export { ApiError, Cell, CreateUUID, CssCell, CssGrid, CssGridDebug, DatePickerKeydownContext, Daytime, DotAccordion, DotActionToolbar, DotAlertBanner, DotAppLogo, DotAppSwitcher, DotAppToolbar, DotAutoComplete, DotAvatar, DotAvatarGroup, DotBadge, DotBreadcrumbs, DotButton, DotButtonToggle, DotCard, DotCardContent, DotCardFooter, DotCardHeader, DotCarousel, DotCheckbox, DotCheckboxGroup, DotChip, DotClickAwayListener, DotConfirmationDialog, DotCopyButton, DotCoreApiProvider, DotDatePicker, DotDialog, DotDivider, DotDraggableList, DotDrawer, DotDynamicForm, DotEmptyState, DotFileListItem, DotFileUpload, DotForm, DotFormGroup, DotHeaderRow, DotIcon, DotIconButton, DotInlineEdit, DotInputSelect, DotInputText, DotLinearProgress, DotLink, DotList, DotMenu, DotNavigationRail, DotPill, DotPopper, DotProgress, DotProgressButton, DotRadioButton, DotRadioGroup, DotSidebar, DotSkeleton, DotSnackbar, DotSnackbarContainer, DotSnackbarProvider, DotSplitButton, DotStepper, DotSwitch, DotTable, DotTableAction, DotTableActions, DotTablePagination, DotTabs, DotThemeProvider, DotTimePicker, DotTooltip, DotTruncateWithTooltip, DotTypography, avatarColors, breakpointOptions, checkIfValidDate, darkFigmaColors, lightThemeColors as lightColors, lightFigmaColors, mockScrollIntoView, parseAutoCompleteValue, variables as themeVariables, typographyOptions, useDotCoreApiContext, useDotSnackbarContext };
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -3,5 +3,6 @@ export * as lightColors from './lib/theme-provider/colors/light-theme-colors';
|
|
|
3
3
|
export * from './lib/theme-provider/colors/figma-colors';
|
|
4
4
|
export * as themeVariables from './lib/theme-provider/common/variables';
|
|
5
5
|
export type { ThemeProviderProps } from './lib/theme-provider/ThemeProvider';
|
|
6
|
+
export { breakpointOptions } from './lib/theme-provider/ThemeProvider';
|
|
6
7
|
export { avatarColors, DotThemeProvider, typographyOptions, } from './lib/theme-provider/ThemeProvider';
|
|
7
8
|
export * from './lib/theme-provider/interfaces';
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { Theme } from '@mui/material';
|
|
3
3
|
import { TypographyOptions } from '@mui/material/styles/createTypography';
|
|
4
|
-
import { AvatarPaletteColorOptions, FigmaTheme, IconPaletteColorOptions, LayerPaletteColorOptions } from './interfaces';
|
|
4
|
+
import { AvatarPaletteColorOptions, BreakpointOptions, FigmaTheme, IconPaletteColorOptions, LayerPaletteColorOptions } from './interfaces';
|
|
5
|
+
declare module '@mui/material/styles' {
|
|
6
|
+
interface BreakpointOverrides {
|
|
7
|
+
xxl: true;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
5
10
|
declare module '@mui/material/styles/createPalette' {
|
|
6
11
|
interface Palette {
|
|
7
12
|
layer: LayerPaletteColorOptions;
|
|
@@ -17,6 +22,7 @@ declare module '@mui/material/styles/createPalette' {
|
|
|
17
22
|
}
|
|
18
23
|
export type ThemeOptions = 'light' | 'dark';
|
|
19
24
|
export declare const typographyOptions: TypographyOptions;
|
|
25
|
+
export declare const breakpointOptions: BreakpointOptions;
|
|
20
26
|
export declare const avatarColors: AvatarPaletteColorOptions;
|
|
21
27
|
export declare const darkTheme: Theme;
|
|
22
28
|
export declare const lightTheme: Theme;
|