@septkit/ui 0.0.10 → 0.0.11

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.
@@ -1,6 +1,6 @@
1
- import { defineComponent as z, useTemplateRef as S, ref as C, computed as n, createElementBlock as i, openBlock as c, createElementVNode as O, withDirectives as B, normalizeClass as l, withModifiers as D, renderSlot as d, unref as _ } from "vue";
2
- import { VOnClickOutside as x } from "../external/.pnpm/@vueuse_components@13.5.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/components/index.js";
3
- const q = ["open"], $ = /* @__PURE__ */ z({
1
+ import { defineComponent as h, useTemplateRef as S, ref as C, computed as n, createElementBlock as i, openBlock as c, createElementVNode as O, withDirectives as x, normalizeClass as l, withModifiers as B, renderSlot as d, unref as D } from "vue";
2
+ import { VOnClickOutside as _ } from "../external/.pnpm/@vueuse_components@13.5.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/components/index.js";
3
+ const q = ["open"], $ = /* @__PURE__ */ h({
4
4
  __name: "dropdown",
5
5
  props: {
6
6
  color: {},
@@ -14,7 +14,7 @@ const q = ["open"], $ = /* @__PURE__ */ z({
14
14
  },
15
15
  emits: ["open", "close"],
16
16
  setup(b, { expose: u, emit: p }) {
17
- const e = b, a = p, s = S("details-ref"), o = C(!1), g = n(() => ({
17
+ const e = b, a = p, s = S("details-ref"), o = C(!1), m = n(() => ({
18
18
  "bg-neutral": e.background === "neutral",
19
19
  "bg-primary": e.background === "primary",
20
20
  "bg-secondary": e.background === "secondary",
@@ -25,7 +25,7 @@ const q = ["open"], $ = /* @__PURE__ */ z({
25
25
  "bg-error": e.background === "error",
26
26
  "bg-base-100": e.background === "base",
27
27
  "bg-white": !e.background
28
- })), m = n(() => ({
28
+ })), g = n(() => ({
29
29
  "btn-neutral": e.color === "neutral" || !e.color,
30
30
  "btn-primary": e.color === "primary",
31
31
  "btn-secondary": e.color === "secondary",
@@ -61,7 +61,7 @@ const q = ["open"], $ = /* @__PURE__ */ z({
61
61
  function y() {
62
62
  o.value = !0, a("open");
63
63
  }
64
- function h() {
64
+ function z() {
65
65
  o.value ? r() : y();
66
66
  }
67
67
  return u({
@@ -79,9 +79,9 @@ const q = ["open"], $ = /* @__PURE__ */ z({
79
79
  }, [
80
80
  O("summary", {
81
81
  "data-testid": "dropdown-trigger",
82
- onClick: D(h, ["stop"]),
82
+ onClick: B(z, ["stop"]),
83
83
  class: l(["btn", [
84
- m.value,
84
+ g.value,
85
85
  f.value,
86
86
  v.value,
87
87
  w.value,
@@ -90,14 +90,14 @@ const q = ["open"], $ = /* @__PURE__ */ z({
90
90
  }, [
91
91
  d(t.$slots, "label")
92
92
  ], 2),
93
- B((c(), i("ul", {
93
+ x((c(), i("ul", {
94
94
  "data-testid": "dropdown-menu",
95
- class: l([[g.value], "menu dropdown-content z-1 w-52 p-2 shadow-sm"])
95
+ class: l([[m.value], "menu dropdown-content z-1 w-52 p-2 shadow-sm size-max"])
96
96
  }, [
97
97
  d(t.$slots, "items")
98
98
  ], 2)), [
99
99
  [
100
- _(x),
100
+ D(_),
101
101
  r,
102
102
  void 0,
103
103
  { bubble: !0 }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@septkit/ui",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "type": "module",
5
5
  "source": "lib/index.ts",
6
6
  "scripts": {
@@ -76,4 +76,4 @@
76
76
  "daisyui": "^5.0.0",
77
77
  "tailwindcss": "^4.0.0"
78
78
  }
79
- }
79
+ }