@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
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { gatorTypography } from '../utils/themeConfig';
|
|
2
|
-
|
|
3
|
-
export const MUIGatorFormControlOverrides = {
|
|
4
|
-
|
|
5
|
-
MuiFormControl: {
|
|
6
|
-
styleOverrides: {
|
|
7
|
-
root: {
|
|
8
|
-
// Radio group label (legend)
|
|
9
|
-
'& .MuiFormLabel-root': {
|
|
10
|
-
fontFamily: gatorTypography.fontFamily.body,
|
|
11
|
-
fontSize: 'var(--font-size-body-1)',
|
|
12
|
-
lineHeight: 'var(--line-height-body-1)',
|
|
13
|
-
color: 'var(--color-text-primary)',
|
|
14
|
-
letterSpacing: 'var(--letter-spacing-default)',
|
|
15
|
-
fontWeight: gatorTypography.fontWeight.regular,
|
|
16
|
-
marginBottom: '8px',
|
|
17
|
-
position: 'relative',
|
|
18
|
-
transform: 'none',
|
|
19
|
-
|
|
20
|
-
'&.Mui-focused': {
|
|
21
|
-
color: 'var(--color-text-primary)',
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
'&.Mui-disabled': {
|
|
25
|
-
color: 'var(--color-text-disabled)',
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
// Help text (FormHelperText)
|
|
30
|
-
'& .MuiFormHelperText-root': {
|
|
31
|
-
fontFamily: gatorTypography.fontFamily.body,
|
|
32
|
-
fontSize: 'var(--font-size-body-2)',
|
|
33
|
-
lineHeight: 'var(--line-height-body-2)',
|
|
34
|
-
color: 'var(--color-text-secondary)',
|
|
35
|
-
letterSpacing: 'var(--letter-spacing-default)',
|
|
36
|
-
marginLeft: 0,
|
|
37
|
-
marginTop: '8px',
|
|
38
|
-
|
|
39
|
-
'&.Mui-error': {
|
|
40
|
-
color: 'var(--color-text-error)',
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
MuiFormLabel: {
|
|
47
|
-
styleOverrides: {
|
|
48
|
-
root: {
|
|
49
|
-
fontFamily: gatorTypography.fontFamily.body,
|
|
50
|
-
fontSize: 'var(--font-size-body-1)',
|
|
51
|
-
lineHeight: 'var(--line-height-body-1)',
|
|
52
|
-
color: 'var(--color-text-primary)',
|
|
53
|
-
letterSpacing: 'var(--letter-spacing-default)',
|
|
54
|
-
fontWeight: gatorTypography.fontWeight.regular,
|
|
55
|
-
'&.Mui-error': {
|
|
56
|
-
color: 'var(--color-text-primary)',
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
MuiFormControlLabel: {
|
|
62
|
-
styleOverrides: {
|
|
63
|
-
root: {
|
|
64
|
-
marginLeft: 0,
|
|
65
|
-
marginRight: 0,
|
|
66
|
-
gap: '4px',
|
|
67
|
-
alignItems: 'center',
|
|
68
|
-
|
|
69
|
-
// Label styling
|
|
70
|
-
'& .MuiFormControlLabel-label': {
|
|
71
|
-
fontFamily: gatorTypography.fontFamily.body,
|
|
72
|
-
fontSize: 'var(--font-size-body-1)',
|
|
73
|
-
lineHeight: 'var(--line-height-body-1)',
|
|
74
|
-
color: 'var(--color-text-primary)',
|
|
75
|
-
letterSpacing: 'var(--letter-spacing-default)',
|
|
76
|
-
paddingTop: '0px', // Aligns with center of radio
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
// Disabled label
|
|
80
|
-
'&.Mui-disabled .MuiFormControlLabel-label': {
|
|
81
|
-
color: 'var(--color-text-disabled)',
|
|
82
|
-
},
|
|
83
|
-
|
|
84
|
-
// Error label
|
|
85
|
-
'&.Mui-error .MuiFormLabel-root': {
|
|
86
|
-
color: 'var(--color-text-primary)',
|
|
87
|
-
},
|
|
88
|
-
|
|
89
|
-
// Checkbox adjustment
|
|
90
|
-
'& .MuiCheckbox-root': {
|
|
91
|
-
marginLeft: '-5px',
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
},
|
|
96
|
-
MuiFormGroup: {
|
|
97
|
-
styleOverrides: {
|
|
98
|
-
root: {
|
|
99
|
-
gap: '8px',
|
|
100
|
-
},
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Gator Design System - MUI Radio & Radio Group Component Overrides
|
|
3
|
-
*
|
|
4
|
-
* Maps Gator Radio design specifications to MUI Radio and RadioGroup components.
|
|
5
|
-
* Supports all interactive states (default, hover, focus, disabled, error) aligned with Gator tokens.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
export const MUIGatorRadioOverrides = {
|
|
9
|
-
MuiRadio: {
|
|
10
|
-
defaultProps: {
|
|
11
|
-
disableFocusRipple: true,
|
|
12
|
-
disableTouchRipple: true,
|
|
13
|
-
},
|
|
14
|
-
styleOverrides: {
|
|
15
|
-
root: {
|
|
16
|
-
padding: '3px', // Centers the 18px radio in a 24px container
|
|
17
|
-
color: 'var(--color-border-primary)',
|
|
18
|
-
|
|
19
|
-
'&:hover svg': {
|
|
20
|
-
fill: 'var(--color-border-brand)',
|
|
21
|
-
},
|
|
22
|
-
|
|
23
|
-
'&.Mui-focusVisible': {
|
|
24
|
-
outline: '3px solid var(--color-border-focus)',
|
|
25
|
-
outlineOffset: '-2px'
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
'&.Mui-checked': {
|
|
29
|
-
color: 'var(--color-border-brand)',
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
'&.Mui-disabled': {
|
|
33
|
-
color: 'var(--color-border-disabled)',
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
'.Mui-error &': {
|
|
37
|
-
color: 'var(--color-feedback-error-secondary)',
|
|
38
|
-
'&:hover': {
|
|
39
|
-
backgroundColor: 'var(--color-surface-error)',
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
|
|
43
|
-
'.Mui-error &.Mui-checked': {
|
|
44
|
-
color: 'var(--color-feedback-error-secondary)',
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
'.Mui-error &:hover svg': {
|
|
48
|
-
fill: 'var(--color-feedback-error-secondary)',
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { gatorTypography } from '../utils/themeConfig';
|
|
2
|
-
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
|
|
3
|
-
|
|
4
|
-
export const MUIGatorSelectOverrides = {
|
|
5
|
-
MuiSelect: {
|
|
6
|
-
defaultProps: {
|
|
7
|
-
MenuProps: {
|
|
8
|
-
PaperProps: {
|
|
9
|
-
sx: {
|
|
10
|
-
backgroundColor: 'var(--color-surface-primary)',
|
|
11
|
-
maxHeight: '14rem',
|
|
12
|
-
marginTop: 'var(--spacing-3)',
|
|
13
|
-
borderRadius: 'var(--border-radius-medium)',
|
|
14
|
-
boxShadow: 'var(--shadow-3-dropdown)',
|
|
15
|
-
|
|
16
|
-
'& .MuiMenuItem-root': {
|
|
17
|
-
padding: 'var(--spacing-5) var(--spacing-12)',
|
|
18
|
-
minHeight: '40px',
|
|
19
|
-
fontFamily: gatorTypography.fontFamily.body,
|
|
20
|
-
fontSize: 'var(--font-size-body-1)',
|
|
21
|
-
lineHeight: 'var(--line-height-body-1)',
|
|
22
|
-
color: 'var(--color-text-primary)',
|
|
23
|
-
|
|
24
|
-
'&:hover': {
|
|
25
|
-
backgroundColor: 'var(--color-surface-hover)',
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
'&.Mui-focusVisible': {
|
|
29
|
-
outline: '2px solid var(--color-border-focus)',
|
|
30
|
-
outlineOffset: '-2px',
|
|
31
|
-
backgroundColor: 'transparent',
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
'&.Mui-selected': {
|
|
35
|
-
backgroundColor: 'var(--color-surface-brand)',
|
|
36
|
-
color: 'var(--color-text-primary)',
|
|
37
|
-
fontWeight: gatorTypography.fontWeight.bold,
|
|
38
|
-
paddingLeft: 'var(--spacing-8)',
|
|
39
|
-
'::before': {
|
|
40
|
-
content: '"\u2713"',
|
|
41
|
-
display: 'inline-block',
|
|
42
|
-
marginRight: 'var(--spacing-6)',
|
|
43
|
-
color: 'var(--color-icon-primary)',
|
|
44
|
-
fontWeight: gatorTypography.fontWeight.regular,
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
'&:hover': {
|
|
48
|
-
backgroundColor: 'var(--color-surface-brand-secondary)',
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
'&.Mui-disabled': {
|
|
53
|
-
opacity: 1,
|
|
54
|
-
color: 'var(--color-text-disabled)',
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
IconComponent: ExpandMoreIcon as any,
|
|
61
|
-
},
|
|
62
|
-
styleOverrides: {
|
|
63
|
-
root: {
|
|
64
|
-
'& .MuiSelect-select': {
|
|
65
|
-
padding: 'var(--spacing-7) var(--spacing-8)',
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
icon: {
|
|
70
|
-
right: 'var(--spacing-8)',
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
};
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Gator Design System - MUI Switch Component Overrides
|
|
3
|
-
*
|
|
4
|
-
* Maps Gator Switch design specifications to MUI Switch component.
|
|
5
|
-
* Based on ngcSwitch component styling (packages/web-components/src/components/switch/gator/).
|
|
6
|
-
*
|
|
7
|
-
* Supports interactive states:
|
|
8
|
-
* - Default (unchecked) with gray track
|
|
9
|
-
* - Checked with brand color track
|
|
10
|
-
* - Disabled with gray track (no shadow)
|
|
11
|
-
* - Focus with brand color outline
|
|
12
|
-
* - Hover with ripple effect on thumb
|
|
13
|
-
*
|
|
14
|
-
* Reference: packages/web-components/src/components/switch/gator/switch.gator.scss
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
export const MUIGatorSwitchOverrides = {
|
|
18
|
-
MuiFormControlLabel: {
|
|
19
|
-
styleOverrides: {
|
|
20
|
-
root: {
|
|
21
|
-
// Spacing between switch and label
|
|
22
|
-
marginLeft: 0,
|
|
23
|
-
marginRight: 0,
|
|
24
|
-
|
|
25
|
-
// Label positioning
|
|
26
|
-
'& .MuiFormControlLabel-label': {
|
|
27
|
-
marginLeft: '0.5rem',
|
|
28
|
-
fontFamily: 'var(--font-family-body)',
|
|
29
|
-
fontSize: 'var(--font-size-body-2)',
|
|
30
|
-
color: 'var(--color-text-primary)',
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
// Disabled label color
|
|
34
|
-
'&.Mui-disabled .MuiFormControlLabel-label': {
|
|
35
|
-
color: 'var(--color-text-secondary)',
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
MuiSwitch: {
|
|
42
|
-
defaultProps: {
|
|
43
|
-
disableRipple: true
|
|
44
|
-
},
|
|
45
|
-
styleOverrides: {
|
|
46
|
-
root: {
|
|
47
|
-
// Size root container to match ngcSwitch dimensions (2.375rem × 1.25rem)
|
|
48
|
-
width: '2.375rem',
|
|
49
|
-
height: '1.25rem',
|
|
50
|
-
padding: 0,
|
|
51
|
-
overflow: 'visible',
|
|
52
|
-
|
|
53
|
-
// Hover ripple effect - unchecked (only when not disabled)
|
|
54
|
-
'&:hover .MuiSwitch-switchBase:not(.Mui-disabled):not(.Mui-checked) .MuiSwitch-thumb': {
|
|
55
|
-
outline: '0.5rem solid var(--color-surface-alpha-neutral-medium)'
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
// Hover ripple effect - checked (only when not disabled)
|
|
59
|
-
'&:hover .MuiSwitch-switchBase.Mui-checked:not(.Mui-disabled) .MuiSwitch-thumb': {
|
|
60
|
-
outline: '0.5rem solid var(--color-surface-alpha-brand-subtle)'
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
// Active (mouse down) ripple effect - unchecked (only when not disabled)
|
|
64
|
-
'&:active .MuiSwitch-switchBase:not(.Mui-disabled):not(.Mui-checked) .MuiSwitch-thumb': {
|
|
65
|
-
outline: '0.5rem solid var(--color-surface-alpha-neutral-strong)'
|
|
66
|
-
},
|
|
67
|
-
|
|
68
|
-
// Active (mouse down) ripple effect - checked (only when not disabled)
|
|
69
|
-
'&:active .MuiSwitch-switchBase.Mui-checked:not(.Mui-disabled) .MuiSwitch-thumb': {
|
|
70
|
-
outline: '0.5rem solid var(--color-surface-alpha-brand-strong)'
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
switchBase: {
|
|
75
|
-
// Position the thumb with 2px offset (0.125rem from ngcSwitch)
|
|
76
|
-
padding: '0.125rem',
|
|
77
|
-
top: 0,
|
|
78
|
-
left: 0,
|
|
79
|
-
|
|
80
|
-
// Transform for checked state - move thumb to right (1.25rem from left edge = 1.125rem transform)
|
|
81
|
-
'&.Mui-checked': {
|
|
82
|
-
transform: 'translateX(1.125rem)',
|
|
83
|
-
|
|
84
|
-
// Checked state track color
|
|
85
|
-
'& + .MuiSwitch-track': {
|
|
86
|
-
backgroundColor: 'var(--color-feedback-brand)',
|
|
87
|
-
opacity: 1
|
|
88
|
-
},
|
|
89
|
-
},
|
|
90
|
-
|
|
91
|
-
// Disabled state
|
|
92
|
-
'&.Mui-disabled': {
|
|
93
|
-
// Disabled track color (overrides checked)
|
|
94
|
-
'& + .MuiSwitch-track': {
|
|
95
|
-
backgroundColor: 'var(--color-surface-disabled)',
|
|
96
|
-
opacity: 1
|
|
97
|
-
},
|
|
98
|
-
|
|
99
|
-
// Remove thumb shadow when disabled
|
|
100
|
-
'& .MuiSwitch-thumb': {
|
|
101
|
-
boxShadow: 'none',
|
|
102
|
-
outline: 'none'
|
|
103
|
-
},
|
|
104
|
-
|
|
105
|
-
'& .MuiSwitch-thumb:hover': {
|
|
106
|
-
outline: 'none'
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
// Focus state - apply outline to the track when switchBase is focused
|
|
111
|
-
'&.Mui-focusVisible + .MuiSwitch-track': {
|
|
112
|
-
outline: '0.125rem solid var(--color-border-focus)',
|
|
113
|
-
outlineOffset: '0.125rem',
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
|
|
117
|
-
track: {
|
|
118
|
-
// Track dimensions to match root (2.375rem × 1.25rem)
|
|
119
|
-
width: '2.375rem',
|
|
120
|
-
height: '1.25rem',
|
|
121
|
-
borderRadius: '0.625rem',
|
|
122
|
-
|
|
123
|
-
// Base unchecked state - gray background
|
|
124
|
-
backgroundColor: 'var(--color-surface-neutral-secondary)',
|
|
125
|
-
opacity: 1,
|
|
126
|
-
border: 'none',
|
|
127
|
-
|
|
128
|
-
// Smooth color transition when toggling
|
|
129
|
-
transition: 'background-color 0.3s ease'
|
|
130
|
-
},
|
|
131
|
-
|
|
132
|
-
thumb: {
|
|
133
|
-
// Base dimensions and styling (1rem = 16px from ngcSwitch)
|
|
134
|
-
width: '1rem',
|
|
135
|
-
height: '1rem',
|
|
136
|
-
borderRadius: '50%',
|
|
137
|
-
backgroundColor: 'var(--color-surface-primary)',
|
|
138
|
-
boxShadow: 'var(--shadow-1-card)',
|
|
139
|
-
|
|
140
|
-
// Set color context for ripple currentColor inheritance (inherits track color)
|
|
141
|
-
color: 'var(--color-surface-neutral-secondary)',
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
};
|
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
import { gatorTypography } from '../utils/themeConfig';
|
|
2
|
-
|
|
3
|
-
export const MUIGatorTableOverrides = {
|
|
4
|
-
MuiPaper: {
|
|
5
|
-
styleOverrides: {
|
|
6
|
-
root: {
|
|
7
|
-
borderRadius: 'var(--border-radius-medium)',
|
|
8
|
-
boxShadow: 'none',
|
|
9
|
-
|
|
10
|
-
// Bulk action toolbar styling when used with Table
|
|
11
|
-
'&:has(.MuiToolbar-root + .MuiTableContainer-root)': {
|
|
12
|
-
|
|
13
|
-
'.MuiToolbar-root': {
|
|
14
|
-
background: 'var(--color-surface-brand)',
|
|
15
|
-
marginBottom: 'var(--spacing-8)',
|
|
16
|
-
borderRadius: 'var(--border-radius-medium)',
|
|
17
|
-
display: 'flex',
|
|
18
|
-
gap: 'var(--spacing-8)',
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
MuiTableContainer: {
|
|
25
|
-
styleOverrides: {
|
|
26
|
-
root: {
|
|
27
|
-
backgroundColor: 'var(--color-surface-primary)',
|
|
28
|
-
borderRadius: 'var(--border-radius-medium)',
|
|
29
|
-
overflow: 'auto',
|
|
30
|
-
boxShadow: 'var(--shadow-1-card)',
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
MuiTable: {
|
|
36
|
-
styleOverrides: {
|
|
37
|
-
root: {
|
|
38
|
-
borderCollapse: 'separate',
|
|
39
|
-
borderSpacing: 0,
|
|
40
|
-
width: '100%',
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
MuiTableHead: {
|
|
46
|
-
styleOverrides: {
|
|
47
|
-
root: {
|
|
48
|
-
'& .MuiTableCell-head': {
|
|
49
|
-
backgroundColor: 'var(--color-surface-brand)',
|
|
50
|
-
color: 'var(--color-text-primary)',
|
|
51
|
-
fontWeight: gatorTypography.fontWeight.bold,
|
|
52
|
-
borderBottom: '1px solid var(--color-border-tertiary)',
|
|
53
|
-
'&:hover': {
|
|
54
|
-
backgroundColor: 'var(--color-surface-brand-secondary)',
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
MuiTableBody: {
|
|
62
|
-
styleOverrides: {
|
|
63
|
-
root: {
|
|
64
|
-
'& .MuiTableRow-root': {
|
|
65
|
-
backgroundColor: 'var(--color-surface-primary)',
|
|
66
|
-
transition: 'background-color 0.2s ease',
|
|
67
|
-
|
|
68
|
-
'&:hover': {
|
|
69
|
-
backgroundColor: 'var(--color-surface-hover)',
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
'&.Mui-selected': {
|
|
73
|
-
backgroundColor: 'var(--color-surface-brand)',
|
|
74
|
-
|
|
75
|
-
'&:hover': {
|
|
76
|
-
backgroundColor: 'var(--color-surface-hover)',
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
// Remove border from last row
|
|
81
|
-
'&:last-child .MuiTableCell-root': {
|
|
82
|
-
borderBottom: 'none',
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
|
|
89
|
-
MuiTableRow: {
|
|
90
|
-
styleOverrides: {
|
|
91
|
-
root: {
|
|
92
|
-
'&:not(:has(.MuiCheckbox-root)) .MuiTableCell-root': {
|
|
93
|
-
padding: 'var(--spacing-7)',
|
|
94
|
-
'&:first-of-type': {
|
|
95
|
-
paddingLeft: 24,
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
'&.Mui-selected': {
|
|
99
|
-
backgroundColor: 'var(--color-surface-brand)',
|
|
100
|
-
},
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
},
|
|
104
|
-
|
|
105
|
-
MuiTableCell: {
|
|
106
|
-
styleOverrides: {
|
|
107
|
-
root: {
|
|
108
|
-
fontFamily: gatorTypography.fontFamily.body,
|
|
109
|
-
fontSize: 'var(--font-size-body-2)',
|
|
110
|
-
color: 'var(--color-text-primary)',
|
|
111
|
-
borderBottom: '1px solid var(--color-border-tertiary)',
|
|
112
|
-
letterSpacing: 'var(--letter-spacing-default)',
|
|
113
|
-
'&:first-of-type': {
|
|
114
|
-
paddingLeft: 24,
|
|
115
|
-
},
|
|
116
|
-
},
|
|
117
|
-
|
|
118
|
-
head: {
|
|
119
|
-
fontWeight: gatorTypography.fontWeight.semiBold,
|
|
120
|
-
fontSize: 'var(--font-size-body-2)',
|
|
121
|
-
color: 'var(--color-text-primary)',
|
|
122
|
-
backgroundColor: 'var(--color-surface-secondary)',
|
|
123
|
-
borderBottom: '1px solid var(--color-border-tertiary)',
|
|
124
|
-
letterSpacing: 'var(--letter-spacing-default)',
|
|
125
|
-
'&:first-of-type': {
|
|
126
|
-
paddingLeft: 24,
|
|
127
|
-
},
|
|
128
|
-
},
|
|
129
|
-
|
|
130
|
-
body: {
|
|
131
|
-
fontSize: 'var(--font-size-body-2)',
|
|
132
|
-
fontWeight: gatorTypography.fontWeight.regular,
|
|
133
|
-
},
|
|
134
|
-
|
|
135
|
-
// Checkbox column sizing
|
|
136
|
-
paddingCheckbox: {
|
|
137
|
-
width: '48px',
|
|
138
|
-
padding: '0 var(--spacing-8)',
|
|
139
|
-
},
|
|
140
|
-
|
|
141
|
-
// Dense/comfortable sizing variants
|
|
142
|
-
sizeSmall: {
|
|
143
|
-
padding: 'var(--spacing-5)',
|
|
144
|
-
},
|
|
145
|
-
},
|
|
146
|
-
},
|
|
147
|
-
|
|
148
|
-
MuiTablePagination: {
|
|
149
|
-
styleOverrides: {
|
|
150
|
-
root: {
|
|
151
|
-
color: 'var(--color-text-primary)',
|
|
152
|
-
fontSize: 'var(--font-size-body-2)',
|
|
153
|
-
padding: 'var(--spacing-8) var(--spacing-10)',
|
|
154
|
-
borderTop: '1px solid var(--color-border-tertiary)',
|
|
155
|
-
},
|
|
156
|
-
|
|
157
|
-
toolbar: {
|
|
158
|
-
minHeight: '56px',
|
|
159
|
-
paddingLeft: 0,
|
|
160
|
-
paddingRight: 0,
|
|
161
|
-
},
|
|
162
|
-
|
|
163
|
-
selectLabel: {
|
|
164
|
-
margin: 0,
|
|
165
|
-
},
|
|
166
|
-
|
|
167
|
-
displayedRows: {
|
|
168
|
-
margin: 0,
|
|
169
|
-
},
|
|
170
|
-
|
|
171
|
-
select: {
|
|
172
|
-
color: 'var(--color-text-brand)',
|
|
173
|
-
fontSize: 'var(--font-size-body-2)',
|
|
174
|
-
fontWeight: gatorTypography.fontWeight.semiBold,
|
|
175
|
-
},
|
|
176
|
-
|
|
177
|
-
input: {
|
|
178
|
-
border: 'none',
|
|
179
|
-
padding: 0,
|
|
180
|
-
textDecoration: 'underline',
|
|
181
|
-
textUnderlineOffset: '4px',
|
|
182
|
-
textDecorationColor: 'var(--color-border-secondary)',
|
|
183
|
-
|
|
184
|
-
'&:focus': {
|
|
185
|
-
borderRadius: 'var(--border-radius-x-small)',
|
|
186
|
-
backgroundColor: 'var(--color-surface-secondary)',
|
|
187
|
-
borderColor: 'var(--color-border-brand)',
|
|
188
|
-
},
|
|
189
|
-
|
|
190
|
-
'&:hover': {
|
|
191
|
-
textDecorationColor: 'var(--color-border-brand)',
|
|
192
|
-
},
|
|
193
|
-
},
|
|
194
|
-
|
|
195
|
-
selectIcon: {
|
|
196
|
-
color: 'var(--color-icon-brand)',
|
|
197
|
-
},
|
|
198
|
-
},
|
|
199
|
-
},
|
|
200
|
-
};
|