@visns-studio/visns-components 5.0.19 → 5.0.21

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 (38) hide show
  1. package/package.json +6 -6
  2. package/src/components/crm/MultiSelect.jsx +46 -67
  3. package/src/components/crm/auth/styles/Profile.module.scss +6 -7
  4. package/src/components/crm/generic/GenericDashboard.jsx +495 -29
  5. package/src/components/crm/generic/GenericFormBuilder.jsx +96 -32
  6. package/src/components/crm/generic/styles/AuditLog.module.scss +3 -3
  7. package/src/components/crm/generic/styles/AuditLogs.module.scss +1 -1
  8. package/src/components/crm/generic/styles/GenericDashboard.module.scss +364 -0
  9. package/src/components/crm/generic/styles/GenericDynamic.module.scss +11 -11
  10. package/src/components/crm/generic/styles/GenericFormBuilder.module.scss +327 -317
  11. package/src/components/crm/generic/styles/GenericIndex.module.scss +8 -8
  12. package/src/components/crm/generic/styles/GenericSort.module.scss +3 -3
  13. package/src/components/crm/generic/styles/NotificationList.module.scss +2 -2
  14. package/src/components/crm/sketch/SketchField.jsx +395 -0
  15. package/src/components/crm/sketch/arrow.jsx +108 -0
  16. package/src/components/crm/sketch/circle.jsx +75 -0
  17. package/src/components/crm/sketch/default-tool.jsx +16 -0
  18. package/src/components/crm/sketch/fabrictool.jsx +22 -0
  19. package/src/components/crm/sketch/history.jsx +144 -0
  20. package/src/components/crm/sketch/json/config.json +14 -0
  21. package/src/components/crm/sketch/line.jsx +64 -0
  22. package/src/components/crm/sketch/pan.jsx +48 -0
  23. package/src/components/crm/sketch/pencil.jsx +36 -0
  24. package/src/components/crm/sketch/rectangle-label-object.jsx +69 -0
  25. package/src/components/crm/sketch/rectangle-label.jsx +93 -0
  26. package/src/components/crm/sketch/rectangle.jsx +76 -0
  27. package/src/components/crm/sketch/select.jsx +16 -0
  28. package/src/components/crm/sketch/tools.jsx +11 -0
  29. package/src/components/crm/sketch/utils.jsx +67 -0
  30. package/src/components/crm/sorting/Item.jsx +2 -2
  31. package/src/components/crm/sorting/styles/Item.module.scss +12 -65
  32. package/src/components/crm/sorting/styles/List.module.scss +6 -20
  33. package/src/components/crm/styles/Form.module.scss +4 -6
  34. package/src/components/crm/styles/MultiSelect.module.scss +4 -0
  35. package/src/components/crm/styles/Navigation.module.scss +13 -6
  36. package/src/components/crm/styles/QrCode.module.scss +2 -2
  37. package/src/components/styles/global.css +8 -0
  38. package/src/index.js +2 -0
@@ -1,68 +1,15 @@
1
- .sortlist {
1
+ .edit {
2
2
  width: 100%;
3
- display: grid;
4
- grid-gap: 0.5rem;
5
- grid-template-columns: repeat(4, 1fr);
6
- box-sizing: border-box;
7
- padding: 0;
8
- margin: 0;
9
- list-style: none;
10
-
11
- li {
12
- display: flex;
13
- justify-content: center;
14
- align-items: center;
15
- flex-wrap: wrap;
16
- border-radius: 5px;
17
- border: 1px solid rgba(var(--primary-color-rgb), 0.2);
18
- box-shadow: 0px 0px 20px rgba(var(--primary-color-rgb), 0.1);
19
- padding: 1.25rem;
20
- box-sizing: border-box;
21
- cursor: pointer;
22
- list-style: none;
23
- position: relative;
24
- color: var(--paragraph-color);
25
- user-select: none;
26
-
27
- svg {
28
- width: 100%;
29
- max-width: 18px;
30
- position: absolute;
31
- left: 5px;
32
- top: 5px;
33
- }
34
-
35
- .pencil-edit {
36
- width: 100%;
37
- max-width: 18px;
38
- position: absolute;
39
- left: 5px;
40
- top: 30px;
41
- }
42
-
43
- .trash-delete {
44
- width: 100%;
45
- max-width: 18px;
46
- position: absolute;
47
- left: 5px;
48
- top: 60px;
49
- }
50
- }
51
-
52
- .sortimg {
53
- width: 50px;
54
- position: relative;
55
- height: 50px;
56
- margin-left: auto;
57
- border-radius: 5px;
58
- overflow: hidden;
3
+ max-width: 18px;
4
+ position: absolute;
5
+ left: 5px !important;
6
+ top: 30px !important;
7
+ }
59
8
 
60
- img {
61
- display: block;
62
- object-fit: cover;
63
- height: 100%;
64
- width: 100%;
65
- overflow: hidden;
66
- }
67
- }
9
+ .delete {
10
+ width: 100%;
11
+ max-width: 18px;
12
+ position: absolute;
13
+ left: 5px !important;
14
+ top: 30px !important;
68
15
  }
@@ -2,10 +2,11 @@
2
2
  width: 100%;
3
3
  display: grid;
4
4
  grid-gap: 0.5rem;
5
- grid-template-columns: repeat(4, 1fr);
5
+ grid-template-columns: repeat(1, 1fr);
6
6
  box-sizing: border-box;
7
7
  padding: 0;
8
8
  margin: 0;
9
+ font-size: 0.85rem;
9
10
  list-style: none;
10
11
 
11
12
  li {
@@ -14,9 +15,10 @@
14
15
  align-items: center;
15
16
  flex-wrap: wrap;
16
17
  border-radius: 5px;
17
- border: 1px solid rgba(var(--primary-color-rgb), 0.2);
18
- box-shadow: 0px 0px 20px rgba(var(--primary-color-rgb), 0.1);
19
- padding: 1.25rem;
18
+ border: 1px solid rgba(var(--primary-rgb), 0.2);
19
+ box-shadow: 0px 0px 20px rgba(var(--primary-rgb), 0.1);
20
+ padding: 1.25rem 1.25rem 1.25rem 2rem;
21
+
20
22
  box-sizing: border-box;
21
23
  cursor: pointer;
22
24
  list-style: none;
@@ -31,22 +33,6 @@
31
33
  left: 5px;
32
34
  top: 5px;
33
35
  }
34
-
35
- .pencil-edit {
36
- width: 100%;
37
- max-width: 18px;
38
- position: absolute;
39
- left: 5px;
40
- top: 30px;
41
- }
42
-
43
- .trash-delete {
44
- width: 100%;
45
- max-width: 18px;
46
- position: absolute;
47
- left: 5px;
48
- top: 60px;
49
- }
50
36
  }
51
37
 
52
38
  .sortimg {
@@ -120,7 +120,6 @@ select:not(:placeholder-shown) + .fi__span {
120
120
  z-index: 999;
121
121
  }
122
122
 
123
-
124
123
  .lastItem {
125
124
  .btn {
126
125
  grid-column: 1 / -1;
@@ -218,12 +217,11 @@ input[type='file'] {
218
217
  }
219
218
  }
220
219
 
221
-
222
220
  .modal__close {
223
221
  width: max-content;
224
- background: rgba(var(--paragraph-rgb), .05);
222
+ background: rgba(var(--paragraph-rgb), 0.05);
225
223
  cursor: pointer;
226
- padding: .25rem;
224
+ padding: 0.25rem;
227
225
  margin: 0;
228
226
  outline: none;
229
227
  border: none;
@@ -246,7 +244,7 @@ input[type='file'] {
246
244
 
247
245
  .btn {
248
246
  background: var(--primary-color);
249
- border: 1px solid rgb(var(--primary-color-rgb), 1.05);
247
+ border: 1px solid rgb(var(--primary-rgb), 1.05);
250
248
  width: 100%;
251
249
  padding: 0.75rem;
252
250
  border-radius: var(--br);
@@ -265,4 +263,4 @@ input[type='file'] {
265
263
  border-radius: var(--br);
266
264
  }
267
265
  }
268
- }
266
+ }
@@ -1,3 +1,7 @@
1
+ .visns__ms {
2
+ max-height: 52px !important;
3
+ }
4
+
1
5
  .visns__ms input:hover {
2
6
  box-shadow: none !important;
3
7
  transition: box-shadow 0.15s linear !important;
@@ -92,13 +92,13 @@
92
92
  &.active a,
93
93
  &:hover span,
94
94
  &.active span {
95
- background: rgba(var(--nav-active-rgb), 1);
96
- color: var(--highlight-color);
95
+ background: rgba(var(--secondary-rgb), 1);
96
+ color: var(--tertiary-color);
97
97
  }
98
98
 
99
99
  &:hover svg,
100
100
  &.active svg {
101
- color: var(--highlight-color);
101
+ color: var(--tertiary-color);
102
102
  }
103
103
 
104
104
  > ul {
@@ -111,24 +111,31 @@
111
111
  display: none;
112
112
  opacity: 0;
113
113
  background: rgba(var(--primary-rgb), 0.75);
114
- border-radius: var(--br);
115
114
 
116
115
  li {
117
116
  display: block;
118
117
  position: relative;
119
118
  margin: 1px 0;
119
+ overflow: hidden;
120
+
121
+ &:first-of-type {
122
+ border-top-right-radius: var(--br) !important;
123
+ border-top-left-radius: var(--br) !important;
124
+ }
120
125
 
121
126
  &:last-of-type {
127
+ border-bottom-right-radius: var(--br) !important;
128
+ border-bottom-left-radius: var(--br) !important;
122
129
  margin-bottom: 0;
123
130
  }
124
131
 
125
- a {
132
+ > a {
126
133
  width: 100%;
127
134
  padding: 8px 20px;
128
135
  box-sizing: border-box;
129
136
  display: block;
130
137
  text-decoration: none;
131
- border-radius: var(--br);
138
+ border-radius: 0;
132
139
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
133
140
  outline: none;
134
141
  margin: 0;
@@ -31,7 +31,7 @@
31
31
  flex: 0 0 calc(50% - 10px);
32
32
  padding: 0.85rem;
33
33
  box-sizing: border-box;
34
- border: 1px solid rgba(var(--primary-color-rgb), 0.15);
34
+ border: 1px solid rgba(var(--primary-rgb), 0.15);
35
35
  color: var(--paragraph-color);
36
36
  background: rgba(var(--tertiary-color-rgb), 0.95);
37
37
  margin: 5px;
@@ -64,7 +64,7 @@
64
64
  width: 49%;
65
65
  padding: 1em;
66
66
  box-sizing: border-box;
67
- border: 1px solid rgba(var(--primary-color-rgb), 0.15);
67
+ border: 1px solid rgba(var(--primary-rgb), 0.15);
68
68
  color: var(--paragraph-color);
69
69
  background: rgba(#f4f4f4, 0.65);
70
70
  margin: 5px;
@@ -37,6 +37,14 @@ select {
37
37
  font: inherit;
38
38
  }
39
39
 
40
+ select {
41
+ background: url(data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0Ljk1IDEwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9LmNscy0ye2ZpbGw6IzQ0NDt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPmFycm93czwvdGl0bGU+PHJlY3QgY2xhc3M9ImNscy0xIiB3aWR0aD0iNC45NSIgaGVpZ2h0PSIxMCIvPjxwb2x5Z29uIGNsYXNzPSJjbHMtMiIgcG9pbnRzPSIxLjQxIDQuNjcgMi40OCAzLjE4IDMuNTQgNC42NyAxLjQxIDQuNjciLz48cG9seWdvbiBjbGFzcz0iY2xzLTIiIHBvaW50cz0iMy41NCA1LjMzIDIuNDggNi44MiAxLjQxIDUuMzMgMy41NCA1LjMzIi8+PC9zdmc+)
42
+ no-repeat 100% 50% #fff;
43
+ -moz-appearance: none;
44
+ -webkit-appearance: none;
45
+ appearance: none;
46
+ }
47
+
40
48
  h1,
41
49
  h2,
42
50
  h3,
package/src/index.js CHANGED
@@ -37,6 +37,7 @@ import CmsSort from './components/cms/generic/CmsSort';
37
37
  import AuditLog from './components/crm/generic/AuditLog';
38
38
  import AuditLogs from './components/crm/generic/AuditLogs';
39
39
  import GenericAuth from './components/crm/generic/GenericAuth';
40
+ import GenericDashboard from './components/crm/generic/GenericDashboard';
40
41
  import GenericDetail from './components/crm/generic/GenericDetail';
41
42
  import GenericDynamic from './components/crm/generic/GenericDynamic';
42
43
  import GenericFormBuilder from './components/crm/generic/GenericFormBuilder';
@@ -63,6 +64,7 @@ export {
63
64
  Field,
64
65
  Form,
65
66
  GenericAuth,
67
+ GenericDashboard,
66
68
  GenericDetail,
67
69
  GenericDynamic,
68
70
  GenericFormBuilder,