@varlet/ui 3.18.1 → 3.19.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 (91) hide show
  1. package/es/action-sheet/ActionItem.mjs +28 -8
  2. package/es/action-sheet/actionSheet.css +1 -1
  3. package/es/action-sheet/index.mjs +4 -2
  4. package/es/alert/alert.css +1 -1
  5. package/es/badge/Badge.mjs +20 -10
  6. package/es/badge/badge.css +1 -1
  7. package/es/bottom-navigation-item/BottomNavigationItem.mjs +34 -20
  8. package/es/bottom-navigation-item/bottomNavigationItem.css +1 -1
  9. package/es/checkbox/Checkbox.mjs +95 -46
  10. package/es/checkbox/checkbox.css +1 -1
  11. package/es/chip/Chip.mjs +11 -4
  12. package/es/chip/chip.css +1 -1
  13. package/es/chip/props.mjs +4 -0
  14. package/es/date-input/DateInput.mjs +865 -0
  15. package/es/date-input/DateInputSfc.css +0 -0
  16. package/es/date-input/TimeSelect.mjs +201 -0
  17. package/es/date-input/date-input.css +1 -0
  18. package/es/date-input/index.mjs +12 -0
  19. package/es/date-input/props.mjs +77 -0
  20. package/es/date-input/style/index.mjs +14 -0
  21. package/es/date-picker/DatePicker.mjs +522 -451
  22. package/es/date-picker/DayPickerPanel.mjs +318 -0
  23. package/es/date-picker/MonthPickerPanel.mjs +187 -0
  24. package/es/date-picker/PanelHeader.mjs +332 -0
  25. package/es/date-picker/YearPickerPanel.mjs +199 -0
  26. package/es/date-picker/constants.mjs +31 -0
  27. package/es/date-picker/date-picker.css +1 -1
  28. package/es/date-picker/props.mjs +6 -9
  29. package/es/date-picker/style/index.mjs +0 -1
  30. package/es/date-picker/types.mjs +0 -0
  31. package/es/field-decorator/fieldDecorator.css +1 -1
  32. package/es/icon/icon.css +1 -1
  33. package/es/index.bundle.mjs +7 -1
  34. package/es/index.mjs +6 -1
  35. package/es/input/props.mjs +1 -1
  36. package/es/locale/en-US.mjs +2 -0
  37. package/es/locale/fa-IR.mjs +2 -0
  38. package/es/locale/ja-JP.mjs +2 -0
  39. package/es/locale/zh-CN.mjs +2 -0
  40. package/es/locale/zh-TW.mjs +2 -0
  41. package/es/menu-select/MenuSelect.mjs +11 -2
  42. package/es/menu-select/menuSelect.css +1 -1
  43. package/es/radio/Radio.mjs +61 -22
  44. package/es/radio/radio.css +1 -1
  45. package/es/rail-navigation-item/RailNavigationItem.mjs +33 -19
  46. package/es/rail-navigation-item/railNavigationItem.css +1 -1
  47. package/es/rate/Rate.mjs +23 -12
  48. package/es/rate/rate.css +1 -1
  49. package/es/select/Select.mjs +10 -1
  50. package/es/select/select.css +1 -1
  51. package/es/slider/Slider.mjs +1 -1
  52. package/es/step/Step.mjs +50 -20
  53. package/es/step/step.css +1 -1
  54. package/es/style.mjs +1 -0
  55. package/es/switch/Switch.mjs +1 -1
  56. package/es/themes/dark/alert.mjs +2 -2
  57. package/es/themes/dark/dateInput.mjs +9 -0
  58. package/es/themes/dark/datePicker.mjs +23 -19
  59. package/es/themes/dark/index.mjs +3 -2
  60. package/es/themes/md3-dark/alert.mjs +2 -2
  61. package/es/themes/md3-dark/dateInput.mjs +9 -0
  62. package/es/themes/md3-dark/datePicker.mjs +18 -13
  63. package/es/themes/md3-dark/index.mjs +3 -2
  64. package/es/themes/md3-light/alert.mjs +2 -2
  65. package/es/themes/md3-light/dateInput.mjs +9 -0
  66. package/es/themes/md3-light/datePicker.mjs +18 -13
  67. package/es/themes/md3-light/index.mjs +3 -2
  68. package/es/utils/elements.mjs +7 -0
  69. package/es/utils/shared.mjs +15 -0
  70. package/es/varlet.css +1 -1
  71. package/es/varlet.esm.js +11926 -10653
  72. package/highlight/web-types.en-US.json +599 -73
  73. package/highlight/web-types.zh-CN.json +572 -67
  74. package/lib/varlet.cjs.js +5616 -4186
  75. package/lib/varlet.css +1 -1
  76. package/package.json +7 -7
  77. package/types/actionSheet.d.ts +1 -1
  78. package/types/badge.d.ts +1 -0
  79. package/types/chip.d.ts +3 -0
  80. package/types/dateInput.d.ts +96 -0
  81. package/types/datePicker.d.ts +4 -2
  82. package/types/index.d.ts +2 -0
  83. package/types/locale.d.ts +2 -0
  84. package/types/rate.d.ts +7 -0
  85. package/types/step.d.ts +3 -0
  86. package/types/styleVars.d.ts +14 -4
  87. package/umd/varlet.js +7 -7
  88. package/es/date-picker/src/day-picker-panel.mjs +0 -385
  89. package/es/date-picker/src/month-picker-panel.mjs +0 -300
  90. package/es/date-picker/src/panel-header.mjs +0 -142
  91. package/es/date-picker/src/year-picker-panel.mjs +0 -311
@@ -1,3 +1,23 @@
1
+ var __async = (__this, __arguments, generator) => {
2
+ return new Promise((resolve, reject) => {
3
+ var fulfilled = (value) => {
4
+ try {
5
+ step(generator.next(value));
6
+ } catch (e) {
7
+ reject(e);
8
+ }
9
+ };
10
+ var rejected = (value) => {
11
+ try {
12
+ step(generator.throw(value));
13
+ } catch (e) {
14
+ reject(e);
15
+ }
16
+ };
17
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
18
+ step((generator = generator.apply(__this, __arguments)).next());
19
+ });
20
+ };
1
21
  import { call, preventDefault } from "@varlet/shared";
2
22
  import { useEventListener, useVModel } from "@varlet/use";
3
23
  import { computed, defineComponent, nextTick, ref } from "vue";
@@ -8,10 +28,11 @@ import VarHoverOverlay, { useHoverOverlay } from "../hover-overlay/index.mjs";
8
28
  import VarIcon from "../icon/index.mjs";
9
29
  import Ripple from "../ripple/index.mjs";
10
30
  import { createNamespace, useValidation } from "../utils/components.mjs";
31
+ import { toSizeUnit } from "../utils/elements.mjs";
11
32
  import { props } from "./props.mjs";
12
33
  import { useRadioGroup } from "./provide.mjs";
13
34
  const { name, n, classes } = createNamespace("radio");
14
- import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, createVNode as _createVNode, createCommentVNode as _createCommentVNode, normalizeStyle as _normalizeStyle, resolveDirective as _resolveDirective, openBlock as _openBlock, createElementBlock as _createElementBlock, withDirectives as _withDirectives, mergeProps as _mergeProps, createElementVNode as _createElementVNode } from "vue";
35
+ import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, createVNode as _createVNode, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveDirective as _resolveDirective, withDirectives as _withDirectives, mergeProps as _mergeProps, createElementVNode as _createElementVNode } from "vue";
15
36
  const _hoisted_1 = ["aria-checked", "aria-disabled", "tabindex"];
16
37
  function __render__(_ctx, _cache) {
17
38
  const _component_var_icon = _resolveComponent("var-icon");
@@ -51,21 +72,35 @@ function __render__(_ctx, _cache) {
51
72
  style: _normalizeStyle({ color: _ctx.checked ? _ctx.checkedColor : _ctx.uncheckedColor })
52
73
  },
53
74
  [
54
- _ctx.checked ? _renderSlot(_ctx.$slots, "checked-icon", { key: 0 }, () => [
55
- _createVNode(_component_var_icon, {
75
+ _ctx.checked ? (_openBlock(), _createElementBlock(
76
+ "span",
77
+ {
78
+ key: 0,
56
79
  class: _normalizeClass(_ctx.n("icon")),
57
- "var-radio-cover": "",
58
- name: "radio-marked",
59
- size: _ctx.iconSize
60
- }, null, 8, ["class", "size"])
61
- ]) : _renderSlot(_ctx.$slots, "unchecked-icon", { key: 1 }, () => [
62
- _createVNode(_component_var_icon, {
80
+ style: _normalizeStyle({ fontSize: _ctx.toSizeUnit(_ctx.iconSize) })
81
+ },
82
+ [
83
+ _renderSlot(_ctx.$slots, "checked-icon", {}, () => [
84
+ _createVNode(_component_var_icon, { name: "radio-marked" })
85
+ ])
86
+ ],
87
+ 6
88
+ /* CLASS, STYLE */
89
+ )) : (_openBlock(), _createElementBlock(
90
+ "span",
91
+ {
92
+ key: 1,
63
93
  class: _normalizeClass(_ctx.n("icon")),
64
- "var-radio-cover": "",
65
- name: "radio-blank",
66
- size: _ctx.iconSize
67
- }, null, 8, ["class", "size"])
68
- ]),
94
+ style: _normalizeStyle({ fontSize: _ctx.toSizeUnit(_ctx.iconSize) })
95
+ },
96
+ [
97
+ _renderSlot(_ctx.$slots, "unchecked-icon", {}, () => [
98
+ _createVNode(_component_var_icon, { name: "radio-blank" })
99
+ ])
100
+ ],
101
+ 6
102
+ /* CLASS, STYLE */
103
+ )),
69
104
  _createVNode(_component_var_hover_overlay, {
70
105
  hovering: !_ctx.disabled && !_ctx.formDisabled && _ctx.hovering,
71
106
  focusing: !_ctx.disabled && !_ctx.formDisabled && _ctx.isFocusing
@@ -190,14 +225,17 @@ const __sfc__ = defineComponent({
190
225
  });
191
226
  }
192
227
  function change(changedValue) {
193
- const { checkedValue, onChange } = props2;
194
- if (radioGroup && value.value === checkedValue) {
195
- return;
196
- }
197
- value.value = changedValue;
198
- call(onChange, value.value);
199
- radioGroup == null ? void 0 : radioGroup.onToggle(checkedValue);
200
- validateWithTrigger("onChange");
228
+ return __async(this, null, function* () {
229
+ const { checkedValue, onChange } = props2;
230
+ if (radioGroup && value.value === checkedValue) {
231
+ return;
232
+ }
233
+ value.value = changedValue;
234
+ radioGroup == null ? void 0 : radioGroup.onToggle(checkedValue);
235
+ yield nextTick();
236
+ call(onChange, changedValue);
237
+ validateWithTrigger("onChange");
238
+ });
201
239
  }
202
240
  function handleClick(e) {
203
241
  const { disabled, readonly, uncheckedValue, checkedValue, onClick } = props2;
@@ -249,6 +287,7 @@ const __sfc__ = defineComponent({
249
287
  classes,
250
288
  handleClick,
251
289
  handleTextClick,
290
+ toSizeUnit,
252
291
  toggle,
253
292
  reset,
254
293
  validate,
@@ -1 +1 @@
1
- :root { --radio-checked-color: var(--color-primary); --radio-unchecked-color: #555; --radio-disabled-color: var(--color-text-disabled); --radio-error-color: var(--color-danger); --radio-icon-size: 24px; --radio-action-padding: 6px; --radio-text-color: #555;}.var-radio { display: flex; align-items: center; transform: translateX(calc(-1 * var(--radio-action-padding))); outline: none; cursor: pointer; -webkit-tap-highlight-color: transparent;}.var-radio__wrap { display: inline-flex; flex-direction: column;}.var-radio__action { position: relative; display: flex; justify-content: center; align-items: center; flex-shrink: 0; padding: var(--radio-action-padding); border-radius: 50%; transition: background-color 0.25s, color 0.25s;}.var-radio__icon[var-radio-cover] { display: block; font-size: var(--radio-icon-size);}.var-radio__text { color: var(--radio-text-color);}.var-radio--checked { color: var(--radio-checked-color);}.var-radio--unchecked { color: var(--radio-unchecked-color);}.var-radio--disabled { color: var(--radio-disabled-color); cursor: not-allowed;}.var-radio--error { color: var(--radio-error-color);}
1
+ :root { --radio-checked-color: var(--color-primary); --radio-unchecked-color: #555; --radio-disabled-color: var(--color-text-disabled); --radio-error-color: var(--color-danger); --radio-icon-size: 24px; --radio-action-padding: 6px; --radio-text-color: #555;}.var-radio { display: flex; align-items: center; transform: translateX(calc(-1 * var(--radio-action-padding))); outline: none; cursor: pointer; -webkit-tap-highlight-color: transparent;}.var-radio__wrap { display: inline-flex; flex-direction: column;}.var-radio__action { position: relative; display: flex; justify-content: center; align-items: center; flex-shrink: 0; padding: var(--radio-action-padding); border-radius: 50%; transition: background-color 0.25s, color 0.25s;}.var-radio__icon { display: inline-flex; align-items: center; justify-content: center; width: 1em; height: 1em; font-size: var(--radio-icon-size); line-height: 1;}.var-radio__icon .var-icon { font-size: inherit;}.var-radio__text { color: var(--radio-text-color);}.var-radio--checked { color: var(--radio-checked-color);}.var-radio--unchecked { color: var(--radio-unchecked-color);}.var-radio--disabled { color: var(--radio-disabled-color); cursor: not-allowed;}.var-radio--error { color: var(--radio-error-color);}
@@ -31,7 +31,7 @@ const defaultBadgeProps = {
31
31
  type: "primary",
32
32
  dot: true
33
33
  };
34
- import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, createVNode as _createVNode, mergeProps as _mergeProps, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeStyle as _normalizeStyle, resolveDirective as _resolveDirective, withDirectives as _withDirectives } from "vue";
34
+ import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, createVNode as _createVNode, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, mergeProps as _mergeProps, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeStyle as _normalizeStyle, resolveDirective as _resolveDirective, withDirectives as _withDirectives } from "vue";
35
35
  const _hoisted_1 = ["aria-disabled"];
36
36
  function __render__(_ctx, _cache) {
37
37
  const _component_var_icon = _resolveComponent("var-icon");
@@ -66,28 +66,42 @@ function __render__(_ctx, _cache) {
66
66
  "var-rail-navigation-item-cover": ""
67
67
  }), {
68
68
  default: _withCtx(() => [
69
+ _createElementVNode(
70
+ "span",
71
+ {
72
+ class: _normalizeClass(_ctx.n("icon"))
73
+ },
74
+ [
75
+ _renderSlot(_ctx.$slots, "icon", { active: _ctx.isActive }, () => [
76
+ _createVNode(_component_var_icon, {
77
+ name: _ctx.icon,
78
+ namespace: _ctx.namespace
79
+ }, null, 8, ["name", "namespace"])
80
+ ])
81
+ ],
82
+ 2
83
+ /* CLASS */
84
+ )
85
+ ]),
86
+ _: 3
87
+ /* FORWARDED */
88
+ }, 16, ["class"])) : (_openBlock(), _createElementBlock(
89
+ "span",
90
+ {
91
+ key: 1,
92
+ class: _normalizeClass(_ctx.n("icon"))
93
+ },
94
+ [
69
95
  _renderSlot(_ctx.$slots, "icon", { active: _ctx.isActive }, () => [
70
96
  _createVNode(_component_var_icon, {
71
- class: _normalizeClass(_ctx.n("icon")),
72
97
  name: _ctx.icon,
73
- namespace: _ctx.namespace,
74
- "var-rail-navigation-item-cover": ""
75
- }, null, 8, ["class", "name", "namespace"])
98
+ namespace: _ctx.namespace
99
+ }, null, 8, ["name", "namespace"])
76
100
  ])
77
- ]),
78
- _: 3
79
- /* FORWARDED */
80
- }, 16, ["class"])) : _renderSlot(_ctx.$slots, "icon", {
81
- key: 1,
82
- active: _ctx.isActive
83
- }, () => [
84
- _createVNode(_component_var_icon, {
85
- class: _normalizeClass(_ctx.n("icon")),
86
- name: _ctx.icon,
87
- namespace: _ctx.namespace,
88
- "var-rail-navigation-item-cover": ""
89
- }, null, 8, ["class", "name", "namespace"])
90
- ])
101
+ ],
102
+ 2
103
+ /* CLASS */
104
+ ))
91
105
  ],
92
106
  2
93
107
  /* CLASS */
@@ -1 +1 @@
1
- :root { --rail-navigation-item-height: 64px; --rail-navigation-item-padding: 6px 4px; --rail-navigation-item-indicator-width: 56px; --rail-navigation-item-indicator-height: 32px; --rail-navigation-item-indicator-hover-background: transparent; --rail-navigation-item-indicator-pressed-background: transparent; --rail-navigation-item-indicator-active-background: transparent; --rail-navigation-item-inactive-text-color: var(--color-on-surface-variant); --rail-navigation-item-active-text-color: var(--color-primary); --rail-navigation-item-disabled-opacity: var(--opacity-disabled); --rail-navigation-item-icon-size: 24px; --rail-navigation-item-label-font-size: var(--font-size-sm); --rail-navigation-item-label-line-height: 1.5;}.var-rail-navigation-item { width: 100%; min-height: var(--rail-navigation-item-height); padding: var(--rail-navigation-item-padding); position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; color: var(--rail-navigation-item-inactive-text-color); cursor: pointer; user-select: none; transition: color 250ms, opacity 250ms;}.var-rail-navigation-item__indicator { width: var(--rail-navigation-item-indicator-width); height: var(--rail-navigation-item-indicator-height); display: inline-flex; align-items: center; justify-content: center; position: relative;}.var-rail-navigation-item__indicator::before,.var-rail-navigation-item__indicator::after { content: ''; z-index: 0; height: var(--rail-navigation-item-indicator-height); position: absolute; left: 50%; top: 50%; border-radius: calc(var(--rail-navigation-item-indicator-height) / 2); transform: translate(-50%, -50%);}.var-rail-navigation-item__indicator::before { width: var(--rail-navigation-item-indicator-width); background-color: var(--rail-navigation-item-indicator-hover-background); opacity: 0; transition: opacity 150ms;}.var-rail-navigation-item__indicator::after { width: var(--rail-navigation-item-indicator-width); transform: translate(-50%, -50%) scaleX(0); transform-origin: center;}.var-rail-navigation-item__icon[var-rail-navigation-item-cover] { font-size: var(--rail-navigation-item-icon-size);}.var-rail-navigation-item__icon { z-index: 1; position: relative; line-height: 1; color: currentColor;}.var-rail-navigation-item__badge[var-rail-navigation-item-cover] { z-index: 1;}.var-rail-navigation-item__label { margin-top: 4px; max-width: 100%; display: inline-flex; align-items: center; justify-content: center; color: currentColor; font-size: var(--rail-navigation-item-label-font-size); line-height: var(--rail-navigation-item-label-line-height); text-align: center; white-space: normal; word-break: break-word;}.var-rail-navigation-item:hover .var-rail-navigation-item__indicator::before { opacity: 1;}.var-rail-navigation-item:active:not(.var-rail-navigation-item--ripple-enabled):not(.var-rail-navigation-item--disabled) .var-rail-navigation-item__indicator::before { background-color: var(--rail-navigation-item-indicator-pressed-background); opacity: 1;}.var-rail-navigation-item--active { color: var(--rail-navigation-item-active-text-color);}.var-rail-navigation-item--active .var-rail-navigation-item__indicator::after { background-color: var(--rail-navigation-item-indicator-active-background); transform: translate(-50%, -50%) scaleX(1); transition: transform var(--rail-navigation-item-transition-duration-override, 250ms), background-color var(--rail-navigation-item-transition-duration-override, 250ms);}.var-rail-navigation-item--active:hover .var-rail-navigation-item__indicator::before { opacity: 0;}.var-rail-navigation-item--disabled { cursor: not-allowed; opacity: var(--rail-navigation-item-disabled-opacity);}.var-rail-navigation-item--disabled:hover .var-rail-navigation-item__indicator::before { opacity: 0;}.var-rail-navigation-item--disabled * { pointer-events: none;}.var-rail-navigation-item--icon-only { min-height: var(--rail-navigation-item-indicator-height);}
1
+ :root { --rail-navigation-item-height: 64px; --rail-navigation-item-padding: 6px 4px; --rail-navigation-item-indicator-width: 56px; --rail-navigation-item-indicator-height: 32px; --rail-navigation-item-indicator-hover-background: transparent; --rail-navigation-item-indicator-pressed-background: transparent; --rail-navigation-item-indicator-active-background: transparent; --rail-navigation-item-inactive-text-color: var(--color-on-surface-variant); --rail-navigation-item-active-text-color: var(--color-primary); --rail-navigation-item-disabled-opacity: var(--opacity-disabled); --rail-navigation-item-icon-size: 24px; --rail-navigation-item-label-font-size: var(--font-size-sm); --rail-navigation-item-label-line-height: 1.5;}.var-rail-navigation-item { width: 100%; min-height: var(--rail-navigation-item-height); padding: var(--rail-navigation-item-padding); position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; color: var(--rail-navigation-item-inactive-text-color); cursor: pointer; user-select: none; transition: color 250ms, opacity 250ms;}.var-rail-navigation-item__indicator { width: var(--rail-navigation-item-indicator-width); height: var(--rail-navigation-item-indicator-height); display: inline-flex; align-items: center; justify-content: center; position: relative;}.var-rail-navigation-item__indicator::before,.var-rail-navigation-item__indicator::after { content: ''; z-index: 0; height: var(--rail-navigation-item-indicator-height); position: absolute; left: 50%; top: 50%; border-radius: calc(var(--rail-navigation-item-indicator-height) / 2); transform: translate(-50%, -50%);}.var-rail-navigation-item__indicator::before { width: var(--rail-navigation-item-indicator-width); background-color: var(--rail-navigation-item-indicator-hover-background); opacity: 0; transition: opacity 150ms;}.var-rail-navigation-item__indicator::after { width: var(--rail-navigation-item-indicator-width); transform: translate(-50%, -50%) scaleX(0); transform-origin: center;}.var-rail-navigation-item__icon { display: inline-flex; align-items: center; justify-content: center; width: 1em; height: 1em; font-size: var(--rail-navigation-item-icon-size); line-height: 1; z-index: 1; position: relative; color: currentColor;}.var-rail-navigation-item__icon .var-icon { font-size: inherit;}.var-rail-navigation-item__badge[var-rail-navigation-item-cover] { z-index: 1;}.var-rail-navigation-item__label { margin-top: 4px; max-width: 100%; display: inline-flex; align-items: center; justify-content: center; color: currentColor; font-size: var(--rail-navigation-item-label-font-size); line-height: var(--rail-navigation-item-label-line-height); text-align: center; white-space: normal; word-break: break-word;}.var-rail-navigation-item:hover .var-rail-navigation-item__indicator::before { opacity: 1;}.var-rail-navigation-item:active:not(.var-rail-navigation-item--ripple-enabled):not(.var-rail-navigation-item--disabled) .var-rail-navigation-item__indicator::before { background-color: var(--rail-navigation-item-indicator-pressed-background); opacity: 1;}.var-rail-navigation-item--active { color: var(--rail-navigation-item-active-text-color);}.var-rail-navigation-item--active .var-rail-navigation-item__indicator::after { background-color: var(--rail-navigation-item-indicator-active-background); transform: translate(-50%, -50%) scaleX(1); transition: transform var(--rail-navigation-item-transition-duration-override, 250ms), background-color var(--rail-navigation-item-transition-duration-override, 250ms);}.var-rail-navigation-item--active:hover .var-rail-navigation-item__indicator::before { opacity: 0;}.var-rail-navigation-item--disabled { cursor: not-allowed; opacity: var(--rail-navigation-item-disabled-opacity);}.var-rail-navigation-item--disabled:hover .var-rail-navigation-item__indicator::before { opacity: 0;}.var-rail-navigation-item--disabled * { pointer-events: none;}.var-rail-navigation-item--icon-only { min-height: var(--rail-navigation-item-indicator-height);}
package/es/rate/Rate.mjs CHANGED
@@ -10,7 +10,7 @@ import { createNamespace, useValidation } from "../utils/components.mjs";
10
10
  import { toSizeUnit } from "../utils/elements.mjs";
11
11
  import { props } from "./props.mjs";
12
12
  const { name, n } = createNamespace("rate");
13
- import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createVNode as _createVNode, resolveDirective as _resolveDirective, withDirectives as _withDirectives, createElementVNode as _createElementVNode } from "vue";
13
+ import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, renderSlot as _renderSlot, resolveComponent as _resolveComponent, createVNode as _createVNode, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, resolveDirective as _resolveDirective, withDirectives as _withDirectives } from "vue";
14
14
  const _hoisted_1 = ["onClick"];
15
15
  function __render__(_ctx, _cache) {
16
16
  const _component_var_icon = _resolveComponent("var-icon");
@@ -40,14 +40,24 @@ function __render__(_ctx, _cache) {
40
40
  class: _normalizeClass(_ctx.getClass(value)),
41
41
  onClick: ($event) => _ctx.handleClick(value, $event)
42
42
  }, [
43
- _createVNode(_component_var_icon, {
44
- class: _normalizeClass(_ctx.n("content-icon")),
45
- "var-rate-cover": "",
46
- transition: 0,
47
- namespace: _ctx.getCurrentState(value).namespace,
48
- name: _ctx.getCurrentState(value).name,
49
- style: _normalizeStyle({ fontSize: _ctx.toSizeUnit(_ctx.size) })
50
- }, null, 8, ["class", "namespace", "name", "style"]),
43
+ _createElementVNode(
44
+ "span",
45
+ {
46
+ class: _normalizeClass(_ctx.n("content-icon")),
47
+ style: _normalizeStyle({ fontSize: _ctx.toSizeUnit(_ctx.size) })
48
+ },
49
+ [
50
+ _renderSlot(_ctx.$slots, _ctx.getCurrentState(value).slot, {}, () => [
51
+ _createVNode(_component_var_icon, {
52
+ transition: 0,
53
+ namespace: _ctx.getCurrentState(value).namespace,
54
+ name: _ctx.getCurrentState(value).name
55
+ }, null, 8, ["namespace", "name"])
56
+ ])
57
+ ],
58
+ 6
59
+ /* CLASS, STYLE */
60
+ ),
51
61
  _createVNode(_component_var_hover_overlay, {
52
62
  hovering: _ctx.hovering && value === _ctx.currentHoveringValue && !_ctx.disabled && !_ctx.formDisabled
53
63
  }, null, 8, ["hovering"])
@@ -126,15 +136,16 @@ const __sfc__ = defineComponent({
126
136
  iconColor = disabledColor;
127
137
  }
128
138
  if (index <= modelValue) {
129
- return { color: iconColor, name: icon, namespace };
139
+ return { color: iconColor, name: icon, namespace, slot: "icon" };
130
140
  }
131
141
  if (half && index <= modelValue + 0.5) {
132
- return { color: iconColor, name: halfIcon, namespace: halfIconNamespace };
142
+ return { color: iconColor, name: halfIcon, namespace: halfIconNamespace, slot: "half-icon" };
133
143
  }
134
144
  return {
135
145
  color: disabled || (form == null ? void 0 : form.disabled.value) ? disabledColor : emptyColor,
136
146
  name: emptyIcon,
137
- namespace: emptyIconNamespace
147
+ namespace: emptyIconNamespace,
148
+ slot: "empty-icon"
138
149
  };
139
150
  }
140
151
  function changeValue(score, event) {
package/es/rate/rate.css CHANGED
@@ -1 +1 @@
1
- :root { --rate-color: var(--color-text); --rate-size: 24px; --rate-disabled-color: var(--color-text-disabled); --rate-error-color: var(--color-danger); --rate-action-padding: 4px; --rate-primary-color: var(--color-primary);}.var-rate { display: flex; transform: translateX(calc(-1 * var(--rate-action-padding)));}.var-rate__wrap { width: 100%;}.var-rate__content { position: relative; display: flex; padding: var(--rate-action-padding); cursor: pointer; border-radius: 50%; color: var(--rate-color); transition: color 0.25s; -webkit-tap-highlight-color: transparent;}.var-rate__content-icon[var-rate-cover] { font-size: var(--rate-size);}.var-rate--primary { color: var(--rate-primary-color);}.var-rate--disabled { color: var(--rate-disabled-color); cursor: not-allowed;}.var-rate--error { color: var(--rate-error-color);}
1
+ :root { --rate-color: var(--color-text); --rate-size: 24px; --rate-disabled-color: var(--color-text-disabled); --rate-error-color: var(--color-danger); --rate-action-padding: 4px; --rate-primary-color: var(--color-primary);}.var-rate { display: flex; transform: translateX(calc(-1 * var(--rate-action-padding)));}.var-rate__wrap { width: 100%;}.var-rate__content { position: relative; display: flex; padding: var(--rate-action-padding); cursor: pointer; border-radius: 50%; color: var(--rate-color); transition: color 0.25s; -webkit-tap-highlight-color: transparent;}.var-rate__content-icon { display: inline-flex; align-items: center; justify-content: center; width: 1em; height: 1em; font-size: var(--rate-size); line-height: 1;}.var-rate__content-icon .var-icon { font-size: inherit;}.var-rate--primary { color: var(--rate-primary-color);}.var-rate--disabled { color: var(--rate-disabled-color); cursor: not-allowed;}.var-rate--error { color: var(--rate-error-color);}
@@ -50,7 +50,7 @@ import { injectLocaleProvider } from "../locale-provider/provide.mjs";
50
50
  import VarMenu from "../menu/index.mjs";
51
51
  import VarOption from "../option/index.mjs";
52
52
  import { createNamespace, MaybeVNode, useValidation } from "../utils/components.mjs";
53
- import { focusChildElementByKey, toPxNum } from "../utils/elements.mjs";
53
+ import { focusChildElementByKey, scrollSelectedIntoView, toPxNum } from "../utils/elements.mjs";
54
54
  import { props } from "./props.mjs";
55
55
  import { useOptions } from "./provide.mjs";
56
56
  import VarSelectFilter from "./SelectFilter.mjs";
@@ -483,6 +483,11 @@ const __sfc__ = defineComponent({
483
483
  );
484
484
  }
485
485
  );
486
+ watch(showMenu, (value) => {
487
+ if (value) {
488
+ nextTick(scrollSelectedOptionIntoView);
489
+ }
490
+ });
486
491
  bindOptions(selectProvider);
487
492
  useEventListener(() => window, "keydown", handleKeydown);
488
493
  useEventListener(() => window, "keyup", handleKeyup);
@@ -502,6 +507,10 @@ const __sfc__ = defineComponent({
502
507
  }
503
508
  return true;
504
509
  }
510
+ function scrollSelectedOptionIntoView() {
511
+ var _a2;
512
+ scrollSelectedIntoView(menuEl.value, (_a2 = menuEl.value) == null ? void 0 : _a2.querySelector(".var-option--selected-color"));
513
+ }
505
514
  function handleKeydown(event) {
506
515
  var _a2;
507
516
  if (disabled.value || readonly.value || !isFocusing.value) {
@@ -1 +1 @@
1
- :root { --select-scroller-background: var(--color-surface-container-high); --select-scroller-padding: 6px 0; --select-scroller-max-height: 278px; --select-scroller-border-radius: 2px; --select-chips-margin: -5px 0 0 0; --select-chips-padding: 2px 0; --select-chip-margin: 5px 5px 0 0; --select-chip-background-color: #e0e0e0; --select-arrow-size: 20px; --select-standard-menu-margin: calc(var(--field-decorator-placeholder-size) * 0.75 + 12px) 0 0 0; --select-label-font-size: 16px; --select-empty-text-color: rgba(0, 0, 0, 0.6); --select-empty-height: 38px; --select-empty-font-size: 14px;}.var-select { text-align: left; outline: none;}.var-select__menu[var-select-cover] { width: 100%; background: transparent; display: block;}.var-select__chip[var-select-cover] { margin: var(--select-chip-margin); background-color: var(--select-chip-background-color);}.var-select__chips { padding: var(--select-chips-padding); margin: var(--select-chips-margin);}.var-select__scroller { --scrollbar-track-background: var(--select-scroller-background); max-height: var(--select-scroller-max-height); background: var(--select-scroller-background); padding: var(--select-scroller-padding); overflow-y: auto; transition: background-color 0.25s; border-radius: var(--select-scroller-border-radius);}.var-select__select { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 24px; outline: none; border: none; font-size: inherit; color: var(--field-decorator-text-color); word-break: break-all; overflow: hidden; transition: color 0.25s;}.var-select__values { display: flex; flex-wrap: wrap; align-items: center;}.var-select__chips { display: flex; flex-wrap: wrap; align-items: center;}.var-select__filter { flex: 1; position: absolute; left: 0; top: 0; height: 100%; border: none; outline: none; padding: 0; background-color: transparent; font-size: var(--field-decorator-placeholder-size); line-height: inherit; color: var(--field-decorator-text-color);}.var-select__filter--multiple { position: unset;}.var-select__chips .var-select__filter { padding-left: 0; margin-top: 4px;}.var-select__filter-calculator { position: absolute; left: 0; top: 0; max-width: 100%; visibility: hidden; white-space: pre; overflow: hidden; pointer-events: none;}.var-select__label { display: flex; align-items: center; font-size: var(--select-label-font-size);}.var-select__placeholder { max-width: 100%; position: absolute; top: 50%; left: 0; transform: translateY(-50%); font-size: var(--field-decorator-placeholder-size); line-height: 1.5em; color: var(--field-decorator-blur-color); pointer-events: none; cursor: inherit;}.var-select__empty { color: var(--select-empty-text-color); text-align: center; height: var(--select-empty-height); font-size: var(--select-empty-font-size); display: flex; align-items: center; justify-content: center;}.var-select__arrow[var-select-cover] { flex-shrink: 0; font-size: var(--select-arrow-size); margin-left: 6px;}.var-select--standard-menu-margin { margin: var(--select-standard-menu-margin) !important;}.var-select--disabled { color: var(--field-decorator-disabled-color); cursor: not-allowed;}.var-select--error { color: var(--field-decorator-error-color);}.var-select--arrow-rotate { transform: rotate(180deg);}.var-select--label-focusing { color: var(--field-decorator-blur-color);}
1
+ :root { --select-scroller-background: var(--color-surface-container-high); --select-scroller-padding: 6px 0; --select-scroller-max-height: 278px; --select-scroller-border-radius: 2px; --select-chips-margin: -5px 0 0 0; --select-chips-padding: 2px 0; --select-chip-margin: 5px 5px 0 0; --select-chip-background-color: #e0e0e0; --select-arrow-size: 20px; --select-standard-menu-margin: calc(var(--field-decorator-placeholder-size) * 0.75 + 12px) 0 0 0; --select-label-font-size: 16px; --select-empty-text-color: rgba(0, 0, 0, 0.6); --select-empty-height: 38px; --select-empty-font-size: 14px;}.var-select { text-align: left; outline: none;}.var-select__menu[var-select-cover] { width: 100%; background: transparent; display: block;}.var-select__chip[var-select-cover] { margin: var(--select-chip-margin); background-color: var(--select-chip-background-color);}.var-select__chips { padding: var(--select-chips-padding); margin: var(--select-chips-margin);}.var-select__scroller { --scrollbar-track-background: var(--select-scroller-background); position: relative; max-height: var(--select-scroller-max-height); background: var(--select-scroller-background); padding: var(--select-scroller-padding); overflow-y: auto; transition: background-color 0.25s; border-radius: var(--select-scroller-border-radius);}.var-select__select { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 24px; outline: none; border: none; font-size: inherit; color: var(--field-decorator-text-color); word-break: break-all; overflow: hidden; transition: color 0.25s;}.var-select__values { display: flex; flex-wrap: wrap; align-items: center;}.var-select__chips { display: flex; flex-wrap: wrap; align-items: center;}.var-select__filter { flex: 1; position: absolute; left: 0; top: 0; height: 100%; border: none; outline: none; padding: 0; background-color: transparent; font-size: var(--field-decorator-placeholder-size); line-height: inherit; color: var(--field-decorator-text-color);}.var-select__filter--multiple { position: unset;}.var-select__chips .var-select__filter { padding-left: 0; margin-top: 4px;}.var-select__filter-calculator { position: absolute; left: 0; top: 0; max-width: 100%; visibility: hidden; white-space: pre; overflow: hidden; pointer-events: none;}.var-select__label { display: flex; align-items: center; font-size: var(--select-label-font-size);}.var-select__placeholder { max-width: 100%; position: absolute; top: 50%; left: 0; transform: translateY(-50%); font-size: var(--field-decorator-placeholder-size); line-height: 1.5em; color: var(--field-decorator-blur-color); pointer-events: none; cursor: inherit;}.var-select__empty { color: var(--select-empty-text-color); text-align: center; height: var(--select-empty-height); font-size: var(--select-empty-font-size); display: flex; align-items: center; justify-content: center;}.var-select__arrow[var-select-cover] { flex-shrink: 0; font-size: var(--select-arrow-size); margin-left: 6px;}.var-select--standard-menu-margin { margin: var(--select-standard-menu-margin) !important;}.var-select--disabled { color: var(--field-decorator-disabled-color); cursor: not-allowed;}.var-select--error { color: var(--field-decorator-error-color);}.var-select--arrow-rotate { transform: rotate(180deg);}.var-select--label-focusing { color: var(--field-decorator-blur-color);}
@@ -346,8 +346,8 @@ const __sfc__ = defineComponent({
346
346
  item.handleHovering(value);
347
347
  }
348
348
  function emitChange(value) {
349
- call(props2.onChange, value);
350
349
  call(props2["onUpdate:modelValue"], value);
350
+ call(props2.onChange, value);
351
351
  validateWithTrigger();
352
352
  }
353
353
  function setPercent(moveDistance, type) {
package/es/step/Step.mjs CHANGED
@@ -5,7 +5,7 @@ import { createNamespace } from "../utils/components.mjs";
5
5
  import { props } from "./props.mjs";
6
6
  import { useSteps } from "./provide.mjs";
7
7
  const { name, n, classes } = createNamespace("step");
8
- import { resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, renderSlot as _renderSlot } from "vue";
8
+ 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, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode } from "vue";
9
9
  const _hoisted_1 = { key: 3 };
10
10
  function __render__(_ctx, _cache) {
11
11
  const _component_var_icon = _resolveComponent("var-icon");
@@ -29,25 +29,55 @@ function __render__(_ctx, _cache) {
29
29
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.click && _ctx.click(...args))
30
30
  },
31
31
  [
32
- _ctx.isActive ? (_openBlock(), _createBlock(_component_var_icon, {
33
- key: 0,
34
- class: _normalizeClass(_ctx.n("icon")),
35
- "var-step-cover": "",
36
- name: _ctx.activeIcon,
37
- namespace: _ctx.activeIconNamespace
38
- }, null, 8, ["class", "name", "namespace"])) : _ctx.isCurrent && _ctx.currentIcon ? (_openBlock(), _createBlock(_component_var_icon, {
39
- key: 1,
40
- class: _normalizeClass(_ctx.n("icon")),
41
- "var-step-cover": "",
42
- name: _ctx.currentIcon,
43
- namespace: _ctx.currentIconNamespace
44
- }, null, 8, ["class", "name", "namespace"])) : _ctx.inactiveIcon ? (_openBlock(), _createBlock(_component_var_icon, {
45
- key: 2,
46
- class: _normalizeClass(_ctx.n("icon")),
47
- "var-step-cover": "",
48
- name: _ctx.inactiveIcon,
49
- namespace: _ctx.inactiveIconNamespace
50
- }, null, 8, ["class", "name", "namespace"])) : (_openBlock(), _createElementBlock(
32
+ _ctx.isActive ? (_openBlock(), _createElementBlock(
33
+ "span",
34
+ {
35
+ key: 0,
36
+ class: _normalizeClass(_ctx.n("icon"))
37
+ },
38
+ [
39
+ _renderSlot(_ctx.$slots, "active-icon", {}, () => [
40
+ _createVNode(_component_var_icon, {
41
+ name: _ctx.activeIcon,
42
+ namespace: _ctx.activeIconNamespace
43
+ }, null, 8, ["name", "namespace"])
44
+ ])
45
+ ],
46
+ 2
47
+ /* CLASS */
48
+ )) : _ctx.isCurrent && (_ctx.$slots["current-icon"] || _ctx.currentIcon) ? (_openBlock(), _createElementBlock(
49
+ "span",
50
+ {
51
+ key: 1,
52
+ class: _normalizeClass(_ctx.n("icon"))
53
+ },
54
+ [
55
+ _renderSlot(_ctx.$slots, "current-icon", {}, () => [
56
+ _createVNode(_component_var_icon, {
57
+ name: _ctx.currentIcon,
58
+ namespace: _ctx.currentIconNamespace
59
+ }, null, 8, ["name", "namespace"])
60
+ ])
61
+ ],
62
+ 2
63
+ /* CLASS */
64
+ )) : _ctx.$slots["inactive-icon"] || _ctx.inactiveIcon ? (_openBlock(), _createElementBlock(
65
+ "span",
66
+ {
67
+ key: 2,
68
+ class: _normalizeClass(_ctx.n("icon"))
69
+ },
70
+ [
71
+ _renderSlot(_ctx.$slots, "inactive-icon", {}, () => [
72
+ _createVNode(_component_var_icon, {
73
+ name: _ctx.inactiveIcon,
74
+ namespace: _ctx.inactiveIconNamespace
75
+ }, null, 8, ["name", "namespace"])
76
+ ])
77
+ ],
78
+ 2
79
+ /* CLASS */
80
+ )) : (_openBlock(), _createElementBlock(
51
81
  "span",
52
82
  _hoisted_1,
53
83
  _toDisplayString(_ctx.index + 1),
package/es/step/step.css CHANGED
@@ -1 +1 @@
1
- :root { --step-tag-size: 20px; --step-tag-background: #9e9e9e; --step-tag-font-size: var(--font-size-md); --step-tag-color: var(--color-on-primary); --step-tag-active-color: var(--color-primary); --step-tag-margin: 4px 0; --step-tag-icon-size: var(--font-size-lg); --step-content-font-size: var(--font-size-md); --step-content-color: rgba(0, 0, 0, 0.38); --step-content-active-color: #000; --step-line-background: #000; --step-line-gap: 8px; --step-vertical-tag-margin: 0 4px; --step-vertical-min-height: 50px;}.var-step-tag { width: var(--step-tag-size); height: var(--step-tag-size); background: var(--step-tag-background); display: flex; font-size: var(--step-tag-font-size); align-items: center; justify-content: center; border-radius: 50%; color: var(--step-tag-color); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: 0.3s var(--cubic-bezier);}.var-step-content { font-size: var(--step-content-font-size); color: var(--step-content-color); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: 0.3s var(--cubic-bezier);}.var-step { position: relative; flex: 1; -webkit-tap-highlight-color: transparent;}.var-step:last-child .var-step__horizontal-line { width: 0;}.var-step:last-child .var-step__vertical-line { height: 0;}.var-step__horizontal { display: flex; flex-direction: column; align-items: center;}.var-step__horizontal-tag { margin: var(--step-tag-margin); width: var(--step-tag-size); height: var(--step-tag-size); background: var(--step-tag-background); display: flex; font-size: var(--step-tag-font-size); align-items: center; justify-content: center; border-radius: 50%; color: var(--step-tag-color); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: 0.3s var(--cubic-bezier);}.var-step__horizontal-tag--active { background: var(--step-tag-active-color);}.var-step__horizontal-content { font-size: var(--step-content-font-size); color: var(--step-content-color); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: 0.3s var(--cubic-bezier);}.var-step__horizontal-content--active { color: var(--step-content-active-color);}.var-step__horizontal-line { position: absolute; top: calc(calc(var(--step-tag-size) + var(--step-line-gap)) / 2); left: calc(50% + calc(var(--step-tag-size) + var(--step-line-gap)) / 2); width: calc(100% - calc(var(--step-tag-size) + var(--step-line-gap))); height: 1px; transform: scaleY(0.5); background: var(--step-line-background);}.var-step__vertical { display: flex; height: 100%; min-height: var(--step-vertical-min-height);}.var-step__vertical-tag { flex-shrink: 0; margin: var(--step-vertical-tag-margin); width: var(--step-tag-size); height: var(--step-tag-size); background: var(--step-tag-background); display: flex; font-size: var(--step-tag-font-size); align-items: center; justify-content: center; border-radius: 50%; color: var(--step-tag-color); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: 0.3s var(--cubic-bezier);}.var-step__vertical-tag--active { background: var(--step-tag-active-color);}.var-step__vertical-content { font-size: var(--step-content-font-size); color: var(--step-content-color); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: 0.3s var(--cubic-bezier);}.var-step__vertical-content--active { color: var(--step-content-active-color);}.var-step__vertical-line { position: absolute; height: calc(100% - calc(var(--step-tag-size) + var(--step-line-gap))); left: calc(calc(var(--step-tag-size) + var(--step-line-gap)) / 2); top: calc(calc(var(--step-tag-size) + var(--step-line-gap)) - var(--step-line-gap) / 2); width: 1px; transform: scaleX(0.5); background: var(--step-line-background);}.var-step__icon[var-step-cover] { font-size: var(--step-tag-icon-size);}
1
+ :root { --step-tag-size: 20px; --step-tag-background: #9e9e9e; --step-tag-font-size: var(--font-size-md); --step-tag-color: var(--color-on-primary); --step-tag-active-color: var(--color-primary); --step-tag-margin: 4px 0; --step-tag-icon-size: var(--font-size-lg); --step-content-font-size: var(--font-size-md); --step-content-color: rgba(0, 0, 0, 0.38); --step-content-active-color: #000; --step-line-background: #000; --step-line-gap: 8px; --step-vertical-tag-margin: 0 4px; --step-vertical-min-height: 50px;}.var-step-tag { width: var(--step-tag-size); height: var(--step-tag-size); background: var(--step-tag-background); display: flex; font-size: var(--step-tag-font-size); align-items: center; justify-content: center; border-radius: 50%; color: var(--step-tag-color); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: 0.3s var(--cubic-bezier);}.var-step-content { font-size: var(--step-content-font-size); color: var(--step-content-color); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: 0.3s var(--cubic-bezier);}.var-step { position: relative; flex: 1; -webkit-tap-highlight-color: transparent;}.var-step:last-child .var-step__horizontal-line { width: 0;}.var-step:last-child .var-step__vertical-line { height: 0;}.var-step__horizontal { display: flex; flex-direction: column; align-items: center;}.var-step__horizontal-tag { margin: var(--step-tag-margin); width: var(--step-tag-size); height: var(--step-tag-size); background: var(--step-tag-background); display: flex; font-size: var(--step-tag-font-size); align-items: center; justify-content: center; border-radius: 50%; color: var(--step-tag-color); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: 0.3s var(--cubic-bezier);}.var-step__horizontal-tag--active { background: var(--step-tag-active-color);}.var-step__horizontal-content { font-size: var(--step-content-font-size); color: var(--step-content-color); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: 0.3s var(--cubic-bezier);}.var-step__horizontal-content--active { color: var(--step-content-active-color);}.var-step__horizontal-line { position: absolute; top: calc(calc(var(--step-tag-size) + var(--step-line-gap)) / 2); left: calc(50% + calc(var(--step-tag-size) + var(--step-line-gap)) / 2); width: calc(100% - calc(var(--step-tag-size) + var(--step-line-gap))); height: 1px; transform: scaleY(0.5); background: var(--step-line-background);}.var-step__vertical { display: flex; height: 100%; min-height: var(--step-vertical-min-height);}.var-step__vertical-tag { flex-shrink: 0; margin: var(--step-vertical-tag-margin); width: var(--step-tag-size); height: var(--step-tag-size); background: var(--step-tag-background); display: flex; font-size: var(--step-tag-font-size); align-items: center; justify-content: center; border-radius: 50%; color: var(--step-tag-color); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: 0.3s var(--cubic-bezier);}.var-step__vertical-tag--active { background: var(--step-tag-active-color);}.var-step__vertical-content { font-size: var(--step-content-font-size); color: var(--step-content-color); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: 0.3s var(--cubic-bezier);}.var-step__vertical-content--active { color: var(--step-content-active-color);}.var-step__vertical-line { position: absolute; height: calc(100% - calc(var(--step-tag-size) + var(--step-line-gap))); left: calc(calc(var(--step-tag-size) + var(--step-line-gap)) / 2); top: calc(calc(var(--step-tag-size) + var(--step-line-gap)) - var(--step-line-gap) / 2); width: 1px; transform: scaleX(0.5); background: var(--step-line-background);}.var-step__icon { display: inline-flex; align-items: center; justify-content: center; width: 1em; height: 1em; font-size: var(--step-tag-icon-size); line-height: 1;}.var-step__icon .var-icon { font-size: inherit;}
package/es/style.mjs CHANGED
@@ -27,6 +27,7 @@ import './count-to/style/index.mjs'
27
27
  import './countdown/style/index.mjs'
28
28
  import './counter/style/index.mjs'
29
29
  import './data-table/style/index.mjs'
30
+ import './date-input/style/index.mjs'
30
31
  import './date-picker/style/index.mjs'
31
32
  import './dialog/style/index.mjs'
32
33
  import './divider/style/index.mjs'
@@ -222,8 +222,8 @@ const __sfc__ = defineComponent({
222
222
  validateWithTrigger("onLazyChange");
223
223
  });
224
224
  } else {
225
- call(onChange, newValue);
226
225
  call(updateModelValue, newValue);
226
+ call(onChange, newValue);
227
227
  validateWithTrigger("onChange");
228
228
  }
229
229
  }
@@ -2,9 +2,9 @@ var stdin_default = {
2
2
  "--alert-padding": "16px",
3
3
  "--alert-border-radius": "4px",
4
4
  "--alert-icon-size": "22px",
5
- "--alert-icon-margin": "0 12px 0 0",
5
+ "--alert-icon-margin": "1px 12px 0 0",
6
6
  "--alert-close-icon-size": "22px",
7
- "--alert-close-icon-margin": "2px 0 0 12px",
7
+ "--alert-close-icon-margin": "1px 0 0 12px",
8
8
  "--alert-standard-info-text-color": "var(--color-on-info)",
9
9
  "--alert-standard-danger-text-color": "var(--color-on-danger)",
10
10
  "--alert-standard-success-text-color": "var(--color-on-success)",
@@ -0,0 +1,9 @@
1
+ var stdin_default = {
2
+ "--date-input-picker-width": "320px",
3
+ "--date-input-time-select-separator-color": "var(--color-on-surface-variant)",
4
+ "--date-input-time-select-border-color": "var(--color-outline)",
5
+ "--date-input-time-select-active-color": "var(--color-primary)"
6
+ };
7
+ export {
8
+ stdin_default as default
9
+ };
@@ -2,46 +2,50 @@ var stdin_default = {
2
2
  "--date-picker-main-color": "#fff",
3
3
  "--date-picker-body-background-color": "#303030",
4
4
  "--day-picker-head-item-color": "#aaaaaa",
5
- "--year-picker-item-color": "#fff",
5
+ "--day-picker-adjacent-item-color": "rgba(255, 255, 255, 0.56)",
6
+ "--day-picker-disabled-item-color": "var(--color-text-disabled)",
6
7
  "--date-picker-header-color": "#fff",
7
8
  "--date-picker-border-radius": "4px",
8
9
  "--date-picker-font-size": "var(--font-size-md)",
9
10
  "--date-picker-min-width": "290px",
10
- "--date-picker-title-hint-color": "#fff",
11
+ "--date-picker-title-hint-color": "#aaaaaa",
11
12
  "--date-picker-title-hint-font-size": "var(--font-size-md)",
12
13
  "--date-picker-title-height": "105px",
13
- "--date-picker-title-padding": "16px",
14
- "--date-picker-title-background": "var(--color-primary)",
14
+ "--date-picker-title-padding": "20px 20px 16px",
15
+ "--date-picker-title-background": "#303030",
15
16
  "--date-picker-title-color": "#fff",
16
- "--date-picker-title-year-font-size": "var(--font-size-md)",
17
- "--date-picker-title-year-font-weight": "500",
18
- "--date-picker-title-year-margin-bottom": "8px",
19
17
  "--date-picker-title-date-height": "48px",
20
18
  "--date-picker-title-date-font-size": "34px",
21
19
  "--date-picker-title-date-font-weight": "500",
22
20
  "--date-picker-title-date-range-font-size": "20px",
23
21
  "--date-picker-title-date-justify-content": "normal",
24
- "--date-picker-body-height": "280px",
25
- "--date-picker-body-padding": "0",
26
- "--date-picker-header-padding": "4px 16px",
27
- "--date-picker-actions-padding": "0 8px 12px 8px",
28
- "--date-picker-header-arrow-filter": "opacity(0.54)",
22
+ "--date-picker-body-height": "304px",
23
+ "--date-picker-body-padding-horizontal": "12px",
24
+ "--date-picker-body-padding": "0 var(--date-picker-body-padding-horizontal) 16px",
25
+ "--date-picker-header-padding": "0 0 16px",
26
+ "--date-picker-header-padding-top-no-title": "20px",
27
+ "--date-picker-actions-padding": "10px 20px 20px",
28
+ "--date-picker-header-arrow-filter": "opacity(1)",
29
29
  "--month-picker-padding": "0 12px",
30
- "--month-picker-item-width": "33%",
31
- "--month-picker-item-height": "56px",
30
+ "--month-picker-item-width": "32%",
31
+ "--month-picker-item-height": "46px",
32
32
  "--month-picker-item-button-max-width": "140px",
33
+ "--month-picker-item-button-font-weight": "normal",
33
34
  "--year-picker-padding": "0 12px",
34
- "--year-picker-item-width": "33%",
35
- "--year-picker-item-height": "56px",
35
+ "--year-picker-item-width": "32%",
36
+ "--year-picker-item-height": "46px",
36
37
  "--year-picker-item-button-max-width": "140px",
38
+ "--year-picker-item-button-font-weight": "normal",
37
39
  "--day-picker-content-item-width": "14.28%",
38
- "--day-picker-content-item-font-size": "var(--font-size-sm)",
40
+ "--day-picker-content-item-min-height": "21px",
41
+ "--day-picker-content-item-font-size": "var(--font-size-md)",
39
42
  "--day-picker-content-item-padding": "2px 0",
40
43
  "--day-picker-content-item-button-width": "32px",
41
44
  "--day-picker-content-item-button-height": "32px",
42
- "--day-picker-content-item-button-font-size": "var(--font-size-sm)",
45
+ "--day-picker-content-item-button-font-size": "var(--font-size-md)",
46
+ "--day-picker-head-item-font-size": "var(--font-size-md)",
43
47
  "--day-picker-head-item-padding": "8px 0",
44
- "--day-picker-head-item-font-weight": "600"
48
+ "--day-picker-head-item-font-weight": "normal"
45
49
  };
46
50
  export {
47
51
  stdin_default as default
@@ -34,6 +34,7 @@ import collapse from "./collapse.mjs";
34
34
  import countdown from "./countdown.mjs";
35
35
  import counter from "./counter.mjs";
36
36
  import dataTable from "./dataTable.mjs";
37
+ import dateInput from "./dateInput.mjs";
37
38
  import datePicker from "./datePicker.mjs";
38
39
  import dialog from "./dialog.mjs";
39
40
  import divider from "./divider.mjs";
@@ -87,7 +88,7 @@ import tooltip from "./tooltip.mjs";
87
88
  import treeMenu from "./treeMenu.mjs";
88
89
  import uploader from "./uploader.mjs";
89
90
  import watermark from "./watermark.mjs";
90
- var stdin_default = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
91
+ var stdin_default = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
91
92
  "--color-scheme": "dark",
92
93
  "--font-size-xs": "10px",
93
94
  "--font-size-sm": "12px",
@@ -166,7 +167,7 @@ var stdin_default = __spreadValues(__spreadValues(__spreadValues(__spreadValues(
166
167
  "--shadow-key-umbra-opacity": "rgba(0, 0, 0, 0.2)",
167
168
  "--shadow-key-penumbra-opacity": "rgba(0, 0, 0, 0.14)",
168
169
  "--shadow-key-ambient-opacity": "rgba(0, 0, 0, 0.12)"
169
- }, button), alert), cell), card), timePicker), datePicker), skeleton), tabs), tab), popup), dialog), actionSheet), chip), badge), uploader), collapse), pullRefresh), switchThemes), step), pagination), table), fieldDecorator), radio), checkbox), segmentedButton), segmentedButtons), divider), picker), appBar), bottomNavigationItem), menu), result), breadcrumb), avatar), link), progress), option), watermark), menuSelect), menuOption), avatarGroup), backTop), bottomNavigation), countdown), counter), dataTable), railNavigation), railNavigationItem), fab), floatingPanel), formDetails), hoverOverlay), icon), imagePreview), indexBar), input), otpInput), list), loading), loadingBar), overlay), paper), rate), ripple), slider), snackbar), space), swipe), tooltip), treeMenu), select), code), signature);
170
+ }, button), alert), cell), card), timePicker), dateInput), datePicker), skeleton), tabs), tab), popup), dialog), actionSheet), chip), badge), uploader), collapse), pullRefresh), switchThemes), step), pagination), table), fieldDecorator), radio), checkbox), segmentedButton), segmentedButtons), divider), picker), appBar), bottomNavigationItem), menu), result), breadcrumb), avatar), link), progress), option), watermark), menuSelect), menuOption), avatarGroup), backTop), bottomNavigation), countdown), counter), dataTable), railNavigation), railNavigationItem), fab), floatingPanel), formDetails), hoverOverlay), icon), imagePreview), indexBar), input), otpInput), list), loading), loadingBar), overlay), paper), rate), ripple), slider), snackbar), space), swipe), tooltip), treeMenu), select), code), signature);
170
171
  export {
171
172
  stdin_default as default
172
173
  };
@@ -2,9 +2,9 @@ var stdin_default = {
2
2
  "--alert-padding": "16px",
3
3
  "--alert-border-radius": "4px",
4
4
  "--alert-icon-size": "22px",
5
- "--alert-icon-margin": "0 12px 0 0",
5
+ "--alert-icon-margin": "1px 12px 0 0",
6
6
  "--alert-close-icon-size": "22px",
7
- "--alert-close-icon-margin": "2px 0 0 12px",
7
+ "--alert-close-icon-margin": "1px 0 0 12px",
8
8
  "--alert-standard-info-text-color": "var(--color-on-info)",
9
9
  "--alert-standard-danger-text-color": "var(--color-on-danger)",
10
10
  "--alert-standard-success-text-color": "var(--color-on-success)",