@ncino/styles 9.2.0-preview.3 → 9.2.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/README.md +159 -0
- package/dist/gator/themes/MUIGatorTheme.js +183 -0
- package/dist/gator/themes/components/accordion.js +68 -0
- package/dist/gator/themes/components/alert.js +55 -0
- package/dist/gator/themes/components/autocomplete.js +139 -0
- package/dist/gator/themes/components/avatar.js +49 -0
- package/dist/gator/themes/components/badge.js +53 -0
- package/dist/gator/themes/components/button.js +65 -0
- package/dist/gator/themes/components/card.js +190 -0
- package/dist/gator/themes/components/checkbox.js +69 -0
- package/dist/gator/themes/components/chip.js +220 -0
- package/dist/gator/themes/components/dialog.js +61 -0
- package/dist/gator/themes/components/fab.js +77 -0
- package/dist/gator/themes/components/form-control.js +97 -0
- package/dist/gator/themes/components/radio.js +43 -0
- package/dist/gator/themes/components/select.js +69 -0
- package/dist/gator/themes/components/switch.js +113 -0
- package/dist/gator/themes/components/table.js +178 -0
- package/dist/gator/themes/components/tabs.js +150 -0
- package/dist/gator/themes/components/text-field.js +103 -0
- package/dist/gator/themes/utils/themeConfig.js +155 -0
- package/dist/gator/tokens/primitive-inline.js +4 -0
- package/dist/gator/tokens/primitive.tokens.css.js +4 -0
- package/dist/gator/tokens/semantic-inline.js +4 -0
- package/dist/gator/tokens/semantic.tokens.css.js +4 -0
- package/dist/gator/types/mui-augmentations.js +1 -0
- package/dist/index.js +5 -0
- package/dist/styles.css +1 -0
- package/dist/types/gator/themes/MUIGatorTheme.d.ts +6 -0
- package/dist/types/gator/themes/components/accordion.d.ts +65 -0
- package/dist/types/gator/themes/components/alert.d.ts +51 -0
- package/dist/types/gator/themes/components/autocomplete.d.ts +127 -0
- package/dist/types/gator/themes/components/avatar.d.ts +63 -0
- package/dist/types/gator/themes/components/badge.d.ts +42 -0
- package/dist/types/gator/themes/components/button.d.ts +61 -0
- package/dist/types/gator/themes/components/card.d.ts +193 -0
- package/dist/types/gator/themes/components/checkbox.d.ts +61 -0
- package/dist/types/gator/themes/components/chip.d.ts +201 -0
- package/dist/types/gator/themes/components/dialog.d.ts +58 -0
- package/dist/types/gator/themes/components/fab.d.ts +78 -0
- package/dist/types/gator/themes/components/form-control.d.ts +86 -0
- package/dist/types/gator/themes/components/radio.d.ts +45 -0
- package/dist/types/gator/themes/components/select.d.ts +64 -0
- package/dist/types/gator/themes/components/switch.d.ts +105 -0
- package/dist/types/gator/themes/components/table.d.ts +170 -0
- package/dist/types/gator/themes/components/tabs.d.ts +163 -0
- package/dist/types/gator/themes/components/text-field.d.ts +100 -0
- package/dist/types/gator/themes/utils/themeConfig.d.ts +92 -0
- package/dist/types/gator/tokens/primitive-inline.d.ts +2 -0
- package/dist/types/gator/tokens/semantic-inline.d.ts +2 -0
- package/dist/types/gator/types/mui-augmentations.d.ts +49 -0
- package/dist/types/index.d.ts +6 -0
- package/package.json +50 -10
- package/src/gator/themes/MUIGatorTheme.ts +0 -237
- package/src/gator/themes/components/accordion.ts +0 -67
- package/src/gator/themes/components/alert.ts +0 -53
- package/src/gator/themes/components/autocomplete.ts +0 -156
- package/src/gator/themes/components/avatar.ts +0 -65
- package/src/gator/themes/components/badge.ts +0 -55
- package/src/gator/themes/components/button.ts +0 -74
- package/src/gator/themes/components/card.ts +0 -202
- package/src/gator/themes/components/checkbox.ts +0 -73
- package/src/gator/themes/components/chip.ts +0 -270
- package/src/gator/themes/components/dialog.ts +0 -62
- package/src/gator/themes/components/form-control.ts +0 -103
- package/src/gator/themes/components/radio.ts +0 -53
- package/src/gator/themes/components/select.ts +0 -74
- package/src/gator/themes/components/switch.ts +0 -145
- package/src/gator/themes/components/table.ts +0 -200
- package/src/gator/themes/components/tabs.ts +0 -167
- package/src/gator/themes/components/text-field.ts +0 -100
- package/src/gator/themes/utils/themeConfig.ts +0 -111
- package/src/gator/types/mui-augmentations.d.ts +0 -27
- /package/{src → dist}/gator/_fonts.css +0 -0
- /package/{src → dist}/gator/_gator-grid.css +0 -0
- /package/{src → dist}/gator/_gator-sizing.css +0 -0
- /package/{src → dist}/gator/_gator-typography.css +0 -0
- /package/{src → dist}/gator/fonts/OpenSans-VariableFont.woff2 +0 -0
- /package/{src → dist}/gator/gator-global-styles.css +0 -0
- /package/{src → dist}/gator/tokens/_gator-global-tokens.css +0 -0
- /package/{src → dist}/gator/tokens/primitive.tokens.css +0 -0
- /package/{src → dist}/gator/tokens/semantic.tokens.css +0 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import "@mui/material/Fab";
|
|
2
|
+
const o = {
|
|
3
|
+
MuiFab: {
|
|
4
|
+
defaultProps: {
|
|
5
|
+
disableRipple: !0,
|
|
6
|
+
color: "primary",
|
|
7
|
+
size: "small"
|
|
8
|
+
},
|
|
9
|
+
styleOverrides: {
|
|
10
|
+
root: {
|
|
11
|
+
boxShadow: "var(--shadow-1-card)",
|
|
12
|
+
textTransform: "none",
|
|
13
|
+
padding: "var(--spacing-8)",
|
|
14
|
+
height: "fit-content",
|
|
15
|
+
width: "fit-content",
|
|
16
|
+
"&:hover": {
|
|
17
|
+
boxShadow: "var(--shadow-2-card-raised)",
|
|
18
|
+
backgroundColor: "var(--color-feedback-brand-secondary, #0D2B45)"
|
|
19
|
+
},
|
|
20
|
+
"&:active": {
|
|
21
|
+
backgroundColor: "var(--color-feedback-brand-tertiary, #061622)"
|
|
22
|
+
},
|
|
23
|
+
"&.Mui-focusVisible": {
|
|
24
|
+
boxShadow: "none",
|
|
25
|
+
outline: "2px solid var(--ngc-fab-focus-outline-color, var(--color-border-focus))",
|
|
26
|
+
outlineOffset: "2px"
|
|
27
|
+
},
|
|
28
|
+
"&.Mui-disabled": {
|
|
29
|
+
backgroundColor: "var(--color-surface-disabled, #E5E5E5)",
|
|
30
|
+
color: "var(--color-icon-inverse, #FFFFFF)"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
primary: {
|
|
34
|
+
backgroundColor: "var(--color-feedback-brand, #103656)",
|
|
35
|
+
color: "var(--color-icon-inverse, #FFFFFF)"
|
|
36
|
+
},
|
|
37
|
+
sizeSmall: {
|
|
38
|
+
"& .MuiSvgIcon-root": {
|
|
39
|
+
fontSize: "1.125rem"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
sizeMedium: {
|
|
43
|
+
"& .MuiSvgIcon-root": {
|
|
44
|
+
fontSize: "1.5rem"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
sizeLarge: {
|
|
48
|
+
"& .MuiSvgIcon-root": {
|
|
49
|
+
fontSize: "2.25rem"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
circular: {
|
|
53
|
+
borderRadius: "var(--border-radius-circle, 50%)"
|
|
54
|
+
},
|
|
55
|
+
extended: {
|
|
56
|
+
borderRadius: "var(--border-radius-circle, 50%)",
|
|
57
|
+
padding: "0 var(--spacing-8)",
|
|
58
|
+
minWidth: "var(--spacing-12)",
|
|
59
|
+
height: "var(--spacing-12)",
|
|
60
|
+
gap: "var(--spacing-5)"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
variants: [
|
|
64
|
+
{
|
|
65
|
+
props: { size: "xlarge" },
|
|
66
|
+
style: {
|
|
67
|
+
"& .MuiSvgIcon-root": {
|
|
68
|
+
fontSize: "2.5rem"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
export {
|
|
76
|
+
o as MUIGatorFabOverrides
|
|
77
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { gatorTypography as o } from "../utils/themeConfig.js";
|
|
2
|
+
const e = {
|
|
3
|
+
MuiFormControl: {
|
|
4
|
+
styleOverrides: {
|
|
5
|
+
root: {
|
|
6
|
+
// Radio group label (legend)
|
|
7
|
+
"& .MuiFormLabel-root": {
|
|
8
|
+
fontFamily: o.fontFamily.body,
|
|
9
|
+
fontSize: "var(--font-size-body-1)",
|
|
10
|
+
lineHeight: "var(--line-height-body-1)",
|
|
11
|
+
color: "var(--color-text-primary)",
|
|
12
|
+
letterSpacing: "var(--letter-spacing-default)",
|
|
13
|
+
fontWeight: o.fontWeight.regular,
|
|
14
|
+
marginBottom: "8px",
|
|
15
|
+
position: "relative",
|
|
16
|
+
transform: "none",
|
|
17
|
+
"&.Mui-focused": {
|
|
18
|
+
color: "var(--color-text-primary)"
|
|
19
|
+
},
|
|
20
|
+
"&.Mui-disabled": {
|
|
21
|
+
color: "var(--color-text-disabled)"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
// Help text (FormHelperText)
|
|
25
|
+
"& .MuiFormHelperText-root": {
|
|
26
|
+
fontFamily: o.fontFamily.body,
|
|
27
|
+
fontSize: "var(--font-size-body-2)",
|
|
28
|
+
lineHeight: "var(--line-height-body-2)",
|
|
29
|
+
color: "var(--color-text-secondary)",
|
|
30
|
+
letterSpacing: "var(--letter-spacing-default)",
|
|
31
|
+
marginLeft: 0,
|
|
32
|
+
marginTop: "8px",
|
|
33
|
+
"&.Mui-error": {
|
|
34
|
+
color: "var(--color-text-error)"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
MuiFormLabel: {
|
|
41
|
+
styleOverrides: {
|
|
42
|
+
root: {
|
|
43
|
+
fontFamily: o.fontFamily.body,
|
|
44
|
+
fontSize: "var(--font-size-body-1)",
|
|
45
|
+
lineHeight: "var(--line-height-body-1)",
|
|
46
|
+
color: "var(--color-text-primary)",
|
|
47
|
+
letterSpacing: "var(--letter-spacing-default)",
|
|
48
|
+
fontWeight: o.fontWeight.regular,
|
|
49
|
+
"&.Mui-error": {
|
|
50
|
+
color: "var(--color-text-primary)"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
MuiFormControlLabel: {
|
|
56
|
+
styleOverrides: {
|
|
57
|
+
root: {
|
|
58
|
+
marginLeft: 0,
|
|
59
|
+
marginRight: 0,
|
|
60
|
+
gap: "4px",
|
|
61
|
+
alignItems: "center",
|
|
62
|
+
// Label styling
|
|
63
|
+
"& .MuiFormControlLabel-label": {
|
|
64
|
+
fontFamily: o.fontFamily.body,
|
|
65
|
+
fontSize: "var(--font-size-body-1)",
|
|
66
|
+
lineHeight: "var(--line-height-body-1)",
|
|
67
|
+
color: "var(--color-text-primary)",
|
|
68
|
+
letterSpacing: "var(--letter-spacing-default)",
|
|
69
|
+
paddingTop: "0px"
|
|
70
|
+
// Aligns with center of radio
|
|
71
|
+
},
|
|
72
|
+
// Disabled label
|
|
73
|
+
"&.Mui-disabled .MuiFormControlLabel-label": {
|
|
74
|
+
color: "var(--color-text-disabled)"
|
|
75
|
+
},
|
|
76
|
+
// Error label
|
|
77
|
+
"&.Mui-error .MuiFormLabel-root": {
|
|
78
|
+
color: "var(--color-text-primary)"
|
|
79
|
+
},
|
|
80
|
+
// Checkbox adjustment
|
|
81
|
+
"& .MuiCheckbox-root": {
|
|
82
|
+
marginLeft: "-5px"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
MuiFormGroup: {
|
|
88
|
+
styleOverrides: {
|
|
89
|
+
root: {
|
|
90
|
+
gap: "8px"
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
export {
|
|
96
|
+
e as MUIGatorFormControlOverrides
|
|
97
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const r = {
|
|
2
|
+
MuiRadio: {
|
|
3
|
+
defaultProps: {
|
|
4
|
+
disableFocusRipple: !0,
|
|
5
|
+
disableTouchRipple: !0
|
|
6
|
+
},
|
|
7
|
+
styleOverrides: {
|
|
8
|
+
root: {
|
|
9
|
+
padding: "3px",
|
|
10
|
+
// Centers the 18px radio in a 24px container
|
|
11
|
+
color: "var(--color-border-primary)",
|
|
12
|
+
"&:hover svg": {
|
|
13
|
+
fill: "var(--color-border-brand)"
|
|
14
|
+
},
|
|
15
|
+
"&.Mui-focusVisible": {
|
|
16
|
+
outline: "3px solid var(--color-border-focus)",
|
|
17
|
+
outlineOffset: "-2px"
|
|
18
|
+
},
|
|
19
|
+
"&.Mui-checked": {
|
|
20
|
+
color: "var(--color-border-brand)"
|
|
21
|
+
},
|
|
22
|
+
"&.Mui-disabled": {
|
|
23
|
+
color: "var(--color-border-disabled)"
|
|
24
|
+
},
|
|
25
|
+
".Mui-error &": {
|
|
26
|
+
color: "var(--color-feedback-error-secondary)",
|
|
27
|
+
"&:hover": {
|
|
28
|
+
backgroundColor: "var(--color-surface-error)"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
".Mui-error &.Mui-checked": {
|
|
32
|
+
color: "var(--color-feedback-error-secondary)"
|
|
33
|
+
},
|
|
34
|
+
".Mui-error &:hover svg": {
|
|
35
|
+
fill: "var(--color-feedback-error-secondary)"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
export {
|
|
42
|
+
r as MUIGatorRadioOverrides
|
|
43
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { gatorTypography as o } from "../utils/themeConfig.js";
|
|
2
|
+
import r from "@mui/icons-material/ExpandMore";
|
|
3
|
+
const i = {
|
|
4
|
+
MuiSelect: {
|
|
5
|
+
defaultProps: {
|
|
6
|
+
MenuProps: {
|
|
7
|
+
PaperProps: {
|
|
8
|
+
sx: {
|
|
9
|
+
backgroundColor: "var(--color-surface-primary)",
|
|
10
|
+
maxHeight: "14rem",
|
|
11
|
+
marginTop: "var(--spacing-3)",
|
|
12
|
+
borderRadius: "var(--border-radius-medium)",
|
|
13
|
+
boxShadow: "var(--shadow-3-dropdown)",
|
|
14
|
+
"& .MuiMenuItem-root": {
|
|
15
|
+
padding: "var(--spacing-5) var(--spacing-12)",
|
|
16
|
+
minHeight: "40px",
|
|
17
|
+
fontFamily: o.fontFamily.body,
|
|
18
|
+
fontSize: "var(--font-size-body-1)",
|
|
19
|
+
lineHeight: "var(--line-height-body-1)",
|
|
20
|
+
color: "var(--color-text-primary)",
|
|
21
|
+
"&:hover": {
|
|
22
|
+
backgroundColor: "var(--color-surface-hover)"
|
|
23
|
+
},
|
|
24
|
+
"&.Mui-focusVisible": {
|
|
25
|
+
outline: "2px solid var(--color-border-focus)",
|
|
26
|
+
outlineOffset: "-2px",
|
|
27
|
+
backgroundColor: "transparent"
|
|
28
|
+
},
|
|
29
|
+
"&.Mui-selected": {
|
|
30
|
+
backgroundColor: "var(--color-surface-brand)",
|
|
31
|
+
color: "var(--color-text-primary)",
|
|
32
|
+
fontWeight: o.fontWeight.bold,
|
|
33
|
+
paddingLeft: "var(--spacing-8)",
|
|
34
|
+
"::before": {
|
|
35
|
+
content: '"✓"',
|
|
36
|
+
display: "inline-block",
|
|
37
|
+
marginRight: "var(--spacing-6)",
|
|
38
|
+
color: "var(--color-icon-primary)",
|
|
39
|
+
fontWeight: o.fontWeight.regular
|
|
40
|
+
},
|
|
41
|
+
"&:hover": {
|
|
42
|
+
backgroundColor: "var(--color-surface-brand-secondary)"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"&.Mui-disabled": {
|
|
46
|
+
opacity: 1,
|
|
47
|
+
color: "var(--color-text-disabled)"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
IconComponent: r
|
|
54
|
+
},
|
|
55
|
+
styleOverrides: {
|
|
56
|
+
root: {
|
|
57
|
+
"& .MuiSelect-select": {
|
|
58
|
+
padding: "var(--spacing-7) var(--spacing-8)"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
icon: {
|
|
62
|
+
right: "var(--spacing-8)"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
export {
|
|
68
|
+
i as MUIGatorSelectOverrides
|
|
69
|
+
};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
const r = {
|
|
2
|
+
MuiFormControlLabel: {
|
|
3
|
+
styleOverrides: {
|
|
4
|
+
root: {
|
|
5
|
+
// Spacing between switch and label
|
|
6
|
+
marginLeft: 0,
|
|
7
|
+
marginRight: 0,
|
|
8
|
+
// Label positioning
|
|
9
|
+
"& .MuiFormControlLabel-label": {
|
|
10
|
+
marginLeft: "0.5rem",
|
|
11
|
+
fontFamily: "var(--font-family-body)",
|
|
12
|
+
fontSize: "var(--font-size-body-2)",
|
|
13
|
+
color: "var(--color-text-primary)"
|
|
14
|
+
},
|
|
15
|
+
// Disabled label color
|
|
16
|
+
"&.Mui-disabled .MuiFormControlLabel-label": {
|
|
17
|
+
color: "var(--color-text-secondary)"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
MuiSwitch: {
|
|
23
|
+
defaultProps: {
|
|
24
|
+
disableRipple: !0
|
|
25
|
+
},
|
|
26
|
+
styleOverrides: {
|
|
27
|
+
root: {
|
|
28
|
+
// Size root container to match ngcSwitch dimensions (2.375rem × 1.25rem)
|
|
29
|
+
width: "2.375rem",
|
|
30
|
+
height: "1.25rem",
|
|
31
|
+
padding: 0,
|
|
32
|
+
overflow: "visible",
|
|
33
|
+
// Hover ripple effect - unchecked (only when not disabled)
|
|
34
|
+
"&:hover .MuiSwitch-switchBase:not(.Mui-disabled):not(.Mui-checked) .MuiSwitch-thumb": {
|
|
35
|
+
outline: "0.5rem solid var(--color-surface-alpha-neutral-medium)"
|
|
36
|
+
},
|
|
37
|
+
// Hover ripple effect - checked (only when not disabled)
|
|
38
|
+
"&:hover .MuiSwitch-switchBase.Mui-checked:not(.Mui-disabled) .MuiSwitch-thumb": {
|
|
39
|
+
outline: "0.5rem solid var(--color-surface-alpha-brand-subtle)"
|
|
40
|
+
},
|
|
41
|
+
// Active (mouse down) ripple effect - unchecked (only when not disabled)
|
|
42
|
+
"&:active .MuiSwitch-switchBase:not(.Mui-disabled):not(.Mui-checked) .MuiSwitch-thumb": {
|
|
43
|
+
outline: "0.5rem solid var(--color-surface-alpha-neutral-strong)"
|
|
44
|
+
},
|
|
45
|
+
// Active (mouse down) ripple effect - checked (only when not disabled)
|
|
46
|
+
"&:active .MuiSwitch-switchBase.Mui-checked:not(.Mui-disabled) .MuiSwitch-thumb": {
|
|
47
|
+
outline: "0.5rem solid var(--color-surface-alpha-brand-strong)"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
switchBase: {
|
|
51
|
+
// Position the thumb with 2px offset (0.125rem from ngcSwitch)
|
|
52
|
+
padding: "0.125rem",
|
|
53
|
+
top: 0,
|
|
54
|
+
left: 0,
|
|
55
|
+
// Transform for checked state - move thumb to right (1.25rem from left edge = 1.125rem transform)
|
|
56
|
+
"&.Mui-checked": {
|
|
57
|
+
transform: "translateX(1.125rem)",
|
|
58
|
+
// Checked state track color
|
|
59
|
+
"& + .MuiSwitch-track": {
|
|
60
|
+
backgroundColor: "var(--color-feedback-brand)",
|
|
61
|
+
opacity: 1
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
// Disabled state
|
|
65
|
+
"&.Mui-disabled": {
|
|
66
|
+
// Disabled track color (overrides checked)
|
|
67
|
+
"& + .MuiSwitch-track": {
|
|
68
|
+
backgroundColor: "var(--color-surface-disabled)",
|
|
69
|
+
opacity: 1
|
|
70
|
+
},
|
|
71
|
+
// Remove thumb shadow when disabled
|
|
72
|
+
"& .MuiSwitch-thumb": {
|
|
73
|
+
boxShadow: "none",
|
|
74
|
+
outline: "none"
|
|
75
|
+
},
|
|
76
|
+
"& .MuiSwitch-thumb:hover": {
|
|
77
|
+
outline: "none"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
// Focus state - apply outline to the track when switchBase is focused
|
|
81
|
+
"&.Mui-focusVisible + .MuiSwitch-track": {
|
|
82
|
+
outline: "0.125rem solid var(--color-border-focus)",
|
|
83
|
+
outlineOffset: "0.125rem"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
track: {
|
|
87
|
+
// Track dimensions to match root (2.375rem × 1.25rem)
|
|
88
|
+
width: "2.375rem",
|
|
89
|
+
height: "1.25rem",
|
|
90
|
+
borderRadius: "0.625rem",
|
|
91
|
+
// Base unchecked state - gray background
|
|
92
|
+
backgroundColor: "var(--color-surface-neutral-secondary)",
|
|
93
|
+
opacity: 1,
|
|
94
|
+
border: "none",
|
|
95
|
+
// Smooth color transition when toggling
|
|
96
|
+
transition: "background-color 0.3s ease"
|
|
97
|
+
},
|
|
98
|
+
thumb: {
|
|
99
|
+
// Base dimensions and styling (1rem = 16px from ngcSwitch)
|
|
100
|
+
width: "1rem",
|
|
101
|
+
height: "1rem",
|
|
102
|
+
borderRadius: "50%",
|
|
103
|
+
backgroundColor: "var(--color-surface-primary)",
|
|
104
|
+
boxShadow: "var(--shadow-1-card)",
|
|
105
|
+
// Set color context for ripple currentColor inheritance (inherits track color)
|
|
106
|
+
color: "var(--color-surface-neutral-secondary)"
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
export {
|
|
112
|
+
r as MUIGatorSwitchOverrides
|
|
113
|
+
};
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { gatorTypography as r } from "../utils/themeConfig.js";
|
|
2
|
+
const e = {
|
|
3
|
+
MuiPaper: {
|
|
4
|
+
styleOverrides: {
|
|
5
|
+
root: {
|
|
6
|
+
borderRadius: "var(--border-radius-medium)",
|
|
7
|
+
boxShadow: "none",
|
|
8
|
+
// Bulk action toolbar styling when used with Table
|
|
9
|
+
"&:has(.MuiToolbar-root + .MuiTableContainer-root)": {
|
|
10
|
+
".MuiToolbar-root": {
|
|
11
|
+
background: "var(--color-surface-brand)",
|
|
12
|
+
marginBottom: "var(--spacing-8)",
|
|
13
|
+
borderRadius: "var(--border-radius-medium)",
|
|
14
|
+
display: "flex",
|
|
15
|
+
gap: "var(--spacing-8)"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
MuiTableContainer: {
|
|
22
|
+
styleOverrides: {
|
|
23
|
+
root: {
|
|
24
|
+
backgroundColor: "var(--color-surface-primary)",
|
|
25
|
+
borderRadius: "var(--border-radius-medium)",
|
|
26
|
+
overflow: "auto",
|
|
27
|
+
boxShadow: "var(--shadow-1-card)"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
MuiTable: {
|
|
32
|
+
styleOverrides: {
|
|
33
|
+
root: {
|
|
34
|
+
borderCollapse: "separate",
|
|
35
|
+
borderSpacing: 0,
|
|
36
|
+
width: "100%"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
MuiTableHead: {
|
|
41
|
+
styleOverrides: {
|
|
42
|
+
root: {
|
|
43
|
+
"& .MuiTableCell-head": {
|
|
44
|
+
backgroundColor: "var(--color-surface-brand)",
|
|
45
|
+
color: "var(--color-text-primary)",
|
|
46
|
+
fontWeight: r.fontWeight.bold,
|
|
47
|
+
borderBottom: "1px solid var(--color-border-tertiary)",
|
|
48
|
+
"&:hover": {
|
|
49
|
+
backgroundColor: "var(--color-surface-brand-secondary)"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
MuiTableBody: {
|
|
56
|
+
styleOverrides: {
|
|
57
|
+
root: {
|
|
58
|
+
"& .MuiTableRow-root": {
|
|
59
|
+
backgroundColor: "var(--color-surface-primary)",
|
|
60
|
+
transition: "background-color 0.2s ease",
|
|
61
|
+
"&:hover": {
|
|
62
|
+
backgroundColor: "var(--color-surface-hover)"
|
|
63
|
+
},
|
|
64
|
+
"&.Mui-selected": {
|
|
65
|
+
backgroundColor: "var(--color-surface-brand)",
|
|
66
|
+
"&:hover": {
|
|
67
|
+
backgroundColor: "var(--color-surface-hover)"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
// Remove border from last row
|
|
71
|
+
"&:last-child .MuiTableCell-root": {
|
|
72
|
+
borderBottom: "none"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
MuiTableRow: {
|
|
79
|
+
styleOverrides: {
|
|
80
|
+
root: {
|
|
81
|
+
"&:not(:has(.MuiCheckbox-root)) .MuiTableCell-root": {
|
|
82
|
+
padding: "var(--spacing-7)",
|
|
83
|
+
"&:first-of-type": {
|
|
84
|
+
paddingLeft: 24
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"&.Mui-selected": {
|
|
88
|
+
backgroundColor: "var(--color-surface-brand)"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
MuiTableCell: {
|
|
94
|
+
styleOverrides: {
|
|
95
|
+
root: {
|
|
96
|
+
fontFamily: r.fontFamily.body,
|
|
97
|
+
fontSize: "var(--font-size-body-2)",
|
|
98
|
+
color: "var(--color-text-primary)",
|
|
99
|
+
borderBottom: "1px solid var(--color-border-tertiary)",
|
|
100
|
+
letterSpacing: "var(--letter-spacing-default)",
|
|
101
|
+
"&:first-of-type": {
|
|
102
|
+
paddingLeft: 24
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
head: {
|
|
106
|
+
fontWeight: r.fontWeight.semiBold,
|
|
107
|
+
fontSize: "var(--font-size-body-2)",
|
|
108
|
+
color: "var(--color-text-primary)",
|
|
109
|
+
backgroundColor: "var(--color-surface-secondary)",
|
|
110
|
+
borderBottom: "1px solid var(--color-border-tertiary)",
|
|
111
|
+
letterSpacing: "var(--letter-spacing-default)",
|
|
112
|
+
"&:first-of-type": {
|
|
113
|
+
paddingLeft: 24
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
body: {
|
|
117
|
+
fontSize: "var(--font-size-body-2)",
|
|
118
|
+
fontWeight: r.fontWeight.regular
|
|
119
|
+
},
|
|
120
|
+
// Checkbox column sizing
|
|
121
|
+
paddingCheckbox: {
|
|
122
|
+
width: "48px",
|
|
123
|
+
padding: "0 var(--spacing-8)"
|
|
124
|
+
},
|
|
125
|
+
// Dense/comfortable sizing variants
|
|
126
|
+
sizeSmall: {
|
|
127
|
+
padding: "var(--spacing-5)"
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
MuiTablePagination: {
|
|
132
|
+
styleOverrides: {
|
|
133
|
+
root: {
|
|
134
|
+
color: "var(--color-text-primary)",
|
|
135
|
+
fontSize: "var(--font-size-body-2)",
|
|
136
|
+
padding: "var(--spacing-8) var(--spacing-10)",
|
|
137
|
+
borderTop: "1px solid var(--color-border-tertiary)"
|
|
138
|
+
},
|
|
139
|
+
toolbar: {
|
|
140
|
+
minHeight: "56px",
|
|
141
|
+
paddingLeft: 0,
|
|
142
|
+
paddingRight: 0
|
|
143
|
+
},
|
|
144
|
+
selectLabel: {
|
|
145
|
+
margin: 0
|
|
146
|
+
},
|
|
147
|
+
displayedRows: {
|
|
148
|
+
margin: 0
|
|
149
|
+
},
|
|
150
|
+
select: {
|
|
151
|
+
color: "var(--color-text-brand)",
|
|
152
|
+
fontSize: "var(--font-size-body-2)",
|
|
153
|
+
fontWeight: r.fontWeight.semiBold
|
|
154
|
+
},
|
|
155
|
+
input: {
|
|
156
|
+
border: "none",
|
|
157
|
+
padding: 0,
|
|
158
|
+
textDecoration: "underline",
|
|
159
|
+
textUnderlineOffset: "4px",
|
|
160
|
+
textDecorationColor: "var(--color-border-secondary)",
|
|
161
|
+
"&:focus": {
|
|
162
|
+
borderRadius: "var(--border-radius-x-small)",
|
|
163
|
+
backgroundColor: "var(--color-surface-secondary)",
|
|
164
|
+
borderColor: "var(--color-border-brand)"
|
|
165
|
+
},
|
|
166
|
+
"&:hover": {
|
|
167
|
+
textDecorationColor: "var(--color-border-brand)"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
selectIcon: {
|
|
171
|
+
color: "var(--color-icon-brand)"
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
export {
|
|
177
|
+
e as MUIGatorTableOverrides
|
|
178
|
+
};
|