@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
@@ -22,6 +22,7 @@
22
22
  box-sizing: border-box;
23
23
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
24
24
  z-index: 999;
25
+ font-size: 1rem;
25
26
  }
26
27
 
27
28
  .notibox .notiscrollwrap {
@@ -69,6 +69,10 @@
69
69
  background: rgba(#f4f4f4, 0.65);
70
70
  margin: 5px;
71
71
  border-radius: 5px;
72
+
73
+ p {
74
+ font-size: 0.85rem;
75
+ }
72
76
  }
73
77
  }
74
78
 
@@ -59,7 +59,6 @@
59
59
 
60
60
  .currentAccount {
61
61
  float: right;
62
- color: darken(#f0f0f0, 25%);
63
62
  line-height: 1.25;
64
63
  }
65
64
 
@@ -2,6 +2,7 @@
2
2
  list-style: none;
3
3
  padding: 0;
4
4
  margin: 0;
5
+ font-size: 1rem;
5
6
  }
6
7
 
7
8
  .collapsibleMenu {
@@ -34,7 +35,7 @@
34
35
  display: block;
35
36
  padding: 8px 20px;
36
37
  text-decoration: none;
37
- background: var(--item-color);
38
+ background: var(--bg-color);
38
39
  color: var(--paragraph-color);
39
40
  border-radius: 3px;
40
41
  transition: background 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
@@ -1,53 +1,88 @@
1
- @import '@fontsource/barlow/index.css';
2
- @import '@fontsource/barlow/300.css';
3
- @import '@fontsource/barlow/700.css';
1
+ *,
2
+ *::before,
3
+ *::after {
4
+ box-sizing: border-box;
5
+ }
4
6
 
5
- /* Apply the crop mixin manually */
6
- .crop::before {
7
- content: '';
8
- display: block;
9
- height: 0;
10
- width: 0;
11
- margin-top: calc((1 - 1.25) * 0.5em);
7
+ * {
8
+ margin: 0;
12
9
  }
13
10
 
11
+ html,
14
12
  body {
15
- font-size: 100%;
16
- background: var(--tertiary-color-dark, var(--tertiary-color));
17
- font-family: 'Barlow', sans-serif;
18
- font-weight: 300;
13
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
14
+ Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
15
+ 'Segoe UI Symbol';
16
+ height: 100%;
17
+ text-rendering: geometricPrecision;
18
+ font-stretch: 75% 125%;
19
+ }
20
+
21
+ body {
22
+ background: var(--bg-color);
23
+ font-weight: var(--para-weight);
24
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
25
+ Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
26
+ 'Segoe UI Symbol';
19
27
  font-style: normal;
20
- letter-spacing: 0.018em;
28
+ overflow-x: hidden;
29
+ overscroll-behavior: none;
30
+ font-size: 0.85rem;
21
31
  }
22
32
 
23
- .loginbg {
24
- background: var(--tertiary-color);
33
+ input,
34
+ button,
35
+ textarea,
36
+ select {
37
+ font: inherit;
25
38
  }
26
39
 
27
40
  h1,
28
41
  h2,
29
42
  h3,
30
43
  h4,
31
- h5 {
32
- font-size: 1.675em;
33
- color: var(--primary-color);
34
- font-weight: 700;
35
- font-style: normal;
44
+ h5,
45
+ h6 {
46
+ color: var(--header-color);
47
+ font-weight: var(--title-weight);
48
+ line-height: var(--title-height);
49
+ letter-spacing: 0.015rem;
36
50
  }
37
51
 
38
52
  p {
39
- font-weight: 300;
40
- font-style: normal;
41
- margin: 0 0 calc(var(--padding) / 2); /* Replace with actual padding value */
53
+ font-size: clamp(1rem, 2vw, 1.25rem);
42
54
  color: var(--paragraph-color);
55
+ font-weight: var(--para-weight);
56
+ line-height: var(--para-height);
57
+ margin-bottom: 1rem;
58
+
59
+ @media (max-width: 1024px) {
60
+ font-size: clamp(0.85rem, 2vw, 0.95rem);
61
+ }
62
+
63
+ strong {
64
+ font-weight: var(--title-weight);
65
+ }
43
66
  }
44
67
 
45
- p::before {
46
- content: '';
47
- display: block;
48
- height: 0;
49
- width: 0;
50
- margin-top: calc((1 - 1.25) * 0.5em);
68
+ ul {
69
+ font-size: clamp(1rem, 2vw, 1.25rem);
70
+ color: var(--paragraph-color);
71
+ font-weight: var(--para-weight);
72
+ line-height: var(--para-height);
73
+ margin-bottom: 1rem;
74
+
75
+ @media (max-width: 1024px) {
76
+ font-size: clamp(0.85rem, 2vw, 0.95rem);
77
+ }
78
+ }
79
+
80
+ a {
81
+ outline: none;
82
+ }
83
+
84
+ .loginbg {
85
+ background: var(--tertiary-color);
51
86
  }
52
87
 
53
88
  textarea,
@@ -59,15 +94,110 @@ input[type]:not([type='search']):not([type='url']):not([type='hidden']):not(
59
94
  ):not(.inovua-react-toolkit-text-input__input):not(
60
95
  .inovua-react-toolkit-numeric-input__input
61
96
  ) {
62
- background: var(--item-color);
97
+ background: white;
63
98
  border-radius: var(--br);
64
99
  border: 1px solid rgba(var(--paragraph-color-rgb), 0.15);
65
100
  box-shadow: none;
66
101
  padding: 1rem;
67
102
  outline: none;
68
- /* width: 100%; */
69
103
  box-sizing: border-box;
70
- background: rgba(white, 0.5);
71
104
  color: var(--paragraph-color);
72
105
  transition: border 0.15s linear;
106
+ width: 100%;
107
+ line-height: 1;
108
+ font-size: 0.85rem;
109
+
110
+ &:focus {
111
+ border: 1px solid var(--primary-color);
112
+ }
113
+ }
114
+
115
+ .popup-content {
116
+ border-radius: var(--br);
117
+ padding: 0 !important;
118
+ }
119
+
120
+ .popup-overlay {
121
+ background: rgba(0, 0, 0, 0.65) !important;
122
+ backdrop-filter: blur(3px);
123
+ }
124
+
125
+ .AutocompletePlace-results {
126
+ z-index: 999;
127
+ width: 500px;
128
+ position: absolute;
129
+ background-color: var(--tertiary-color);
130
+ padding: 0;
131
+ margin: 0;
132
+ border: 1px solid rgba(var(--primary-rgb), 0.25);
133
+ border-radius: var(--br);
134
+ overflow: hidden;
135
+ font-size: 1rem;
136
+ max-height: 150px;
137
+ overflow-y: auto;
138
+
139
+ ul {
140
+ font-size: 1rem;
141
+ padding: 0;
142
+ margin: 0;
143
+ }
144
+ }
145
+
146
+ .vs-datagrid--row:hover {
147
+ .InovuaReactDataGrid__row-cell-wrap {
148
+ background: rgb(240, 240, 240) !important;
149
+ cursor: pointer;
150
+ }
151
+ }
152
+
153
+ .InovuaReactDataGrid {
154
+ color: var(--paragraph-color) !important;
155
+ }
156
+
157
+ .InovuaReactDataGrid__header {
158
+ color: var(--primary-color) !important;
159
+ }
160
+
161
+ .InovuaReactDataGrid__row-hover-target:hover {
162
+ color: var(--paragraph-color) !important;
163
+ background: rgb(240, 240, 240) !important;
164
+ }
165
+
166
+ .InovuaReactDataGrid__row:hover {
167
+ cursor: pointer;
168
+ }
169
+
170
+ /* Async Select */
171
+
172
+ .visns-select__control {
173
+ width: 100%;
174
+ cursor: default;
175
+ min-height: 50px;
176
+ outline: 0 !important;
177
+ position: relative;
178
+ -webkit-transition: all 100ms;
179
+ transition: all 100ms;
180
+ background-color: hsl(0, 0%, 100%);
181
+ border-color: hsl(0, 0%, 80%);
182
+ border-radius: 4px;
183
+ border-style: solid;
184
+ border-width: 1px;
185
+ box-sizing: border-box;
186
+ box-shadow: none !important;
187
+
188
+ &--is-focused {
189
+ border-color: var(--primary-color) !important;
190
+ box-shadow: none !important;
191
+ border-width: 1px !important;
192
+ }
193
+
194
+ &--menu-is-open {
195
+ border-color: var(--primary-color) !important;
196
+ box-shadow: none !important;
197
+ border-width: 1px !important;
198
+ }
199
+ }
200
+
201
+ .visns-select__menu {
202
+ z-index: 999 !important;
73
203
  }