@comet/admin 9.0.0-canary-20251209132220 → 9.0.0-canary-20251211112608
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/lib/alert/Alert.d.ts +3 -1
- package/lib/alert/Alert.d.ts.map +1 -1
- package/lib/alert/Alert.js +3 -1
- package/lib/common/buttons/cancel/CancelButton.d.ts +1 -2
- package/lib/common/buttons/cancel/CancelButton.d.ts.map +1 -1
- package/lib/dataGrid/muiGridSortToGql.js +1 -1
- package/lib/form/FieldContainer.d.ts.map +1 -1
- package/lib/form/FieldContainer.js +1 -1
- package/lib/helpers/createComponentSlot.d.ts +1 -1
- package/lib/helpers/createComponentSlot.d.ts.map +1 -1
- package/lib/index.d.ts +157 -157
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +208 -1701
- package/lib/snackbar/UndoSnackbar.d.ts.map +1 -1
- package/lib/theme/colors.d.ts +3 -2
- package/lib/theme/colors.d.ts.map +1 -1
- package/lib/theme/colors.js +3 -0
- package/lib/theme/shadows.d.ts +1 -1
- package/lib/theme/shadows.d.ts.map +1 -1
- package/lib/theme/typographyOptions.d.ts +1 -1
- package/lib/theme/typographyOptions.d.ts.map +1 -1
- package/lib/theme/typographyOptions.js +10 -1
- package/lib/theme/utils/mergeOverrideStyles.d.ts +6 -2
- package/lib/theme/utils/mergeOverrideStyles.d.ts.map +1 -1
- package/lib/theme/utils/mergeOverrideStyles.js +2 -0
- package/package.json +14 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UndoSnackbar.d.ts","sourceRoot":"","sources":["../../src/snackbar/UndoSnackbar.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"UndoSnackbar.d.ts","sourceRoot":"","sources":["../../src/snackbar/UndoSnackbar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoC,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AACrF,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAOvC,MAAM,WAAW,iBAAiB,CAAC,OAAO,CAAE,SAAQ,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAC;IAC7E,OAAO,EAAE,SAAS,CAAC;IACnB,WAAW,EAAE,CAAC,OAAO,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,YAAY,GAAI,OAAO,EAAG,oCAAoC,iBAAiB,CAAC,OAAO,CAAC,4CAqBpG,CAAC"}
|
package/lib/theme/colors.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { type PaletteColor, type SimplePaletteColorOptions } from "@mui/material/styles";
|
|
2
|
-
import { type ColorPartial } from "@mui/material/styles/createPalette";
|
|
1
|
+
import { type Color, type PaletteColor, type SimplePaletteColorOptions } from "@mui/material/styles";
|
|
3
2
|
export declare const primaryPalette: PaletteColor;
|
|
4
3
|
export declare const secondaryPalette: {
|
|
5
4
|
light: string;
|
|
@@ -11,5 +10,7 @@ export declare const errorPalette: SimplePaletteColorOptions;
|
|
|
11
10
|
export declare const warningPalette: SimplePaletteColorOptions;
|
|
12
11
|
export declare const infoPalette: SimplePaletteColorOptions;
|
|
13
12
|
export declare const successPalette: SimplePaletteColorOptions;
|
|
13
|
+
type ColorPartial = Partial<Color>;
|
|
14
14
|
export declare const greyPalette: ColorPartial;
|
|
15
|
+
export {};
|
|
15
16
|
//# sourceMappingURL=colors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/theme/colors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/theme/colors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,YAAY,EAAE,KAAK,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAErG,eAAO,MAAM,cAAc,EAAE,YAK5B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;CAK5B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,yBAK1B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,yBAK5B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,yBAAiD,CAAC;AAE5E,eAAO,MAAM,cAAc,EAAE,yBAK5B,CAAC;AAGF,KAAK,YAAY,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;AAEnC,eAAO,MAAM,WAAW,EAAE,YAezB,CAAC"}
|
package/lib/theme/colors.js
CHANGED
|
@@ -41,6 +41,9 @@ var successPalette = exports.successPalette = {
|
|
|
41
41
|
dark: "#0E8E23",
|
|
42
42
|
contrastText: "#000000"
|
|
43
43
|
};
|
|
44
|
+
|
|
45
|
+
// Copied from https://github.com/mui/material-ui/blob/d70a45a3f2cc87521b5822bbe2b40b9b054c22f9/packages/mui-material/src/styles/createPalette.d.ts#L27
|
|
46
|
+
|
|
44
47
|
var greyPalette = exports.greyPalette = {
|
|
45
48
|
50: "#F2F2F2",
|
|
46
49
|
100: "#D9D9D9",
|
package/lib/theme/shadows.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shadows.d.ts","sourceRoot":"","sources":["../../src/theme/shadows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"shadows.d.ts","sourceRoot":"","sources":["../../src/theme/shadows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,eAAO,MAAM,OAAO,EAAE,OA0BrB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Breakpoints } from "@mui/material";
|
|
2
|
-
import { type TypographyVariantsOptions } from "@mui/material/styles
|
|
2
|
+
import { type TypographyVariantsOptions } from "@mui/material/styles";
|
|
3
3
|
import { type CSSProperties } from "react";
|
|
4
4
|
export declare const createTypographyOptions: (breakpoints: Breakpoints) => TypographyVariantsOptions;
|
|
5
5
|
declare module "@mui/material/styles" {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typographyOptions.d.ts","sourceRoot":"","sources":["../../src/theme/typographyOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"typographyOptions.d.ts","sourceRoot":"","sources":["../../src/theme/typographyOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAI3C,eAAO,MAAM,uBAAuB,GAAI,aAAa,WAAW,KAAG,yBAsIjE,CAAC;AAEH,OAAO,QAAQ,sBAAsB,CAAC;IAClC,UAAU,kBAAkB;QACxB,IAAI,EAAE,aAAa,CAAC;QACpB,QAAQ,EAAE,aAAa,CAAC;KAC3B;IAED,UAAU,yBAAyB;QAC/B,IAAI,CAAC,EAAE,aAAa,CAAC;QACrB,QAAQ,CAAC,EAAE,aAAa,CAAC;KAC5B;CACJ;AAED,OAAO,QAAQ,0BAA0B,CAAC;IACtC,UAAU,+BAA+B;QACrC,IAAI,EAAE,IAAI,CAAC;QACX,QAAQ,EAAE,IAAI,CAAC;KAClB;CACJ"}
|
|
@@ -120,6 +120,15 @@ var createTypographyOptions = exports.createTypographyOptions = function createT
|
|
|
120
120
|
paddingLeft: 0,
|
|
121
121
|
paddingTop: 4,
|
|
122
122
|
paddingBottom: 4
|
|
123
|
-
}
|
|
123
|
+
},
|
|
124
|
+
button: _defineProperty({
|
|
125
|
+
fontFamily: fontFamily,
|
|
126
|
+
fontSize: 16,
|
|
127
|
+
lineHeight: "20px",
|
|
128
|
+
fontWeight: 250,
|
|
129
|
+
textTransform: "none"
|
|
130
|
+
}, breakpoints.up("md"), {
|
|
131
|
+
lineHeight: "16px"
|
|
132
|
+
})
|
|
124
133
|
};
|
|
125
134
|
};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import { type ComponentNameToClassKey, type ComponentsPropsList } from "@mui/material/styles";
|
|
2
|
-
import { type OverridesStyleRules } from "@mui/material/styles/overrides";
|
|
1
|
+
import { type ComponentNameToClassKey, type ComponentsPropsList, type Interpolation } from "@mui/material/styles";
|
|
3
2
|
type ClassKey<ClassesName extends keyof ComponentNameToClassKey> = ComponentNameToClassKey[ClassesName];
|
|
3
|
+
type OverridesStyleRules<ClassKey extends string = string, ComponentName = keyof ComponentsPropsList, Theme = unknown> = Record<ClassKey, Interpolation<(ComponentName extends keyof ComponentsPropsList ? ComponentsPropsList[ComponentName] & Record<string, unknown> & {
|
|
4
|
+
ownerState: ComponentsPropsList[ComponentName] & Record<string, unknown>;
|
|
5
|
+
} : {}) & {
|
|
6
|
+
theme: Theme;
|
|
7
|
+
} & Record<string, unknown>>>;
|
|
4
8
|
export declare function mergeOverrideStyles<ComponentName extends keyof ComponentNameToClassKey & keyof ComponentsPropsList>(passedIn?: Partial<OverridesStyleRules<ClassKey<ComponentName>>>, comet?: Partial<OverridesStyleRules<ClassKey<ComponentName>>>): Partial<OverridesStyleRules<ClassKey<ComponentName>>>;
|
|
5
9
|
export declare function mergeOverrideStyles<TStyleOverrides extends Record<string, any>>(passedIn?: Partial<TStyleOverrides>, comet?: Partial<TStyleOverrides>): Partial<TStyleOverrides>;
|
|
6
10
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mergeOverrideStyles.d.ts","sourceRoot":"","sources":["../../../src/theme/utils/mergeOverrideStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,uBAAuB,EAAE,KAAK,m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EAC3E,QAAQ,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,EACnC,KAAK,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,GACjC,OAAO,CAAC,eAAe,CAAC,CAAC"}
|
|
@@ -11,6 +11,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
11
11
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
12
12
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
13
13
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
14
|
+
// Copied from https://github.com/mui/material-ui/blob/d70a45a3f2cc87521b5822bbe2b40b9b054c22f9/packages/mui-material/src/styles/overrides.ts#L121-L139.
|
|
15
|
+
|
|
14
16
|
var getOverridesInterpolation = function getOverridesInterpolation(props, overrides) {
|
|
15
17
|
if (typeof overrides === "undefined") {
|
|
16
18
|
return {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comet/admin",
|
|
3
|
-
"version": "9.0.0-canary-
|
|
3
|
+
"version": "9.0.0-canary-20251211112608",
|
|
4
4
|
"description": "Comet Admin package",
|
|
5
5
|
"repository": {
|
|
6
6
|
"directory": "packages/admin/admin",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"lib"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@mui/utils": "^7.
|
|
18
|
+
"@mui/utils": "^7.3.5",
|
|
19
19
|
"date-fns": "^4.1.0",
|
|
20
20
|
"exceljs": "^4.4.0",
|
|
21
21
|
"file-saver": "^2.0.5",
|
|
@@ -26,18 +26,18 @@
|
|
|
26
26
|
"lodash.isequal": "^4.5.0",
|
|
27
27
|
"query-string": "^7.1.3",
|
|
28
28
|
"react-dropzone": "^14.3.8",
|
|
29
|
-
"use-constant": "^
|
|
29
|
+
"use-constant": "^2.0.0",
|
|
30
30
|
"uuid": "^11.1.0",
|
|
31
|
-
"@comet/admin-icons": "9.0.0-canary-
|
|
31
|
+
"@comet/admin-icons": "9.0.0-canary-20251211112608"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@apollo/client": "^3.
|
|
35
|
-
"@babel/cli": "^7.28.
|
|
36
|
-
"@babel/core": "^7.28.
|
|
34
|
+
"@apollo/client": "^3.14.0",
|
|
35
|
+
"@babel/cli": "^7.28.3",
|
|
36
|
+
"@babel/core": "^7.28.5",
|
|
37
37
|
"@emotion/react": "^11.14.0",
|
|
38
38
|
"@emotion/styled": "^11.14.1",
|
|
39
|
-
"@mui/material": "^7.
|
|
40
|
-
"@mui/system": "^7.
|
|
39
|
+
"@mui/material": "^7.3.5",
|
|
40
|
+
"@mui/system": "^7.3.5",
|
|
41
41
|
"@mui/x-data-grid": "^7.29.8",
|
|
42
42
|
"@mui/x-data-grid-pro": "^7.29.8",
|
|
43
43
|
"@mui/x-date-pickers": "^7.29.4",
|
|
@@ -78,14 +78,14 @@
|
|
|
78
78
|
"react-intl": "^7.1.11",
|
|
79
79
|
"react-router": "^5.3.4",
|
|
80
80
|
"react-router-dom": "^5.3.4",
|
|
81
|
-
"rimraf": "^6.
|
|
81
|
+
"rimraf": "^6.1.2",
|
|
82
82
|
"storybook": "^9.1.10",
|
|
83
83
|
"storybook-addon-tag-badges": "^2.0.1",
|
|
84
84
|
"ts-jest": "^29.4.0",
|
|
85
85
|
"typescript": "5.9.3",
|
|
86
|
-
"@comet/admin-babel-preset": "9.0.0-canary-
|
|
87
|
-
"@comet/eslint-config": "9.0.0-canary-
|
|
88
|
-
"@comet/eslint-plugin": "9.0.0-canary-
|
|
86
|
+
"@comet/admin-babel-preset": "9.0.0-canary-20251211112608",
|
|
87
|
+
"@comet/eslint-config": "9.0.0-canary-20251211112608",
|
|
88
|
+
"@comet/eslint-plugin": "9.0.0-canary-20251211112608"
|
|
89
89
|
},
|
|
90
90
|
"peerDependencies": {
|
|
91
91
|
"@apollo/client": "^3.7.0",
|
|
@@ -133,6 +133,7 @@
|
|
|
133
133
|
"build:types": "tsc --project ./tsconfig.build.json --emitDeclarationOnly",
|
|
134
134
|
"clean": "rimraf lib",
|
|
135
135
|
"lint": "run-p lint:prettier lint:eslint lint:tsc",
|
|
136
|
+
"lint:ci": "pnpm run lint",
|
|
136
137
|
"lint:eslint": "eslint --max-warnings 0 src/ **/*.json --no-warn-ignored",
|
|
137
138
|
"lint:prettier": "pnpm exec prettier --check './**/*.{js,json,md,yml,yaml}'",
|
|
138
139
|
"lint:tsc": "tsc --noEmit",
|