@varlet/ui 3.5.0 → 3.5.1-alpha.1726764162524

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.
Files changed (64) hide show
  1. package/es/action-sheet/style/index.mjs +1 -1
  2. package/es/auto-complete/AutoComplete.mjs +1 -2
  3. package/es/avatar/Avatar.mjs +1 -2
  4. package/es/badge/Badge.mjs +1 -2
  5. package/es/button/Button.mjs +1 -2
  6. package/es/card/Card.mjs +2 -4
  7. package/es/checkbox/Checkbox.mjs +1 -2
  8. package/es/collapse/Collapse.mjs +1 -2
  9. package/es/collapse-item/CollapseItem.mjs +1 -2
  10. package/es/counter/Counter.mjs +1 -2
  11. package/es/date-picker/DatePicker.mjs +30 -60
  12. package/es/date-picker/src/day-picker-panel.mjs +18 -33
  13. package/es/date-picker/src/month-picker-panel.mjs +21 -39
  14. package/es/date-picker/src/panel-header.mjs +3 -6
  15. package/es/date-picker/src/year-picker-panel.mjs +19 -35
  16. package/es/ellipsis/Ellipsis.mjs +1 -2
  17. package/es/fab/Fab.mjs +1 -1
  18. package/es/field-decorator/FieldDecorator.mjs +1 -2
  19. package/es/form-details/FormDetails.mjs +1 -2
  20. package/es/hover/index.mjs +1 -2
  21. package/es/image/Image.mjs +1 -2
  22. package/es/image-preview/ImagePreview.mjs +1 -2
  23. package/es/index-bar/IndexBar.mjs +3 -6
  24. package/es/index.bundle.mjs +1 -1
  25. package/es/index.mjs +1 -1
  26. package/es/input/Input.mjs +1 -2
  27. package/es/loading/Loading.mjs +17 -20
  28. package/es/menu-option/MenuOption.mjs +1 -2
  29. package/es/option/Option.mjs +1 -2
  30. package/es/overlay/Overlay.mjs +1 -2
  31. package/es/pagination/Pagination.mjs +5 -10
  32. package/es/picker/Picker.mjs +1 -2
  33. package/es/popup/Popup.mjs +1 -2
  34. package/es/progress/Progress.mjs +1 -2
  35. package/es/radio/Radio.mjs +1 -2
  36. package/es/rate/Rate.mjs +1 -2
  37. package/es/result/Empty.mjs +13 -16
  38. package/es/result/Error.mjs +10 -13
  39. package/es/result/Info.mjs +10 -13
  40. package/es/result/Question.mjs +10 -13
  41. package/es/result/Warning.mjs +10 -13
  42. package/es/select/Select.mjs +1 -2
  43. package/es/slider/Slider.mjs +1 -2
  44. package/es/snackbar/index.mjs +4 -5
  45. package/es/space/Space.mjs +1 -2
  46. package/es/step/Step.mjs +1 -2
  47. package/es/style.css +1 -1
  48. package/es/swipe/Swipe.mjs +1 -2
  49. package/es/swipe-item/SwipeItem.mjs +1 -2
  50. package/es/switch/Switch.mjs +17 -20
  51. package/es/tabs/Tabs.mjs +1 -2
  52. package/es/time-picker/TimePicker.mjs +13 -26
  53. package/es/time-picker/clock.mjs +11 -22
  54. package/es/time-picker/utils.mjs +4 -8
  55. package/es/uploader/Uploader.mjs +1 -2
  56. package/es/utils/elements.mjs +1 -2
  57. package/es/utils/test.mjs +1 -4
  58. package/es/varlet.esm.js +5120 -5252
  59. package/es/watermark/Watermark.mjs +1 -2
  60. package/highlight/web-types.en-US.json +1 -1
  61. package/highlight/web-types.zh-CN.json +1 -1
  62. package/lib/varlet.cjs.js +501 -842
  63. package/package.json +7 -7
  64. package/umd/varlet.js +8 -8
@@ -10,8 +10,7 @@ import { isArray, isNumber, toNumber, getRect, preventDefault, call, hasOwn, cla
10
10
  import { props, Thumbs } from "./props.mjs";
11
11
  import { onSmartMounted, onWindowResize, useEventListener } from "@varlet/use";
12
12
  const { name, n, classes } = createNamespace("slider");
13
- import { normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, renderSlot as _renderSlot, resolveDirective as _resolveDirective, withDirectives as _withDirectives, resolveComponent as _resolveComponent, createVNode as _createVNode, toDisplayString as _toDisplayString, withModifiers as _withModifiers, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
14
- const _withScopeId = (n2) => (_pushScopeId(""), n2 = n2(), _popScopeId(), n2);
13
+ import { normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, renderSlot as _renderSlot, resolveDirective as _resolveDirective, withDirectives as _withDirectives, resolveComponent as _resolveComponent, createVNode as _createVNode, toDisplayString as _toDisplayString, withModifiers as _withModifiers } from "vue";
15
14
  const _hoisted_1 = ["tabindex", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-disabled", "aria-valuetext", "onTouchstart", "onFocusin", "onFocusout"];
16
15
  function __render__(_ctx, _cache) {
17
16
  const _component_var_hover_overlay = _resolveComponent("var-hover-overlay");
@@ -14,7 +14,7 @@ var __spreadValues = (a, b) => {
14
14
  }
15
15
  return a;
16
16
  };
17
- import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
17
+ import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
18
18
  import VarSnackbarCore from "./core.mjs";
19
19
  import VarSnackbar from "./Snackbar.mjs";
20
20
  import context from "../context/index.mjs";
@@ -208,10 +208,9 @@ function updateUniqOption(reactiveSnackOptions, _update) {
208
208
  firstOption._update = _update;
209
209
  }
210
210
  function getTop(position = "top") {
211
- if (position === "bottom")
212
- return {
213
- top: "85%"
214
- };
211
+ if (position === "bottom") return {
212
+ top: "85%"
213
+ };
215
214
  return {
216
215
  top: position === "top" ? "5%" : "45%"
217
216
  };
@@ -1,5 +1,4 @@
1
- import { createVNode as _createVNode } from "vue";
2
- import { defineComponent } from "vue";
1
+ import { defineComponent, createVNode as _createVNode } from "vue";
3
2
  import { props } from "./props.mjs";
4
3
  import { isArray, call } from "@varlet/shared";
5
4
  import { createNamespace, flatFragment } from "../utils/components.mjs";
package/es/step/Step.mjs CHANGED
@@ -5,8 +5,7 @@ import { useSteps } from "./provide.mjs";
5
5
  import { toNumber } from "@varlet/shared";
6
6
  import { createNamespace } from "../utils/components.mjs";
7
7
  const { name, n, classes } = createNamespace("step");
8
- import { resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, renderSlot as _renderSlot, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
9
- const _withScopeId = (n2) => (_pushScopeId(""), n2 = n2(), _popScopeId(), n2);
8
+ import { resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, renderSlot as _renderSlot } from "vue";
10
9
  const _hoisted_1 = { key: 3 };
11
10
  function __render__(_ctx, _cache) {
12
11
  const _component_var_icon = _resolveComponent("var-icon");