@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,44 +0,0 @@
1
- .dash-splash {
2
- height: 100vh;
3
- background-color: var(--primary-color);
4
- //opacity: 0;
5
- pointer-events: none;
6
- }
7
-
8
- .dash-splash .MuiCircularProgress-root {
9
- color: var(--primary-contrast);
10
- }
11
-
12
- .dash-app-layout .MuiCircularProgress-root {
13
- color: var(--primary-color) !important;
14
- }
15
-
16
- /*
17
- .dash-splash.fade-in {
18
- background-color: transparent;
19
- animation: fadeIn 0.5s ease-in forwards;
20
- }
21
-
22
- .dash-splash.fade-out {
23
- background-color: var(--primary-color);
24
- animation: fadeOut 0.5s ease-out forwards;
25
- }
26
-
27
- @keyframes fadeIn {
28
- from {
29
- background-color: transparent;
30
- }
31
- to {
32
- background-color: var(--primary-color);
33
- }
34
- }
35
-
36
- @keyframes fadeOut {
37
- from {
38
- background-color: var(--primary-color);
39
- }
40
- to {
41
- background-color: transparent;
42
- }
43
- }
44
- */
@@ -1,59 +0,0 @@
1
- .dash-app-static {
2
- &-content{
3
- width: 100%;
4
- align-items: center;
5
- padding: 170px 6.208vw 0 7.083vw;
6
- }
7
- &-logo{
8
- position: absolute;
9
- width: 200px;
10
- left: 61px;
11
- top: 68px;
12
- }
13
- &-back{
14
- align-items: flex-end;
15
- justify-content: flex-start;
16
- width: 100%;
17
- max-width: 50.694%;
18
- flex: 0 0 50.694%;
19
- height: 100vh;
20
- position: fixed;
21
- top: 0;
22
- right: 0;
23
- z-index: 1;
24
- &::before{
25
- content: "";
26
- display: block;
27
- width: 50.694vw;
28
- height: 100vh;
29
- right: 0;
30
- top: 0;
31
- background: var(--btn-bg);
32
- background: linear-gradient(130.87deg, var(--btn-bg) 4.81%, var(--btn-danger-bg) 107.52%);
33
- border-radius: 40px 0 0 40px;
34
- position: absolute;
35
- z-index: -1;
36
- }
37
- }
38
- &-img{
39
- position: absolute;
40
- width: 76.208vw;
41
- height: 91.136vh;
42
- object-fit: contain;
43
- object-position: bottom right;
44
- left: -6.208vw;
45
- bottom: 0;
46
- img, svg{
47
- width: 100%;
48
- height: 100%;
49
- object-fit: contain;
50
- object-position: bottom right;
51
- * {
52
- pointer-events: none;
53
- }
54
- }
55
- &-logo{
56
- display: none;
57
- }
58
- }
59
- }
@@ -1,5 +0,0 @@
1
-
2
- .stats-number {
3
- font-size: 42px;
4
- font-weight: 600;
5
- }
@@ -1,30 +0,0 @@
1
- .svg-icon-regular{
2
- svg{
3
- fill: var(--text-color, #233044);
4
- }
5
- color: var(--text-color, #233044);
6
- }
7
- .svg-icon-red{
8
- svg{
9
- fill: var(--danger-color);
10
- }
11
- color: var(--danger-color);
12
- }
13
- .svg-icon-green{
14
- svg{
15
- fill: var(--success-color, #4CAF50);
16
- }
17
- color: var(--success-color, #4CAF50);
18
- }
19
- .svg-icon-blue{
20
- svg{
21
- fill: var(--primary-color, #1976D2);
22
- }
23
- color: var(--primary-color, #1976D2);
24
- }
25
- .svg-icon-yellow{
26
- svg{
27
- fill: var(--warning-color, #FF9800);
28
- }
29
- color: var(--warning-color, #FF9800);
30
- }
@@ -1,7 +0,0 @@
1
- .dash-switch-span{
2
- font-style: normal;
3
- font-weight: 500;
4
- font-size: 18px;
5
- line-height: 24px;
6
- color: #1E1E1E;
7
- }
@@ -1,196 +0,0 @@
1
- /*.MuiTableCell-root.MuiTableCell-head{
2
- //padding: 16px;
3
- //background-color: var(--table-header-bg) !important;
4
- span{
5
- font-style: normal;
6
- font-weight: 600;
7
- font-size: 14px;
8
- line-height: 22px;
9
- color: var(--table-header-color);
10
- }
11
- svg{
12
- color: var(--table-header-color) !important;
13
- }
14
- }*/
15
- /*
16
- .MuiTableCell-root.MuiTableCell-body{
17
- span{
18
- //display: inline;
19
- flex-wrap: wrap;
20
- align-items: center;
21
- justify-content: center;
22
- label{
23
- margin: 0 5px;
24
- }
25
- }
26
- .tags-wrapper{
27
- display: flex;
28
- flex-direction: column;
29
- align-items: center;
30
- }
31
- }*/
32
-
33
- .RaDatagrid-headerCell{
34
- //min-width: 140px;
35
- text-align: center;
36
- }
37
- .MuiTableCell-root.MuiTableCell-body{
38
- //text-align: center;
39
- //border-bottom: 1px solid @primary-contrast;
40
- padding: 2px 8px;
41
- }
42
-
43
- .MuiTableRow-hover:hover {
44
- background-color: var('--primary-contrast');
45
- }
46
-
47
- /* Stikcy header */
48
-
49
- /*
50
- .sticky-header-wrapper.sortable-datagrid .RaDatagrid-thead {
51
- display: inline;
52
- }
53
-
54
- .sortable-datagrid .RaDatagrid-thead {
55
- display: flex;
56
- }
57
- .sortable-datagrid .MuiTableContainer-root {
58
- display: flex;
59
- }
60
- */
61
- .MuiTableContainer-root, .dash-datagrid-wrapper{
62
- overflow: visible !important;
63
- // margin-top: 50px;
64
- // max-height: 480px !important;
65
- // // overflow-x: unset !important;
66
- .RaDatagrid-tableWrapper{
67
- width: 100%;
68
- //min-width: 920px;
69
- //margin-top: 15px;
70
- //max-height: unset !important;
71
- //overflow: auto;
72
- }
73
- }
74
-
75
- .RaDatagrid-tableWrapper{
76
- //max-height: calc(100vh - 70px);
77
- //margin-bottom: 70px;
78
- overflow: auto;
79
- }
80
-
81
- /*
82
- .RaBulkActionsToolbar-topToolbar{
83
- .MuiButtonBase-root{
84
- background-color: #fff1f0;
85
- border: 1px solid var(--pink);
86
- border-radius: 6px !important;
87
- font-family: 'Montserrat' !important;
88
- font-style: normal !important;
89
- font-weight: 700 !important;
90
- font-size: 16px !important;
91
- line-height: 24px !important;
92
- color: var(--pink) !important;
93
- min-height: auto !important;
94
- height: auto !important;
95
- padding: 4px 10px !important;
96
- .MuiButton-startIcon{
97
- color: var(--pink) !important;
98
- width: 18px !important;
99
- }
100
- &:hover{
101
- background-color: var(--pink);
102
- color: #fff1f0 !important;
103
- .MuiButton-startIcon{
104
- color: #fff1f0 !important;
105
- }
106
- }
107
- }
108
- }
109
- */
110
-
111
- .RaDatagrid-tableWrapper{
112
- //max-height: calc(100vh - 70px);
113
- //margin-bottom: 70px;
114
- overflow: auto;
115
- }
116
-
117
- .RaBulkActionsToolbar-topToolbar{
118
- .MuiButtonBase-root{
119
- background-color: var('--primary-contrast');
120
- border: 1px solid var('--primary-color');;
121
- border-radius: 6px !important;
122
- font-family: 'Montserrat' !important;
123
- font-style: normal !important;
124
- font-size: 16px !important;
125
- line-height: 24px !important;
126
- color: var('--highlight-color');
127
- min-height: auto !important;
128
- height: auto !important;
129
- padding: 4px 10px !important;
130
- .MuiButton-startIcon{
131
- color: var('--highlight-color');
132
- width: 18px !important;
133
- }
134
- &:hover{
135
-
136
- color: var('--text-color');
137
- .MuiButton-startIcon{
138
- color: var('--text-color');
139
- }
140
- }
141
- }
142
- }
143
-
144
-
145
-
146
- /* Sticky header updated */
147
- .dash-sticky-header {
148
-
149
- .RaDatagrid-tableWrapper {
150
- max-height: calc(~"100vh - 90px"); // minus the floating paginator size
151
- box-sizing: border-box;
152
- }
153
-
154
- .RaDatagrid-root {
155
- // Make sure the table container has a defined height and scrolling
156
- .RaDatagrid-tableWrapper {
157
- max-height: 70vh; // Adjust this value based on your needs
158
- overflow-y: auto;
159
- position: relative;
160
- }
161
-
162
- // Enhance the sticky header
163
- .MuiTable-stickyHeader {
164
- .MuiTableHead-root {
165
- position: sticky;
166
- top: 0;
167
- z-index: 10;
168
- //background-color: #fff; // Match your theme background
169
-
170
- // Add shadow to make the header stand out
171
- &::after {
172
- content: '';
173
- position: absolute;
174
- left: 0;
175
- right: 0;
176
- bottom: 0;
177
- height: 2px;
178
- background: rgba(0, 0, 0, 0.1);
179
- }
180
- }
181
- }
182
-
183
- // Ensure header cells have proper background
184
- .MuiTableCell-stickyHeader {
185
- //background-color: #fff; // Match your theme background
186
- font-weight: bold;
187
- }
188
- }
189
-
190
- // Add responsive styles for smaller screens
191
- @media (max-width: 768px) {
192
- .RaDatagrid-tableWrapper {
193
- max-height: 60vh;
194
- }
195
- }
196
- }
@@ -1,173 +0,0 @@
1
- .dash-module{
2
- &-box-header{
3
- background-color: transparent;
4
- padding: 0;
5
- min-height: auto;
6
- border: unset;
7
- }
8
- }
9
-
10
- .dash-module{
11
- &-top-content{
12
- width: 100%;
13
- overflow-y: hidden;
14
- overflow-x: auto;
15
- position: relative;
16
- }
17
- &-horizontal-nav{
18
- display: flex;
19
- flex-wrap: unset;
20
- //border-bottom: 1px solid var(--component-border-base);
21
- position: relative;
22
- padding-top: 4px;
23
- margin: 0;
24
-
25
- li{
26
-
27
- cursor: pointer;
28
-
29
-
30
- .dash-link{
31
- display: flex;
32
- align-items: center;
33
- justify-content: center;
34
-
35
- border: 1px solid var(--component-border-split);
36
- border-top-left-radius: 8px;
37
- border-top-right-radius: 8px;
38
- margin: 0 .75rem 0 0;
39
- border-bottom: none;
40
- padding: 5px 15px;
41
- width: max-content;
42
- height: 45px;
43
- min-height: 45px;
44
- font-size: 14px;
45
- font-weight: 700;
46
- text-align: center;
47
- color: var(--text-light) !important;
48
- text-decoration: none !important;
49
- position: relative;
50
-
51
- transition: all .4s;
52
- .icon{
53
- display: none;
54
- }
55
- }
56
-
57
- /* &:hover{
58
- .dash-link{
59
- color: var(--text-color) !important;
60
- }
61
- }*/
62
- &.active{
63
- .dash-link{
64
-
65
- background-color: var(--tab-selected-bg);
66
- //background-color: var(--component-active-bg);
67
- border-color: var(--primary-color);
68
- border-bottom: 2px solid var(--component-active-bg);
69
- z-index: 1;
70
- //transform: translateY(1px);
71
- }
72
- }
73
- &:first-child{
74
- .dash-link{
75
- margin-left: 4px;
76
- }
77
- }
78
- }
79
- }
80
- }
81
-
82
- .dash-module-action-group {
83
- position: absolute;
84
- right: 0px;
85
- top: 0px;
86
- z-index: 100;
87
- }
88
-
89
-
90
- .dash-module-top button {
91
- background-color: var(--primary-color);
92
- z-index: 5;
93
- }
94
-
95
- .dash-module-action {
96
- position:relative;
97
- //display: flex;
98
- //justify-content: flex-end;
99
- //margin: 4px 4px 0px 0px;
100
- //position: absolute;
101
- //right: 6px;
102
- /*button {
103
- z-index: 1000;
104
- }*/
105
-
106
- .MuiButton-root {
107
- //padding: 2px 8px;
108
- font-size: 0.8rem !important;
109
- //min-width: 40px;
110
- //min-height: 20px;
111
- }
112
-
113
- //margin-bottom: -40px;
114
- }
115
-
116
-
117
- .dash-auto-admin-tabbed-form {
118
- .MuiTabs-scroller{
119
- overflow-x: auto !important;
120
- overflow-y: hidden;
121
- }
122
- .MuiTabs-root{
123
- border-top: 1px solid var(--component-border-base);
124
- .MuiTab-root{
125
- display: -moz-box;
126
- display: -webkit-box;
127
- align-items: center;
128
- svg{
129
- width: 18px;
130
- height: 18px;
131
- margin: -3px 5px 0 0 ;
132
- }
133
- }
134
- }
135
- }
136
-
137
- .MuiTabs-root {
138
- min-height: auto !important;
139
- }
140
-
141
- @media (max-width: @mq-sm){
142
- .dash-module{
143
- &-box-header{
144
- .dash-module{
145
- &-top-content{
146
- }
147
- }
148
- }
149
- }
150
-
151
- ul.dash-module-horizontal-nav {
152
- margin: 0;
153
-
154
- .dash-link {
155
- height: auto;
156
- min-height: auto;
157
- padding: 2px 5px;
158
- }
159
- }
160
-
161
- // MUI Tabs responsive styles for .tabbed-form
162
- .tabbed-form {
163
- .MuiTabs-root {
164
- .MuiTab-root {
165
- min-height: 24px;
166
- height: 24px;
167
- padding: 2px 8px;
168
- font-size: 0.75rem;
169
- font-weight: 500;
170
- }
171
- }
172
- }
173
- }
@@ -1,97 +0,0 @@
1
- .ant-tag{
2
- display: inline-flex;
3
- align-items: center;
4
- justify-content: center;
5
- padding: 1px 8px;
6
- width: max-content;
7
- min-width: 71px;
8
- height: 30px;
9
-
10
- background: var(--component-bg);
11
- border: 1px solid var(--component-border);
12
- border-radius: 4px;
13
- color: var(--component-text);
14
- svg{
15
- color: var(--component-text);
16
- path{
17
- stroke: var(--component-text);
18
- }
19
- }
20
- &.ant-tag-magenta{
21
- color: #EB2F96;
22
- background: #fff0f6;
23
- border: 1px solid #FFADD2;
24
- &.color svg{ color: #EB2F96; }
25
- &.stroke svg path{ stroke: #EB2F96; }
26
- }
27
- &.dash-tag-red{
28
- color: #F5222D;
29
- background: #fff1f0;
30
- border: 1px solid var(--pink);
31
- &.color svg{ color: #F5222D; }
32
- &.stroke svg path{ stroke: #F5222D; }
33
- }
34
- &.dash-tag-volcano{
35
- color: #FA541C;
36
- background: #fff2e8;
37
- border: 1px solid #FFBB96;
38
- &.color svg{ color: #FA541C; }
39
- &.stroke svg path{ stroke: #FA541C; }
40
- }
41
- &.dash-tag-orange{
42
- color: #FA8C16;
43
- background: #fff7e6;
44
- border: 1px solid #FFD591;
45
- &.color svg{ color: #FA8C16; }
46
- &.stroke svg path{ stroke: #FA8C16; }
47
- }
48
- &.dash-tag-gold{
49
- color: #FAAD14;
50
- background: #fffbe6;
51
- border: 1px solid #FFE58F;
52
- &.color svg{ color: #FAAD14; }
53
- &.stroke svg path{ stroke: #FAAD14; }
54
- }
55
- &.dash-tag-lime{
56
- color: #A0D911;
57
- background: #FCFFE6;
58
- border: 1px solid #EAFF8F;
59
- &.color svg{ color: #A0D911; }
60
- &.stroke svg path{ stroke: #A0D911; }
61
- }
62
- &.dash-tag-green{
63
- color: #52C41A;
64
- background: #F6FFED;
65
- border: 1px solid #B7EB8F;
66
- &.color svg{ color: #52C41A; }
67
- &.stroke svg path{ stroke: #52C41A; }
68
- }
69
- &.dash-tag-cyan{
70
- color: #13C2C2;
71
- background: #E6FFFB;
72
- border: 1px solid #87E8DE;
73
- &.color svg{ color: #13C2C2; }
74
- &.stroke svg path{ stroke: #13C2C2; }
75
- }
76
- &.dash-tag-blue{
77
- color: #1890FF;
78
- background: #E6F7FF;
79
- border: 1px solid #91D5FF;
80
- &.color svg{ color: #1890FF; }
81
- &.stroke svg path{ stroke: #1890FF; }
82
- }
83
- &.dash-tag-geekblue{
84
- color: #2F54EB;
85
- background: #F0F5FF;
86
- border: 1px solid #ADC6FF;
87
- &.color svg{ color: #2F54EB; }
88
- &.stroke svg path{ stroke: #2F54EB; }
89
- }
90
- &.dash-tag-purple{
91
- color: #722ED1;
92
- background: #F9F0FF;
93
- border: 1px solid #D3ADF7;
94
- &.color svg{ color: #722ED1; }
95
- &.stroke svg path{ stroke: #722ED1; }
96
- }
97
- }
@@ -1,83 +0,0 @@
1
- @toast-success-bg: #F6FFED;
2
- @toast-success-border: 1px solid #52C41A;
3
- @toast-success-icon: #B7EB8F;
4
- @toast-success-color: #262626;
5
-
6
- @toast-error-bg: #fff1f0;
7
- @toast-error-border: 1px solid var(--pink);
8
- @toast-error-icon: #F5222D;
9
- @toast-error-color: #262626;
10
-
11
- @toast-info-bg: #EDE0FF;
12
- @toast-info-border: 1px solid var(--primary-color);
13
- @toast-info-icon: var(--primary-color);
14
- @toast-info-color: #262626;
15
-
16
- @toast-custom-bg: linear-gradient(92.77deg, rgba(154, 101, 224, 0.5) 2.44%, rgba(203, 18, 98, 0.5) 97.8%);;
17
- @toast-custom-border: 1px solid var(--primary-color);
18
- @toast-custom-icon: var(--highlight-color);
19
- @toast-custom-color: var(--highlight-color);
20
-
21
- .ant-notification-notice{
22
- padding: 16px;
23
- border-radius: 2px;
24
- overflow: initial;
25
- &-icon{
26
- margin: 0;
27
- width: 21px;
28
- height: 21px;
29
- color: initial !important;
30
- > svg{
31
- width: 100% !important;
32
- height: 100% !important;
33
- > *{
34
- pointer-events: none;
35
- }
36
- }
37
- }
38
- &-success{
39
- background: @toast-success-bg;
40
- border: @toast-success-border;
41
- .ant-notification-notice-icon{
42
- filter: invert(61%) sepia(34%) saturate(993%) hue-rotate(56deg) brightness(95%) contrast(99%);
43
- }
44
- }
45
- &-error{
46
- background: @toast-error-bg;
47
- border: @toast-error-border;
48
- .ant-notification-notice-icon{
49
- filter: invert(18%) sepia(28%) saturate(6396%) hue-rotate(340deg) brightness(132%) contrast(109%);
50
- }
51
- }
52
- &-info{
53
- background: @toast-info-bg;
54
- border: @toast-info-border;
55
- .ant-notification-notice-icon{
56
- filter: invert(43%) sepia(96%) saturate(420%) hue-rotate(222deg) brightness(92%) contrast(91%);
57
- }
58
- }
59
- &-custom{
60
- background: @toast-custom-bg;
61
- border: @toast-custom-border;
62
- strong{
63
- color: var(--primary-color);
64
- }
65
- .ant-notification-notice-icon{
66
- filter: invert(10%) sepia(15%) saturate(10%) hue-rotate(314deg) brightness(101%) contrast(90%);
67
- }
68
- }
69
-
70
- &-with-icon{
71
- .ant-notification-notice{
72
- &-message{
73
- margin-bottom: 0;
74
- }
75
- &-description{
76
- margin-top: 4px;
77
- &:empty{
78
- display: none;
79
- }
80
- }
81
- }
82
- }
83
- }