@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,74 +1,73 @@
|
|
|
1
1
|
@use '../../styles/core.scss';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
@layer vui {
|
|
4
|
+
.v-option {
|
|
5
|
+
@include core.button-reset();
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
position: relative;
|
|
8
|
+
display: flex;
|
|
9
|
+
width: 100%;
|
|
10
|
+
padding: 0.75em 1em;
|
|
11
|
+
// font-size: 0.875em;
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
input {
|
|
14
|
+
@include core.hidden-input-element;
|
|
15
|
+
}
|
|
15
16
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
opacity: 0;
|
|
27
|
-
transition: opacity 0.2s;
|
|
28
|
-
}
|
|
17
|
+
&::before,
|
|
18
|
+
&::after {
|
|
19
|
+
position: absolute;
|
|
20
|
+
inset: 0;
|
|
21
|
+
display: block;
|
|
22
|
+
pointer-events: none;
|
|
23
|
+
content: '';
|
|
24
|
+
opacity: 0;
|
|
25
|
+
transition: opacity 0.2s;
|
|
26
|
+
}
|
|
29
27
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
&::before {
|
|
29
|
+
background: currentColor;
|
|
30
|
+
}
|
|
33
31
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
&::after {
|
|
33
|
+
background: var(--palette-primary);
|
|
34
|
+
}
|
|
37
35
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
36
|
+
&:hover,
|
|
37
|
+
&:focus-within,
|
|
38
|
+
&--key-focused {
|
|
39
|
+
&::before {
|
|
40
|
+
opacity: 0.12;
|
|
41
|
+
}
|
|
43
42
|
}
|
|
44
|
-
}
|
|
45
43
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
&__label {
|
|
45
|
+
position: relative;
|
|
46
|
+
display: block;
|
|
47
|
+
}
|
|
50
48
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
49
|
+
&--selected::after {
|
|
50
|
+
opacity: 0.12;
|
|
51
|
+
}
|
|
54
52
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
53
|
+
&--selected &__label {
|
|
54
|
+
font-weight: 500;
|
|
55
|
+
color: var(--palette-primary);
|
|
56
|
+
}
|
|
59
57
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
58
|
+
&--has-not-value &__label {
|
|
59
|
+
font-style: italic;
|
|
60
|
+
}
|
|
63
61
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
62
|
+
&[disabled],
|
|
63
|
+
&[tabindex='-1'] {
|
|
64
|
+
color: var(--palette-muted);
|
|
65
|
+
pointer-events: none;
|
|
66
|
+
opacity: 0.4;
|
|
69
67
|
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
&::before {
|
|
69
|
+
opacity: 0 !important;
|
|
70
|
+
}
|
|
72
71
|
}
|
|
73
72
|
}
|
|
74
73
|
}
|
|
@@ -3,8 +3,8 @@ import { defineComponent, computed } from 'vue';
|
|
|
3
3
|
import {
|
|
4
4
|
createFormSelectorItemSettings,
|
|
5
5
|
useFormSelectorItemControl,
|
|
6
|
-
|
|
7
|
-
} from '@fastkit/vue-
|
|
6
|
+
} from '@fastkit/vue-form-control';
|
|
7
|
+
import { renderSlotOrEmpty } from '@fastkit/vue-utils';
|
|
8
8
|
import { createControlProps, useControl } from '../../composables';
|
|
9
9
|
import { VUI_SELECT_SYMBOL, VUI_OPTION_SYMBOL } from '../../injections';
|
|
10
10
|
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
@layer vui {
|
|
2
|
+
.v-option-group {
|
|
3
|
+
display: block;
|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
&__label {
|
|
6
|
+
padding: 1em;
|
|
7
|
+
// padding: 0.875em 1em;
|
|
8
|
+
font-size: 0.875em;
|
|
9
|
+
color: var(--palette-caption);
|
|
10
|
+
opacity: 0.6;
|
|
11
|
+
}
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
&--disabled &__label {
|
|
14
|
+
color: var(--palette-muted);
|
|
15
|
+
opacity: 0.4;
|
|
16
|
+
}
|
|
15
17
|
}
|
|
16
18
|
}
|
|
@@ -4,11 +4,13 @@ import {
|
|
|
4
4
|
createFormSelectorItemGroupProps,
|
|
5
5
|
useFormSelectorItemGroupControl,
|
|
6
6
|
FormSelectorItemGroupControl,
|
|
7
|
+
} from '@fastkit/vue-form-control';
|
|
8
|
+
import {
|
|
7
9
|
defineSlotsProps,
|
|
8
10
|
VNodeChildOrSlot,
|
|
9
11
|
resolveVNodeChildOrSlots,
|
|
10
12
|
renderSlotOrEmpty,
|
|
11
|
-
} from '@fastkit/vue-
|
|
13
|
+
} from '@fastkit/vue-utils';
|
|
12
14
|
import { VUI_SELECT_SYMBOL } from '../../injections';
|
|
13
15
|
|
|
14
16
|
export const VOptionGroup = defineComponent({
|
|
@@ -1,100 +1,102 @@
|
|
|
1
1
|
@use '../../styles/core.scss';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
display: flex;
|
|
16
|
-
align-items: center;
|
|
17
|
-
overflow: hidden;
|
|
18
|
-
font-weight: bold;
|
|
19
|
-
line-height: 1;
|
|
20
|
-
|
|
21
|
-
&--left {
|
|
22
|
-
justify-content: flex-start;
|
|
23
|
-
}
|
|
3
|
+
@layer vui {
|
|
4
|
+
.v-pagination {
|
|
5
|
+
--pagination-size: var(--pagination-item-size);
|
|
6
|
+
--pagination-margin: var(--pagination-item-margin);
|
|
7
|
+
--pagination-font-size: var(--pagination-item-font-size);
|
|
8
|
+
--pagination-radius: var(--pagination-item-radius);
|
|
9
|
+
|
|
10
|
+
&::before {
|
|
11
|
+
width: var(--pagination-size);
|
|
12
|
+
margin: var(--pagination-margin);
|
|
13
|
+
content: none;
|
|
14
|
+
}
|
|
24
15
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
font-weight: bold;
|
|
20
|
+
line-height: 1;
|
|
28
21
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
22
|
+
&--left {
|
|
23
|
+
justify-content: flex-start;
|
|
24
|
+
}
|
|
32
25
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
26
|
+
&--center {
|
|
27
|
+
justify-content: center;
|
|
28
|
+
}
|
|
36
29
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
justify-content: center;
|
|
40
|
-
min-width: var(--pagination-size);
|
|
41
|
-
height: var(--pagination-size);
|
|
42
|
-
margin: calc(var(--pagination-margin) * 0.5);
|
|
43
|
-
font-size: var(--pagination-font-size);
|
|
44
|
-
color: inherit;
|
|
45
|
-
border-radius: var(--pagination-radius);
|
|
46
|
-
transition: 0.1s;
|
|
47
|
-
|
|
48
|
-
&:hover,
|
|
49
|
-
&:focus {
|
|
50
|
-
background: rgba(0, 0, 0, 0.1);
|
|
30
|
+
&--right {
|
|
31
|
+
justify-content: flex-end;
|
|
51
32
|
}
|
|
52
33
|
|
|
53
|
-
|
|
54
|
-
|
|
34
|
+
&__item,
|
|
35
|
+
a#{&}__item {
|
|
36
|
+
@include core.button-reset;
|
|
37
|
+
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
min-width: var(--pagination-size);
|
|
42
|
+
height: var(--pagination-size);
|
|
43
|
+
margin: calc(var(--pagination-margin) * 0.5);
|
|
44
|
+
font-size: var(--pagination-font-size);
|
|
45
|
+
color: inherit;
|
|
46
|
+
border-radius: var(--pagination-radius);
|
|
47
|
+
transition: 0.1s;
|
|
48
|
+
|
|
55
49
|
&:hover,
|
|
56
|
-
&:focus
|
|
57
|
-
|
|
58
|
-
color: var(--text-color);
|
|
59
|
-
pointer-events: none;
|
|
60
|
-
background-color: var(--main-color);
|
|
50
|
+
&:focus {
|
|
51
|
+
background: rgba(0, 0, 0, 0.1);
|
|
61
52
|
}
|
|
62
|
-
}
|
|
63
53
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
54
|
+
&--active {
|
|
55
|
+
&,
|
|
56
|
+
&:hover,
|
|
57
|
+
&:focus,
|
|
58
|
+
&:active {
|
|
59
|
+
color: var(--text-color);
|
|
60
|
+
pointer-events: none;
|
|
61
|
+
background-color: var(--main-color);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
69
64
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
65
|
+
&--disabled {
|
|
66
|
+
color: var(--palette-muted) !important;
|
|
67
|
+
pointer-events: none !important;
|
|
68
|
+
background: transparent !important;
|
|
69
|
+
}
|
|
75
70
|
|
|
76
|
-
|
|
77
|
-
|
|
71
|
+
&--truncate {
|
|
72
|
+
color: var(--palette-muted) !important;
|
|
73
|
+
pointer-events: none !important;
|
|
74
|
+
background: transparent !important;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.v-icon {
|
|
78
|
+
font-size: 125%;
|
|
79
|
+
}
|
|
78
80
|
}
|
|
79
|
-
}
|
|
80
81
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
&--dense &__item {
|
|
83
|
+
--pagination-size: var(--pagination-item-size-dense);
|
|
84
|
+
--pagination-margin: var(--pagination-item-margin-dense);
|
|
85
|
+
--pagination-font-size: var(--pagination-item-font-size-dense);
|
|
86
|
+
}
|
|
86
87
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
&--disabled &__item {
|
|
89
|
+
color: var(--palette-muted);
|
|
90
|
+
pointer-events: none;
|
|
90
91
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
&:hover,
|
|
93
|
+
&:focus {
|
|
94
|
+
background: transparent;
|
|
95
|
+
}
|
|
95
96
|
|
|
96
|
-
|
|
97
|
-
|
|
97
|
+
&--active {
|
|
98
|
+
background: var(--palette-muted);
|
|
99
|
+
}
|
|
98
100
|
}
|
|
99
101
|
}
|
|
100
102
|
}
|
|
@@ -26,7 +26,7 @@ export type VPaginationGuard = (
|
|
|
26
26
|
|
|
27
27
|
export const PAGINATION_ALIGNS = ['left', 'center', 'right'] as const;
|
|
28
28
|
|
|
29
|
-
export type VPaginationAlign = typeof PAGINATION_ALIGNS[number];
|
|
29
|
+
export type VPaginationAlign = (typeof PAGINATION_ALIGNS)[number];
|
|
30
30
|
|
|
31
31
|
export function paginationProps() {
|
|
32
32
|
return createPropsOptions({
|
|
@@ -1,43 +1,45 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
1
|
+
@layer vui {
|
|
2
|
+
.v-paper {
|
|
3
|
+
--paper-radius: var(--control-field-radius);
|
|
4
|
+
|
|
5
|
+
&--plain {
|
|
6
|
+
--paper-background--color: var(--palette-background);
|
|
7
|
+
--paper-text-color: inherit;
|
|
8
|
+
--paper-link-color: var(--link-color);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&--has-color {
|
|
12
|
+
--paper-background--color: var(--main-color);
|
|
13
|
+
--paper-text-color: var(--text-color);
|
|
14
|
+
--paper-link-color: var(--nav-color);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
display: block;
|
|
18
|
+
color: var(--paper-text-color);
|
|
19
|
+
background-color: var(--paper-background--color);
|
|
20
|
+
border-radius: var(--paper-radius);
|
|
21
|
+
|
|
22
|
+
&__inner {
|
|
23
|
+
position: relative;
|
|
24
|
+
border-radius: inherit;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&--square {
|
|
28
|
+
--paper-radius: 0px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// a:not(.v-paper) {
|
|
32
|
+
// color: var(--paper-link-color);
|
|
33
|
+
// }
|
|
34
|
+
|
|
35
|
+
&__header {
|
|
36
|
+
border-top-left-radius: inherit;
|
|
37
|
+
border-top-right-radius: inherit;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&__footer {
|
|
41
|
+
border-bottom-right-radius: inherit;
|
|
42
|
+
border-bottom-left-radius: inherit;
|
|
43
|
+
}
|
|
42
44
|
}
|
|
43
45
|
}
|
|
@@ -1,66 +1,65 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
@layer vui {
|
|
4
|
+
.v-radio {
|
|
5
|
+
--my-color: var(--color);
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
// color: var(--my-color);
|
|
8
|
+
// --my-faux-bg-color: transparent;
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
// &--selected,
|
|
11
|
+
// &--indeterminate {
|
|
12
|
+
// --my-border-color: transparent;
|
|
13
|
+
// --my-faux-bg-color: var(--color);
|
|
14
|
+
// }
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
display: block;
|
|
21
|
-
width: 100%;
|
|
22
|
-
height: 100%;
|
|
23
|
-
// background: var(--my-faux-bg-color);
|
|
24
|
-
// border: solid 2px currentColor;
|
|
25
|
-
// border-radius: 100%;
|
|
26
|
-
transition: border-color 0.2s, background-color 0.2s;
|
|
27
|
-
|
|
28
|
-
&::before,
|
|
29
|
-
&::after {
|
|
30
|
-
position: absolute;
|
|
16
|
+
&__faux {
|
|
17
|
+
position: relative;
|
|
18
|
+
// display: flex;
|
|
19
|
+
// align-items: center;
|
|
20
|
+
// justify-content: center;
|
|
31
21
|
display: block;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
&::before {
|
|
37
|
-
top: 0;
|
|
38
|
-
right: 0;
|
|
39
|
-
bottom: 0;
|
|
40
|
-
left: 0;
|
|
41
|
-
border: solid 2px currentColor;
|
|
42
|
-
// display: block;
|
|
43
|
-
// width: 60%;
|
|
44
|
-
// height: 60%;
|
|
45
|
-
// content: '';
|
|
46
|
-
// background: currentColor;
|
|
22
|
+
width: 100%;
|
|
23
|
+
height: 100%;
|
|
24
|
+
// background: var(--my-faux-bg-color);
|
|
25
|
+
// border: solid 2px currentColor;
|
|
47
26
|
// border-radius: 100%;
|
|
48
|
-
|
|
27
|
+
transition: border-color 0.2s, background-color 0.2s;
|
|
49
28
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
29
|
+
&::before,
|
|
30
|
+
&::after {
|
|
31
|
+
position: absolute;
|
|
32
|
+
display: block;
|
|
33
|
+
content: '';
|
|
34
|
+
border-radius: 100%;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&::before {
|
|
38
|
+
inset: 0;
|
|
39
|
+
border: solid 2px currentColor;
|
|
40
|
+
// display: block;
|
|
41
|
+
// width: 60%;
|
|
42
|
+
// height: 60%;
|
|
43
|
+
// content: '';
|
|
44
|
+
// background: currentColor;
|
|
45
|
+
// border-radius: 100%;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&::after {
|
|
49
|
+
top: 50%;
|
|
50
|
+
left: 50%;
|
|
51
|
+
width: 50%;
|
|
52
|
+
height: 50%;
|
|
53
|
+
background: currentColor;
|
|
54
|
+
transition: transform 0.2s;
|
|
55
|
+
transform: translate(-50%, -50%) scale(0);
|
|
56
|
+
}
|
|
58
57
|
}
|
|
59
|
-
}
|
|
60
58
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
59
|
+
&--selected &__faux {
|
|
60
|
+
&::after {
|
|
61
|
+
transform: translate(-50%, -50%) scale(1);
|
|
62
|
+
}
|
|
64
63
|
}
|
|
65
64
|
}
|
|
66
65
|
}
|
|
@@ -3,8 +3,8 @@ import { defineComponent } from 'vue';
|
|
|
3
3
|
import {
|
|
4
4
|
createFormSelectorItemSettings,
|
|
5
5
|
useFormSelectorItemControl,
|
|
6
|
-
|
|
7
|
-
} from '@fastkit/vue-
|
|
6
|
+
} from '@fastkit/vue-form-control';
|
|
7
|
+
import { renderSlotOrEmpty } from '@fastkit/vue-utils';
|
|
8
8
|
import { createControlProps, useControl } from '../../composables';
|
|
9
9
|
import { VUI_RADIO_GROUP_SYMBOL, VUI_RADIO_SYMBOL } from '../../injections';
|
|
10
10
|
import { VCheckable } from '../VCheckable';
|