@fastkit/vui 1.1.0 → 1.1.1
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/dist/vui.css +3 -3
- package/dist/vui.d.ts +6 -4
- package/dist/vui.mjs +21 -43
- package/dist/vui.mjs.map +1 -1
- package/package.json +17 -17
- package/src/components/VAvatar/VAvatar.scss +4 -4
- package/src/components/VAvatar/VAvatar.tsx +0 -1
- package/src/components/VBreadcrumbs/VBreadcrumbs.scss +2 -2
- package/src/components/VBreadcrumbs/VBreadcrumbs.tsx +1 -1
- package/src/components/VBusyImage/VBusyImage.scss +1 -1
- package/src/components/VButton/VButton.scss +3 -3
- package/src/components/VButton/VButton.tsx +0 -1
- package/src/components/VCard/VCard.scss +2 -2
- package/src/components/VCheckable/VCheckable.scss +1 -1
- package/src/components/VCheckbox/VCheckbox.scss +3 -3
- package/src/components/VCheckbox/VCheckbox.tsx +0 -1
- package/src/components/VChip/VChip.scss +4 -4
- package/src/components/VChip/VChip.tsx +0 -1
- package/src/components/VControlField/VControlField.scss +1 -1
- package/src/components/VControlField/VControlField.tsx +1 -2
- package/src/components/VDataTable/VDataTable.scss +3 -3
- package/src/components/VDataTable/VDataTable.tsx +0 -2
- package/src/components/VDialog/VDialog.scss +1 -1
- package/src/components/VDisabledReason/VDisabledReason.scss +1 -1
- package/src/components/VForm/VForm.tsx +20 -8
- package/src/components/VFormControl/VFormControl.scss +1 -1
- package/src/components/VFormControl/VFormControl.tsx +2 -6
- package/src/components/VFormGroup/VFormGroup.tsx +0 -1
- package/src/components/VGrid/schemes.ts +0 -1
- package/src/components/VListTile/VListTile.scss +1 -1
- package/src/components/VListTile/VListTile.tsx +0 -2
- package/src/components/VNavigation/VNavigation.tsx +1 -2
- package/src/components/VNavigation/VNavigationItem.tsx +1 -4
- package/src/components/VNumberField/VNumberField.tsx +0 -1
- package/src/components/VOption/VOption.scss +1 -1
- package/src/components/VOption/VOption.tsx +0 -1
- package/src/components/VPagination/VPagination.scss +2 -2
- package/src/components/VPagination/VPagination.tsx +1 -2
- package/src/components/VRadio/VRadio.scss +1 -1
- package/src/components/VRadio/VRadio.tsx +0 -1
- package/src/components/VSelect/VSelect.scss +2 -2
- package/src/components/VSelect/VSelect.tsx +1 -3
- package/src/components/VSheetModal/VSheetModal.tsx +0 -1
- package/src/components/VSkeltonLoader/VSkeltonLoaderBone.scss +4 -4
- package/src/components/VSwitch/VSwitch.scss +1 -1
- package/src/components/VSwitch/VSwitch.tsx +0 -1
- package/src/components/VTabs/VTab.scss +3 -3
- package/src/components/VTabs/VTabs.tsx +1 -4
- package/src/components/VTextField/VTextField.scss +3 -3
- package/src/components/VTextField/VTextField.tsx +0 -1
- package/src/components/VTextarea/VTextarea.scss +2 -2
- package/src/components/VTextarea/VTextarea.tsx +0 -1
- package/src/components/VToolbar/VToolbarMenu.tsx +0 -1
- package/src/composables/form-selector.tsx +1 -2
- package/src/plugin.tsx +1 -2
- package/src/service.tsx +0 -1
- package/src/styles/base.scss +2 -2
- package/src/styles/core/functions.scss +4 -3
- package/src/styles/core.scss +2 -2
- package/src/styles/elevation.scss +1 -1
- package/src/styles/group.scss +3 -3
- package/src/styles/index.scss +7 -7
- package/src/styles/typo.scss +1 -1
- package/src/styles/variables.scss +22 -22
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
position: relative;
|
|
4
4
|
overflow: hidden;
|
|
5
5
|
cursor: progress;
|
|
6
|
-
background:
|
|
6
|
+
background: rgb(0, 0, 0, 0.12);
|
|
7
7
|
border-radius: inherit;
|
|
8
8
|
|
|
9
9
|
&::after {
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
content: '';
|
|
17
17
|
background: linear-gradient(
|
|
18
18
|
90deg,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
hsl(0deg, 0%, 100%, 0),
|
|
20
|
+
hsl(0deg, 0%, 100%, 0.3),
|
|
21
|
+
hsl(0deg, 0%, 100%, 0)
|
|
22
22
|
);
|
|
23
23
|
transform: translateX(-100%);
|
|
24
24
|
animation: v-skelton-loader-bone-loading 1.5s infinite;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '../../styles/core
|
|
1
|
+
@use '../../styles/core';
|
|
2
2
|
|
|
3
3
|
@layer vui {
|
|
4
4
|
.v-tab {
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
content: '';
|
|
41
41
|
background-color: var(--tab-content-focus-color);
|
|
42
42
|
border-radius: inherit;
|
|
43
|
-
transition: all 0.25s;
|
|
44
43
|
transform: scaleX(0);
|
|
44
|
+
transition: all 0.25s;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
&__content {
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
&--active {
|
|
69
|
-
--tab-content-color:
|
|
69
|
+
--tab-content-color: rgb(0, 0, 0, 0.87);
|
|
70
70
|
|
|
71
71
|
pointer-events: none;
|
|
72
72
|
background: var(--tabs-color);
|
|
@@ -124,7 +124,6 @@ export const VTabs = defineComponent({
|
|
|
124
124
|
| undefined;
|
|
125
125
|
|
|
126
126
|
if (router) {
|
|
127
|
-
// eslint-disable-next-line no-shadow
|
|
128
127
|
const to = router(value);
|
|
129
128
|
const route = vui.router.resolve(to);
|
|
130
129
|
location = { to, route };
|
|
@@ -138,7 +137,6 @@ export const VTabs = defineComponent({
|
|
|
138
137
|
});
|
|
139
138
|
});
|
|
140
139
|
|
|
141
|
-
// eslint-disable-next-line no-shadow
|
|
142
140
|
const setTabRef = (ref: VTabRef) => {
|
|
143
141
|
tabRefs.value.push(ref);
|
|
144
142
|
};
|
|
@@ -162,7 +160,7 @@ export const VTabs = defineComponent({
|
|
|
162
160
|
if (!hit) return;
|
|
163
161
|
const { location } = hit;
|
|
164
162
|
if (!location) return;
|
|
165
|
-
|
|
163
|
+
|
|
166
164
|
const { to, route } = location;
|
|
167
165
|
if (route.fullPath === vui.location.currentRoute.fullPath) return;
|
|
168
166
|
vui.router[to.replace ? 'replace' : 'push'](to);
|
|
@@ -295,7 +293,6 @@ export const VTabs = defineComponent({
|
|
|
295
293
|
label = itemSlot;
|
|
296
294
|
}
|
|
297
295
|
|
|
298
|
-
// eslint-disable-next-line no-shadow
|
|
299
296
|
const children =
|
|
300
297
|
typeof label === 'function' ? label({ value, active, vui }) : label;
|
|
301
298
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '../../styles/core
|
|
1
|
+
@use '../../styles/core';
|
|
2
2
|
|
|
3
3
|
@layer vui {
|
|
4
4
|
.v-text-field {
|
|
@@ -13,17 +13,17 @@
|
|
|
13
13
|
padding: 0;
|
|
14
14
|
margin: 0;
|
|
15
15
|
overflow: hidden;
|
|
16
|
+
text-overflow: ellipsis;
|
|
16
17
|
|
|
17
18
|
// margin: 0 8px;
|
|
18
19
|
font-size: inherit;
|
|
19
20
|
line-height: inherit;
|
|
20
|
-
text-overflow: ellipsis;
|
|
21
21
|
letter-spacing: inherit;
|
|
22
22
|
white-space: nowrap;
|
|
23
|
+
outline: 0;
|
|
23
24
|
background: transparent;
|
|
24
25
|
border: 0;
|
|
25
26
|
border-radius: 0;
|
|
26
|
-
outline: 0;
|
|
27
27
|
|
|
28
28
|
&:-webkit-autofill {
|
|
29
29
|
@include core.auto-fill-cancel;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '../../styles/core
|
|
1
|
+
@use '../../styles/core';
|
|
2
2
|
|
|
3
3
|
@layer vui {
|
|
4
4
|
.v-textarea {
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
line-height: inherit;
|
|
15
15
|
letter-spacing: inherit;
|
|
16
16
|
resize: none;
|
|
17
|
+
outline: 0;
|
|
17
18
|
background: transparent;
|
|
18
19
|
border: 0;
|
|
19
20
|
border-radius: 0;
|
|
20
|
-
outline: 0;
|
|
21
21
|
|
|
22
22
|
&:-webkit-autofill {
|
|
23
23
|
@include core.auto-fill-cancel;
|
|
@@ -6,7 +6,6 @@ import { useVui } from '../../injections';
|
|
|
6
6
|
// @TODO Unable to resolve dts for `navigationableInheritProps`.
|
|
7
7
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
8
8
|
// @ts-ignore
|
|
9
|
-
// eslint-disable-next-line import/order
|
|
10
9
|
import { RouteLocationRaw } from 'vue-router';
|
|
11
10
|
|
|
12
11
|
export type VToolbarMenuEdge = 'start' | 'end';
|
|
@@ -70,9 +70,8 @@ export function defineFormSelectorComponent(
|
|
|
70
70
|
failedToLoadItemsMessage: {} as PropType<VNodeChildOrSlot>,
|
|
71
71
|
...slots(),
|
|
72
72
|
},
|
|
73
|
-
slots,
|
|
74
73
|
emits,
|
|
75
|
-
|
|
74
|
+
slots,
|
|
76
75
|
setup(props, ctx) {
|
|
77
76
|
const selectorControl = useFormSelectorControl(props, ctx, {
|
|
78
77
|
nodeType,
|
package/src/plugin.tsx
CHANGED
|
@@ -26,7 +26,6 @@ import {
|
|
|
26
26
|
setDefaultActionableClassName('clickable');
|
|
27
27
|
const scroller = getDocumentScroller();
|
|
28
28
|
|
|
29
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
30
29
|
export interface VuiPluginStackOptions extends VueStackServiceOptions {}
|
|
31
30
|
|
|
32
31
|
export interface VuiPluginOptions extends VuiServiceOptions {
|
|
@@ -80,7 +79,7 @@ export class VuiPlugin {
|
|
|
80
79
|
options: {
|
|
81
80
|
behavior: 'smooth',
|
|
82
81
|
},
|
|
83
|
-
|
|
82
|
+
|
|
84
83
|
fn: (el, opts) => {
|
|
85
84
|
if (window.getComputedStyle(el).scrollMargin) return;
|
|
86
85
|
const duration = opts?.behavior === 'smooth' ? undefined : 0;
|
package/src/service.tsx
CHANGED
|
@@ -438,7 +438,6 @@ export class VuiService {
|
|
|
438
438
|
const _onClick = BUILTIN_ACTION_HANDLERS[key];
|
|
439
439
|
const action: VStackAction = {
|
|
440
440
|
key,
|
|
441
|
-
// eslint-disable-next-line no-shadow
|
|
442
441
|
content: ({ control, key }) => {
|
|
443
442
|
const onClick = (ev: MouseEvent) => _onClick(control, ev);
|
|
444
443
|
|
package/src/styles/base.scss
CHANGED
|
@@ -5,9 +5,10 @@
|
|
|
5
5
|
width: 1px;
|
|
6
6
|
height: 1px;
|
|
7
7
|
overflow: hidden;
|
|
8
|
+
white-space: nowrap;
|
|
9
|
+
/* stylelint-disable-next-line property-no-deprecated */
|
|
8
10
|
clip: rect(0 0 0 0);
|
|
9
11
|
clip-path: inset(100%);
|
|
10
|
-
white-space: nowrap;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
@mixin auto-fill-cancel {
|
|
@@ -40,7 +41,7 @@
|
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
@mixin remove-tap-highlight() {
|
|
43
|
-
-webkit-tap-highlight-color:
|
|
44
|
+
-webkit-tap-highlight-color: rgb(0, 0, 0, 0);
|
|
44
45
|
|
|
45
46
|
&::-moz-focus-inner {
|
|
46
47
|
border: 0;
|
|
@@ -56,10 +57,10 @@
|
|
|
56
57
|
touch-action: manipulation;
|
|
57
58
|
cursor: pointer;
|
|
58
59
|
user-select: none;
|
|
60
|
+
outline: 0;
|
|
59
61
|
|
|
60
62
|
// background-color: transparent;
|
|
61
63
|
border-width: 0;
|
|
62
|
-
outline: 0;
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
&,
|
package/src/styles/core.scss
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@forward './core/functions
|
|
2
|
-
@forward './core/typo
|
|
1
|
+
@forward './core/functions';
|
|
2
|
+
@forward './core/typo';
|
package/src/styles/group.scss
CHANGED
|
@@ -9,8 +9,8 @@ code {
|
|
|
9
9
|
padding: 0.2em 0.4em;
|
|
10
10
|
font-size: 85%;
|
|
11
11
|
font-weight: 400;
|
|
12
|
-
color:
|
|
13
|
-
background-color:
|
|
12
|
+
color: rgb(0, 0, 0, 0.87); // @TODO
|
|
13
|
+
background-color: rgb(0, 0, 0, 0.05); // @TODO
|
|
14
14
|
border-radius: 3px; // @TODO
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -39,8 +39,8 @@ td {
|
|
|
39
39
|
height: var(--table-cell-height);
|
|
40
40
|
padding: var(--table-cell-vertial-padding)
|
|
41
41
|
var(--table-cell-horizontal-padding);
|
|
42
|
-
text-align: left;
|
|
43
42
|
vertical-align: middle;
|
|
43
|
+
text-align: left;
|
|
44
44
|
border: 0;
|
|
45
45
|
}
|
|
46
46
|
|
package/src/styles/index.scss
CHANGED
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
@layer vui {
|
|
13
13
|
// @include meta.load-css('@fastkit/stylebase/normalize.css');
|
|
14
14
|
|
|
15
|
-
@include meta.load-css('./variables
|
|
16
|
-
@include meta.load-css('./base
|
|
17
|
-
@include meta.load-css('./typo
|
|
18
|
-
@include meta.load-css('./elevation
|
|
19
|
-
@include meta.load-css('./group
|
|
20
|
-
@include meta.load-css('./control
|
|
21
|
-
@include meta.load-css('./wysiwyg
|
|
15
|
+
@include meta.load-css('./variables');
|
|
16
|
+
@include meta.load-css('./base');
|
|
17
|
+
@include meta.load-css('./typo');
|
|
18
|
+
@include meta.load-css('./elevation');
|
|
19
|
+
@include meta.load-css('./group');
|
|
20
|
+
@include meta.load-css('./control');
|
|
21
|
+
@include meta.load-css('./wysiwyg');
|
|
22
22
|
}
|
package/src/styles/typo.scss
CHANGED
|
@@ -161,30 +161,30 @@
|
|
|
161
161
|
--control-field-rem-lg: 1.125rem; // 18
|
|
162
162
|
|
|
163
163
|
// control defaults
|
|
164
|
-
--control-disabled-color:
|
|
164
|
+
--control-disabled-color: rgb(0, 0, 0, 0.38);
|
|
165
165
|
--control-horizontal-margin: 0.5em; // 16
|
|
166
166
|
--control-field-radius: 2px;
|
|
167
|
-
--control-field-fill-color:
|
|
168
|
-
--control-field-fill-hover-color:
|
|
169
|
-
--control-field-outline-color:
|
|
170
|
-
--control-field-outline-hover-color:
|
|
171
|
-
--control-field-bottom-color:
|
|
172
|
-
--control-field-bottom-hover-color:
|
|
167
|
+
--control-field-fill-color: rgb(0, 0, 0, 0.06);
|
|
168
|
+
--control-field-fill-hover-color: rgb(0, 0, 0, 0.09);
|
|
169
|
+
--control-field-outline-color: rgb(114, 106, 106, 0.23);
|
|
170
|
+
--control-field-outline-hover-color: rgb(0, 0, 0, 0.87);
|
|
171
|
+
--control-field-bottom-color: rgb(0, 0, 0, 0.42);
|
|
172
|
+
--control-field-bottom-hover-color: rgb(0, 0, 0, 0.87);
|
|
173
173
|
--control-field-height: 2.25em;
|
|
174
174
|
--control-field-line-height: 1.4375em;
|
|
175
175
|
--control-field-letter-spacing: 0.00938em;
|
|
176
|
-
--control-label-color:
|
|
176
|
+
--control-label-color: rgb(0, 0, 0, 0.6);
|
|
177
177
|
--control-label-font-weight: 500;
|
|
178
178
|
--control-label-font-size: 0.75em; // 12
|
|
179
179
|
--control-label-height: 1.4375em;
|
|
180
|
-
--control-message-color:
|
|
180
|
+
--control-message-color: rgb(0, 0, 0, 0.6);
|
|
181
181
|
--control-message-font-size: 0.75em; // 12
|
|
182
182
|
--control-message-horizontal-margin: calc(var(--root-spacing) * 0.5);
|
|
183
183
|
--control-checkable-outer-size: 2em; // 42
|
|
184
184
|
--control-checkable-icon-size: 1em; // 20
|
|
185
185
|
--control-checkable-faux-scale: 1.2;
|
|
186
186
|
--control-checkable-faux-margin: 0.2em;
|
|
187
|
-
--control-checkable-base-color:
|
|
187
|
+
--control-checkable-base-color: rgb(0, 0, 0, 0.6);
|
|
188
188
|
--control-switch-width: 3.625em; // 58
|
|
189
189
|
--control-switch-track-width: 2.125em; // 34
|
|
190
190
|
--control-switch-track-height: 0.875em; // 14
|
|
@@ -200,9 +200,9 @@
|
|
|
200
200
|
--wysiwyg-max-height-lg: 16em;
|
|
201
201
|
|
|
202
202
|
// shadows
|
|
203
|
-
--shadow-key-umbra-opacity:
|
|
204
|
-
--shadow-key-penumbra-opacity:
|
|
205
|
-
--shadow-key-ambient-opacity:
|
|
203
|
+
--shadow-key-umbra-opacity: rgb(0, 0, 0, 0.2);
|
|
204
|
+
--shadow-key-penumbra-opacity: rgb(0, 0, 0, 0.14);
|
|
205
|
+
--shadow-key-ambient-opacity: rgb(0, 0, 0, 0.12);
|
|
206
206
|
|
|
207
207
|
// shadows(umbra)
|
|
208
208
|
--shadow-key-umbra-0: 0px 0px 0px 0px var(--shadow-key-umbra-opacity);
|
|
@@ -335,34 +335,34 @@
|
|
|
335
335
|
// snackbar
|
|
336
336
|
// =============================================
|
|
337
337
|
--snackbar-shadow:
|
|
338
|
-
0 3px 5px -1px
|
|
339
|
-
0 1px 18px 0
|
|
338
|
+
0 3px 5px -1px rgb(0, 0, 0, 0.2), 0 6px 10px 0 rgb(0, 0, 0, 0.14),
|
|
339
|
+
0 1px 18px 0 rgb(0, 0, 0, 0.12);
|
|
340
340
|
|
|
341
341
|
// =============================================
|
|
342
342
|
// dialogs
|
|
343
343
|
// =============================================
|
|
344
344
|
--dialog-shadow:
|
|
345
|
-
0 11px 15px -7px
|
|
346
|
-
0 9px 46px 8px
|
|
345
|
+
0 11px 15px -7px rgb(0, 0, 0, 0.2), 0 24px 38px 3px rgb(0, 0, 0, 0.14),
|
|
346
|
+
0 9px 46px 8px rgb(0, 0, 0, 0.12);
|
|
347
347
|
|
|
348
348
|
// =============================================
|
|
349
349
|
// menus
|
|
350
350
|
// =============================================
|
|
351
351
|
--menu-shadow:
|
|
352
|
-
0 5px 5px -3px
|
|
353
|
-
0 3px 14px 2px
|
|
352
|
+
0 5px 5px -3px rgb(0, 0, 0, 0.2), 0 8px 10px 1px rgb(0, 0, 0, 0.14),
|
|
353
|
+
0 3px 14px 2px rgb(0, 0, 0, 0.12);
|
|
354
354
|
|
|
355
355
|
// =============================================
|
|
356
356
|
// tooltips
|
|
357
357
|
// =============================================
|
|
358
|
-
--tooltip-background:
|
|
358
|
+
--tooltip-background: rgb(35, 47, 52, 0.9);
|
|
359
359
|
--tooltip-color: #fff;
|
|
360
360
|
--tooltip-radius: 4px;
|
|
361
361
|
--tooltip-padding: 5px 16px;
|
|
362
362
|
--tooltip-font-size: calc(var(--root-em) * 0.875);
|
|
363
363
|
--tooltip-shadow:
|
|
364
|
-
0 3px 1px -2px
|
|
365
|
-
0 1px 5px 0
|
|
364
|
+
0 3px 1px -2px rgb(0, 0, 0, 0.2), 0 2px 2px 0 rgb(0, 0, 0, 0.14),
|
|
365
|
+
0 1px 5px 0 rgb(0, 0, 0, 0.12);
|
|
366
366
|
}
|
|
367
367
|
|
|
368
368
|
:root,
|