@visns-studio/visns-components 5.0.0 → 5.0.1-8.1

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 (37) hide show
  1. package/package.json +3 -1
  2. package/src/components/crm/AsyncSelect.jsx +121 -15
  3. package/src/components/crm/DataGrid.jsx +26 -5
  4. package/src/components/crm/Field.jsx +174 -148
  5. package/src/components/crm/Form.jsx +46 -33
  6. package/src/components/crm/MultiSelect.jsx +96 -29
  7. package/src/components/crm/Navigation.jsx +2 -81
  8. package/src/components/crm/QrCode.jsx +12 -8
  9. package/src/components/crm/auth/Login.jsx +9 -1
  10. package/src/components/crm/auth/Profile.jsx +4 -2
  11. package/src/components/crm/auth/styles/Login.module.scss +52 -82
  12. package/src/components/crm/auth/styles/Profile.module.scss +150 -44
  13. package/src/components/crm/auth/styles/Reset.module.scss +55 -37
  14. package/src/components/crm/auth/styles/Verify.module.scss +55 -76
  15. package/src/components/crm/generic/GenericAuth.jsx +17 -6
  16. package/src/components/crm/generic/GenericDetail.jsx +509 -18
  17. package/src/components/crm/generic/GenericEditableTable.jsx +407 -0
  18. package/src/components/crm/generic/styles/AuditLog.module.scss +4 -37
  19. package/src/components/crm/generic/styles/AuditLogs.module.scss +0 -51
  20. package/src/components/crm/generic/styles/GenericDetail.module.scss +263 -193
  21. package/src/components/crm/generic/styles/GenericDynamic.module.scss +100 -198
  22. package/src/components/crm/generic/styles/GenericEditableTable.module.scss +178 -0
  23. package/src/components/crm/generic/styles/GenericFormBuilder.module.scss +63 -96
  24. package/src/components/crm/generic/styles/GenericIndex.module.scss +46 -66
  25. package/src/components/crm/generic/styles/GenericMain.module.scss +7 -7
  26. package/src/components/crm/generic/styles/GenericSort.module.scss +0 -36
  27. package/src/components/crm/generic/styles/NotificationList.module.scss +1 -32
  28. package/src/components/crm/styles/Autocomplete.module.scss +12 -20
  29. package/src/components/crm/styles/DataGrid.module.scss +6 -89
  30. package/src/components/crm/styles/Field.module.scss +72 -42
  31. package/src/components/crm/styles/Form.module.scss +148 -379
  32. package/src/components/crm/styles/Navigation.module.scss +356 -501
  33. package/src/components/crm/styles/Notification.module.scss +1 -0
  34. package/src/components/crm/styles/QrCode.module.scss +4 -0
  35. package/src/components/crm/styles/SwitchAccount.module.scss +0 -1
  36. package/src/components/crm/styles/TableFilter.module.scss +2 -1
  37. package/src/components/styles/global.css +164 -34
@@ -18,39 +18,6 @@
18
18
  margin: 5px;
19
19
  }
20
20
 
21
- .crmtitle {
22
- border: none;
23
- min-height: auto;
24
- padding: 10px 20px;
25
- margin: 5px;
26
- background: var(--item-color);
27
- border-radius: var(--br);
28
- border: 1px solid var(--border-color);
29
- position: relative;
30
- }
31
-
32
- .crmtitle h1 {
33
- font-weight: 700;
34
- font-size: 1.25em;
35
- margin: 0;
36
- padding: 0.25rem 0;
37
- color: var(--paragraph-color);
38
- text-transform: capitalize;
39
- }
40
-
41
- .crmtitle h1 a {
42
- text-decoration: none;
43
- color: var(--secondary-color-dark);
44
- font-weight: 300;
45
- }
46
-
47
- .crmtitle h1 svg {
48
- color: rgba(var(--primary-color-rgb), 0.85);
49
- position: relative;
50
- top: 2px;
51
- margin: 0 0.25rem;
52
- }
53
-
54
21
  .grid__subrow {
55
22
  width: 100%;
56
23
  display: flex;
@@ -62,14 +29,14 @@
62
29
  flex: 1;
63
30
  background: white;
64
31
  border-radius: var(--br);
65
- border: 1px solid var(--border-color);
66
32
  box-sizing: border-box;
67
33
  padding: 5px;
68
- margin: 5px;
34
+ margin: 8px 0;
69
35
  height: auto;
36
+ box-shadow: 0 4px 0 rgba(var(--primary-color-rgb), 0.05);
70
37
  }
71
38
 
72
- .grid__subnav ul {
39
+ .grid__subnav > ul {
73
40
  width: 100%;
74
41
  list-style: none;
75
42
  padding: 0;
@@ -78,20 +45,20 @@
78
45
  flex-wrap: wrap;
79
46
  }
80
47
 
81
- .grid__subnav ul li {
48
+ .grid__subnav > ul li {
82
49
  width: 100%;
83
50
  margin-bottom: 3px;
84
51
  }
85
52
 
86
- .grid__subnav ul li a {
53
+ .grid__subnav > ul li a {
87
54
  width: 100%;
88
- padding: 8px 20px;
55
+ padding: 0.35rem 1rem;
89
56
  box-sizing: border-box;
90
57
  display: block;
91
58
  text-decoration: none;
92
- background: var(--border-color);
93
- color: var(--secondary-color);
94
- border-radius: var(--br);
59
+ background: rgba(var(--primary-rgb), 0.05);
60
+ color: var(--primary-color);
61
+ border-radius: 5px;
95
62
  transition: background 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
96
63
  outline: none;
97
64
  cursor: pointer;
@@ -199,25 +166,64 @@
199
166
 
200
167
  .formcontainer {
201
168
  width: 100%;
202
- }
203
169
 
204
- .modalForm {
205
- width: 100%;
206
- display: flex;
207
- align-items: flex-start;
208
- flex-wrap: wrap;
170
+ form {
171
+ width: 100%;
172
+ display: grid;
173
+ grid-template-columns: 1fr 1fr;
174
+ gap: 1em;
175
+ }
209
176
  }
210
177
 
211
178
  .formItem {
212
- width: 50%;
213
- padding: 0.35em;
179
+ width: 100%;
214
180
  position: relative;
215
181
  box-sizing: border-box;
182
+
183
+ .fi__label {
184
+ position: relative;
185
+ display: flex;
186
+ align-items: center;
187
+ }
188
+
189
+ .fi__span {
190
+ position: absolute;
191
+ transition: all 200ms;
192
+ opacity: 0.8;
193
+ left: 0;
194
+ transform-origin: top left;
195
+ cursor: text;
196
+ }
197
+
198
+ .fi__div {
199
+ transition: all 200ms;
200
+ opacity: 0.8;
201
+ left: 0;
202
+ padding: 19px 13px;
203
+ border-radius: var(--radius);
204
+ border: 1px solid rgba(var(--paragraph-rgb), 0.15);
205
+ box-shadow: none;
206
+ }
207
+
208
+ .fi__toggle {
209
+ width: max-content;
210
+ padding: 0 10px 0 0;
211
+ box-sizing: border-box;
212
+ display: inline;
213
+ }
214
+
215
+ .fi__toggletxt {
216
+ position: relative;
217
+ left: 5px;
218
+ font-size: 0.95em;
219
+ top: -5px;
220
+ }
216
221
  }
217
222
 
218
- .formItem .fi__label {
219
- position: relative;
220
- display: block;
223
+ .fwItem,
224
+ .fwBuilderItem {
225
+ grid-column: 1 / -1;
226
+ width: 100%;
221
227
  }
222
228
 
223
229
  .formItem textarea,
@@ -264,6 +270,10 @@
264
270
  border: 1px solid rgba(var(--primary-color-rgb), 0.85);
265
271
  }
266
272
 
273
+ .formItem textarea {
274
+ line-height: 1.65 !important;
275
+ }
276
+
267
277
  input[type='file'] {
268
278
  background: var(--item-color) !important;
269
279
  border-radius: var (--br) !important;
@@ -500,49 +510,6 @@ select:not(:placeholder-shown) + .fi__span {
500
510
  border-color: red !important;
501
511
  }
502
512
 
503
- .AutocompletePlace {
504
- position: relative;
505
- }
506
-
507
- .AutocompletePlace svg {
508
- position: absolute;
509
- right: 0.5em;
510
- top: 0.5em;
511
- color: var(--paragraph-color);
512
- cursor: pointer;
513
- }
514
-
515
- .AutocompletePlace .toggleActive {
516
- color: var(--highlight-color);
517
- }
518
-
519
- .AutocompletePlace-input {
520
- padding: 0.65rem 3rem 0.65rem 0.95rem !important;
521
- height: 51.5px;
522
- }
523
-
524
- .AutocompletePlace-results {
525
- position: absolute;
526
- background-color: white;
527
- padding: 0;
528
- margin: 0;
529
- border: 1px solid rgba(var(--primary-color), 0.25);
530
- border-radius: var(--br);
531
- overflow: hidden;
532
- z-index: 999;
533
- }
534
-
535
- .AutocompletePlace-items {
536
- list-style: none;
537
- border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.1);
538
- cursor: pointer;
539
- padding: 10px 10px;
540
- }
541
-
542
- .AutocompletePlace-items:hover {
543
- background-color: rgba(var(--paragraph-color-rgb), 0.065);
544
- }
545
-
546
513
  .react-datepicker-wrapper {
547
514
  width: 100% !important;
548
515
  }
@@ -69,9 +69,8 @@
69
69
 
70
70
  .grid__subnav {
71
71
  flex: 1;
72
- background: rgba(var(--item-color-rgb), 1.01);
72
+ background: white;
73
73
  border-radius: var(--br);
74
- border: 1px solid rgba(var(--item-color-rgb), 1.15);
75
74
  box-sizing: border-box;
76
75
  padding: 5px;
77
76
  margin: 8px 0;
@@ -95,11 +94,11 @@
95
94
 
96
95
  .grid__subnav > ul li a {
97
96
  width: 100%;
98
- padding: 8px 20px;
97
+ padding: 0.35rem 1rem;
99
98
  box-sizing: border-box;
100
99
  display: block;
101
100
  text-decoration: none;
102
- background: rgba(var(--primary-color-rgb), 0.05);
101
+ background: rgba(var(--primary-rgb), 0.05);
103
102
  color: var(--primary-color);
104
103
  border-radius: 5px;
105
104
  transition: background 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
@@ -197,68 +196,6 @@
197
196
  margin: 0 0 30px 0;
198
197
  }
199
198
 
200
- .crmtitle {
201
- border: none;
202
- min-height: auto;
203
- padding: 10px 20px;
204
- margin: 0;
205
- background: var(--tertiary-color);
206
- border-radius: var(--br);
207
- border: 1px solid rgba(var(--item-color-rgb), 1.15);
208
- position: relative;
209
- }
210
-
211
- .crmtitle h1 {
212
- font-weight: 700;
213
- font-size: 1.45em;
214
- margin: 0;
215
- padding: 0.65rem 0;
216
- }
217
-
218
- .crmtitle h1 a {
219
- text-decoration: none;
220
- color: rgba(var(--secondary-color-rgb), 1.1);
221
- font-weight: 300;
222
- }
223
-
224
- .crmtitle h1 svg {
225
- color: rgba(var(--primary-color-rgb), 0.25);
226
- position: relative;
227
- top: 2px;
228
- margin: 0 0.25rem;
229
- }
230
-
231
- .crmtitleSimple {
232
- border: none;
233
- min-height: auto;
234
- padding: 0.65rem 1rem;
235
- margin-bottom: 0.15rem;
236
- background: var(--tertiary-color);
237
- border-radius: var(--br);
238
- box-sizing: border-box;
239
- display: flex;
240
- flex-wrap: nowrap;
241
- justify-content: space-between;
242
- align-items: center;
243
-
244
- h1 {
245
- font-size: 1.25rem;
246
- margin: 0;
247
- padding: 0;
248
- }
249
- }
250
-
251
- .titleInfo {
252
- position: absolute;
253
- right: 2em;
254
- top: 24px;
255
- }
256
-
257
- .titleInfo span {
258
- font-size: 0.875em;
259
- color: rgba(var(--paragraph-color-rgb), 0.65);
260
- }
261
-
262
199
  .btn {
263
200
  width: max-content;
264
201
  display: inline-block;
@@ -296,3 +233,46 @@
296
233
  padding: 0.35em 1em;
297
234
  margin: 0 0.15em;
298
235
  }
236
+
237
+ .crmtitle {
238
+ min-height: auto;
239
+ padding: 1rem;
240
+ margin: 0;
241
+ background: white;
242
+ border-radius: var(--br);
243
+ border: 1px solid rgba(var(--primary-rgb), 0.15);
244
+ position: relative;
245
+ display: flex;
246
+ align-items: center;
247
+ justify-content: space-between;
248
+
249
+ h1 {
250
+ font-weight: 700;
251
+ font-size: 1.25rem;
252
+ margin: 0;
253
+ padding: 0;
254
+ line-height: 1;
255
+
256
+ a {
257
+ text-decoration: none;
258
+ color: var(--secondary-color);
259
+ font-weight: 400;
260
+ }
261
+
262
+ svg {
263
+ color: rgba(var(--primary-color-rgb), 0.5);
264
+ position: relative;
265
+ top: 2px;
266
+ margin: 0 0.25rem;
267
+ }
268
+ }
269
+
270
+ .titleInfo {
271
+ width: max-content;
272
+ }
273
+
274
+ .titleInfo span {
275
+ font-size: 0.875em;
276
+ color: rgba(var(--paragraph-color-rgb), 0.65);
277
+ }
278
+ }
@@ -1,21 +1,21 @@
1
1
  .header {
2
2
  background: var(--primary-color);
3
3
  color: var(--primary-color);
4
- position: fixed;
4
+ position: relative;
5
5
  top: 0;
6
6
  width: 100%;
7
7
  z-index: 995;
8
- box-shadow: 0 4px 0 rgba(var(--primary-color-rgb), 0.05);
8
+ padding: 0.35rem 1rem;
9
9
  }
10
10
 
11
11
  .headerAlternate {
12
- background: white;
12
+ background: var(--bg-color);
13
13
  color: var(--paragraph-color);
14
- position: fixed;
14
+ position: relative;
15
15
  top: 0;
16
16
  width: 100%;
17
17
  z-index: 995;
18
- box-shadow: 0 4px 0 rgba(var(--primary-color-rgb), 0.05);
18
+ padding: 0.35rem 1rem;
19
19
  }
20
20
 
21
21
  .content {
@@ -83,9 +83,9 @@
83
83
  }
84
84
 
85
85
  .padding {
86
- padding: 5em 1em 1em 1em;
86
+ padding: 1rem;
87
87
  }
88
88
 
89
89
  .paddingSimple {
90
90
  padding: 1rem;
91
- }
91
+ }
@@ -29,42 +29,6 @@
29
29
  box-shadow: 0 4px 0 rgba(var(--primary-color-rgb), 0.05);
30
30
  }
31
31
 
32
- .crmtitle {
33
- border: none;
34
- min-height: auto;
35
- padding: 5px 20px;
36
- margin: 0;
37
- background: var(--tertiary-color);
38
- border-radius: var(--br);
39
- border: 1px solid rgba(var(--item-color-rgb), 1.15);
40
- position: relative;
41
- display: flex;
42
- align-items: center;
43
-
44
- h1 {
45
- font-weight: 700;
46
- font-size: 1.15em;
47
- margin: 0;
48
- padding: 0.65rem 0;
49
- display: flex;
50
- align-items: center;
51
- gap: 0.25rem;
52
-
53
- a {
54
- text-decoration: none;
55
- color: rgba(var(--secondary-color-rgb), 1.1);
56
- }
57
-
58
- svg {
59
- color: rgba(var(--primary-color-rgb), 0.25);
60
- position: relative;
61
- top: 0;
62
- margin: 0 0.5rem;
63
- max-width: 15px;
64
- }
65
- }
66
- }
67
-
68
32
  .dragitem {
69
33
  list-style: none;
70
34
  display: flex;
@@ -27,35 +27,4 @@
27
27
  padding: 2px;
28
28
  margin: 8px 0;
29
29
  box-shadow: 0 4px 0 rgba(var(--primary-color-rgb), 0.05);
30
- }
31
-
32
- .crmtitle {
33
- border: none;
34
- min-height: auto;
35
- padding: 10px 20px;
36
- margin: 0;
37
- background: var(--tertiary-color);
38
- border-radius: var(--br);
39
- border: 1px solid rgba(var(--item-color-rgb), 1.15);
40
- position: relative;
41
- }
42
-
43
- .crmtitle h1 {
44
- font-weight: 700;
45
- font-size: 1.45em;
46
- margin: 0;
47
- padding: 0.65rem 0;
48
- }
49
-
50
- .crmtitle h1 a {
51
- text-decoration: none;
52
- color: rgba(var(--secondary-color-rgb), 1.1);
53
- font-weight: 300;
54
- }
55
-
56
- .crmtitle h1 svg {
57
- color: rgba(var(--primary-color-rgb), 0.25);
58
- position: relative;
59
- top: 2px;
60
- margin: 0 0.25rem;
61
- }
30
+ }
@@ -4,41 +4,33 @@
4
4
 
5
5
  .AutocompletePlace {
6
6
  position: relative;
7
+ width: 100%;
7
8
 
8
9
  > svg {
9
10
  position: absolute;
10
11
  right: 0.5em;
11
- top: 0.5em;
12
- color: var(--primary-color);
12
+ top: 0.95rem;
13
+ color: var(--paragraph-color);
13
14
  cursor: pointer;
14
15
  }
15
- }
16
16
 
17
- .AutocompletePlace.toggleActive {
18
- color: var(--highlight-color);
17
+ .toggleActive {
18
+ color: var(--secondary-color);
19
+ }
19
20
  }
20
21
 
21
22
  .AutocompletePlace-input {
22
23
  padding: 0.65rem 3rem 0.65rem 0.95rem !important;
23
- }
24
-
25
- .AutocompletePlace-results {
26
- position: absolute;
27
- background-color: white;
28
- padding: 0;
29
- margin: 0;
30
- border: 1px solid rgba(var(--primary-color-rgb), 0.25);
31
- border-radius: var(--br);
32
- overflow: hidden;
24
+ height: 38px;
33
25
  }
34
26
 
35
27
  .AutocompletePlace-items {
36
28
  list-style: none;
37
- border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.1);
29
+ border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
38
30
  cursor: pointer;
39
- padding: 10px 10px;
40
- }
31
+ padding: 5px;
41
32
 
42
- .AutocompletePlace-items:hover {
43
- background-color: rgba(var(--primary-color-rgb), 0.065);
33
+ &:hover {
34
+ background-color: rgba(var(--paragraph-rgb), 0.065);
35
+ }
44
36
  }
@@ -9,16 +9,15 @@
9
9
  text-decoration: none;
10
10
  overflow: hidden;
11
11
  background: var(--primary-color);
12
- border: 1px solid rgba(var(--primary-color--rgb), 1.1);
12
+ border: 1px solid rgba(var(--primary-rgb), 1.1);
13
13
  border-radius: var(--br);
14
14
  outline: none;
15
15
  transition: all 0.2s cubic-bezier(0.85, 0, 0.15, 1) 0s;
16
- font-size: 1.25em;
17
16
 
18
17
  &:hover {
19
18
  color: var(--primary-color);
20
- background: var(--highlight-color);
21
- border: 1px solid rgba(var(--highlight-color-rgb), 1.05);
19
+ background: var(--secondary-color);
20
+ border: 1px solid rgba(var(--secondary-rgb), 1.05);
22
21
  }
23
22
  }
24
23
 
@@ -30,8 +29,7 @@
30
29
  }
31
30
 
32
31
  .InovuaReactDataGrid {
33
- letter-spacing: 0.015rem !important;
34
- color: black !important;
32
+ color: var(--paragraph-color) !important;
35
33
  }
36
34
 
37
35
  .InovuaReactDataGrid__header {
@@ -39,7 +37,7 @@
39
37
  }
40
38
 
41
39
  .InovuaReactDataGrid__row-hover-target:hover {
42
- color: black !important;
40
+ color: var(--primary-color) !important;
43
41
  background: rgb(240, 240, 240) !important;
44
42
  }
45
43
 
@@ -126,85 +124,4 @@
126
124
  height: 18px;
127
125
  }
128
126
  }
129
- }
130
-
131
- .formcontainer {
132
- width: 100%;
133
- }
134
-
135
- .modalwrap {
136
- background: var(--tertiary-color);
137
- border-radius: 3px;
138
- overflow: visible;
139
- border-top-left-radius: var(--br);
140
- border-top-right-radius: var(--br);
141
- }
142
-
143
- .modalwrap .modal {
144
- width: 100%;
145
- position: relative;
146
- }
147
-
148
- .modalwrap .modal__header {
149
- width: 100%;
150
- background: var(--primary-color);
151
- border: 2px solid rgba(var(--primary-color-rgb), 1.05);
152
- border-top-left-radius: var(--br);
153
- border-top-right-radius: var(--br);
154
- box-sizing: border-box;
155
- }
156
-
157
- .modalwrap .modal__header h1 {
158
- color: var(--tertiary-color);
159
- margin: 0;
160
- padding: 0.75em 0.75em;
161
- font-size: 1.15em;
162
- }
163
-
164
- .modalwrap .modal__header .modal__close {
165
- width: max-content;
166
- position: absolute;
167
- right: 5px;
168
- top: 5px;
169
- box-sizing: border-box;
170
- background: rgba(var(--primary-color-rgb), 1.08);
171
- cursor: pointer;
172
- padding: 8px 8px;
173
- margin: 0;
174
- outline: none;
175
- border: none;
176
- border-radius: var(--br);
177
- display: block;
178
- line-height: 1;
179
- }
180
-
181
- .modalwrap .modal__header .modal__close svg {
182
- color: white;
183
- display: block;
184
- }
185
-
186
- .modalwrap .modal__content {
187
- width: 100%;
188
- position: relative;
189
- padding: 0.25rem;
190
- box-sizing: border-box;
191
- border-top-left-radius: var(--br);
192
- border-top-right-radius: var(--br);
193
- }
194
-
195
- .modalwrap .modal__content .btn {
196
- background: var(--primary-color);
197
- border: 1px solid rgba(var(--primary-color-rgb), 1.05);
198
- }
199
-
200
- .modalwrap .modal__content .btn:hover {
201
- background: var(--highlight-color);
202
- color: var(--primary-color);
203
- }
204
-
205
- .top--modal {
206
- width: 100%;
207
- max-width: 1000px !important;
208
- height: auto;
209
- padding: 0 !important;
210
- }
127
+ }