@varlet/ui 3.8.2 → 3.9.0-alpha.1736270797421

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 (321) hide show
  1. package/es/action-sheet/ActionItem.mjs +4 -4
  2. package/es/action-sheet/ActionSheet.mjs +9 -9
  3. package/es/action-sheet/index.mjs +2 -2
  4. package/es/action-sheet/props.mjs +1 -1
  5. package/es/alert/Alert.mjs +3 -3
  6. package/es/alert/index.mjs +1 -1
  7. package/es/app-bar/AppBar.mjs +5 -5
  8. package/es/app-bar/index.mjs +1 -1
  9. package/es/auto-complete/AutoComplete.mjs +23 -27
  10. package/es/auto-complete/index.mjs +1 -1
  11. package/es/auto-complete/props.mjs +1 -1
  12. package/es/avatar/Avatar.mjs +5 -5
  13. package/es/avatar/index.mjs +1 -1
  14. package/es/avatar-group/AvatarGroup.mjs +2 -2
  15. package/es/avatar-group/index.mjs +1 -1
  16. package/es/back-top/BackTop.mjs +7 -7
  17. package/es/back-top/index.mjs +1 -1
  18. package/es/badge/Badge.mjs +3 -3
  19. package/es/badge/index.mjs +1 -1
  20. package/es/badge/props.mjs +1 -1
  21. package/es/bottom-navigation/BottomNavigation.mjs +8 -9
  22. package/es/bottom-navigation/index.mjs +1 -1
  23. package/es/bottom-navigation-item/BottomNavigationItem.mjs +4 -4
  24. package/es/bottom-navigation-item/index.mjs +1 -1
  25. package/es/bottom-navigation-item/provide.mjs +1 -1
  26. package/es/breadcrumb/Breadcrumb.mjs +3 -3
  27. package/es/breadcrumb/index.mjs +1 -1
  28. package/es/breadcrumb/provide.mjs +1 -1
  29. package/es/breadcrumbs/Breadcrumbs.mjs +2 -2
  30. package/es/breadcrumbs/index.mjs +1 -1
  31. package/es/button/Button.mjs +6 -6
  32. package/es/button/index.mjs +1 -1
  33. package/es/button-group/ButtonGroup.mjs +1 -1
  34. package/es/button-group/index.mjs +1 -1
  35. package/es/card/Card.mjs +39 -39
  36. package/es/card/index.mjs +1 -1
  37. package/es/cell/Cell.mjs +3 -3
  38. package/es/cell/index.mjs +1 -1
  39. package/es/cell/props.mjs +1 -1
  40. package/es/checkbox/Checkbox.mjs +7 -7
  41. package/es/checkbox/index.mjs +1 -1
  42. package/es/checkbox-group/CheckboxGroup.mjs +5 -5
  43. package/es/checkbox-group/index.mjs +1 -1
  44. package/es/chip/Chip.mjs +4 -4
  45. package/es/chip/index.mjs +1 -1
  46. package/es/chip/props.mjs +1 -1
  47. package/es/code/Code.mjs +1 -1
  48. package/es/code/index.mjs +1 -1
  49. package/es/col/Col.mjs +4 -4
  50. package/es/col/index.mjs +1 -1
  51. package/es/collapse/Collapse.mjs +6 -4
  52. package/es/collapse/index.mjs +1 -1
  53. package/es/collapse-item/CollapseItem.mjs +4 -4
  54. package/es/collapse-item/index.mjs +1 -1
  55. package/es/collapse-item/provide.mjs +1 -1
  56. package/es/collapse-transition/CollapseTransition.mjs +2 -2
  57. package/es/collapse-transition/index.mjs +1 -1
  58. package/es/collapse-transition/useCollapseTransition.mjs +1 -1
  59. package/es/context/lock.mjs +1 -1
  60. package/es/context/stack.mjs +1 -1
  61. package/es/context/zIndex.mjs +1 -1
  62. package/es/count-to/CountTo.mjs +4 -4
  63. package/es/count-to/index.mjs +1 -1
  64. package/es/countdown/Countdown.mjs +2 -2
  65. package/es/countdown/index.mjs +1 -1
  66. package/es/counter/Counter.mjs +8 -8
  67. package/es/counter/index.mjs +1 -1
  68. package/es/date-picker/DatePicker.mjs +92 -43
  69. package/es/date-picker/index.mjs +1 -1
  70. package/es/date-picker/src/day-picker-panel.mjs +59 -27
  71. package/es/date-picker/src/month-picker-panel.mjs +57 -23
  72. package/es/date-picker/src/panel-header.mjs +12 -6
  73. package/es/date-picker/src/year-picker-panel.mjs +53 -23
  74. package/es/dialog/Dialog.mjs +5 -5
  75. package/es/dialog/index.mjs +3 -3
  76. package/es/dialog/props.mjs +1 -1
  77. package/es/divider/Divider.mjs +4 -4
  78. package/es/divider/index.mjs +1 -1
  79. package/es/drag/Drag.mjs +21 -42
  80. package/es/drag/index.mjs +1 -1
  81. package/es/ellipsis/Ellipsis.mjs +2 -2
  82. package/es/ellipsis/index.mjs +1 -1
  83. package/es/fab/Fab.mjs +4 -5
  84. package/es/fab/index.mjs +1 -1
  85. package/es/fab/props.mjs +1 -1
  86. package/es/field-decorator/FieldDecorator.mjs +5 -5
  87. package/es/field-decorator/index.mjs +1 -1
  88. package/es/floating-panel/FloatingPanel.mjs +6 -6
  89. package/es/floating-panel/index.mjs +1 -1
  90. package/es/form/Form.mjs +4 -4
  91. package/es/form/index.mjs +2 -2
  92. package/es/form/provide.mjs +1 -1
  93. package/es/form-details/index.mjs +1 -1
  94. package/es/highlighter-provider/HighlighterProvider.mjs +2 -2
  95. package/es/highlighter-provider/index.mjs +1 -1
  96. package/es/highlighter-provider/provide.mjs +1 -1
  97. package/es/hover/index.mjs +12 -7
  98. package/es/hover-overlay/HoverOverlay.mjs +2 -2
  99. package/es/hover-overlay/index.mjs +2 -2
  100. package/es/icon/Icon.mjs +3 -3
  101. package/es/icon/index.mjs +1 -1
  102. package/es/image/Image.mjs +5 -5
  103. package/es/image/index.mjs +1 -1
  104. package/es/image-preview/ImagePreview.mjs +13 -14
  105. package/es/image-preview/index.mjs +2 -2
  106. package/es/image-preview/props.mjs +2 -2
  107. package/es/index-anchor/IndexAnchor.mjs +5 -5
  108. package/es/index-anchor/index.mjs +1 -1
  109. package/es/index-anchor/provide.mjs +1 -1
  110. package/es/index-bar/IndexBar.mjs +17 -13
  111. package/es/index-bar/index.mjs +1 -1
  112. package/es/index.bundle.mjs +1 -1
  113. package/es/index.mjs +1 -1
  114. package/es/input/Input.mjs +12 -12
  115. package/es/input/index.mjs +1 -1
  116. package/es/input/props.mjs +1 -1
  117. package/es/lazy/index.mjs +1 -1
  118. package/es/link/Link.mjs +2 -2
  119. package/es/link/index.mjs +1 -1
  120. package/es/list/List.mjs +10 -10
  121. package/es/list/index.mjs +1 -1
  122. package/es/list/provide.mjs +1 -1
  123. package/es/loading/Loading.mjs +2 -2
  124. package/es/loading/index.mjs +1 -1
  125. package/es/loading-bar/LoadingBar.mjs +1 -2
  126. package/es/loading-bar/index.mjs +1 -1
  127. package/es/locale/index.mjs +5 -5
  128. package/es/locale-provider/LocaleProvider.mjs +11 -8
  129. package/es/locale-provider/index.mjs +1 -1
  130. package/es/locale-provider/provide.mjs +1 -1
  131. package/es/menu/Menu.mjs +2 -2
  132. package/es/menu/index.mjs +1 -1
  133. package/es/menu/usePopover.mjs +6 -6
  134. package/es/menu-option/MenuOption.mjs +9 -9
  135. package/es/menu-option/index.mjs +1 -1
  136. package/es/menu-option/provide.mjs +1 -1
  137. package/es/menu-select/MenuChildren.mjs +21 -21
  138. package/es/menu-select/MenuSelect.mjs +9 -9
  139. package/es/menu-select/index.mjs +1 -1
  140. package/es/option/Option.mjs +5 -5
  141. package/es/option/index.mjs +1 -1
  142. package/es/option/provide.mjs +1 -1
  143. package/es/overlay/Overlay.mjs +4 -4
  144. package/es/overlay/index.mjs +1 -1
  145. package/es/pagination/Pagination.mjs +26 -18
  146. package/es/pagination/index.mjs +1 -1
  147. package/es/paper/Paper.mjs +3 -3
  148. package/es/paper/index.mjs +1 -1
  149. package/es/picker/Picker.mjs +9 -9
  150. package/es/picker/index.mjs +2 -2
  151. package/es/picker/props.mjs +1 -1
  152. package/es/popup/Popup.mjs +6 -6
  153. package/es/popup/index.mjs +1 -1
  154. package/es/progress/Progress.mjs +4 -4
  155. package/es/progress/index.mjs +1 -1
  156. package/es/pull-refresh/PullRefresh.mjs +10 -12
  157. package/es/pull-refresh/index.mjs +1 -1
  158. package/es/radio/Radio.mjs +10 -9
  159. package/es/radio/index.mjs +1 -1
  160. package/es/radio-group/RadioGroup.mjs +7 -6
  161. package/es/radio-group/index.mjs +1 -1
  162. package/es/rate/Rate.mjs +8 -8
  163. package/es/rate/index.mjs +1 -1
  164. package/es/rate/props.mjs +1 -1
  165. package/es/result/Result.mjs +7 -7
  166. package/es/result/index.mjs +1 -1
  167. package/es/ripple/index.mjs +1 -1
  168. package/es/row/Row.mjs +4 -4
  169. package/es/row/index.mjs +1 -1
  170. package/es/select/Select.mjs +13 -13
  171. package/es/select/index.mjs +1 -1
  172. package/es/select/props.mjs +1 -1
  173. package/es/skeleton/Skeleton.mjs +3 -3
  174. package/es/skeleton/index.mjs +1 -1
  175. package/es/slider/Slider.mjs +9 -9
  176. package/es/slider/index.mjs +1 -1
  177. package/es/snackbar/Snackbar.mjs +1 -1
  178. package/es/snackbar/core.mjs +8 -8
  179. package/es/snackbar/index.mjs +9 -8
  180. package/es/snackbar/props.mjs +1 -1
  181. package/es/snackbar/style/index.mjs +1 -1
  182. package/es/space/Space.mjs +2 -2
  183. package/es/space/index.mjs +1 -1
  184. package/es/step/Step.mjs +3 -3
  185. package/es/step/index.mjs +1 -1
  186. package/es/step/provide.mjs +1 -1
  187. package/es/steps/Steps.mjs +3 -3
  188. package/es/steps/index.mjs +1 -1
  189. package/es/sticky/Sticky.mjs +7 -7
  190. package/es/sticky/index.mjs +1 -1
  191. package/es/style-provider/StyleProvider.mjs +2 -2
  192. package/es/style-provider/index.mjs +2 -2
  193. package/es/swipe/Swipe.mjs +10 -10
  194. package/es/swipe/index.mjs +1 -1
  195. package/es/swipe-item/SwipeItem.mjs +1 -1
  196. package/es/swipe-item/index.mjs +1 -1
  197. package/es/swipe-item/provide.mjs +1 -1
  198. package/es/switch/Switch.mjs +6 -6
  199. package/es/switch/index.mjs +1 -1
  200. package/es/tab/Tab.mjs +4 -4
  201. package/es/tab/index.mjs +1 -1
  202. package/es/tab/provide.mjs +1 -1
  203. package/es/tab-item/TabItem.mjs +3 -3
  204. package/es/tab-item/index.mjs +1 -1
  205. package/es/tab-item/provide.mjs +1 -1
  206. package/es/table/Table.mjs +1 -1
  207. package/es/table/index.mjs +1 -1
  208. package/es/tabs/Tabs.mjs +9 -7
  209. package/es/tabs/index.mjs +1 -1
  210. package/es/tabs/props.mjs +1 -1
  211. package/es/tabs-items/TabsItems.mjs +4 -4
  212. package/es/tabs-items/index.mjs +1 -1
  213. package/es/themes/dark/index.mjs +33 -33
  214. package/es/themes/index.mjs +1 -1
  215. package/es/themes/md3-dark/index.mjs +45 -45
  216. package/es/themes/md3-light/index.mjs +39 -39
  217. package/es/time-picker/TimePicker.mjs +48 -24
  218. package/es/time-picker/clock.mjs +41 -19
  219. package/es/time-picker/index.mjs +1 -1
  220. package/es/time-picker/utils.mjs +13 -5
  221. package/es/tooltip/Tooltip.mjs +2 -2
  222. package/es/tooltip/index.mjs +1 -1
  223. package/es/uploader/Uploader.mjs +14 -14
  224. package/es/uploader/index.mjs +1 -1
  225. package/es/utils/components.mjs +5 -5
  226. package/es/utils/elements.mjs +9 -9
  227. package/es/utils/test.mjs +1 -1
  228. package/es/varlet.esm.js +20946 -20941
  229. package/es/watermark/Watermark.mjs +15 -17
  230. package/es/watermark/index.mjs +1 -1
  231. package/highlight/web-types.en-US.json +1 -1
  232. package/highlight/web-types.zh-CN.json +1 -1
  233. package/lib/varlet.cjs.js +25205 -25003
  234. package/package.json +7 -7
  235. package/types/actionSheet.d.ts +2 -2
  236. package/types/alert.d.ts +1 -1
  237. package/types/appBar.d.ts +1 -1
  238. package/types/autoComplete.d.ts +4 -4
  239. package/types/avatar.d.ts +1 -1
  240. package/types/avatarGroup.d.ts +1 -1
  241. package/types/backTop.d.ts +1 -1
  242. package/types/badge.d.ts +1 -1
  243. package/types/bottomNavigation.d.ts +2 -2
  244. package/types/bottomNavigationItem.d.ts +2 -2
  245. package/types/breadcrumb.d.ts +1 -1
  246. package/types/breadcrumbs.d.ts +1 -1
  247. package/types/button.d.ts +5 -5
  248. package/types/buttonGroup.d.ts +2 -2
  249. package/types/card.d.ts +1 -1
  250. package/types/cell.d.ts +1 -1
  251. package/types/checkbox.d.ts +1 -1
  252. package/types/checkboxGroup.d.ts +2 -2
  253. package/types/chip.d.ts +3 -3
  254. package/types/code.d.ts +1 -1
  255. package/types/col.d.ts +1 -1
  256. package/types/collapse.d.ts +1 -1
  257. package/types/collapseItem.d.ts +1 -1
  258. package/types/collapseTransition.d.ts +1 -1
  259. package/types/countTo.d.ts +1 -1
  260. package/types/countdown.d.ts +1 -1
  261. package/types/counter.d.ts +1 -1
  262. package/types/datePicker.d.ts +1 -1
  263. package/types/dialog.d.ts +1 -1
  264. package/types/divider.d.ts +1 -1
  265. package/types/drag.d.ts +1 -1
  266. package/types/ellipsis.d.ts +1 -1
  267. package/types/fab.d.ts +2 -2
  268. package/types/floatingPanel.d.ts +2 -2
  269. package/types/form.d.ts +1 -1
  270. package/types/formDetails.d.ts +1 -1
  271. package/types/highlighterProvider.d.ts +1 -1
  272. package/types/hover.d.ts +1 -1
  273. package/types/hoverOverlay.d.ts +1 -1
  274. package/types/icon.d.ts +1 -1
  275. package/types/image.d.ts +2 -2
  276. package/types/imagePreview.d.ts +2 -2
  277. package/types/indexAnchor.d.ts +1 -1
  278. package/types/indexBar.d.ts +1 -1
  279. package/types/input.d.ts +4 -4
  280. package/types/link.d.ts +1 -1
  281. package/types/list.d.ts +1 -1
  282. package/types/loading.d.ts +1 -1
  283. package/types/localeProvider.d.ts +2 -2
  284. package/types/menu.d.ts +2 -2
  285. package/types/menuOption.d.ts +1 -1
  286. package/types/menuSelect.d.ts +2 -2
  287. package/types/option.d.ts +1 -1
  288. package/types/overlay.d.ts +2 -2
  289. package/types/pagination.d.ts +1 -1
  290. package/types/paper.d.ts +1 -1
  291. package/types/picker.d.ts +3 -3
  292. package/types/popup.d.ts +2 -2
  293. package/types/progress.d.ts +1 -1
  294. package/types/pullRefresh.d.ts +1 -1
  295. package/types/radio.d.ts +1 -1
  296. package/types/radioGroup.d.ts +3 -3
  297. package/types/rate.d.ts +1 -1
  298. package/types/result.d.ts +1 -1
  299. package/types/row.d.ts +1 -1
  300. package/types/select.d.ts +3 -3
  301. package/types/skeleton.d.ts +1 -1
  302. package/types/slider.d.ts +4 -4
  303. package/types/snackbar.d.ts +2 -2
  304. package/types/space.d.ts +1 -1
  305. package/types/step.d.ts +1 -1
  306. package/types/steps.d.ts +3 -3
  307. package/types/sticky.d.ts +1 -1
  308. package/types/styleProvider.d.ts +2 -2
  309. package/types/swipe.d.ts +1 -1
  310. package/types/swipeItem.d.ts +1 -1
  311. package/types/switch.d.ts +1 -1
  312. package/types/tab.d.ts +1 -1
  313. package/types/tabItem.d.ts +1 -1
  314. package/types/table.d.ts +1 -1
  315. package/types/tabs.d.ts +3 -3
  316. package/types/tabsItems.d.ts +2 -2
  317. package/types/timePicker.d.ts +1 -1
  318. package/types/tooltip.d.ts +2 -2
  319. package/types/uploader.d.ts +2 -2
  320. package/types/watermark.d.ts +1 -1
  321. package/umd/varlet.js +7 -7
@@ -1,8 +1,8 @@
1
- import Ripple from "../ripple/index.mjs";
2
- import VarIcon from "../icon/index.mjs";
3
- import VarHoverOverlay, { useHoverOverlay } from "../hover-overlay/index.mjs";
4
- import Hover from "../hover/index.mjs";
5
1
  import { defineComponent } from "vue";
2
+ import Hover from "../hover/index.mjs";
3
+ import VarHoverOverlay, { useHoverOverlay } from "../hover-overlay/index.mjs";
4
+ import VarIcon from "../icon/index.mjs";
5
+ import Ripple from "../ripple/index.mjs";
6
6
  import { createNamespace } from "../utils/components.mjs";
7
7
  const { name, n, classes } = createNamespace("action-sheet");
8
8
  import { resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createVNode as _createVNode, normalizeStyle as _normalizeStyle, resolveDirective as _resolveDirective, createElementBlock as _createElementBlock, withDirectives as _withDirectives } from "vue";
@@ -1,19 +1,21 @@
1
- import Ripple from "../ripple/index.mjs";
2
- import VarPopup from "../popup/index.mjs";
3
- import VarActionItem from "./ActionItem.mjs";
4
1
  import { defineComponent } from "vue";
5
- import { props } from "./props.mjs";
6
- import { t } from "../locale/index.mjs";
7
- import { createNamespace } from "../utils/components.mjs";
8
2
  import { call } from "@varlet/shared";
9
3
  import { useVModel } from "@varlet/use";
4
+ import { t } from "../locale/index.mjs";
10
5
  import { injectLocaleProvider } from "../locale-provider/provide.mjs";
6
+ import VarPopup from "../popup/index.mjs";
7
+ import Ripple from "../ripple/index.mjs";
8
+ import { createNamespace } from "../utils/components.mjs";
9
+ import VarActionItem from "./ActionItem.mjs";
10
+ import { props } from "./props.mjs";
11
11
  const { name, n, classes } = createNamespace("action-sheet");
12
12
  import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, resolveComponent as _resolveComponent, createBlock as _createBlock, mergeProps as _mergeProps, withCtx as _withCtx } from "vue";
13
13
  function __render__(_ctx, _cache) {
14
14
  const _component_var_action_item = _resolveComponent("var-action-item");
15
15
  const _component_var_popup = _resolveComponent("var-popup");
16
16
  return _openBlock(), _createBlock(_component_var_popup, {
17
+ show: _ctx.show,
18
+ "onUpdate:show": _cache[0] || (_cache[0] = ($event) => _ctx.show = $event),
17
19
  position: "bottom",
18
20
  class: _normalizeClass(_ctx.n("popup-radius")),
19
21
  overlay: _ctx.overlay,
@@ -24,8 +26,6 @@ function __render__(_ctx, _cache) {
24
26
  "close-on-key-escape": _ctx.closeOnKeyEscape,
25
27
  teleport: _ctx.teleport,
26
28
  "safe-area": _ctx.safeArea,
27
- show: _ctx.show,
28
- "onUpdate:show": _cache[0] || (_cache[0] = ($event) => _ctx.show = $event),
29
29
  onOpen: _ctx.onOpen,
30
30
  onClose: _ctx.onClose,
31
31
  onClosed: _ctx.onClosed,
@@ -81,7 +81,7 @@ function __render__(_ctx, _cache) {
81
81
  ]),
82
82
  _: 3
83
83
  /* FORWARDED */
84
- }, 8, ["class", "overlay", "overlay-class", "overlay-style", "lock-scroll", "close-on-click-overlay", "close-on-key-escape", "teleport", "safe-area", "show", "onOpen", "onClose", "onClosed", "onOpened", "onRouteChange", "onKeyEscape"]);
84
+ }, 8, ["show", "class", "overlay", "overlay-class", "overlay-style", "lock-scroll", "close-on-click-overlay", "close-on-key-escape", "teleport", "safe-area", "onOpen", "onClose", "onClosed", "onOpened", "onRouteChange", "onKeyEscape"]);
85
85
  }
86
86
  const __sfc__ = defineComponent({
87
87
  name,
@@ -14,10 +14,10 @@ var __spreadValues = (a, b) => {
14
14
  }
15
15
  return a;
16
16
  };
17
- import VarActionSheet from "./ActionSheet.mjs";
18
17
  import { nextTick, reactive } from "vue";
19
- import { inBrowser, call } from "@varlet/shared";
18
+ import { call, inBrowser } from "@varlet/shared";
20
19
  import { mountInstance, withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
20
+ import VarActionSheet from "./ActionSheet.mjs";
21
21
  import { props as actionSheetProps } from "./props.mjs";
22
22
  let singletonOptions;
23
23
  let defaultOptions = {};
@@ -14,8 +14,8 @@ var __spreadValues = (a, b) => {
14
14
  }
15
15
  return a;
16
16
  };
17
- import { defineListenerProp, pickProps } from "../utils/components.mjs";
18
17
  import { popupProps } from "../popup/index.mjs";
18
+ import { defineListenerProp, pickProps } from "../utils/components.mjs";
19
19
  const props = __spreadValues({
20
20
  show: Boolean,
21
21
  title: String,
@@ -1,8 +1,8 @@
1
+ import { computed, defineComponent } from "vue";
2
+ import { call } from "@varlet/shared";
1
3
  import VarIcon from "../icon/index.mjs";
2
- import { defineComponent, computed } from "vue";
3
- import { props } from "./props.mjs";
4
4
  import { createNamespace, formatElevation } from "../utils/components.mjs";
5
- import { call } from "@varlet/shared";
5
+ import { props } from "./props.mjs";
6
6
  const { name, n, classes } = createNamespace("alert");
7
7
  const iconTypeMap = {
8
8
  success: "checkbox-marked-circle",
@@ -1,5 +1,5 @@
1
- import Alert from "./Alert.mjs";
2
1
  import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
2
+ import Alert from "./Alert.mjs";
3
3
  import { props as alertProps } from "./props.mjs";
4
4
  withInstall(Alert);
5
5
  withPropsDefaultsSetter(Alert, alertProps);
@@ -1,9 +1,9 @@
1
- import { defineComponent, ref, onUpdated, computed } from "vue";
2
- import { props } from "./props.mjs";
3
- import { createNamespace, formatElevation } from "../utils/components.mjs";
4
- import { onSmartMounted, onWindowResize } from "@varlet/use";
1
+ import { computed, defineComponent, onUpdated, ref } from "vue";
5
2
  import { getRect } from "@varlet/shared";
3
+ import { onSmartMounted, onWindowResize } from "@varlet/use";
4
+ import { createNamespace, formatElevation } from "../utils/components.mjs";
6
5
  import { toSizeUnit } from "../utils/elements.mjs";
6
+ import { props } from "./props.mjs";
7
7
  const { name, n, classes } = createNamespace("app-bar");
8
8
  import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, mergeProps as _mergeProps, Fragment as _Fragment } from "vue";
9
9
  function __render__(_ctx, _cache) {
@@ -14,6 +14,7 @@ function __render__(_ctx, _cache) {
14
14
  _createElementVNode(
15
15
  "div",
16
16
  _mergeProps({
17
+ ref: "appBar",
17
18
  class: _ctx.classes(
18
19
  _ctx.n(),
19
20
  _ctx.n("$--box"),
@@ -23,7 +24,6 @@ function __render__(_ctx, _cache) {
23
24
  [_ctx.border, _ctx.n("--border")],
24
25
  _ctx.formatElevation(_ctx.elevation, 3)
25
26
  ),
26
- ref: "appBar",
27
27
  style: _ctx.rootStyles
28
28
  }, _ctx.$attrs),
29
29
  [
@@ -1,5 +1,5 @@
1
- import AppBar from "./AppBar.mjs";
2
1
  import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
2
+ import AppBar from "./AppBar.mjs";
3
3
  import { props as appBarProps } from "./props.mjs";
4
4
  withInstall(AppBar);
5
5
  withPropsDefaultsSetter(AppBar, appBarProps);
@@ -18,16 +18,16 @@ var __async = (__this, __arguments, generator) => {
18
18
  step((generator = generator.apply(__this, __arguments)).next());
19
19
  });
20
20
  };
21
- import VarInput from "../input/index.mjs";
22
- import VarMenuSelect from "../menu-select/index.mjs";
23
- import VarMenuOption from "../menu-option/index.mjs";
24
- import VarFormDetails from "../form-details/index.mjs";
25
21
  import { computed, defineComponent, nextTick, ref, watch } from "vue";
26
- import { props } from "./props.mjs";
27
- import { createNamespace, useValidation } from "../utils/components.mjs";
28
- import { useClickOutside, useEventListener, useVModel } from "@varlet/use";
29
22
  import { call, isEmpty, preventDefault, raf, toNumber } from "@varlet/shared";
23
+ import { useClickOutside, useEventListener, useVModel } from "@varlet/use";
24
+ import VarFormDetails from "../form-details/index.mjs";
30
25
  import { useForm } from "../form/provide.mjs";
26
+ import VarInput from "../input/index.mjs";
27
+ import VarMenuOption from "../menu-option/index.mjs";
28
+ import VarMenuSelect from "../menu-select/index.mjs";
29
+ import { createNamespace, useValidation } from "../utils/components.mjs";
30
+ import { props } from "./props.mjs";
31
31
  const { name, n } = createNamespace("auto-complete");
32
32
  import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, mergeProps as _mergeProps, withCtx as _withCtx, createSlots as _createSlots, createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode } from "vue";
33
33
  const _hoisted_1 = ["tabindex"];
@@ -44,6 +44,8 @@ function __render__(_ctx, _cache) {
44
44
  onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
45
45
  }, [
46
46
  _createVNode(_component_var_menu_select, {
47
+ show: _ctx.isShowMenuSelect,
48
+ "onUpdate:show": _cache[1] || (_cache[1] = ($event) => _ctx.isShowMenuSelect = $event),
47
49
  "same-width": "",
48
50
  "auto-complete-cover": "",
49
51
  scrollable: "",
@@ -52,8 +54,6 @@ function __render__(_ctx, _cache) {
52
54
  disabled: _ctx.disabled || _ctx.formDisabled || _ctx.readonly || _ctx.formReadonly,
53
55
  class: _normalizeClass(_ctx.n("menu-select")),
54
56
  "popover-class": _ctx.variant === "standard" ? _ctx.n("--standard-menu-margin") : void 0,
55
- show: _ctx.isShowMenuSelect,
56
- "onUpdate:show": _cache[1] || (_cache[1] = ($event) => _ctx.isShowMenuSelect = $event),
57
57
  "onUpdate:modelValue": _ctx.handleAutoComplete,
58
58
  onKeyEscape: _ctx.handleKeyEscape
59
59
  }, {
@@ -100,6 +100,8 @@ function __render__(_ctx, _cache) {
100
100
  disabled: _ctx.disabled,
101
101
  clearable: _ctx.clearable
102
102
  }, {
103
+ modelValue: _ctx.value,
104
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.value = $event),
103
105
  autocomplete: "off",
104
106
  "is-force-focusing-effect": _ctx.isFocusing,
105
107
  "is-force-error-effect": !!_ctx.errorMessage,
@@ -107,9 +109,7 @@ function __render__(_ctx, _cache) {
107
109
  onInput: _ctx.handleInput,
108
110
  onBlur: _ctx.handleBlur,
109
111
  onClear: _ctx.handleClear,
110
- onChange: _ctx.handleChange,
111
- modelValue: _ctx.value,
112
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.value = $event)
112
+ onChange: _ctx.handleChange
113
113
  }), _createSlots({
114
114
  _: 2
115
115
  /* DYNAMIC */
@@ -142,11 +142,11 @@ function __render__(_ctx, _cache) {
142
142
  ]),
143
143
  key: "3"
144
144
  } : void 0
145
- ]), 1040, ["is-force-focusing-effect", "is-force-error-effect", "onInput", "onBlur", "onClear", "onChange", "modelValue"])
145
+ ]), 1040, ["modelValue", "is-force-focusing-effect", "is-force-error-effect", "onInput", "onBlur", "onClear", "onChange"])
146
146
  ]),
147
147
  _: 3
148
148
  /* FORWARDED */
149
- }, 8, ["disabled", "class", "popover-class", "show", "onUpdate:modelValue", "onKeyEscape"]),
149
+ }, 8, ["show", "disabled", "class", "popover-class", "onUpdate:modelValue", "onKeyEscape"]),
150
150
  _createVNode(_component_var_form_details, {
151
151
  "error-message": _ctx.errorMessage,
152
152
  "extra-message": _ctx.maxlengthText
@@ -269,21 +269,17 @@ const __sfc__ = defineComponent({
269
269
  });
270
270
  }
271
271
  function changeMenuState() {
272
- return __async(this, null, function* () {
273
- if (isFocusing.value) {
274
- isShowMenuSelect.value = getShowMenuSelect(value.value);
275
- }
276
- if (isShowMenuSelect.value) {
277
- viewOptions.value = props2.options;
278
- }
279
- });
272
+ if (isFocusing.value) {
273
+ isShowMenuSelect.value = getShowMenuSelect(value.value);
274
+ }
275
+ if (isShowMenuSelect.value) {
276
+ viewOptions.value = props2.options;
277
+ }
280
278
  }
281
279
  function handleInput(newValue, event) {
282
- return __async(this, null, function* () {
283
- changeMenuState();
284
- call(props2.onInput, newValue, event);
285
- validateWithTrigger("onInput");
286
- });
280
+ changeMenuState();
281
+ call(props2.onInput, newValue, event);
282
+ validateWithTrigger("onInput");
287
283
  }
288
284
  function handleClear() {
289
285
  clearing = true;
@@ -1,5 +1,5 @@
1
- import AutoComplete from "./AutoComplete.mjs";
2
1
  import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
2
+ import AutoComplete from "./AutoComplete.mjs";
3
3
  import { props as autoCompleteProps } from "./props.mjs";
4
4
  withInstall(AutoComplete);
5
5
  withPropsDefaultsSetter(AutoComplete, autoCompleteProps);
@@ -14,8 +14,8 @@ var __spreadValues = (a, b) => {
14
14
  }
15
15
  return a;
16
16
  };
17
- import { defineListenerProp, pickProps } from "../utils/components.mjs";
18
17
  import { inputProps } from "../input/index.mjs";
18
+ import { defineListenerProp, pickProps } from "../utils/components.mjs";
19
19
  const props = __spreadValues({
20
20
  modelValue: String,
21
21
  options: {
@@ -1,10 +1,10 @@
1
- import Lazy from "../lazy/index.mjs";
2
- import { defineComponent, ref, onUpdated } from "vue";
3
- import { props } from "./props.mjs";
4
- import { toSizeUnit } from "../utils/elements.mjs";
5
- import { createNamespace } from "../utils/components.mjs";
1
+ import { defineComponent, onUpdated, ref } from "vue";
6
2
  import { call } from "@varlet/shared";
7
3
  import { onSmartMounted } from "@varlet/use";
4
+ import Lazy from "../lazy/index.mjs";
5
+ import { createNamespace } from "../utils/components.mjs";
6
+ import { toSizeUnit } from "../utils/elements.mjs";
7
+ import { props } from "./props.mjs";
8
8
  const isInternalSize = (size) => ["mini", "small", "normal", "large"].includes(size);
9
9
  const { name, n, classes } = createNamespace("avatar");
10
10
  import { normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, resolveDirective as _resolveDirective, withDirectives as _withDirectives, openBlock as _openBlock, createElementBlock as _createElementBlock, Fragment as _Fragment, renderSlot as _renderSlot } from "vue";
@@ -1,5 +1,5 @@
1
- import Avatar from "./Avatar.mjs";
2
1
  import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
2
+ import Avatar from "./Avatar.mjs";
3
3
  import { props as avatarProps } from "./props.mjs";
4
4
  withInstall(Avatar);
5
5
  withPropsDefaultsSetter(Avatar, avatarProps);
@@ -1,7 +1,7 @@
1
- import { defineComponent, computed } from "vue";
2
- import { props } from "./props.mjs";
1
+ import { computed, defineComponent } from "vue";
3
2
  import { createNamespace } from "../utils/components.mjs";
4
3
  import { toSizeUnit } from "../utils/elements.mjs";
4
+ import { props } from "./props.mjs";
5
5
  const { name, n, classes } = createNamespace("avatar-group");
6
6
  import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
7
7
  function __render__(_ctx, _cache) {
@@ -1,5 +1,5 @@
1
- import AvatarGroup from "./AvatarGroup.mjs";
2
1
  import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
2
+ import AvatarGroup from "./AvatarGroup.mjs";
3
3
  import { props as avatarGroupProps } from "./props.mjs";
4
4
  withInstall(AvatarGroup);
5
5
  withPropsDefaultsSetter(AvatarGroup, avatarGroupProps);
@@ -1,12 +1,12 @@
1
+ import { defineComponent, onActivated, onMounted, ref } from "vue";
2
+ import { call, getScrollLeft, getScrollTop, throttle } from "@varlet/shared";
3
+ import { onSmartUnmounted } from "@varlet/use";
1
4
  import VarButton from "../button/index.mjs";
2
5
  import VarIcon from "../icon/index.mjs";
3
- import { defineComponent, ref, onMounted, onActivated } from "vue";
4
- import { props } from "./props.mjs";
5
- import { throttle, getScrollTop, getScrollLeft, call } from "@varlet/shared";
6
- import { easeInOutCubic } from "../utils/shared.mjs";
7
- import { scrollTo, getParentScroller, toPxNum, toSizeUnit, getTarget } from "../utils/elements.mjs";
8
6
  import { createNamespace } from "../utils/components.mjs";
9
- import { onSmartUnmounted } from "@varlet/use";
7
+ import { getParentScroller, getTarget, scrollTo, toPxNum, toSizeUnit } from "../utils/elements.mjs";
8
+ import { easeInOutCubic } from "../utils/shared.mjs";
9
+ import { props } from "./props.mjs";
10
10
  const { name, n, classes } = createNamespace("back-top");
11
11
  import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, withModifiers as _withModifiers, mergeProps as _mergeProps, createElementVNode as _createElementVNode, Teleport as _Teleport, openBlock as _openBlock, createBlock as _createBlock } from "vue";
12
12
  function __render__(_ctx, _cache) {
@@ -19,8 +19,8 @@ function __render__(_ctx, _cache) {
19
19
  _createElementVNode(
20
20
  "div",
21
21
  _mergeProps({
22
- class: _ctx.classes(_ctx.n(), [_ctx.show, _ctx.n("--active")]),
23
22
  ref: "backTopEl",
23
+ class: _ctx.classes(_ctx.n(), [_ctx.show, _ctx.n("--active")]),
24
24
  style: {
25
25
  right: _ctx.toSizeUnit(_ctx.right),
26
26
  bottom: _ctx.toSizeUnit(_ctx.bottom)
@@ -1,5 +1,5 @@
1
- import BackTop from "./BackTop.mjs";
2
1
  import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
2
+ import BackTop from "./BackTop.mjs";
3
3
  import { props as backTopProps } from "./props.mjs";
4
4
  withInstall(BackTop);
5
5
  withPropsDefaultsSetter(BackTop, backTopProps);
@@ -14,12 +14,12 @@ var __spreadValues = (a, b) => {
14
14
  }
15
15
  return a;
16
16
  };
17
- import VarIcon from "../icon/index.mjs";
18
- import { toNumber } from "@varlet/shared";
19
17
  import { computed, defineComponent } from "vue";
20
- import { props } from "./props.mjs";
18
+ import { toNumber } from "@varlet/shared";
19
+ import VarIcon from "../icon/index.mjs";
21
20
  import { createNamespace } from "../utils/components.mjs";
22
21
  import { toSizeUnit } from "../utils/elements.mjs";
22
+ import { props } from "./props.mjs";
23
23
  const { name, n, classes } = createNamespace("badge");
24
24
  import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, vShow as _vShow, mergeProps as _mergeProps, createElementVNode as _createElementVNode, withDirectives as _withDirectives, Transition as _Transition, withCtx as _withCtx, createVNode as _createVNode } from "vue";
25
25
  const _hoisted_1 = { key: 0 };
@@ -1,5 +1,5 @@
1
- import Badge from "./Badge.mjs";
2
1
  import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
2
+ import Badge from "./Badge.mjs";
3
3
  import { props as badgeProps } from "./props.mjs";
4
4
  withInstall(Badge);
5
5
  withPropsDefaultsSetter(Badge, badgeProps);
@@ -1,5 +1,5 @@
1
- import { pickProps } from "../utils/components.mjs";
2
1
  import { iconProps } from "../icon/index.mjs";
2
+ import { pickProps } from "../utils/components.mjs";
3
3
  const props = {
4
4
  type: {
5
5
  type: String,
@@ -14,14 +14,14 @@ var __spreadValues = (a, b) => {
14
14
  }
15
15
  return a;
16
16
  };
17
+ import { computed, defineComponent, onUpdated, ref, watch } from "vue";
18
+ import { call, getRect, isNumber, normalizeToArray } from "@varlet/shared";
19
+ import { onSmartMounted, onWindowResize } from "@varlet/use";
17
20
  import VarButton from "../button/index.mjs";
18
- import { defineComponent, ref, computed, onUpdated, watch } from "vue";
19
- import { props } from "./props.mjs";
20
- import { useBottomNavigationItems } from "./provide.mjs";
21
21
  import { createNamespace } from "../utils/components.mjs";
22
- import { isNumber, normalizeToArray, call, getRect } from "@varlet/shared";
23
- import { onSmartMounted, onWindowResize } from "@varlet/use";
24
22
  import { toSizeUnit } from "../utils/elements.mjs";
23
+ import { props } from "./props.mjs";
24
+ import { useBottomNavigationItems } from "./provide.mjs";
25
25
  const { name, n, classes } = createNamespace("bottom-navigation");
26
26
  const { n: nItem } = createNamespace("bottom-navigation-item");
27
27
  const RIGHT_HALF_SPACE_CLASS = nItem("--right-half-space");
@@ -40,6 +40,7 @@ function __render__(_ctx, _cache) {
40
40
  _createElementVNode(
41
41
  "div",
42
42
  _mergeProps({
43
+ ref: "bottomNavigationDom",
43
44
  class: _ctx.classes(
44
45
  _ctx.n(),
45
46
  _ctx.n("$--box"),
@@ -48,7 +49,6 @@ function __render__(_ctx, _cache) {
48
49
  [_ctx.safeArea, _ctx.n("--safe-area")],
49
50
  [_ctx.variant, _ctx.n("--variant")]
50
51
  ),
51
- ref: "bottomNavigationDom",
52
52
  style: `z-index:${_ctx.zIndex}`
53
53
  }, _ctx.$attrs),
54
54
  [
@@ -56,9 +56,8 @@ function __render__(_ctx, _cache) {
56
56
  _ctx.$slots.fab ? (_openBlock(), _createBlock(_component_var_button, _mergeProps({
57
57
  key: 0,
58
58
  class: _ctx.classes(_ctx.n("fab"), [_ctx.length % 2, _ctx.n("--fab-right"), _ctx.n("--fab-center")]),
59
- "var-bottom-navigation__fab": "",
60
- onClick: _ctx.handleFabClick
61
- }, _ctx.fabProps), {
59
+ "var-bottom-navigation__fab": ""
60
+ }, _ctx.fabProps, { onClick: _ctx.handleFabClick }), {
62
61
  default: _withCtx(() => [
63
62
  _renderSlot(_ctx.$slots, "fab")
64
63
  ]),
@@ -1,5 +1,5 @@
1
- import BottomNavigation from "./BottomNavigation.mjs";
2
1
  import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
2
+ import BottomNavigation from "./BottomNavigation.mjs";
3
3
  import { props as bottomNavigationProps } from "./props.mjs";
4
4
  withInstall(BottomNavigation);
5
5
  withPropsDefaultsSetter(BottomNavigation, bottomNavigationProps);
@@ -1,11 +1,11 @@
1
- import Ripple from "../ripple/index.mjs";
1
+ import { computed, defineComponent } from "vue";
2
+ import { call } from "@varlet/shared";
2
3
  import VarBadge from "../badge/index.mjs";
3
4
  import VarIcon from "../icon/index.mjs";
4
- import { defineComponent, computed } from "vue";
5
+ import Ripple from "../ripple/index.mjs";
6
+ import { createNamespace } from "../utils/components.mjs";
5
7
  import { props } from "./props.mjs";
6
8
  import { useBottomNavigation } from "./provide.mjs";
7
- import { createNamespace } from "../utils/components.mjs";
8
- import { call } from "@varlet/shared";
9
9
  const { name, n, classes } = createNamespace("bottom-navigation-item");
10
10
  const defaultBadgeProps = {
11
11
  type: "danger",
@@ -1,5 +1,5 @@
1
- import BottomNavigationItem from "./BottomNavigationItem.mjs";
2
1
  import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
2
+ import BottomNavigationItem from "./BottomNavigationItem.mjs";
3
3
  import { props as bottomNavigationItemProps } from "./props.mjs";
4
4
  withInstall(BottomNavigationItem);
5
5
  withPropsDefaultsSetter(BottomNavigationItem, bottomNavigationItemProps);
@@ -1,5 +1,5 @@
1
- import { useParent } from "@varlet/use";
2
1
  import { assert } from "@varlet/shared";
2
+ import { useParent } from "@varlet/use";
3
3
  import {
4
4
  BOTTOM_NAVIGATION_BIND_BOTTOM_NAVIGATION_ITEM_KEY
5
5
  } from "../bottom-navigation/provide.mjs";
@@ -1,8 +1,8 @@
1
- import { defineComponent, computed } from "vue";
1
+ import { computed, defineComponent } from "vue";
2
+ import { call } from "@varlet/shared";
3
+ import { createNamespace } from "../utils/components.mjs";
2
4
  import { props } from "./props.mjs";
3
5
  import { useBreadcrumb } from "./provide.mjs";
4
- import { createNamespace } from "../utils/components.mjs";
5
- import { call } from "@varlet/shared";
6
6
  const { name, n, classes } = createNamespace("breadcrumb");
7
7
  import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, createCommentVNode as _createCommentVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
8
8
  function __render__(_ctx, _cache) {
@@ -1,5 +1,5 @@
1
- import Breadcrumb from "./Breadcrumb.mjs";
2
1
  import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
2
+ import Breadcrumb from "./Breadcrumb.mjs";
3
3
  import { props as breadcrumbProps } from "./props.mjs";
4
4
  withInstall(Breadcrumb);
5
5
  withPropsDefaultsSetter(Breadcrumb, breadcrumbProps);
@@ -1,5 +1,5 @@
1
- import { useParent } from "@varlet/use";
2
1
  import { assert } from "@varlet/shared";
2
+ import { useParent } from "@varlet/use";
3
3
  import { BREADCRUMBS_BIND_BREADCRUMB_ITEM_KEY } from "../breadcrumbs/provide.mjs";
4
4
  function useBreadcrumb() {
5
5
  const { parentProvider, bindParent, index } = useParent(
@@ -1,7 +1,7 @@
1
- import { defineComponent, computed } from "vue";
1
+ import { computed, defineComponent } from "vue";
2
+ import { createNamespace } from "../utils/components.mjs";
2
3
  import { props } from "./props.mjs";
3
4
  import { useBreadcrumbsList } from "./provide.mjs";
4
- import { createNamespace } from "../utils/components.mjs";
5
5
  const { name, n } = createNamespace("breadcrumbs");
6
6
  import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
7
7
  function __render__(_ctx, _cache) {
@@ -1,5 +1,5 @@
1
- import Breadcrumbs from "./Breadcrumbs.mjs";
2
1
  import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
2
+ import Breadcrumbs from "./Breadcrumbs.mjs";
3
3
  import { props as breadcrumbsProps } from "./props.mjs";
4
4
  withInstall(Breadcrumbs);
5
5
  withPropsDefaultsSetter(Breadcrumbs, breadcrumbsProps);
@@ -1,12 +1,12 @@
1
- import Ripple from "../ripple/index.mjs";
2
- import VarLoading from "../loading/index.mjs";
3
- import VarHoverOverlay, { useHoverOverlay } from "../hover-overlay/index.mjs";
4
- import Hover from "../hover/index.mjs";
5
1
  import { computed, defineComponent, ref } from "vue";
6
- import { props } from "./props.mjs";
2
+ import { call, normalizeToArray } from "@varlet/shared";
3
+ import Hover from "../hover/index.mjs";
4
+ import VarHoverOverlay, { useHoverOverlay } from "../hover-overlay/index.mjs";
5
+ import VarLoading from "../loading/index.mjs";
6
+ import Ripple from "../ripple/index.mjs";
7
7
  import { createNamespace, formatElevation } from "../utils/components.mjs";
8
+ import { props } from "./props.mjs";
8
9
  import { useButtonGroup } from "./provide.mjs";
9
- import { call, normalizeToArray } from "@varlet/shared";
10
10
  const { name, n, classes } = createNamespace("button");
11
11
  import { resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, createElementVNode as _createElementVNode, createVNode as _createVNode, normalizeStyle as _normalizeStyle, resolveDirective as _resolveDirective, createElementBlock as _createElementBlock, withDirectives as _withDirectives } from "vue";
12
12
  const _hoisted_1 = ["tabindex", "type", "disabled"];
@@ -1,6 +1,6 @@
1
+ import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
1
2
  import Button from "./Button.mjs";
2
3
  import { props as buttonProps } from "./props.mjs";
3
- import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
4
4
  withInstall(Button);
5
5
  withPropsDefaultsSetter(Button, buttonProps);
6
6
  const _ButtonComponent = Button;
@@ -1,7 +1,7 @@
1
1
  import { computed, defineComponent } from "vue";
2
- import { useButtons } from "./provide.mjs";
3
2
  import { createNamespace, formatElevation } from "../utils/components.mjs";
4
3
  import { props } from "./props.mjs";
4
+ import { useButtons } from "./provide.mjs";
5
5
  const { name, n, classes } = createNamespace("button-group");
6
6
  import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
7
7
  function __render__(_ctx, _cache) {
@@ -1,5 +1,5 @@
1
- import ButtonGroup from "./ButtonGroup.mjs";
2
1
  import { withInstall, withPropsDefaultsSetter } from "../utils/components.mjs";
2
+ import ButtonGroup from "./ButtonGroup.mjs";
3
3
  import { props as buttonGroupProps } from "./props.mjs";
4
4
  withInstall(ButtonGroup);
5
5
  withPropsDefaultsSetter(ButtonGroup, buttonGroupProps);