@fastkit/vui 0.12.8 → 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.
Files changed (108) hide show
  1. package/LICENSE +1 -1
  2. package/dist/vui.css +2786 -2716
  3. package/dist/vui.css.map +1 -0
  4. package/dist/vui.d.ts +9072 -10172
  5. package/dist/vui.mjs +2141 -1969
  6. package/dist/vui.mjs.map +1 -0
  7. package/package.json +89 -59
  8. package/src/components/VApp/VApp.tsx +3 -1
  9. package/src/components/VAvatar/VAvatar.scss +62 -60
  10. package/src/components/VAvatar/VAvatar.tsx +6 -1
  11. package/src/components/VBreadcrumbs/VBreadcrumbs.scss +53 -51
  12. package/src/components/VBusyImage/VBusyImage.scss +50 -51
  13. package/src/components/VButton/VButton.scss +120 -118
  14. package/src/components/VButton/VButton.tsx +6 -1
  15. package/src/components/VButton/VButtonGroup.scss +21 -19
  16. package/src/components/VCard/VCard.scss +41 -42
  17. package/src/components/VCard/VCard.tsx +5 -0
  18. package/src/components/VCard/VCardActions.scss +9 -7
  19. package/src/components/VCard/VCardContent.scss +4 -2
  20. package/src/components/VCheckable/VCheckable.scss +79 -80
  21. package/src/components/VCheckable/VCheckable.tsx +1 -1
  22. package/src/components/VCheckbox/VCheckbox.scss +50 -48
  23. package/src/components/VCheckbox/VCheckbox.tsx +2 -2
  24. package/src/components/VChip/VChip.scss +61 -59
  25. package/src/components/VChip/VChip.tsx +6 -1
  26. package/src/components/VContentSwitcher/VContentSwitcher.scss +52 -50
  27. package/src/components/VControlField/VControlField.scss +148 -146
  28. package/src/components/VControlField/VControlField.tsx +3 -3
  29. package/src/components/VDataTable/VDataTable.scss +167 -168
  30. package/src/components/VDrawerLayout/VDrawerLayout.scss +27 -25
  31. package/src/components/VForm/VForm.tsx +3 -4
  32. package/src/components/VFormControl/VFormControl.scss +84 -82
  33. package/src/components/VFormControl/VFormControl.tsx +2 -3
  34. package/src/components/VGrid/VGridContainer.scss +5 -3
  35. package/src/components/VGrid/VGridItem.scss +4 -2
  36. package/src/components/VHero/VHero.scss +23 -21
  37. package/src/components/VIcon/VIcon.scss +19 -17
  38. package/src/components/VListTile/VListTile.scss +60 -58
  39. package/src/components/VListTile/VListTile.tsx +5 -0
  40. package/src/components/VNavigation/VNavigation.scss +12 -10
  41. package/src/components/VNavigation/VNavigationItem.scss +21 -19
  42. package/src/components/VNavigation/VNavigationItem.tsx +5 -0
  43. package/src/components/VOption/VOption.scss +55 -56
  44. package/src/components/VOption/VOption.tsx +2 -2
  45. package/src/components/VOptionGroup/VOptionGroup.scss +14 -12
  46. package/src/components/VOptionGroup/VOptionGroup.tsx +3 -1
  47. package/src/components/VPagination/VPagination.scss +81 -79
  48. package/src/components/VPagination/VPagination.tsx +1 -1
  49. package/src/components/VPaper/VPaper.scss +43 -41
  50. package/src/components/VRadio/VRadio.scss +52 -53
  51. package/src/components/VRadio/VRadio.tsx +2 -2
  52. package/src/components/VSelect/VSelect.scss +77 -75
  53. package/src/components/VSelect/VSelect.tsx +5 -2
  54. package/src/components/VSkeltonLoader/VSkeltonLoaderBone.scss +24 -22
  55. package/src/components/VSwitch/VSwitch.scss +96 -94
  56. package/src/components/VSwitch/VSwitch.tsx +2 -2
  57. package/src/components/VTabs/VTab.scss +59 -57
  58. package/src/components/VTabs/VTabs.scss +41 -39
  59. package/src/components/VTabs/VTabs.tsx +5 -2
  60. package/src/components/VTextCounter/VTextCounter.scss +4 -2
  61. package/src/components/VTextField/VTextField.scss +37 -35
  62. package/src/components/VTextField/VTextField.tsx +2 -2
  63. package/src/components/VTextarea/VTextarea.scss +33 -31
  64. package/src/components/VTextarea/VTextarea.tsx +2 -2
  65. package/src/components/VToolbar/VToolbar.scss +19 -17
  66. package/src/components/VToolbar/VToolbarEdge.scss +21 -19
  67. package/src/components/VToolbar/VToolbarMenu.scss +6 -4
  68. package/src/components/VToolbar/VToolbarMenu.tsx +5 -0
  69. package/src/components/VToolbar/VToolbarTitle.scss +19 -17
  70. package/src/components/VWysiwygEditor/VWysiwygEditor.scss +52 -50
  71. package/src/components/VWysiwygEditor/VWysiwygEditor.tsx +2 -2
  72. package/src/components/VWysiwygEditor/extensions/linter/Linter.scss +108 -109
  73. package/src/components/VWysiwygEditor/schemes.ts +1 -1
  74. package/src/components/VWysiwygEditor/tools/color.scss +106 -112
  75. package/src/components/kits.ts +1 -1
  76. package/src/composables/control.ts +1 -1
  77. package/src/composables/form-selector.scss +20 -18
  78. package/src/composables/form-selector.tsx +5 -3
  79. package/src/index.ts +13 -2
  80. package/src/plugin.tsx +4 -4
  81. package/src/schemes/control.ts +2 -2
  82. package/src/service.tsx +5 -5
  83. package/src/styles/core/functions.scss +2 -2
  84. package/src/styles/index.scss +23 -9
  85. package/dist/tool/index.d.ts +0 -2
  86. package/dist/tool/index.d.ts.map +0 -1
  87. package/dist/tool/index.mjs +0 -193
  88. package/dist/tool/vite-plugin.d.ts +0 -25
  89. package/dist/tool/vite-plugin.d.ts.map +0 -1
  90. package/src/.DS_Store +0 -0
  91. package/src/assets/builtins/color-scheme.ts +0 -9
  92. package/src/assets/builtins/media-match.ts +0 -3
  93. package/src/components/.DS_Store +0 -0
  94. package/src/components/VAvatar/.DS_Store +0 -0
  95. package/src/components/VChip/.DS_Store +0 -0
  96. package/src/components/VSkeltonLoader/.DS_Store +0 -0
  97. package/src/components/VTextField/.DS_Store +0 -0
  98. package/src/components/VWysiwygEditor/.DS_Store +0 -0
  99. package/src/components/VWysiwygEditor/extensions/.DS_Store +0 -0
  100. package/src/components/VWysiwygEditor/extensions/linter/.DS_Store +0 -0
  101. package/src/tool/index.ts +0 -2
  102. package/src/tool/vite-plugin.ts +0 -266
  103. /package/{src/styles → dist}/after-effects/display-flow.scss +0 -0
  104. /package/{src/styles → dist}/after-effects/spacing.scss +0 -0
  105. /package/{src/styles → dist}/after-effects/text.scss +0 -0
  106. /package/{src/styles → dist}/after-effects.scss +0 -0
  107. /package/dist/{assets/builtins → builtins}/color-scheme.ts +0 -0
  108. /package/dist/{assets/builtins → builtins}/media-match.ts +0 -0
@@ -1,125 +1,127 @@
1
1
  @use 'sass:math';
2
2
 
3
- .v-switch {
4
- --my-pin-color: var(--palette-background);
5
- // --my-faux-bg-color: transparent;
3
+ @layer vui {
4
+ .v-switch {
5
+ --my-pin-color: var(--palette-background);
6
+ // --my-faux-bg-color: transparent;
6
7
 
7
- &--selected {
8
- --my-pin-color: var(--color);
9
- }
10
-
11
- &__faux {
12
- position: relative;
13
- display: flex;
14
- align-items: center;
15
- justify-content: center;
16
- width: 100%;
17
- width: var(--control-switch-width);
18
- height: 100%;
19
- cursor: pointer;
20
-
21
- &::before {
22
- display: block;
23
- width: var(--control-switch-track-width);
24
- height: var(--control-switch-track-height);
25
- content: '';
26
- background: var(--color);
27
- border-radius: calc(var(--control-switch-track-height) / 2);
28
- opacity: 0.5;
8
+ &--selected {
9
+ --my-pin-color: var(--color);
29
10
  }
30
11
 
31
- &__pin {
32
- position: absolute;
33
- top: 0;
34
- bottom: 0;
35
- left: 0;
12
+ &__faux {
13
+ position: relative;
36
14
  display: flex;
37
15
  align-items: center;
38
16
  justify-content: center;
39
- width: var(--outer-size);
40
- height: var(--outer-size);
41
- // background: #f00;
42
- border-radius: 50%;
43
- transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
44
- transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
17
+ width: 100%;
18
+ width: var(--control-switch-width);
19
+ height: 100%;
20
+ cursor: pointer;
45
21
 
46
- &::before,
47
- &::after {
22
+ &::before {
48
23
  display: block;
24
+ width: var(--control-switch-track-width);
25
+ height: var(--control-switch-track-height);
49
26
  content: '';
27
+ background: var(--color);
28
+ border-radius: calc(var(--control-switch-track-height) / 2);
29
+ opacity: 0.5;
50
30
  }
51
31
 
52
- &::before {
32
+ &__pin {
53
33
  position: absolute;
54
- width: 100%;
55
- height: 100%;
56
- background: currentColor;
34
+ top: 0;
35
+ bottom: 0;
36
+ left: 0;
37
+ display: flex;
38
+ align-items: center;
39
+ justify-content: center;
40
+ width: var(--outer-size);
41
+ height: var(--outer-size);
42
+ // background: #f00;
57
43
  border-radius: 50%;
58
- opacity: 0;
59
- transition: opacity 0.2s;
60
- }
44
+ transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
45
+ transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
61
46
 
62
- &::after {
63
- position: relative;
64
- width: var(--icon-size);
65
- height: var(--icon-size);
66
- background: var(--my-pin-color);
67
- border-radius: 50%;
68
- box-shadow: rgb(0 0 0 / 0.2) 0 2px 1px -1px,
69
- rgb(0 0 0 / 0.14) 0 1px 1px 0, rgb(0 0 0 / 0.12) 0 1px 3px 0;
70
- transform: scale(var(--control-checkable-faux-scale));
47
+ &::before,
48
+ &::after {
49
+ display: block;
50
+ content: '';
51
+ }
52
+
53
+ &::before {
54
+ position: absolute;
55
+ width: 100%;
56
+ height: 100%;
57
+ background: currentColor;
58
+ border-radius: 50%;
59
+ opacity: 0;
60
+ transition: opacity 0.2s;
61
+ }
62
+
63
+ &::after {
64
+ position: relative;
65
+ width: var(--icon-size);
66
+ height: var(--icon-size);
67
+ background: var(--my-pin-color);
68
+ border-radius: 50%;
69
+ box-shadow: rgb(0 0 0 / 0.2) 0 2px 1px -1px,
70
+ rgb(0 0 0 / 0.14) 0 1px 1px 0, rgb(0 0 0 / 0.12) 0 1px 3px 0;
71
+ transform: scale(var(--control-checkable-faux-scale));
72
+ }
71
73
  }
72
74
  }
73
- }
74
75
 
75
- &--selected &__faux {
76
- &__pin {
77
- left: calc(100% - var(--outer-size));
76
+ &--selected &__faux {
77
+ &__pin {
78
+ left: calc(100% - var(--outer-size));
79
+ }
78
80
  }
79
- }
80
81
 
81
- &--disabled &__faux {
82
- &::before {
83
- background-color: #000;
84
- opacity: 0.12;
85
- }
82
+ &--disabled &__faux {
83
+ &::before {
84
+ background-color: #000;
85
+ opacity: 0.12;
86
+ }
86
87
 
87
- &__pin {
88
- &::after {
89
- background-color: rgba(245, 245, 245, 1);
88
+ &__pin {
89
+ &::after {
90
+ background-color: rgba(245, 245, 245, 1);
91
+ }
90
92
  }
91
93
  }
92
- }
93
94
 
94
- &__faux:hover &__faux__pin::before {
95
- opacity: 0.1;
96
- }
95
+ &__faux:hover &__faux__pin::before {
96
+ opacity: 0.1;
97
+ }
97
98
 
98
- &:focus-within &__faux {
99
- &__pin {
100
- &::before {
101
- opacity: 0.1;
99
+ &:focus-within &__faux {
100
+ &__pin {
101
+ &::before {
102
+ opacity: 0.1;
103
+ }
102
104
  }
103
105
  }
104
- }
105
106
 
106
- // &--indeterminate &__faux {
107
- // $x1: math.div(12, 54) * 100%;
108
- // $x2: 100% - $x1;
109
- // $y1: math.div(24, 54) * 100%;
110
- // $y2: 100% - $y1;
107
+ // &--indeterminate &__faux {
108
+ // $x1: math.div(12, 54) * 100%;
109
+ // $x2: 100% - $x1;
110
+ // $y1: math.div(24, 54) * 100%;
111
+ // $y2: 100% - $y1;
111
112
 
112
- // clip-path: polygon(
113
- // 0 0,
114
- // 0 100%,
115
- // 100% 100%,
116
- // 100% 0,
117
- // #{$x2} #{$y1},
118
- // #{$x2} #{$y2},
119
- // #{$x1} #{$y2},
120
- // #{$x1} #{$y1},
121
- // #{$x2} #{$y1},
122
- // 100% 0
123
- // );
124
- // }
113
+ // clip-path: polygon(
114
+ // 0 0,
115
+ // 0 100%,
116
+ // 100% 100%,
117
+ // 100% 0,
118
+ // #{$x2} #{$y1},
119
+ // #{$x2} #{$y2},
120
+ // #{$x1} #{$y2},
121
+ // #{$x1} #{$y1},
122
+ // #{$x2} #{$y1},
123
+ // 100% 0
124
+ // );
125
+ // }
126
+ }
125
127
  }
@@ -3,8 +3,8 @@ import { defineComponent } from 'vue';
3
3
  import {
4
4
  createFormSelectorItemSettings,
5
5
  useFormSelectorItemControl,
6
- renderSlotOrEmpty,
7
- } from '@fastkit/vue-kit';
6
+ } from '@fastkit/vue-form-control';
7
+ import { renderSlotOrEmpty } from '@fastkit/vue-utils';
8
8
  import { createControlProps, useControl } from '../../composables';
9
9
  import { VUI_SWITCH_GROUP_SYMBOL, VUI_SWITCH_SYMBOL } from '../../injections';
10
10
  import { VCheckable } from '../VCheckable';
@@ -1,73 +1,75 @@
1
1
  @use '../../styles/core.scss';
2
2
 
3
- .v-tab {
4
- @include core.button-reset;
3
+ @layer vui {
4
+ .v-tab {
5
+ @include core.button-reset;
5
6
 
6
- --tab-content-color: var(--palette-caption);
7
- --tab-content-focus-color: var(--main-color);
8
- --tab-content-opacity: 0.7;
7
+ --tab-content-color: var(--palette-caption);
8
+ --tab-content-focus-color: var(--main-color);
9
+ --tab-content-opacity: 0.7;
9
10
 
10
- position: relative;
11
- z-index: 3;
12
- display: flex;
13
- // flex: 1 1 auto;
14
- align-items: center;
15
- justify-content: center;
16
- height: var(--tabs-height);
17
- padding: 0 1.25em;
18
- font: inherit;
19
- font-size: var(--tabs-font-size);
20
- // color: inherit;
21
- white-space: nowrap;
22
- user-select: none;
23
- transition: color 0.6s;
24
-
25
- &::before {
26
- position: absolute;
27
- right: 0;
28
- bottom: 0;
29
- // top: 0;
30
- left: 0;
31
- z-index: 1;
32
- height: 2px;
33
- content: '';
34
- background-color: var(--tab-content-focus-color);
35
- border-radius: inherit;
36
- transition: all 0.25s;
37
- transform: scaleX(0);
38
- }
39
-
40
- &__content {
41
11
  position: relative;
42
- z-index: 2;
12
+ z-index: 3;
43
13
  display: flex;
14
+ // flex: 1 1 auto;
44
15
  align-items: center;
45
- line-height: 1.2;
46
- color: var(--tab-content-color);
47
- text-align: center;
48
- opacity: var(--tab-content-opacity);
49
- transition: all 0.25s ease;
50
- }
16
+ justify-content: center;
17
+ height: var(--tabs-height);
18
+ padding: 0 1.25em;
19
+ font: inherit;
20
+ font-size: var(--tabs-font-size);
21
+ // color: inherit;
22
+ white-space: nowrap;
23
+ user-select: none;
24
+ transition: color 0.6s;
51
25
 
52
- &__icon {
53
- margin-right: 8px;
54
- font-size: 120%;
55
- }
26
+ &::before {
27
+ position: absolute;
28
+ right: 0;
29
+ bottom: 0;
30
+ // top: 0;
31
+ left: 0;
32
+ z-index: 1;
33
+ height: 2px;
34
+ content: '';
35
+ background-color: var(--tab-content-focus-color);
36
+ border-radius: inherit;
37
+ transition: all 0.25s;
38
+ transform: scaleX(0);
39
+ }
56
40
 
57
- &:hover {
58
- --tab-content-color: var(--tab-content-focus-color);
59
- }
41
+ &__content {
42
+ position: relative;
43
+ z-index: 2;
44
+ display: flex;
45
+ align-items: center;
46
+ line-height: 1.2;
47
+ color: var(--tab-content-color);
48
+ text-align: center;
49
+ opacity: var(--tab-content-opacity);
50
+ transition: all 0.25s ease;
51
+ }
60
52
 
61
- &--active {
62
- --tab-content-color: rgba(0, 0, 0, 0.87);
53
+ &__icon {
54
+ margin-right: 8px;
55
+ font-size: 120%;
56
+ }
63
57
 
64
- pointer-events: none;
65
- background: var(--tabs-color);
58
+ &:hover {
59
+ --tab-content-color: var(--tab-content-focus-color);
60
+ }
66
61
 
67
- --tab-content-opacity: 1;
62
+ &--active {
63
+ --tab-content-color: rgba(0, 0, 0, 0.87);
68
64
 
69
- &::before {
70
- transform: scaleX(1);
65
+ pointer-events: none;
66
+ background: var(--tabs-color);
67
+
68
+ --tab-content-opacity: 1;
69
+
70
+ &::before {
71
+ transform: scaleX(1);
72
+ }
71
73
  }
72
74
  }
73
75
  }
@@ -1,49 +1,51 @@
1
1
  $my-offset: 30px;
2
2
 
3
- .v-tabs {
4
- position: relative;
5
- width: 100%;
6
- height: var(--tabs-height);
7
- overflow: hidden;
3
+ @layer vui {
4
+ .v-tabs {
5
+ position: relative;
6
+ width: 100%;
7
+ height: var(--tabs-height);
8
+ overflow: hidden;
8
9
 
9
- &::before {
10
- position: absolute;
11
- right: 0;
12
- bottom: 0;
13
- left: 0;
14
- display: block;
15
- height: 2px;
16
- content: '';
17
- background: currentColor;
18
- opacity: 0.25;
19
- }
10
+ &::before {
11
+ position: absolute;
12
+ right: 0;
13
+ bottom: 0;
14
+ left: 0;
15
+ display: block;
16
+ height: 2px;
17
+ content: '';
18
+ background: currentColor;
19
+ opacity: 0.25;
20
+ }
20
21
 
21
- &__scroller {
22
- width: 100%;
23
- height: calc(var(--tabs-height) + #{$my-offset});
22
+ &__scroller {
23
+ width: 100%;
24
+ height: calc(var(--tabs-height) + #{$my-offset});
24
25
 
25
- &__container {
26
- padding-bottom: $my-offset;
26
+ &__container {
27
+ padding-bottom: $my-offset;
28
+ }
27
29
  }
28
- }
29
30
 
30
- &__content {
31
- position: relative;
32
- display: inline-flex;
33
- align-items: stretch;
34
- min-width: 100%;
35
- vertical-align: bottom;
31
+ &__content {
32
+ position: relative;
33
+ display: inline-flex;
34
+ align-items: stretch;
35
+ min-width: 100%;
36
+ vertical-align: bottom;
36
37
 
37
- // &::after {
38
- // position: absolute;
39
- // right: 0;
40
- // bottom: 0;
41
- // left: 0;
42
- // z-index: 1;
43
- // display: block;
44
- // height: var(--tabs-bar-height);
45
- // pointer-events: none;
46
- // content: '';
47
- // }
38
+ // &::after {
39
+ // position: absolute;
40
+ // right: 0;
41
+ // bottom: 0;
42
+ // left: 0;
43
+ // z-index: 1;
44
+ // display: block;
45
+ // height: var(--tabs-bar-height);
46
+ // pointer-events: none;
47
+ // content: '';
48
+ // }
49
+ }
48
50
  }
49
51
  }
@@ -16,8 +16,11 @@ import { useVui } from '../../injections';
16
16
  import { defineSlotsProps } from '@fastkit/vue-utils';
17
17
  import { RouteLocationRaw, RouteLocation } from 'vue-router';
18
18
  import { VTab, VTabRef } from './VTab';
19
- import { VScroller, useVScrollerRef } from '@fastkit/vue-kit';
20
- import { ScrollResult } from '@fastkit/scroller';
19
+ import {
20
+ VScroller,
21
+ useVScrollerRef,
22
+ ScrollResult,
23
+ } from '@fastkit/vue-scroller';
21
24
  import { useScopeColorClass, ScopeName } from '@fastkit/vue-color-scheme';
22
25
  import { isPromise } from '@fastkit/helpers';
23
26
 
@@ -1,3 +1,5 @@
1
- .v-text-counter {
2
- white-space: nowrap;
1
+ @layer vui {
2
+ .v-text-counter {
3
+ white-space: nowrap;
4
+ }
3
5
  }
@@ -1,45 +1,47 @@
1
1
  @use '../../styles/core.scss';
2
2
 
3
- .v-text-field {
4
- &__input {
5
- cursor: text;
3
+ @layer vui {
4
+ .v-text-field {
5
+ &__input {
6
+ cursor: text;
6
7
 
7
- &__element {
8
- width: 100%;
9
- min-width: 0;
10
- // width: calc(100% - 8px);
11
- padding: 0;
12
- margin: 0;
13
- overflow: hidden;
14
- // margin: 0 8px;
15
- font-size: inherit;
16
- line-height: inherit;
17
- text-overflow: ellipsis;
18
- letter-spacing: inherit;
19
- white-space: nowrap;
20
- background: transparent;
21
- border: 0;
22
- border-radius: 0;
23
- outline: 0;
8
+ &__element {
9
+ width: 100%;
10
+ min-width: 0;
11
+ // width: calc(100% - 8px);
12
+ padding: 0;
13
+ margin: 0;
14
+ overflow: hidden;
15
+ // margin: 0 8px;
16
+ font-size: inherit;
17
+ line-height: inherit;
18
+ text-overflow: ellipsis;
19
+ letter-spacing: inherit;
20
+ white-space: nowrap;
21
+ background: transparent;
22
+ border: 0;
23
+ border-radius: 0;
24
+ outline: 0;
24
25
 
25
- &:-webkit-autofill {
26
- @include core.auto-fill-cancel;
27
- // color: inherit !important;
28
- // box-shadow: 0 0 0 1000px get-color(field) inset;
29
- }
26
+ &:-webkit-autofill {
27
+ @include core.auto-fill-cancel;
28
+ // color: inherit !important;
29
+ // box-shadow: 0 0 0 1000px get-color(field) inset;
30
+ }
30
31
 
31
- &::-ms-clear {
32
- display: none;
33
- }
32
+ &::-ms-clear {
33
+ display: none;
34
+ }
34
35
 
35
- &::placeholder {
36
- font-style: italic;
37
- color: var(--control-disabled-color);
38
- }
36
+ &::placeholder {
37
+ font-style: italic;
38
+ color: var(--control-disabled-color);
39
+ }
39
40
 
40
- // @include placeholder {
41
- // color: get-color(text-muted);
42
- // }
41
+ // @include placeholder {
42
+ // color: get-color(text-muted);
43
+ // }
44
+ }
43
45
  }
44
46
  }
45
47
  }
@@ -5,9 +5,9 @@ import {
5
5
  useTextInputControl,
6
6
  createFormControlProps,
7
7
  FormControlSlots,
8
- defineSlotsProps,
9
8
  TextInputEmits,
10
- } from '@fastkit/vue-kit';
9
+ } from '@fastkit/vue-form-control';
10
+ import { defineSlotsProps } from '@fastkit/vue-utils';
11
11
  import { VFormControl } from '../VFormControl';
12
12
  import {
13
13
  VControlField,
@@ -1,41 +1,43 @@
1
1
  @use '../../styles/core.scss';
2
2
 
3
- .v-textarea {
4
- &__input {
5
- cursor: text;
3
+ @layer vui {
4
+ .v-textarea {
5
+ &__input {
6
+ cursor: text;
6
7
 
7
- &__element {
8
- width: 100%;
9
- min-width: 0;
10
- padding: 8px 0;
11
- margin: 0;
12
- font-size: inherit;
13
- line-height: inherit;
14
- letter-spacing: inherit;
15
- resize: none;
16
- background: transparent;
17
- border: 0;
18
- border-radius: 0;
19
- outline: 0;
8
+ &__element {
9
+ width: 100%;
10
+ min-width: 0;
11
+ padding: 8px 0;
12
+ margin: 0;
13
+ font-size: inherit;
14
+ line-height: inherit;
15
+ letter-spacing: inherit;
16
+ resize: none;
17
+ background: transparent;
18
+ border: 0;
19
+ border-radius: 0;
20
+ outline: 0;
20
21
 
21
- &:-webkit-autofill {
22
- @include core.auto-fill-cancel;
23
- // color: inherit !important;
24
- // box-shadow: 0 0 0 1000px get-color(field) inset;
25
- }
22
+ &:-webkit-autofill {
23
+ @include core.auto-fill-cancel;
24
+ // color: inherit !important;
25
+ // box-shadow: 0 0 0 1000px get-color(field) inset;
26
+ }
26
27
 
27
- &::-ms-clear {
28
- display: none;
29
- }
28
+ &::-ms-clear {
29
+ display: none;
30
+ }
30
31
 
31
- &::placeholder {
32
- font-style: italic;
33
- color: var(--control-disabled-color);
34
- }
32
+ &::placeholder {
33
+ font-style: italic;
34
+ color: var(--control-disabled-color);
35
+ }
35
36
 
36
- // @include placeholder {
37
- // color: get-color(text-muted);
38
- // }
37
+ // @include placeholder {
38
+ // color: get-color(text-muted);
39
+ // }
40
+ }
39
41
  }
40
42
  }
41
43
  }
@@ -5,8 +5,8 @@ import {
5
5
  useTextareaControl,
6
6
  createFormControlProps,
7
7
  FormControlSlots,
8
- defineSlotsProps,
9
- } from '@fastkit/vue-kit';
8
+ } from '@fastkit/vue-form-control';
9
+ import { defineSlotsProps } from '@fastkit/vue-utils';
10
10
  import { VFormControl } from '../VFormControl';
11
11
  import {
12
12
  VControlField,