@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.
Files changed (82) hide show
  1. package/README.md +159 -0
  2. package/dist/gator/themes/MUIGatorTheme.js +183 -0
  3. package/dist/gator/themes/components/accordion.js +68 -0
  4. package/dist/gator/themes/components/alert.js +55 -0
  5. package/dist/gator/themes/components/autocomplete.js +139 -0
  6. package/dist/gator/themes/components/avatar.js +49 -0
  7. package/dist/gator/themes/components/badge.js +53 -0
  8. package/dist/gator/themes/components/button.js +65 -0
  9. package/dist/gator/themes/components/card.js +190 -0
  10. package/dist/gator/themes/components/checkbox.js +69 -0
  11. package/dist/gator/themes/components/chip.js +220 -0
  12. package/dist/gator/themes/components/dialog.js +61 -0
  13. package/dist/gator/themes/components/fab.js +77 -0
  14. package/dist/gator/themes/components/form-control.js +97 -0
  15. package/dist/gator/themes/components/radio.js +43 -0
  16. package/dist/gator/themes/components/select.js +69 -0
  17. package/dist/gator/themes/components/switch.js +113 -0
  18. package/dist/gator/themes/components/table.js +178 -0
  19. package/dist/gator/themes/components/tabs.js +150 -0
  20. package/dist/gator/themes/components/text-field.js +103 -0
  21. package/dist/gator/themes/utils/themeConfig.js +155 -0
  22. package/dist/gator/tokens/primitive-inline.js +4 -0
  23. package/dist/gator/tokens/primitive.tokens.css.js +4 -0
  24. package/dist/gator/tokens/semantic-inline.js +4 -0
  25. package/dist/gator/tokens/semantic.tokens.css.js +4 -0
  26. package/dist/gator/types/mui-augmentations.js +1 -0
  27. package/dist/index.js +5 -0
  28. package/dist/styles.css +1 -0
  29. package/dist/types/gator/themes/MUIGatorTheme.d.ts +6 -0
  30. package/dist/types/gator/themes/components/accordion.d.ts +65 -0
  31. package/dist/types/gator/themes/components/alert.d.ts +51 -0
  32. package/dist/types/gator/themes/components/autocomplete.d.ts +127 -0
  33. package/dist/types/gator/themes/components/avatar.d.ts +63 -0
  34. package/dist/types/gator/themes/components/badge.d.ts +42 -0
  35. package/dist/types/gator/themes/components/button.d.ts +61 -0
  36. package/dist/types/gator/themes/components/card.d.ts +193 -0
  37. package/dist/types/gator/themes/components/checkbox.d.ts +61 -0
  38. package/dist/types/gator/themes/components/chip.d.ts +201 -0
  39. package/dist/types/gator/themes/components/dialog.d.ts +58 -0
  40. package/dist/types/gator/themes/components/fab.d.ts +78 -0
  41. package/dist/types/gator/themes/components/form-control.d.ts +86 -0
  42. package/dist/types/gator/themes/components/radio.d.ts +45 -0
  43. package/dist/types/gator/themes/components/select.d.ts +64 -0
  44. package/dist/types/gator/themes/components/switch.d.ts +105 -0
  45. package/dist/types/gator/themes/components/table.d.ts +170 -0
  46. package/dist/types/gator/themes/components/tabs.d.ts +163 -0
  47. package/dist/types/gator/themes/components/text-field.d.ts +100 -0
  48. package/dist/types/gator/themes/utils/themeConfig.d.ts +92 -0
  49. package/dist/types/gator/tokens/primitive-inline.d.ts +2 -0
  50. package/dist/types/gator/tokens/semantic-inline.d.ts +2 -0
  51. package/dist/types/gator/types/mui-augmentations.d.ts +49 -0
  52. package/dist/types/index.d.ts +6 -0
  53. package/package.json +50 -10
  54. package/src/gator/themes/MUIGatorTheme.ts +0 -237
  55. package/src/gator/themes/components/accordion.ts +0 -67
  56. package/src/gator/themes/components/alert.ts +0 -53
  57. package/src/gator/themes/components/autocomplete.ts +0 -156
  58. package/src/gator/themes/components/avatar.ts +0 -65
  59. package/src/gator/themes/components/badge.ts +0 -55
  60. package/src/gator/themes/components/button.ts +0 -74
  61. package/src/gator/themes/components/card.ts +0 -202
  62. package/src/gator/themes/components/checkbox.ts +0 -73
  63. package/src/gator/themes/components/chip.ts +0 -270
  64. package/src/gator/themes/components/dialog.ts +0 -62
  65. package/src/gator/themes/components/form-control.ts +0 -103
  66. package/src/gator/themes/components/radio.ts +0 -53
  67. package/src/gator/themes/components/select.ts +0 -74
  68. package/src/gator/themes/components/switch.ts +0 -145
  69. package/src/gator/themes/components/table.ts +0 -200
  70. package/src/gator/themes/components/tabs.ts +0 -167
  71. package/src/gator/themes/components/text-field.ts +0 -100
  72. package/src/gator/themes/utils/themeConfig.ts +0 -111
  73. package/src/gator/types/mui-augmentations.d.ts +0 -27
  74. /package/{src → dist}/gator/_fonts.css +0 -0
  75. /package/{src → dist}/gator/_gator-grid.css +0 -0
  76. /package/{src → dist}/gator/_gator-sizing.css +0 -0
  77. /package/{src → dist}/gator/_gator-typography.css +0 -0
  78. /package/{src → dist}/gator/fonts/OpenSans-VariableFont.woff2 +0 -0
  79. /package/{src → dist}/gator/gator-global-styles.css +0 -0
  80. /package/{src → dist}/gator/tokens/_gator-global-tokens.css +0 -0
  81. /package/{src → dist}/gator/tokens/primitive.tokens.css +0 -0
  82. /package/{src → dist}/gator/tokens/semantic.tokens.css +0 -0
@@ -0,0 +1,201 @@
1
+ import { default as React } from 'react';
2
+ export declare const MUIGatorChipOverrides: {
3
+ MuiChip: {
4
+ defaultProps: {
5
+ variant: "outlined";
6
+ deleteIcon: React.FunctionComponentElement<import('@mui/material/OverridableComponent').DefaultComponentProps<import('@mui/material/SvgIcon').SvgIconTypeMap<{}, "svg">>>;
7
+ };
8
+ styleOverrides: {
9
+ root: {
10
+ fontFamily: string;
11
+ fontWeight: number;
12
+ borderRadius: string;
13
+ padding: number;
14
+ gap: string;
15
+ '&.Mui-disabled': {
16
+ opacity: number;
17
+ backgroundColor: string;
18
+ color: string;
19
+ borderColor: string;
20
+ };
21
+ };
22
+ sizeSmall: {
23
+ height: string;
24
+ fontSize: string;
25
+ lineHeight: string;
26
+ padding: string;
27
+ '& .MuiChip-icon': {
28
+ fontSize: string;
29
+ };
30
+ };
31
+ sizeMedium: {
32
+ height: string;
33
+ fontSize: string;
34
+ lineHeight: string;
35
+ padding: string;
36
+ '& .MuiChip-icon': {
37
+ fontSize: string;
38
+ };
39
+ };
40
+ outlined: {
41
+ backgroundColor: string;
42
+ border: string;
43
+ '&:hover': {
44
+ backgroundColor: string;
45
+ };
46
+ '&:focus': {
47
+ backgroundColor: string;
48
+ };
49
+ };
50
+ clickable: {
51
+ cursor: "pointer";
52
+ userSelect: "none";
53
+ '&:hover': {
54
+ backgroundColor: string;
55
+ };
56
+ '&:active': {
57
+ backgroundColor: string;
58
+ boxShadow: string;
59
+ };
60
+ };
61
+ clickableColorPrimary: {
62
+ '&:hover': {
63
+ backgroundColor: string;
64
+ };
65
+ };
66
+ deletable: {
67
+ '&:focus': {
68
+ backgroundColor: string;
69
+ };
70
+ };
71
+ colorPrimary: {
72
+ backgroundColor: string;
73
+ color: string;
74
+ '&:hover': {
75
+ backgroundColor: string;
76
+ };
77
+ };
78
+ outlinedPrimary: {
79
+ backgroundColor: string;
80
+ color: string;
81
+ borderColor: string;
82
+ '&:hover': {
83
+ backgroundColor: string;
84
+ borderColor: string;
85
+ };
86
+ };
87
+ colorSuccess: {
88
+ backgroundColor: string;
89
+ color: string;
90
+ '&:hover': {
91
+ backgroundColor: string;
92
+ };
93
+ };
94
+ outlinedSuccess: {
95
+ backgroundColor: string;
96
+ color: string;
97
+ borderColor: string;
98
+ '&:hover': {
99
+ backgroundColor: string;
100
+ borderColor: string;
101
+ };
102
+ };
103
+ colorError: {
104
+ backgroundColor: string;
105
+ color: string;
106
+ '&:hover': {
107
+ backgroundColor: string;
108
+ };
109
+ };
110
+ outlinedError: {
111
+ backgroundColor: string;
112
+ color: string;
113
+ borderColor: string;
114
+ '&:hover': {
115
+ backgroundColor: string;
116
+ borderColor: string;
117
+ };
118
+ };
119
+ colorWarning: {
120
+ backgroundColor: string;
121
+ color: string;
122
+ '&:hover': {
123
+ backgroundColor: string;
124
+ };
125
+ };
126
+ outlinedWarning: {
127
+ backgroundColor: string;
128
+ color: string;
129
+ borderColor: string;
130
+ '&:hover': {
131
+ backgroundColor: string;
132
+ borderColor: string;
133
+ };
134
+ };
135
+ colorInfo: {
136
+ backgroundColor: string;
137
+ color: string;
138
+ '&:hover': {
139
+ backgroundColor: string;
140
+ };
141
+ };
142
+ outlinedInfo: {
143
+ backgroundColor: string;
144
+ color: string;
145
+ borderColor: string;
146
+ '&:hover': {
147
+ backgroundColor: string;
148
+ borderColor: string;
149
+ };
150
+ };
151
+ colorAi: {
152
+ background: string;
153
+ color: string;
154
+ '&:hover': {
155
+ background: string;
156
+ };
157
+ };
158
+ outlinedAi: {
159
+ background: string;
160
+ color: string;
161
+ borderColor: string;
162
+ '&:hover': {
163
+ background: string;
164
+ };
165
+ };
166
+ icon: {
167
+ color: string;
168
+ margin: number;
169
+ };
170
+ deleteIcon: {
171
+ color: string;
172
+ '&:hover': {
173
+ color: string;
174
+ };
175
+ };
176
+ deleteIconSmall: {
177
+ fontSize: string;
178
+ };
179
+ deleteIconMedium: {
180
+ fontSize: string;
181
+ };
182
+ avatar: {
183
+ margin: number;
184
+ color: string;
185
+ };
186
+ avatarSmall: {
187
+ width: string;
188
+ height: string;
189
+ fontSize: string;
190
+ };
191
+ avatarMedium: {
192
+ width: string;
193
+ height: string;
194
+ fontSize: string;
195
+ };
196
+ label: {
197
+ padding: string;
198
+ };
199
+ };
200
+ };
201
+ };
@@ -0,0 +1,58 @@
1
+ export declare const MUIGatorDialogOverrides: {
2
+ MuiDialog: {
3
+ defaultProps: {
4
+ fullWidth: boolean;
5
+ };
6
+ styleOverrides: {
7
+ paper: {
8
+ background: string;
9
+ };
10
+ paperFullScreen: {
11
+ '.MuiDialogTitle-root': {
12
+ textAlign: string;
13
+ };
14
+ '.MuiDialogActions-root': {
15
+ background: string;
16
+ padding: string;
17
+ justifyContent: string;
18
+ };
19
+ };
20
+ };
21
+ };
22
+ MuiDialogTitle: {
23
+ styleOverrides: {
24
+ root: {
25
+ background: string;
26
+ fontSize: string;
27
+ lineHeight: string;
28
+ padding: string;
29
+ };
30
+ };
31
+ };
32
+ MuiDialogContent: {
33
+ styleOverrides: {
34
+ root: {
35
+ padding: string;
36
+ fontSize: string;
37
+ lineHeight: string;
38
+ };
39
+ };
40
+ };
41
+ MuiDialogActions: {
42
+ styleOverrides: {
43
+ root: ({ theme }: {
44
+ theme: any;
45
+ }) => {
46
+ [x: number]: {
47
+ flexDirection: string;
48
+ gap: string;
49
+ '& > *': {
50
+ width: string;
51
+ margin: string;
52
+ };
53
+ };
54
+ padding: string;
55
+ };
56
+ };
57
+ };
58
+ };
@@ -0,0 +1,78 @@
1
+ export declare const MUIGatorFabOverrides: {
2
+ MuiFab: {
3
+ defaultProps: {
4
+ disableRipple: boolean;
5
+ color: "primary";
6
+ size: "small";
7
+ };
8
+ styleOverrides: {
9
+ root: {
10
+ boxShadow: string;
11
+ textTransform: string;
12
+ padding: string;
13
+ height: string;
14
+ width: string;
15
+ '&:hover': {
16
+ boxShadow: string;
17
+ backgroundColor: string;
18
+ };
19
+ '&:active': {
20
+ backgroundColor: string;
21
+ };
22
+ '&.Mui-focusVisible': {
23
+ boxShadow: string;
24
+ outline: string;
25
+ outlineOffset: string;
26
+ };
27
+ '&.Mui-disabled': {
28
+ backgroundColor: string;
29
+ color: string;
30
+ };
31
+ };
32
+ primary: {
33
+ backgroundColor: string;
34
+ color: string;
35
+ };
36
+ sizeSmall: {
37
+ '& .MuiSvgIcon-root': {
38
+ fontSize: string;
39
+ };
40
+ };
41
+ sizeMedium: {
42
+ '& .MuiSvgIcon-root': {
43
+ fontSize: string;
44
+ };
45
+ };
46
+ sizeLarge: {
47
+ '& .MuiSvgIcon-root': {
48
+ fontSize: string;
49
+ };
50
+ };
51
+ circular: {
52
+ borderRadius: string;
53
+ };
54
+ extended: {
55
+ borderRadius: string;
56
+ padding: string;
57
+ minWidth: string;
58
+ height: string;
59
+ gap: string;
60
+ };
61
+ };
62
+ variants: {
63
+ props: {
64
+ size: "xlarge";
65
+ };
66
+ style: {
67
+ '& .MuiSvgIcon-root': {
68
+ fontSize: string;
69
+ };
70
+ };
71
+ }[];
72
+ };
73
+ };
74
+ declare module '@mui/material/Fab' {
75
+ interface FabPropsSizeOverrides {
76
+ xlarge: true;
77
+ }
78
+ }
@@ -0,0 +1,86 @@
1
+ export declare const MUIGatorFormControlOverrides: {
2
+ MuiFormControl: {
3
+ styleOverrides: {
4
+ root: {
5
+ '& .MuiFormLabel-root': {
6
+ fontFamily: string;
7
+ fontSize: string;
8
+ lineHeight: string;
9
+ color: string;
10
+ letterSpacing: string;
11
+ fontWeight: number;
12
+ marginBottom: string;
13
+ position: string;
14
+ transform: string;
15
+ '&.Mui-focused': {
16
+ color: string;
17
+ };
18
+ '&.Mui-disabled': {
19
+ color: string;
20
+ };
21
+ };
22
+ '& .MuiFormHelperText-root': {
23
+ fontFamily: string;
24
+ fontSize: string;
25
+ lineHeight: string;
26
+ color: string;
27
+ letterSpacing: string;
28
+ marginLeft: number;
29
+ marginTop: string;
30
+ '&.Mui-error': {
31
+ color: string;
32
+ };
33
+ };
34
+ };
35
+ };
36
+ };
37
+ MuiFormLabel: {
38
+ styleOverrides: {
39
+ root: {
40
+ fontFamily: string;
41
+ fontSize: string;
42
+ lineHeight: string;
43
+ color: string;
44
+ letterSpacing: string;
45
+ fontWeight: number;
46
+ '&.Mui-error': {
47
+ color: string;
48
+ };
49
+ };
50
+ };
51
+ };
52
+ MuiFormControlLabel: {
53
+ styleOverrides: {
54
+ root: {
55
+ marginLeft: number;
56
+ marginRight: number;
57
+ gap: string;
58
+ alignItems: string;
59
+ '& .MuiFormControlLabel-label': {
60
+ fontFamily: string;
61
+ fontSize: string;
62
+ lineHeight: string;
63
+ color: string;
64
+ letterSpacing: string;
65
+ paddingTop: string;
66
+ };
67
+ '&.Mui-disabled .MuiFormControlLabel-label': {
68
+ color: string;
69
+ };
70
+ '&.Mui-error .MuiFormLabel-root': {
71
+ color: string;
72
+ };
73
+ '& .MuiCheckbox-root': {
74
+ marginLeft: string;
75
+ };
76
+ };
77
+ };
78
+ };
79
+ MuiFormGroup: {
80
+ styleOverrides: {
81
+ root: {
82
+ gap: string;
83
+ };
84
+ };
85
+ };
86
+ };
@@ -0,0 +1,45 @@
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
+ export declare const MUIGatorRadioOverrides: {
8
+ MuiRadio: {
9
+ defaultProps: {
10
+ disableFocusRipple: boolean;
11
+ disableTouchRipple: boolean;
12
+ };
13
+ styleOverrides: {
14
+ root: {
15
+ padding: string;
16
+ color: string;
17
+ '&:hover svg': {
18
+ fill: string;
19
+ };
20
+ '&.Mui-focusVisible': {
21
+ outline: string;
22
+ outlineOffset: string;
23
+ };
24
+ '&.Mui-checked': {
25
+ color: string;
26
+ };
27
+ '&.Mui-disabled': {
28
+ color: string;
29
+ };
30
+ '.Mui-error &': {
31
+ color: string;
32
+ '&:hover': {
33
+ backgroundColor: string;
34
+ };
35
+ };
36
+ '.Mui-error &.Mui-checked': {
37
+ color: string;
38
+ };
39
+ '.Mui-error &:hover svg': {
40
+ fill: string;
41
+ };
42
+ };
43
+ };
44
+ };
45
+ };
@@ -0,0 +1,64 @@
1
+ export declare const MUIGatorSelectOverrides: {
2
+ MuiSelect: {
3
+ defaultProps: {
4
+ MenuProps: {
5
+ PaperProps: {
6
+ sx: {
7
+ backgroundColor: string;
8
+ maxHeight: string;
9
+ marginTop: string;
10
+ borderRadius: string;
11
+ boxShadow: string;
12
+ '& .MuiMenuItem-root': {
13
+ padding: string;
14
+ minHeight: string;
15
+ fontFamily: string;
16
+ fontSize: string;
17
+ lineHeight: string;
18
+ color: string;
19
+ '&:hover': {
20
+ backgroundColor: string;
21
+ };
22
+ '&.Mui-focusVisible': {
23
+ outline: string;
24
+ outlineOffset: string;
25
+ backgroundColor: string;
26
+ };
27
+ '&.Mui-selected': {
28
+ backgroundColor: string;
29
+ color: string;
30
+ fontWeight: number;
31
+ paddingLeft: string;
32
+ '::before': {
33
+ content: string;
34
+ display: string;
35
+ marginRight: string;
36
+ color: string;
37
+ fontWeight: number;
38
+ };
39
+ '&:hover': {
40
+ backgroundColor: string;
41
+ };
42
+ };
43
+ '&.Mui-disabled': {
44
+ opacity: number;
45
+ color: string;
46
+ };
47
+ };
48
+ };
49
+ };
50
+ };
51
+ IconComponent: any;
52
+ };
53
+ styleOverrides: {
54
+ root: {
55
+ '& .MuiSelect-select': {
56
+ padding: string;
57
+ };
58
+ };
59
+ icon: {
60
+ right: string;
61
+ };
62
+ };
63
+ };
64
+ };
@@ -0,0 +1,105 @@
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
+ export declare const MUIGatorSwitchOverrides: {
17
+ MuiFormControlLabel: {
18
+ styleOverrides: {
19
+ root: {
20
+ marginLeft: number;
21
+ marginRight: number;
22
+ '& .MuiFormControlLabel-label': {
23
+ marginLeft: string;
24
+ fontFamily: string;
25
+ fontSize: string;
26
+ color: string;
27
+ };
28
+ '&.Mui-disabled .MuiFormControlLabel-label': {
29
+ color: string;
30
+ };
31
+ };
32
+ };
33
+ };
34
+ MuiSwitch: {
35
+ defaultProps: {
36
+ disableRipple: boolean;
37
+ };
38
+ styleOverrides: {
39
+ root: {
40
+ width: string;
41
+ height: string;
42
+ padding: number;
43
+ overflow: string;
44
+ '&:hover .MuiSwitch-switchBase:not(.Mui-disabled):not(.Mui-checked) .MuiSwitch-thumb': {
45
+ outline: string;
46
+ };
47
+ '&:hover .MuiSwitch-switchBase.Mui-checked:not(.Mui-disabled) .MuiSwitch-thumb': {
48
+ outline: string;
49
+ };
50
+ '&:active .MuiSwitch-switchBase:not(.Mui-disabled):not(.Mui-checked) .MuiSwitch-thumb': {
51
+ outline: string;
52
+ };
53
+ '&:active .MuiSwitch-switchBase.Mui-checked:not(.Mui-disabled) .MuiSwitch-thumb': {
54
+ outline: string;
55
+ };
56
+ };
57
+ switchBase: {
58
+ padding: string;
59
+ top: number;
60
+ left: number;
61
+ '&.Mui-checked': {
62
+ transform: string;
63
+ '& + .MuiSwitch-track': {
64
+ backgroundColor: string;
65
+ opacity: number;
66
+ };
67
+ };
68
+ '&.Mui-disabled': {
69
+ '& + .MuiSwitch-track': {
70
+ backgroundColor: string;
71
+ opacity: number;
72
+ };
73
+ '& .MuiSwitch-thumb': {
74
+ boxShadow: string;
75
+ outline: string;
76
+ };
77
+ '& .MuiSwitch-thumb:hover': {
78
+ outline: string;
79
+ };
80
+ };
81
+ '&.Mui-focusVisible + .MuiSwitch-track': {
82
+ outline: string;
83
+ outlineOffset: string;
84
+ };
85
+ };
86
+ track: {
87
+ width: string;
88
+ height: string;
89
+ borderRadius: string;
90
+ backgroundColor: string;
91
+ opacity: number;
92
+ border: string;
93
+ transition: string;
94
+ };
95
+ thumb: {
96
+ width: string;
97
+ height: string;
98
+ borderRadius: string;
99
+ backgroundColor: string;
100
+ boxShadow: string;
101
+ color: string;
102
+ };
103
+ };
104
+ };
105
+ };