@dashadmin/dash-styles 0.0.0 → 1.3.16

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 (66) hide show
  1. package/package.json +20 -5
  2. package/.editorconfig +0 -12
  3. package/.eslintignore +0 -0
  4. package/.eslintrc.json +0 -7
  5. package/.prettierignore +0 -5
  6. package/.prettierrc.cjs +0 -3
  7. package/commitlint.config.cjs +0 -40
  8. package/dist/README.md +0 -1
  9. package/dist/index.d.ts +0 -3
  10. package/dist/package.json +0 -34
  11. package/src/assets/fonts/Montserrat-Black.ttf +0 -0
  12. package/src/assets/fonts/Montserrat-Bold.ttf +0 -0
  13. package/src/assets/fonts/Montserrat-Medium.ttf +0 -0
  14. package/src/assets/fonts/Montserrat-Regular.ttf +0 -0
  15. package/src/assets/fonts/Montserrat-SemiBold.ttf +0 -0
  16. package/src/dash-css-transformer.less +0 -766
  17. package/src/dash-variables.less +0 -10
  18. package/src/dash.less +0 -38
  19. package/src/helpers/getAllCssVariablesFromStyleSheets.tsx +0 -46
  20. package/src/index.tsx.suffixed +0 -680
  21. package/src/styles/button.less +0 -120
  22. package/src/styles/buttons.less +0 -10
  23. package/src/styles/card.less +0 -337
  24. package/src/styles/common.less +0 -62
  25. package/src/styles/components/notfound.less +0 -50
  26. package/src/styles/extra.less +0 -25
  27. package/src/styles/filters.less +0 -7
  28. package/src/styles/forms.less +0 -41
  29. package/src/styles/framed.less +0 -45
  30. package/src/styles/header.less +0 -879
  31. package/src/styles/input.copy.less +0 -223
  32. package/src/styles/input.less +0 -223
  33. package/src/styles/layout.less +0 -296
  34. package/src/styles/links.less +0 -28
  35. package/src/styles/loader.less +0 -20
  36. package/src/styles/login.less +0 -331
  37. package/src/styles/modal.less +0 -0
  38. package/src/styles/module.less +0 -29
  39. package/src/styles/mui-overrides.less +0 -62
  40. package/src/styles/notification.less +0 -46
  41. package/src/styles/pages/profile.less +0 -139
  42. package/src/styles/pagination.less +0 -90
  43. package/src/styles/popover.less +0 -21
  44. package/src/styles/react-admin/common.less +0 -184
  45. package/src/styles/react-admin/toolbar.less +0 -22
  46. package/src/styles/root.less +0 -13
  47. package/src/styles/sidebar.less +0 -705
  48. package/src/styles/splash.less +0 -44
  49. package/src/styles/static.less +0 -59
  50. package/src/styles/stats.less +0 -5
  51. package/src/styles/svg.less +0 -30
  52. package/src/styles/switch.less +0 -7
  53. package/src/styles/table.less +0 -196
  54. package/src/styles/tabs.less +0 -173
  55. package/src/styles/tags.less +0 -97
  56. package/src/styles/toast.less +0 -83
  57. package/src/styles/toolbar.less +0 -90
  58. package/src/styles/transition.less +0 -226
  59. package/src/styles/uploader.less +0 -38
  60. package/src/variables/breakpoints.less +0 -35
  61. package/src/variables/colors.less +0 -205
  62. package/src/variables/dash-colors.less +0 -52
  63. package/src/variables/sizes.less +0 -150
  64. package/tsconfig.eslint.json +0 -12
  65. package/tsconfig.json +0 -22
  66. package/vite.config.mts +0 -7
@@ -1,296 +0,0 @@
1
-
2
- /* =============================================================================
3
- DASH LAYOUT STYLES
4
- =============================================================================
5
- This stylesheet manages the overall layout structure of the Dash application,
6
- including responsive design, sidebar states, and framed layout support.
7
- ============================================================================= */
8
-
9
- /* -----------------------------------------------------------------------------
10
- GLOBAL LAYOUT SETUP
11
- ----------------------------------------------------------------------------- */
12
-
13
- .dash-layout-content > .dash-layout-content {
14
- padding: 0;
15
- }
16
-
17
-
18
- html {
19
- height: 100vh;
20
- }
21
-
22
- body, #root {
23
- height: 100vh;
24
- }
25
-
26
-
27
-
28
-
29
-
30
- @media (min-width: @mq-sm) {
31
- /*.dash-app-layout-content {
32
- //padding-left: 5px;
33
- }*/
34
-
35
- .framed-layout .dash-app-layout {
36
- border-radius: 20px;
37
-
38
-
39
- //overflow: hidden;
40
-
41
-
42
- //min-height: calc(100vh - 16px);
43
- }
44
- }
45
-
46
- /* Optimize sidebar transitions */
47
- .dash-app-layout {
48
- transition: margin-left 0.2s ease-in-out;
49
- will-change: margin-left;
50
- contain: layout;
51
- }
52
-
53
- /* Prevent flickering during theme changes */
54
- .dash-app-layout * {
55
- transition: background-color 0.1s ease, color 0.1s ease;
56
- }
57
-
58
- /* -----------------------------------------------------------------------------
59
- SIDEBAR MANAGEMENT
60
- ----------------------------------------------------------------------------- */
61
-
62
- .dash-app-layout-sidebar-expanded {
63
- margin-left: 240px;
64
- }
65
-
66
- .dash-app-layout-sidebar-collapsed {
67
- margin-left: 80px;
68
- }
69
-
70
- /* Sidebar width overrides */
71
- .small.expanded .sidebar-drawer .MuiPaper-root,
72
- .large.collapsed .sidebar-drawer .MuiPaper-root {
73
- width: var(--sidebar-small-width);
74
- }
75
-
76
- .large.expanded .sidebar-drawer .MuiPaper-root {
77
- width: var(--sidebar-large-width);
78
- }
79
-
80
- /* -----------------------------------------------------------------------------
81
- MODULE CONTENT STYLES
82
- ----------------------------------------------------------------------------- */
83
-
84
- .dash-module-box-content > .MuiBox-root {
85
- height: auto;
86
- }
87
-
88
- /* Firefox scrollbar handling */
89
- #dash-app-layout > div.dash-app-layout-content.MuiBox-root {
90
- overflow: auto;
91
- height: 100vh;
92
- }
93
-
94
- @media (max-width: @mq-sm) {
95
- #dash-app-layout > div.dash-app-layout-content.MuiBox-root {
96
- overflow: auto;
97
- -ms-overflow-style: none; /* IE and Edge */
98
- scrollbar-width: none; /* Firefox */
99
- }
100
-
101
- #dash-app-layout > div.dash-app-layout-content.MuiBox-root::-webkit-scrollbar {
102
- display: none; /* Chrome, Safari, Opera */
103
- }
104
- }
105
-
106
- // cannot apply this because it hides the table
107
- /*.RaList-noResults, .RaList-main {
108
- height: calc(100vh - 180px);
109
- }*/
110
-
111
- .framed-layout #root {
112
- box-shadow: unset;
113
- //height: calc(100vh - 2 * 15px);
114
- }
115
-
116
- /* -----------------------------------------------------------------------------
117
- LAYOUT OVERWRITES
118
- ----------------------------------------------------------------------------- */
119
-
120
- .framed-layout {
121
- .dash-module-horizontal-nav {
122
- //border-bottom: none;
123
- li:first-child .dash-link {
124
- margin-left: 8px;
125
- }
126
- }
127
- }
128
-
129
- .dash-app-layout {
130
- .dash-layout-content {
131
- overflow-y: auto;
132
- //transition: all .4s;
133
- .dash-app-module {
134
- margin: 0;
135
- //padding: 0 0 0 12px;
136
- width: 100%;
137
- //min-height: calc(100vh - 70px);
138
- .dash-module-box-content {
139
- padding: 0;
140
- //height: calc(100vh - 140px); // Approximate size of the header in mobile
141
- }
142
- .dash-box {
143
- width: 100%;
144
- }
145
- }
146
- }
147
- }
148
-
149
- /* -----------------------------------------------------------------------------
150
- SIDEBAR STATE MANAGEMENT
151
- ----------------------------------------------------------------------------- */
152
-
153
- .dash-app-layout.collapsed.small {
154
- .dash-layout-content, .dash-theme-content {
155
- padding: 0px;
156
- }
157
- }
158
-
159
- // Left sidebar position - collapsed
160
- .dash-app-layout.collapsed.large.sidebar-position-left {
161
- .dash-header-container {
162
- padding-left: var(--sidebar-small-width);
163
- }
164
- .dash-layout-content, .dash-theme-content {
165
- padding-left: var(--sidebar-small-width);
166
- }
167
- }
168
-
169
- // Left sidebar position - expanded
170
- .dash-app-layout.expanded.large.sidebar-position-left {
171
- .dash-header-container {
172
- padding-left: var(--sidebar-large-width);
173
- }
174
- .dash-layout-content, .dash-theme-content {
175
- padding-left: var(--sidebar-large-width);
176
- }
177
- }
178
-
179
- // Right sidebar position - collapsed
180
- .dash-app-layout.collapsed.large.sidebar-position-right {
181
- .dash-header-container {
182
- padding-right: var(--sidebar-small-width);
183
- }
184
- .dash-layout-content, .dash-theme-content {
185
- padding-right: var(--sidebar-small-width);
186
- }
187
- }
188
-
189
- // Right sidebar position - expanded
190
- .dash-app-layout.expanded.large.sidebar-position-right {
191
- .dash-header-container {
192
- padding-right: var(--sidebar-large-width);
193
- }
194
- .dash-layout-content, .dash-theme-content {
195
- padding-right: var(--sidebar-large-width);
196
- }
197
- }
198
-
199
- // Top sidebar position
200
- .dash-app-layout.sidebar-position-top {
201
- .dash-app-layout-content {
202
- padding-top: var(--sidebar-horizontal-height);
203
- }
204
- }
205
-
206
- // Bottom sidebar position
207
- .dash-app-layout.sidebar-position-bottom {
208
- .dash-app-layout-content {
209
- padding-bottom: var(--sidebar-horizontal-height);
210
- }
211
- }
212
-
213
-
214
- /* -----------------------------------------------------------------------------
215
- MOBILE RESPONSIVENESS
216
- ----------------------------------------------------------------------------- */
217
-
218
- @media (max-width: @mq-sm) {
219
- body.framed-layout {
220
- padding: 0px;
221
- //min-height: calc(100vh - 16px);
222
- }
223
-
224
- .framed-layout {
225
- > #root {
226
- border-radius: 0px;
227
-
228
- .dash-app-layout {
229
- .dash-app-module {
230
- //padding: 0px;
231
- }
232
- }
233
- }
234
- }
235
-
236
- .dash-header, .dash-layout-content {
237
- padding: 0;
238
- }
239
-
240
- .dash-app-layout-sidebar-collapsed {
241
- .dash-header, .dash-layout-content {
242
- padding: 0;
243
- }
244
- }
245
-
246
- .dash-layout-content {
247
- .dash-app-module {
248
- //width: calc(100%);
249
- //max-width: calc(100%);
250
- margin: 0;
251
- padding: 0;
252
- }
253
- }
254
-
255
- /*.dash-app-layout {
256
- .dash-layout-content {
257
- .dash-app-module {
258
- height: 100%;
259
- display: flex;
260
- }
261
- }
262
- }*/
263
-
264
- }
265
-
266
-
267
- .dash-app-layout-content .dash-app-login-wrapper {
268
- background: none;
269
- }
270
-
271
-
272
- .dash-app-layout .dash-layout-content .dash-app-module {
273
-
274
- padding-right: 8px;
275
- padding-left: 8px;
276
-
277
- @media (max-width: @mq-sm) {
278
- padding-right: 0;
279
- padding-left: 0;
280
- }
281
-
282
- }
283
-
284
- /* -----------------------------------------------------------------------------
285
- MISCELLANEOUS OVERRIDES
286
- ----------------------------------------------------------------------------- */
287
- /*
288
- .MuiPaper-root .show-page {
289
- padding-inline: 15px;
290
- }
291
- */
292
- /*
293
- .auto-admin-grouped-form {
294
- padding: 0 !important;
295
- }
296
- */
@@ -1,28 +0,0 @@
1
- a, .dash-link{
2
- color: var(--primary-color);
3
- }
4
-
5
- .link {
6
- display: flex;
7
- width: fit-content;
8
- margin: .5rem 0;
9
- font-weight: 500;
10
- font-size: 12px;
11
- line-height: 22px;
12
-
13
- text-align: right;
14
- text-decoration-line: underline;
15
- // color: $c-blue;
16
- transition: all .4s;
17
- &--secondary {
18
- color: var(--link-color);
19
- }
20
-
21
- .icon{
22
- margin-right: 10px;
23
- }
24
-
25
- &:hover{
26
- text-decoration: underline;
27
- }
28
- }
@@ -1,20 +0,0 @@
1
-
2
- .loading-overlay {
3
- opacity: 0.3;
4
- //transition: opacity 0.3s linear 1s;
5
- pointer-events: none;
6
- position: relative;
7
- }
8
-
9
- .datagrid-olverlay-loading {
10
- position: absolute;
11
- top: 50%;
12
- left: 50%;
13
- transform: translate(-50%, -50%);
14
- }
15
-
16
- .default-overlay {
17
- opacity: 1;
18
- //transition: opacity 0.3s linear 1s;
19
- }
20
-
@@ -1,331 +0,0 @@
1
- /*.framed-layout{
2
- .dash-app-login{
3
- &-wrapper{
4
- min-height: calc(100vh - 85px);
5
- }
6
-
7
- }
8
- }*/
9
-
10
- .dash-app-layout.w50 {
11
- .dash-app-login{
12
- &-content{
13
-
14
- max-width: calc(100% - 50%);
15
- flex: 0 0 calc(100% - 50%);
16
- }
17
- }
18
- }
19
-
20
- .dash-app-login{
21
- &-wrapper{
22
- width: 100%;
23
- //min-height: 100vh;
24
- //height: 100vh;
25
- display: flex;
26
- flex-wrap: wrap;
27
-
28
- // Override MUI Container centering - align form to left
29
- /*> .MuiContainer-root {
30
- margin-left: 0;
31
- }*/
32
- }
33
- &-content, &-back{
34
- display: flex;
35
- position: relative;
36
- }
37
-
38
-
39
- &-content{
40
- z-index:3;
41
- width: 100%;
42
- max-width: 50%;
43
- flex: 0 0 50%;
44
- align-items: flex-start;
45
- justify-content: center;
46
- padding-top: 60px;
47
-
48
- flex-direction: column;
49
-
50
- //padding-right: 50px;
51
-
52
- .dash-app-login, .dash-app-login-form {
53
- a {
54
- color: var(--highlight-color);
55
- }
56
-
57
- &-logo{
58
- // Logo styles handled at parent level
59
- }
60
-
61
- /* .MuiTypography-root {
62
- color: var(--text-color);
63
- }
64
-
65
- .MuiInputLabel-root {
66
- color: var(--text-color);
67
- }
68
- */
69
- .MuiPaper-root {
70
- background-color: var(--module-bg);
71
- border-color: var(--module-border);
72
- }
73
-
74
- &-form{
75
- //width: 90%;
76
- flex-direction: column;
77
- .MuiInputBase-root{
78
- min-height:45px;
79
- margin-bottom: 20px;
80
-
81
- color: var(--text-header--light) !important;
82
-
83
- fieldset {
84
- border-radius: 33px;
85
- border-color: var(--text-header--light) !important;
86
-
87
- border-width: 1px;
88
- box-shadow: 2px 2px var(--component-shadow, 0 2px 4px rgba(0, 0, 0, 0.1));
89
-
90
- }
91
-
92
- /* legend span {
93
- -webkit-text-fill-color: var(--text-color) !important;
94
- }*/
95
-
96
- input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active {
97
- -webkit-text-fill-color: var(--text-color) !important;
98
- }
99
-
100
-
101
- }
102
- .MuiInputLabel-shrink {
103
- color: var(--text-header--light) !important;
104
- }
105
-
106
- .MuiLink-button {
107
- color: var(--text-header--light) !important;
108
- }
109
-
110
- .MuiButtonBase-root {
111
- color: var(--primary-contrast);
112
- font-weight: bolder;
113
- background-color: var(--highlight-color);
114
-
115
-
116
-
117
- }
118
-
119
-
120
- &-title{
121
- display: block;
122
- font-style: normal;
123
- font-weight: 900;
124
- font-size: 24px;
125
- line-height: 34px;
126
- color: var(--highlight-color);
127
- //color: white;
128
-
129
- }
130
-
131
- }
132
- }
133
- }
134
- &-back{
135
- align-items: flex-end;
136
- justify-content: flex-start;
137
- width: 100%;
138
- max-width: 50%;
139
- flex: 0 0 50%;
140
- height: 100vh;
141
- position: fixed;
142
- top: 0;
143
- right: 0;
144
- z-index: 1;
145
- &::before{
146
- content: "";
147
- display: block;
148
- width: 100%;
149
- height: 100vh;
150
- right: 0;
151
- top: 0;
152
- background: var(--primary-color);
153
- background: linear-gradient(130.87deg, var(--primary-color) 4.81%, var(--primary-contrast) 107.52%);
154
- border-radius: 40px 0 0 40px;
155
- position: absolute;
156
- z-index: -1;
157
- }
158
- }
159
-
160
- &-logo{
161
- position: absolute;
162
- object-fit: contain;
163
- object-position: top center;
164
- top:10px;
165
- right:0px;
166
- width:100%;
167
- max-width: 100%;
168
- z-index:2;
169
-
170
- img {
171
- max-width: 100%;
172
- max-height: 120px;
173
- object-fit: contain;
174
- }
175
- }
176
- &-img{
177
- position: absolute;
178
- width: 100%;
179
- height: 70vh;
180
- max-height: 60vh;
181
- object-fit: contain;
182
-
183
- left: 0;
184
- bottom: 0;
185
- img, svg{
186
- width: 100%;
187
- height: 100%;
188
- object-fit: contain;
189
- object-position: bottom center;
190
- * {
191
- pointer-events: none;
192
- }
193
- }
194
- &-logo{
195
- display: none;
196
- }
197
- }
198
- }
199
-
200
-
201
- @media (max-width: @mq-md){
202
-
203
- .framed-layout .dash-app-login, .dash-app-login{
204
- &-wrapper{
205
- flex-direction: column;
206
- //min-height: 100vh;
207
-
208
- // Override MUI Container for small screens - full width centered
209
- > .MuiContainer-root {
210
- //margin-left: auto;
211
- //margin-right: auto;
212
- ////max-width: 100%;
213
- ////width: 100%;
214
- //padding-left: 16px;
215
- //padding-right: 16px;
216
- }
217
- }
218
- &-content, &-back{
219
- display: flex;
220
- position: relative;
221
- max-width: 100%;
222
- flex: 0 0 auto;
223
- padding: 0;
224
- }
225
- &-back{
226
- display: none; // Hide back element on small screens - logo moved to wrapper
227
- }
228
-
229
- &-logo {
230
- //order: 1;
231
- position: relative;
232
- top: auto;
233
- right: auto;
234
- width: 100%;
235
- max-width: 100%;
236
- z-index: 2;
237
- padding: 20px;
238
- background: none;
239
- display: flex;
240
- justify-content: center;
241
- align-items: center;
242
-
243
- img {
244
- width: 100%;
245
- max-width: 280px;
246
- max-height: 80px;
247
- object-fit: contain;
248
- }
249
- }
250
-
251
- &-img{
252
- // order: 3;
253
- position: relative;
254
- object-position: center;
255
- width: 100%;
256
- height: auto;
257
- min-height: 120px;
258
- max-height: 50vh;
259
- right: auto;
260
- left: auto;
261
- bottom: 0;
262
- z-index: 1;
263
- margin-top: auto;
264
- img, svg{
265
- width: 100%;
266
- height: 100%;
267
- max-height: 50vh;
268
- object-fit: contain;
269
- object-position: bottom center;
270
- }
271
- &-logo{
272
- display: none;
273
- }
274
- }
275
-
276
- &-content{
277
- //order: 2;
278
- max-width: 100%;
279
- width: 100%;
280
- flex: 1 0 auto;
281
- padding-top: 20px;
282
- align-items: center;
283
- justify-content: flex-start;
284
-
285
- .dash-app-login{
286
- &-logo{
287
- display: none;
288
- }
289
- &-form{
290
- margin: 0;
291
- padding: 20px;
292
- width: 100%;
293
- &-title{
294
- display: block;
295
- margin-bottom: 20px;
296
- font-style: normal;
297
- font-weight: 900;
298
- font-size: 20px;
299
- line-height: 30px;
300
- color: var(--heading-color);
301
- }
302
- &-item{
303
- display: flex;
304
- flex-direction: column;
305
- width: 100%;
306
- max-width: unset;
307
- margin-bottom: 20px;
308
- }
309
- &-label{
310
- display: block;
311
- font-style: normal;
312
- font-weight: 400;
313
- font-size: 14px;
314
- line-height: 22px;
315
- color: var(--text-color);
316
- }
317
- &-input{
318
- width: 100%;
319
- &::before, &::after{
320
- display: none;
321
- }
322
-
323
- > input{
324
- font-size: 16px;
325
- }
326
- }
327
- }
328
- }
329
- }
330
- }
331
- }
File without changes
@@ -1,29 +0,0 @@
1
- .dash-app-module{
2
- // margin: 0 !important;
3
- flex: unset;
4
- }
5
-
6
- .dash-module-box{
7
- max-width: calc(100% - 1px);
8
- }
9
-
10
- .dash-module-box-content{
11
- width: 100%;
12
- //max-width: calc(100vw - 107px);
13
- overflow: unset;
14
- }
15
-
16
- @media screen and (max-width: 991px){
17
- .dash-module-box-content, .framed-layout .dash-module-box-content{
18
- max-width: 100%;
19
- }
20
- // .dash-breadcrumb-btn-container{
21
- // display: flex;
22
- // flex-wrap: wrap;
23
- // }
24
- }
25
-
26
- .dash-module-box, .dash-module-horizontal-box{
27
- max-width: 100%;
28
- width:100%;
29
- }