yc-design-vue 1.4.8 → 1.5.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 (104) hide show
  1. package/es/Alert/index.vue2.js +1 -1
  2. package/es/Breadcrumb/BreadcrumbSeparator.vue2.js +1 -1
  3. package/es/Calendar/Calendar.vue2.js +1 -1
  4. package/es/Cascader/CascaderIcon.vue2.js +1 -1
  5. package/es/Checkbox/Checkbox.vue2.js +1 -1
  6. package/es/Collapse/CollapseItem.vue2.js +1 -1
  7. package/es/Drawer/Drawer.vue2.js +1 -1
  8. package/es/Dropdown/Dropdown.vue.js +1 -1
  9. package/es/Input/Input.vue2.js +1 -1
  10. package/es/Input/InputSuffix.vue2.js +3 -3
  11. package/es/InputTag/index.vue2.js +1 -1
  12. package/es/Layout/LayoutSider.vue.js +1 -1
  13. package/es/Layout/LayoutSider.vue2.js +13 -7
  14. package/es/Layout/hooks/useSiderContext.js +3 -1
  15. package/es/Menu/Menu.vue.js +1 -1
  16. package/es/Menu/Menu.vue2.js +2 -2
  17. package/es/Menu/MenuEllipsis.vue.js +1 -1
  18. package/es/Menu/MenuEllipsis.vue2.js +1 -1
  19. package/es/Menu/MenuItem.vue.js +1 -1
  20. package/es/Menu/MenuItem.vue2.js +1 -1
  21. package/es/Menu/MenuItemGroup.vue.js +1 -1
  22. package/es/Menu/MenuItemGroup.vue2.js +1 -1
  23. package/es/Menu/SubMenu.vue.js +1 -1
  24. package/es/Menu/SubMenu.vue2.js +9 -8
  25. package/es/Message/Message.vue2.js +1 -1
  26. package/es/Modal/Modal.vue2.js +1 -1
  27. package/es/Notification/Notification.vue2.js +1 -1
  28. package/es/PageHeader/index.vue2.js +1 -1
  29. package/es/Progress/ProgressCircle.vue2.js +1 -1
  30. package/es/Radio/Radio.vue2.js +1 -1
  31. package/es/Select/SelectIcon.vue2.js +1 -1
  32. package/es/Tabs/TabButton.vue2.js +1 -1
  33. package/es/Tag/index.vue2.js +1 -1
  34. package/es/Textarea/index.vue2.js +1 -1
  35. package/es/TimePicker/TimePicker.vue2.js +1 -1
  36. package/es/Transfer/TransferPanel.vue2.js +3 -3
  37. package/es/Trigger/index.vue2.js +1 -1
  38. package/es/_shared/components/{ExpandTransition.vue2.js → ExpandTransition.vue.js} +1 -1
  39. package/es/_shared/icons/IconDelete.vue.js +1 -16
  40. package/es/_shared/icons/IconDelete.vue2.js +16 -1
  41. package/es/_shared/icons/IconExclamation.vue.js +27 -1
  42. package/es/_shared/icons/IconExclamation.vue2.js +1 -27
  43. package/es/_shared/icons/IconEyeClose.vue.js +1 -20
  44. package/es/_shared/icons/IconEyeClose.vue2.js +20 -1
  45. package/es/_shared/icons/IconEyeOpen.vue.js +1 -17
  46. package/es/_shared/icons/IconEyeOpen.vue2.js +17 -1
  47. package/es/_shared/icons/IconSearch.vue.js +1 -16
  48. package/es/_shared/icons/IconSearch.vue2.js +16 -1
  49. package/es/_shared/icons/IconSeparator.vue.js +16 -1
  50. package/es/_shared/icons/IconSeparator.vue2.js +1 -16
  51. package/es/style.css +1 -1
  52. package/lib/Alert/index.vue2.js +1 -1
  53. package/lib/Breadcrumb/BreadcrumbSeparator.vue2.js +1 -1
  54. package/lib/Calendar/Calendar.vue2.js +1 -1
  55. package/lib/Cascader/CascaderIcon.vue2.js +1 -1
  56. package/lib/Checkbox/Checkbox.vue2.js +1 -1
  57. package/lib/Collapse/CollapseItem.vue2.js +1 -1
  58. package/lib/Drawer/Drawer.vue2.js +1 -1
  59. package/lib/Dropdown/Dropdown.vue.js +1 -1
  60. package/lib/Input/Input.vue2.js +1 -1
  61. package/lib/Input/InputSuffix.vue2.js +1 -1
  62. package/lib/InputTag/index.vue2.js +1 -1
  63. package/lib/Layout/LayoutSider.vue.js +1 -1
  64. package/lib/Layout/LayoutSider.vue2.js +1 -1
  65. package/lib/Layout/hooks/useSiderContext.js +1 -1
  66. package/lib/Menu/Menu.vue.js +1 -1
  67. package/lib/Menu/Menu.vue2.js +1 -1
  68. package/lib/Menu/MenuEllipsis.vue.js +1 -1
  69. package/lib/Menu/MenuEllipsis.vue2.js +1 -1
  70. package/lib/Menu/MenuItem.vue.js +1 -1
  71. package/lib/Menu/MenuItem.vue2.js +1 -1
  72. package/lib/Menu/MenuItemGroup.vue.js +1 -1
  73. package/lib/Menu/MenuItemGroup.vue2.js +1 -1
  74. package/lib/Menu/SubMenu.vue.js +1 -1
  75. package/lib/Menu/SubMenu.vue2.js +1 -1
  76. package/lib/Message/Message.vue2.js +1 -1
  77. package/lib/Modal/Modal.vue2.js +1 -1
  78. package/lib/Notification/Notification.vue2.js +1 -1
  79. package/lib/PageHeader/index.vue2.js +1 -1
  80. package/lib/Progress/ProgressCircle.vue2.js +1 -1
  81. package/lib/Radio/Radio.vue2.js +1 -1
  82. package/lib/Select/SelectIcon.vue2.js +1 -1
  83. package/lib/Tabs/TabButton.vue2.js +1 -1
  84. package/lib/Tag/index.vue2.js +1 -1
  85. package/lib/Textarea/index.vue2.js +1 -1
  86. package/lib/TimePicker/TimePicker.vue2.js +1 -1
  87. package/lib/Transfer/TransferPanel.vue2.js +1 -1
  88. package/lib/Trigger/index.vue2.js +1 -1
  89. package/lib/_shared/components/ExpandTransition.vue.js +1 -0
  90. package/lib/_shared/icons/IconDelete.vue.js +1 -1
  91. package/lib/_shared/icons/IconDelete.vue2.js +1 -1
  92. package/lib/_shared/icons/IconExclamation.vue.js +1 -1
  93. package/lib/_shared/icons/IconExclamation.vue2.js +1 -1
  94. package/lib/_shared/icons/IconEyeClose.vue.js +1 -1
  95. package/lib/_shared/icons/IconEyeClose.vue2.js +1 -1
  96. package/lib/_shared/icons/IconEyeOpen.vue.js +1 -1
  97. package/lib/_shared/icons/IconEyeOpen.vue2.js +1 -1
  98. package/lib/_shared/icons/IconSearch.vue.js +1 -1
  99. package/lib/_shared/icons/IconSearch.vue2.js +1 -1
  100. package/lib/_shared/icons/IconSeparator.vue.js +1 -1
  101. package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
  102. package/lib/style.css +1 -1
  103. package/package.json +1 -1
  104. package/lib/_shared/components/ExpandTransition.vue2.js +0 -1
@@ -6,7 +6,7 @@ import "../_shared/utils/dom.js";
6
6
  import "../_shared/utils/time.js";
7
7
  import "../Empty/index.js";
8
8
  /* empty css */
9
- /* empty css */
9
+ /* empty css */
10
10
  const _hoisted_1 = {
11
11
  key: 0,
12
12
  class: "yc-alert-icon"
@@ -5,7 +5,7 @@ import { isUndefined } from "../_shared/utils/is.js";
5
5
  import "../_shared/utils/time.js";
6
6
  import "../Empty/index.js";
7
7
  /* empty css */
8
- import _sfc_main$1 from "../_shared/icons/IconSeparator.vue2.js";
8
+ import _sfc_main$1 from "../_shared/icons/IconSeparator.vue.js";
9
9
  const _hoisted_1 = { class: "yc-breadcrumb-item-separator" };
10
10
  const _sfc_main = /* @__PURE__ */ defineComponent({
11
11
  __name: "BreadcrumbSeparator",
@@ -8,7 +8,7 @@ import "../Empty/index.js";
8
8
  import _sfc_main$1 from "../_shared/icons/IconArrowRight.vue.js";
9
9
  import useControlValue from "../_shared/utils/control.js";
10
10
  import IconButton from "../_shared/components/IconButton.vue.js";
11
- /* empty css */
11
+ /* empty css */
12
12
  import Button from "../Button/index.js";
13
13
  import "../Radio/index.js";
14
14
  import MonthCalendar from "./CalendarMonth.vue.js";
@@ -7,7 +7,7 @@ import "../_shared/utils/time.js";
7
7
  import "../Empty/index.js";
8
8
  /* empty css */
9
9
  import IconButton from "../_shared/components/IconButton.vue.js";
10
- /* empty css */
10
+ /* empty css */
11
11
  import Spin from "../Spin/index.js";
12
12
  const _hoisted_1 = { class: "yc-cascader-suffix-icon" };
13
13
  const _hoisted_2 = {
@@ -9,7 +9,7 @@ import _sfc_main$1 from "../_shared/icons/IconCheckboxChecked.vue.js";
9
9
  import useControlValue from "../_shared/utils/control.js";
10
10
  import useContext from "./hooks/useContext.js";
11
11
  import IconButton from "../_shared/components/IconButton.vue.js";
12
- /* empty css */
12
+ /* empty css */
13
13
  const _hoisted_1 = ["value", "disabled", "checked"];
14
14
  const _hoisted_2 = { class: "yc-checkbox-icon" };
15
15
  const _hoisted_3 = {
@@ -7,7 +7,7 @@ import "../Empty/index.js";
7
7
  /* empty css */
8
8
  import _sfc_main$1 from "../_shared/icons/IconRight.vue.js";
9
9
  import IconButton from "../_shared/components/IconButton.vue.js";
10
- import ExpandTransition from "../_shared/components/ExpandTransition.vue2.js";
10
+ import ExpandTransition from "../_shared/components/ExpandTransition.vue.js";
11
11
  const _hoisted_1 = { class: "yc-collapse-item-header-title text-ellipsis" };
12
12
  const _hoisted_2 = {
13
13
  key: 1,
@@ -6,7 +6,7 @@ import { getGlobalConfig } from "../_shared/utils/global-config.js";
6
6
  import useModalClose from "../Modal/hooks/useModalClose.js";
7
7
  import Button from "../Button/index.js";
8
8
  import IconButton from "../_shared/components/IconButton.vue.js";
9
- /* empty css */
9
+ /* empty css */
10
10
  /* empty css */
11
11
  const _hoisted_1 = {
12
12
  key: 0,
@@ -74,7 +74,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
74
74
  "mouse-leave-delay": 150,
75
75
  alignPoint: _ctx.alignPoint,
76
76
  "auto-fit-popup-min-width": !_ctx.alignPoint && ["top", "bottom"].includes(position.value),
77
- class: ["yc-dropdown-popup", , `yc-dropdown-theme-${unref(theme)}`, _ctx.$attrs.class],
77
+ class: ["yc-dropdown-popup", , `yc-dropdown-${unref(theme)}`, _ctx.$attrs.class],
78
78
  style: _ctx.$attrs.style,
79
79
  "animation-name": "slide-dynamic-origin",
80
80
  "need-transform-origin": ""
@@ -7,7 +7,7 @@ import useControlValue from "../_shared/utils/control.js";
7
7
  import useLimitedInput from "./hooks/useLimitedInput.js";
8
8
  import IconButton from "../_shared/components/IconButton.vue.js";
9
9
  import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
10
- /* empty css */
10
+ /* empty css */
11
11
  /* empty css */
12
12
  import InputSuffix from "./InputSuffix.vue.js";
13
13
  const _hoisted_1 = ["value", "type", "disabled", "readonly", "placeholder"];
@@ -4,11 +4,11 @@ import "../_shared/utils/dom.js";
4
4
  import "../_shared/utils/time.js";
5
5
  import "../Empty/index.js";
6
6
  /* empty css */
7
- import _sfc_main$3 from "../_shared/icons/IconEyeClose.vue.js";
8
- import _sfc_main$2 from "../_shared/icons/IconEyeOpen.vue.js";
7
+ import _sfc_main$3 from "../_shared/icons/IconEyeClose.vue2.js";
8
+ import _sfc_main$2 from "../_shared/icons/IconEyeOpen.vue2.js";
9
9
  import IconButton from "../_shared/components/IconButton.vue.js";
10
10
  import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
11
- /* empty css */
11
+ /* empty css */
12
12
  const _hoisted_1 = {
13
13
  key: 0,
14
14
  class: "yc-input-word-limit"
@@ -10,7 +10,7 @@ import useControlValue from "../_shared/utils/control.js";
10
10
  import Tag from "../Tag/index.js";
11
11
  import IconButton from "../_shared/components/IconButton.vue.js";
12
12
  import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
13
- /* empty css */
13
+ /* empty css */
14
14
  /* empty css */
15
15
  const _hoisted_1 = ["disabled", "readonly", "placeholder"];
16
16
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./LayoutSider.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const LayoutSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d230ef01"]]);
4
+ const LayoutSider = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-acb17cdf"]]);
5
5
  export {
6
6
  LayoutSider as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent, useCssVars, computed, toRefs, ref, createBlock, createElementBlock, openBlock, unref, normalizeClass, withCtx, renderSlot, createCommentVNode, createVNode } from "vue";
1
+ import { defineComponent, useCssVars, computed, toRefs, ref, createBlock, createElementBlock, openBlock, unref, normalizeClass, withCtx, createElementVNode, createCommentVNode, renderSlot, createVNode } from "vue";
2
2
  import "../node_modules/tinycolor2/esm/tinycolor.js";
3
3
  import { valueToPx, mediaQueryHandler } from "../_shared/utils/dom.js";
4
4
  import "../_shared/utils/time.js";
@@ -7,6 +7,8 @@ import "../Empty/index.js";
7
7
  import _sfc_main$1 from "../_shared/icons/IconArrowRight.vue.js";
8
8
  import useSiderContext from "./hooks/useSiderContext.js";
9
9
  import ResizeBox from "../ResizeBox/index.js";
10
+ const _hoisted_1 = { class: "yc-layout-sider-children" };
11
+ const _hoisted_2 = { class: "yc-layout-sider-children" };
10
12
  const _sfc_main = /* @__PURE__ */ defineComponent({
11
13
  ...{
12
14
  name: "LayoutSider"
@@ -29,8 +31,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
29
31
  emits: ["update:collapsed", "collapse", "breakpoint"],
30
32
  setup(__props, { emit: __emit }) {
31
33
  useCssVars((_ctx) => ({
32
- "0a49ed96": computedWidth.value,
33
- "754ad672": collapsedWidth.value
34
+ "bcd881b8": computedWidth.value,
35
+ "718992b8": collapsedWidth.value
34
36
  }));
35
37
  const props = __props;
36
38
  const emits = __emit;
@@ -78,10 +80,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
78
80
  ])
79
81
  }, {
80
82
  default: withCtx(() => [
81
- renderSlot(_ctx.$slots, "default", {}, void 0, true),
83
+ createElementVNode("div", _hoisted_1, [
84
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
85
+ ]),
82
86
  showTrigger.value ? (openBlock(), createElementBlock("div", {
83
87
  key: 0,
84
- class: "yc-collapse-button",
88
+ class: "yc-layout-sider-trigger",
85
89
  onClick: handleCollapse
86
90
  }, [
87
91
  renderSlot(_ctx.$slots, "trigger", { collapsed: unref(computedCollapsed) }, () => [
@@ -104,10 +108,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
104
108
  }
105
109
  ])
106
110
  }, [
107
- renderSlot(_ctx.$slots, "default", {}, void 0, true),
111
+ createElementVNode("div", _hoisted_2, [
112
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
113
+ ]),
108
114
  showTrigger.value ? (openBlock(), createElementBlock("div", {
109
115
  key: 0,
110
- class: "yc-collapse-button",
116
+ class: "yc-layout-sider-trigger",
111
117
  onClick: handleCollapse
112
118
  }, [
113
119
  renderSlot(_ctx.$slots, "trigger", { collapsed: unref(computedCollapsed) }, () => [
@@ -19,8 +19,10 @@ const useSiderContext = () => {
19
19
  selector: "body",
20
20
  attribute: "yc-design-theme",
21
21
  valueDark: "dark",
22
- valueLight: "light"
22
+ valueLight: "light",
23
+ initialValue: "light"
23
24
  });
25
+ isDark.value = false;
24
26
  const computedCollapsed = useControlValue(
25
27
  collapsed,
26
28
  defaultCollapsed.value,
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./Menu.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const _Menu = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0373627f"]]);
4
+ const _Menu = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-990f2e81"]]);
5
5
  export {
6
6
  _Menu as default
7
7
  };
@@ -42,7 +42,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
42
42
  emits: ["update:selectedKeys", "update:openKeys", "update:collapsed", "collapse", "menu-item-click", "sub-menu-click"],
43
43
  setup(__props, { emit: __emit }) {
44
44
  useCssVars((_ctx) => ({
45
- "fb3e51e2": unref(collapsedWidth)
45
+ "72e354a7": unref(collapsedWidth)
46
46
  }));
47
47
  const props = __props;
48
48
  const emits = __emit;
@@ -64,7 +64,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
64
64
  class: normalizeClass([
65
65
  "yc-menu",
66
66
  `yc-menu-mode-${_ctx.mode}`,
67
- `yc-menu-theme-${unref(theme)}`,
67
+ `yc-menu-${unref(theme)}`,
68
68
  {
69
69
  "yc-menu-collapsed": unref(computedCollapsed) && _ctx.mode != "horizontal"
70
70
  }
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./MenuEllipsis.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const MenuEllipsis = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c409e211"]]);
4
+ const MenuEllipsis = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4ac4d739"]]);
5
5
  export {
6
6
  MenuEllipsis as default
7
7
  };
@@ -69,7 +69,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
69
69
  class: normalizeClass([
70
70
  "yc-menu-item",
71
71
  "yc-menu-item-ellipsis",
72
- `yc-menu-item-theme-${unref(theme)}`,
72
+ `yc-menu-item-${unref(theme)}`,
73
73
  {
74
74
  "yc-menu-item-selected": isSelected.value
75
75
  }
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./MenuItem.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const MenuItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a60c4bae"]]);
4
+ const MenuItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b7fff6ba"]]);
5
5
  export {
6
6
  MenuItem as default
7
7
  };
@@ -123,6 +123,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
123
123
  key: 0,
124
124
  class: normalizeClass([
125
125
  "yc-menu-item-wrapper",
126
+ `yc-menu-item-${unref(theme)}`,
126
127
  {
127
128
  "yc-menu-item-mode-horizontal": unref(mode) == "horizontal"
128
129
  }
@@ -133,7 +134,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
133
134
  createElementVNode("div", {
134
135
  class: normalizeClass([
135
136
  "yc-menu-item",
136
- `yc-menu-item-theme-${unref(theme)}`,
137
137
  {
138
138
  "yc-menu-item-selected": isSelected.value,
139
139
  "yc-menu-item-disabled": unref(disabled),
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./MenuItemGroup.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const MenuItemGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b163aa4c"]]);
4
+ const MenuItemGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-dbb6c4a3"]]);
5
5
  export {
6
6
  MenuItemGroup as default
7
7
  };
@@ -18,7 +18,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
18
18
  const { levelIndent, theme } = useMenuContext().inject();
19
19
  return (_ctx, _cache) => {
20
20
  return openBlock(), createElementBlock("div", {
21
- class: normalizeClass(["yc-menu-group", `yc-menu-group-theme-${unref(theme)}`])
21
+ class: normalizeClass(["yc-menu-group", `yc-menu-group-${unref(theme)}`])
22
22
  }, [
23
23
  createElementVNode("div", _hoisted_1, [
24
24
  renderSlot(_ctx.$slots, "title", {}, () => [
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./SubMenu.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const SubMenu = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7482bc3e"]]);
4
+ const SubMenu = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ce1875b7"]]);
5
5
  export {
6
6
  SubMenu as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent, createElementBlock, openBlock, createVNode, unref, createSlots, withCtx, renderSlot, createTextVNode, toDisplayString, withDirectives, createElementVNode, vShow } from "vue";
1
+ import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, createVNode, createSlots, withCtx, renderSlot, createTextVNode, toDisplayString, withDirectives, createElementVNode, vShow } from "vue";
2
2
  import useMenuContext from "./hooks/useContext.js";
3
3
  import _sfc_main$1 from "../_shared/icons/IconArrowDown.vue.js";
4
4
  import "../node_modules/tinycolor2/esm/tinycolor.js";
@@ -7,11 +7,10 @@ import "../_shared/utils/time.js";
7
7
  import "../Empty/index.js";
8
8
  /* empty css */
9
9
  /* empty css */
10
- import ExpandTransition from "../_shared/components/ExpandTransition.vue2.js";
10
+ import ExpandTransition from "../_shared/components/ExpandTransition.vue.js";
11
11
  import "./index.js";
12
12
  import MenuItem from "./MenuItem.vue.js";
13
- const _hoisted_1 = { class: "yc-menu-inline" };
14
- const _hoisted_2 = { class: "yc-menu-inline-content" };
13
+ const _hoisted_1 = { class: "yc-menu-inline-content" };
15
14
  const _sfc_main = /* @__PURE__ */ defineComponent({
16
15
  ...{
17
16
  name: "SubMenu"
@@ -25,9 +24,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
25
24
  popupMaxHeight: { type: [Boolean, Number], default: void 0 }
26
25
  },
27
26
  setup(__props) {
28
- const { mode, computedOpenKeys, computedCollapsed } = useMenuContext().inject();
27
+ const { mode, theme, computedOpenKeys, computedCollapsed } = useMenuContext().inject();
29
28
  return (_ctx, _cache) => {
30
- return openBlock(), createElementBlock("div", _hoisted_1, [
29
+ return openBlock(), createElementBlock("div", {
30
+ class: normalizeClass(["yc-menu-inline", `yc-menu-inline-${unref(theme)}`])
31
+ }, [
31
32
  createVNode(unref(MenuItem), {
32
33
  "is-submenu": "",
33
34
  path: _ctx.path,
@@ -58,7 +59,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
58
59
  ]), 1032, ["path", "popupMaxHeight"]),
59
60
  createVNode(unref(ExpandTransition), null, {
60
61
  default: withCtx(() => [
61
- withDirectives(createElementVNode("div", _hoisted_2, [
62
+ withDirectives(createElementVNode("div", _hoisted_1, [
62
63
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
63
64
  ], 512), [
64
65
  [
@@ -69,7 +70,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
69
70
  ]),
70
71
  _: 3
71
72
  })
72
- ]);
73
+ ], 2);
73
74
  };
74
75
  }
75
76
  });
@@ -7,7 +7,7 @@ import "../Empty/index.js";
7
7
  /* empty css */
8
8
  import { TYPE_ICON_MAP } from "../_shared/constants/index.js";
9
9
  import IconButton from "../_shared/components/IconButton.vue.js";
10
- /* empty css */
10
+ /* empty css */
11
11
  import { useTimeoutFn } from "../node_modules/@vueuse/shared/index.js";
12
12
  const _hoisted_1 = {
13
13
  key: 0,
@@ -7,7 +7,7 @@ import useModalClose from "./hooks/useModalClose.js";
7
7
  import useModalDraggable from "./hooks/useModalDraggable.js";
8
8
  import Button from "../Button/index.js";
9
9
  import IconButton from "../_shared/components/IconButton.vue.js";
10
- /* empty css */
10
+ /* empty css */
11
11
  /* empty css */
12
12
  const _hoisted_1 = {
13
13
  key: 0,
@@ -8,7 +8,7 @@ import { getSlotFunction } from "../_shared/utils/vue-utils.js";
8
8
  import "../Empty/index.js";
9
9
  /* empty css */
10
10
  import IconButton from "../_shared/components/IconButton.vue.js";
11
- /* empty css */
11
+ /* empty css */
12
12
  import { useTimeoutFn } from "../node_modules/@vueuse/shared/index.js";
13
13
  const _hoisted_1 = { class: "yc-notification-left" };
14
14
  const _hoisted_2 = {
@@ -7,7 +7,7 @@ import "../Empty/index.js";
7
7
  import _sfc_main$1 from "../_shared/icons/IconArrowRight.vue.js";
8
8
  import Divider from "../Divider/index.js";
9
9
  import IconButton from "../_shared/components/IconButton.vue.js";
10
- /* empty css */
10
+ /* empty css */
11
11
  const _hoisted_1 = { class: "yc-page-header" };
12
12
  const _hoisted_2 = { class: "yc-page-header-wrapper" };
13
13
  const _hoisted_3 = {
@@ -6,7 +6,7 @@ import "../_shared/utils/time.js";
6
6
  import "../Empty/index.js";
7
7
  /* empty css */
8
8
  import _sfc_main$1 from "../_shared/icons/IconCheck.vue.js";
9
- import _sfc_main$2 from "../_shared/icons/IconExclamation.vue2.js";
9
+ import _sfc_main$2 from "../_shared/icons/IconExclamation.vue.js";
10
10
  import { TYPE_ICON_COLOR_MAP } from "../_shared/constants/index.js";
11
11
  const _hoisted_1 = ["aria-valuenow"];
12
12
  const _hoisted_2 = ["viewBox"];
@@ -7,7 +7,7 @@ import "../Empty/index.js";
7
7
  import useControlValue from "../_shared/utils/control.js";
8
8
  import useContext from "./hooks/useContext.js";
9
9
  import IconButton from "../_shared/components/IconButton.vue.js";
10
- /* empty css */
10
+ /* empty css */
11
11
  const _hoisted_1 = ["value", "checked", "disabled"];
12
12
  const _hoisted_2 = {
13
13
  key: 0,
@@ -7,7 +7,7 @@ import "../_shared/utils/time.js";
7
7
  import "../Empty/index.js";
8
8
  /* empty css */
9
9
  import IconButton from "../_shared/components/IconButton.vue.js";
10
- /* empty css */
10
+ /* empty css */
11
11
  import Spin from "../Spin/index.js";
12
12
  const _hoisted_1 = { class: "yc-select-suffix-icon" };
13
13
  const _hoisted_2 = {
@@ -5,7 +5,7 @@ import "../_shared/utils/dom.js";
5
5
  import "../_shared/utils/time.js";
6
6
  import "../Empty/index.js";
7
7
  /* empty css */
8
- /* empty css */
8
+ /* empty css */
9
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
10
10
  __name: "TabButton",
11
11
  props: {
@@ -7,7 +7,7 @@ import { getGlobalConfig } from "../_shared/utils/global-config.js";
7
7
  import useControlValue from "../_shared/utils/control.js";
8
8
  import Spin from "../Spin/index.js";
9
9
  import IconButton from "../_shared/components/IconButton.vue.js";
10
- /* empty css */
10
+ /* empty css */
11
11
  /* empty css */
12
12
  const _hoisted_1 = {
13
13
  key: 0,
@@ -8,7 +8,7 @@ import "../_shared/utils/dom.js";
8
8
  import "../_shared/utils/time.js";
9
9
  import "../Empty/index.js";
10
10
  /* empty css */
11
- /* empty css */
11
+ /* empty css */
12
12
  const _hoisted_1 = ["value", "disabled", "readonly", "placeholder"];
13
13
  const _sfc_main = /* @__PURE__ */ defineComponent({
14
14
  ...{
@@ -6,7 +6,7 @@ import { isValidTimeRange } from "../_shared/utils/time.js";
6
6
  import { getGlobalConfig } from "../_shared/utils/global-config.js";
7
7
  import useContext from "./hooks/useContext.js";
8
8
  import IconButton from "../_shared/components/IconButton.vue.js";
9
- /* empty css */
9
+ /* empty css */
10
10
  /* empty css */
11
11
  import _sfc_main$1 from "../_shared/icons/IconTime.vue.js";
12
12
  import Trigger from "../Trigger/index.js";
@@ -5,14 +5,14 @@ import "../_shared/utils/time.js";
5
5
  import { getGlobalConfig } from "../_shared/utils/global-config.js";
6
6
  /* empty css */
7
7
  import _sfc_main$3 from "../_shared/icons/IconClose.vue.js";
8
- import _sfc_main$1 from "../_shared/icons/IconDelete.vue.js";
9
- import _sfc_main$2 from "../_shared/icons/IconSearch.vue.js";
8
+ import _sfc_main$1 from "../_shared/icons/IconDelete.vue2.js";
9
+ import _sfc_main$2 from "../_shared/icons/IconSearch.vue2.js";
10
10
  import useContext from "./hooks/useContext.js";
11
11
  import Checkbox from "../Checkbox/index.js";
12
12
  import Scrollbar from "../Scrollbar/index.js";
13
13
  import Input from "../Input/index.js";
14
14
  import IconButton from "../_shared/components/IconButton.vue.js";
15
- /* empty css */
15
+ /* empty css */
16
16
  const _hoisted_1 = { class: "yc-transfer-view" };
17
17
  const _hoisted_2 = { class: "yc-transfer-view-header" };
18
18
  const _hoisted_3 = { class: "yc-transfer-view-header-title" };
@@ -9,7 +9,7 @@ import useTriggerPosition from "./hooks/useTriggerPosition.js";
9
9
  /* empty css */
10
10
  /* empty css */
11
11
  import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
12
- /* empty css */
12
+ /* empty css */
13
13
  const _sfc_main = /* @__PURE__ */ defineComponent({
14
14
  ...{
15
15
  name: "Trigger",
@@ -1,5 +1,5 @@
1
1
  import _sfc_main from "./ExpandTransition.vue3.js";
2
- /* empty css */
2
+ /* empty css */
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const ExpandTransition = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6e588238"]]);
5
5
  export {
@@ -1,19 +1,4 @@
1
- import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
- import YcIcon from "../components/Icon.vue2.js";
3
- const _sfc_main = /* @__PURE__ */ defineComponent({
4
- __name: "IconDelete",
5
- setup(__props) {
6
- return (_ctx, _cache) => {
7
- return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
8
- default: withCtx(() => _cache[0] || (_cache[0] = [
9
- createElementVNode("path", { d: "M5 11h5.5m0 0v29a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1V11m-27 0H16m21.5 0H43m-5.5 0H32m-16 0V7h16v4m-16 0h16M20 18v15m8-15v15" }, null, -1)
10
- ])),
11
- _: 1,
12
- __: [0]
13
- }, 16);
14
- };
15
- }
16
- });
1
+ import _sfc_main from "./IconDelete.vue2.js";
17
2
  export {
18
3
  _sfc_main as default
19
4
  };
@@ -1,4 +1,19 @@
1
- import _sfc_main from "./IconDelete.vue.js";
1
+ import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
+ import YcIcon from "../components/Icon.vue2.js";
3
+ const _sfc_main = /* @__PURE__ */ defineComponent({
4
+ __name: "IconDelete",
5
+ setup(__props) {
6
+ return (_ctx, _cache) => {
7
+ return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
8
+ default: withCtx(() => _cache[0] || (_cache[0] = [
9
+ createElementVNode("path", { d: "M5 11h5.5m0 0v29a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1V11m-27 0H16m21.5 0H43m-5.5 0H32m-16 0V7h16v4m-16 0h16M20 18v15m8-15v15" }, null, -1)
10
+ ])),
11
+ _: 1,
12
+ __: [0]
13
+ }, 16);
14
+ };
15
+ }
16
+ });
2
17
  export {
3
18
  _sfc_main as default
4
19
  };
@@ -1,4 +1,30 @@
1
- import _sfc_main from "./IconExclamation.vue2.js";
1
+ import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
+ import YcIcon from "../components/Icon.vue2.js";
3
+ const _sfc_main = /* @__PURE__ */ defineComponent({
4
+ __name: "IconExclamation",
5
+ setup(__props) {
6
+ return (_ctx, _cache) => {
7
+ return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
8
+ default: withCtx(() => _cache[0] || (_cache[0] = [
9
+ createElementVNode("path", { d: "M23 9h2v21h-2z" }, null, -1),
10
+ createElementVNode("path", {
11
+ fill: "currentColor",
12
+ stroke: "none",
13
+ d: "M23 9h2v21h-2z"
14
+ }, null, -1),
15
+ createElementVNode("path", { d: "M23 37h2v2h-2z" }, null, -1),
16
+ createElementVNode("path", {
17
+ fill: "currentColor",
18
+ stroke: "none",
19
+ d: "M23 37h2v2h-2z"
20
+ }, null, -1)
21
+ ])),
22
+ _: 1,
23
+ __: [0]
24
+ }, 16);
25
+ };
26
+ }
27
+ });
2
28
  export {
3
29
  _sfc_main as default
4
30
  };
@@ -1,30 +1,4 @@
1
- import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
- import YcIcon from "../components/Icon.vue2.js";
3
- const _sfc_main = /* @__PURE__ */ defineComponent({
4
- __name: "IconExclamation",
5
- setup(__props) {
6
- return (_ctx, _cache) => {
7
- return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
8
- default: withCtx(() => _cache[0] || (_cache[0] = [
9
- createElementVNode("path", { d: "M23 9h2v21h-2z" }, null, -1),
10
- createElementVNode("path", {
11
- fill: "currentColor",
12
- stroke: "none",
13
- d: "M23 9h2v21h-2z"
14
- }, null, -1),
15
- createElementVNode("path", { d: "M23 37h2v2h-2z" }, null, -1),
16
- createElementVNode("path", {
17
- fill: "currentColor",
18
- stroke: "none",
19
- d: "M23 37h2v2h-2z"
20
- }, null, -1)
21
- ])),
22
- _: 1,
23
- __: [0]
24
- }, 16);
25
- };
26
- }
27
- });
1
+ import _sfc_main from "./IconExclamation.vue.js";
28
2
  export {
29
3
  _sfc_main as default
30
4
  };