zartui 3.2.3 → 3.2.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/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/switch/Switch.mjs +5 -1
- package/es/switch/index.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/switch/Switch.js +5 -1
- package/lib/switch/index.css +1 -1
- package/lib/web-types.json +1 -1
- package/lib/zartui.cjs.js +6 -2
- package/lib/zartui.es.js +6 -2
- package/lib/zartui.js +6 -2
- package/lib/zartui.min.js +1 -1
- package/package.json +6 -6
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -182,7 +182,7 @@ __reExport(stdin_exports, require("./timeline"), module.exports);
|
|
|
182
182
|
__reExport(stdin_exports, require("./toast"), module.exports);
|
|
183
183
|
__reExport(stdin_exports, require("./uploader"), module.exports);
|
|
184
184
|
__reExport(stdin_exports, require("./video"), module.exports);
|
|
185
|
-
const version = "3.2.
|
|
185
|
+
const version = "3.2.4";
|
|
186
186
|
function install(app) {
|
|
187
187
|
const components = [
|
|
188
188
|
import_action_sheet.ActionSheet,
|
package/lib/switch/Switch.js
CHANGED
|
@@ -84,6 +84,9 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
84
84
|
fontSize: (0, import_utils.addUnit)(size),
|
|
85
85
|
backgroundColor: checked ? activeColor : inactiveColor
|
|
86
86
|
};
|
|
87
|
+
const nodeStyle = {
|
|
88
|
+
fontSize: (0, import_utils.addUnit)(size)
|
|
89
|
+
};
|
|
87
90
|
return (0, import_vue.createVNode)("div", {
|
|
88
91
|
"role": "switch",
|
|
89
92
|
"class": bem({
|
|
@@ -96,7 +99,8 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
96
99
|
"aria-checked": checked,
|
|
97
100
|
"onClick": onClick
|
|
98
101
|
}, [(0, import_vue.createVNode)("div", {
|
|
99
|
-
"class": bem("node")
|
|
102
|
+
"class": bem("node"),
|
|
103
|
+
"style": nodeStyle
|
|
100
104
|
}, [renderLoading()]), (_a = slots.background) == null ? void 0 : _a.call(slots)]);
|
|
101
105
|
};
|
|
102
106
|
}
|
package/lib/switch/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-switch-font-size: 28px;--zt-switch-width:calc(1.5em + 12px);--zt-switch-height: 1em;--zt-switch-shadow: inset 2px 2px 4px 1px rgba(0, 0, 0, .15);--zt-switch-node-size:
|
|
1
|
+
:root{--zt-switch-font-size: 28px;--zt-switch-width:calc(1.5em + 12px);--zt-switch-height: 1em;--zt-switch-shadow: inset 2px 2px 4px 1px rgba(0, 0, 0, .15);--zt-switch-node-size:calc(1em - 8px);--zt-switch-node-background: var(--zt-gray-00);--zt-switch-node-on-background: var(--zt-gray-00);--zt-switch-node-border: 1px solid #ffffff99;--zt-switch-node-on-border: var(--zt-switch-node-border);--zt-switch-node-shadow: 0px 0px 4px 2px rgba(0, 0, 0, .15);--zt-switch-node-on-shadow: -2px 2px 4px 0 rgba(45, 75, 115, .4);--zt-switch-background: var(--zt-gray-40);--zt-switch-on-background: var(--zt-primary-color);--zt-switch-duration: var(--zt-duration-base);--zt-switch-disabled-opacity: var(--zt-disabled-opacity)}:root[zt-theme-size=large]{--zt-switch-font-size: 34px}.zt-switch{position:relative;display:inline-block;box-sizing:content-box;width:var(--zt-switch-width);height:var(--zt-switch-height);font-size:var(--zt-switch-font-size);background:var(--zt-switch-background);border-radius:var(--zt-switch-node-size);cursor:pointer;transition:background-color var(--zt-switch-duration)}.zt-switch__node{position:absolute;top:4px;left:4px;width:var(--zt-switch-node-size);height:var(--zt-switch-node-size);font-size:inherit;background:var(--zt-switch-node-background);border-radius:100%;transition:transform var(--zt-switch-duration) cubic-bezier(.3,1.05,.4,1.05)}.zt-switch__loading{top:25%;left:25%;width:50%;height:50%;line-height:1}.zt-switch--on{background:var(--zt-switch-on-background)}.zt-switch--on .zt-switch__node{left:-2px;background:var(--zt-switch-node-on-background);transform:translate(calc(var(--zt-switch-width) - var(--zt-switch-node-size) - 4px))}.zt-switch--on .zt-switch__loading{color:var(--zt-switch-on-background)}.zt-switch--disabled{cursor:not-allowed;opacity:var(--zt-switch-disabled-opacity)}.zt-switch--loading{cursor:default}.zt-theme-dark{--zt-switch-shadow: inset 4px 4px 8px 0 #0f1923;--zt-switch-background: #202d39;--zt-switch-on-shadow: inset 2px 2px 4px 0 #2d4b7366;--zt-switch-node-background: linear-gradient(135deg, #0e1824 0%, #24364b 100%);--zt-switch-node-on-background: linear-gradient(135deg, #dce1eb 0%, #ffffff 100%);--zt-switch-node-border: 1px solid rgba(255, 255, 255, .08);--zt-switch-node-on-border: 1px solid rgba(255, 255, 255, .6);--zt-switch-node-shadow: 0 0 5px 0 rgba(0, 12, 24, .8)}
|