@autoafleveren/ui 1.6.1 → 1.6.3

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/ui.js CHANGED
@@ -23614,7 +23614,8 @@ const Cb = /* @__PURE__ */ ke({
23614
23614
  class: oe([[
23615
23615
  ...w(UN)[v.value],
23616
23616
  ...w(WN)[n.context ? "contextMenu" : "actionBar"],
23617
- n.action.component ? "has-submenu" : ""
23617
+ n.action.component ? "has-submenu" : "",
23618
+ n.action.component && d.value ? "bg-zinc-600" : ""
23618
23619
  ], "relative cursor-pointer rounded-md transition-colors duration-200"])
23619
23620
  }, [
23620
23621
  ta((E(), D("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autoafleveren/ui",
3
- "version": "1.6.1",
3
+ "version": "1.6.3",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist/*",
@@ -44,9 +44,7 @@
44
44
  const type = computed((): Type => props.action.type ?? 'default');
45
45
  const itemHidden = computed(() => {
46
46
  if (typeof props.action.hidden === 'function') {
47
- // @ts-expect-error item not in unknown
48
47
  if (props.context && contextMenu.item) {
49
- // @ts-expect-error item not in unknown
50
48
  return props.action.hidden([toValue(contextMenu.item)], true);
51
49
  }
52
50
 
@@ -130,6 +128,7 @@
130
128
  ...domClassesPerType[type],
131
129
  ...domClassesPerMenu[props.context ? 'contextMenu' : 'actionBar'],
132
130
  props.action.component ? 'has-submenu' : '',
131
+ props.action.component && confirm ? 'bg-zinc-600' : '',
133
132
  ]"
134
133
  class="relative cursor-pointer rounded-md transition-colors duration-200"
135
134
  >
@@ -31,6 +31,7 @@ interface UseContextMenu<T> {
31
31
  setActions: (actions: Action[] | undefined) => void;
32
32
  instance: Ref<ContextMenuInstance | undefined>;
33
33
  instances: Ref<ContextMenuInstance[]>;
34
+ item: Ref<T>;
34
35
  }
35
36
 
36
37
  export function useContextMenu<T>(): UseContextMenu<T> {