@ncino/styles 10.4.0 → 10.5.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.
@@ -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 y from "./components/dialog.js";
11
- import * as _ from "./components/fab.js";
12
- import * as b from "./components/form-control.js";
13
- import * as u from "./components/menu.js";
14
- import * as F from "./components/radio.js";
15
- import * as W from "./components/select.js";
16
- import * as S from "./components/switch.js";
17
- import * as v from "./components/table.js";
18
- import * as x from "./components/tabs.js";
19
- import * as z from "./components/text-field.js";
20
- import * as H from "./components/toggle-button.js";
21
- import { createTheme as O } from "@mui/material/styles";
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 B, gatorBorderRadius as k, gatorSpacingScale as w, gatorTypography as t, gatorLineHeightScale as e, gatorFontSizeScale as n, gatorColorValues as o } from "./utils/themeConfig.js";
25
- const M = /* @__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": y, "./components/fab.ts": _, "./components/form-control.ts": b, "./components/menu.ts": u, "./components/radio.ts": F, "./components/select.ts": W, "./components/switch.ts": S, "./components/table.ts": v, "./components/tabs.ts": x, "./components/text-field.ts": z, "./components/toggle-button.ts": H }), T = Object.values(M).reduce((i, r) => (Object.keys(r).forEach((a) => {
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), {}), j = {
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) => w[i] ?? `${i * 8}px`,
159
+ spacing: (i) => M[i] ?? `${i * 8}px`,
159
160
  shape: {
160
- borderRadius: k.xsmall
161
+ borderRadius: w.xsmall
161
162
  },
162
- shadows: B,
163
+ shadows: k,
163
164
  // Component-specific default props
164
165
  components: {
165
166
  // Component overrides
166
- ...T,
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
- }, I = O(j);
182
+ }, U = B(C);
182
183
  export {
183
- I as default,
184
- I as gatorMUITheme
184
+ U as default,
185
+ U as gatorMUITheme
185
186
  };
@@ -16,6 +16,16 @@ const t = {
16
16
  boxShadow: o.shadows[2]
17
17
  }
18
18
  }),
19
+ startIcon: ({ theme: o }) => ({
20
+ marginRight: o.spacing(5),
21
+ height: "18px",
22
+ width: "18px"
23
+ }),
24
+ endIcon: ({ theme: o }) => ({
25
+ marginLeft: o.spacing(5),
26
+ height: "18px",
27
+ width: "18px"
28
+ }),
19
29
  sizeLarge: ({ theme: o }) => ({
20
30
  height: "3rem",
21
31
  minWidth: "6rem",
@@ -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
+ };
@@ -16,6 +16,16 @@ export declare const MUIGatorButtonOverrides: {
16
16
  boxShadow: any;
17
17
  };
18
18
  };
19
+ startIcon: ({ theme }: any) => {
20
+ marginRight: any;
21
+ height: string;
22
+ width: string;
23
+ };
24
+ endIcon: ({ theme }: any) => {
25
+ marginLeft: any;
26
+ height: string;
27
+ width: string;
28
+ };
19
29
  sizeLarge: ({ theme }: any) => {
20
30
  height: string;
21
31
  minWidth: string;
@@ -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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ncino/styles",
3
3
  "author": "nCino",
4
- "version": "10.4.0",
4
+ "version": "10.5.1",
5
5
  "description": "nCino Shared Web Component Styling",
6
6
  "license": "(c) Copyright 2023 nCino, Inc., all rights reserved",
7
7
  "publishConfig": {