@varlet/ui 3.3.1 → 3.3.2
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/app-bar/AppBar.mjs +1 -0
- package/es/app-bar/appBar.css +1 -1
- package/es/app-bar/props.mjs +1 -0
- package/es/checkbox-group/CheckboxGroup.mjs +21 -12
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/radio-group/RadioGroup.mjs +20 -11
- package/es/style.css +1 -1
- package/es/themes/dark/appBar.mjs +2 -1
- package/es/themes/md3-dark/appBar.mjs +2 -1
- package/es/themes/md3-light/appBar.mjs +2 -1
- package/es/utils/components.mjs +18 -2
- package/es/varlet.esm.js +2786 -2825
- package/highlight/web-types.en-US.json +10 -1
- package/highlight/web-types.zh-CN.json +10 -1
- package/lib/style.css +1 -1
- package/lib/varlet.cjs.js +831 -868
- package/package.json +7 -7
- package/types/appBar.d.ts +1 -0
- package/types/styleVars.d.ts +1 -0
- package/umd/varlet.js +8 -8
- package/es/checkbox-group/CheckboxGroupOption.mjs +0 -45
- package/es/radio-group/RadioGroupOption.mjs +0 -45
|
@@ -7,7 +7,8 @@ var stdin_default = {
|
|
|
7
7
|
"--app-bar-left-gap": "6px",
|
|
8
8
|
"--app-bar-right-gap": "6px",
|
|
9
9
|
"--app-bar-border-radius": "4px",
|
|
10
|
-
"--app-bar-font-size": "var(--font-size-lg)"
|
|
10
|
+
"--app-bar-font-size": "var(--font-size-lg)",
|
|
11
|
+
"--app-bar-border-bottom": "thin solid var(--color-outline)"
|
|
11
12
|
};
|
|
12
13
|
export {
|
|
13
14
|
stdin_default as default
|
|
@@ -7,7 +7,8 @@ var stdin_default = {
|
|
|
7
7
|
"--app-bar-left-gap": "6px",
|
|
8
8
|
"--app-bar-right-gap": "6px",
|
|
9
9
|
"--app-bar-border-radius": "4px",
|
|
10
|
-
"--app-bar-font-size": "var(--font-size-lg)"
|
|
10
|
+
"--app-bar-font-size": "var(--font-size-lg)",
|
|
11
|
+
"--app-bar-border-bottom": "thin solid var(--color-outline)"
|
|
11
12
|
};
|
|
12
13
|
export {
|
|
13
14
|
stdin_default as default
|
|
@@ -7,7 +7,8 @@ var stdin_default = {
|
|
|
7
7
|
"--app-bar-left-gap": "6px",
|
|
8
8
|
"--app-bar-right-gap": "6px",
|
|
9
9
|
"--app-bar-border-radius": "4px",
|
|
10
|
-
"--app-bar-font-size": "var(--font-size-lg)"
|
|
10
|
+
"--app-bar-font-size": "var(--font-size-lg)",
|
|
11
|
+
"--app-bar-border-bottom": "thin solid var(--color-outline)"
|
|
11
12
|
};
|
|
12
13
|
export {
|
|
13
14
|
stdin_default as default
|
package/es/utils/components.mjs
CHANGED
|
@@ -45,9 +45,10 @@ import {
|
|
|
45
45
|
onActivated,
|
|
46
46
|
onDeactivated,
|
|
47
47
|
Comment,
|
|
48
|
-
Fragment
|
|
48
|
+
Fragment,
|
|
49
|
+
defineComponent
|
|
49
50
|
} from "vue";
|
|
50
|
-
import { createNamespaceFn, isArray, isPlainObject } from "@varlet/shared";
|
|
51
|
+
import { createNamespaceFn, isArray, isPlainObject, isString } from "@varlet/shared";
|
|
51
52
|
function pickProps(props, propsKey) {
|
|
52
53
|
return Array.isArray(propsKey) ? propsKey.reduce((pickedProps, key) => {
|
|
53
54
|
pickedProps[key] = props[key];
|
|
@@ -184,7 +185,22 @@ function formatElevation(elevation, defaultLevel) {
|
|
|
184
185
|
}
|
|
185
186
|
return `var-elevation--${elevation}`;
|
|
186
187
|
}
|
|
188
|
+
const MaybeVNode = defineComponent({
|
|
189
|
+
props: {
|
|
190
|
+
is: {
|
|
191
|
+
type: [String, Object]
|
|
192
|
+
},
|
|
193
|
+
tag: {
|
|
194
|
+
type: String,
|
|
195
|
+
default: "span"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
setup(props) {
|
|
199
|
+
return () => isString(props.is) ? h(props.tag, props.is) : props.is;
|
|
200
|
+
}
|
|
201
|
+
});
|
|
187
202
|
export {
|
|
203
|
+
MaybeVNode,
|
|
188
204
|
createNamespace,
|
|
189
205
|
defineListenerProp,
|
|
190
206
|
flatFragment,
|