yc-design-vue 1.4.9 → 1.5.1

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 (116) hide show
  1. package/es/Alert/index.vue2.js +1 -1
  2. package/es/Calendar/Calendar.vue2.js +1 -1
  3. package/es/Cascader/CascaderIcon.vue2.js +1 -1
  4. package/es/Checkbox/Checkbox.vue2.js +1 -1
  5. package/es/Collapse/CollapseItem.vue2.js +1 -1
  6. package/es/Divider/index.vue.js +1 -1
  7. package/es/Divider/index.vue2.js +1 -1
  8. package/es/Drawer/Drawer.vue2.js +1 -1
  9. package/es/Dropdown/Dropdown.vue.js +1 -1
  10. package/es/Input/Input.vue2.js +1 -1
  11. package/es/Input/InputSuffix.vue2.js +1 -1
  12. package/es/InputNumber/InputOperaBtn.vue2.js +1 -1
  13. package/es/InputTag/index.vue2.js +1 -1
  14. package/es/Layout/LayoutSider.vue.js +1 -1
  15. package/es/Layout/LayoutSider.vue2.js +13 -7
  16. package/es/Layout/hooks/useSiderContext.js +8 -7
  17. package/es/Menu/Menu.vue.js +1 -1
  18. package/es/Menu/Menu.vue2.js +2 -2
  19. package/es/Menu/MenuEllipsis.vue.js +1 -1
  20. package/es/Menu/MenuEllipsis.vue2.js +1 -1
  21. package/es/Menu/MenuItem.vue.js +1 -1
  22. package/es/Menu/MenuItem.vue2.js +1 -1
  23. package/es/Menu/MenuItemGroup.vue.js +1 -1
  24. package/es/Menu/MenuItemGroup.vue2.js +1 -1
  25. package/es/Menu/SubMenu.vue.js +1 -1
  26. package/es/Menu/SubMenu.vue2.js +9 -8
  27. package/es/Menu/hooks/useContext.d.ts +1 -1
  28. package/es/Menu/hooks/useContext.js +12 -3
  29. package/es/Message/Message.vue2.js +1 -1
  30. package/es/Modal/Modal.vue2.js +1 -1
  31. package/es/Notification/Notification.vue2.js +1 -1
  32. package/es/PageHeader/index.vue2.js +1 -1
  33. package/es/Progress/ProgressCircle.vue2.js +1 -1
  34. package/es/Radio/Radio.vue2.js +1 -1
  35. package/es/Select/SelectIcon.vue2.js +1 -1
  36. package/es/Tabs/TabButton.vue2.js +1 -1
  37. package/es/Tag/index.vue2.js +1 -1
  38. package/es/Textarea/index.vue2.js +1 -1
  39. package/es/TimePicker/TimePicker.vue2.js +1 -1
  40. package/es/Transfer/TransferPanel.vue2.js +3 -3
  41. package/es/Trigger/index.vue2.js +1 -1
  42. package/es/Typography/TypographyBase.vue2.js +2 -2
  43. package/es/_shared/components/{IconButton.vue2.js → IconButton.vue.js} +1 -1
  44. package/es/_shared/icons/IconCopy.vue.js +16 -1
  45. package/es/_shared/icons/IconCopy.vue2.js +1 -16
  46. package/es/_shared/icons/IconDelete.vue.js +16 -1
  47. package/es/_shared/icons/IconDelete.vue2.js +1 -16
  48. package/es/_shared/icons/IconEdit.vue.js +16 -1
  49. package/es/_shared/icons/IconEdit.vue2.js +1 -16
  50. package/es/_shared/icons/IconExclamation.vue.js +1 -27
  51. package/es/_shared/icons/IconExclamation.vue2.js +27 -1
  52. package/es/_shared/icons/IconMinus.vue.js +1 -16
  53. package/es/_shared/icons/IconMinus.vue2.js +16 -1
  54. package/es/_shared/icons/IconSearch.vue.js +16 -1
  55. package/es/_shared/icons/IconSearch.vue2.js +1 -16
  56. package/es/node_modules/@vueuse/core/index.js +1 -1
  57. package/es/node_modules/@vueuse/shared/index.js +1 -1
  58. package/es/style.css +1 -1
  59. package/lib/Alert/index.vue2.js +1 -1
  60. package/lib/Calendar/Calendar.vue2.js +1 -1
  61. package/lib/Cascader/CascaderIcon.vue2.js +1 -1
  62. package/lib/Checkbox/Checkbox.vue2.js +1 -1
  63. package/lib/Collapse/CollapseItem.vue2.js +1 -1
  64. package/lib/Divider/index.vue.js +1 -1
  65. package/lib/Divider/index.vue2.js +1 -1
  66. package/lib/Drawer/Drawer.vue2.js +1 -1
  67. package/lib/Dropdown/Dropdown.vue.js +1 -1
  68. package/lib/Input/Input.vue2.js +1 -1
  69. package/lib/Input/InputSuffix.vue2.js +1 -1
  70. package/lib/InputNumber/InputOperaBtn.vue2.js +1 -1
  71. package/lib/InputTag/index.vue2.js +1 -1
  72. package/lib/Layout/LayoutSider.vue.js +1 -1
  73. package/lib/Layout/LayoutSider.vue2.js +1 -1
  74. package/lib/Layout/hooks/useSiderContext.js +1 -1
  75. package/lib/Menu/Menu.vue.js +1 -1
  76. package/lib/Menu/Menu.vue2.js +1 -1
  77. package/lib/Menu/MenuEllipsis.vue.js +1 -1
  78. package/lib/Menu/MenuEllipsis.vue2.js +1 -1
  79. package/lib/Menu/MenuItem.vue.js +1 -1
  80. package/lib/Menu/MenuItem.vue2.js +1 -1
  81. package/lib/Menu/MenuItemGroup.vue.js +1 -1
  82. package/lib/Menu/MenuItemGroup.vue2.js +1 -1
  83. package/lib/Menu/SubMenu.vue.js +1 -1
  84. package/lib/Menu/SubMenu.vue2.js +1 -1
  85. package/lib/Menu/hooks/useContext.d.ts +1 -1
  86. package/lib/Menu/hooks/useContext.js +1 -1
  87. package/lib/Message/Message.vue2.js +1 -1
  88. package/lib/Modal/Modal.vue2.js +1 -1
  89. package/lib/Notification/Notification.vue2.js +1 -1
  90. package/lib/PageHeader/index.vue2.js +1 -1
  91. package/lib/Progress/ProgressCircle.vue2.js +1 -1
  92. package/lib/Radio/Radio.vue2.js +1 -1
  93. package/lib/Select/SelectIcon.vue2.js +1 -1
  94. package/lib/Tabs/TabButton.vue2.js +1 -1
  95. package/lib/Tag/index.vue2.js +1 -1
  96. package/lib/Textarea/index.vue2.js +1 -1
  97. package/lib/TimePicker/TimePicker.vue2.js +1 -1
  98. package/lib/Transfer/TransferPanel.vue2.js +1 -1
  99. package/lib/Trigger/index.vue2.js +1 -1
  100. package/lib/Typography/TypographyBase.vue2.js +1 -1
  101. package/lib/_shared/components/IconButton.vue.js +1 -0
  102. package/lib/_shared/icons/IconCopy.vue.js +1 -1
  103. package/lib/_shared/icons/IconCopy.vue2.js +1 -1
  104. package/lib/_shared/icons/IconDelete.vue.js +1 -1
  105. package/lib/_shared/icons/IconDelete.vue2.js +1 -1
  106. package/lib/_shared/icons/IconEdit.vue.js +1 -1
  107. package/lib/_shared/icons/IconEdit.vue2.js +1 -1
  108. package/lib/_shared/icons/IconExclamation.vue.js +1 -1
  109. package/lib/_shared/icons/IconExclamation.vue2.js +1 -1
  110. package/lib/_shared/icons/IconMinus.vue.js +1 -1
  111. package/lib/_shared/icons/IconMinus.vue2.js +1 -1
  112. package/lib/_shared/icons/IconSearch.vue.js +1 -1
  113. package/lib/_shared/icons/IconSearch.vue2.js +1 -1
  114. package/lib/style.css +1 -1
  115. package/package.json +1 -1
  116. package/lib/_shared/components/IconButton.vue2.js +0 -1
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, createBlock, openBlock, Transition, withCtx, createElementBlock, createCommentVNode, normalizeClass, createElementVNode, renderSlot, resolveDynamicComponent, unref, createTextVNode, toDisplayString, createVNode } from "vue";
2
2
  import { TYPE_ICON_MAP } from "../_shared/constants/index.js";
3
- import IconButton from "../_shared/components/IconButton.vue2.js";
3
+ import IconButton from "../_shared/components/IconButton.vue.js";
4
4
  import "../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import "../_shared/utils/dom.js";
6
6
  import "../_shared/utils/time.js";
@@ -7,7 +7,7 @@ import "../Empty/index.js";
7
7
  /* empty css */
8
8
  import _sfc_main$1 from "../_shared/icons/IconArrowRight.vue.js";
9
9
  import useControlValue from "../_shared/utils/control.js";
10
- import IconButton from "../_shared/components/IconButton.vue2.js";
10
+ import IconButton from "../_shared/components/IconButton.vue.js";
11
11
  /* empty css */
12
12
  import Button from "../Button/index.js";
13
13
  import "../Radio/index.js";
@@ -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
- import IconButton from "../_shared/components/IconButton.vue2.js";
9
+ import IconButton from "../_shared/components/IconButton.vue.js";
10
10
  /* empty css */
11
11
  import Spin from "../Spin/index.js";
12
12
  const _hoisted_1 = { class: "yc-cascader-suffix-icon" };
@@ -8,7 +8,7 @@ import "../Empty/index.js";
8
8
  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
- import IconButton from "../_shared/components/IconButton.vue2.js";
11
+ import IconButton from "../_shared/components/IconButton.vue.js";
12
12
  /* empty css */
13
13
  const _hoisted_1 = ["value", "disabled", "checked"];
14
14
  const _hoisted_2 = { class: "yc-checkbox-icon" };
@@ -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/IconRight.vue.js";
9
- import IconButton from "../_shared/components/IconButton.vue2.js";
9
+ import IconButton from "../_shared/components/IconButton.vue.js";
10
10
  import ExpandTransition from "../_shared/components/ExpandTransition.vue2.js";
11
11
  const _hoisted_1 = { class: "yc-collapse-item-header-title text-ellipsis" };
12
12
  const _hoisted_2 = {
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./index.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const _Divider = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5d3da063"]]);
4
+ const _Divider = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d369993c"]]);
5
5
  export {
6
6
  _Divider as default
7
7
  };
@@ -27,7 +27,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
27
27
  return direction.value == "horizontal" ? `${valueToPx(_margin.value)} 0` : `0 ${valueToPx(_margin.value)}`;
28
28
  });
29
29
  const border = computed(
30
- () => `${valueToPx(size.value)} ${type.value} rgb(229, 230, 235)`
30
+ () => `${valueToPx(size.value)} ${type.value} var(--color-neutral-3)`
31
31
  );
32
32
  return (_ctx, _cache) => {
33
33
  return openBlock(), createElementBlock("div", {
@@ -5,7 +5,7 @@ import "../_shared/utils/time.js";
5
5
  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
- import IconButton from "../_shared/components/IconButton.vue2.js";
8
+ import IconButton from "../_shared/components/IconButton.vue.js";
9
9
  /* empty css */
10
10
  /* empty css */
11
11
  const _hoisted_1 = {
@@ -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": ""
@@ -5,7 +5,7 @@ import "../_shared/utils/time.js";
5
5
  import { getGlobalConfig } from "../_shared/utils/global-config.js";
6
6
  import useControlValue from "../_shared/utils/control.js";
7
7
  import useLimitedInput from "./hooks/useLimitedInput.js";
8
- import IconButton from "../_shared/components/IconButton.vue2.js";
8
+ import IconButton from "../_shared/components/IconButton.vue.js";
9
9
  import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
10
10
  /* empty css */
11
11
  /* empty css */
@@ -6,7 +6,7 @@ import "../Empty/index.js";
6
6
  /* empty css */
7
7
  import _sfc_main$3 from "../_shared/icons/IconEyeClose.vue2.js";
8
8
  import _sfc_main$2 from "../_shared/icons/IconEyeOpen.vue2.js";
9
- import IconButton from "../_shared/components/IconButton.vue2.js";
9
+ import IconButton from "../_shared/components/IconButton.vue.js";
10
10
  import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
11
11
  /* empty css */
12
12
  const _hoisted_1 = {
@@ -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
- import _sfc_main$2 from "../_shared/icons/IconMinus.vue.js";
8
+ import _sfc_main$2 from "../_shared/icons/IconMinus.vue2.js";
9
9
  import _sfc_main$3 from "../_shared/icons/IconPlus.vue.js";
10
10
  import Button from "../Button/index.js";
11
11
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -8,7 +8,7 @@ import "../_shared/utils/time.js";
8
8
  import { getGlobalConfig } from "../_shared/utils/global-config.js";
9
9
  import useControlValue from "../_shared/utils/control.js";
10
10
  import Tag from "../Tag/index.js";
11
- import IconButton from "../_shared/components/IconButton.vue2.js";
11
+ import IconButton from "../_shared/components/IconButton.vue.js";
12
12
  import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
13
13
  /* empty css */
14
14
  /* empty css */
@@ -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) }, () => [
@@ -9,18 +9,19 @@ import useControlValue from "../../_shared/utils/control.js";
9
9
  import { useDark } from "../../node_modules/@vueuse/core/index.js";
10
10
  const LAYOUT_CONTEXT_KEY = "LAYOUT-CONTEXT";
11
11
  const useSiderContext = () => {
12
+ const isDark = useDark({
13
+ selector: "body",
14
+ attribute: "yc-design-theme",
15
+ valueDark: "dark",
16
+ valueLight: "light",
17
+ initialValue: "light"
18
+ });
12
19
  const provide$1 = (props, emits) => {
13
20
  const {
14
21
  theme: _theme,
15
22
  collapsed,
16
23
  defaultCollapsed
17
24
  } = toRefs(props);
18
- const isDark = useDark({
19
- selector: "body",
20
- attribute: "yc-design-theme",
21
- valueDark: "dark",
22
- valueLight: "light"
23
- });
24
25
  const computedCollapsed = useControlValue(
25
26
  collapsed,
26
27
  defaultCollapsed.value,
@@ -45,7 +46,7 @@ const useSiderContext = () => {
45
46
  };
46
47
  const inject$1 = () => {
47
48
  return inject(LAYOUT_CONTEXT_KEY, {
48
- theme: ref("light"),
49
+ theme: computed(() => isDark.value ? "dark" : "light"),
49
50
  collapsed: ref(false)
50
51
  });
51
52
  };
@@ -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";
@@ -6,12 +6,11 @@ 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
  import ExpandTransition from "../_shared/components/ExpandTransition.vue2.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
  });
@@ -39,7 +39,7 @@ export declare function isMenuItemActive(menuTree: MenuTreeNode[], currentPath:
39
39
  export declare const getPopupMaxHeight: (popupMaxHeight: PopupMaxHeight) => number | undefined;
40
40
  declare const _default: () => {
41
41
  provide: (props: Props, emits: MenuEmits, menuRef: Ref<HTMLDivElement | undefined>) => {
42
- theme: import('vue').ComputedRef<any>;
42
+ theme: import('vue').ComputedRef<import('../../_shared/type').Theme>;
43
43
  computedCollapsed: import('vue').WritableComputedRef<boolean, boolean>;
44
44
  breakpoint: Ref<import('../..').BreakpointName, import('../..').BreakpointName>;
45
45
  collapsedWidth: import('vue').ComputedRef<string>;
@@ -8,7 +8,7 @@ import "../../Empty/index.js";
8
8
  import useControlValue from "../../_shared/utils/control.js";
9
9
  import "../index.js";
10
10
  import { nanoid } from "../../node_modules/nanoid/index.browser.js";
11
- import { useResizeObserver } from "../../node_modules/@vueuse/core/index.js";
11
+ import { useResizeObserver, useDark } from "../../node_modules/@vueuse/core/index.js";
12
12
  import useSiderContext from "../../Layout/hooks/useSiderContext.js";
13
13
  import SubMenu from "../SubMenu.vue.js";
14
14
  import MenuItem from "../MenuItem.vue.js";
@@ -134,6 +134,7 @@ const useMenuContext = () => {
134
134
  autoScrollIntoView,
135
135
  scrollConfig,
136
136
  collapsedWidth,
137
+ theme: _theme,
137
138
  popupMaxHeight: _popupMaxHeight
138
139
  } = toRefs(props);
139
140
  const { theme: injectTheme, collapsed: injectCollapsed } = useSiderContext().inject();
@@ -178,7 +179,7 @@ const useMenuContext = () => {
178
179
  const menuItemWidths = ref([]);
179
180
  const menuTree = computed(() => buildMenuTree(menuTreeNodes.value));
180
181
  const max = ref(1e6);
181
- const theme = computed(() => props.theme || injectTheme.value);
182
+ const theme = computed(() => _theme.value || injectTheme.value);
182
183
  if (mode.value == "horizontal") {
183
184
  useResizeObserver(
184
185
  menuRef,
@@ -230,6 +231,14 @@ const useMenuContext = () => {
230
231
  };
231
232
  };
232
233
  const inject$1 = () => {
234
+ const isDark = useDark({
235
+ selector: "body",
236
+ attribute: "yc-design-theme",
237
+ valueDark: "dark",
238
+ valueLight: "light",
239
+ initialValue: "light"
240
+ });
241
+ console.log(isDark.value, "isDark");
233
242
  return inject(MENU_CONTEXT_KEY, {
234
243
  computedSelectedKeys: ref(""),
235
244
  computedOpenKeys: ref([]),
@@ -241,7 +250,7 @@ const useMenuContext = () => {
241
250
  triggerProps: ref({}),
242
251
  autoOpenSelected: ref(false),
243
252
  mode: ref("vertical"),
244
- theme: ref("light"),
253
+ theme: computed(() => isDark.value ? "dark" : "light"),
245
254
  popupMaxHeight: ref(),
246
255
  autoScrollIntoView: ref(false),
247
256
  scrollConfig: ref({}),
@@ -6,7 +6,7 @@ import "../_shared/utils/time.js";
6
6
  import "../Empty/index.js";
7
7
  /* empty css */
8
8
  import { TYPE_ICON_MAP } from "../_shared/constants/index.js";
9
- import IconButton from "../_shared/components/IconButton.vue2.js";
9
+ import IconButton from "../_shared/components/IconButton.vue.js";
10
10
  /* empty css */
11
11
  import { useTimeoutFn } from "../node_modules/@vueuse/shared/index.js";
12
12
  const _hoisted_1 = {
@@ -6,7 +6,7 @@ import { getGlobalConfig } from "../_shared/utils/global-config.js";
6
6
  import useModalClose from "./hooks/useModalClose.js";
7
7
  import useModalDraggable from "./hooks/useModalDraggable.js";
8
8
  import Button from "../Button/index.js";
9
- import IconButton from "../_shared/components/IconButton.vue2.js";
9
+ import IconButton from "../_shared/components/IconButton.vue.js";
10
10
  /* empty css */
11
11
  /* empty css */
12
12
  const _hoisted_1 = {
@@ -7,7 +7,7 @@ import "../_shared/utils/time.js";
7
7
  import { getSlotFunction } from "../_shared/utils/vue-utils.js";
8
8
  import "../Empty/index.js";
9
9
  /* empty css */
10
- import IconButton from "../_shared/components/IconButton.vue2.js";
10
+ import IconButton from "../_shared/components/IconButton.vue.js";
11
11
  /* empty css */
12
12
  import { useTimeoutFn } from "../node_modules/@vueuse/shared/index.js";
13
13
  const _hoisted_1 = { class: "yc-notification-left" };
@@ -6,7 +6,7 @@ import "../Empty/index.js";
6
6
  /* empty css */
7
7
  import _sfc_main$1 from "../_shared/icons/IconArrowRight.vue.js";
8
8
  import Divider from "../Divider/index.js";
9
- import IconButton from "../_shared/components/IconButton.vue2.js";
9
+ import IconButton from "../_shared/components/IconButton.vue.js";
10
10
  /* empty css */
11
11
  const _hoisted_1 = { class: "yc-page-header" };
12
12
  const _hoisted_2 = { class: "yc-page-header-wrapper" };
@@ -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.vue.js";
9
+ import _sfc_main$2 from "../_shared/icons/IconExclamation.vue2.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"];
@@ -6,7 +6,7 @@ import "../Empty/index.js";
6
6
  /* empty css */
7
7
  import useControlValue from "../_shared/utils/control.js";
8
8
  import useContext from "./hooks/useContext.js";
9
- import IconButton from "../_shared/components/IconButton.vue2.js";
9
+ import IconButton from "../_shared/components/IconButton.vue.js";
10
10
  /* empty css */
11
11
  const _hoisted_1 = ["value", "checked", "disabled"];
12
12
  const _hoisted_2 = {
@@ -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
- import IconButton from "../_shared/components/IconButton.vue2.js";
9
+ import IconButton from "../_shared/components/IconButton.vue.js";
10
10
  /* empty css */
11
11
  import Spin from "../Spin/index.js";
12
12
  const _hoisted_1 = { class: "yc-select-suffix-icon" };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot, createCommentVNode } from "vue";
2
- import IconButton from "../_shared/components/IconButton.vue2.js";
2
+ import IconButton from "../_shared/components/IconButton.vue.js";
3
3
  import "../node_modules/tinycolor2/esm/tinycolor.js";
4
4
  import "../_shared/utils/dom.js";
5
5
  import "../_shared/utils/time.js";
@@ -6,7 +6,7 @@ import "../_shared/utils/time.js";
6
6
  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
- import IconButton from "../_shared/components/IconButton.vue2.js";
9
+ import IconButton from "../_shared/components/IconButton.vue.js";
10
10
  /* empty css */
11
11
  /* empty css */
12
12
  const _hoisted_1 = {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, toRefs, ref, createElementBlock, openBlock, normalizeClass, unref, createCommentVNode, createElementVNode, createBlock, toDisplayString, normalizeStyle, withCtx, createTextVNode } from "vue";
2
2
  import useTextareaHeight from "./hooks/useTextareaHeight.js";
3
3
  import useLimitedInput from "../Input/hooks/useLimitedInput.js";
4
- import IconButton from "../_shared/components/IconButton.vue2.js";
4
+ import IconButton from "../_shared/components/IconButton.vue.js";
5
5
  import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
6
6
  import "../node_modules/tinycolor2/esm/tinycolor.js";
7
7
  import "../_shared/utils/dom.js";
@@ -5,7 +5,7 @@ import { isArray } from "../_shared/utils/is.js";
5
5
  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
- import IconButton from "../_shared/components/IconButton.vue2.js";
8
+ import IconButton from "../_shared/components/IconButton.vue.js";
9
9
  /* empty css */
10
10
  /* empty css */
11
11
  import _sfc_main$1 from "../_shared/icons/IconTime.vue.js";
@@ -5,13 +5,13 @@ 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.vue2.js";
9
- import _sfc_main$2 from "../_shared/icons/IconSearch.vue2.js";
8
+ import _sfc_main$1 from "../_shared/icons/IconDelete.vue.js";
9
+ import _sfc_main$2 from "../_shared/icons/IconSearch.vue.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
- import IconButton from "../_shared/components/IconButton.vue2.js";
14
+ import IconButton from "../_shared/components/IconButton.vue.js";
15
15
  /* empty css */
16
16
  const _hoisted_1 = { class: "yc-transfer-view" };
17
17
  const _hoisted_2 = { class: "yc-transfer-view-header" };
@@ -7,7 +7,7 @@ import { getGlobalConfig } from "../_shared/utils/global-config.js";
7
7
  import useTriggerVisible from "./hooks/useTriggerVisible.js";
8
8
  import useTriggerPosition from "./hooks/useTriggerPosition.js";
9
9
  /* empty css */
10
- /* empty css */
10
+ /* empty css */
11
11
  import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
12
12
  /* empty css */
13
13
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -5,8 +5,8 @@ import { getDomText, sleep } from "../_shared/utils/dom.js";
5
5
  import "../_shared/utils/time.js";
6
6
  import "../Empty/index.js";
7
7
  /* empty css */
8
- import _sfc_main$3 from "../_shared/icons/IconCopy.vue2.js";
9
- import _sfc_main$1 from "../_shared/icons/IconEdit.vue2.js";
8
+ import _sfc_main$3 from "../_shared/icons/IconCopy.vue.js";
9
+ import _sfc_main$1 from "../_shared/icons/IconEdit.vue.js";
10
10
  import _sfc_main$2 from "../_shared/icons/IconInfo.vue.js";
11
11
  import useControlValue from "../_shared/utils/control.js";
12
12
  import Input from "../Input/index.js";
@@ -1,5 +1,5 @@
1
1
  import _sfc_main from "./IconButton.vue3.js";
2
- /* empty css */
2
+ /* empty css */
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const IconButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0cd1d9af"]]);
5
5
  export {