@strands.gg/accui 2.9.6 → 2.10.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.
- package/dist/accui.css +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +13 -4
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1922,6 +1922,15 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
1922
1922
|
const dropdownRef = ref();
|
|
1923
1923
|
const searchInputRef = ref();
|
|
1924
1924
|
const dropdownId = computed(() => `dropdown-${props.inputId || Math.random().toString(36).substr(2, 9)}`);
|
|
1925
|
+
const teleportTarget = computed(() => {
|
|
1926
|
+
if (selectTriggerRef.value) {
|
|
1927
|
+
const modalContainer = selectTriggerRef.value.closest('[role="dialog"][aria-modal="true"]');
|
|
1928
|
+
if (modalContainer) {
|
|
1929
|
+
return modalContainer;
|
|
1930
|
+
}
|
|
1931
|
+
}
|
|
1932
|
+
return "body";
|
|
1933
|
+
});
|
|
1925
1934
|
const dropdownState = ref({
|
|
1926
1935
|
isOpen: false,
|
|
1927
1936
|
searchQuery: "",
|
|
@@ -2220,7 +2229,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
2220
2229
|
renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
|
|
2221
2230
|
])) : createCommentVNode("", true)
|
|
2222
2231
|
], 2),
|
|
2223
|
-
(openBlock(), createBlock(Teleport, { to:
|
|
2232
|
+
(openBlock(), createBlock(Teleport, { to: teleportTarget.value }, [
|
|
2224
2233
|
dropdownState.value.isOpen ? (openBlock(), createElementBlock("div", {
|
|
2225
2234
|
key: 0,
|
|
2226
2235
|
ref_key: "dropdownRef",
|
|
@@ -2280,12 +2289,12 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
2280
2289
|
}), 128))
|
|
2281
2290
|
], 4)
|
|
2282
2291
|
], 46, _hoisted_7$q)) : createCommentVNode("", true)
|
|
2283
|
-
]))
|
|
2292
|
+
], 8, ["to"]))
|
|
2284
2293
|
], 64);
|
|
2285
2294
|
};
|
|
2286
2295
|
}
|
|
2287
2296
|
});
|
|
2288
|
-
const UiInputSelect = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-
|
|
2297
|
+
const UiInputSelect = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-8591f0ad"]]);
|
|
2289
2298
|
const _hoisted_1$K = { class: "input-leading-icon" };
|
|
2290
2299
|
const _hoisted_2$E = ["src"];
|
|
2291
2300
|
const _hoisted_3$B = ["id", "accept", "multiple", "disabled", "required"];
|
|
@@ -27393,7 +27402,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
27393
27402
|
};
|
|
27394
27403
|
}
|
|
27395
27404
|
});
|
|
27396
|
-
const UiModal = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-
|
|
27405
|
+
const UiModal = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-ba1f9d90"]]);
|
|
27397
27406
|
const tailwindColors = {
|
|
27398
27407
|
"#000000": {
|
|
27399
27408
|
label: "Black"
|