@visns-studio/visns-components 5.0.0 → 5.0.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 (25) hide show
  1. package/package.json +1 -1
  2. package/src/components/crm/DataGrid.jsx +1 -0
  3. package/src/components/crm/Form.jsx +6 -6
  4. package/src/components/crm/auth/styles/Login.module.scss +49 -80
  5. package/src/components/crm/auth/styles/Profile.module.scss +97 -33
  6. package/src/components/crm/auth/styles/Reset.module.scss +55 -37
  7. package/src/components/crm/auth/styles/Verify.module.scss +55 -76
  8. package/src/components/crm/generic/GenericAuth.jsx +12 -4
  9. package/src/components/crm/generic/styles/AuditLog.module.scss +0 -37
  10. package/src/components/crm/generic/styles/AuditLogs.module.scss +0 -51
  11. package/src/components/crm/generic/styles/GenericDetail.module.scss +4 -74
  12. package/src/components/crm/generic/styles/GenericDynamic.module.scss +68 -134
  13. package/src/components/crm/generic/styles/GenericFormBuilder.module.scss +59 -53
  14. package/src/components/crm/generic/styles/GenericIndex.module.scss +46 -66
  15. package/src/components/crm/generic/styles/GenericMain.module.scss +7 -7
  16. package/src/components/crm/generic/styles/GenericSort.module.scss +0 -36
  17. package/src/components/crm/generic/styles/NotificationList.module.scss +1 -32
  18. package/src/components/crm/styles/DataGrid.module.scss +4 -86
  19. package/src/components/crm/styles/Field.module.scss +67 -43
  20. package/src/components/crm/styles/Form.module.scss +148 -379
  21. package/src/components/crm/styles/Navigation.module.scss +359 -454
  22. package/src/components/crm/styles/Notification.module.scss +1 -0
  23. package/src/components/crm/styles/SwitchAccount.module.scss +0 -1
  24. package/src/components/crm/styles/TableFilter.module.scss +2 -1
  25. package/src/components/styles/global.css +73 -33
@@ -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,
@@ -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: 300;
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
+ }
@@ -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
 
@@ -126,85 +125,4 @@
126
125
  height: 18px;
127
126
  }
128
127
  }
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
- }
128
+ }
@@ -1,12 +1,3 @@
1
- /* Form Styling */
2
-
3
- .formItem {
4
- width: 50%;
5
- padding: 0.35em;
6
- position: relative;
7
- box-sizing: border-box;
8
- }
9
-
10
1
  .dropdownContainer {
11
2
  position: relative;
12
3
  width: 100%;
@@ -36,34 +27,67 @@
36
27
  color: var(--primary-color);
37
28
  }
38
29
 
30
+ .formcontainer {
31
+ width: 100%;
32
+
33
+ form {
34
+ width: 100%;
35
+ display: grid;
36
+ grid-template-columns: 1fr 1fr;
37
+ gap: 1em;
38
+ }
39
+ }
40
+
39
41
  .formItem {
40
- width: 50%;
41
- padding: 0.5em;
42
+ width: 100%;
42
43
  position: relative;
43
44
  box-sizing: border-box;
44
- }
45
45
 
46
- .formItem .fi__label {
47
- position: relative;
48
- display: block;
46
+ .fi__label {
47
+ position: relative;
48
+ display: flex;
49
+ align-items: center;
50
+ }
49
51
 
50
- > svg {
52
+ .fi__span {
51
53
  position: absolute;
52
- right: 0.5em;
53
- top: 1em;
54
- color: var(--paragraph-color);
55
- cursor: pointer;
54
+ transition: all 200ms;
55
+ opacity: 0.8;
56
+ left: 0;
57
+ transform-origin: top left;
58
+ cursor: text;
59
+ padding: 0 1rem;
60
+ }
61
+
62
+ .fi__div {
63
+ transition: all 200ms;
64
+ opacity: 0.8;
65
+ left: 0;
66
+ padding: 19px 13px;
67
+ border-radius: var(--radius);
68
+ border: 1px solid rgba(var(--paragraph-rgb), 0.15);
69
+ box-shadow: none;
70
+ }
71
+
72
+ .fi__toggle {
73
+ width: max-content;
74
+ padding: 0 10px 0 0;
75
+ box-sizing: border-box;
76
+ display: inline;
77
+ }
78
+
79
+ .fi__toggletxt {
80
+ position: relative;
81
+ left: 5px;
82
+ font-size: 0.95em;
83
+ top: -5px;
56
84
  }
57
85
  }
58
86
 
59
- .fi__span {
60
- position: absolute;
61
- transition: all 200ms;
62
- opacity: 0.8;
63
- left: 0;
64
- padding: 19px 20px;
65
- transform-origin: top left;
66
- cursor: text;
87
+ .fwItem,
88
+ .fwBuilderItem {
89
+ grid-column: 1 / -1;
90
+ width: 100%;
67
91
  }
68
92
 
69
93
  .fi__span::before {
@@ -104,23 +128,22 @@
104
128
  input:not(:placeholder-shown) + .fi__span,
105
129
  textarea:not(:placeholder-shown) + .fi__span,
106
130
  select:not(:placeholder-shown) + .fi__span {
107
- transform: translateY(-40%) translateX(10px) scale(0.75);
131
+ transform: translateY(-110%) translateX(10px) scale(0.75);
108
132
  opacity: 1;
109
- padding: 0 4px;
110
- background: var(--tertiary-color);
133
+ padding: 0;
134
+ background: var(--bg-color);
111
135
  font-weight: 300;
112
- border-radius: var(--br);
136
+ transition: all 0.5s cubic-bezier(0.5, 0.5, 0, 1);
113
137
  }
114
138
 
115
139
  .prefocus {
116
- transform: translateY(-40%) translateX(10px) scale(0.75) !important;
117
- opacity: 1 !important;
118
- padding: 0 4px !important;
119
- background: var(--tertiary-color) !important;
120
- z-index: 500;
140
+ transform: translateY(-110%) translateX(10px) scale(0.75);
141
+ opacity: 1;
142
+ padding: 0;
143
+ background: var(--bg-color);
121
144
  font-weight: 300;
122
- border-radius: var(--br);
123
- top: 0;
145
+ transition: all 0.5s cubic-bezier(0.5, 0.5, 0, 1);
146
+ z-index: 999;
124
147
  }
125
148
 
126
149
  .fwItem {
@@ -162,9 +185,10 @@ select:not(:placeholder-shown) + .fi__span {
162
185
  ):not(.inovua-react-toolkit-text-input__input):not(
163
186
  .inovua-react-toolkit-numeric-input__input
164
187
  ) {
165
- background: var(--item-color);
188
+ font-size: 1rem;
189
+ background: white;
166
190
  border-radius: var(--br);
167
- padding: 1rem;
191
+ padding: 0.85rem;
168
192
  outline: none;
169
193
  width: 100%;
170
194
  box-sizing: border-box;
@@ -196,8 +220,8 @@ select:not(:placeholder-shown) + .fi__span {
196
220
  }
197
221
 
198
222
  input[type='file'] {
199
- background: var(--item-color) !important;
200
- border-radius: var (--br) !important;
223
+ background: white !important;
224
+ border-radius: var(--br) !important;
201
225
  border: 1px solid transparent !important;
202
226
  padding: 0.8rem !important;
203
227
  outline: none !important;