@vitrosoftware/common-ui-ts 1.1.13 → 1.1.14

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/css/common.css CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
  :global(.vitro-title) {
20
20
  font-size: 20px;
21
- font-family: 'InterRegular';
21
+ font-family: 'InterMedium';
22
22
  line-height: 24px;
23
23
  margin-right: 24px;
24
24
  margin-bottom: 14px;
@@ -40,5 +40,11 @@
40
40
  padding-bottom: 8px;
41
41
  font-size: 18px;
42
42
  line-height: 27px;
43
+ margin: 0;
44
+ }
45
+
46
+ :global(.pane) > :global(.vitro-flex) {
47
+ flex-direction: column;
48
+ align-items: flex-start;
43
49
  }
44
50
  }
@@ -15,4 +15,14 @@
15
15
  width: 24px;
16
16
  height: 24px;
17
17
  margin-right: 4px;
18
+ }
19
+
20
+ @media (max-width: 800px) {
21
+ .vitro-command-menu-button .vitro-icon + div {
22
+ display: none;
23
+ }
24
+
25
+ .vitro-command-menu-button {
26
+ min-width: 40px !important;
27
+ }
18
28
  }
@@ -152,4 +152,23 @@
152
152
  :global(.vitro-button-context:hover),
153
153
  :global(.vitro-button-context:active) {
154
154
  border-color: #fff !important;
155
+ }
156
+
157
+ @media (max-width: 800px) {
158
+ .vitro-command-menu-dropdown-button .vitro-icon + div {
159
+ display: none;
160
+ }
161
+
162
+ .vitro-command-menu-dropdown-button {
163
+ min-width: 40px !important;
164
+ }
165
+
166
+ li:first-child .vitro-icon + div {
167
+ display: block;
168
+ }
169
+
170
+ :global(.vitro-button-context) {
171
+ min-width: 32px !important;
172
+ width: 32px;
173
+ }
155
174
  }
@@ -1,8 +1,8 @@
1
- a.vitro-active {
1
+ .vitro-active {
2
2
  background-color: #DCEEFF;
3
3
  }
4
4
 
5
- ul > li:last-child > ul > li:last-child a.vitro-active {
5
+ ul > li:last-child > ul > li:last-child .vitro-active {
6
6
  background-color: transparent;
7
7
  }
8
8
 
@@ -21,29 +21,90 @@ ul > li:last-child > ul > li:last-child a.vitro-active {
21
21
  display: none;
22
22
  }
23
23
 
24
- a:hover .vitro-icon-text, a:hover .vitro-item-text, a.vitro-active .vitro-icon-text, a.vitro-active .vitro-item-text {
24
+ .vitro-active .vitro-icon-text,
25
+ .vitro-active .vitro-item-text {
25
26
  color: #326AD6;
26
27
  font-weight: 500;
27
28
  font-family: 'InterMedium';
28
29
  }
29
30
 
30
- .vitro-icon > :global(.vitro-icon-hover) {
31
- display: none;
31
+ .vitro-icon {
32
+ width: 24px;
33
+ height: 24px;
32
34
  }
33
35
 
34
- .vitro-icon:hover > :global(.vitro-icon-hover) {
36
+ :global(.toggled.pinned) .vitro-item a {
37
+ width: 100%;
38
+ }
39
+
40
+ .vitro-item a > div {
41
+ display: flex;
42
+ width: fit-content;
43
+ align-items: center;
44
+ }
45
+
46
+ .vitro-item a {
47
+ text-decoration: none;
48
+ height: 40px;
49
+ width: 40px;
50
+ border-radius: 8px;
51
+ padding: 8px;
52
+ cursor: pointer;
53
+ margin-bottom: 8px;
35
54
  display: block;
36
55
  }
37
56
 
38
- .vitro-icon:hover > :global(.vitro-icon-default) {
39
- display: none;
57
+ .vitro-active {
58
+ background-color: #DCEEFF;
40
59
  }
41
60
 
42
- .vitro-icon {
43
- width: 24px;
44
- height: 24px;
61
+ :global(.vitro-bottom-menu) .vitro-item-text {
62
+ display: block;
63
+ color: #4A556C;
64
+ font-size: 12px;
65
+ line-height: 12px;
66
+ text-align: center;
45
67
  }
46
68
 
47
- :global(.vitro-display-none) {
69
+ :global(.vitro-bottom-menu) .vitro-icon-text {
48
70
  display: none;
49
- }
71
+ }
72
+
73
+ :global(.vitro-bottom-menu) .vitro-active {
74
+ background: transparent;
75
+ position: relative;
76
+ }
77
+
78
+ :global(.vitro-bottom-menu) .vitro-active::after {
79
+ content: '';
80
+ display: block;
81
+ position: absolute;
82
+ height: 2px;
83
+ border-radius: 2px;
84
+ background: #4292F7;
85
+ width: 32px;
86
+ bottom: -8px;
87
+ }
88
+
89
+ .vitro-active .vitro-item-text {
90
+ color: #4A556C;
91
+ font-family: 'InterRegular' !important;
92
+ }
93
+
94
+ .vitro-item {
95
+ display: flex;
96
+ justify-content: center;
97
+ }
98
+
99
+ :global(.vitro-bottom-menu) .vitro-item > a {
100
+ background: transparent;
101
+ position: relative;
102
+ display: flex;
103
+ flex-direction: column;
104
+ align-items: center;
105
+ justify-content: space-between;
106
+ width: fit-content;
107
+ height: 100%;
108
+ padding: 0;
109
+ margin-bottom: 0;
110
+ }
@@ -35,21 +35,6 @@
35
35
  justify-content: space-between;
36
36
  }
37
37
 
38
- .vitro-sidebar a {
39
- text-decoration: none;
40
- height: 40px;
41
- width: 40px;
42
- border-radius: 8px;
43
- padding: 8px;
44
- cursor: pointer;
45
- margin-bottom: 8px;
46
- display: block;
47
- }
48
-
49
- .vitro-sidebar a:hover {
50
- background-color: #DCEEFF;
51
- }
52
-
53
38
  .vitro-sidebar ul > li:last-child > ul > li:last-child a {
54
39
  margin-bottom: 0;
55
40
  }
@@ -67,12 +52,53 @@
67
52
  font-weight: 400 !important;
68
53
  }
69
54
 
70
- :global(.toggled.pinned) .vitro-sidebar a {
55
+ :global(.vitro-bottom-menu) {
71
56
  width: 100%;
57
+ z-index: 10000;
58
+ flex-direction: row;
59
+ height: 60px;
60
+ padding: 0 21px !important;
61
+ background: #fff;
62
+ bottom: 0;
63
+ top: initial;
64
+ box-shadow: 0px 4px 14px 0px rgba(0, 0, 0, 0.18), 0px 0px 4px 0px rgba(0, 0, 0, 0.14);
65
+ border-radius: 4px 4px 0 0;
72
66
  }
73
67
 
74
- .vitro-sidebar a > div {
68
+ :global(.vitro-bottom-menu) ul {
75
69
  display: flex;
76
- width: fit-content;
77
- align-items: center;
70
+ flex-direction: row;
71
+ height: 100%;
72
+ }
73
+
74
+ .vitro-scroll-container {
75
+ height: 100%;
76
+ flex: 0 1 auto;
77
+ overflow: hidden;
78
+ padding: 8px 0;
79
+ }
80
+
81
+ .vitro-scroll-container > ul {
82
+ transition: 1s all ease;
83
+ }
84
+
85
+ .vitro-button-more {
86
+ display: block;
87
+ width: 40px;
88
+ height: 40px;
89
+ min-width: 40px;
90
+ border: none;
91
+ background-color: #fff;
92
+ background-size: 100%;
93
+ background-position: center;
94
+ background-repeat: no-repeat;
95
+ /* bottom-menu-button-more.svg URL-encoder for SVG */
96
+ background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 41 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10.5' cy='20' r='2.5' transform='rotate(-90 10.5 20)' fill='%234A556C'/%3E%3Ccircle cx='20.5' cy='20' r='2.5' transform='rotate(-90 20.5 20)' fill='%234A556C'/%3E%3Ccircle cx='30.5' cy='20' r='2.5' transform='rotate(-90 30.5 20)' fill='%234A556C'/%3E%3C/svg%3E%0A");
97
+ }
98
+
99
+ .vitro-button-more:hover,
100
+ .vitro-button-more:active {
101
+ border: none;
102
+ background-color: #fff;
103
+ outline: none;
78
104
  }
@@ -317,6 +317,11 @@
317
317
  flex: unset;
318
318
  }
319
319
 
320
+ .vitro-uploader :global(.k-upload-action) {
321
+ min-width: 24px;
322
+ justify-content: flex-start;
323
+ }
324
+
320
325
  :global(#TableViewContainer .splitter:last-child > .pane.primary):has(.vitro-uploader) {
321
326
  position: relative;
322
327
  }
@@ -444,6 +449,8 @@
444
449
  .vitro-uploader :global(.k-progressbar) {
445
450
  height: 32px !important;
446
451
  width: 32px !important;
452
+ min-width: 32px;
453
+ min-height: 32px;
447
454
  border-radius: 50% !important;
448
455
  display: flex;
449
456
  align-items: center !important;
@@ -455,8 +462,10 @@
455
462
  }
456
463
 
457
464
  .vitro-uploader :global(.k-progressbar > span) {
458
- height: 27px !important;
459
- width: 27px !important;
465
+ height: 28px !important;
466
+ width: 28px !important;
467
+ min-width: 28px;
468
+ min-height: 28px;
460
469
  border-radius: 50% !important;
461
470
  background: #fff !important;
462
471
  display: block;
@@ -27,6 +27,7 @@ interface LookupPickerProps {
27
27
  errorMessage?: string;
28
28
  children?: React.ReactNode;
29
29
  className?: string;
30
+ getAllValueList?: () => Promise<any>;
30
31
  }
31
32
  export declare const LookupPicker: (props: LookupPickerProps) => JSX.Element;
32
33
  export {};
@@ -10,6 +10,7 @@ interface LinkItem {
10
10
  imageUrl: string;
11
11
  imageHoverUrl?: string;
12
12
  text: string;
13
+ linkItemWidth?: number;
13
14
  }
14
15
  export declare const LinkItem: (props: LinkItem) => JSX.Element;
15
16
  export {};
@@ -5,6 +5,7 @@ interface SectionProps {
5
5
  itemList: SidebarItem[];
6
6
  activeItem?: string;
7
7
  currentUrl: string;
8
+ linkItemWidth?: number;
8
9
  }
9
10
  export declare const Section: (props: SectionProps) => JSX.Element;
10
11
  export {};
@@ -1,9 +1,10 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { SidebarSection } from './SidebarSection';
3
3
  interface SectionListProps {
4
4
  itemList: SidebarSection[];
5
5
  currentUrl: string;
6
6
  activeItem?: string;
7
+ linkItemWidth?: number;
7
8
  }
8
- export declare const SectionList: (props: SectionListProps) => JSX.Element | null;
9
+ export declare const SectionList: React.ForwardRefExoticComponent<SectionListProps & React.RefAttributes<unknown>>;
9
10
  export {};
@@ -8,6 +8,7 @@ interface SidebarProps {
8
8
  bottomItemList?: SidebarSection[];
9
9
  overflowItemList?: SidebarSection[];
10
10
  activeItem?: any;
11
+ isDifferentOnMobileView?: boolean;
11
12
  }
12
13
  export declare const Sidebar: (props: SidebarProps) => JSX.Element;
13
14
  export {};
package/dist/index.css CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
  .vitro-title {
20
20
  font-size: 20px;
21
- font-family: 'InterRegular';
21
+ font-family: 'InterMedium';
22
22
  line-height: 24px;
23
23
  margin-right: 24px;
24
24
  margin-bottom: 14px;
@@ -40,6 +40,12 @@
40
40
  padding-bottom: 8px;
41
41
  font-size: 18px;
42
42
  line-height: 27px;
43
+ margin: 0;
44
+ }
45
+
46
+ .pane > .vitro-flex {
47
+ flex-direction: column;
48
+ align-items: flex-start;
43
49
  }
44
50
  }
45
51
  ._breadcrumbs_vitro-breadcrumbs_3r4NcQY {
@@ -754,6 +760,11 @@
754
760
  flex: unset;
755
761
  }
756
762
 
763
+ ._uploader_vitro-uploader_237vX7T .k-upload-action {
764
+ min-width: 24px;
765
+ justify-content: flex-start;
766
+ }
767
+
757
768
  #TableViewContainer .splitter:last-child > .pane.primary:has(._uploader_vitro-uploader_237vX7T) {
758
769
  position: relative;
759
770
  }
@@ -881,6 +892,8 @@
881
892
  ._uploader_vitro-uploader_237vX7T .k-progressbar {
882
893
  height: 32px !important;
883
894
  width: 32px !important;
895
+ min-width: 32px;
896
+ min-height: 32px;
884
897
  border-radius: 50% !important;
885
898
  display: flex;
886
899
  align-items: center !important;
@@ -892,8 +905,10 @@
892
905
  }
893
906
 
894
907
  ._uploader_vitro-uploader_237vX7T .k-progressbar > span {
895
- height: 27px !important;
896
- width: 27px !important;
908
+ height: 28px !important;
909
+ width: 28px !important;
910
+ min-width: 28px;
911
+ min-height: 28px;
897
912
  border-radius: 50% !important;
898
913
  background: #fff !important;
899
914
  display: block;
@@ -2750,6 +2765,16 @@
2750
2765
  width: 24px;
2751
2766
  height: 24px;
2752
2767
  margin-right: 4px;
2768
+ }
2769
+
2770
+ @media (max-width: 800px) {
2771
+ ._command-menu-button_vitro-command-menu-button_2IiXVbP ._command-menu-button_vitro-icon_1xB4d09 + div {
2772
+ display: none;
2773
+ }
2774
+
2775
+ ._command-menu-button_vitro-command-menu-button_2IiXVbP {
2776
+ min-width: 40px !important;
2777
+ }
2753
2778
  }
2754
2779
  ._command-menu-item_vitro-item_2pVhk23 {
2755
2780
  display: flex;
@@ -2969,12 +2994,31 @@ li:first-child ._command-menu-item_vitro-item_2pVhk23:hover {
2969
2994
  .vitro-button-context:hover,
2970
2995
  .vitro-button-context:active {
2971
2996
  border-color: #fff !important;
2997
+ }
2998
+
2999
+ @media (max-width: 800px) {
3000
+ ._command-menu-dropdown-button_vitro-command-menu-dropdown-button_2ImIuc3 ._command-menu-dropdown-button_vitro-icon_36InzPx + div {
3001
+ display: none;
3002
+ }
3003
+
3004
+ ._command-menu-dropdown-button_vitro-command-menu-dropdown-button_2ImIuc3 {
3005
+ min-width: 40px !important;
3006
+ }
3007
+
3008
+ li:first-child ._command-menu-dropdown-button_vitro-icon_36InzPx + div {
3009
+ display: block;
3010
+ }
3011
+
3012
+ .vitro-button-context {
3013
+ min-width: 32px !important;
3014
+ width: 32px;
3015
+ }
2972
3016
  }
2973
- a._sidebar-item_vitro-active_7p5iOhY {
3017
+ ._sidebar-item_vitro-active_7p5iOhY {
2974
3018
  background-color: #DCEEFF;
2975
3019
  }
2976
3020
 
2977
- ul > li:last-child > ul > li:last-child a._sidebar-item_vitro-active_7p5iOhY {
3021
+ ul > li:last-child > ul > li:last-child ._sidebar-item_vitro-active_7p5iOhY {
2978
3022
  background-color: transparent;
2979
3023
  }
2980
3024
 
@@ -2993,33 +3037,95 @@ ul > li:last-child > ul > li:last-child a._sidebar-item_vitro-active_7p5iOhY {
2993
3037
  display: none;
2994
3038
  }
2995
3039
 
2996
- a:hover ._sidebar-item_vitro-icon-text_3ROhyLK, a:hover ._sidebar-item_vitro-item-text_1kK_aIZ, a._sidebar-item_vitro-active_7p5iOhY ._sidebar-item_vitro-icon-text_3ROhyLK, a._sidebar-item_vitro-active_7p5iOhY ._sidebar-item_vitro-item-text_1kK_aIZ {
3040
+ ._sidebar-item_vitro-active_7p5iOhY ._sidebar-item_vitro-icon-text_3ROhyLK,
3041
+ ._sidebar-item_vitro-active_7p5iOhY ._sidebar-item_vitro-item-text_1kK_aIZ {
2997
3042
  color: #326AD6;
2998
3043
  font-weight: 500;
2999
3044
  font-family: 'InterMedium';
3000
3045
  }
3001
3046
 
3002
- ._sidebar-item_vitro-icon_2B88tow > .vitro-icon-hover {
3003
- display: none;
3047
+ ._sidebar-item_vitro-icon_2B88tow {
3048
+ width: 24px;
3049
+ height: 24px;
3050
+ }
3051
+
3052
+ .toggled.pinned ._sidebar-item_vitro-item_1BR_7F0 a {
3053
+ width: 100%;
3004
3054
  }
3005
3055
 
3006
- ._sidebar-item_vitro-icon_2B88tow:hover > .vitro-icon-hover {
3056
+ ._sidebar-item_vitro-item_1BR_7F0 a > div {
3057
+ display: flex;
3058
+ width: -moz-fit-content;
3059
+ width: fit-content;
3060
+ align-items: center;
3061
+ }
3062
+
3063
+ ._sidebar-item_vitro-item_1BR_7F0 a {
3064
+ text-decoration: none;
3065
+ height: 40px;
3066
+ width: 40px;
3067
+ border-radius: 8px;
3068
+ padding: 8px;
3069
+ cursor: pointer;
3070
+ margin-bottom: 8px;
3007
3071
  display: block;
3008
3072
  }
3009
3073
 
3010
- ._sidebar-item_vitro-icon_2B88tow:hover > .vitro-icon-default {
3011
- display: none;
3074
+ ._sidebar-item_vitro-active_7p5iOhY {
3075
+ background-color: #DCEEFF;
3012
3076
  }
3013
3077
 
3014
- ._sidebar-item_vitro-icon_2B88tow {
3015
- width: 24px;
3016
- height: 24px;
3078
+ .vitro-bottom-menu ._sidebar-item_vitro-item-text_1kK_aIZ {
3079
+ display: block;
3080
+ color: #4A556C;
3081
+ font-size: 12px;
3082
+ line-height: 12px;
3083
+ text-align: center;
3017
3084
  }
3018
3085
 
3019
- .vitro-display-none {
3086
+ .vitro-bottom-menu ._sidebar-item_vitro-icon-text_3ROhyLK {
3020
3087
  display: none;
3088
+ }
3089
+
3090
+ .vitro-bottom-menu ._sidebar-item_vitro-active_7p5iOhY {
3091
+ background: transparent;
3092
+ position: relative;
3093
+ }
3094
+
3095
+ .vitro-bottom-menu ._sidebar-item_vitro-active_7p5iOhY::after {
3096
+ content: '';
3097
+ display: block;
3098
+ position: absolute;
3099
+ height: 2px;
3100
+ border-radius: 2px;
3101
+ background: #4292F7;
3102
+ width: 32px;
3103
+ bottom: -8px;
3104
+ }
3105
+
3106
+ ._sidebar-item_vitro-active_7p5iOhY ._sidebar-item_vitro-item-text_1kK_aIZ {
3107
+ color: #4A556C;
3108
+ font-family: 'InterRegular' !important;
3109
+ }
3110
+
3111
+ ._sidebar-item_vitro-item_1BR_7F0 {
3112
+ display: flex;
3113
+ justify-content: center;
3114
+ }
3115
+
3116
+ .vitro-bottom-menu ._sidebar-item_vitro-item_1BR_7F0 > a {
3117
+ background: transparent;
3118
+ position: relative;
3119
+ display: flex;
3120
+ flex-direction: column;
3121
+ align-items: center;
3122
+ justify-content: space-between;
3123
+ width: -moz-fit-content;
3124
+ width: fit-content;
3125
+ height: 100%;
3126
+ padding: 0;
3127
+ margin-bottom: 0;
3021
3128
  }
3022
-
3023
3129
  ._sidebar_vitro-sidebar_1IxGYiU {
3024
3130
  height: 100%;
3025
3131
  position: fixed;
@@ -3057,21 +3163,6 @@ a:hover ._sidebar-item_vitro-icon-text_3ROhyLK, a:hover ._sidebar-item_vitro-ite
3057
3163
  justify-content: space-between;
3058
3164
  }
3059
3165
 
3060
- ._sidebar_vitro-sidebar_1IxGYiU a {
3061
- text-decoration: none;
3062
- height: 40px;
3063
- width: 40px;
3064
- border-radius: 8px;
3065
- padding: 8px;
3066
- cursor: pointer;
3067
- margin-bottom: 8px;
3068
- display: block;
3069
- }
3070
-
3071
- ._sidebar_vitro-sidebar_1IxGYiU a:hover {
3072
- background-color: #DCEEFF;
3073
- }
3074
-
3075
3166
  ._sidebar_vitro-sidebar_1IxGYiU ul > li:last-child > ul > li:last-child a {
3076
3167
  margin-bottom: 0;
3077
3168
  }
@@ -3089,15 +3180,55 @@ a:hover ._sidebar-item_vitro-icon-text_3ROhyLK, a:hover ._sidebar-item_vitro-ite
3089
3180
  font-weight: 400 !important;
3090
3181
  }
3091
3182
 
3092
- .toggled.pinned ._sidebar_vitro-sidebar_1IxGYiU a {
3183
+ .vitro-bottom-menu {
3093
3184
  width: 100%;
3185
+ z-index: 10000;
3186
+ flex-direction: row;
3187
+ height: 60px;
3188
+ padding: 0 21px !important;
3189
+ background: #fff;
3190
+ bottom: 0;
3191
+ top: initial;
3192
+ box-shadow: 0px 4px 14px 0px rgba(0, 0, 0, 0.18), 0px 0px 4px 0px rgba(0, 0, 0, 0.14);
3193
+ border-radius: 4px 4px 0 0;
3094
3194
  }
3095
3195
 
3096
- ._sidebar_vitro-sidebar_1IxGYiU a > div {
3196
+ .vitro-bottom-menu ul {
3097
3197
  display: flex;
3098
- width: -moz-fit-content;
3099
- width: fit-content;
3100
- align-items: center;
3198
+ flex-direction: row;
3199
+ height: 100%;
3200
+ }
3201
+
3202
+ ._sidebar_vitro-scroll-container_3K-iJy8 {
3203
+ height: 100%;
3204
+ flex: 0 1 auto;
3205
+ overflow: hidden;
3206
+ padding: 8px 0;
3207
+ }
3208
+
3209
+ ._sidebar_vitro-scroll-container_3K-iJy8 > ul {
3210
+ transition: 1s all ease;
3211
+ }
3212
+
3213
+ ._sidebar_vitro-button-more_3s9oZY9 {
3214
+ display: block;
3215
+ width: 40px;
3216
+ height: 40px;
3217
+ min-width: 40px;
3218
+ border: none;
3219
+ background-color: #fff;
3220
+ background-size: 100%;
3221
+ background-position: center;
3222
+ background-repeat: no-repeat;
3223
+ /* bottom-menu-button-more.svg URL-encoder for SVG */
3224
+ background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 41 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10.5' cy='20' r='2.5' transform='rotate(-90 10.5 20)' fill='%234A556C'/%3E%3Ccircle cx='20.5' cy='20' r='2.5' transform='rotate(-90 20.5 20)' fill='%234A556C'/%3E%3Ccircle cx='30.5' cy='20' r='2.5' transform='rotate(-90 30.5 20)' fill='%234A556C'/%3E%3C/svg%3E%0A");
3225
+ }
3226
+
3227
+ ._sidebar_vitro-button-more_3s9oZY9:hover,
3228
+ ._sidebar_vitro-button-more_3s9oZY9:active {
3229
+ border: none;
3230
+ background-color: #fff;
3231
+ outline: none;
3101
3232
  }
3102
3233
  ._task-tile_vitro-task-tile_35bZu48 {
3103
3234
  position: relative;