@dashadmin/dash-styles 1.3.17 → 1.3.19

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 (54) hide show
  1. package/dist/assets/fonts/Montserrat-Black.ttf +0 -0
  2. package/dist/assets/fonts/Montserrat-Bold.ttf +0 -0
  3. package/dist/assets/fonts/Montserrat-Medium.ttf +0 -0
  4. package/dist/assets/fonts/Montserrat-Regular.ttf +0 -0
  5. package/dist/assets/fonts/Montserrat-SemiBold.ttf +0 -0
  6. package/dist/dash-css-transformer.less +766 -0
  7. package/dist/dash-variables.less +10 -0
  8. package/dist/dash.less +38 -0
  9. package/dist/helpers/getAllCssVariablesFromStyleSheets.js +1 -0
  10. package/dist/index.tsx.suffixed +680 -0
  11. package/dist/styles/button.less +120 -0
  12. package/dist/styles/buttons.less +10 -0
  13. package/dist/styles/card.less +337 -0
  14. package/dist/styles/common.less +62 -0
  15. package/dist/styles/components/notfound.less +50 -0
  16. package/dist/styles/extra.less +25 -0
  17. package/dist/styles/filters.less +7 -0
  18. package/dist/styles/forms.less +41 -0
  19. package/dist/styles/framed.less +45 -0
  20. package/dist/styles/header.less +879 -0
  21. package/dist/styles/input.copy.less +223 -0
  22. package/dist/styles/input.less +223 -0
  23. package/dist/styles/layout.less +296 -0
  24. package/dist/styles/links.less +28 -0
  25. package/dist/styles/loader.less +20 -0
  26. package/dist/styles/login.less +331 -0
  27. package/dist/styles/modal.less +0 -0
  28. package/dist/styles/module.less +29 -0
  29. package/dist/styles/mui-overrides.less +62 -0
  30. package/dist/styles/notification.less +46 -0
  31. package/dist/styles/pages/profile.less +139 -0
  32. package/dist/styles/pagination.less +90 -0
  33. package/dist/styles/popover.less +21 -0
  34. package/dist/styles/react-admin/common.less +184 -0
  35. package/dist/styles/react-admin/toolbar.less +22 -0
  36. package/dist/styles/root.less +13 -0
  37. package/dist/styles/sidebar.less +705 -0
  38. package/dist/styles/splash.less +44 -0
  39. package/dist/styles/static.less +59 -0
  40. package/dist/styles/stats.less +5 -0
  41. package/dist/styles/svg.less +30 -0
  42. package/dist/styles/switch.less +7 -0
  43. package/dist/styles/table.less +196 -0
  44. package/dist/styles/tabs.less +173 -0
  45. package/dist/styles/tags.less +97 -0
  46. package/dist/styles/toast.less +83 -0
  47. package/dist/styles/toolbar.less +90 -0
  48. package/dist/styles/transition.less +226 -0
  49. package/dist/styles/uploader.less +38 -0
  50. package/dist/variables/breakpoints.less +35 -0
  51. package/dist/variables/colors.less +205 -0
  52. package/dist/variables/dash-colors.less +52 -0
  53. package/dist/variables/sizes.less +150 -0
  54. package/package.json +14 -3
@@ -0,0 +1,223 @@
1
+ // Input Component Styles
2
+ // Supports theme switching with data-theme="light" or data-theme="dark"
3
+
4
+ // Autofill styles for webkit browsers
5
+ input:-webkit-autofill,
6
+ input:-webkit-autofill:hover,
7
+ input:-webkit-autofill:focus,
8
+ input:-webkit-autofill:active {
9
+ transition: background-color 5000s ease-in-out 0s;
10
+ /*-webkit-text-fill-color: var(--text-color) !important;
11
+ -webkit-box-shadow: 0 0 0px 1px var(--component-bg) inset !important;*/
12
+ background-color: var(--component-bg) !important;
13
+ border-color: var(--component-border) !important;
14
+ }
15
+
16
+
17
+ .MuiAutocomplete-inputRoot {
18
+ flex-wrap: nowrap !important;
19
+ }
20
+
21
+ // Material-UI Input Base styling
22
+ .MuiInputBase-colorPrimary {
23
+ color: var(--text-color) !important;
24
+
25
+ fieldset {
26
+ border-radius: 6px;
27
+ border-color: var(--component-border) !important;
28
+ border-width: 1px !important;
29
+ box-shadow: 2px 2px var(--component-shadow);
30
+ transition: all 0.4s;
31
+ }
32
+
33
+ input, .MuiSelect-select {
34
+ width: 100%;
35
+ min-width: 0;
36
+ border-radius: 6px;
37
+ font-family: 'Montserrat';
38
+ font-style: normal;
39
+ font-weight: 400;
40
+ font-size: 16px;
41
+ line-height: 24px;
42
+ color: var(--text-color) !important;
43
+
44
+ // Placeholder styling for all browsers
45
+ &::placeholder,
46
+ &::-webkit-input-placeholder,
47
+ &::-moz-placeholder,
48
+ &:-ms-input-placeholder,
49
+ &::-ms-input-placeholder {
50
+ //color: var(--text-light) !important;
51
+ opacity: 0.7 !important;
52
+ }
53
+
54
+ // Focus state
55
+ &:focus {
56
+ color: var(--text-color) !important;
57
+ }
58
+
59
+ // Disabled state
60
+ &:disabled {
61
+ color: var(--text-color) !important;
62
+ background-color: var(--disabled-bg) !important;
63
+ }
64
+ }
65
+
66
+ &:hover {
67
+ fieldset {
68
+ box-shadow: 2px 2px var(--component-hover-bg);
69
+ }
70
+ }
71
+
72
+ // Focus state
73
+ &.Mui-focused {
74
+ fieldset {
75
+ border-color: var(--primary-color) !important;
76
+ border-width: 2px !important;
77
+ }
78
+ }
79
+
80
+ // Error state
81
+ &.Mui-error {
82
+ fieldset {
83
+ border-color: var(--error-color) !important;
84
+ }
85
+ }
86
+
87
+ // Disabled state
88
+ &.Mui-disabled {
89
+ fieldset {
90
+ border-color: var(--disabled-border) !important;
91
+ }
92
+ }
93
+ }
94
+
95
+ .dash-app-form-item-input label {
96
+ color: var(--text-color) !important;
97
+ }
98
+ // Form label styling
99
+ .MuiFormLabel-root {
100
+ color: var(--text-color) !important;
101
+
102
+ &.Mui-focused {
103
+ color: var(--primary-color) !important;
104
+ }
105
+
106
+ &.Mui-disabled {
107
+ color: var(--disabled-color) !important;
108
+ }
109
+
110
+ &.Mui-error {
111
+ color: var(--error-color) !important;
112
+ }
113
+ }
114
+
115
+ .MuiFormLabel-colorPrimary {
116
+ &.Mui-focused {
117
+ color: var(--primary-color) !important;
118
+ }
119
+ }
120
+
121
+ // Input label positioning
122
+ .input-label-top {
123
+ > .MuiFormLabel-root {
124
+ position: static;
125
+ transform: unset;
126
+ font-family: 'Montserrat';
127
+ font-style: normal;
128
+ font-weight: 400;
129
+ font-size: 14px;
130
+ line-height: 22px;
131
+ color: var(--text-color) !important;
132
+ }
133
+
134
+ > .MuiInputBase-root {
135
+ fieldset {
136
+ top: 0;
137
+ legend {
138
+ display: none;
139
+ }
140
+ }
141
+ }
142
+ }
143
+
144
+ .select-label {
145
+ position: static;
146
+ transform: unset;
147
+ font-family: 'Montserrat' !important;
148
+ font-style: normal !important;
149
+ font-weight: 400 !important;
150
+ font-size: 14px !important;
151
+ line-height: 22px !important;
152
+ }
153
+
154
+ // Menu item styling
155
+ .MuiList-root {
156
+ .MuiMenuItem-root {
157
+ font-family: 'Montserrat';
158
+ font-style: normal;
159
+ font-weight: 400;
160
+ font-size: 16px;
161
+ line-height: 24px;
162
+ color: var(--text-light) !important;;
163
+ }
164
+ }
165
+
166
+ // Checkbox styling
167
+ .MuiCheckbox-root {
168
+ color: var(--primary-color) !important;
169
+
170
+ &.Mui-checked {
171
+ color: var(--primary-color) !important;
172
+ }
173
+
174
+ &.Mui-disabled {
175
+ color: var(--disabled-color) !important;
176
+ }
177
+ }
178
+
179
+ // Form label asterisk (required field indicator)
180
+ .MuiFormLabel-asterisk {
181
+ color: var(--error-color) !important;
182
+ }
183
+
184
+ // Form control label text
185
+ .MuiFormControlLabel-label {
186
+ font-family: 'Montserrat';
187
+ font-style: normal;
188
+ font-weight: 400;
189
+ font-size: 14px;
190
+ line-height: 22px;
191
+ color: var(--text-color) !important;;
192
+ }
193
+
194
+ // Theme-specific overrides for placeholder colors
195
+ [data-theme="dark"] {
196
+ .MuiInputBase-colorPrimary {
197
+ input, .MuiSelect-select {
198
+ &::placeholder,
199
+ &::-webkit-input-placeholder,
200
+ &::-moz-placeholder,
201
+ &:-ms-input-placeholder,
202
+ &::-ms-input-placeholder {
203
+ color: var(--text-color) !important;
204
+ opacity: 0.6 !important;
205
+ }
206
+ }
207
+ }
208
+ }
209
+
210
+ [data-theme="light"] {
211
+ .MuiInputBase-colorPrimary {
212
+ input, .MuiSelect-select {
213
+ &::placeholder,
214
+ &::-webkit-input-placeholder,
215
+ &::-moz-placeholder,
216
+ &:-ms-input-placeholder,
217
+ &::-ms-input-placeholder {
218
+ color: var(--text-color) !important;
219
+ opacity: 0.7 !important;
220
+ }
221
+ }
222
+ }
223
+ }
@@ -0,0 +1,223 @@
1
+ // Input Component Styles
2
+ // Supports theme switching with data-theme="light" or data-theme="dark"
3
+
4
+ // Autofill styles for webkit browsers
5
+ input:-webkit-autofill,
6
+ input:-webkit-autofill:hover,
7
+ input:-webkit-autofill:focus,
8
+ input:-webkit-autofill:active {
9
+ transition: background-color 5000s ease-in-out 0s;
10
+ /*-webkit-text-fill-color: var(--text-color) !important;
11
+ -webkit-box-shadow: 0 0 0px 1px var(--component-bg) inset !important;*/
12
+ background-color: var(--component-bg);
13
+ border-color: var(--component-border);
14
+ }
15
+
16
+
17
+ .MuiAutocomplete-inputRoot {
18
+ flex-wrap: nowrap !important;
19
+ }
20
+
21
+ // Material-UI Input Base styling
22
+ .MuiInputBase-colorPrimary {
23
+ color: var(--text-color);
24
+
25
+ fieldset {
26
+ border-radius: 6px;
27
+ border-color: var(--component-border);
28
+ border-width: 1px !important;
29
+ box-shadow: 2px 2px var(--component-shadow);
30
+ transition: all 0.4s;
31
+ }
32
+
33
+ input, .MuiSelect-select {
34
+ width: 100%;
35
+ min-width: 0;
36
+ border-radius: 6px;
37
+ font-family: 'Montserrat';
38
+ font-style: normal;
39
+ font-weight: 400;
40
+ font-size: 16px;
41
+ line-height: 24px;
42
+ color: var(--text-color);
43
+
44
+ // Placeholder styling for all browsers
45
+ &::placeholder,
46
+ &::-webkit-input-placeholder,
47
+ &::-moz-placeholder,
48
+ &:-ms-input-placeholder,
49
+ &::-ms-input-placeholder {
50
+ color: var(--text-light);
51
+ //opacity: 0.7 !important;
52
+ }
53
+
54
+ // Focus state
55
+ &:focus {
56
+ color: var(--text-color);
57
+ }
58
+
59
+ // Disabled state
60
+ &:disabled {
61
+ color: var(--text-color);
62
+ background-color: var(--disabled-bg);
63
+ }
64
+ }
65
+
66
+ &:hover {
67
+ fieldset {
68
+ box-shadow: 2px 2px var(--component-hover-bg);
69
+ }
70
+ }
71
+
72
+ // Focus state
73
+ &.Mui-focused {
74
+ fieldset {
75
+ border-color: var(--primary-color);
76
+ border-width: 2px !important;
77
+ }
78
+ }
79
+
80
+ // Error state
81
+ &.Mui-error {
82
+ fieldset {
83
+ border-color: var(--error-color);
84
+ }
85
+ }
86
+
87
+ // Disabled state
88
+ &.Mui-disabled {
89
+ fieldset {
90
+ border-color: var(--disabled-border);
91
+ }
92
+ }
93
+ }
94
+
95
+ .dash-app-form-item-input label {
96
+ color: var(--text-color);
97
+ }
98
+ // Form label styling
99
+ .MuiFormLabel-root {
100
+ color: var(--text-color) ;
101
+
102
+ &.Mui-focused {
103
+ color: var(--primary-color);
104
+ }
105
+
106
+ &.Mui-disabled {
107
+ color: var(--disabled-color);
108
+ }
109
+
110
+ &.Mui-error {
111
+ color: var(--error-color);
112
+ }
113
+ }
114
+
115
+ .MuiFormLabel-colorPrimary {
116
+ &.Mui-focused {
117
+ color: var(--primary-color);
118
+ }
119
+ }
120
+
121
+ // Input label positioning
122
+ .input-label-top {
123
+ > .MuiFormLabel-root {
124
+ position: static;
125
+ transform: unset;
126
+ font-family: 'Montserrat';
127
+ font-style: normal;
128
+ font-weight: 400;
129
+ font-size: 14px;
130
+ line-height: 22px;
131
+ color: var(--text-color);
132
+ }
133
+
134
+ > .MuiInputBase-root {
135
+ fieldset {
136
+ top: 0;
137
+ legend {
138
+ display: none;
139
+ }
140
+ }
141
+ }
142
+ }
143
+
144
+ .select-label {
145
+ position: static;
146
+ transform: unset;
147
+ font-family: 'Montserrat' !important;
148
+ font-style: normal !important;
149
+ font-weight: 400 !important;
150
+ font-size: 14px !important;
151
+ line-height: 22px !important;
152
+ }
153
+
154
+ // Menu item styling
155
+ .MuiList-root {
156
+ .MuiMenuItem-root {
157
+ font-family: 'Montserrat';
158
+ font-style: normal;
159
+ font-weight: 400;
160
+ font-size: 16px;
161
+ line-height: 24px;
162
+ //color: var(--text-light);
163
+ }
164
+ }
165
+
166
+ // Checkbox styling
167
+ .MuiCheckbox-root {
168
+ color: var(--primary-color);
169
+
170
+ &.Mui-checked {
171
+ color: var(--primary-color);
172
+ }
173
+
174
+ &.Mui-disabled {
175
+ color: var(--disabled-color);
176
+ }
177
+ }
178
+
179
+ // Form label asterisk (required field indicator)
180
+ .MuiFormLabel-asterisk {
181
+ color: var(--error-color);
182
+ }
183
+
184
+ // Form control label text
185
+ .MuiFormControlLabel-label {
186
+ font-family: 'Montserrat';
187
+ font-style: normal;
188
+ font-weight: 400;
189
+ font-size: 14px;
190
+ line-height: 22px;
191
+ color: var(--text-color);
192
+ }
193
+
194
+ // Theme-specific overrides for placeholder colors
195
+ [data-theme="dark"] {
196
+ .MuiInputBase-colorPrimary {
197
+ input, .MuiSelect-select {
198
+ &::placeholder,
199
+ &::-webkit-input-placeholder,
200
+ &::-moz-placeholder,
201
+ &:-ms-input-placeholder,
202
+ &::-ms-input-placeholder {
203
+ color: var(--text-color);
204
+ //opacity: 0.6 !important;
205
+ }
206
+ }
207
+ }
208
+ }
209
+
210
+ [data-theme="light"] {
211
+ .MuiInputBase-colorPrimary {
212
+ input, .MuiSelect-select {
213
+ &::placeholder,
214
+ &::-webkit-input-placeholder,
215
+ &::-moz-placeholder,
216
+ &:-ms-input-placeholder,
217
+ &::-ms-input-placeholder {
218
+ color: var(--text-light);
219
+ //opacity: 0.7 !important;
220
+ }
221
+ }
222
+ }
223
+ }