@iris-ui-kit/vue 0.2.34 → 0.2.35

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.
package/dist/admin.cjs CHANGED
@@ -1089,12 +1089,14 @@ var IrisNavMenu = vue.defineComponent({
1089
1089
  const renderItem = (node, depth) => {
1090
1090
  const branch = core.isBranch(node);
1091
1091
  const horizontal = flyoutMode.value;
1092
+ const verticalAccordion = props.orientation === "vertical" && !props.collapsed;
1092
1093
  const open = expanded.value.includes(node.key);
1093
1094
  const shown = horizontal ? horizontalBranchVisible(node.key, depth) : open;
1094
1095
  const active = node.key === props.activeKey;
1095
1096
  const trail = branch && !active && activePath.value.includes(node.key);
1096
1097
  const rowHovered = hovered.value === node.key || horizontal && shown;
1097
- const arrowReversed = branch && !node.disabled && (active || trail || shown || rowHovered);
1098
+ const arrowReversed = !verticalAccordion && branch && !node.disabled && (active || trail || shown || rowHovered);
1099
+ const arrowName = verticalAccordion ? open ? "chevron-up" : "chevron-down" : horizontal && depth === 0 && !props.collapsed ? "chevron-down" : "chevron-right";
1098
1100
  const isFlyoutRoot = horizontal && branch && depth === 0;
1099
1101
  const row = vue.h(
1100
1102
  "button",
@@ -1160,7 +1162,7 @@ var IrisNavMenu = vue.defineComponent({
1160
1162
  ),
1161
1163
  badgeNode(node),
1162
1164
  branch && !(props.collapsed && depth === 0) ? vue.h(IrisIcon, {
1163
- name: horizontal && depth === 0 && !props.collapsed ? "chevron-down" : "chevron-right",
1165
+ name: arrowName,
1164
1166
  size: 16,
1165
1167
  class: "iris-nav-menu-arrow",
1166
1168
  "data-reversed": arrowReversed ? "true" : void 0