@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,127 @@
1
+ import { default as React } from 'react';
2
+ export declare const MUIGatorAutocompleteOverrides: {
3
+ MuiAutocomplete: {
4
+ defaultProps: {
5
+ componentsProps: {
6
+ paper: {
7
+ elevation: number;
8
+ };
9
+ };
10
+ popupIcon: React.FunctionComponentElement<import('@mui/material/OverridableComponent').DefaultComponentProps<import('@mui/material/SvgIcon').SvgIconTypeMap<{}, "svg">>>;
11
+ };
12
+ styleOverrides: {
13
+ root: {
14
+ '& .MuiInputBase-root': {
15
+ padding: string;
16
+ minHeight: string;
17
+ fontFamily: string;
18
+ fontSize: string;
19
+ lineHeight: string;
20
+ };
21
+ '& .MuiAutocomplete-input': {
22
+ padding: string;
23
+ };
24
+ '& .MuiAutocomplete-endAdornment': {
25
+ right: string;
26
+ };
27
+ '& .MuiAutocomplete-clearIndicator': {
28
+ visibility: string;
29
+ marginRight: string;
30
+ color: string;
31
+ '&:hover': {
32
+ color: string;
33
+ backgroundColor: string;
34
+ };
35
+ };
36
+ '& .MuiAutocomplete-popupIndicator': {
37
+ color: string;
38
+ '&:hover': {
39
+ backgroundColor: string;
40
+ };
41
+ };
42
+ '.MuiCircularProgress-root': {
43
+ marginRight: string;
44
+ };
45
+ };
46
+ paper: {
47
+ marginTop: string;
48
+ borderRadius: string;
49
+ boxShadow: string;
50
+ backgroundColor: string;
51
+ };
52
+ listbox: {
53
+ padding: string;
54
+ maxHeight: string;
55
+ fontFamily: string;
56
+ fontSize: string;
57
+ lineHeight: string;
58
+ '& .MuiAutocomplete-option': {
59
+ padding: string;
60
+ minHeight: string;
61
+ color: string;
62
+ '&:hover': {
63
+ backgroundColor: string;
64
+ };
65
+ '&.Mui-focused': {
66
+ backgroundColor: string;
67
+ };
68
+ '&[aria-selected="true"]': {
69
+ backgroundColor: string;
70
+ color: string;
71
+ fontWeight: number;
72
+ paddingLeft: string;
73
+ '::before': {
74
+ content: string;
75
+ display: string;
76
+ marginRight: string;
77
+ color: string;
78
+ fontWeight: number;
79
+ };
80
+ '&:hover': {
81
+ backgroundColor: string;
82
+ };
83
+ '&.Mui-focused': {
84
+ backgroundColor: string;
85
+ };
86
+ };
87
+ '&[aria-disabled="true"]': {
88
+ opacity: number;
89
+ color: string;
90
+ pointerEvents: string;
91
+ };
92
+ };
93
+ };
94
+ noOptions: {
95
+ padding: string;
96
+ color: string;
97
+ fontFamily: string;
98
+ fontSize: string;
99
+ lineHeight: string;
100
+ };
101
+ loading: {
102
+ padding: string;
103
+ color: string;
104
+ fontFamily: string;
105
+ fontSize: string;
106
+ lineHeight: string;
107
+ };
108
+ groupLabel: {
109
+ padding: string;
110
+ fontFamily: string;
111
+ fontSize: string;
112
+ lineHeight: string;
113
+ fontWeight: number;
114
+ color: string;
115
+ top: number;
116
+ zIndex: number;
117
+ };
118
+ groupUl: {
119
+ padding: number;
120
+ };
121
+ tag: {
122
+ margin: string;
123
+ fontSize: string;
124
+ };
125
+ };
126
+ };
127
+ };
@@ -0,0 +1,63 @@
1
+ /**
2
+ * Gator Avatar Component - MUI Theme Overrides
3
+ *
4
+ * Sizes from Figma:
5
+ * - xxx-small: 16px
6
+ * - xx-small: 24px
7
+ * - x-small: 32px
8
+ * - small (default): 40px
9
+ * - medium: 48px
10
+ * - large: 64px
11
+ * - x-large: 80px
12
+ *
13
+ * Colors:
14
+ * - Background: --color-surface-brand-tertiary (#BDCDDC)
15
+ * - Text: --color-text-brand (#103656)
16
+ */
17
+ export declare const MUIGatorAvatarOverrides: {
18
+ MuiAvatar: {
19
+ styleOverrides: {
20
+ root: {
21
+ fontFamily: string;
22
+ fontWeight: number;
23
+ fontSize: string;
24
+ };
25
+ colorDefault: {
26
+ backgroundColor: string;
27
+ color: string;
28
+ };
29
+ };
30
+ variants: ({
31
+ props: {
32
+ variant: "circular";
33
+ };
34
+ style: {
35
+ borderRadius: string;
36
+ };
37
+ } | {
38
+ props: {
39
+ variant: "rounded";
40
+ };
41
+ style: {
42
+ borderRadius: string;
43
+ };
44
+ } | {
45
+ props: {
46
+ variant: "square";
47
+ };
48
+ style: {
49
+ borderRadius: string;
50
+ };
51
+ })[];
52
+ };
53
+ MuiAvatarGroup: {
54
+ styleOverrides: {
55
+ avatar: {
56
+ border: string;
57
+ fontSize: string;
58
+ width: number;
59
+ height: number;
60
+ };
61
+ };
62
+ };
63
+ };
@@ -0,0 +1,42 @@
1
+ export declare const MUIGatorBadgeOverrides: {
2
+ MuiBadge: {
3
+ defaultProps: {
4
+ color: "error";
5
+ };
6
+ styleOverrides: {
7
+ badge: {
8
+ fontFamily: string;
9
+ fontSize: string;
10
+ lineHeight: string;
11
+ fontWeight: number;
12
+ height: string;
13
+ minWidth: string;
14
+ padding: string;
15
+ borderRadius: string;
16
+ '& .MuiSvgIcon-root': {
17
+ margin: string;
18
+ };
19
+ };
20
+ dot: {
21
+ height: string;
22
+ minWidth: string;
23
+ borderRadius: string;
24
+ padding: number;
25
+ };
26
+ tile: {
27
+ borderRadius: string;
28
+ };
29
+ colorError: {
30
+ backgroundColor: string;
31
+ color: string;
32
+ };
33
+ colorWarning: {
34
+ backgroundColor: string;
35
+ color: string;
36
+ };
37
+ colorSuccess: {
38
+ backgroundColor: string;
39
+ };
40
+ };
41
+ };
42
+ };
@@ -0,0 +1,61 @@
1
+ export declare const MUIGatorButtonOverrides: {
2
+ MuiButton: {
3
+ defaultProps: {
4
+ disableRipple: boolean;
5
+ };
6
+ styleOverrides: {
7
+ root: {
8
+ textTransform: string;
9
+ fontWeight: number;
10
+ height: string;
11
+ '&.Mui-focusVisible': {
12
+ boxShadow: string;
13
+ outline: string;
14
+ outlineOffset: string;
15
+ };
16
+ '&:hover': {
17
+ boxShadow: string;
18
+ };
19
+ };
20
+ sizeLarge: {
21
+ padding: string;
22
+ fontSize: string;
23
+ lineHeight: string;
24
+ };
25
+ sizeMedium: {
26
+ padding: string;
27
+ fontSize: string;
28
+ lineHeight: string;
29
+ };
30
+ sizeSmall: {
31
+ padding: string;
32
+ fontSize: string;
33
+ lineHeight: string;
34
+ };
35
+ contained: {
36
+ boxShadow: string;
37
+ };
38
+ outlinedPrimary: {
39
+ borderColor: string;
40
+ };
41
+ colorNeutral: {
42
+ backgroundColor: string;
43
+ };
44
+ text: {
45
+ color: string;
46
+ textDecoration: string;
47
+ textDecorationColor: string;
48
+ textUnderlineOffset: string;
49
+ '&:hover': {
50
+ boxShadow: string;
51
+ textDecoration: string;
52
+ textDecorationColor: string;
53
+ backgroundColor: string;
54
+ };
55
+ };
56
+ loading: {
57
+ textDecoration: string;
58
+ };
59
+ };
60
+ };
61
+ };
@@ -0,0 +1,193 @@
1
+ /**
2
+ * Gator Design System - MUI Card Component Overrides
3
+ *
4
+ * Maps Gator Card design specifications to MUI Card and Paper components.
5
+ * Supports elevation, outlined variants, and proper spacing/styling.
6
+ */
7
+ export declare const MUIGatorCardOverrides: {
8
+ MuiCard: {
9
+ defaultProps: {
10
+ elevation: number;
11
+ };
12
+ styleOverrides: {
13
+ root: {
14
+ borderRadius: string;
15
+ backgroundColor: string;
16
+ overflow: string;
17
+ position: "relative";
18
+ };
19
+ };
20
+ };
21
+ MuiCardHeader: {
22
+ styleOverrides: {
23
+ root: {
24
+ padding: string;
25
+ display: string;
26
+ gap: string;
27
+ };
28
+ title: {
29
+ fontFamily: string;
30
+ fontSize: string;
31
+ lineHeight: string;
32
+ fontWeight: string;
33
+ color: string;
34
+ };
35
+ subheader: {
36
+ fontFamily: string;
37
+ fontSize: string;
38
+ lineHeight: string;
39
+ fontWeight: string;
40
+ color: string;
41
+ marginTop: string;
42
+ };
43
+ };
44
+ };
45
+ MuiCardContent: {
46
+ styleOverrides: {
47
+ root: {
48
+ padding: string;
49
+ fontSize: string;
50
+ color: string;
51
+ '&:last-child': {
52
+ paddingBottom: string;
53
+ };
54
+ };
55
+ };
56
+ };
57
+ MuiCardActions: {
58
+ styleOverrides: {
59
+ root: {
60
+ padding: string;
61
+ backgroundColor: string;
62
+ borderRadius: string;
63
+ };
64
+ };
65
+ };
66
+ MuiCardActionArea: {
67
+ defaultProps: {
68
+ disableRipple: boolean;
69
+ disableTouchRipple: boolean;
70
+ };
71
+ styleOverrides: {
72
+ root: {
73
+ '&.Mui-focusVisible': {
74
+ outline: string;
75
+ background: string;
76
+ };
77
+ '&[data-active]': {
78
+ border: string;
79
+ };
80
+ '&:hover': {
81
+ background: string;
82
+ boxShadow: string;
83
+ };
84
+ '&:active': {
85
+ backgroundColor: string;
86
+ };
87
+ };
88
+ focusHighlight: {
89
+ display: string;
90
+ };
91
+ };
92
+ };
93
+ MuiCardMedia: {
94
+ styleOverrides: {
95
+ root: {
96
+ borderRadius: string;
97
+ padding: string;
98
+ };
99
+ };
100
+ };
101
+ MuiPaper: {
102
+ defaultProps: {
103
+ elevation: number;
104
+ };
105
+ styleOverrides: {
106
+ root: {
107
+ backgroundImage: string;
108
+ };
109
+ rounded: {
110
+ borderRadius: string;
111
+ };
112
+ elevation0: {
113
+ boxShadow: string;
114
+ };
115
+ elevation1: {
116
+ boxShadow: string;
117
+ };
118
+ elevation2: {
119
+ boxShadow: string;
120
+ };
121
+ elevation3: {
122
+ boxShadow: string;
123
+ };
124
+ elevation4: {
125
+ boxShadow: string;
126
+ };
127
+ outlined: {
128
+ border: string;
129
+ borderRadius: string;
130
+ };
131
+ 'small-left': {
132
+ display: string;
133
+ alignItems: string;
134
+ height: string;
135
+ width: string;
136
+ img: {
137
+ width: string;
138
+ height: string;
139
+ objectFit: string;
140
+ objectPosition: string;
141
+ display: string;
142
+ margin: string;
143
+ padding: number;
144
+ borderRadius: string;
145
+ };
146
+ };
147
+ 'small-right': {
148
+ display: string;
149
+ justifyContent: string;
150
+ alignItems: string;
151
+ height: string;
152
+ width: string;
153
+ img: {
154
+ width: string;
155
+ height: string;
156
+ objectFit: string;
157
+ objectPosition: string;
158
+ display: string;
159
+ margin: string;
160
+ padding: number;
161
+ borderRadius: string;
162
+ };
163
+ };
164
+ 'full-image': {
165
+ width: string;
166
+ position: string;
167
+ img: {
168
+ padding: number;
169
+ width: string;
170
+ height: string;
171
+ objectFit: string;
172
+ objectPosition: string;
173
+ display: string;
174
+ borderRadius: string;
175
+ };
176
+ '& .MuiCardHeader-root': {
177
+ position: string;
178
+ bottom: number;
179
+ left: number;
180
+ right: number;
181
+ padding: string;
182
+ background: string;
183
+ backdropFilter: string;
184
+ zIndex: number;
185
+ borderRadius: string;
186
+ '& .MuiCardHeader-title, & .MuiCardHeader-subheader': {
187
+ color: string;
188
+ };
189
+ };
190
+ };
191
+ };
192
+ };
193
+ };
@@ -0,0 +1,61 @@
1
+ export declare const MUIGatorCheckboxOverrides: {
2
+ MuiCheckbox: {
3
+ defaultProps: {
4
+ disableRipple: boolean;
5
+ };
6
+ styleOverrides: {
7
+ root: {
8
+ padding: string;
9
+ '&:not(.Mui-checked):not(.MuiCheckbox-indeterminate)': {
10
+ color: string;
11
+ svg: {
12
+ display: string;
13
+ };
14
+ '::before': {
15
+ content: string;
16
+ display: string;
17
+ width: string;
18
+ height: string;
19
+ transform: string;
20
+ outline: string;
21
+ outlineOffset: string;
22
+ borderRadius: string;
23
+ margin: string;
24
+ backgroundColor: string;
25
+ };
26
+ '&:hover::before': {
27
+ color: string;
28
+ backgroundColor: string;
29
+ };
30
+ };
31
+ '&.Mui-checked, &.MuiCheckbox-indeterminate': {
32
+ color: string;
33
+ '&:hover': {
34
+ color: string;
35
+ };
36
+ };
37
+ '&.Mui-focusVisible': {
38
+ outline: string;
39
+ outlineOffset: string;
40
+ borderRadius: string;
41
+ };
42
+ '&.Mui-disabled': {
43
+ color: string;
44
+ '::before': {
45
+ backgroundColor: string;
46
+ };
47
+ };
48
+ '.Mui-error &': {
49
+ color: string;
50
+ '&:hover svg': {
51
+ color: string;
52
+ };
53
+ '&:hover::before': {
54
+ backgroundColor: string;
55
+ color: string;
56
+ };
57
+ };
58
+ };
59
+ };
60
+ };
61
+ };