@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,62 +0,0 @@
1
- .MuiTablePagination-displayedRows {
2
- margin-right:15px;
3
- }
4
-
5
- /*
6
- .MuiToolbar-root {
7
- // Removes default ReactAdmin white background
8
- background: inherit;
9
- //justify-content: flex-start !important;
10
-
11
- }
12
- */
13
-
14
- /*.RaBulkActionsToolbar-toolbar {
15
- background: var(--header-bg);
16
- }*/
17
-
18
- .MuiTablePagination-toolbar {
19
- background-color: transparent !important;
20
- justify-content: center;
21
- align-items: baseline;
22
- }
23
-
24
- .MuiFormLabel-root{
25
- &.MuiInputLabel-shrink{
26
- top: -2px !important;
27
- }
28
- }
29
-
30
- .MuiStack-root-RaLabeled-root{
31
- width: 100%;
32
- margin-bottom: 1rem !important;
33
- }
34
-
35
- .MuiStack-root {
36
- align-items: stretch;
37
- }
38
-
39
- // Fixed Mui Field Inputs
40
- .MuiAutocomplete-root {
41
- width: 100%;
42
- }
43
-
44
- .RaList-actions {
45
- .MuiAutocomplete-input {
46
- //width: 160px !important;
47
- width:100% !important;
48
-
49
- }
50
-
51
- .MuiInputBase-root {
52
- //width: 217px;
53
- flex-wrap: inherit;
54
- }
55
- }
56
-
57
-
58
- @media screen and (max-width: 576px) {
59
- .MuiPaper-root {
60
- overflow-x: none !important;
61
- }
62
- }
@@ -1,46 +0,0 @@
1
- .dash-notification .MuiSnackbarContent-message {
2
- padding: 20px;
3
- }
4
-
5
- .dash-media{
6
- /*.dash-user-thumb{
7
-
8
- }*/
9
- &-body{
10
- .table{
11
- width: 100%;
12
- border: 1px solid rgba(#000000, .12);
13
- margin-top: 1rem;
14
- border-collapse: collapse;
15
- th, td{
16
- padding: 5px 10px;
17
- border: 1px solid rgba(#000000, .12);
18
- }
19
- th{
20
- background-color: rgba(#000000, .12);
21
- font-size: 12px;
22
- }
23
- td{
24
- vertical-align: top;
25
- min-width: 90px;
26
- font-size: 11px;
27
- }
28
- }
29
- }
30
- }
31
-
32
-
33
- /*
34
- .dash-notification .RaNotification-success {
35
-
36
- }
37
- .dash-notification .RaNotification-info {
38
-
39
- }
40
- .dash-notification .RaNotification-warning {
41
-
42
- }
43
- .dash-notification .RaNotification-error {
44
-
45
- }
46
- */
@@ -1,139 +0,0 @@
1
- .dash-profile {
2
- &-img{
3
- display: flex;
4
- margin: 0 auto 2rem;
5
- width: 160px;
6
- height: 160px;
7
- border-radius: 50%;
8
- justify-content: center;
9
- align-items: center;
10
- position: relative;
11
- img{
12
- width: 100%;
13
- height: 100%;
14
- position: relative;
15
- object-fit: cover;
16
- border-radius: 50%;
17
- }
18
- }
19
- &-icon{
20
- display: flex;
21
- width: 100%;
22
- height: 100%;
23
- background-color: #FFB74D;
24
- justify-content: center;
25
- align-items: center;
26
- position: relative;
27
- border-radius: 50%;
28
- }
29
- &-edit{
30
- display: flex;
31
- width: 42px;
32
- height: 42px;
33
- border-radius: 50%;
34
- background-color: var(--highlight-color) !important;
35
- justify-content: center;
36
- align-items: center;
37
- position: absolute !important;
38
- top: 0;
39
- right: 10px;
40
- box-shadow: 0 5px 6px rgba(#000000, .38);
41
- }
42
- }
43
-
44
-
45
- // Moved to sidebar
46
- /*
47
- .dash-user{
48
- &-avatar{
49
- .MuiAvatar-root{
50
- width: 65px;
51
- height: 65px;
52
- background-color: @primary-color;
53
- }
54
- }
55
- &-menu{
56
- .MuiList-root.MuiList-padding.MuiMenu-list{
57
- padding: .5rem .75rem;
58
- }
59
- .MuiPaper-root.MuiMenu-paper.MuiPaper-elevation{
60
- overflow: visible;
61
- transform: translateY(10px) !important;
62
- filter: drop-shadow(0px 6px 16px rgba(0, 0, 0, 0.08));
63
- &::before{
64
- content: "";
65
- display: block;
66
- width: 12px;
67
- height: 12px;
68
- background: var('--module-bg');
69
- transform: rotate(-45deg);
70
- position: absolute;
71
- top: -6px;
72
- left: 25px;
73
- z-index: 99;
74
- }
75
- }
76
- }
77
- &-name{
78
- display: block;
79
- width: 100%;
80
- padding: 6px 4px .5rem;
81
- border-bottom: 1px solid #ddd;
82
- font-style: normal;
83
- font-weight: 900;
84
- font-size: 14px;
85
- line-height: 16px;
86
- margin-bottom: .5rem;
87
- }
88
- &-item{
89
- .MuiTypography-root{
90
- font-family: 'Montserrat';
91
- font-style: normal;
92
- font-weight: 500;
93
- font-size: 14px;
94
- line-height: 22px;
95
- color: @sidebar_submenu-color-primary;
96
- }
97
- }
98
- &-icon{
99
- display: inline-block;
100
- width: 18px;
101
- height: 18px;
102
- margin: 0 10px 0 0;
103
- min-width: auto;
104
- color:inherit;
105
- svg{
106
- width: 18px;
107
- height: 18px;
108
- object-fit: contain;
109
- color: inherit;
110
- path{
111
- fill: inherit;
112
- }
113
- }
114
- }
115
-
116
- @media (max-width: @mq-sm){
117
-
118
-
119
- &-avatar{
120
- .MuiAvatar-root{
121
- width: 30px;
122
- height: 30px;
123
- }
124
- }
125
-
126
- &-menu{
127
- .MuiPaper-root.MuiMenu-paper.MuiPaper-elevation{
128
- &::before{
129
- right: 10px;
130
- left: auto;
131
- }
132
- }
133
- }
134
-
135
- }
136
-
137
-
138
- }
139
- */
@@ -1,90 +0,0 @@
1
- .MuiTablePagination-actions {
2
- margin-left: 1rem !important;
3
- }
4
- .MuiPaginationItem-root {
5
- display: flex;
6
- flex-direction: column;
7
- justify-content: center;
8
- align-items: center;
9
- padding: 5px 6px;
10
- width: 32px;
11
- height: 32px;
12
- background: var(--highlight-color);
13
- border: 1px solid var(--module-bg);
14
- border-radius: 2px;
15
-
16
- font-style: normal;
17
- font-weight: 400;
18
- font-size: 14px;
19
- line-height: 22px;
20
- text-align: center;
21
- color: #262626;
22
-
23
- &.Mui-selected {
24
- background: var(--highlight-color);
25
- border: 1px solid var(--primary-color);
26
- color: var(--primary-color);
27
- }
28
-
29
- &.MuiPaginationItem-previousNext {
30
- background: var(--primary-color);
31
- border: 1px solid var(--primary-color);
32
- color: var(--highlight-color);
33
- }
34
-
35
- &.Mui-disabled {
36
- background: #f5f5f5;
37
- border: 1px solid var(--module-bg);
38
- color: #bfbfbf;
39
- }
40
- }
41
-
42
- .dash-pagination-component {
43
- // background-color: #f5f5f5;
44
- // z-index: 800;
45
- // position: fixed;
46
- bottom: 15px;
47
- right: 20px;
48
-
49
- box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
50
- border-radius: 8px;
51
- .MuiTablePagination-select {
52
- background-color: var(--primary-color);
53
- color: var(--highlight-color);
54
- font-weight: bold;
55
- font-size: 10px;
56
- }
57
- }
58
-
59
- .MuiPaginationItem-page {
60
- display: inline-flex;
61
- -webkit-box-align: center;
62
- align-items: center;
63
- -webkit-box-pack: center;
64
- justify-content: center;
65
- position: relative;
66
- -webkit-tap-highlight-color: transparent;
67
- background-color: transparent;
68
- outline: 0px;
69
- border: 0px;
70
- cursor: pointer;
71
- user-select: none;
72
- vertical-align: middle;
73
- appearance: none;
74
- text-decoration: none;
75
- font-family: Roboto, Helvetica, Arial, sans-serif;
76
- font-weight: 400;
77
- font-size: 0.875rem;
78
- line-height: 1.43;
79
- letter-spacing: 0.01071em;
80
- border-radius: 13px;
81
- text-align: center;
82
- box-sizing: border-box;
83
- min-width: 26px;
84
- height: 26px;
85
- padding: 0px 4px;
86
- margin: 0px 1px;
87
- color: rgb(35, 48, 68);
88
- transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
89
- }
90
-
@@ -1,21 +0,0 @@
1
- .ant-popover{
2
- &-title{
3
- padding: 5px 16px;
4
- font-family: 'Montserrat';
5
- font-style: normal;
6
- font-weight: 700;
7
- font-size: 14px;
8
- line-height: 22px;
9
- color: var(--primary-color);
10
- border-bottom: 1px solid #F0F0F0;
11
- }
12
- &-inner-content{
13
- padding: 12px 16px;
14
- font-family: 'Montserrat';
15
- font-style: normal;
16
- font-weight: 400;
17
- font-size: 14px;
18
- line-height: 22px;
19
- color: #262626;
20
- }
21
- }
@@ -1,184 +0,0 @@
1
- /*.RaList-content {
2
- //overflow: scroll !important;
3
- }*/
4
- /*
5
- .dash-app-module {
6
- .RaList-actions > .MuiPaper-root {
7
- background-color: inherit;
8
- border-radius: inherit;
9
- box-shadow: inherit;
10
- }
11
- .RaList-main > .MuiPaper-root {
12
- background-color: inherit;
13
- border-radius: inherit;
14
- box-shadow: inherit;
15
- }
16
- }*/
17
-
18
- .dash-module-box-content div:empty,
19
- .edit-page div:empty,
20
- .show-page div:empty,
21
- .view-page div:empty,
22
- .create-page div:empty
23
- {
24
- display: none;
25
- }
26
-
27
-
28
- .MuiStack-root {
29
- align-items: stretch !important;
30
- }
31
-
32
- .top-toolbar {
33
-
34
- .MuiToolbar-root {
35
-
36
- //background-color: #F6F7FC;
37
- //border-right: 1px solid #c8c8c8;
38
- padding-bottom:0px;
39
- padding-right: 10px;
40
- //margin-right: 35px;
41
-
42
- }
43
-
44
- }
45
-
46
- .RaCreate-main, .RaEdit-main {
47
- > .MuiPaper-root {
48
- background-color: inherit;
49
- border-radius: inherit;
50
- box-shadow: inherit;
51
- }
52
- /*form {
53
- > .MuiToolbar-root {
54
- margin-top: 15px;
55
- }
56
- }*/
57
- }
58
- /* Hack - for some reason RA adds an empty span immediately after */
59
- .RaList-actions > span {
60
- display: none;
61
- }
62
-
63
- .RaList-actions {
64
- display: block !important;
65
- //margin-bottom: 15px;
66
- form {
67
- min-height: auto;
68
- }
69
- }
70
-
71
-
72
- .list-page .RaList-main {
73
- width: 100%;
74
- // To give paginator space
75
- //padding-bottom: 80px;
76
- //margin-bottom: 80px;
77
- }
78
-
79
- /* This is mented to show a horizontal scroll feature when not all elements of bulk actions fit */
80
-
81
- /*.RaBulkActionsToolbar-topToolbar {
82
- overflow-x: scroll;
83
- }*/
84
-
85
- /*.RaFilterForm-filterFormInput .MuiFormControl-root {
86
- //min-width: 217px;
87
- width: 100%;
88
- }*/
89
-
90
- .toolbar-filters {
91
- width: 100%
92
-
93
- }
94
-
95
- .filter-field {
96
- width: 25%;
97
- }
98
-
99
- @media (max-width: @mq-lg){
100
- .filter-field {
101
- width: 33%;
102
- }
103
- }
104
-
105
-
106
- @media (max-width: @mq-md){
107
- .filter-field {
108
- width: 50%;
109
- }
110
- }
111
-
112
- @media (max-width: @mq-sm){
113
- .filter-field {
114
- width: 100%;
115
- }
116
- }
117
-
118
- /*
119
- .MuiToolbar-root.RaBulkActionsToolbar-toolbar {
120
- min-height: unset !important;
121
- -webkit-transform: translateY(0px) !important;
122
- -moz-transform: translateY(0px) !important;
123
- -ms-transform: translateY(0x) !important;
124
- transform: translateY(0px) !important;
125
- position: relative !important;
126
- width: 100%;
127
- //overflow-x: scroll;
128
- }
129
- */
130
-
131
- .MuiSelect-select .RaSelectArrayInput-chips {
132
- display: contents !important;
133
- }
134
-
135
- .MuiSelect-select:hover .RaSelectArrayInput-chips {
136
- //display: flex !important;
137
- position: absolute;
138
- background: white;
139
- border-radius: 14px;
140
- padding: 4px;
141
- }
142
-
143
- .RaDatagrid-tableWrapper table {
144
- margin-top: auto !important;
145
- }
146
-
147
-
148
-
149
- .RaList-actions {
150
- padding: 15px 5px;
151
- background: var(--module-bg);
152
- border-radius: 8px;
153
- margin-bottom:3px;
154
- }
155
-
156
- .RaDatagrid-root {
157
- [class*="RaBulkActionsToolbar-root"] {
158
- position: inherit;
159
- //background-color: var(--primary-contrast);
160
- background-color: 'none';
161
- }
162
- }
163
-
164
- /*.RaEdit-main {
165
- padding: 5px 0px 0px 5px;
166
- }
167
- */
168
-
169
- // This is to override RA's display flex that breaks our layouts
170
- .RaEdit-main, .RaCreate-main {
171
- display: block !important;
172
- }
173
-
174
- .RaSingleFieldList-root {
175
- .RaSingleFieldList-link > * {
176
- color: var(--text-color);
177
- }
178
- }
179
-
180
- .RaReferenceField-root {
181
- .RaReferenceField-link > * {
182
- color: var(--text-color);
183
- }
184
- }
@@ -1,22 +0,0 @@
1
- /*.RaList-main > .MuiToolbar-root {
2
- margin-bottom: 15px;
3
- }*/
4
-
5
- /*
6
- .edit-page,
7
- .create-page {
8
- margin-bottom: 60px; // The height of the bottom toolbar
9
- }
10
- */
11
-
12
- /*
13
- .RaToolbar-mobileToolbar {
14
- background: none !important;
15
-
16
- }
17
-
18
- .RaToolbar-desktopToolbar {
19
- background: none !important;
20
-
21
- }
22
- */
@@ -1,13 +0,0 @@
1
- /*:root {
2
- color-scheme: only light;
3
- }*/
4
-
5
- #root {
6
- margin:0;
7
- padding: 0;
8
- }
9
- html,body {
10
- margin: 0;
11
- padding: 0;
12
-
13
- }