@varlet/ui 1.27.1 → 1.27.4
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/es/bottom-navigation/BottomNavigation.js +1 -1
- package/es/bottom-navigation/bottomNavigation.css +1 -1
- package/es/bottom-navigation/bottomNavigation.less +5 -0
- package/es/bottom-navigation/props.js +4 -0
- package/es/rate/Rate.js +1 -1
- package/es/rate/rate.css +1 -1
- package/es/rate/rate.less +8 -6
- package/es/snackbar/style/index.js +1 -1
- package/es/snackbar/style/less.js +1 -1
- package/es/style.css +1 -1
- package/es/tabs/Tabs.js +1 -1
- package/es/tabs/props.js +4 -0
- package/es/tabs/tabs.css +1 -1
- package/es/tabs/tabs.less +6 -0
- package/es/uploader/Uploader.js +3 -3
- package/es/uploader/uploader.css +1 -1
- package/es/uploader/uploader.less +1 -2
- package/es/varlet.esm.js +15 -7
- package/highlight/attributes.json +9 -1
- package/highlight/tags.json +2 -0
- package/highlight/web-types.json +20 -2
- package/lib/bottom-navigation/BottomNavigation.js +1 -1
- package/lib/bottom-navigation/bottomNavigation.css +1 -1
- package/lib/bottom-navigation/bottomNavigation.less +5 -0
- package/lib/bottom-navigation/props.js +4 -0
- package/lib/rate/Rate.js +1 -1
- package/lib/rate/rate.css +1 -1
- package/lib/rate/rate.less +8 -6
- package/lib/style.css +1 -1
- package/lib/tabs/Tabs.js +1 -1
- package/lib/tabs/props.js +4 -0
- package/lib/tabs/tabs.css +1 -1
- package/lib/tabs/tabs.less +6 -0
- package/lib/uploader/Uploader.js +3 -3
- package/lib/uploader/uploader.css +1 -1
- package/lib/uploader/uploader.less +1 -2
- package/package.json +4 -4
- package/types/bottomNavigation.d.ts +2 -1
- package/types/tabs.d.ts +1 -0
- package/umd/varlet.js +3 -3
|
@@ -24,7 +24,7 @@ export function render(_ctx, _cache) {
|
|
|
24
24
|
var _component_var_button = _resolveComponent("var-button");
|
|
25
25
|
|
|
26
26
|
return _openBlock(), _createElementBlock("div", {
|
|
27
|
-
class: _normalizeClass(_ctx.classes(_ctx.n(), [_ctx.fixed, _ctx.n('--fixed')], [_ctx.border, _ctx.n('--border')])),
|
|
27
|
+
class: _normalizeClass(_ctx.classes(_ctx.n(), [_ctx.fixed, _ctx.n('--fixed')], [_ctx.border, _ctx.n('--border')], [_ctx.safeArea, _ctx.n('--safe-area')])),
|
|
28
28
|
ref: "bottomNavigationDom",
|
|
29
29
|
style: _normalizeStyle("z-index:" + _ctx.zIndex)
|
|
30
30
|
}, [_renderSlot(_ctx.$slots, "default"), _ctx.$slots.fab ? (_openBlock(), _createBlock(_component_var_button, _mergeProps({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root { --bottom-navigation-height: 50px; --bottom-navigation-z-index: 1; --bottom-navigation-background-color: #fff; --bottom-navigation-border-color: #e3e3e3; --bottom-navigation-fab-offset: 4px;}.var-bottom-navigation { width: 100%; height: var(--bottom-navigation-height); display: flex; position: relative; background-color: var(--bottom-navigation-background-color); transition: background-color 250ms, border-color 250ms; -webkit-tap-highlight-color: transparent;}.var-bottom-navigation--fixed { position: fixed; left: 0; bottom: 0;}.var-bottom-navigation--border { border-top: 1px solid var(--bottom-navigation-border-color);}.var-bottom-navigation__fab[var-bottom-navigation__fab] { width: var(--bottom-navigation-height); height: var(--bottom-navigation-height); position: absolute; z-index: 2; transform: translateY(-50%); overflow: hidden; transition: right 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;}.var-bottom-navigation--fab-center { right: calc(50% - var(--bottom-navigation-height) / 2);}.var-bottom-navigation--fab-right { right: var(--bottom-navigation-fab-offset);}
|
|
1
|
+
:root { --bottom-navigation-height: 50px; --bottom-navigation-z-index: 1; --bottom-navigation-background-color: #fff; --bottom-navigation-border-color: #e3e3e3; --bottom-navigation-fab-offset: 4px;}.var-bottom-navigation { width: 100%; height: var(--bottom-navigation-height); display: flex; position: relative; background-color: var(--bottom-navigation-background-color); transition: background-color 250ms, border-color 250ms; -webkit-tap-highlight-color: transparent;}.var-bottom-navigation--safe-area { padding-bottom: constant(safe-area-inset-bottom); padding-bottom: env(safe-area-inset-bottom);}.var-bottom-navigation--fixed { position: fixed; left: 0; bottom: 0;}.var-bottom-navigation--border { border-top: 1px solid var(--bottom-navigation-border-color);}.var-bottom-navigation__fab[var-bottom-navigation__fab] { width: var(--bottom-navigation-height); height: var(--bottom-navigation-height); position: absolute; z-index: 2; transform: translateY(-50%); overflow: hidden; transition: right 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;}.var-bottom-navigation--fab-center { right: calc(50% - var(--bottom-navigation-height) / 2);}.var-bottom-navigation--fab-right { right: var(--bottom-navigation-fab-offset);}
|
|
@@ -21,6 +21,11 @@
|
|
|
21
21
|
transition: background-color 250ms, border-color 250ms;
|
|
22
22
|
-webkit-tap-highlight-color: transparent;
|
|
23
23
|
|
|
24
|
+
&--safe-area {
|
|
25
|
+
padding-bottom: constant(safe-area-inset-bottom); // iOS < 11.2
|
|
26
|
+
padding-bottom: env(safe-area-inset-bottom); // iOS >= 11.2
|
|
27
|
+
}
|
|
28
|
+
|
|
24
29
|
&--fixed {
|
|
25
30
|
position: fixed;
|
|
26
31
|
left: 0;
|
package/es/rate/Rate.js
CHANGED
|
@@ -104,7 +104,7 @@ export default defineComponent({
|
|
|
104
104
|
} = transformValue(val);
|
|
105
105
|
return {
|
|
106
106
|
[n('content')]: true,
|
|
107
|
-
[n('--disabled')]: form == null ? void 0 : form.disabled.value,
|
|
107
|
+
[n('--disabled')]: (form == null ? void 0 : form.disabled.value) || props.disabled,
|
|
108
108
|
[n('--error')]: errorMessage.value,
|
|
109
109
|
[n('--primary')]: type !== 'empty' && !color
|
|
110
110
|
};
|
package/es/rate/rate.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root { --rate-disabled-color: var(--color-text-disabled); --rate-error-color: var(--color-danger); --rate-action-padding: 4px; --rate-primary-color: var(--color-primary);}.var-rate { display: flex; transform: translateX(calc(-1 * var(--rate-action-padding)));}.var-rate__content { padding: var(--rate-action-padding); box-sizing: unset; cursor: pointer; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.var-rate--
|
|
1
|
+
:root { --rate-disabled-color: var(--color-text-disabled); --rate-error-color: var(--color-danger); --rate-action-padding: 4px; --rate-primary-color: var(--color-primary);}.var-rate { display: flex; transform: translateX(calc(-1 * var(--rate-action-padding)));}.var-rate__content { padding: var(--rate-action-padding); box-sizing: unset; cursor: pointer; display: flex; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.var-rate--primary { color: var(--rate-primary-color);}.var-rate--disabled { color: var(--rate-disabled-color); cursor: not-allowed;}.var-rate--error { color: var(--rate-error-color);}
|
package/es/rate/rate.less
CHANGED
|
@@ -18,18 +18,20 @@
|
|
|
18
18
|
padding: var(--rate-action-padding);
|
|
19
19
|
box-sizing: unset;
|
|
20
20
|
cursor: pointer;
|
|
21
|
+
display: flex;
|
|
21
22
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
22
23
|
}
|
|
23
24
|
|
|
24
|
-
&--
|
|
25
|
-
color: var(--rate-
|
|
25
|
+
&--primary {
|
|
26
|
+
color: var(--rate-primary-color);
|
|
26
27
|
}
|
|
27
28
|
|
|
28
|
-
&--
|
|
29
|
-
color: var(--rate-
|
|
29
|
+
&--disabled {
|
|
30
|
+
color: var(--rate-disabled-color);
|
|
31
|
+
cursor: not-allowed;
|
|
30
32
|
}
|
|
31
33
|
|
|
32
|
-
&--
|
|
33
|
-
color: var(--rate-
|
|
34
|
+
&--error {
|
|
35
|
+
color: var(--rate-error-color);
|
|
34
36
|
}
|
|
35
37
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../../styles/common.css'
|
|
2
|
+
import '../SnackbarSfc.css'
|
|
2
3
|
import '../../styles/elevation.css'
|
|
3
4
|
import '../../loading/loading.css'
|
|
4
5
|
import '../../button/button.css'
|
|
5
6
|
import '../../icon/icon.css'
|
|
6
7
|
import '../snackbar.css'
|
|
7
8
|
import '../coreSfc.css'
|
|
8
|
-
import '../SnackbarSfc.css'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../../styles/common.less'
|
|
2
|
+
import '../SnackbarSfc.less'
|
|
2
3
|
import '../../styles/elevation.less'
|
|
3
4
|
import '../../loading/loading.less'
|
|
4
5
|
import '../../button/button.less'
|
|
5
6
|
import '../../icon/icon.less'
|
|
6
7
|
import '../snackbar.less'
|
|
7
8
|
import '../coreSfc.less'
|
|
8
|
-
import '../SnackbarSfc.less'
|