@dvrd/dvr-controls 1.0.44 → 1.0.46
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 +7 -7
- package/src/js/checkbox/checkbox.tsx +95 -107
- package/src/js/checkbox/checkboxController.tsx +186 -108
- package/src/js/checkbox/style/checkbox.scss +9 -1
- package/src/js/date/dvrdDatePicker.tsx +210 -186
- package/src/js/date/style/dvrdDatePicker.scss +6 -0
- package/src/js/select/dvrdMultiSelect.tsx +389 -0
- package/src/js/select/dvrdSelectController.tsx +119 -58
- package/src/js/sidebarMenu/sidebarMenu.tsx +20 -8
- package/src/js/sidebarMenu/style/sidebarMenu.scss +19 -7
- package/src/js/util/interfaces.ts +1 -0
|
@@ -5,8 +5,6 @@
|
|
|
5
5
|
@import '../../../style/variables';
|
|
6
6
|
|
|
7
7
|
.dvr-side-bar-menu {
|
|
8
|
-
//--base-color: white;
|
|
9
|
-
//--contrast-color: $color-blue-1;
|
|
10
8
|
@include backgroundShadow;
|
|
11
9
|
display: flex;
|
|
12
10
|
flex-direction: column;
|
|
@@ -30,6 +28,7 @@
|
|
|
30
28
|
background-color: var(--contrast-color-color);
|
|
31
29
|
transition: background-color .2s ease-in-out;
|
|
32
30
|
color: var(--base-color);
|
|
31
|
+
text-decoration: none;
|
|
33
32
|
|
|
34
33
|
.item-icon {
|
|
35
34
|
color: $color-gray-4;
|
|
@@ -100,6 +99,7 @@
|
|
|
100
99
|
align-items: center;
|
|
101
100
|
cursor: pointer;
|
|
102
101
|
position: relative;
|
|
102
|
+
text-decoration: none;
|
|
103
103
|
|
|
104
104
|
.item-icon {
|
|
105
105
|
color: #686869;
|
|
@@ -119,11 +119,11 @@
|
|
|
119
119
|
transition: color .2s ease-in-out;
|
|
120
120
|
white-space: nowrap;
|
|
121
121
|
user-select: none;
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
122
|
+
//
|
|
123
|
+
//&.active {
|
|
124
|
+
// font-weight: 600;
|
|
125
|
+
// color: black;
|
|
126
|
+
//}
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
.line {
|
|
@@ -164,6 +164,18 @@
|
|
|
164
164
|
&.with-children {
|
|
165
165
|
margin-bottom: -.5rem;
|
|
166
166
|
}
|
|
167
|
+
|
|
168
|
+
&.active {
|
|
169
|
+
.item-icon {
|
|
170
|
+
color: var(--base-color);
|
|
171
|
+
opacity: 1;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.item-label {
|
|
175
|
+
font-weight: 600;
|
|
176
|
+
color: black;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
167
179
|
}
|
|
168
180
|
}
|
|
169
181
|
}
|
|
@@ -224,6 +224,7 @@ export type SidebarItem = {
|
|
|
224
224
|
route?: string | string[];
|
|
225
225
|
exactRoute?: boolean;
|
|
226
226
|
children?: SidebarItem[];
|
|
227
|
+
asNavLink?: true;
|
|
227
228
|
}
|
|
228
229
|
export type ResponseCallback = (data: ResponseData) => void;
|
|
229
230
|
export type RNDDimensions = { x: number, y: number, height: number, width: number };
|