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 CHANGED
@@ -84,4 +84,4 @@ declare namespace _default {
84
84
  }
85
85
  export default _default;
86
86
  export function install(app: any): void;
87
- export const version: "3.2.3";
87
+ export const version: "3.2.4";
package/es/index.mjs CHANGED
@@ -77,7 +77,7 @@ import { Timeline } from "./timeline/index.mjs";
77
77
  import { Toast } from "./toast/index.mjs";
78
78
  import { Uploader } from "./uploader/index.mjs";
79
79
  import { Video } from "./video/index.mjs";
80
- const version = "3.2.3";
80
+ const version = "3.2.4";
81
81
  function install(app) {
82
82
  const components = [
83
83
  ActionSheet,
@@ -62,6 +62,9 @@ var stdin_default = defineComponent({
62
62
  fontSize: addUnit(size),
63
63
  backgroundColor: checked ? activeColor : inactiveColor
64
64
  };
65
+ const nodeStyle = {
66
+ fontSize: addUnit(size)
67
+ };
65
68
  return _createVNode("div", {
66
69
  "role": "switch",
67
70
  "class": bem({
@@ -74,7 +77,8 @@ var stdin_default = defineComponent({
74
77
  "aria-checked": checked,
75
78
  "onClick": onClick
76
79
  }, [_createVNode("div", {
77
- "class": bem("node")
80
+ "class": bem("node"),
81
+ "style": nodeStyle
78
82
  }, [renderLoading()]), (_a = slots.background) == null ? void 0 : _a.call(slots)]);
79
83
  };
80
84
  }
@@ -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: 20px;--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)}
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)}