@fastkit/vui 0.12.7 → 0.12.9
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/LICENSE +1 -1
- package/dist/vui.css +2786 -2716
- package/dist/vui.css.map +1 -0
- package/dist/vui.d.ts +9072 -10160
- package/dist/vui.mjs +2158 -1968
- package/dist/vui.mjs.map +1 -0
- package/package.json +89 -59
- package/src/components/VApp/VApp.tsx +3 -1
- package/src/components/VAvatar/VAvatar.scss +62 -60
- package/src/components/VAvatar/VAvatar.tsx +6 -1
- package/src/components/VBreadcrumbs/VBreadcrumbs.scss +53 -51
- package/src/components/VBusyImage/VBusyImage.scss +50 -51
- package/src/components/VButton/VButton.scss +120 -118
- package/src/components/VButton/VButton.tsx +6 -1
- package/src/components/VButton/VButtonGroup.scss +21 -19
- package/src/components/VCard/VCard.scss +41 -42
- package/src/components/VCard/VCard.tsx +5 -0
- package/src/components/VCard/VCardActions.scss +9 -7
- package/src/components/VCard/VCardContent.scss +4 -2
- package/src/components/VCheckable/VCheckable.scss +79 -80
- package/src/components/VCheckable/VCheckable.tsx +1 -1
- package/src/components/VCheckbox/VCheckbox.scss +50 -48
- package/src/components/VCheckbox/VCheckbox.tsx +2 -2
- package/src/components/VChip/VChip.scss +61 -59
- package/src/components/VChip/VChip.tsx +6 -1
- package/src/components/VContentSwitcher/VContentSwitcher.scss +52 -50
- package/src/components/VControlField/VControlField.scss +148 -146
- package/src/components/VControlField/VControlField.tsx +3 -3
- package/src/components/VDataTable/VDataTable.scss +167 -168
- package/src/components/VDataTable/VDataTable.tsx +39 -8
- package/src/components/VDrawerLayout/VDrawerLayout.scss +27 -25
- package/src/components/VForm/VForm.tsx +3 -4
- package/src/components/VFormControl/VFormControl.scss +84 -82
- package/src/components/VFormControl/VFormControl.tsx +2 -3
- package/src/components/VGrid/VGridContainer.scss +5 -3
- package/src/components/VGrid/VGridItem.scss +4 -2
- package/src/components/VHero/VHero.scss +23 -21
- package/src/components/VIcon/VIcon.scss +19 -17
- package/src/components/VListTile/VListTile.scss +60 -58
- package/src/components/VListTile/VListTile.tsx +5 -0
- package/src/components/VNavigation/VNavigation.scss +12 -10
- package/src/components/VNavigation/VNavigationItem.scss +21 -19
- package/src/components/VNavigation/VNavigationItem.tsx +5 -0
- package/src/components/VOption/VOption.scss +55 -56
- package/src/components/VOption/VOption.tsx +2 -2
- package/src/components/VOptionGroup/VOptionGroup.scss +14 -12
- package/src/components/VOptionGroup/VOptionGroup.tsx +3 -1
- package/src/components/VPagination/VPagination.scss +81 -79
- package/src/components/VPagination/VPagination.tsx +1 -1
- package/src/components/VPaper/VPaper.scss +43 -41
- package/src/components/VRadio/VRadio.scss +52 -53
- package/src/components/VRadio/VRadio.tsx +2 -2
- package/src/components/VSelect/VSelect.scss +77 -75
- package/src/components/VSelect/VSelect.tsx +5 -2
- package/src/components/VSkeltonLoader/VSkeltonLoaderBone.scss +24 -22
- package/src/components/VSwitch/VSwitch.scss +96 -94
- package/src/components/VSwitch/VSwitch.tsx +2 -2
- package/src/components/VTabs/VTab.scss +59 -57
- package/src/components/VTabs/VTabs.scss +41 -39
- package/src/components/VTabs/VTabs.tsx +5 -2
- package/src/components/VTextCounter/VTextCounter.scss +4 -2
- package/src/components/VTextField/VTextField.scss +37 -35
- package/src/components/VTextField/VTextField.tsx +2 -2
- package/src/components/VTextarea/VTextarea.scss +33 -31
- package/src/components/VTextarea/VTextarea.tsx +2 -2
- package/src/components/VToolbar/VToolbar.scss +19 -17
- package/src/components/VToolbar/VToolbarEdge.scss +21 -19
- package/src/components/VToolbar/VToolbarMenu.scss +6 -4
- package/src/components/VToolbar/VToolbarMenu.tsx +5 -0
- package/src/components/VToolbar/VToolbarTitle.scss +19 -17
- package/src/components/VWysiwygEditor/VWysiwygEditor.scss +52 -50
- package/src/components/VWysiwygEditor/VWysiwygEditor.tsx +2 -2
- package/src/components/VWysiwygEditor/extensions/linter/Linter.scss +108 -109
- package/src/components/VWysiwygEditor/schemes.ts +1 -1
- package/src/components/VWysiwygEditor/tools/color.scss +106 -112
- package/src/components/kits.ts +1 -1
- package/src/composables/control.ts +1 -1
- package/src/composables/form-selector.scss +20 -18
- package/src/composables/form-selector.tsx +5 -3
- package/src/index.ts +13 -2
- package/src/plugin.tsx +4 -4
- package/src/schemes/control.ts +2 -2
- package/src/service.tsx +5 -5
- package/src/styles/core/functions.scss +2 -2
- package/src/styles/index.scss +23 -9
- package/dist/tool/index.d.ts +0 -2
- package/dist/tool/index.d.ts.map +0 -1
- package/dist/tool/index.mjs +0 -193
- package/dist/tool/vite-plugin.d.ts +0 -25
- package/dist/tool/vite-plugin.d.ts.map +0 -1
- package/src/.DS_Store +0 -0
- package/src/assets/builtins/color-scheme.ts +0 -9
- package/src/assets/builtins/media-match.ts +0 -3
- package/src/components/.DS_Store +0 -0
- package/src/components/VAvatar/.DS_Store +0 -0
- package/src/components/VChip/.DS_Store +0 -0
- package/src/components/VSkeltonLoader/.DS_Store +0 -0
- package/src/components/VTextField/.DS_Store +0 -0
- package/src/components/VWysiwygEditor/.DS_Store +0 -0
- package/src/components/VWysiwygEditor/extensions/.DS_Store +0 -0
- package/src/components/VWysiwygEditor/extensions/linter/.DS_Store +0 -0
- package/src/tool/index.ts +0 -2
- package/src/tool/vite-plugin.ts +0 -266
- /package/{src/styles → dist}/after-effects/display-flow.scss +0 -0
- /package/{src/styles → dist}/after-effects/spacing.scss +0 -0
- /package/{src/styles → dist}/after-effects/text.scss +0 -0
- /package/{src/styles → dist}/after-effects.scss +0 -0
- /package/dist/{assets/builtins → builtins}/color-scheme.ts +0 -0
- /package/dist/{assets/builtins → builtins}/media-match.ts +0 -0
|
@@ -1,101 +1,103 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
// --control-label-font-size: calc(var(--control-field-font-size) * 0.75); // 12
|
|
8
|
-
--my-label-color: var(--control-label-color);
|
|
9
|
-
--my-message-color: var(--control-message-color);
|
|
1
|
+
@layer vui {
|
|
2
|
+
.v-form-control {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
max-width: 100%;
|
|
6
|
+
margin: var(--control-horizontal-margin) 0;
|
|
10
7
|
|
|
11
|
-
|
|
12
|
-
--my-label-color: var(--
|
|
13
|
-
--my-message-color: var(--
|
|
14
|
-
}
|
|
8
|
+
// --control-label-font-size: calc(var(--control-field-font-size) * 0.75); // 12
|
|
9
|
+
--my-label-color: var(--control-label-color);
|
|
10
|
+
--my-message-color: var(--control-message-color);
|
|
15
11
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
&--invalid:not(#{&}--readonly) {
|
|
13
|
+
--my-label-color: var(--main-color);
|
|
14
|
+
--my-message-color: var(--main-color);
|
|
15
|
+
}
|
|
20
16
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
font-size: var(--control-label-font-size);
|
|
26
|
-
font-weight: var(--control-label-font-weight);
|
|
27
|
-
line-height: var(--control-label-height);
|
|
28
|
-
color: var(--my-label-color);
|
|
29
|
-
letter-spacing: 0.00938em;
|
|
17
|
+
&--disabled {
|
|
18
|
+
--my-label-color: var(--control-disabled-color);
|
|
19
|
+
--my-message-color: var(--control-disabled-color);
|
|
20
|
+
}
|
|
30
21
|
|
|
31
|
-
&
|
|
32
|
-
display:
|
|
22
|
+
&__label {
|
|
23
|
+
display: flex;
|
|
33
24
|
align-items: center;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
// color: var(--palette-muted);
|
|
41
|
-
text-decoration: none;
|
|
42
|
-
letter-spacing: normal;
|
|
43
|
-
cursor: pointer;
|
|
44
|
-
|
|
45
|
-
// &:hover,
|
|
46
|
-
// &:focus {
|
|
47
|
-
// text-decoration: underline;
|
|
48
|
-
// }
|
|
25
|
+
align-self: flex-start;
|
|
26
|
+
font-size: var(--control-label-font-size);
|
|
27
|
+
font-weight: var(--control-label-font-weight);
|
|
28
|
+
line-height: var(--control-label-height);
|
|
29
|
+
color: var(--my-label-color);
|
|
30
|
+
letter-spacing: 0.00938em;
|
|
49
31
|
|
|
50
|
-
&
|
|
51
|
-
|
|
52
|
-
display: flex;
|
|
32
|
+
&__hinttip {
|
|
33
|
+
display: inline-flex;
|
|
53
34
|
align-items: center;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
35
|
+
margin-top: -0.2em;
|
|
36
|
+
margin-left: 0.6em;
|
|
37
|
+
// font-size: calc(var(--root-em) * 0.5);
|
|
38
|
+
font-size: 80%;
|
|
39
|
+
line-height: 1;
|
|
40
|
+
color: inherit;
|
|
41
|
+
// color: var(--palette-muted);
|
|
42
|
+
text-decoration: none;
|
|
43
|
+
letter-spacing: normal;
|
|
44
|
+
cursor: pointer;
|
|
58
45
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
46
|
+
// &:hover,
|
|
47
|
+
// &:focus {
|
|
48
|
+
// text-decoration: underline;
|
|
49
|
+
// }
|
|
50
|
+
|
|
51
|
+
&__icon {
|
|
52
|
+
position: relative;
|
|
53
|
+
display: flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
font-size: 120%;
|
|
57
|
+
text-decoration: none !important;
|
|
63
58
|
}
|
|
64
|
-
}
|
|
65
59
|
|
|
66
|
-
|
|
67
|
-
|
|
60
|
+
&:hover &__icon,
|
|
61
|
+
&:focus &__icon {
|
|
62
|
+
&::before {
|
|
63
|
+
opacity: 0.1;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&__hint {
|
|
68
|
+
font-size: calc(var(--root-em) * 0.75);
|
|
69
|
+
}
|
|
68
70
|
}
|
|
69
71
|
}
|
|
70
|
-
}
|
|
71
72
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
// &--disabled &__body {
|
|
74
|
+
// user-select: none;
|
|
75
|
+
// }
|
|
75
76
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
&__info {
|
|
78
|
+
display: flex;
|
|
79
|
+
padding-top: 3px;
|
|
80
|
+
}
|
|
80
81
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
82
|
+
&__message,
|
|
83
|
+
&__appends {
|
|
84
|
+
margin: 0 var(--control-message-horizontal-margin);
|
|
85
|
+
font-size: var(--control-message-font-size);
|
|
86
|
+
line-height: 1.66;
|
|
87
|
+
color: var(--my-message-color);
|
|
88
|
+
}
|
|
88
89
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
90
|
+
&__message {
|
|
91
|
+
flex: 1 0;
|
|
92
|
+
// margin: 0 var(--control-message-horizontal-margin);
|
|
93
|
+
// font-size: var(--control-message-font-size);
|
|
94
|
+
// line-height: 1.66;
|
|
95
|
+
// color: var(--my-message-color);
|
|
96
|
+
}
|
|
96
97
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
&__appends {
|
|
99
|
+
flex: 0 1;
|
|
100
|
+
margin-left: auto;
|
|
101
|
+
}
|
|
100
102
|
}
|
|
101
103
|
}
|
|
@@ -4,11 +4,10 @@ import {
|
|
|
4
4
|
createFormControlSettings,
|
|
5
5
|
useFormControl,
|
|
6
6
|
FormControlSlots,
|
|
7
|
-
defineSlotsProps,
|
|
8
7
|
FormControl,
|
|
9
|
-
renderSlotOrEmpty,
|
|
10
8
|
RequiredChipSource,
|
|
11
|
-
} from '@fastkit/vue-
|
|
9
|
+
} from '@fastkit/vue-form-control';
|
|
10
|
+
import { defineSlotsProps, renderSlotOrEmpty } from '@fastkit/vue-utils';
|
|
12
11
|
import { useVuiColorProvider, useVui } from '../../injections';
|
|
13
12
|
import type { VuiService } from '../../service';
|
|
14
13
|
import { VIcon } from '../VIcon';
|
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
@layer vui {
|
|
2
|
+
.v-hero {
|
|
3
|
+
--hero-background-color: var(--main-color);
|
|
4
|
+
--hero-text-color: var(--text-color);
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
margin: 0;
|
|
9
|
-
color: var(--hero-text-color);
|
|
10
|
-
background-color: var(--hero-background-color);
|
|
11
|
-
|
|
12
|
-
&__title {
|
|
13
|
-
flex: 1 1 100%;
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
padding: 20px 30px;
|
|
14
9
|
margin: 0;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
color: var(--hero-text-color);
|
|
11
|
+
background-color: var(--hero-background-color);
|
|
12
|
+
|
|
13
|
+
&__title {
|
|
14
|
+
flex: 1 1 100%;
|
|
15
|
+
margin: 0;
|
|
16
|
+
font-size: 1.75rem;
|
|
17
|
+
font-weight: 300;
|
|
18
|
+
line-height: 1;
|
|
19
|
+
color: inherit;
|
|
20
|
+
}
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
&__adornment {
|
|
23
|
+
flex: 0 0 auto;
|
|
24
|
+
padding-left: 10px;
|
|
25
|
+
margin-left: auto;
|
|
26
|
+
}
|
|
25
27
|
}
|
|
26
28
|
}
|
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
align-items: center;
|
|
4
|
-
justify-content: center;
|
|
5
|
-
width: 1.25em;
|
|
6
|
-
aspect-ratio: 1 / 1;
|
|
7
|
-
// -webkit-user-drag: none;
|
|
8
|
-
// pointer-events: none;
|
|
9
|
-
user-select: none;
|
|
10
|
-
|
|
11
|
-
&--clickable {
|
|
12
|
-
// pointer-events: auto;
|
|
13
|
-
cursor: pointer;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&__body {
|
|
1
|
+
@layer vui {
|
|
2
|
+
.v-icon {
|
|
17
3
|
display: inline-flex;
|
|
18
4
|
align-items: center;
|
|
19
5
|
justify-content: center;
|
|
20
|
-
|
|
6
|
+
width: 1.25em;
|
|
7
|
+
aspect-ratio: 1 / 1;
|
|
8
|
+
// -webkit-user-drag: none;
|
|
9
|
+
// pointer-events: none;
|
|
10
|
+
user-select: none;
|
|
11
|
+
|
|
12
|
+
&--clickable {
|
|
13
|
+
// pointer-events: auto;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&__body {
|
|
18
|
+
display: inline-flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
transition: transform 150ms linear;
|
|
22
|
+
}
|
|
21
23
|
}
|
|
22
24
|
}
|
|
@@ -1,73 +1,75 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
@layer vui {
|
|
2
|
+
.v-list-tile {
|
|
3
|
+
--tile-background: var(--main-color, transparent);
|
|
4
|
+
--tile-active-background: var(--deep-color, transparent);
|
|
5
|
+
--tile-text-color: var(--text-color);
|
|
6
|
+
--tile-text-active-color: var(--text-color);
|
|
7
|
+
--tile-pin-color: transparent;
|
|
8
|
+
--paper-link-color: var(--tile-text-color);
|
|
9
|
+
--depth-padding: var(--list-tile-padding);
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
// &--has-color {
|
|
12
|
+
// --tile-text-color: var(--nav-color);
|
|
13
|
+
// --tile-text-active-color: var(--navActive-color, var(--nav-color));
|
|
14
|
+
// }
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
width: 100%;
|
|
19
|
+
padding: var(--list-tile-padding);
|
|
20
|
+
padding-left: var(--depth-padding);
|
|
21
|
+
color: var(--tile-text-color) !important;
|
|
22
|
+
text-align: left;
|
|
23
|
+
text-decoration: none;
|
|
24
|
+
user-select: none;
|
|
25
|
+
background: var(--tile-background);
|
|
26
|
+
border: 0;
|
|
27
|
+
border-left: 3px solid var(--tile-pin-color);
|
|
28
|
+
border-radius: 0;
|
|
29
|
+
outline: 0;
|
|
30
|
+
transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
|
|
31
|
+
background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
32
|
+
appearance: none;
|
|
32
33
|
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
&--clickable {
|
|
35
|
+
cursor: pointer;
|
|
35
36
|
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
--tile-text-color: var(--nav-color);
|
|
38
|
+
--tile-text-active-color: var(--navActive-color, var(--nav-color));
|
|
38
39
|
|
|
39
|
-
|
|
40
|
+
// --tile-text-active-color: var(--navActive-color, var(--tile-text-color));
|
|
40
41
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
&:hover,
|
|
43
|
+
&:focus {
|
|
44
|
+
--tile-background: var(--tile-active-background);
|
|
45
|
+
--tile-text-color: var(--tile-text-active-color);
|
|
46
|
+
}
|
|
45
47
|
}
|
|
46
|
-
}
|
|
47
48
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
&--active {
|
|
50
|
+
--tile-pin-color: var(--pin-color);
|
|
51
|
+
--tile-text-color: var(--tile-text-active-color);
|
|
52
|
+
--tile-background: var(--tile-active-background);
|
|
53
|
+
}
|
|
53
54
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
// .v-list-tile--opened & {
|
|
56
|
+
// --tile-pin-color: var(--pin-color);
|
|
57
|
+
// }
|
|
57
58
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
59
|
+
&__body {
|
|
60
|
+
font-size: 0.8125rem;
|
|
61
|
+
// font-size: 0.75rem;
|
|
62
|
+
font-weight: 500;
|
|
63
|
+
line-height: 1.5;
|
|
64
|
+
}
|
|
64
65
|
|
|
65
|
-
|
|
66
|
-
|
|
66
|
+
&__icon {
|
|
67
|
+
min-width: 2em;
|
|
67
68
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
&--end {
|
|
70
|
+
margin-left: auto;
|
|
71
|
+
text-align: right;
|
|
72
|
+
}
|
|
71
73
|
}
|
|
72
74
|
}
|
|
73
75
|
}
|
|
@@ -18,6 +18,11 @@ import { useScopeColorClass, ScopeName } from '@fastkit/vue-color-scheme';
|
|
|
18
18
|
import { VLink } from '@fastkit/vue-utils';
|
|
19
19
|
import { useVui } from '../../injections';
|
|
20
20
|
|
|
21
|
+
// @TODO Unable to resolve dts for `navigationableInheritProps`.
|
|
22
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { RouteLocationRaw } from 'vue-router';
|
|
25
|
+
|
|
21
26
|
export function createListTileProps() {
|
|
22
27
|
const icon = rawIconProp();
|
|
23
28
|
return {
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
@layer vui {
|
|
2
|
+
.v-navigation {
|
|
3
|
+
// noop
|
|
4
|
+
&__caption {
|
|
5
|
+
display: block;
|
|
6
|
+
padding: calc(var(--root-em) * 0.625) calc(var(--root-em) * 1.5625);
|
|
7
|
+
margin: 1em 0 0;
|
|
8
|
+
// font-size: 0.6875rem;
|
|
9
|
+
font-size: 0.75rem;
|
|
10
|
+
color: var(--caption-color);
|
|
11
|
+
text-transform: uppercase;
|
|
12
|
+
}
|
|
11
13
|
}
|
|
12
14
|
}
|
|
@@ -1,28 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
--tile-text-color: var(--tile-text-active-color);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
&__expand {
|
|
8
|
-
transition: height 0.2s;
|
|
9
|
-
|
|
10
|
-
.v-navigation-item {
|
|
1
|
+
@layer vui {
|
|
2
|
+
.v-navigation-item {
|
|
3
|
+
&--opened {
|
|
11
4
|
--tile-background: var(--tile-active-background);
|
|
5
|
+
--tile-text-color: var(--tile-text-active-color);
|
|
12
6
|
}
|
|
13
|
-
}
|
|
14
7
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
--depth-padding: calc(var(--list-tile-padding) * 2);
|
|
18
|
-
}
|
|
8
|
+
&__expand {
|
|
9
|
+
transition: height 0.2s;
|
|
19
10
|
|
|
20
|
-
|
|
21
|
-
|
|
11
|
+
.v-navigation-item {
|
|
12
|
+
--tile-background: var(--tile-active-background);
|
|
13
|
+
}
|
|
22
14
|
}
|
|
23
15
|
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
&--depth {
|
|
17
|
+
&-1 {
|
|
18
|
+
--depth-padding: calc(var(--list-tile-padding) * 2);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&-2 {
|
|
22
|
+
--depth-padding: calc(var(--list-tile-padding) * 3);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&-3 {
|
|
26
|
+
--depth-padding: calc(var(--list-tile-padding) * 4);
|
|
27
|
+
}
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
30
|
}
|
|
@@ -19,6 +19,11 @@ import { useVui } from '../../injections';
|
|
|
19
19
|
import { useRoute } from 'vue-router';
|
|
20
20
|
import { ScopeName } from '@fastkit/color-scheme';
|
|
21
21
|
|
|
22
|
+
// @TODO Unable to resolve dts for `navigationableInheritProps`.
|
|
23
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import { RouteLocationRaw } from 'vue-router';
|
|
26
|
+
|
|
22
27
|
export function createNavigationItemProps() {
|
|
23
28
|
return {
|
|
24
29
|
...createListTileProps(),
|