@vectara/vectara-ui 16.1.0 → 16.1.2
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.
|
@@ -8,11 +8,13 @@
|
|
|
8
8
|
.vuiStepVerticalContainer {
|
|
9
9
|
padding-left: $sizeS;
|
|
10
10
|
border-left: 1px solid var(--vui-color-medium-shade);
|
|
11
|
+
transition: border-left-color $transitionSpeed;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
.vuiStepVerticalContainer-isActive {
|
|
14
15
|
padding-left: $sizeS - 1px;
|
|
15
|
-
border-left: 2px
|
|
16
|
+
border-left-width: 2px;
|
|
17
|
+
border-left-color: var(--vui-color-primary-shade);
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
.vuiStepVerticalContainer {
|
|
@@ -45,7 +47,6 @@
|
|
|
45
47
|
|
|
46
48
|
.vuiStepVerticalContainer__icon {
|
|
47
49
|
.vuiIcon--token {
|
|
48
|
-
// border-color: var(--vui-color-medium-shade);
|
|
49
50
|
box-shadow: $shadowSmallEnd;
|
|
50
51
|
}
|
|
51
52
|
}
|
package/lib/styles/index.css
CHANGED
|
@@ -403,6 +403,7 @@ fieldset {
|
|
|
403
403
|
flex-direction: column;
|
|
404
404
|
align-items: center;
|
|
405
405
|
overflow-y: auto;
|
|
406
|
+
scrollbar-gutter: stable;
|
|
406
407
|
}
|
|
407
408
|
|
|
408
409
|
.vuiAppSideNav {
|
|
@@ -4502,11 +4503,11 @@ h2.react-datepicker__current-month {
|
|
|
4502
4503
|
opacity: 0;
|
|
4503
4504
|
}
|
|
4504
4505
|
|
|
4505
|
-
.vuiScreenBlock--default {
|
|
4506
|
+
.vuiScreenBlock.vuiScreenBlock--default {
|
|
4506
4507
|
z-index: 10;
|
|
4507
4508
|
}
|
|
4508
4509
|
|
|
4509
|
-
.vuiScreenBlock--modal {
|
|
4510
|
+
.vuiScreenBlock.vuiScreenBlock--modal {
|
|
4510
4511
|
z-index: 12;
|
|
4511
4512
|
}
|
|
4512
4513
|
|
|
@@ -5084,11 +5085,13 @@ h2.react-datepicker__current-month {
|
|
|
5084
5085
|
.vuiStepVerticalContainer {
|
|
5085
5086
|
padding-left: 12px;
|
|
5086
5087
|
border-left: 1px solid var(--vui-color-medium-shade);
|
|
5088
|
+
transition: border-left-color 0.2s;
|
|
5087
5089
|
}
|
|
5088
5090
|
|
|
5089
5091
|
.vuiStepVerticalContainer-isActive {
|
|
5090
5092
|
padding-left: 11px;
|
|
5091
|
-
border-left: 2px
|
|
5093
|
+
border-left-width: 2px;
|
|
5094
|
+
border-left-color: var(--vui-color-primary-shade);
|
|
5092
5095
|
}
|
|
5093
5096
|
|
|
5094
5097
|
.vuiStepVerticalContainer {
|
package/package.json
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
VuiButtonSecondary,
|
|
6
6
|
VuiDrawer,
|
|
7
7
|
VuiFlexContainer,
|
|
8
|
+
VuiModal,
|
|
8
9
|
VuiNotifications,
|
|
9
10
|
VuiSpacer,
|
|
10
11
|
VuiText,
|
|
@@ -16,6 +17,7 @@ import { FormGroup } from "../searchSelect/FormGroup";
|
|
|
16
17
|
export const PrimaryDrawer = () => {
|
|
17
18
|
const [isOpen, setIsOpen] = useState(false);
|
|
18
19
|
const [hasFooter, setHasFooter] = useState(true);
|
|
20
|
+
const [isModalOpen, setIsModalOpen] = useState(false);
|
|
19
21
|
|
|
20
22
|
return (
|
|
21
23
|
<>
|
|
@@ -67,6 +69,12 @@ export const PrimaryDrawer = () => {
|
|
|
67
69
|
|
|
68
70
|
<VuiSpacer size="m" />
|
|
69
71
|
|
|
72
|
+
<VuiButtonSecondary color="primary" onClick={() => setIsModalOpen(true)}>
|
|
73
|
+
Open modal from drawer
|
|
74
|
+
</VuiButtonSecondary>
|
|
75
|
+
|
|
76
|
+
<VuiSpacer size="m" />
|
|
77
|
+
|
|
70
78
|
<VuiText>
|
|
71
79
|
<p>I just thought you should know that your drawer is showing.</p>
|
|
72
80
|
</VuiText>
|
|
@@ -203,6 +211,15 @@ export const PrimaryDrawer = () => {
|
|
|
203
211
|
<VuiSpacer size="l" />
|
|
204
212
|
</VuiDrawer>
|
|
205
213
|
|
|
214
|
+
<VuiModal isOpen={isModalOpen} onClose={() => setIsModalOpen(false)} title="I'm a modal inside a drawer!">
|
|
215
|
+
<VuiText>
|
|
216
|
+
<p>
|
|
217
|
+
This modal is rendered inside the drawer. It demonstrates that you can have multiple layers of overlays and
|
|
218
|
+
that the focus management and scroll locking still work as expected.
|
|
219
|
+
</p>
|
|
220
|
+
</VuiText>
|
|
221
|
+
</VuiModal>
|
|
222
|
+
|
|
206
223
|
<VuiNotifications />
|
|
207
224
|
</>
|
|
208
225
|
);
|