@varlet/ui 2.21.1-alpha.1705566892480 → 2.22.0
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/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/locale/fa-IR.d.ts +5 -0
- package/es/locale/fa-IR.mjs +108 -0
- package/es/locale/index.mjs +2 -0
- package/es/popup/Popup.mjs +1 -1
- package/es/popup/popup.css +1 -1
- package/es/snackbar/core.mjs +23 -16
- package/es/snackbar/snackbar.css +1 -1
- package/es/snackbar/style/index.mjs +1 -1
- package/es/style.css +1 -1
- package/es/switch/Switch.mjs +18 -6
- package/es/switch/props.mjs +6 -0
- package/es/varlet.esm.js +3481 -3354
- package/highlight/web-types.en-US.json +30 -8
- package/highlight/web-types.zh-CN.json +31 -9
- package/lib/style.css +1 -1
- package/lib/varlet.cjs.js +298 -166
- package/package.json +7 -7
- package/types/rate.d.ts +1 -1
- package/types/styleVars.d.ts +2 -0
- package/types/switch.d.ts +7 -2
- package/umd/varlet.js +5 -5
package/es/index.bundle.mjs
CHANGED
|
@@ -262,7 +262,7 @@ import './tooltip/style/index.mjs'
|
|
|
262
262
|
import './uploader/style/index.mjs'
|
|
263
263
|
import './watermark/style/index.mjs'
|
|
264
264
|
|
|
265
|
-
const version = '2.
|
|
265
|
+
const version = '2.22.0'
|
|
266
266
|
|
|
267
267
|
function install(app) {
|
|
268
268
|
ActionSheet.install && app.use(ActionSheet)
|
package/es/index.mjs
CHANGED
|
@@ -174,7 +174,7 @@ export * from './tooltip/index.mjs'
|
|
|
174
174
|
export * from './uploader/index.mjs'
|
|
175
175
|
export * from './watermark/index.mjs'
|
|
176
176
|
|
|
177
|
-
const version = '2.
|
|
177
|
+
const version = '2.22.0'
|
|
178
178
|
|
|
179
179
|
function install(app) {
|
|
180
180
|
ActionSheet.install && app.use(ActionSheet)
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
var stdin_default = {
|
|
2
|
+
// Dialog
|
|
3
|
+
dialogTitle: "\u0627\u0634\u0627\u0631\u0647",
|
|
4
|
+
dialogConfirmButtonText: "\u062A\u0627\u06CC\u06CC\u062F",
|
|
5
|
+
dialogCancelButtonText: "\u0644\u063A\u0648",
|
|
6
|
+
// ActionSheet
|
|
7
|
+
actionSheetTitle: "\u0627\u0646\u062A\u062E\u0627\u0628 \u06CC\u06A9 \u0645\u0648\u0631\u062F",
|
|
8
|
+
// List
|
|
9
|
+
listLoadingText: "\u062F\u0631 \u062D\u0627\u0644 \u0628\u0627\u0631\u06AF\u0632\u0627\u0631\u06CC",
|
|
10
|
+
listFinishedText: "\u0645\u0648\u0631\u062F \u062F\u06CC\u06AF\u0631\u06CC \u0648\u062C\u0648\u062F \u0646\u062F\u0627\u0631\u062F",
|
|
11
|
+
listErrorText: "\u0628\u0627\u0631\u06AF\u0632\u0627\u0631\u06CC \u0646\u0627\u0645\u0648\u0641\u0642",
|
|
12
|
+
// Picker
|
|
13
|
+
pickerTitle: "\u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F",
|
|
14
|
+
pickerConfirmButtonText: "\u062A\u0627\u06CC\u06CC\u062F",
|
|
15
|
+
pickerCancelButtonText: "\u0644\u063A\u0648",
|
|
16
|
+
// date-picker
|
|
17
|
+
datePickerMonthDict: {
|
|
18
|
+
"01": {
|
|
19
|
+
name: "\u0698\u0627\u0646\u0648\u06CC\u0647",
|
|
20
|
+
abbr: "JAN"
|
|
21
|
+
},
|
|
22
|
+
"02": {
|
|
23
|
+
name: "\u0641\u0648\u0631\u06CC\u0647",
|
|
24
|
+
abbr: "FEB"
|
|
25
|
+
},
|
|
26
|
+
"03": {
|
|
27
|
+
name: "\u0645\u0627\u0631\u0633",
|
|
28
|
+
abbr: "MAR"
|
|
29
|
+
},
|
|
30
|
+
"04": {
|
|
31
|
+
name: "\u0622\u0648\u0631\u06CC\u0644",
|
|
32
|
+
abbr: "APR"
|
|
33
|
+
},
|
|
34
|
+
"05": {
|
|
35
|
+
name: "\u0645\u0647",
|
|
36
|
+
abbr: "MAY"
|
|
37
|
+
},
|
|
38
|
+
"06": {
|
|
39
|
+
name: "\u0698\u0648\u0626\u0646",
|
|
40
|
+
abbr: "JUN"
|
|
41
|
+
},
|
|
42
|
+
"07": {
|
|
43
|
+
name: "\u062C\u0648\u0644\u0627\u06CC",
|
|
44
|
+
abbr: "JUL"
|
|
45
|
+
},
|
|
46
|
+
"08": {
|
|
47
|
+
name: "\u0622\u06AF\u0648\u0633\u062A",
|
|
48
|
+
abbr: "AUG"
|
|
49
|
+
},
|
|
50
|
+
"09": {
|
|
51
|
+
name: "\u0633\u067E\u062A\u0627\u0645\u0628\u0631",
|
|
52
|
+
abbr: "SEP"
|
|
53
|
+
},
|
|
54
|
+
"10": {
|
|
55
|
+
name: "\u0627\u0648\u06A9\u062A\u0628\u0631",
|
|
56
|
+
abbr: "OCT"
|
|
57
|
+
},
|
|
58
|
+
"11": {
|
|
59
|
+
name: "\u0646\u0648\u0627\u0645\u0628\u0631",
|
|
60
|
+
abbr: "NOV"
|
|
61
|
+
},
|
|
62
|
+
"12": {
|
|
63
|
+
name: "\u062F\u0633\u0627\u0645\u0628\u0631",
|
|
64
|
+
abbr: "DEC"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
datePickerWeekDict: {
|
|
68
|
+
"0": {
|
|
69
|
+
name: "\u06CC\u06A9\u0634\u0646\u0628\u0647",
|
|
70
|
+
abbr: "S"
|
|
71
|
+
},
|
|
72
|
+
"1": {
|
|
73
|
+
name: "\u062F\u0648\u0634\u0646\u0628\u0647",
|
|
74
|
+
abbr: "M"
|
|
75
|
+
},
|
|
76
|
+
"2": {
|
|
77
|
+
name: "\u0633\u0647\u200C\u0634\u0646\u0628\u0647",
|
|
78
|
+
abbr: "T"
|
|
79
|
+
},
|
|
80
|
+
"3": {
|
|
81
|
+
name: "\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647",
|
|
82
|
+
abbr: "W"
|
|
83
|
+
},
|
|
84
|
+
"4": {
|
|
85
|
+
name: "\u067E\u0646\u062C\u0634\u0646\u0628\u0647",
|
|
86
|
+
abbr: "T"
|
|
87
|
+
},
|
|
88
|
+
"5": {
|
|
89
|
+
name: "\u062C\u0645\u0639\u0647",
|
|
90
|
+
abbr: "F"
|
|
91
|
+
},
|
|
92
|
+
"6": {
|
|
93
|
+
name: "\u0634\u0646\u0628\u0647",
|
|
94
|
+
abbr: "S"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
datePickerSelected: " \u0627\u0646\u062A\u062E\u0627\u0628 \u0634\u062F\u0647",
|
|
98
|
+
datePickerHint: "\u0627\u0646\u062A\u062E\u0627\u0628 \u062A\u0627\u0631\u06CC\u062E",
|
|
99
|
+
// pagination
|
|
100
|
+
paginationItem: "",
|
|
101
|
+
paginationPage: "\u0635\u0641\u062D\u0647",
|
|
102
|
+
paginationJump: "\u0628\u0631\u0648 \u0628\u0647",
|
|
103
|
+
// time-picker
|
|
104
|
+
timePickerHint: "\u0627\u0646\u062A\u062E\u0627\u0628 \u0632\u0645\u0627\u0646"
|
|
105
|
+
};
|
|
106
|
+
export {
|
|
107
|
+
stdin_default as default
|
|
108
|
+
};
|
package/es/locale/index.mjs
CHANGED
|
@@ -18,6 +18,7 @@ import zhCN from "./zh-CN.mjs";
|
|
|
18
18
|
import enUS from "./en-US.mjs";
|
|
19
19
|
import zhTW from "./zh-TW.mjs";
|
|
20
20
|
import zhHK from "./zh-HK.mjs";
|
|
21
|
+
import faIR from "./fa-IR.mjs";
|
|
21
22
|
import { ref } from "vue";
|
|
22
23
|
function useLocale() {
|
|
23
24
|
const packs2 = {};
|
|
@@ -58,6 +59,7 @@ var stdin_default = {
|
|
|
58
59
|
enUS,
|
|
59
60
|
zhTW,
|
|
60
61
|
zhHK,
|
|
62
|
+
faIR,
|
|
61
63
|
packs,
|
|
62
64
|
pack,
|
|
63
65
|
add,
|
package/es/popup/Popup.mjs
CHANGED
|
@@ -95,7 +95,7 @@ var stdin_default = defineComponent({
|
|
|
95
95
|
"onAfterLeave": props2.onClosed
|
|
96
96
|
}, {
|
|
97
97
|
default: () => [_withDirectives(_createVNode("div", {
|
|
98
|
-
"class": classes(n("$--box"), n()),
|
|
98
|
+
"class": classes(n("$--box"), n(), [!props2.overlay, n("--pointer-events-none")]),
|
|
99
99
|
"style": {
|
|
100
100
|
zIndex: zIndex.value - 2
|
|
101
101
|
}
|
package/es/popup/popup.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root { --popup-content-background-color: #fff; --popup-overlay-background-color: rgba(0, 0, 0, 0.6);}.var-fade-enter-from,.var-fade-leave-to { opacity: 0;}.var-fade-enter-active,.var-fade-leave-active { transition: opacity 0.25s;}.var-pop-center-enter-from,.var-pop-center-leave-to { transform: scale(0.3);}.var-pop-center-enter-active,.var-pop-center-leave-active { transition: all 0.25s;}.var-pop-bottom-enter-from,.var-pop-bottom-leave-to { transform: translateY(100%);}.var-pop-bottom-enter-active,.var-pop-bottom-leave-active { transition: all 0.25s;}.var-pop-top-enter-from,.var-pop-top-leave-to { transform: translateY(-100%);}.var-pop-top-enter-active,.var-pop-top-leave-active { transition: all 0.25s;}.var-pop-left-enter-from,.var-pop-left-leave-to { transform: translateX(-100%);}.var-pop-left-enter-active,.var-pop-left-leave-active { transition: all 0.25s;}.var-pop-right-enter-from,.var-pop-right-leave-to { transform: translateX(100%);}.var-pop-right-enter-active,.var-pop-right-leave-active { transition: all 0.25s;}.var-popup { display: flex; justify-content: center; align-items: center; position: fixed; top: 0; right: 0; bottom: 0; left: 0; overflow: auto;}.var-popup__overlay { display: flex; justify-content: center; align-items: center; position: fixed; top: 0; right: 0; bottom: 0; left: 0; background-color: var(--popup-overlay-background-color); transition: all 0.25s;}.var-popup__content { overflow: auto; transition: all 0.25s;}.var-popup--content-background-color { background-color: var(--popup-content-background-color);}.var-popup--center { position: relative;}.var-popup--bottom { width: 100%; position: absolute; left: 0; bottom: 0;}.var-popup--top { width: 100%; position: absolute; left: 0; top: 0;}.var-popup--left { height: 100%; position: absolute; left: 0; top: 0;}.var-popup--right { height: 100%; position: absolute; right: 0; top: 0;}.var-popup--safe-area { padding-bottom: constant(safe-area-inset-bottom); padding-bottom: env(safe-area-inset-bottom);}.var-popup--safe-area-top { padding-top: constant(safe-area-inset-top); padding-top: env(safe-area-inset-top);}
|
|
1
|
+
:root { --popup-content-background-color: #fff; --popup-overlay-background-color: rgba(0, 0, 0, 0.6);}.var-fade-enter-from,.var-fade-leave-to { opacity: 0;}.var-fade-enter-active,.var-fade-leave-active { transition: opacity 0.25s;}.var-pop-center-enter-from,.var-pop-center-leave-to { transform: scale(0.3);}.var-pop-center-enter-active,.var-pop-center-leave-active { transition: all 0.25s;}.var-pop-bottom-enter-from,.var-pop-bottom-leave-to { transform: translateY(100%);}.var-pop-bottom-enter-active,.var-pop-bottom-leave-active { transition: all 0.25s;}.var-pop-top-enter-from,.var-pop-top-leave-to { transform: translateY(-100%);}.var-pop-top-enter-active,.var-pop-top-leave-active { transition: all 0.25s;}.var-pop-left-enter-from,.var-pop-left-leave-to { transform: translateX(-100%);}.var-pop-left-enter-active,.var-pop-left-leave-active { transition: all 0.25s;}.var-pop-right-enter-from,.var-pop-right-leave-to { transform: translateX(100%);}.var-pop-right-enter-active,.var-pop-right-leave-active { transition: all 0.25s;}.var-popup { display: flex; justify-content: center; align-items: center; position: fixed; top: 0; right: 0; bottom: 0; left: 0; overflow: auto;}.var-popup__overlay { display: flex; justify-content: center; align-items: center; position: fixed; top: 0; right: 0; bottom: 0; left: 0; background-color: var(--popup-overlay-background-color); transition: all 0.25s;}.var-popup__content { overflow: auto; transition: all 0.25s; pointer-events: auto;}.var-popup--content-background-color { background-color: var(--popup-content-background-color);}.var-popup--center { position: relative;}.var-popup--bottom { width: 100%; position: absolute; left: 0; bottom: 0;}.var-popup--top { width: 100%; position: absolute; left: 0; top: 0;}.var-popup--left { height: 100%; position: absolute; left: 0; top: 0;}.var-popup--right { height: 100%; position: absolute; right: 0; top: 0;}.var-popup--safe-area { padding-bottom: constant(safe-area-inset-bottom); padding-bottom: env(safe-area-inset-bottom);}.var-popup--safe-area-top { padding-top: constant(safe-area-inset-top); padding-top: env(safe-area-inset-top);}.var-popup--pointer-events-none { pointer-events: none;}
|
package/es/snackbar/core.mjs
CHANGED
|
@@ -16,9 +16,7 @@ const ICON_TYPE_DICT = {
|
|
|
16
16
|
error: "error",
|
|
17
17
|
loading: ""
|
|
18
18
|
};
|
|
19
|
-
import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementBlock as _createElementBlock, normalizeStyle as _normalizeStyle, vShow as _vShow, withDirectives as _withDirectives
|
|
20
|
-
const _withScopeId = (n2) => (_pushScopeId(""), n2 = n2(), _popScopeId(), n2);
|
|
21
|
-
const _hoisted_1 = { key: 0 };
|
|
19
|
+
import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementBlock as _createElementBlock, normalizeStyle as _normalizeStyle, vShow as _vShow, withDirectives as _withDirectives } from "vue";
|
|
22
20
|
function __render__(_ctx, _cache) {
|
|
23
21
|
const _component_var_icon = _resolveComponent("var-icon");
|
|
24
22
|
const _component_var_loading = _resolveComponent("var-loading");
|
|
@@ -61,20 +59,29 @@ function __render__(_ctx, _cache) {
|
|
|
61
59
|
2
|
|
62
60
|
/* CLASS */
|
|
63
61
|
),
|
|
64
|
-
_ctx.iconName || _ctx.type === "loading" || _ctx.$slots.icon ? (_openBlock(), _createElementBlock(
|
|
65
|
-
|
|
62
|
+
_ctx.iconName || _ctx.type === "loading" || _ctx.$slots.icon ? (_openBlock(), _createElementBlock(
|
|
63
|
+
"div",
|
|
64
|
+
{
|
|
66
65
|
key: 0,
|
|
67
|
-
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
66
|
+
class: _normalizeClass(_ctx.n("icon"))
|
|
67
|
+
},
|
|
68
|
+
[
|
|
69
|
+
_ctx.iconName ? (_openBlock(), _createBlock(_component_var_icon, {
|
|
70
|
+
key: 0,
|
|
71
|
+
name: _ctx.iconName
|
|
72
|
+
}, null, 8, ["name"])) : _createCommentVNode("v-if", true),
|
|
73
|
+
_ctx.type === "loading" ? (_openBlock(), _createBlock(_component_var_loading, {
|
|
74
|
+
key: 1,
|
|
75
|
+
type: _ctx.loadingType,
|
|
76
|
+
size: _ctx.loadingSize,
|
|
77
|
+
color: _ctx.loadingColor,
|
|
78
|
+
radius: _ctx.loadingRadius
|
|
79
|
+
}, null, 8, ["type", "size", "color", "radius"])) : _createCommentVNode("v-if", true),
|
|
80
|
+
_renderSlot(_ctx.$slots, "icon")
|
|
81
|
+
],
|
|
82
|
+
2
|
|
83
|
+
/* CLASS */
|
|
84
|
+
)) : _createCommentVNode("v-if", true),
|
|
78
85
|
_ctx.$slots.action ? (_openBlock(), _createElementBlock(
|
|
79
86
|
"div",
|
|
80
87
|
{
|
package/es/snackbar/snackbar.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root { --snackbar-width: 256px; --snackbar-color: rgba(255, 255, 255, 0.87); --snackbar-border-radius: 4px; --snackbar-background: #333; --snackbar-font-size: var(--font-size-md); --snackbar-margin: 6px 24px; --snackbar-border-color: currentColor; --snackbar-success-background: var(--color-success); --snackbar-info-background: var(--color-info); --snackbar-error-background: var(--color-danger); --snackbar-warning-background: var(--color-warning); --snackbar-content-padding: 14px 16px; --snackbar-action-margin: 0 8px
|
|
1
|
+
:root { --snackbar-width: 256px; --snackbar-color: rgba(255, 255, 255, 0.87); --snackbar-border-radius: 4px; --snackbar-background: #333; --snackbar-font-size: var(--font-size-md); --snackbar-margin: 6px 24px; --snackbar-border-color: currentColor; --snackbar-success-background: var(--color-success); --snackbar-info-background: var(--color-info); --snackbar-error-background: var(--color-danger); --snackbar-warning-background: var(--color-warning); --snackbar-content-padding: 14px 16px; --snackbar-action-margin: 0 8px; --snackbar-vertical-action-margin: 0 8px 8px 0; --snackbar-icon-margin: 0 8px;}.var-transition-group { position: fixed; left: 0; right: 0; top: 0; bottom: 0; pointer-events: none;}.var-pointer-auto { pointer-events: auto;}.var-snackbar { display: flex; justify-content: center; align-items: baseline; left: 0; right: 0; bottom: 0; transition: all 0.15s var(--cubic-bezier);}.var-snackbar__transition { top: 0; position: fixed;}.var-snackbar__transition .var-snackbar__wrapper { position: absolute;}.var-snackbar__transition .var-snackbar__wrapper-top { top: 5%;}.var-snackbar__transition .var-snackbar__wrapper-center { top: 45%;}.var-snackbar__transition .var-snackbar__wrapper-bottom { bottom: 5%;}.var-snackbar__wrapper { width: var(--snackbar-width); display: flex; border-radius: var(--snackbar-border-radius); color: var(--snackbar-color); background: var(--snackbar-background); font-size: var(--snackbar-font-size); margin: var(--snackbar-margin); align-items: center; border-color: var(--snackbar-border-color); pointer-events: auto; transition: 0.3s var(--cubic-bezier);}.var-snackbar__wrapper-success { background: var(--snackbar-success-background);}.var-snackbar__wrapper-info { background: var(--snackbar-info-background);}.var-snackbar__wrapper-warning { background: var(--snackbar-warning-background);}.var-snackbar__wrapper-error { background: var(--snackbar-error-background);}.var-snackbar__icon { margin: var(--snackbar-icon-margin);}.var-snackbar__content { flex-grow: 1; padding: var(--snackbar-content-padding);}.var-snackbar__action { margin: var(--snackbar-action-margin); display: flex;}.var-snackbar__vertical { flex-direction: column; align-items: flex-start;}.var-snackbar__vertical .var-snackbar__action { align-self: flex-end; margin: var(--snackbar-vertical-action-margin);}.var-snackbar-fade-enter-from,.var-snackbar-fade-leave-to { opacity: 0; transform: translateY(-30px);}
|