@varlet/ui 1.21.0 → 1.22.0-alpha.15

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 (63) hide show
  1. package/es/action-sheet/ActionSheet.js +15 -19
  2. package/es/app-bar/AppBar.js +14 -19
  3. package/es/back-top/BackTop.js +7 -10
  4. package/es/badge/Badge.js +7 -12
  5. package/es/button/Button.js +14 -13
  6. package/es/card/Card.js +19 -23
  7. package/es/cell/Cell.js +14 -19
  8. package/es/checkbox/Checkbox.js +14 -19
  9. package/es/checkbox-group/CheckboxGroup.js +6 -11
  10. package/es/chip/Chip.js +8 -11
  11. package/es/col/Col.js +8 -11
  12. package/es/collapse/Collapse.js +5 -10
  13. package/es/collapse-item/CollapseItem.js +16 -21
  14. package/es/countdown/Countdown.js +5 -10
  15. package/es/counter/Counter.js +18 -22
  16. package/es/date-picker/DatePicker.js +23 -28
  17. package/es/date-picker/src/day-picker-panel.js +14 -19
  18. package/es/date-picker/src/month-picker-panel.js +12 -17
  19. package/es/date-picker/src/panel-header.js +12 -17
  20. package/es/date-picker/src/year-picker-panel.js +12 -16
  21. package/es/dialog/Dialog.js +12 -17
  22. package/es/divider/Divider.js +8 -13
  23. package/es/form/Form.js +5 -10
  24. package/es/form-details/FormDetails.js +6 -11
  25. package/es/icon/Icon.js +6 -9
  26. package/es/icon/icon.less +1 -1
  27. package/es/image/Image.js +23 -21
  28. package/es/image-preview/ImagePreview.js +20 -24
  29. package/es/index-anchor/IndexAnchor.js +4 -7
  30. package/es/index-bar/IndexBar.js +15 -19
  31. package/es/input/Input.js +33 -37
  32. package/es/list/List.js +10 -15
  33. package/es/loading/Loading.js +21 -24
  34. package/es/menu/Menu.js +9 -12
  35. package/es/option/Option.js +16 -21
  36. package/es/picker/Picker.js +33 -36
  37. package/es/popup/Popup.js +14 -17
  38. package/es/progress/Progress.js +30 -32
  39. package/es/pull-refresh/PullRefresh.js +12 -15
  40. package/es/radio/Radio.js +14 -19
  41. package/es/radio-group/RadioGroup.js +6 -11
  42. package/es/rate/Rate.js +12 -16
  43. package/es/row/Row.js +7 -10
  44. package/es/select/Select.js +42 -47
  45. package/es/skeleton/Skeleton.js +41 -39
  46. package/es/slider/Slider.js +32 -36
  47. package/es/snackbar/Snackbar.js +8 -11
  48. package/es/snackbar/core.js +14 -19
  49. package/es/step/Step.js +23 -28
  50. package/es/steps/Steps.js +6 -9
  51. package/es/sticky/Sticky.js +10 -13
  52. package/es/swipe/Swipe.js +20 -24
  53. package/es/swipe-item/SwipeItem.js +6 -9
  54. package/es/switch/Switch.js +16 -21
  55. package/es/tab/Tab.js +8 -11
  56. package/es/tab-item/TabItem.js +5 -8
  57. package/es/tabs/Tabs.js +10 -13
  58. package/es/tabs-items/TabsItems.js +4 -7
  59. package/es/time-picker/TimePicker.js +32 -37
  60. package/es/time-picker/clock.js +15 -20
  61. package/es/uploader/Uploader.js +31 -31
  62. package/package.json +4 -4
  63. package/umd/varlet.js +2 -1
@@ -5,22 +5,18 @@ import { defineComponent, ref, watch } from 'vue';
5
5
  import { props } from './props';
6
6
  import { dt } from '../utils/shared';
7
7
  import { pack } from '../locale';
8
- import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createBlock as _createBlock, resolveComponent as _resolveComponent, createCommentVNode as _createCommentVNode, resolveDirective as _resolveDirective, withDirectives as _withDirectives, mergeProps as _mergeProps, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
8
+ import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, resolveComponent as _resolveComponent, createBlock as _createBlock, createCommentVNode as _createCommentVNode, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, resolveDirective as _resolveDirective, withDirectives as _withDirectives, mergeProps as _mergeProps, withCtx as _withCtx, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
9
9
 
10
- var _withId = /*#__PURE__*/_withScopeId("");
11
-
12
- _pushScopeId("");
10
+ var _withScopeId = n => (_pushScopeId(""), n = n(), _popScopeId(), n);
13
11
 
14
12
  var _hoisted_1 = {
15
13
  class: "var-action-sheet__title"
16
14
  };
17
- var _hoisted_2 = {
15
+ var _hoisted_2 = ["onClick"];
16
+ var _hoisted_3 = {
18
17
  class: "var-action-sheet__action-name"
19
18
  };
20
-
21
- _popScopeId();
22
-
23
- export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
19
+ export function render(_ctx, _cache) {
24
20
  var _component_var_icon = _resolveComponent("var-icon");
25
21
 
26
22
  var _component_var_popup = _resolveComponent("var-popup");
@@ -50,17 +46,17 @@ export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
50
46
  onOpened: _ctx.onOpened,
51
47
  onRouteChange: _ctx.onRouteChange
52
48
  }), {
53
- default: _withId(() => [_createVNode("div", _mergeProps({
49
+ default: _withCtx(() => [_createElementVNode("div", _mergeProps({
54
50
  class: "var-action-sheet var--box"
55
- }, _ctx.$attrs), [_renderSlot(_ctx.$slots, "title", {}, () => [_createVNode("div", _hoisted_1, _toDisplayString(_ctx.dt(_ctx.title, _ctx.pack.actionSheetTitle)), 1
51
+ }, _ctx.$attrs), [_renderSlot(_ctx.$slots, "title", {}, () => [_createElementVNode("div", _hoisted_1, _toDisplayString(_ctx.dt(_ctx.title, _ctx.pack.actionSheetTitle)), 1
56
52
  /* TEXT */
57
- )]), _renderSlot(_ctx.$slots, "actions", {}, () => [(_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.actions, action => {
58
- return _withDirectives((_openBlock(), _createBlock("div", {
59
- class: ["var-action-sheet__action-item", [action.className, action.disabled ? 'var-action-sheet--disabled' : null]],
53
+ )]), _renderSlot(_ctx.$slots, "actions", {}, () => [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.actions, action => {
54
+ return _withDirectives((_openBlock(), _createElementBlock("div", {
55
+ class: _normalizeClass(["var-action-sheet__action-item", [action.className, action.disabled ? 'var-action-sheet--disabled' : null]]),
60
56
  key: action.name,
61
- style: {
57
+ style: _normalizeStyle({
62
58
  color: action.color
63
- },
59
+ }),
64
60
  onClick: $event => _ctx.handleSelect(action)
65
61
  }, [action.icon ? (_openBlock(), _createBlock(_component_var_icon, {
66
62
  key: 0,
@@ -70,11 +66,11 @@ export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
70
66
  size: action.iconSize
71
67
  }, null, 8
72
68
  /* PROPS */
73
- , ["name", "size"])) : _createCommentVNode("v-if", true), _createVNode("div", _hoisted_2, _toDisplayString(action.name), 1
69
+ , ["name", "size"])) : _createCommentVNode("v-if", true), _createElementVNode("div", _hoisted_3, _toDisplayString(action.name), 1
74
70
  /* TEXT */
75
71
  )], 14
76
72
  /* CLASS, STYLE, PROPS */
77
- , ["onClick"])), [[_directive_ripple, {
73
+ , _hoisted_2)), [[_directive_ripple, {
78
74
  disabled: action.disabled
79
75
  }]]);
80
76
  }), 128
@@ -88,7 +84,7 @@ export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
88
84
  }, 16
89
85
  /* FULL_PROPS */
90
86
  , ["overlay", "overlay-class", "overlay-style", "lock-scroll", "close-on-click-overlay", "teleport", "show", "onOpen", "onClose", "onClosed", "onOpened", "onRouteChange"]);
91
- });
87
+ }
92
88
  export default defineComponent({
93
89
  render,
94
90
  name: 'VarActionSheet',
@@ -1,10 +1,8 @@
1
1
  import { defineComponent } from 'vue';
2
2
  import { props } from './props';
3
- import { renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, createVNode as _createVNode, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
3
+ import { renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
4
4
 
5
- var _withId = /*#__PURE__*/_withScopeId("");
6
-
7
- _pushScopeId("");
5
+ var _withScopeId = n => (_pushScopeId(""), n = n(), _popScopeId(), n);
8
6
 
9
7
  var _hoisted_1 = {
10
8
  key: 0,
@@ -14,32 +12,29 @@ var _hoisted_2 = {
14
12
  key: 1,
15
13
  class: "var-app-bar__right"
16
14
  };
17
-
18
- _popScopeId();
19
-
20
- export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
21
- return _openBlock(), _createBlock("div", {
22
- class: ["var-app-bar", {
15
+ export function render(_ctx, _cache) {
16
+ return _openBlock(), _createElementBlock("div", {
17
+ class: _normalizeClass(["var-app-bar", {
23
18
  'var-elevation--3': _ctx.elevation
24
- }],
25
- style: {
19
+ }]),
20
+ style: _normalizeStyle({
26
21
  background: _ctx.color,
27
22
  color: _ctx.textColor
28
- }
29
- }, [_ctx.$slots.left ? (_openBlock(), _createBlock("div", _hoisted_1, [_renderSlot(_ctx.$slots, "left")])) : _createCommentVNode("v-if", true), _createVNode("div", {
30
- class: ["var-app-bar__title", "var-app-bar__title-" + _ctx.titlePosition],
31
- style: {
23
+ })
24
+ }, [_ctx.$slots.left ? (_openBlock(), _createElementBlock("div", _hoisted_1, [_renderSlot(_ctx.$slots, "left")])) : _createCommentVNode("v-if", true), _createElementVNode("div", {
25
+ class: _normalizeClass(["var-app-bar__title", "var-app-bar__title-" + _ctx.titlePosition]),
26
+ style: _normalizeStyle({
32
27
  paddingLeft: _ctx.$slots.left && _ctx.titlePosition !== 'center' ? '30px' : '10px',
33
28
  paddingRight: _ctx.$slots.right && _ctx.titlePosition !== 'center' ? '30px' : '10px'
34
- }
29
+ })
35
30
  }, [_renderSlot(_ctx.$slots, "default", {}, () => [_createTextVNode(_toDisplayString(_ctx.title), 1
36
31
  /* TEXT */
37
32
  )])], 6
38
33
  /* CLASS, STYLE */
39
- ), _ctx.$slots.right ? (_openBlock(), _createBlock("div", _hoisted_2, [_renderSlot(_ctx.$slots, "right")])) : _createCommentVNode("v-if", true)], 6
34
+ ), _ctx.$slots.right ? (_openBlock(), _createElementBlock("div", _hoisted_2, [_renderSlot(_ctx.$slots, "right")])) : _createCommentVNode("v-if", true)], 6
40
35
  /* CLASS, STYLE */
41
36
  );
42
- });
37
+ }
43
38
  export default defineComponent({
44
39
  render,
45
40
  name: 'VarAppBar',
@@ -4,24 +4,21 @@ import Icon from '../icon';
4
4
  import { props } from './props';
5
5
  import { isString, easeInOutCubic, throttle, toNumber } from '../utils/shared';
6
6
  import { getScrollTop, getScrollLeft, scrollTo } from '../utils/elements';
7
- import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, createVNode as _createVNode, withModifiers as _withModifiers, openBlock as _openBlock, createBlock as _createBlock, withScopeId as _withScopeId } from "vue";
8
-
9
- var _withId = /*#__PURE__*/_withScopeId("");
10
-
11
- export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
7
+ import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, withModifiers as _withModifiers, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
8
+ export function render(_ctx, _cache) {
12
9
  var _component_var_icon = _resolveComponent("var-icon");
13
10
 
14
11
  var _component_var_button = _resolveComponent("var-button");
15
12
 
16
- return _openBlock(), _createBlock("div", {
17
- class: ["var-back-top", [_ctx.show ? 'var-back-top--active' : null]],
18
- onClick: _cache[1] || (_cache[1] = _withModifiers((...args) => _ctx.click && _ctx.click(...args), ["stop"]))
13
+ return _openBlock(), _createElementBlock("div", {
14
+ class: _normalizeClass(["var-back-top", [_ctx.show ? 'var-back-top--active' : null]]),
15
+ onClick: _cache[0] || (_cache[0] = _withModifiers((...args) => _ctx.click && _ctx.click(...args), ["stop"]))
19
16
  }, [_renderSlot(_ctx.$slots, "default", {}, () => [_createVNode(_component_var_button, {
20
17
  type: "primary",
21
18
  round: "",
22
19
  class: "var-back-top__button"
23
20
  }, {
24
- default: _withId(() => [_createVNode(_component_var_icon, {
21
+ default: _withCtx(() => [_createVNode(_component_var_icon, {
25
22
  name: "chevron-up"
26
23
  })]),
27
24
  _: 1
@@ -30,7 +27,7 @@ export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
30
27
  })])], 2
31
28
  /* CLASS */
32
29
  );
33
- });
30
+ }
34
31
  export default defineComponent({
35
32
  render,
36
33
  name: 'VarBackTop',
package/es/badge/Badge.js CHANGED
@@ -2,11 +2,9 @@ import { computed, defineComponent } from 'vue';
2
2
  import { props } from './props';
3
3
  import Icon from '../icon';
4
4
  import { toNumber } from '../utils/shared';
5
- import { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, toDisplayString as _toDisplayString, vShow as _vShow, mergeProps as _mergeProps, createVNode as _createVNode, withDirectives as _withDirectives, Transition as _Transition, renderSlot as _renderSlot, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
5
+ import { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, 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, renderSlot as _renderSlot, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
6
6
 
7
- var _withId = /*#__PURE__*/_withScopeId("");
8
-
9
- _pushScopeId("");
7
+ var _withScopeId = n => (_pushScopeId(""), n = n(), _popScopeId(), n);
10
8
 
11
9
  var _hoisted_1 = {
12
10
  class: "var-badge"
@@ -14,16 +12,13 @@ var _hoisted_1 = {
14
12
  var _hoisted_2 = {
15
13
  key: 1
16
14
  };
17
-
18
- _popScopeId();
19
-
20
- export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
15
+ export function render(_ctx, _cache) {
21
16
  var _component_var_icon = _resolveComponent("var-icon");
22
17
 
23
- return _openBlock(), _createBlock("div", _hoisted_1, [_createVNode(_Transition, {
18
+ return _openBlock(), _createElementBlock("div", _hoisted_1, [_createVNode(_Transition, {
24
19
  name: "var-badge-fade"
25
20
  }, {
26
- default: _withId(() => [_withDirectives(_createVNode("span", _mergeProps(_ctx.$attrs, {
21
+ default: _withCtx(() => [_withDirectives(_createElementVNode("span", _mergeProps(_ctx.$attrs, {
27
22
  class: ["var-badge__content", _ctx.contentClass],
28
23
  style: {
29
24
  background: _ctx.color
@@ -34,7 +29,7 @@ export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
34
29
  size: "10px"
35
30
  }, null, 8
36
31
  /* PROPS */
37
- , ["name"])) : (_openBlock(), _createBlock("span", _hoisted_2, _toDisplayString(_ctx.values), 1
32
+ , ["name"])) : (_openBlock(), _createElementBlock("span", _hoisted_2, _toDisplayString(_ctx.values), 1
38
33
  /* TEXT */
39
34
  ))], 16
40
35
  /* FULL_PROPS */
@@ -43,7 +38,7 @@ export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
43
38
  /* STABLE */
44
39
 
45
40
  }), _renderSlot(_ctx.$slots, "default")]);
46
- });
41
+ }
47
42
  export default defineComponent({
48
43
  render,
49
44
  name: 'VarBadge',
@@ -2,24 +2,25 @@ import Ripple from '../ripple';
2
2
  import Loading from '../loading';
3
3
  import { defineComponent } from 'vue';
4
4
  import { props } from './props';
5
- import { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, createVNode as _createVNode, resolveDirective as _resolveDirective, withDirectives as _withDirectives, withScopeId as _withScopeId } from "vue";
5
+ import { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, resolveDirective as _resolveDirective, withDirectives as _withDirectives, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
6
6
 
7
- var _withId = /*#__PURE__*/_withScopeId("");
7
+ var _withScopeId = n => (_pushScopeId(""), n = n(), _popScopeId(), n);
8
8
 
9
- export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
9
+ var _hoisted_1 = ["disabled"];
10
+ export function render(_ctx, _cache) {
10
11
  var _component_var_loading = _resolveComponent("var-loading");
11
12
 
12
13
  var _directive_ripple = _resolveDirective("ripple");
13
14
 
14
- return _withDirectives((_openBlock(), _createBlock("button", {
15
- class: ["var-button var--box", ["var-button--" + _ctx.size, _ctx.block ? 'var--flex var-button--block' : 'var--inline-flex', _ctx.disabled ? 'var-button--disabled' : null, _ctx.text ? "var-button--text-" + _ctx.type : "var-button--" + _ctx.type, _ctx.text ? 'var-button--text' : 'var-elevation--1', _ctx.text && _ctx.disabled ? 'var-button--text-disabled' : null, _ctx.round ? 'var-button--round' : null, _ctx.outline ? 'var-button--outline' : null]],
16
- style: {
15
+ return _withDirectives((_openBlock(), _createElementBlock("button", {
16
+ class: _normalizeClass(["var-button var--box", ["var-button--" + _ctx.size, _ctx.block ? 'var--flex var-button--block' : 'var--inline-flex', _ctx.disabled ? 'var-button--disabled' : null, _ctx.text ? "var-button--text-" + _ctx.type : "var-button--" + _ctx.type, _ctx.text ? 'var-button--text' : 'var-elevation--1', _ctx.text && _ctx.disabled ? 'var-button--text-disabled' : null, _ctx.round ? 'var-button--round' : null, _ctx.outline ? 'var-button--outline' : null]]),
17
+ style: _normalizeStyle({
17
18
  color: _ctx.textColor,
18
19
  background: _ctx.color
19
- },
20
+ }),
20
21
  disabled: _ctx.disabled,
21
- onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleClick && _ctx.handleClick(...args)),
22
- onTouchstart: _cache[2] || (_cache[2] = (...args) => _ctx.handleTouchstart && _ctx.handleTouchstart(...args))
22
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args)),
23
+ onTouchstart: _cache[1] || (_cache[1] = (...args) => _ctx.handleTouchstart && _ctx.handleTouchstart(...args))
23
24
  }, [_ctx.loading ? (_openBlock(), _createBlock(_component_var_loading, {
24
25
  key: 0,
25
26
  class: "var-button__loading",
@@ -28,16 +29,16 @@ export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
28
29
  radius: _ctx.loadingRadius
29
30
  }, null, 8
30
31
  /* PROPS */
31
- , ["type", "size", "radius"])) : _createCommentVNode("v-if", true), _createVNode("div", {
32
- class: ["var-button__content", [_ctx.loading ? 'var-button--hidden' : null]]
32
+ , ["type", "size", "radius"])) : _createCommentVNode("v-if", true), _createElementVNode("div", {
33
+ class: _normalizeClass(["var-button__content", [_ctx.loading ? 'var-button--hidden' : null]])
33
34
  }, [_renderSlot(_ctx.$slots, "default")], 2
34
35
  /* CLASS */
35
36
  )], 46
36
37
  /* CLASS, STYLE, PROPS, HYDRATE_EVENTS */
37
- , ["disabled"])), [[_directive_ripple, {
38
+ , _hoisted_1)), [[_directive_ripple, {
38
39
  disabled: _ctx.disabled || !_ctx.ripple
39
40
  }]]);
40
- });
41
+ }
41
42
  export default defineComponent({
42
43
  render,
43
44
  name: 'VarButton',
package/es/card/Card.js CHANGED
@@ -2,60 +2,56 @@ import Ripple from '../ripple';
2
2
  import { defineComponent } from 'vue';
3
3
  import { props } from './props';
4
4
  import { toSizeUnit } from '../utils/elements';
5
- import { renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, resolveDirective as _resolveDirective, withDirectives as _withDirectives, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
5
+ import { renderSlot as _renderSlot, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, resolveDirective as _resolveDirective, withDirectives as _withDirectives, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
6
6
 
7
- var _withId = /*#__PURE__*/_withScopeId("");
7
+ var _withScopeId = n => (_pushScopeId(""), n = n(), _popScopeId(), n);
8
8
 
9
- _pushScopeId("");
10
-
11
- var _hoisted_1 = {
9
+ var _hoisted_1 = ["src", "alt"];
10
+ var _hoisted_2 = {
12
11
  key: 0,
13
12
  class: "var-card__title"
14
13
  };
15
- var _hoisted_2 = {
14
+ var _hoisted_3 = {
16
15
  key: 0,
17
16
  class: "var-card__subtitle"
18
17
  };
19
- var _hoisted_3 = {
18
+ var _hoisted_4 = {
20
19
  key: 0,
21
20
  class: "var-card__description"
22
21
  };
23
- var _hoisted_4 = {
22
+ var _hoisted_5 = {
24
23
  key: 0,
25
24
  class: "var-card__footer"
26
25
  };
27
-
28
- _popScopeId();
29
-
30
- export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
26
+ export function render(_ctx, _cache) {
31
27
  var _directive_ripple = _resolveDirective("ripple");
32
28
 
33
- return _withDirectives((_openBlock(), _createBlock("div", {
34
- class: ["var-card", [_ctx.elevation ? "var-elevation--" + _ctx.elevation : 'var-elevation--2']],
35
- onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onClick && _ctx.onClick(...args))
36
- }, [_renderSlot(_ctx.$slots, "image", {}, () => [_ctx.src ? (_openBlock(), _createBlock("img", {
29
+ return _withDirectives((_openBlock(), _createElementBlock("div", {
30
+ class: _normalizeClass(["var-card", [_ctx.elevation ? "var-elevation--" + _ctx.elevation : 'var-elevation--2']]),
31
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
32
+ }, [_renderSlot(_ctx.$slots, "image", {}, () => [_ctx.src ? (_openBlock(), _createElementBlock("img", {
37
33
  key: 0,
38
34
  class: "var-card__image",
39
- style: {
35
+ style: _normalizeStyle({
40
36
  objectFit: _ctx.fit,
41
37
  height: _ctx.toSizeUnit(_ctx.height)
42
- },
38
+ }),
43
39
  src: _ctx.src,
44
40
  alt: _ctx.alt
45
41
  }, null, 12
46
42
  /* STYLE, PROPS */
47
- , ["src", "alt"])) : _createCommentVNode("v-if", true)]), _renderSlot(_ctx.$slots, "title", {}, () => [_ctx.title ? (_openBlock(), _createBlock("div", _hoisted_1, _toDisplayString(_ctx.title), 1
43
+ , _hoisted_1)) : _createCommentVNode("v-if", true)]), _renderSlot(_ctx.$slots, "title", {}, () => [_ctx.title ? (_openBlock(), _createElementBlock("div", _hoisted_2, _toDisplayString(_ctx.title), 1
48
44
  /* TEXT */
49
- )) : _createCommentVNode("v-if", true)]), _renderSlot(_ctx.$slots, "subtitle", {}, () => [_ctx.subtitle ? (_openBlock(), _createBlock("div", _hoisted_2, _toDisplayString(_ctx.subtitle), 1
45
+ )) : _createCommentVNode("v-if", true)]), _renderSlot(_ctx.$slots, "subtitle", {}, () => [_ctx.subtitle ? (_openBlock(), _createElementBlock("div", _hoisted_3, _toDisplayString(_ctx.subtitle), 1
50
46
  /* TEXT */
51
- )) : _createCommentVNode("v-if", true)]), _renderSlot(_ctx.$slots, "description", {}, () => [_ctx.description ? (_openBlock(), _createBlock("div", _hoisted_3, _toDisplayString(_ctx.description), 1
47
+ )) : _createCommentVNode("v-if", true)]), _renderSlot(_ctx.$slots, "description", {}, () => [_ctx.description ? (_openBlock(), _createElementBlock("div", _hoisted_4, _toDisplayString(_ctx.description), 1
52
48
  /* TEXT */
53
- )) : _createCommentVNode("v-if", true)]), _ctx.$slots.extra ? (_openBlock(), _createBlock("div", _hoisted_4, [_renderSlot(_ctx.$slots, "extra")])) : _createCommentVNode("v-if", true)], 2
49
+ )) : _createCommentVNode("v-if", true)]), _ctx.$slots.extra ? (_openBlock(), _createElementBlock("div", _hoisted_5, [_renderSlot(_ctx.$slots, "extra")])) : _createCommentVNode("v-if", true)], 2
54
50
  /* CLASS */
55
51
  )), [[_directive_ripple, {
56
52
  disabled: !_ctx.ripple
57
53
  }]]);
58
- });
54
+ }
59
55
  export default defineComponent({
60
56
  render,
61
57
  name: 'VarCard',
package/es/cell/Cell.js CHANGED
@@ -1,26 +1,21 @@
1
1
  import { defineComponent } from 'vue';
2
2
  import { props } from './props';
3
3
  import Icon from '../icon';
4
- import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
4
+ import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, createVNode as _createVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
5
5
 
6
- var _withId = /*#__PURE__*/_withScopeId("");
7
-
8
- _pushScopeId("");
6
+ var _withScopeId = n => (_pushScopeId(""), n = n(), _popScopeId(), n);
9
7
 
10
8
  var _hoisted_1 = {
11
9
  class: "var-cell__content"
12
10
  };
13
-
14
- _popScopeId();
15
-
16
- export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
11
+ export function render(_ctx, _cache) {
17
12
  var _component_var_icon = _resolveComponent("var-icon");
18
13
 
19
- return _openBlock(), _createBlock("div", {
20
- class: ["var-cell", [_ctx.border ? 'var-cell--border' : null]]
21
- }, [_ctx.$slots.icon || _ctx.icon ? (_openBlock(), _createBlock("div", {
14
+ return _openBlock(), _createElementBlock("div", {
15
+ class: _normalizeClass(["var-cell", [_ctx.border ? 'var-cell--border' : null]])
16
+ }, [_ctx.$slots.icon || _ctx.icon ? (_openBlock(), _createElementBlock("div", {
22
17
  key: 0,
23
- class: ["var-cell__icon", [_ctx.iconClass ? _ctx.iconClass : null]]
18
+ class: _normalizeClass(["var-cell__icon", [_ctx.iconClass ? _ctx.iconClass : null]])
24
19
  }, [_renderSlot(_ctx.$slots, "icon", {}, () => [_createVNode(_component_var_icon, {
25
20
  class: "var--flex",
26
21
  name: _ctx.icon
@@ -28,28 +23,28 @@ export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
28
23
  /* PROPS */
29
24
  , ["name"])])], 2
30
25
  /* CLASS */
31
- )) : _createCommentVNode("v-if", true), _createVNode("div", _hoisted_1, [_createVNode("div", {
32
- class: ["var-cell__title", [_ctx.titleClass ? _ctx.titleClass : null]]
26
+ )) : _createCommentVNode("v-if", true), _createElementVNode("div", _hoisted_1, [_createElementVNode("div", {
27
+ class: _normalizeClass(["var-cell__title", [_ctx.titleClass ? _ctx.titleClass : null]])
33
28
  }, [_renderSlot(_ctx.$slots, "default", {}, () => [_createTextVNode(_toDisplayString(_ctx.title), 1
34
29
  /* TEXT */
35
30
  )])], 2
36
31
  /* CLASS */
37
- ), _ctx.$slots.desc || _ctx.desc ? (_openBlock(), _createBlock("div", {
32
+ ), _ctx.$slots.desc || _ctx.desc ? (_openBlock(), _createElementBlock("div", {
38
33
  key: 0,
39
- class: ["var-cell__desc", [_ctx.descClass ? _ctx.descClass : null]]
34
+ class: _normalizeClass(["var-cell__desc", [_ctx.descClass ? _ctx.descClass : null]])
40
35
  }, [_renderSlot(_ctx.$slots, "desc", {}, () => [_createTextVNode(_toDisplayString(_ctx.desc), 1
41
36
  /* TEXT */
42
37
  )])], 2
43
38
  /* CLASS */
44
- )) : _createCommentVNode("v-if", true)]), _ctx.$slots.extra ? (_openBlock(), _createBlock("div", {
39
+ )) : _createCommentVNode("v-if", true)]), _ctx.$slots.extra ? (_openBlock(), _createElementBlock("div", {
45
40
  key: 1,
46
- class: ["var-cell__extra", [_ctx.extraClass ? _ctx.extraClass : null]]
41
+ class: _normalizeClass(["var-cell__extra", [_ctx.extraClass ? _ctx.extraClass : null]])
47
42
  }, [_renderSlot(_ctx.$slots, "extra")], 2
48
43
  /* CLASS */
49
44
  )) : _createCommentVNode("v-if", true)], 2
50
45
  /* CLASS */
51
46
  );
52
- });
47
+ }
53
48
  export default defineComponent({
54
49
  render,
55
50
  name: 'VarCell',
@@ -6,37 +6,32 @@ import { props } from './props';
6
6
  import { useValidation } from '../utils/components';
7
7
  import { useCheckboxGroup } from './provide';
8
8
  import { useForm } from '../form/provide';
9
- import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, createVNode as _createVNode, resolveDirective as _resolveDirective, withDirectives as _withDirectives, openBlock as _openBlock, createBlock as _createBlock, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
9
+ import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, createVNode as _createVNode, normalizeStyle as _normalizeStyle, resolveDirective as _resolveDirective, createElementVNode as _createElementVNode, withDirectives as _withDirectives, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
10
10
 
11
- var _withId = /*#__PURE__*/_withScopeId("");
12
-
13
- _pushScopeId("");
11
+ var _withScopeId = n => (_pushScopeId(""), n = n(), _popScopeId(), n);
14
12
 
15
13
  var _hoisted_1 = {
16
14
  class: "var-checkbox"
17
15
  };
18
-
19
- _popScopeId();
20
-
21
- export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
16
+ export function render(_ctx, _cache) {
22
17
  var _component_var_icon = _resolveComponent("var-icon");
23
18
 
24
19
  var _component_var_form_details = _resolveComponent("var-form-details");
25
20
 
26
21
  var _directive_ripple = _resolveDirective("ripple");
27
22
 
28
- return _openBlock(), _createBlock("div", {
23
+ return _openBlock(), _createElementBlock("div", {
29
24
  class: "var-checkbox__wrap",
30
- onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
31
- }, [_createVNode("div", _hoisted_1, [_withDirectives(_createVNode("div", {
32
- class: ["var-checkbox__action", [_ctx.checked ? 'var-checkbox--checked' : 'var-checkbox--unchecked', _ctx.errorMessage || _ctx.checkboxGroupErrorMessage ? 'var-checkbox--error' : null, _ctx.formDisabled || _ctx.disabled ? 'var-checkbox--disabled' : null]],
33
- style: {
25
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
26
+ }, [_createElementVNode("div", _hoisted_1, [_withDirectives(_createElementVNode("div", {
27
+ class: _normalizeClass(["var-checkbox__action", [_ctx.checked ? 'var-checkbox--checked' : 'var-checkbox--unchecked', _ctx.errorMessage || _ctx.checkboxGroupErrorMessage ? 'var-checkbox--error' : null, _ctx.formDisabled || _ctx.disabled ? 'var-checkbox--disabled' : null]]),
28
+ style: _normalizeStyle({
34
29
  color: _ctx.checked ? _ctx.checkedColor : _ctx.uncheckedColor
35
- }
30
+ })
36
31
  }, [_ctx.checked ? _renderSlot(_ctx.$slots, "checked-icon", {
37
32
  key: 0
38
33
  }, () => [_createVNode(_component_var_icon, {
39
- class: ["var-checkbox__icon", [_ctx.withAnimation ? 'var-checkbox--with-animation' : null]],
34
+ class: _normalizeClass(["var-checkbox__icon", [_ctx.withAnimation ? 'var-checkbox--with-animation' : null]]),
40
35
  name: "checkbox-marked",
41
36
  size: _ctx.iconSize,
42
37
  "var-checkbox-cover": ""
@@ -45,7 +40,7 @@ export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
45
40
  , ["class", "size"])]) : _renderSlot(_ctx.$slots, "unchecked-icon", {
46
41
  key: 1
47
42
  }, () => [_createVNode(_component_var_icon, {
48
- class: ["var-checkbox__icon", [_ctx.withAnimation ? 'var-checkbox--with-animation' : null]],
43
+ class: _normalizeClass(["var-checkbox__icon", [_ctx.withAnimation ? 'var-checkbox--with-animation' : null]]),
49
44
  name: "checkbox-blank-outline",
50
45
  size: _ctx.iconSize,
51
46
  "var-checkbox-cover": ""
@@ -55,8 +50,8 @@ export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
55
50
  /* CLASS, STYLE */
56
51
  ), [[_directive_ripple, {
57
52
  disabled: _ctx.formReadonly || _ctx.readonly || _ctx.formDisabled || _ctx.disabled || !_ctx.ripple
58
- }]]), _createVNode("div", {
59
- class: ["var-checkbox__text", [_ctx.errorMessage || _ctx.checkboxGroupErrorMessage ? 'var-checkbox--error' : null, _ctx.formDisabled || _ctx.disabled ? 'var-checkbox--disabled' : null]]
53
+ }]]), _createElementVNode("div", {
54
+ class: _normalizeClass(["var-checkbox__text", [_ctx.errorMessage || _ctx.checkboxGroupErrorMessage ? 'var-checkbox--error' : null, _ctx.formDisabled || _ctx.disabled ? 'var-checkbox--disabled' : null]])
60
55
  }, [_renderSlot(_ctx.$slots, "default")], 2
61
56
  /* CLASS */
62
57
  )]), _createVNode(_component_var_form_details, {
@@ -64,7 +59,7 @@ export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
64
59
  }, null, 8
65
60
  /* PROPS */
66
61
  , ["error-message"])]);
67
- });
62
+ }
68
63
  export default defineComponent({
69
64
  render,
70
65
  name: 'VarCheckbox',
@@ -5,23 +5,18 @@ import { useValidation } from '../utils/components';
5
5
  import { useCheckboxes } from './provide';
6
6
  import { useForm } from '../form/provide';
7
7
  import { uniq } from '../utils/shared';
8
- import { renderSlot as _renderSlot, createVNode as _createVNode, resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
8
+ import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
9
9
 
10
- var _withId = /*#__PURE__*/_withScopeId("");
11
-
12
- _pushScopeId("");
10
+ var _withScopeId = n => (_pushScopeId(""), n = n(), _popScopeId(), n);
13
11
 
14
12
  var _hoisted_1 = {
15
13
  class: "var-checkbox-group__wrap"
16
14
  };
17
-
18
- _popScopeId();
19
-
20
- export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
15
+ export function render(_ctx, _cache) {
21
16
  var _component_var_form_details = _resolveComponent("var-form-details");
22
17
 
23
- return _openBlock(), _createBlock("div", _hoisted_1, [_createVNode("div", {
24
- class: ["var-checkbox-group", ["var-checkbox-group--" + _ctx.direction]]
18
+ return _openBlock(), _createElementBlock("div", _hoisted_1, [_createElementVNode("div", {
19
+ class: _normalizeClass(["var-checkbox-group", ["var-checkbox-group--" + _ctx.direction]])
25
20
  }, [_renderSlot(_ctx.$slots, "default")], 2
26
21
  /* CLASS */
27
22
  ), _createVNode(_component_var_form_details, {
@@ -29,7 +24,7 @@ export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
29
24
  }, null, 8
30
25
  /* PROPS */
31
26
  , ["error-message"])]);
32
- });
27
+ }
33
28
  export default defineComponent({
34
29
  render,
35
30
  name: 'VarCheckboxGroup',
package/es/chip/Chip.js CHANGED
@@ -1,27 +1,24 @@
1
1
  import Icon from '../icon';
2
2
  import { defineComponent, computed } from 'vue';
3
3
  import { props } from './props';
4
- import { renderSlot as _renderSlot, createVNode as _createVNode, resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, mergeProps as _mergeProps, Transition as _Transition, withScopeId as _withScopeId } from "vue";
5
-
6
- var _withId = /*#__PURE__*/_withScopeId("");
7
-
8
- export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
4
+ import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, mergeProps as _mergeProps, Transition as _Transition, withCtx as _withCtx, createBlock as _createBlock } from "vue";
5
+ export function render(_ctx, _cache) {
9
6
  var _component_var_icon = _resolveComponent("var-icon");
10
7
 
11
8
  return _openBlock(), _createBlock(_Transition, {
12
9
  name: "var-fade"
13
10
  }, {
14
- default: _withId(() => [_createVNode("span", _mergeProps({
11
+ default: _withCtx(() => [_createElementVNode("span", _mergeProps({
15
12
  class: ["var-chip var--box", _ctx.contentClass],
16
13
  style: _ctx.chipStyles
17
- }, _ctx.$attrs), [_renderSlot(_ctx.$slots, "left"), _createVNode("span", {
18
- class: ["var-chip--text-" + _ctx.size]
14
+ }, _ctx.$attrs), [_renderSlot(_ctx.$slots, "left"), _createElementVNode("span", {
15
+ class: _normalizeClass(["var-chip--text-" + _ctx.size])
19
16
  }, [_renderSlot(_ctx.$slots, "default")], 2
20
17
  /* CLASS */
21
- ), _renderSlot(_ctx.$slots, "right"), _ctx.closable ? (_openBlock(), _createBlock("span", {
18
+ ), _renderSlot(_ctx.$slots, "right"), _ctx.closable ? (_openBlock(), _createElementBlock("span", {
22
19
  key: 0,
23
20
  class: "var-chip--close",
24
- onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onClose && _ctx.onClose(...args))
21
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClose && _ctx.onClose(...args))
25
22
  }, [_createVNode(_component_var_icon, {
26
23
  name: "" + (_ctx.iconName ? _ctx.iconName : 'close-circle')
27
24
  }, null, 8
@@ -33,7 +30,7 @@ export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
33
30
  /* FORWARDED */
34
31
 
35
32
  });
36
- });
33
+ }
37
34
  export default defineComponent({
38
35
  render,
39
36
  name: 'VarChip',
package/es/col/Col.js CHANGED
@@ -3,22 +3,19 @@ import { toNumber } from '../utils/shared';
3
3
  import { props } from './props';
4
4
  import { useRow } from './provide';
5
5
  import { toSizeUnit } from '../utils/elements';
6
- import { renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock, withScopeId as _withScopeId } from "vue";
7
-
8
- var _withId = /*#__PURE__*/_withScopeId("");
9
-
10
- export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
11
- return _openBlock(), _createBlock("div", {
12
- class: ["var-col var--box", [_ctx.span ? "var-col--span-" + _ctx.toNumber(_ctx.span) : null, _ctx.offset ? "var-col--offset-" + _ctx.toNumber(_ctx.offset) : null]],
13
- style: {
6
+ import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
7
+ export function render(_ctx, _cache) {
8
+ return _openBlock(), _createElementBlock("div", {
9
+ class: _normalizeClass(["var-col var--box", [_ctx.span ? "var-col--span-" + _ctx.toNumber(_ctx.span) : null, _ctx.offset ? "var-col--offset-" + _ctx.toNumber(_ctx.offset) : null]]),
10
+ style: _normalizeStyle({
14
11
  paddingLeft: _ctx.toSizeUnit(_ctx.padding.left),
15
12
  paddingRight: _ctx.toSizeUnit(_ctx.padding.right)
16
- },
17
- onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onClick && _ctx.onClick(...args))
13
+ }),
14
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
18
15
  }, [_renderSlot(_ctx.$slots, "default")], 6
19
16
  /* CLASS, STYLE */
20
17
  );
21
- });
18
+ }
22
19
  export default defineComponent({
23
20
  render,
24
21
  name: 'VarCol',