@vertigis/react-ui 16.3.0 → 16.3.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertigis/react-ui",
3
- "version": "16.3.0",
3
+ "version": "16.3.1",
4
4
  "description": "Utilities and React components used in VertiGIS applications.",
5
5
  "keywords": [
6
6
  "vertigis",
@@ -1,5 +1,5 @@
1
1
  import type { Theme, ThemeOptions } from "@mui/material/styles";
2
- export type { default as GreyTheme } from "./themeAugmentation.js";
2
+ export type * from "../styles/themeAugmentation.js";
3
3
  export type { Theme, ThemeOptions };
4
4
  export interface CreateThemeOptions extends ThemeOptions {
5
5
  /**
package/styles/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export type * from "../styles/themeAugmentation.js";
1
2
  export { alpha, ThemeProvider as GcxThemeProvider, createStyles, darken, decomposeColor, duration, easing, emphasize, getContrastRatio, getLuminance, hexToRgb, hslToRgb, lighten, recomposeColor, responsiveFontSizes, rgbToHex, styled, useTheme, } from "@mui/material/styles";
2
3
  export type { ColorFormat, ColorObject, ComponentsPropsList, CSSObject, Duration, Easing, PaletteColorOptions, SimplePaletteColorOptions, Transitions, TransitionsOptions, TypographyStyle, TypographyVariant, } from "@mui/material/styles";
3
4
  export type { ThemeProviderProps } from "@mui/material/styles/ThemeProvider";
@@ -1,38 +1,4 @@
1
1
  import type { Theme, ThemeOptions } from "@mui/material/styles";
2
- declare module "@mui/material/styles" {
3
- interface Palette {
4
- custom: {
5
- /**
6
- * Emphasis that appears only when the user is in dark mode.
7
- */
8
- darkModeEmphasis: string;
9
- /**
10
- * A text color for error messages.
11
- */
12
- errorText: string;
13
- /**
14
- * A background for error messages.
15
- */
16
- errorBackground: string;
17
- /**
18
- * A light grey background color.
19
- */
20
- greyBackground: string;
21
- /**
22
- * A subtle grey outline.
23
- */
24
- greyOutline: string;
25
- /**
26
- * The inverse of either black or white, depending on the selected
27
- * mode.
28
- */
29
- negativeSpace: string;
30
- };
31
- }
32
- interface PaletteOptions {
33
- custom?: Partial<Palette["custom"]>;
34
- }
35
- }
36
2
  export declare const getPaletteOverrides: (palette: Theme["palette"]) => ThemeOptions["palette"];
37
3
  export declare const defaultPalette: {
38
4
  primary: import("@mui/material").Color;
@@ -1,5 +1,3 @@
1
- import { ComponentsProps, ComponentsOverrides, ComponentsVariants } from "@mui/material/styles";
2
-
3
1
  export * from "@mui/x-date-pickers-pro/themeAugmentation";
4
2
  export * from "@mui/x-date-pickers/themeAugmentation";
5
3
 
@@ -27,22 +25,40 @@ declare module "@mui/material" {
27
25
  dark?: string;
28
26
  }
29
27
  }
28
+ declare module "@mui/material/styles" {
29
+ interface Palette {
30
+ custom: {
31
+ /**
32
+ * Emphasis that appears only when the user is in dark mode.
33
+ */
34
+ darkModeEmphasis: string;
35
+ /**
36
+ * A text color for error messages.
37
+ */
38
+ errorText: string;
39
+ /**
40
+ * A background for error messages.
41
+ */
42
+ errorBackground: string;
43
+ /**
44
+ * A light grey background color.
45
+ */
46
+ greyBackground: string;
47
+ /**
48
+ * A subtle grey outline.
49
+ */
50
+ greyOutline: string;
51
+ /**
52
+ * The inverse of either black or white, depending on the selected
53
+ * mode.
54
+ */
55
+ negativeSpace: string;
56
+ };
57
+ }
30
58
 
31
- export default {};
32
-
33
- // TODO: For some reason, MUI's list of x-date-pickers components in the above
34
- // augmentation is incomplete. Remove these overrides if they ever fix this.
35
- export interface UndocumentedDatePickersComponents {
36
- MuiDateRangePicker?: {
37
- defaultProps?: ComponentsProps["MuiDateRangePicker"];
38
- styleOverrides?: ComponentsOverrides["MuiDateRangePicker"];
39
- };
40
- MuiTimePicker?: {
41
- defaultProps?: ComponentsProps["MuiTimePicker"];
42
- styleOverrides?: ComponentsOverrides["MuiTimePicker"];
43
- };
59
+ interface PaletteOptions {
60
+ custom?: Partial<Palette["custom"]>;
61
+ }
44
62
  }
45
63
 
46
- declare module "@mui/material/styles" {
47
- interface Components extends UndocumentedDatePickersComponents {}
48
- }
64
+ export default {};