@visns-studio/visns-components 5.0.2 → 5.0.3

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.
package/package.json CHANGED
@@ -75,7 +75,7 @@
75
75
  "react-dom": "^17.0.0 || ^18.0.0"
76
76
  },
77
77
  "name": "@visns-studio/visns-components",
78
- "version": "5.0.2",
78
+ "version": "5.0.3",
79
79
  "description": "Various packages to assist in the development of our Custom Applications.",
80
80
  "main": "src/index.js",
81
81
  "files": [
@@ -9,6 +9,7 @@ import {
9
9
  Calendar,
10
10
  ChatDots,
11
11
  Clipboard,
12
+ CloudUpload,
12
13
  DoubleSword,
13
14
  Draft,
14
15
  Envelope,
@@ -294,6 +295,48 @@ function Navigation({
294
295
  };
295
296
 
296
297
  const renderNav = (n) => {
298
+ const iconComponents = {
299
+ arrowCycle: ArrowCycle,
300
+ bookClose: BookClose,
301
+ bookOpen: BookOpen,
302
+ briefcase: Briefcase,
303
+ calendar: Calendar,
304
+ chatDots: ChatDots,
305
+ clipboard: Clipboard,
306
+ cloudUpload: CloudUpload,
307
+ doubleSword: DoubleSword,
308
+ draft: Draft,
309
+ envelope: Envelope,
310
+ file: File,
311
+ folder: Folder,
312
+ folderAdd: FolderAdd,
313
+ gear: Gear,
314
+ grid: Grid,
315
+ home: Home,
316
+ homeAlt1: HomeAlt1,
317
+ inbox: Inbox,
318
+ info: Info,
319
+ lightBulb: LightBulb,
320
+ microphone: Microphone,
321
+ money: Money,
322
+ newspaper: Newspaper,
323
+ paper: Paper,
324
+ peopleGroup: PeopleGroup,
325
+ peopleMultiple: PeopleMultiple,
326
+ question: Question,
327
+ questionFill: QuestionFill,
328
+ search: Search,
329
+ settingsVertical: SettingsVertical,
330
+ signOut: SignOut,
331
+ shippingBoxV1: ShippingBoxV1,
332
+ statisticUp: StatisticUp,
333
+ textAlignLeft: TextAlignLeft,
334
+ ticket: Ticket,
335
+ utensils: Utensils,
336
+ };
337
+
338
+ const IconComponent = iconComponents[n.icon];
339
+
297
340
  let navItemClasses;
298
341
 
299
342
  if (n.class.includes('active')) {
@@ -163,7 +163,7 @@ select:not(:placeholder-shown) + .fi__span {
163
163
  .fi__span {
164
164
  position: absolute;
165
165
  transition: all 200ms;
166
- opacity: 0.8;
166
+ opacity: 1;
167
167
  left: 0;
168
168
  padding: 19px 20px;
169
169
  transform-origin: top left;
@@ -305,9 +305,9 @@ input[type='file']:hover {
305
305
  .fi__span {
306
306
  position: absolute;
307
307
  transition: all 200ms;
308
- opacity: 0.8;
308
+ opacity: 1;
309
309
  left: 0;
310
- padding: 19px 20px;
310
+ padding: 0 1rem;
311
311
  transform-origin: top left;
312
312
  cursor: text;
313
313
  }
@@ -369,7 +369,7 @@ select:not(:placeholder-shown) + .fi__span {
369
369
  transform: translateY(-110%) translateX(10px) scale(0.75);
370
370
  opacity: 1;
371
371
  padding: 0;
372
- background: var(--bg-color);
372
+ background: var(--tertiary-color);
373
373
  font-weight: 300;
374
374
  transition: all 0.5s cubic-bezier(0.5, 0.5, 0, 1);
375
375
  }
@@ -378,7 +378,7 @@ select:not(:placeholder-shown) + .fi__span {
378
378
  transform: translateY(-110%) translateX(10px) scale(0.75);
379
379
  opacity: 1;
380
380
  padding: 0;
381
- background: var(--bg-color);
381
+ background: var(--tertiary-color);
382
382
  font-weight: 300;
383
383
  transition: all 0.5s cubic-bezier(0.5, 0.5, 0, 1);
384
384
  }
@@ -434,49 +434,6 @@ select:not(:placeholder-shown) + .fi__span {
434
434
  border-color: red !important;
435
435
  }
436
436
 
437
- .AutocompletePlace {
438
- position: relative;
439
- }
440
-
441
- .AutocompletePlace svg {
442
- position: absolute;
443
- right: 0.5em;
444
- top: 0.5em;
445
- color: var(--paragraph-color);
446
- cursor: pointer;
447
- }
448
-
449
- .AutocompletePlace .toggleActive {
450
- color: var(--highlight-color);
451
- }
452
-
453
- .AutocompletePlace-input {
454
- padding: 0.65rem 3rem 0.65rem 0.95rem !important;
455
- height: 51.5px;
456
- }
457
-
458
- .AutocompletePlace-results {
459
- position: absolute;
460
- background-color: white;
461
- padding: 0;
462
- margin: 0;
463
- border: 1px solid rgba(var(--primary-color-rgb), 0.25);
464
- border-radius: var(--br);
465
- overflow: hidden;
466
- z-index: 999;
467
- }
468
-
469
- .AutocompletePlace-items {
470
- list-style: none;
471
- border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.1);
472
- cursor: pointer;
473
- padding: 10px 10px;
474
- }
475
-
476
- .AutocompletePlace-items:hover {
477
- background-color: rgba(var(--paragraph-color-rgb), 0.065);
478
- }
479
-
480
437
  .react-datepicker-wrapper {
481
438
  width: 100% !important;
482
439
  }
@@ -506,49 +506,6 @@ select:not(:placeholder-shown) + .fi__span {
506
506
  border-color: red !important;
507
507
  }
508
508
 
509
- .AutocompletePlace {
510
- position: relative;
511
- }
512
-
513
- .AutocompletePlace svg {
514
- position: absolute;
515
- right: 0.5em;
516
- top: 0.5em;
517
- color: var(--paragraph-color);
518
- cursor: pointer;
519
- }
520
-
521
- .AutocompletePlace .toggleActive {
522
- color: var(--highlight-color);
523
- }
524
-
525
- .AutocompletePlace-input {
526
- padding: 0.65rem 3rem 0.65rem 0.95rem !important;
527
- height: 51.5px;
528
- }
529
-
530
- .AutocompletePlace-results {
531
- position: absolute;
532
- background-color: white;
533
- padding: 0;
534
- margin: 0;
535
- border: 1px solid rgba(var(--primary-color), 0.25);
536
- border-radius: var(--br);
537
- overflow: hidden;
538
- z-index: 999;
539
- }
540
-
541
- .AutocompletePlace-items {
542
- list-style: none;
543
- border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.1);
544
- cursor: pointer;
545
- padding: 10px 10px;
546
- }
547
-
548
- .AutocompletePlace-items:hover {
549
- background-color: rgba(var(--paragraph-color-rgb), 0.065);
550
- }
551
-
552
509
  .react-datepicker-wrapper {
553
510
  width: 100% !important;
554
511
  }
@@ -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
  }
@@ -52,7 +52,7 @@
52
52
  .fi__span {
53
53
  position: absolute;
54
54
  transition: all 200ms;
55
- opacity: 0.8;
55
+ opacity: 1;
56
56
  left: 0;
57
57
  transform-origin: top left;
58
58
  cursor: text;
@@ -131,7 +131,7 @@ select:not(:placeholder-shown) + .fi__span {
131
131
  transform: translateY(-110%) translateX(10px) scale(0.75);
132
132
  opacity: 1;
133
133
  padding: 0;
134
- background: var(--bg-color);
134
+ background: var(--tertiary-color);
135
135
  font-weight: 300;
136
136
  transition: all 0.5s cubic-bezier(0.5, 0.5, 0, 1);
137
137
  }
@@ -140,7 +140,7 @@ select:not(:placeholder-shown) + .fi__span {
140
140
  transform: translateY(-110%) translateX(10px) scale(0.75);
141
141
  opacity: 1;
142
142
  padding: 0;
143
- background: var(--bg-color);
143
+ background: var(--tertiary-color);
144
144
  font-weight: 300;
145
145
  transition: all 0.5s cubic-bezier(0.5, 0.5, 0, 1);
146
146
  z-index: 999;
@@ -27,7 +27,7 @@
27
27
  .fi__span {
28
28
  position: absolute;
29
29
  transition: all 200ms;
30
- opacity: 0.8;
30
+ opacity: 1;
31
31
  left: 0;
32
32
  transform-origin: top left;
33
33
  cursor: text;
@@ -105,7 +105,7 @@ select:not(:placeholder-shown) + .fi__span {
105
105
  transform: translateY(-110%) translateX(10px) scale(0.75);
106
106
  opacity: 1;
107
107
  padding: 0;
108
- background: var(--bg-color);
108
+ background: var(--tertiary-color);
109
109
  font-weight: 300;
110
110
  transition: all 0.5s cubic-bezier(0.5, 0.5, 0, 1);
111
111
  }
@@ -114,7 +114,7 @@ select:not(:placeholder-shown) + .fi__span {
114
114
  transform: translateY(-110%) translateX(10px) scale(0.75);
115
115
  opacity: 1;
116
116
  padding: 0;
117
- background: var(--bg-color);
117
+ background: var(--tertiary-color);
118
118
  font-weight: 300;
119
119
  transition: all 0.5s cubic-bezier(0.5, 0.5, 0, 1);
120
120
  z-index: 999;
@@ -265,4 +265,4 @@ input[type='file'] {
265
265
  border-radius: var(--br);
266
266
  }
267
267
  }
268
- }
268
+ }
@@ -828,56 +828,4 @@
828
828
  max-width: 20px;
829
829
  }
830
830
  }
831
- }
832
-
833
- .AutocompletePlace-results {
834
- z-index: 999;
835
- }
836
-
837
- .AutocompletePlace {
838
- position: relative;
839
-
840
- > svg {
841
- position: absolute;
842
- right: 0.5em;
843
- top: 0.5em;
844
- color: var(--paragraph-color);
845
- cursor: pointer;
846
- }
847
-
848
- .toggleActive {
849
- color: var(--secondary-color);
850
- }
851
- }
852
-
853
- .AutocompletePlace-input {
854
- padding: 0.65rem 3rem 0.65rem 0.95rem !important;
855
- height: 38px;
856
- }
857
-
858
- .AutocompletePlace-results {
859
- width: 400px;
860
- position: absolute;
861
- background-color: var(--tertiary-color);
862
- padding: 0;
863
- margin: 0;
864
- border: 1px solid rgba(var(--primary-rgb), 0.25);
865
- border-radius: var(--br);
866
- overflow: hidden;
867
-
868
- ul {
869
- padding: 0;
870
- margin: 0;
871
- }
872
- }
873
-
874
- .AutocompletePlace-items {
875
- list-style: none;
876
- border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
877
- cursor: pointer;
878
- padding: 10px 10px;
879
-
880
- &:hover {
881
- background-color: rgba(var(--paragraph-rgb), 0.065);
882
- }
883
- }
831
+ }
@@ -110,4 +110,26 @@ input[type]:not([type='search']):not([type='url']):not([type='hidden']):not(
110
110
  .popup-content {
111
111
  border-radius: var(--br);
112
112
  padding: 0 !important;
113
+ }
114
+
115
+ .AutocompletePlace-results {
116
+ z-index: 999;
117
+ width: 500px;
118
+ position: absolute;
119
+ background-color: var(--tertiary-color);
120
+ padding: 0;
121
+ margin: 0;
122
+ border: 1px solid rgba(var(--primary-rgb), 0.25);
123
+ border-radius: var(--br);
124
+ overflow: hidden;
125
+ font-size: 1rem;
126
+ max-height: 150px;
127
+ overflow-y: auto;
128
+
129
+
130
+ ul {
131
+ font-size: 1rem;
132
+ padding: 0;
133
+ margin: 0;
134
+ }
113
135
  }