@varlet/ui 2.2.1 → 2.3.0

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 (109) hide show
  1. package/es/action-sheet/ActionSheet.js +1 -1
  2. package/es/app-bar/AppBar.js +1 -1
  3. package/es/badge/Badge.js +5 -3
  4. package/es/button/Button.js +1 -1
  5. package/es/button/button.css +1 -1
  6. package/es/button/props.js +1 -2
  7. package/es/card/Card.js +3 -3
  8. package/es/cell/Cell.js +0 -1
  9. package/es/chip/Chip.js +6 -4
  10. package/es/chip/chip.css +1 -1
  11. package/es/col/Col.js +1 -1
  12. package/es/counter/Counter.js +2 -2
  13. package/es/date-picker/DatePicker.js +1 -1
  14. package/es/dialog/Dialog.js +1 -1
  15. package/es/divider/Divider.js +1 -1
  16. package/es/image/Image.js +1 -1
  17. package/es/image-preview/ImagePreview.js +3 -3
  18. package/es/index-anchor/IndexAnchor.js +1 -1
  19. package/es/index.js +5 -0
  20. package/es/input/Input.js +2 -2
  21. package/es/link/Link.js +102 -0
  22. package/es/link/LinkSfc.css +0 -0
  23. package/es/link/index.js +8 -0
  24. package/es/link/link.css +1 -0
  25. package/es/link/props.js +50 -0
  26. package/es/link/style/index.js +3 -0
  27. package/es/list/List.js +1 -1
  28. package/es/loading/Loading.js +1 -1
  29. package/es/menu/Menu.js +1 -1
  30. package/es/option/Option.js +2 -2
  31. package/es/pagination/Pagination.js +3 -3
  32. package/es/picker/Picker.js +1 -1
  33. package/es/popup/Popup.js +4 -4
  34. package/es/pull-refresh/PullRefresh.js +1 -1
  35. package/es/row/Row.js +1 -1
  36. package/es/select/Select.js +3 -3
  37. package/es/skeleton/Skeleton.js +1 -1
  38. package/es/slider/Slider.js +1 -1
  39. package/es/snackbar/core.js +1 -1
  40. package/es/snackbar/style/index.js +1 -1
  41. package/es/space/Space.js +2 -4
  42. package/es/style.css +1 -1
  43. package/es/style.js +1 -0
  44. package/es/switch/Switch.js +1 -1
  45. package/es/tab/Tab.js +2 -2
  46. package/es/table/Table.js +1 -1
  47. package/es/tabs/Tabs.js +2 -2
  48. package/es/time-picker/TimePicker.js +1 -1
  49. package/es/umdIndex.js +5 -0
  50. package/es/uploader/Uploader.js +3 -3
  51. package/es/utils/components.js +9 -3
  52. package/es/varlet.esm.js +3772 -3650
  53. package/highlight/attributes.json +38 -2
  54. package/highlight/tags.json +13 -0
  55. package/highlight/web-types.json +101 -3
  56. package/lib/action-sheet/ActionSheet.js +1 -1
  57. package/lib/app-bar/AppBar.js +1 -1
  58. package/lib/badge/Badge.js +5 -3
  59. package/lib/button/Button.js +1 -1
  60. package/lib/button/button.css +1 -1
  61. package/lib/button/props.js +1 -2
  62. package/lib/card/Card.js +3 -3
  63. package/lib/cell/Cell.js +0 -1
  64. package/lib/chip/Chip.js +6 -4
  65. package/lib/chip/chip.css +1 -1
  66. package/lib/col/Col.js +1 -1
  67. package/lib/counter/Counter.js +2 -2
  68. package/lib/date-picker/DatePicker.js +1 -1
  69. package/lib/dialog/Dialog.js +1 -1
  70. package/lib/divider/Divider.js +1 -1
  71. package/lib/image/Image.js +1 -1
  72. package/lib/image-preview/ImagePreview.js +3 -3
  73. package/lib/index-anchor/IndexAnchor.js +1 -1
  74. package/lib/index.js +3 -0
  75. package/lib/input/Input.js +2 -2
  76. package/lib/link/Link.js +115 -0
  77. package/lib/link/LinkSfc.css +0 -0
  78. package/lib/link/index.js +17 -0
  79. package/lib/link/link.css +1 -0
  80. package/lib/link/props.js +56 -0
  81. package/lib/link/style/index.js +3 -0
  82. package/lib/list/List.js +1 -1
  83. package/lib/loading/Loading.js +1 -1
  84. package/lib/menu/Menu.js +1 -1
  85. package/lib/option/Option.js +2 -2
  86. package/lib/pagination/Pagination.js +3 -3
  87. package/lib/picker/Picker.js +1 -1
  88. package/lib/popup/Popup.js +4 -4
  89. package/lib/pull-refresh/PullRefresh.js +1 -1
  90. package/lib/row/Row.js +1 -1
  91. package/lib/select/Select.js +3 -3
  92. package/lib/skeleton/Skeleton.js +1 -1
  93. package/lib/slider/Slider.js +1 -1
  94. package/lib/snackbar/core.js +1 -1
  95. package/lib/snackbar/style/index.js +1 -1
  96. package/lib/space/Space.js +2 -4
  97. package/lib/style.css +1 -1
  98. package/lib/style.js +1 -0
  99. package/lib/switch/Switch.js +1 -1
  100. package/lib/tab/Tab.js +2 -2
  101. package/lib/table/Table.js +1 -1
  102. package/lib/tabs/Tabs.js +2 -2
  103. package/lib/time-picker/TimePicker.js +1 -1
  104. package/lib/uploader/Uploader.js +3 -3
  105. package/lib/utils/components.js +9 -3
  106. package/package.json +7 -7
  107. package/types/index.d.ts +2 -0
  108. package/types/link.d.ts +30 -0
  109. package/umd/varlet.js +7 -7
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = exports._LinkComponent = void 0;
5
+
6
+ var _Link = _interopRequireDefault(require("./Link.js"));
7
+
8
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
+
10
+ _Link.default.install = function (app) {
11
+ app.component(_Link.default.name, _Link.default);
12
+ };
13
+
14
+ var _LinkComponent = _Link.default;
15
+ exports._LinkComponent = _LinkComponent;
16
+ var _default = _Link.default;
17
+ exports.default = _default;
@@ -0,0 +1 @@
1
+ :root { --link-primary-color: var(--color-primary); --link-danger-color: var(--color-danger); --link-success-color: var(--color-success); --link-warning-color: var(--color-warning); --link-info-color: var(--color-info); --link-disabled-color: var(--color-text-disabled); --link-font-size: var(--font-size-md);}.var-link { position: relative; justify-content: center; align-items: center; outline: none; cursor: pointer; font-family: inherit; white-space: nowrap; color: inherit; text-decoration: none; font-size: var(--link-font-size);}.var-link--underline-always { text-decoration: underline;}.var-link--underline-hover:hover { text-decoration: underline;}.var-link--default { color: inherit;}.var-link--primary { color: var(--link-primary-color);}.var-link--info { color: var(--link-info-color);}.var-link--success { color: var(--link-success-color);}.var-link--warning { color: var(--link-warning-color);}.var-link--danger { color: var(--link-danger-color);}.var-link--disabled { color: var(--link-disabled-color); cursor: not-allowed;}
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.props = void 0;
5
+
6
+ function typeValidator(type) {
7
+ return ['default', 'primary', 'info', 'success', 'warning', 'danger'].includes(type);
8
+ }
9
+
10
+ function underlineValidator(status) {
11
+ return ['always', 'hover', 'none'].includes(status);
12
+ }
13
+
14
+ var props = {
15
+ type: {
16
+ type: String,
17
+ default: 'default',
18
+ validator: typeValidator
19
+ },
20
+ href: {
21
+ type: String
22
+ },
23
+ target: {
24
+ type: String
25
+ },
26
+ to: {
27
+ type: [String, Object]
28
+ },
29
+ replace: {
30
+ type: Boolean,
31
+ default: false
32
+ },
33
+ underline: {
34
+ type: String,
35
+ default: 'always',
36
+ validator: underlineValidator
37
+ },
38
+ disabled: {
39
+ type: Boolean,
40
+ default: false
41
+ },
42
+ textSize: {
43
+ type: [String, Number]
44
+ },
45
+ textColor: {
46
+ type: String
47
+ },
48
+ defaultStyle: {
49
+ type: Boolean,
50
+ default: false
51
+ },
52
+ onClick: {
53
+ type: Function
54
+ }
55
+ };
56
+ exports.props = props;
@@ -0,0 +1,3 @@
1
+ require('../../styles/common.css')
2
+ require('../link.css')
3
+ require('../LinkSfc.css')
package/lib/list/List.js CHANGED
@@ -39,7 +39,7 @@ function render(_ctx, _cache) {
39
39
  var _directive_ripple = (0, _vue.resolveDirective)("ripple");
40
40
 
41
41
  return (0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
42
- class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n(), 'var--box')),
42
+ class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n(), _ctx.n('$--box'))),
43
43
  ref: "listEl"
44
44
  }, [(0, _vue.renderSlot)(_ctx.$slots, "default"), _ctx.loading ? (0, _vue.renderSlot)(_ctx.$slots, "loading", {
45
45
  key: 0
@@ -47,7 +47,7 @@ function render(_ctx, _cache) {
47
47
  /* CLASS */
48
48
  )) : (0, _vue.createCommentVNode)("v-if", true), _ctx.isShow ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
49
49
  key: 1,
50
- class: (0, _vue.normalizeClass)(_ctx.classes('var--box', _ctx.n('body'), [_ctx.$slots.default, _ctx.n('inside')]))
50
+ class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('$--box'), _ctx.n('body'), [_ctx.$slots.default, _ctx.n('inside')]))
51
51
  }, [_ctx.type === 'circle' ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
52
52
  key: 0,
53
53
  class: (0, _vue.normalizeClass)(_ctx.n('circle'))
package/lib/menu/Menu.js CHANGED
@@ -58,7 +58,7 @@ function render(_ctx, _cache) {
58
58
  style: (0, _vue.normalizeStyle)({
59
59
  zIndex: _ctx.zIndex
60
60
  }),
61
- class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('menu'), [_ctx.defaultStyle, _ctx.n('--menu-background-color') + " var-elevation--3"])),
61
+ class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('menu'), [_ctx.defaultStyle, _ctx.n('--menu-background-color') + " " + _ctx.n('$-elevation--3')])),
62
62
  onClick: _cache[0] || (_cache[0] = (0, _vue.withModifiers)(() => {}, ["stop"])),
63
63
  onMouseenter: _cache[1] || (_cache[1] = function () {
64
64
  return _ctx.handleMenuMouseenter && _ctx.handleMenuMouseenter(...arguments);
@@ -29,7 +29,7 @@ function render(_ctx, _cache) {
29
29
  var _directive_ripple = (0, _vue.resolveDirective)("ripple");
30
30
 
31
31
  return (0, _vue.withDirectives)(((0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
32
- class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n(), 'var--box', [_ctx.optionSelected, _ctx.n('--selected-color')])),
32
+ class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n(), _ctx.n('$--box'), [_ctx.optionSelected, _ctx.n('--selected-color')])),
33
33
  style: (0, _vue.normalizeStyle)({
34
34
  width: _ctx.wrapWidth,
35
35
  color: _ctx.optionSelected ? _ctx.focusColor : undefined
@@ -55,7 +55,7 @@ function render(_ctx, _cache) {
55
55
  }, null, 8
56
56
  /* PROPS */
57
57
  , ["checked-color", "modelValue", "onChange"])) : (0, _vue.createCommentVNode)("v-if", true), (0, _vue.createElementVNode)("div", {
58
- class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('text'), 'var--ellipsis'))
58
+ class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('text'), _ctx.n('$--ellipsis')))
59
59
  }, [(0, _vue.renderSlot)(_ctx.$slots, "default", {}, () => [(0, _vue.createTextVNode)((0, _vue.toDisplayString)(_ctx.label), 1
60
60
  /* TEXT */
61
61
  )])], 2
@@ -49,7 +49,7 @@ function render(_ctx, _cache) {
49
49
  return (0, _vue.openBlock)(), (0, _vue.createElementBlock)("ul", {
50
50
  class: (0, _vue.normalizeClass)(_ctx.n())
51
51
  }, [(0, _vue.withDirectives)(((0, _vue.openBlock)(), (0, _vue.createElementBlock)("li", {
52
- class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('item'), _ctx.n('prev'), [_ctx.current <= 1 || _ctx.disabled, _ctx.n('item--disabled')], [_ctx.simple, _ctx.n('item--simple'), 'var-elevation--2'])),
52
+ class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('item'), _ctx.n('prev'), [_ctx.current <= 1 || _ctx.disabled, _ctx.n('item--disabled')], [_ctx.simple, _ctx.n('item--simple'), _ctx.n('$-elevation--2')])),
53
53
  onClick: _cache[0] || (_cache[0] = $event => _ctx.clickItem('prev'))
54
54
  }, [(0, _vue.renderSlot)(_ctx.$slots, "prev", {}, () => [(0, _vue.createVNode)(_component_var_icon, {
55
55
  name: "chevron-left"
@@ -83,7 +83,7 @@ function render(_ctx, _cache) {
83
83
  return (0, _vue.withDirectives)(((0, _vue.openBlock)(), (0, _vue.createElementBlock)("li", {
84
84
  key: _ctx.toNumber(item) + index,
85
85
  "item-mode": _ctx.getMode(item, index),
86
- class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('item'), 'var-elevation--2', [item === _ctx.current && !_ctx.disabled, _ctx.n('item--active')], [_ctx.isHideEllipsis(item, index), _ctx.n('item--hide')], [_ctx.disabled, _ctx.n('item--disabled')], [item === _ctx.current && _ctx.disabled, _ctx.n('item--disabled--active')])),
86
+ class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('item'), _ctx.n('$-elevation--2'), [item === _ctx.current && !_ctx.disabled, _ctx.n('item--active')], [_ctx.isHideEllipsis(item, index), _ctx.n('item--hide')], [_ctx.disabled, _ctx.n('item--disabled')], [item === _ctx.current && _ctx.disabled, _ctx.n('item--disabled--active')])),
87
87
  onClick: $event => _ctx.clickItem(item, index)
88
88
  }, [(0, _vue.createTextVNode)((0, _vue.toDisplayString)(item), 1
89
89
  /* TEXT */
@@ -95,7 +95,7 @@ function render(_ctx, _cache) {
95
95
  }), 128
96
96
  /* KEYED_FRAGMENT */
97
97
  )), (0, _vue.withDirectives)(((0, _vue.openBlock)(), (0, _vue.createElementBlock)("li", {
98
- class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('item'), _ctx.n('next'), [_ctx.current >= _ctx.pageCount || _ctx.disabled, _ctx.n('item--disabled')], [_ctx.simple, _ctx.n('item--simple'), 'var-elevation--2'])),
98
+ class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('item'), _ctx.n('next'), [_ctx.current >= _ctx.pageCount || _ctx.disabled, _ctx.n('item--disabled')], [_ctx.simple, _ctx.n('item--simple'), _ctx.n('$-elevation--2')])),
99
99
  onClick: _cache[4] || (_cache[4] = $event => _ctx.clickItem('next'))
100
100
  }, [(0, _vue.renderSlot)(_ctx.$slots, "next", {}, () => [(0, _vue.createVNode)(_component_var_icon, {
101
101
  name: "chevron-right"
@@ -40,7 +40,7 @@ var _hoisted_2 = ["onTransitionend"];
40
40
  function render(_ctx, _cache) {
41
41
  var _component_var_button = (0, _vue.resolveComponent)("var-button");
42
42
 
43
- return (0, _vue.openBlock)(), (0, _vue.createBlock)((0, _vue.resolveDynamicComponent)(_ctx.dynamic ? 'var-popup' : _ctx.Transition), (0, _vue.mergeProps)(_ctx.dynamic ? {
43
+ return (0, _vue.openBlock)(), (0, _vue.createBlock)((0, _vue.resolveDynamicComponent)(_ctx.dynamic ? _ctx.n('$-popup') : _ctx.Transition), (0, _vue.mergeProps)(_ctx.dynamic ? {
44
44
  onOpen: _ctx.onOpen,
45
45
  onOpened: _ctx.onOpened,
46
46
  onClose: _ctx.onClose,
@@ -88,7 +88,7 @@ var _default = (0, _vue.defineComponent)({
88
88
 
89
89
  var renderContent = () => {
90
90
  return (0, _vue.createVNode)("div", (0, _vue.mergeProps)({
91
- "class": classes(n('content'), 'var-elevation--3', n("--" + props.position)),
91
+ "class": classes(n('content'), n('$-elevation--3'), n("--" + props.position)),
92
92
  "style": {
93
93
  zIndex: zIndex.value
94
94
  }
@@ -105,17 +105,17 @@ var _default = (0, _vue.defineComponent)({
105
105
  position
106
106
  } = props;
107
107
  return (0, _vue.createVNode)(_vue.Transition, {
108
- "name": "var-fade",
108
+ "name": n('$-fade'),
109
109
  "onAfterEnter": onOpened,
110
110
  "onAfterLeave": onClosed
111
111
  }, {
112
112
  default: () => [(0, _vue.withDirectives)((0, _vue.createVNode)("div", {
113
- "class": classes('var--box', n()),
113
+ "class": classes(n('$--box'), n()),
114
114
  "style": {
115
115
  zIndex: zIndex.value - 2
116
116
  }
117
117
  }, [overlay && renderOverlay(), (0, _vue.createVNode)(_vue.Transition, {
118
- "name": transition || "var-pop-" + position
118
+ "name": transition || n("$-pop-" + position)
119
119
  }, {
120
120
  default: () => [show && renderContent()]
121
121
  })]), [[_vue.vShow, show]])]
@@ -49,7 +49,7 @@ function render(_ctx, _cache) {
49
49
  return _ctx.touchEnd && _ctx.touchEnd(...arguments);
50
50
  })
51
51
  }, [(0, _vue.createElementVNode)("div", {
52
- class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('control'), 'var-elevation--2', [_ctx.isSuccess, _ctx.n('control-success')])),
52
+ class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('control'), _ctx.n('$-elevation--2'), [_ctx.isSuccess, _ctx.n('control-success')])),
53
53
  style: (0, _vue.normalizeStyle)(_ctx.controlStyle)
54
54
  }, [(0, _vue.createVNode)(_component_var_icon, {
55
55
  name: _ctx.iconName,
package/lib/row/Row.js CHANGED
@@ -21,7 +21,7 @@ var {
21
21
 
22
22
  function render(_ctx, _cache) {
23
23
  return (0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
24
- class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n(), 'var--box')),
24
+ class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n(), _ctx.n('$--box'))),
25
25
  style: (0, _vue.normalizeStyle)({
26
26
  justifyContent: _ctx.justify,
27
27
  alignItems: _ctx.align,
@@ -52,7 +52,7 @@ function render(_ctx, _cache) {
52
52
  var _component_var_form_details = (0, _vue.resolveComponent)("var-form-details");
53
53
 
54
54
  return (0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
55
- class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n(), 'var--box', [_ctx.formDisabled || _ctx.disabled, _ctx.n('--disabled')])),
55
+ class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n(), _ctx.n('$--box'), [_ctx.formDisabled || _ctx.disabled, _ctx.n('--disabled')])),
56
56
  onClick: _cache[3] || (_cache[3] = function () {
57
57
  return _ctx.handleClick && _ctx.handleClick(...arguments);
58
58
  })
@@ -83,7 +83,7 @@ function render(_ctx, _cache) {
83
83
  }, {
84
84
  menu: (0, _vue.withCtx)(() => [(0, _vue.createElementVNode)("div", {
85
85
  ref: "menuEl",
86
- class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('scroller'), 'var-elevation--3'))
86
+ class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('scroller'), _ctx.n('$-elevation--3')))
87
87
  }, [(0, _vue.renderSlot)(_ctx.$slots, "default")], 2
88
88
  /* CLASS */
89
89
  )]),
@@ -139,7 +139,7 @@ function render(_ctx, _cache) {
139
139
  , ["class"])])], 6
140
140
  /* CLASS, STYLE */
141
141
  ), (0, _vue.createElementVNode)("label", {
142
- class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('placeholder'), 'var--ellipsis', [_ctx.isFocus, _ctx.n('--focus')], [_ctx.errorMessage, _ctx.n('--error')], [_ctx.formDisabled || _ctx.disabled, _ctx.n('--disabled')], _ctx.computePlaceholderState(), [!_ctx.hint, _ctx.n('--placeholder-non-hint')])),
142
+ class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('placeholder'), _ctx.n('$--ellipsis'), [_ctx.isFocus, _ctx.n('--focus')], [_ctx.errorMessage, _ctx.n('--error')], [_ctx.formDisabled || _ctx.disabled, _ctx.n('--disabled')], _ctx.computePlaceholderState(), [!_ctx.hint, _ctx.n('--placeholder-non-hint')])),
143
143
  style: (0, _vue.normalizeStyle)({
144
144
  color: !_ctx.errorMessage ? _ctx.isFocus ? _ctx.focusColor : _ctx.blurColor : undefined
145
145
  })
@@ -21,7 +21,7 @@ var {
21
21
 
22
22
  function render(_ctx, _cache) {
23
23
  return (0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
24
- class: (0, _vue.normalizeClass)(_ctx.classes('var--box', _ctx.n()))
24
+ class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('$--box'), _ctx.n()))
25
25
  }, [!_ctx.loading ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
26
26
  key: 0,
27
27
  class: (0, _vue.normalizeClass)(_ctx.n('data'))
@@ -306,7 +306,7 @@ var _default = (0, _vue.defineComponent)({
306
306
 
307
307
  var click = event => {
308
308
  if (isDisabled.value || isReadonly.value) return;
309
- if (event.target.closest('.var-slider__thumb')) return;
309
+ if (event.target.closest("." + n('thumb'))) return;
310
310
  var offset = event.clientX - (0, _elements.getLeft)(event.currentTarget);
311
311
  var type = getType(offset);
312
312
  setPercent(offset, type);
@@ -46,7 +46,7 @@ function render(_ctx, _cache) {
46
46
  zIndex: _ctx.zIndex
47
47
  })
48
48
  }, [(0, _vue.createElementVNode)("div", {
49
- class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('wrapper'), _ctx.n("wrapper-" + _ctx.position), 'var-elevation--4', [_ctx.vertical, _ctx.n('vertical')], [_ctx.type && _ctx.SNACKBAR_TYPE.includes(_ctx.type), _ctx.n("wrapper-" + _ctx.type)])),
49
+ class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('wrapper'), _ctx.n("wrapper-" + _ctx.position), _ctx.n('$-elevation--4'), [_ctx.vertical, _ctx.n('vertical')], [_ctx.type && _ctx.SNACKBAR_TYPE.includes(_ctx.type), _ctx.n("wrapper-" + _ctx.type)])),
50
50
  style: (0, _vue.normalizeStyle)({
51
51
  zIndex: _ctx.zIndex
52
52
  })
@@ -1,8 +1,8 @@
1
1
  require('../../styles/common.css')
2
- require('../SnackbarSfc.css')
3
2
  require('../../styles/elevation.css')
4
3
  require('../../loading/loading.css')
5
4
  require('../../button/button.css')
6
5
  require('../../icon/icon.css')
7
6
  require('../snackbar.css')
8
7
  require('../coreSfc.css')
8
+ require('../SnackbarSfc.css')
@@ -80,7 +80,6 @@ var _default = (0, _vue.defineComponent)({
80
80
  children = flatten(children);
81
81
  var lastIndex = children.length - 1;
82
82
  var spacers = children.map((child, index) => {
83
- var width = direction === 'row' ? undefined : '100%';
84
83
  var margin = '0';
85
84
 
86
85
  if (direction === 'row') {
@@ -109,13 +108,12 @@ var _default = (0, _vue.defineComponent)({
109
108
 
110
109
  return (0, _vue.createVNode)("div", {
111
110
  "style": {
112
- margin,
113
- width
111
+ margin
114
112
  }
115
113
  }, [child]);
116
114
  });
117
115
  return (0, _vue.createVNode)("div", {
118
- "class": classes(n(), 'var--box', [inline, n('--inline')]),
116
+ "class": classes(n(), n('$--box'), [inline, n('--inline')]),
119
117
  "style": {
120
118
  flexDirection: direction,
121
119
  justifyContent: padStartFlex(justify),