@ncino/styles 10.4.0 → 10.5.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.
|
@@ -7,24 +7,25 @@ import * as h from "./components/button.js";
|
|
|
7
7
|
import * as p from "./components/card.js";
|
|
8
8
|
import * as f from "./components/checkbox.js";
|
|
9
9
|
import * as d from "./components/chip.js";
|
|
10
|
-
import * as
|
|
11
|
-
import * as
|
|
12
|
-
import * as b from "./components/
|
|
13
|
-
import * as u from "./components/
|
|
14
|
-
import * as F from "./components/
|
|
15
|
-
import * as W from "./components/
|
|
16
|
-
import * as S from "./components/
|
|
17
|
-
import * as v from "./components/
|
|
18
|
-
import * as x from "./components/
|
|
19
|
-
import * as z from "./components/
|
|
20
|
-
import * as H from "./components/
|
|
21
|
-
import
|
|
10
|
+
import * as _ from "./components/dialog.js";
|
|
11
|
+
import * as y from "./components/drawer.js";
|
|
12
|
+
import * as b from "./components/fab.js";
|
|
13
|
+
import * as u from "./components/form-control.js";
|
|
14
|
+
import * as F from "./components/menu.js";
|
|
15
|
+
import * as W from "./components/radio.js";
|
|
16
|
+
import * as S from "./components/select.js";
|
|
17
|
+
import * as v from "./components/switch.js";
|
|
18
|
+
import * as x from "./components/table.js";
|
|
19
|
+
import * as z from "./components/tabs.js";
|
|
20
|
+
import * as H from "./components/text-field.js";
|
|
21
|
+
import * as O from "./components/toggle-button.js";
|
|
22
|
+
import { createTheme as B } from "@mui/material/styles";
|
|
22
23
|
/* empty css */
|
|
23
24
|
/* empty css */
|
|
24
|
-
import { gatorShadows as
|
|
25
|
-
const
|
|
25
|
+
import { gatorShadows as k, gatorBorderRadius as w, gatorSpacingScale as M, gatorTypography as t, gatorLineHeightScale as e, gatorFontSizeScale as n, gatorColorValues as o } from "./utils/themeConfig.js";
|
|
26
|
+
const T = /* @__PURE__ */ Object.assign({ "./components/accordion.ts": s, "./components/alert.ts": m, "./components/autocomplete.ts": l, "./components/avatar.ts": g, "./components/badge.ts": c, "./components/button.ts": h, "./components/card.ts": p, "./components/checkbox.ts": f, "./components/chip.ts": d, "./components/dialog.ts": _, "./components/drawer.ts": y, "./components/fab.ts": b, "./components/form-control.ts": u, "./components/menu.ts": F, "./components/radio.ts": W, "./components/select.ts": S, "./components/switch.ts": v, "./components/table.ts": x, "./components/tabs.ts": z, "./components/text-field.ts": H, "./components/toggle-button.ts": O }), j = Object.values(T).reduce((i, r) => (Object.keys(r).forEach((a) => {
|
|
26
27
|
a.startsWith("MUIGator") && a.includes("Override") && Object.assign(i, r[a]);
|
|
27
|
-
}), i), {}),
|
|
28
|
+
}), i), {}), C = {
|
|
28
29
|
palette: {
|
|
29
30
|
mode: "light",
|
|
30
31
|
primary: o.brand,
|
|
@@ -155,15 +156,15 @@ const M = /* @__PURE__ */ Object.assign({ "./components/accordion.ts": s, "./com
|
|
|
155
156
|
letterSpacing: 0
|
|
156
157
|
}
|
|
157
158
|
},
|
|
158
|
-
spacing: (i) =>
|
|
159
|
+
spacing: (i) => M[i] ?? `${i * 8}px`,
|
|
159
160
|
shape: {
|
|
160
|
-
borderRadius:
|
|
161
|
+
borderRadius: w.xsmall
|
|
161
162
|
},
|
|
162
|
-
shadows:
|
|
163
|
+
shadows: k,
|
|
163
164
|
// Component-specific default props
|
|
164
165
|
components: {
|
|
165
166
|
// Component overrides
|
|
166
|
-
...
|
|
167
|
+
...j,
|
|
167
168
|
// Additional component overrides not in separate files
|
|
168
169
|
MuiLink: {
|
|
169
170
|
styleOverrides: {
|
|
@@ -178,8 +179,8 @@ const M = /* @__PURE__ */ Object.assign({ "./components/accordion.ts": s, "./com
|
|
|
178
179
|
}
|
|
179
180
|
}
|
|
180
181
|
}
|
|
181
|
-
},
|
|
182
|
+
}, U = B(C);
|
|
182
183
|
export {
|
|
183
|
-
|
|
184
|
-
|
|
184
|
+
U as default,
|
|
185
|
+
U as gatorMUITheme
|
|
185
186
|
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { gatorTypography as r, gatorFontSizeScale as a } from "../utils/themeConfig.js";
|
|
2
|
+
const n = {
|
|
3
|
+
MuiDrawer: {
|
|
4
|
+
styleOverrides: {
|
|
5
|
+
root: {
|
|
6
|
+
".MuiModal-backdrop": {
|
|
7
|
+
backgroundColor: "transparent"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
paper: ({ theme: o }) => ({
|
|
11
|
+
background: o.palette.background.default,
|
|
12
|
+
backgroundImage: "none",
|
|
13
|
+
width: "29.5rem",
|
|
14
|
+
display: "flex",
|
|
15
|
+
flexDirection: "column",
|
|
16
|
+
boxShadow: o.shadows[4],
|
|
17
|
+
border: "none",
|
|
18
|
+
// Bottom anchor
|
|
19
|
+
"&.MuiDrawer-paperAnchorBottom": {
|
|
20
|
+
width: "100%",
|
|
21
|
+
height: "29.5rem"
|
|
22
|
+
},
|
|
23
|
+
// Top anchor
|
|
24
|
+
"&.MuiDrawer-paperAnchorTop": {
|
|
25
|
+
width: "100%",
|
|
26
|
+
height: "29.5rem"
|
|
27
|
+
},
|
|
28
|
+
// -------------------------------------------------------
|
|
29
|
+
// Panel sub-region slots
|
|
30
|
+
// Mirror gator-panel-header / gator-panel-content / gator-panel-footer
|
|
31
|
+
// Usage: add className="gator-panel-header" etc. to your child elements
|
|
32
|
+
// -------------------------------------------------------
|
|
33
|
+
"& .gator-panel-header": {
|
|
34
|
+
borderBottom: `1px solid ${o.palette.divider}`,
|
|
35
|
+
padding: o.spacing(8),
|
|
36
|
+
fontSize: a.heading3,
|
|
37
|
+
fontWeight: r.fontWeight.semiBold,
|
|
38
|
+
fontFamily: r.fontFamily.headings,
|
|
39
|
+
flexShrink: 0
|
|
40
|
+
},
|
|
41
|
+
"& .gator-panel-content": {
|
|
42
|
+
flex: "1 0 0",
|
|
43
|
+
display: "flex",
|
|
44
|
+
flexDirection: "column",
|
|
45
|
+
overflowY: "auto",
|
|
46
|
+
padding: o.spacing(8),
|
|
47
|
+
gap: o.spacing(8)
|
|
48
|
+
},
|
|
49
|
+
"& .gator-panel-footer": {
|
|
50
|
+
padding: o.spacing(8),
|
|
51
|
+
background: o.palette.background.paper,
|
|
52
|
+
flexShrink: 0
|
|
53
|
+
}
|
|
54
|
+
}),
|
|
55
|
+
// Docked variant (persistent / permanent) — suppress shadow
|
|
56
|
+
// Higher specificity (.MuiDrawer-docked .MuiDrawer-paper) wins over anchor classes
|
|
57
|
+
docked: {
|
|
58
|
+
"& .MuiDrawer-paper": {
|
|
59
|
+
boxShadow: "none"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
export {
|
|
66
|
+
n as MUIGatorDrawerOverrides
|
|
67
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export declare const MUIGatorDrawerOverrides: {
|
|
2
|
+
MuiDrawer: {
|
|
3
|
+
styleOverrides: {
|
|
4
|
+
root: {
|
|
5
|
+
'.MuiModal-backdrop': {
|
|
6
|
+
backgroundColor: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
paper: ({ theme }: {
|
|
10
|
+
theme: any;
|
|
11
|
+
}) => {
|
|
12
|
+
background: any;
|
|
13
|
+
backgroundImage: string;
|
|
14
|
+
width: string;
|
|
15
|
+
display: string;
|
|
16
|
+
flexDirection: string;
|
|
17
|
+
boxShadow: any;
|
|
18
|
+
border: string;
|
|
19
|
+
'&.MuiDrawer-paperAnchorBottom': {
|
|
20
|
+
width: string;
|
|
21
|
+
height: string;
|
|
22
|
+
};
|
|
23
|
+
'&.MuiDrawer-paperAnchorTop': {
|
|
24
|
+
width: string;
|
|
25
|
+
height: string;
|
|
26
|
+
};
|
|
27
|
+
'& .gator-panel-header': {
|
|
28
|
+
borderBottom: string;
|
|
29
|
+
padding: any;
|
|
30
|
+
fontSize: string;
|
|
31
|
+
fontWeight: number;
|
|
32
|
+
fontFamily: string;
|
|
33
|
+
flexShrink: number;
|
|
34
|
+
};
|
|
35
|
+
'& .gator-panel-content': {
|
|
36
|
+
flex: string;
|
|
37
|
+
display: string;
|
|
38
|
+
flexDirection: string;
|
|
39
|
+
overflowY: string;
|
|
40
|
+
padding: any;
|
|
41
|
+
gap: any;
|
|
42
|
+
};
|
|
43
|
+
'& .gator-panel-footer': {
|
|
44
|
+
padding: any;
|
|
45
|
+
background: any;
|
|
46
|
+
flexShrink: number;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
docked: {
|
|
50
|
+
'& .MuiDrawer-paper': {
|
|
51
|
+
boxShadow: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
};
|
package/package.json
CHANGED