@visns-studio/visns-components 6.0.4 → 6.1.0

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 (26) hide show
  1. package/package.json +1 -1
  2. package/src/components/DataGrid.jsx +37 -12
  3. package/src/components/Navigation.jsx +59 -3
  4. package/src/components/auth/Login.jsx +203 -175
  5. package/src/components/columns/ColumnRenderers.jsx +34 -0
  6. package/src/components/generic/GenericDashboard.jsx +181 -1
  7. package/src/components/generic/GenericFormBuilder.jsx +735 -37
  8. package/src/components/generic/GenericIndex.jsx +15 -5
  9. package/src/components/generic/OutstandingRuleEditor.jsx +313 -0
  10. package/src/components/styles/DataGrid.module.scss +38 -22
  11. package/src/components/styles/Form.module.scss +32 -33
  12. package/src/components/styles/GenericDashboard.module.scss +155 -0
  13. package/src/components/styles/GenericDetail.module.scss +28 -30
  14. package/src/components/styles/GenericDynamic.module.scss +7 -21
  15. package/src/components/styles/GenericEditableTable.module.scss +5 -22
  16. package/src/components/styles/GenericFormBuilder.module.scss +605 -30
  17. package/src/components/styles/GenericIndex.module.scss +17 -32
  18. package/src/components/styles/GenericMain.module.scss +18 -6
  19. package/src/components/styles/GenericQuote.module.scss +7 -22
  20. package/src/components/styles/GenericReport.module.scss +5 -37
  21. package/src/components/styles/Login.module.scss +415 -239
  22. package/src/components/styles/Navigation.module.scss +124 -35
  23. package/src/components/styles/Profile.module.scss +5 -26
  24. package/src/components/styles/QuickAction.module.scss +34 -29
  25. package/src/components/styles/_controls.scss +139 -0
  26. package/src/components/styles/global.css +54 -15
@@ -1,3 +1,8 @@
1
+ @use 'controls' as *;
2
+
3
+ .btn {
4
+ @include button-primary;
5
+ }
1
6
  .grid {
2
7
  width: 100%;
3
8
  display: flex;
@@ -156,14 +161,21 @@
156
161
  .gridtxt__header {
157
162
  width: 100%;
158
163
  display: block;
159
- background: rgba(var(--primary-rgb), 0.05);
164
+ background: none;
160
165
  box-sizing: border-box;
161
- padding: 10px 20px;
162
- border-radius: var(--br);
163
- margin-bottom: 0;
164
- font-weight: 700;
165
- text-align: center;
166
- color: var(--paragraph-color);
166
+ /* Was a centred, tinted bar. A section heading is read at the start of
167
+ the line like everything under it; centring it made the eye jump to the
168
+ middle and back for every section on the page. */
169
+ padding: 0 0 var(--spacing-sm);
170
+ border-bottom: 1px solid var(--border-color);
171
+ border-radius: 0;
172
+ margin-bottom: var(--spacing-md);
173
+ font-size: var(--font-size-sm);
174
+ font-weight: var(--font-weight-semibold);
175
+ letter-spacing: 0.06em;
176
+ text-transform: uppercase;
177
+ text-align: left;
178
+ color: var(--muted-color);
167
179
  }
168
180
 
169
181
  .gridtxt__header span {
@@ -199,8 +211,14 @@
199
211
  flex: 0 0 calc(100% - 10px);
200
212
  }
201
213
 
214
+ /* No accent. Description and Comments are ordinary fields — the same kind of
215
+ thing as Label and Source beside them — so they get the same neutral card.
216
+ The brand red here was decorative, and on a page with no validation it read
217
+ as an error; a left rule was only a quieter version of the same mistake.
218
+ Emphasis should mean something, and here there is nothing to emphasise. */
202
219
  .gridtxt > ul .notecolor {
203
- border: 1px solid var(--secondary-color);
220
+ border: 1px solid var(--border-color);
221
+ background: var(--surface-color);
204
222
  }
205
223
 
206
224
  .titleInfo {
@@ -618,29 +636,9 @@
618
636
  line-height: 1.475em;
619
637
  }
620
638
 
621
- .btn {
622
- width: max-content;
623
- display: inline-block;
624
- position: relative;
625
- padding: 0.65rem 1rem;
626
- cursor: pointer;
627
- font-size: 1rem;
628
- color: var(--tertiary-color);
629
- text-decoration: none;
630
- overflow: hidden;
631
- background: var(--primary-color);
632
- border: 1px solid rgba(var(--primary-color--rgb), 1.1);
633
- border-radius: var(--br);
634
- outline: none;
635
- transition: all 0.2s cubic-bezier(0.85, 0, 0.15, 1) 0s;
636
- font-size: 1.25em;
637
- }
638
639
 
639
- .btn:hover {
640
- color: var(--primary-color);
641
- background: var(--highlight-color);
642
- border: 1px solid rgba(var(--highlight-rgb), 1.05);
643
- }
640
+
641
+
644
642
 
645
643
  .crmtitle {
646
644
  min-height: auto;
@@ -1,3 +1,8 @@
1
+ @use 'controls' as *;
2
+
3
+ .btn {
4
+ @include button-primary;
5
+ }
1
6
  .grid__row {
2
7
  width: 100%;
3
8
  display: flex;
@@ -397,28 +402,9 @@ select:not(:placeholder-shown) + .fi__span {
397
402
  }
398
403
 
399
404
  /* Adding btn class */
400
- .btn {
401
- width: max-content;
402
- display: inline-block;
403
- position: relative;
404
- padding: 0.65rem 1rem;
405
- cursor: pointer;
406
- font-size: 1rem;
407
- color: var(--secondary-color);
408
- text-decoration: none;
409
- overflow: hidden;
410
- background: var(--primary-color);
411
- border: 1px solid rgba(var(--primary-rgb), 1.1);
412
- border-radius: var(--br);
413
- outline: none;
414
- transition: all 0.2s cubic-bezier(0.85, 0, 0.15, 1) 0s;
415
- }
416
405
 
417
- .btn:hover {
418
- color: var(--tertiary-color);
419
- background: var(--secondary-color);
420
- border: 1px solid rgba(var(--secondary-color-rgb), 1.1);
421
- }
406
+
407
+
422
408
 
423
409
  /* Adding polActions style to the module.css */
424
410
  .polActions {
@@ -1,3 +1,8 @@
1
+ @use 'controls' as *;
2
+
3
+ .btn {
4
+ @include button-primary;
5
+ }
1
6
  .schedulingTable {
2
7
  width: 100%;
3
8
  border-collapse: collapse;
@@ -205,29 +210,7 @@
205
210
  }
206
211
  }
207
212
 
208
- .btn {
209
- width: max-content;
210
- display: inline-block;
211
- position: relative;
212
- padding: 0.65rem 1rem;
213
- cursor: pointer;
214
- font-size: 1rem;
215
- color: var(--tertiary-color);
216
- text-decoration: none;
217
- overflow: hidden;
218
- background: var(--primary-color);
219
- border: 1px solid rgba(var(--primary-color--rgb), 1.1);
220
- border-radius: var(--br);
221
- outline: none;
222
- transition: all 0.2s cubic-bezier(0.85, 0, 0.15, 1) 0s;
223
- font-size: 1.25em;
224
213
 
225
- &:hover {
226
- color: var(--primary-color);
227
- background: var(--highlight-color);
228
- border: 1px solid rgba(var(--highlight-rgb), 1.05);
229
- }
230
- }
231
214
 
232
215
  .btn_compact {
233
216
  width: max-content;