@varlet/ui 3.3.6 → 3.3.7-alpha.1721326819975
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/README.md +0 -8
- package/README.zh-CN.md +1 -5
- package/es/card/Card.mjs +14 -2
- package/es/card/card.css +1 -1
- package/es/context/lock.mjs +3 -1
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/menu-option/MenuOption.mjs +27 -9
- package/es/menu-option/props.mjs +3 -1
- package/es/menu-select/MenuSelect.mjs +23 -3
- package/es/menu-select/props.mjs +9 -0
- package/es/menu-select/style/index.mjs +1 -0
- package/es/style.css +1 -1
- package/es/styles/common.css +1 -1
- package/es/themes/dark/card.mjs +5 -0
- package/es/themes/dark/index.mjs +62 -31
- package/es/themes/md3-dark/card.mjs +5 -0
- package/es/themes/md3-dark/index.mjs +62 -31
- package/es/themes/md3-light/card.mjs +5 -0
- package/es/themes/md3-light/index.mjs +62 -31
- package/es/utils/components.mjs +3 -1
- package/es/varlet.esm.js +5484 -5321
- package/highlight/web-types.en-US.json +33 -2
- package/highlight/web-types.zh-CN.json +33 -2
- package/lib/style.css +1 -1
- package/lib/varlet.cjs.js +280 -109
- package/package.json +7 -7
- package/types/card.d.ts +1 -0
- package/types/menuSelect.d.ts +9 -0
- package/types/styleVars.d.ts +36 -0
- package/umd/varlet.js +8 -8
package/lib/varlet.cjs.js
CHANGED
|
@@ -711,7 +711,9 @@ function mount$1(component) {
|
|
|
711
711
|
instance: app.mount(host),
|
|
712
712
|
unmount() {
|
|
713
713
|
app.unmount();
|
|
714
|
-
|
|
714
|
+
if (host.parentNode) {
|
|
715
|
+
document.body.removeChild(host);
|
|
716
|
+
}
|
|
715
717
|
}
|
|
716
718
|
};
|
|
717
719
|
}
|
|
@@ -836,7 +838,7 @@ var __spreadValues$v = (a, b) => {
|
|
|
836
838
|
return a;
|
|
837
839
|
};
|
|
838
840
|
var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
|
|
839
|
-
const { n: n$
|
|
841
|
+
const { n: n$1r } = createNamespace("ripple");
|
|
840
842
|
const ANIMATION_DURATION$1 = 250;
|
|
841
843
|
function setStyles(element) {
|
|
842
844
|
const { zIndex, position } = getStyle$1(element);
|
|
@@ -872,7 +874,7 @@ function createRipple(event) {
|
|
|
872
874
|
_ripple.tasker = null;
|
|
873
875
|
const { x, y, centerX, centerY, size } = computeRippleStyles(this, event);
|
|
874
876
|
const ripple = document.createElement("div");
|
|
875
|
-
ripple.classList.add(n$
|
|
877
|
+
ripple.classList.add(n$1r());
|
|
876
878
|
ripple.style.opacity = `0`;
|
|
877
879
|
ripple.style.transform = `translate(${x}px, ${y}px) scale3d(.3, .3, .3)`;
|
|
878
880
|
ripple.style.width = `${size}px`;
|
|
@@ -891,7 +893,7 @@ function createRipple(event) {
|
|
|
891
893
|
function removeRipple() {
|
|
892
894
|
const _ripple = this._ripple;
|
|
893
895
|
const task = () => {
|
|
894
|
-
const ripples = this.querySelectorAll(`.${n$
|
|
896
|
+
const ripples = this.querySelectorAll(`.${n$1r()}`);
|
|
895
897
|
if (!ripples.length) {
|
|
896
898
|
return;
|
|
897
899
|
}
|
|
@@ -1027,9 +1029,10 @@ const props$1h = {
|
|
|
1027
1029
|
// internal for Dialog
|
|
1028
1030
|
onRouteChange: defineListenerProp()
|
|
1029
1031
|
};
|
|
1032
|
+
const { n: n$1q } = createNamespace("");
|
|
1030
1033
|
function resolveLock() {
|
|
1031
1034
|
const lockCounts = Object.keys(stdin_default$5X.locks).length;
|
|
1032
|
-
lockCounts <= 0 ? document.body.classList.remove("
|
|
1035
|
+
lockCounts <= 0 ? document.body.classList.remove(n$1q("$--lock")) : document.body.classList.add(n$1q("$--lock"));
|
|
1033
1036
|
}
|
|
1034
1037
|
function addLock(uid) {
|
|
1035
1038
|
stdin_default$5X.locks[uid] = 1;
|
|
@@ -4637,6 +4640,18 @@ function __render__$17(_ctx, _cache) {
|
|
|
4637
4640
|
/* TEXT, CLASS */
|
|
4638
4641
|
)) : vue.createCommentVNode("v-if", true)
|
|
4639
4642
|
]),
|
|
4643
|
+
_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock(
|
|
4644
|
+
"div",
|
|
4645
|
+
{
|
|
4646
|
+
key: 0,
|
|
4647
|
+
class: vue.normalizeClass(_ctx.n("content"))
|
|
4648
|
+
},
|
|
4649
|
+
[
|
|
4650
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
4651
|
+
],
|
|
4652
|
+
2
|
|
4653
|
+
/* CLASS */
|
|
4654
|
+
)) : vue.createCommentVNode("v-if", true),
|
|
4640
4655
|
vue.renderSlot(_ctx.$slots, "subtitle", {
|
|
4641
4656
|
slotClass: _ctx.n("subtitle")
|
|
4642
4657
|
}, () => [
|
|
@@ -4668,7 +4683,7 @@ function __render__$17(_ctx, _cache) {
|
|
|
4668
4683
|
_ctx.$slots.extra ? (vue.openBlock(), vue.createElementBlock(
|
|
4669
4684
|
"div",
|
|
4670
4685
|
{
|
|
4671
|
-
key:
|
|
4686
|
+
key: 1,
|
|
4672
4687
|
class: vue.normalizeClass(_ctx.n("footer"))
|
|
4673
4688
|
},
|
|
4674
4689
|
[
|
|
@@ -4680,7 +4695,7 @@ function __render__$17(_ctx, _cache) {
|
|
|
4680
4695
|
_ctx.$slots["floating-content"] && !_ctx.isRow ? (vue.openBlock(), vue.createElementBlock(
|
|
4681
4696
|
"div",
|
|
4682
4697
|
{
|
|
4683
|
-
key:
|
|
4698
|
+
key: 2,
|
|
4684
4699
|
class: vue.normalizeClass(_ctx.n("floating-content")),
|
|
4685
4700
|
style: vue.normalizeStyle({
|
|
4686
4701
|
height: _ctx.contentHeight,
|
|
@@ -17800,12 +17815,15 @@ const props$u = {
|
|
|
17800
17815
|
ripple: {
|
|
17801
17816
|
type: Boolean,
|
|
17802
17817
|
default: true
|
|
17803
|
-
}
|
|
17818
|
+
},
|
|
17819
|
+
// internal
|
|
17820
|
+
option: Object
|
|
17804
17821
|
};
|
|
17805
17822
|
const { name: name$u, n: n$x, classes: classes$r } = createNamespace("menu-option");
|
|
17806
17823
|
const _hoisted_1$h = ["tabindex"];
|
|
17807
17824
|
function __render__$z(_ctx, _cache) {
|
|
17808
17825
|
const _component_var_checkbox = vue.resolveComponent("var-checkbox");
|
|
17826
|
+
const _component_maybe_v_node = vue.resolveComponent("maybe-v-node");
|
|
17809
17827
|
const _component_var_hover_overlay = vue.resolveComponent("var-hover-overlay");
|
|
17810
17828
|
const _directive_ripple = vue.resolveDirective("ripple");
|
|
17811
17829
|
const _directive_hover = vue.resolveDirective("hover");
|
|
@@ -17844,9 +17862,11 @@ function __render__$z(_ctx, _cache) {
|
|
|
17844
17862
|
{
|
|
17845
17863
|
class: vue.normalizeClass(_ctx.classes(_ctx.n("text"), _ctx.n("$--ellipsis")))
|
|
17846
17864
|
},
|
|
17847
|
-
|
|
17848
|
-
|
|
17849
|
-
|
|
17865
|
+
[
|
|
17866
|
+
vue.createVNode(_component_maybe_v_node, { is: _ctx.labelVNode }, null, 8, ["is"])
|
|
17867
|
+
],
|
|
17868
|
+
2
|
|
17869
|
+
/* CLASS */
|
|
17850
17870
|
)
|
|
17851
17871
|
]),
|
|
17852
17872
|
vue.createVNode(_component_var_hover_overlay, {
|
|
@@ -17863,7 +17883,8 @@ const __sfc__$A = vue.defineComponent({
|
|
|
17863
17883
|
directives: { Ripple: stdin_default$5W, Hover: stdin_default$5P },
|
|
17864
17884
|
components: {
|
|
17865
17885
|
VarCheckbox: stdin_default$59,
|
|
17866
|
-
VarHoverOverlay: stdin_default$5Q
|
|
17886
|
+
VarHoverOverlay: stdin_default$5Q,
|
|
17887
|
+
MaybeVNode
|
|
17867
17888
|
},
|
|
17868
17889
|
props: props$u,
|
|
17869
17890
|
setup(props2) {
|
|
@@ -17871,13 +17892,26 @@ const __sfc__$A = vue.defineComponent({
|
|
|
17871
17892
|
const isFocusing = vue.ref(false);
|
|
17872
17893
|
const optionSelected = vue.ref(false);
|
|
17873
17894
|
const selected = vue.computed(() => optionSelected.value);
|
|
17874
|
-
const
|
|
17895
|
+
const labelVNode = vue.computed(
|
|
17896
|
+
() => {
|
|
17897
|
+
var _a;
|
|
17898
|
+
return isFunction(props2.label) ? props2.label(
|
|
17899
|
+
(_a = props2.option) != null ? _a : {
|
|
17900
|
+
label: props2.label,
|
|
17901
|
+
value: props2.value,
|
|
17902
|
+
disabled: props2.disabled,
|
|
17903
|
+
ripple: props2.ripple
|
|
17904
|
+
},
|
|
17905
|
+
optionSelected.value
|
|
17906
|
+
) : props2.label;
|
|
17907
|
+
}
|
|
17908
|
+
);
|
|
17875
17909
|
const value = vue.computed(() => props2.value);
|
|
17876
17910
|
const { menuSelect, bindMenuSelect } = useMenuSelect();
|
|
17877
17911
|
const { size, multiple, onSelect, computeLabel } = menuSelect;
|
|
17878
17912
|
const { hovering, handleHovering } = useHoverOverlay();
|
|
17879
17913
|
const menuOptionProvider = {
|
|
17880
|
-
label,
|
|
17914
|
+
label: labelVNode,
|
|
17881
17915
|
value,
|
|
17882
17916
|
selected,
|
|
17883
17917
|
sync
|
|
@@ -17928,6 +17962,7 @@ const __sfc__$A = vue.defineComponent({
|
|
|
17928
17962
|
multiple,
|
|
17929
17963
|
hovering,
|
|
17930
17964
|
isFocusing,
|
|
17965
|
+
labelVNode,
|
|
17931
17966
|
n: n$x,
|
|
17932
17967
|
classes: classes$r,
|
|
17933
17968
|
handleHovering,
|
|
@@ -17963,6 +17998,15 @@ const props$t = __spreadValues$8({
|
|
|
17963
17998
|
type: [String, Number, Boolean, Array],
|
|
17964
17999
|
default: void 0
|
|
17965
18000
|
},
|
|
18001
|
+
options: Array,
|
|
18002
|
+
labelKey: {
|
|
18003
|
+
type: String,
|
|
18004
|
+
default: "label"
|
|
18005
|
+
},
|
|
18006
|
+
valueKey: {
|
|
18007
|
+
type: String,
|
|
18008
|
+
default: "value"
|
|
18009
|
+
},
|
|
17966
18010
|
size: {
|
|
17967
18011
|
type: String,
|
|
17968
18012
|
default: "normal"
|
|
@@ -18057,6 +18101,7 @@ function useSelectController(options) {
|
|
|
18057
18101
|
}
|
|
18058
18102
|
const { name: name$t, n: n$w, classes: classes$q } = createNamespace("menu-select");
|
|
18059
18103
|
function __render__$y(_ctx, _cache) {
|
|
18104
|
+
const _component_var_menu_option = vue.resolveComponent("var-menu-option");
|
|
18060
18105
|
const _component_var_menu = vue.resolveComponent("var-menu");
|
|
18061
18106
|
return vue.openBlock(), vue.createBlock(_component_var_menu, {
|
|
18062
18107
|
ref: "menu",
|
|
@@ -18092,6 +18137,22 @@ function __render__$y(_ctx, _cache) {
|
|
|
18092
18137
|
class: vue.normalizeClass(_ctx.classes(_ctx.n("menu"), _ctx.formatElevation(_ctx.elevation, 3), [_ctx.scrollable, _ctx.n("--scrollable")]))
|
|
18093
18138
|
},
|
|
18094
18139
|
[
|
|
18140
|
+
_ctx.menuSelectOptions.length ? (vue.openBlock(true), vue.createElementBlock(
|
|
18141
|
+
vue.Fragment,
|
|
18142
|
+
{ key: 0 },
|
|
18143
|
+
vue.renderList(_ctx.menuSelectOptions, (option) => {
|
|
18144
|
+
return vue.openBlock(), vue.createBlock(_component_var_menu_option, {
|
|
18145
|
+
key: option[_ctx.valueKey],
|
|
18146
|
+
label: option[_ctx.labelKey],
|
|
18147
|
+
value: option[_ctx.valueKey],
|
|
18148
|
+
option,
|
|
18149
|
+
ripple: option.ripple,
|
|
18150
|
+
disabled: option.disabled
|
|
18151
|
+
}, null, 8, ["label", "value", "option", "ripple", "disabled"]);
|
|
18152
|
+
}),
|
|
18153
|
+
128
|
|
18154
|
+
/* KEYED_FRAGMENT */
|
|
18155
|
+
)) : vue.createCommentVNode("v-if", true),
|
|
18095
18156
|
vue.renderSlot(_ctx.$slots, "options")
|
|
18096
18157
|
],
|
|
18097
18158
|
2
|
|
@@ -18107,12 +18168,13 @@ function __render__$y(_ctx, _cache) {
|
|
|
18107
18168
|
}
|
|
18108
18169
|
const __sfc__$z = vue.defineComponent({
|
|
18109
18170
|
name: name$t,
|
|
18110
|
-
components: { VarMenu: stdin_default$47 },
|
|
18171
|
+
components: { VarMenu: stdin_default$47, VarMenuOption: stdin_default$45 },
|
|
18111
18172
|
props: props$t,
|
|
18112
18173
|
setup(props2) {
|
|
18113
18174
|
const menu = vue.ref(null);
|
|
18114
18175
|
const menuOptionsRef = vue.ref(null);
|
|
18115
18176
|
const show = useVModel(props2, "show");
|
|
18177
|
+
const menuSelectOptions = vue.computed(() => isArray(props2.options) ? props2.options : []);
|
|
18116
18178
|
const { menuOptions, length, bindMenuOptions } = useMenuOptions();
|
|
18117
18179
|
const { computeLabel, getSelectedValue } = useSelectController({
|
|
18118
18180
|
modelValue: () => props2.modelValue,
|
|
@@ -18169,6 +18231,7 @@ const __sfc__$z = vue.defineComponent({
|
|
|
18169
18231
|
show,
|
|
18170
18232
|
menu,
|
|
18171
18233
|
menuOptionsRef,
|
|
18234
|
+
menuSelectOptions,
|
|
18172
18235
|
n: n$w,
|
|
18173
18236
|
classes: classes$q,
|
|
18174
18237
|
formatElevation,
|
|
@@ -24479,6 +24542,11 @@ var stdin_default$34 = {
|
|
|
24479
24542
|
"--card-title-padding": "0 12px",
|
|
24480
24543
|
"--card-title-margin": "15px 0 0 0",
|
|
24481
24544
|
"--card-title-row-margin": "12px 0",
|
|
24545
|
+
"--card-content-padding": "0 16px",
|
|
24546
|
+
"--card-content-margin": "16px 0 0 0",
|
|
24547
|
+
"--card-content-color": "var(--color-on-surface-variant)",
|
|
24548
|
+
"--card-content-font-size": "14px",
|
|
24549
|
+
"--card-content-row-margin": "16px 0 0 0",
|
|
24482
24550
|
"--card-subtitle-font-size": "14px",
|
|
24483
24551
|
"--card-subtitle-padding": "0 12px",
|
|
24484
24552
|
"--card-subtitle-margin": "10px 0 0 0",
|
|
@@ -25297,37 +25365,68 @@ var stdin_default$28 = __spreadValues$3(__spreadValues$3(__spreadValues$3(__spre
|
|
|
25297
25365
|
"--icon-size-sm": "18px",
|
|
25298
25366
|
"--icon-size-md": "20px",
|
|
25299
25367
|
"--icon-size-lg": "22px",
|
|
25300
|
-
"--
|
|
25301
|
-
"--color-
|
|
25302
|
-
"--
|
|
25303
|
-
"--color-
|
|
25304
|
-
"--
|
|
25305
|
-
"--color-
|
|
25306
|
-
"--
|
|
25307
|
-
"--color-
|
|
25308
|
-
"--
|
|
25309
|
-
"--color-
|
|
25310
|
-
"--
|
|
25311
|
-
"--color-
|
|
25312
|
-
"--
|
|
25313
|
-
"--color-
|
|
25314
|
-
"--
|
|
25315
|
-
"--color-
|
|
25316
|
-
"--
|
|
25317
|
-
"--color-on-
|
|
25318
|
-
"--
|
|
25319
|
-
"--color-on-success
|
|
25320
|
-
"--
|
|
25321
|
-
"--color-on-
|
|
25322
|
-
"--
|
|
25323
|
-
"--color-
|
|
25324
|
-
"--
|
|
25325
|
-
"--color-
|
|
25326
|
-
"--
|
|
25327
|
-
"--color-
|
|
25328
|
-
"--
|
|
25329
|
-
"--color-
|
|
25330
|
-
"--
|
|
25368
|
+
"--hsl-body": "0, 0%, 12%",
|
|
25369
|
+
"--color-body": "hsla(var(--hsl-body), 1)",
|
|
25370
|
+
"--hsl-text": "0, 0%, 100%",
|
|
25371
|
+
"--color-text": "hsla(var(--hsl-text), 1)",
|
|
25372
|
+
"--hsl-primary": "224, 99%, 64%",
|
|
25373
|
+
"--color-primary": "hsla(var(--hsl-primary), 1)",
|
|
25374
|
+
"--hsl-info": "197, 87%, 50%",
|
|
25375
|
+
"--color-info": "hsla(var(--hsl-info), 1)",
|
|
25376
|
+
"--hsl-success": "162, 85%, 42%",
|
|
25377
|
+
"--color-success": "hsla(var(--hsl-success), 1)",
|
|
25378
|
+
"--hsl-warning": "32, 100%, 50%",
|
|
25379
|
+
"--color-warning": "hsla(var(--hsl-warning), 1)",
|
|
25380
|
+
"--hsl-danger": "1, 83%, 63%",
|
|
25381
|
+
"--color-danger": "hsla(var(--hsl-danger), 1)",
|
|
25382
|
+
"--hsl-on-primary": "0, 0%, 100%",
|
|
25383
|
+
"--color-on-primary": "hsla(var(--hsl-on-primary), 1)",
|
|
25384
|
+
"--hsl-on-info": "0, 0%, 100%",
|
|
25385
|
+
"--color-on-info": "hsla(var(--hsl-on-info), 1)",
|
|
25386
|
+
"--hsl-on-success": "0, 0%, 100%",
|
|
25387
|
+
"--color-on-success": "hsla(var(--hsl-on-success), 1)",
|
|
25388
|
+
"--hsl-on-warning": "0, 0%, 100%",
|
|
25389
|
+
"--color-on-warning": "hsla(var(--hsl-on-warning), 1)",
|
|
25390
|
+
"--hsl-on-danger": "0, 0%, 100%",
|
|
25391
|
+
"--color-on-danger": "hsla(var(--hsl-on-danger), 1)",
|
|
25392
|
+
"--hsl-primary-container": "224, 99%, 64%",
|
|
25393
|
+
"--color-primary-container": "hsla(var(--hsl-primary-container), 1)",
|
|
25394
|
+
"--hsl-info-container": "197, 87%, 50%",
|
|
25395
|
+
"--color-info-container": "hsla(var(--hsl-info-container), 1)",
|
|
25396
|
+
"--hsl-success-container": "162, 85%, 42%",
|
|
25397
|
+
"--color-success-container": "hsla(var(--hsl-success-container), 1)",
|
|
25398
|
+
"--hsl-warning-container": "32, 100%, 50%",
|
|
25399
|
+
"--color-warning-container": "hsla(var(--hsl-warning-container), 1)",
|
|
25400
|
+
"--hsl-danger-container": "1, 83%, 63%",
|
|
25401
|
+
"--color-danger-container": "hsla(var(--hsl-danger-container), 1)",
|
|
25402
|
+
"--hsl-on-primary-container": "0, 0%, 100%",
|
|
25403
|
+
"--color-on-primary-container": "hsla(var(--hsl-on-primary-container), 1)",
|
|
25404
|
+
"--hsl-on-info-container": "0, 0%, 100%",
|
|
25405
|
+
"--color-on-info-container": "hsla(var(--hsl-on-info-container), 1)",
|
|
25406
|
+
"--hsl-on-success-container": "0, 0%, 100%",
|
|
25407
|
+
"--color-on-success-container": "hsla(var(--hsl-on-success-container), 1)",
|
|
25408
|
+
"--hsl-on-warning-container": "0, 0%, 100%",
|
|
25409
|
+
"--color-on-warning-container": "hsla(var(--hsl-on-warning-container), 1)",
|
|
25410
|
+
"--hsl-on-danger-container": "0, 0%, 100%",
|
|
25411
|
+
"--color-on-danger-container": "hsla(var(--hsl-on-danger-container), 1)",
|
|
25412
|
+
"--hsl-disabled": "0, 0%, 25%",
|
|
25413
|
+
"--color-disabled": "hsla(var(--hsl-disabled), 1)",
|
|
25414
|
+
"--hsl-text-disabled": "0, 0%, 46%",
|
|
25415
|
+
"--color-text-disabled": "hsla(var(--hsl-text-disabled), 1)",
|
|
25416
|
+
"--hsl-surface-container": "0, 0%, 12%",
|
|
25417
|
+
"--color-surface-container": "hsla(var(--hsl-surface-container), 1)",
|
|
25418
|
+
"--hsl-surface-container-low": "0, 0%, 12%",
|
|
25419
|
+
"--color-surface-container-low": "hsla(var(--hsl-surface-container-low), 1)",
|
|
25420
|
+
"--hsl-surface-container-high": "0, 0%, 15%",
|
|
25421
|
+
"--color-surface-container-high": "hsla(var(--hsl-surface-container-high), 1)",
|
|
25422
|
+
"--hsl-surface-container-highest": "0, 0%, 19%",
|
|
25423
|
+
"--color-surface-container-highest": "hsla(var(--hsl-surface-container-highest), 1)",
|
|
25424
|
+
"--hsl-inverse-surface": "0, 0%, 100%",
|
|
25425
|
+
"--color-inverse-surface": "hsla(var(--hsl-inverse-surface), 1)",
|
|
25426
|
+
"--hsl-outline": "0, 0%, 100%",
|
|
25427
|
+
"--color-outline": "hsla(var(--hsl-outline), 0.2)",
|
|
25428
|
+
"--hsl-on-surface-variant": "0, 0%, 100%",
|
|
25429
|
+
"--color-on-surface-variant": "hsla(var(--hsl-on-surface-variant), 1)",
|
|
25331
25430
|
"--opacity-disabled": "0.6",
|
|
25332
25431
|
"--opacity-hover": "0.15",
|
|
25333
25432
|
"--opacity-focus": "0.2",
|
|
@@ -25522,6 +25621,11 @@ var stdin_default$1V = {
|
|
|
25522
25621
|
"--card-title-font-size": "16px",
|
|
25523
25622
|
"--card-title-padding": "0 16px",
|
|
25524
25623
|
"--card-title-margin": "16px 0 0 0",
|
|
25624
|
+
"--card-content-padding": "0 16px",
|
|
25625
|
+
"--card-content-margin": "16px 0 0 0",
|
|
25626
|
+
"--card-content-color": "var(--color-on-surface-variant)",
|
|
25627
|
+
"--card-content-font-size": "14px",
|
|
25628
|
+
"--card-content-row-margin": "16px 0 0 0",
|
|
25525
25629
|
"--card-subtitle-color": "var(--color-on-surface-variant)",
|
|
25526
25630
|
"--card-subtitle-padding": "0 16px",
|
|
25527
25631
|
"--card-subtitle-margin": "4px 0 0 0",
|
|
@@ -26229,37 +26333,68 @@ var stdin_default$18 = __spreadValues$2(__spreadValues$2(__spreadValues$2(__spre
|
|
|
26229
26333
|
"--icon-size-sm": "18px",
|
|
26230
26334
|
"--icon-size-md": "20px",
|
|
26231
26335
|
"--icon-size-lg": "22px",
|
|
26232
|
-
"--
|
|
26233
|
-
"--color-
|
|
26234
|
-
"--
|
|
26235
|
-
"--color-
|
|
26236
|
-
"--
|
|
26237
|
-
"--color-
|
|
26238
|
-
"--
|
|
26239
|
-
"--color-
|
|
26240
|
-
"--
|
|
26241
|
-
"--color-
|
|
26242
|
-
"--
|
|
26243
|
-
"--color-
|
|
26244
|
-
"--
|
|
26245
|
-
"--color-
|
|
26246
|
-
"--
|
|
26247
|
-
"--color-
|
|
26248
|
-
"--
|
|
26249
|
-
"--color-on-
|
|
26250
|
-
"--
|
|
26251
|
-
"--color-on-success
|
|
26252
|
-
"--
|
|
26253
|
-
"--color-on-
|
|
26254
|
-
"--
|
|
26255
|
-
"--color-
|
|
26256
|
-
"--
|
|
26257
|
-
"--color-
|
|
26258
|
-
"--
|
|
26259
|
-
"--color-
|
|
26260
|
-
"--
|
|
26261
|
-
"--color-
|
|
26262
|
-
"--
|
|
26336
|
+
"--hsl-body": "293, 100%, 98%",
|
|
26337
|
+
"--color-body": "hsla(var(--hsl-body), 1)",
|
|
26338
|
+
"--hsl-text": "0, 0%, 0%",
|
|
26339
|
+
"--color-text": "hsla(var(--hsl-text), 1)",
|
|
26340
|
+
"--hsl-primary": "256, 34%, 48%",
|
|
26341
|
+
"--color-primary": "hsla(var(--hsl-primary), 1)",
|
|
26342
|
+
"--hsl-info": "259, 11%, 40%",
|
|
26343
|
+
"--color-info": "hsla(var(--hsl-info), 1)",
|
|
26344
|
+
"--hsl-success": "77, 46%, 27%",
|
|
26345
|
+
"--color-success": "hsla(var(--hsl-success), 1)",
|
|
26346
|
+
"--hsl-warning": "340, 21%, 41%",
|
|
26347
|
+
"--color-warning": "hsla(var(--hsl-warning), 1)",
|
|
26348
|
+
"--hsl-danger": "3, 71%, 41%",
|
|
26349
|
+
"--color-danger": "hsla(var(--hsl-danger), 1)",
|
|
26350
|
+
"--hsl-on-primary": "0, 0%, 100%",
|
|
26351
|
+
"--color-on-primary": "hsla(var(--hsl-on-primary), 1)",
|
|
26352
|
+
"--hsl-on-info": "0, 0%, 100%",
|
|
26353
|
+
"--color-on-info": "hsla(var(--hsl-on-info), 1)",
|
|
26354
|
+
"--hsl-on-success": "0, 0%, 100%",
|
|
26355
|
+
"--color-on-success": "hsla(var(--hsl-on-success), 1)",
|
|
26356
|
+
"--hsl-on-warning": "0, 0%, 100%",
|
|
26357
|
+
"--color-on-warning": "hsla(var(--hsl-on-warning), 1)",
|
|
26358
|
+
"--hsl-on-danger": "0, 0%, 100%",
|
|
26359
|
+
"--color-on-danger": "hsla(var(--hsl-on-danger), 1)",
|
|
26360
|
+
"--hsl-primary-container": "263, 100%, 93%",
|
|
26361
|
+
"--color-primary-container": "hsla(var(--hsl-primary-container), 1)",
|
|
26362
|
+
"--hsl-info-container": "263, 65%, 92%",
|
|
26363
|
+
"--color-info-container": "hsla(var(--hsl-info-container), 1)",
|
|
26364
|
+
"--hsl-success-container": "77, 68%, 77%",
|
|
26365
|
+
"--color-success-container": "hsla(var(--hsl-success-container), 1)",
|
|
26366
|
+
"--hsl-warning-container": "342, 100%, 92%",
|
|
26367
|
+
"--color-warning-container": "hsla(var(--hsl-warning-container), 1)",
|
|
26368
|
+
"--hsl-danger-container": "4, 71%, 92%",
|
|
26369
|
+
"--color-danger-container": "hsla(var(--hsl-danger-container), 1)",
|
|
26370
|
+
"--hsl-on-primary-container": "261, 100%, 18%",
|
|
26371
|
+
"--color-on-primary-container": "hsla(var(--hsl-on-primary-container), 1)",
|
|
26372
|
+
"--hsl-on-info-container": "253, 26%, 13%",
|
|
26373
|
+
"--color-on-info-container": "hsla(var(--hsl-on-info-container), 1)",
|
|
26374
|
+
"--hsl-on-success-container": "79, 100%, 6%",
|
|
26375
|
+
"--color-on-success-container": "hsla(var(--hsl-on-success-container), 1)",
|
|
26376
|
+
"--hsl-on-warning-container": "338, 48%, 13%",
|
|
26377
|
+
"--color-on-warning-container": "hsla(var(--hsl-on-warning-container), 1)",
|
|
26378
|
+
"--hsl-on-danger-container": "3, 71%, 15%",
|
|
26379
|
+
"--color-on-danger-container": "hsla(var(--hsl-on-danger-container), 1)",
|
|
26380
|
+
"--hsl-disabled": "0, 0%, 88%",
|
|
26381
|
+
"--color-disabled": "hsla(var(--hsl-disabled), 1)",
|
|
26382
|
+
"--hsl-text-disabled": "0, 0%, 67%",
|
|
26383
|
+
"--color-text-disabled": "hsla(var(--hsl-text-disabled), 1)",
|
|
26384
|
+
"--hsl-surface-container": "276, 38%, 95%",
|
|
26385
|
+
"--color-surface-container": "hsla(var(--hsl-surface-container), 1)",
|
|
26386
|
+
"--hsl-surface-container-low": "278, 44%, 96%",
|
|
26387
|
+
"--color-surface-container-low": "hsla(var(--hsl-surface-container-low), 1)",
|
|
26388
|
+
"--hsl-surface-container-high": "276, 25%, 92%",
|
|
26389
|
+
"--color-surface-container-high": "hsla(var(--hsl-surface-container-high), 1)",
|
|
26390
|
+
"--hsl-surface-container-highest": "280, 17%, 90%",
|
|
26391
|
+
"--color-surface-container-highest": "hsla(var(--hsl-surface-container-highest), 1)",
|
|
26392
|
+
"--hsl-inverse-surface": "270, 6%, 20%",
|
|
26393
|
+
"--color-inverse-surface": "hsla(var(--hsl-inverse-surface), 1)",
|
|
26394
|
+
"--hsl-outline": "270, 11%, 79%",
|
|
26395
|
+
"--color-outline": "hsla(var(--hsl-outline), 1)",
|
|
26396
|
+
"--hsl-on-surface-variant": "264, 7%, 29%",
|
|
26397
|
+
"--color-on-surface-variant": "hsla(var(--hsl-on-surface-variant), 1)",
|
|
26263
26398
|
"--opacity-disabled": "0.6",
|
|
26264
26399
|
"--opacity-hover": "0.12",
|
|
26265
26400
|
"--opacity-focus": "0.2",
|
|
@@ -26461,6 +26596,11 @@ var stdin_default$V = {
|
|
|
26461
26596
|
"--card-title-font-size": "16px",
|
|
26462
26597
|
"--card-title-padding": "0 16px",
|
|
26463
26598
|
"--card-title-margin": "16px 0 0 0",
|
|
26599
|
+
"--card-content-padding": "0 16px",
|
|
26600
|
+
"--card-content-margin": "16px 0 0 0",
|
|
26601
|
+
"--card-content-color": "var(--color-on-surface-variant)",
|
|
26602
|
+
"--card-content-font-size": "14px",
|
|
26603
|
+
"--card-content-row-margin": "16px 0 0 0",
|
|
26464
26604
|
"--card-subtitle-color": "var(--color-on-surface-variant)",
|
|
26465
26605
|
"--card-subtitle-padding": "0 16px",
|
|
26466
26606
|
"--card-subtitle-margin": "4px 0 0 0",
|
|
@@ -27178,37 +27318,68 @@ var stdin_default$8 = __spreadValues$1(__spreadValues$1(__spreadValues$1(__sprea
|
|
|
27178
27318
|
"--icon-size-sm": "18px",
|
|
27179
27319
|
"--icon-size-md": "20px",
|
|
27180
27320
|
"--icon-size-lg": "22px",
|
|
27181
|
-
"--
|
|
27182
|
-
"--color-
|
|
27183
|
-
"--
|
|
27184
|
-
"--color-
|
|
27185
|
-
"--
|
|
27186
|
-
"--color-
|
|
27187
|
-
"--
|
|
27188
|
-
"--color-
|
|
27189
|
-
"--
|
|
27190
|
-
"--color-
|
|
27191
|
-
"--
|
|
27192
|
-
"--color-
|
|
27193
|
-
"--
|
|
27194
|
-
"--color-
|
|
27195
|
-
"--
|
|
27196
|
-
"--color-
|
|
27197
|
-
"--
|
|
27198
|
-
"--color-on-
|
|
27199
|
-
"--
|
|
27200
|
-
"--color-on-success
|
|
27201
|
-
"--
|
|
27202
|
-
"--color-on-
|
|
27203
|
-
"--
|
|
27204
|
-
"--color-
|
|
27205
|
-
"--
|
|
27206
|
-
"--color-
|
|
27207
|
-
"--
|
|
27208
|
-
"--color-
|
|
27209
|
-
"--
|
|
27210
|
-
"--color-
|
|
27211
|
-
"--
|
|
27321
|
+
"--hsl-body": "260, 14%, 8%",
|
|
27322
|
+
"--color-body": "hsla(var(--hsl-body), 1)",
|
|
27323
|
+
"--hsl-text": "0, 0%, 100%",
|
|
27324
|
+
"--color-text": "hsla(var(--hsl-text), 1)",
|
|
27325
|
+
"--hsl-primary": "258, 100%, 87%",
|
|
27326
|
+
"--color-primary": "hsla(var(--hsl-primary), 1)",
|
|
27327
|
+
"--hsl-info": "263, 27%, 81%",
|
|
27328
|
+
"--color-info": "hsla(var(--hsl-info), 1)",
|
|
27329
|
+
"--hsl-success": "77, 44%, 66%",
|
|
27330
|
+
"--color-success": "hsla(var(--hsl-success), 1)",
|
|
27331
|
+
"--hsl-warning": "343, 63%, 83%",
|
|
27332
|
+
"--color-warning": "hsla(var(--hsl-warning), 1)",
|
|
27333
|
+
"--hsl-danger": "3, 70%, 83%",
|
|
27334
|
+
"--color-danger": "hsla(var(--hsl-danger), 1)",
|
|
27335
|
+
"--hsl-on-primary": "259, 58%, 28%",
|
|
27336
|
+
"--color-on-primary": "hsla(var(--hsl-on-primary), 1)",
|
|
27337
|
+
"--hsl-on-info": "258, 18%, 22%",
|
|
27338
|
+
"--color-on-info": "hsla(var(--hsl-on-info), 1)",
|
|
27339
|
+
"--hsl-on-success": "76, 100%, 10%",
|
|
27340
|
+
"--color-on-success": "hsla(var(--hsl-on-success), 1)",
|
|
27341
|
+
"--hsl-on-warning": "338, 33%, 22%",
|
|
27342
|
+
"--color-on-warning": "hsla(var(--hsl-on-warning), 1)",
|
|
27343
|
+
"--hsl-on-danger": "3, 71%, 22%",
|
|
27344
|
+
"--color-on-danger": "hsla(var(--hsl-on-danger), 1)",
|
|
27345
|
+
"--hsl-primary-container": "257, 37%, 42%",
|
|
27346
|
+
"--color-primary-container": "hsla(var(--hsl-primary-container), 1)",
|
|
27347
|
+
"--hsl-info-container": "260, 12%, 35%",
|
|
27348
|
+
"--color-info-container": "hsla(var(--hsl-info-container), 1)",
|
|
27349
|
+
"--hsl-success-container": "77, 57%, 23%",
|
|
27350
|
+
"--color-success-container": "hsla(var(--hsl-success-container), 1)",
|
|
27351
|
+
"--hsl-warning-container": "342, 21%, 36%",
|
|
27352
|
+
"--color-warning-container": "hsla(var(--hsl-warning-container), 1)",
|
|
27353
|
+
"--hsl-danger-container": "2, 48%, 42%",
|
|
27354
|
+
"--color-danger-container": "hsla(var(--hsl-danger-container), 1)",
|
|
27355
|
+
"--hsl-on-primary-container": "263, 100%, 93%",
|
|
27356
|
+
"--color-on-primary-container": "hsla(var(--hsl-on-primary-container), 1)",
|
|
27357
|
+
"--hsl-on-info-container": "263, 65%, 92%",
|
|
27358
|
+
"--color-on-info-container": "hsla(var(--hsl-on-info-container), 1)",
|
|
27359
|
+
"--hsl-on-success-container": "77, 68%, 77%",
|
|
27360
|
+
"--color-on-success-container": "hsla(var(--hsl-on-success-container), 1)",
|
|
27361
|
+
"--hsl-on-warning-container": "342, 100%, 92%",
|
|
27362
|
+
"--color-on-warning-container": "hsla(var(--hsl-on-warning-container), 1)",
|
|
27363
|
+
"--hsl-on-danger-container": "4, 71%, 92%",
|
|
27364
|
+
"--color-on-danger-container": "hsla(var(--hsl-on-danger-container), 1)",
|
|
27365
|
+
"--hsl-disabled": "0, 0%, 25%",
|
|
27366
|
+
"--color-disabled": "hsla(var(--hsl-disabled), 1)",
|
|
27367
|
+
"--hsl-text-disabled": "0, 0%, 46%",
|
|
27368
|
+
"--color-text-disabled": "hsla(var(--hsl-text-disabled), 1)",
|
|
27369
|
+
"--hsl-surface-container": "257, 10%, 14%",
|
|
27370
|
+
"--color-surface-container": "hsla(var(--hsl-surface-container), 1)",
|
|
27371
|
+
"--hsl-surface-container-low": "264, 8%, 12%",
|
|
27372
|
+
"--color-surface-container-low": "hsla(var(--hsl-surface-container-low), 1)",
|
|
27373
|
+
"--hsl-surface-container-high": "257, 8%, 17%",
|
|
27374
|
+
"--color-surface-container-high": "hsla(var(--hsl-surface-container-high), 1)",
|
|
27375
|
+
"--hsl-surface-container-highest": "257, 6%, 22%",
|
|
27376
|
+
"--color-surface-container-highest": "hsla(var(--hsl-surface-container-highest), 1)",
|
|
27377
|
+
"--hsl-inverse-surface": "280, 17%, 90%",
|
|
27378
|
+
"--color-inverse-surface": "hsla(var(--hsl-inverse-surface), 1)",
|
|
27379
|
+
"--hsl-outline": "264, 7%, 29%",
|
|
27380
|
+
"--color-outline": "hsla(var(--hsl-outline), 1)",
|
|
27381
|
+
"--hsl-on-surface-variant": "270, 11%, 79%",
|
|
27382
|
+
"--color-on-surface-variant": "hsla(var(--hsl-on-surface-variant), 1)",
|
|
27212
27383
|
"--opacity-disabled": "0.6",
|
|
27213
27384
|
"--opacity-hover": "0.12",
|
|
27214
27385
|
"--opacity-focus": "0.2",
|
|
@@ -28938,7 +29109,7 @@ withInstall(stdin_default$1);
|
|
|
28938
29109
|
withPropsDefaultsSetter(stdin_default$1, props);
|
|
28939
29110
|
const _WatermarkComponent = stdin_default$1;
|
|
28940
29111
|
var stdin_default = stdin_default$1;
|
|
28941
|
-
const version = "3.3.
|
|
29112
|
+
const version = "3.3.7-alpha.1721326819975";
|
|
28942
29113
|
function install(app) {
|
|
28943
29114
|
stdin_default$5G.install && app.use(stdin_default$5G);
|
|
28944
29115
|
stdin_default$5E.install && app.use(stdin_default$5E);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.7-alpha.1721326819975",
|
|
4
4
|
"description": "A material like components library",
|
|
5
5
|
"main": "lib/varlet.cjs.js",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"@popperjs/core": "^2.11.6",
|
|
49
49
|
"dayjs": "^1.10.4",
|
|
50
50
|
"decimal.js": "^10.2.1",
|
|
51
|
-
"@varlet/icons": "3.3.
|
|
52
|
-
"@varlet/shared": "3.3.
|
|
53
|
-
"@varlet/use": "3.3.
|
|
51
|
+
"@varlet/icons": "3.3.7-alpha.1721326819975",
|
|
52
|
+
"@varlet/shared": "3.3.7-alpha.1721326819975",
|
|
53
|
+
"@varlet/use": "3.3.7-alpha.1721326819975"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@vue/runtime-core": "3.4.21",
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
"typescript": "^5.1.5",
|
|
65
65
|
"vue": "3.4.21",
|
|
66
66
|
"vue-router": "4.2.0",
|
|
67
|
-
"@varlet/ui": "3.3.
|
|
68
|
-
"@varlet/cli": "3.3.
|
|
69
|
-
"@varlet/touch-emulator": "3.3.
|
|
67
|
+
"@varlet/ui": "3.3.7-alpha.1721326819975",
|
|
68
|
+
"@varlet/cli": "3.3.7-alpha.1721326819975",
|
|
69
|
+
"@varlet/touch-emulator": "3.3.7-alpha.1721326819975"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"dev": "varlet-cli dev",
|
package/types/card.d.ts
CHANGED
package/types/menuSelect.d.ts
CHANGED
|
@@ -24,6 +24,15 @@ export type MenuSelectStrategy = PositioningStrategy
|
|
|
24
24
|
|
|
25
25
|
export type MenuSelectSize = 'normal' | 'mini' | 'small' | 'large'
|
|
26
26
|
|
|
27
|
+
export type MenuSelectOptionLabelRender = (option: MenuSelectOption, checked: boolean) => VNodeChild
|
|
28
|
+
|
|
29
|
+
export interface MenuSelectOption {
|
|
30
|
+
label?: string | VNode | MenuSelectOptionLabelRender
|
|
31
|
+
disabled?: boolean
|
|
32
|
+
value?: any
|
|
33
|
+
ripple?: boolean
|
|
34
|
+
}
|
|
35
|
+
|
|
27
36
|
export interface MenuSelectProps extends BasicAttributes {
|
|
28
37
|
modelValue?: any
|
|
29
38
|
size?: MenuSelectSize
|