@strands.gg/accui 2.9.5 → 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 +37 -23
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -93,7 +93,7 @@ const _hoisted_4$F = {
|
|
|
93
93
|
"aria-hidden": "true"
|
|
94
94
|
};
|
|
95
95
|
const _hoisted_5$A = ["d"];
|
|
96
|
-
const _hoisted_6$
|
|
96
|
+
const _hoisted_6$u = { class: "alert-text-container" };
|
|
97
97
|
const _hoisted_7$s = {
|
|
98
98
|
key: 0,
|
|
99
99
|
class: "alert-dismiss-container"
|
|
@@ -149,7 +149,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
149
149
|
}, null, 8, _hoisted_5$A)
|
|
150
150
|
]))
|
|
151
151
|
]),
|
|
152
|
-
createElementVNode("div", _hoisted_6$
|
|
152
|
+
createElementVNode("div", _hoisted_6$u, [
|
|
153
153
|
_ctx.title ? (openBlock(), createElementBlock("h3", {
|
|
154
154
|
key: 0,
|
|
155
155
|
class: normalizeClass(titleClasses.value)
|
|
@@ -198,7 +198,7 @@ const _hoisted_2$K = ["width", "height"];
|
|
|
198
198
|
const _hoisted_3$H = ["d"];
|
|
199
199
|
const _hoisted_4$E = ["stroke-width"];
|
|
200
200
|
const _hoisted_5$z = ["stroke-width"];
|
|
201
|
-
const _hoisted_6$
|
|
201
|
+
const _hoisted_6$t = ["width", "height"];
|
|
202
202
|
const _hoisted_7$r = {
|
|
203
203
|
key: 3,
|
|
204
204
|
class: "loader-text"
|
|
@@ -288,7 +288,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
288
288
|
"stroke-linecap": "round",
|
|
289
289
|
class: "loader-circle-path"
|
|
290
290
|
}, null, -1)
|
|
291
|
-
])], 8, _hoisted_6$
|
|
291
|
+
])], 8, _hoisted_6$t))
|
|
292
292
|
], 4)) : _ctx.variant === "bar" ? (openBlock(), createElementBlock("div", {
|
|
293
293
|
key: 2,
|
|
294
294
|
class: "loader-bar",
|
|
@@ -1872,7 +1872,7 @@ const _hoisted_5$x = {
|
|
|
1872
1872
|
key: 1,
|
|
1873
1873
|
class: "input-select-placeholder"
|
|
1874
1874
|
};
|
|
1875
|
-
const _hoisted_6$
|
|
1875
|
+
const _hoisted_6$s = {
|
|
1876
1876
|
key: 1,
|
|
1877
1877
|
class: "input-trailing-icon"
|
|
1878
1878
|
};
|
|
@@ -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: "",
|
|
@@ -2216,11 +2225,11 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
2216
2225
|
createVNode(unref(ChevronDown))
|
|
2217
2226
|
], 2)
|
|
2218
2227
|
], 42, _hoisted_2$F),
|
|
2219
|
-
_ctx.$slots["trailing-icon"] ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
2228
|
+
_ctx.$slots["trailing-icon"] ? (openBlock(), createElementBlock("div", _hoisted_6$s, [
|
|
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"];
|
|
@@ -2294,7 +2303,7 @@ const _hoisted_5$w = {
|
|
|
2294
2303
|
key: 0,
|
|
2295
2304
|
class: "input-file-prompt"
|
|
2296
2305
|
};
|
|
2297
|
-
const _hoisted_6$
|
|
2306
|
+
const _hoisted_6$r = { class: "input-file-prompt-text" };
|
|
2298
2307
|
const _hoisted_7$p = {
|
|
2299
2308
|
key: 0,
|
|
2300
2309
|
class: "input-file-accept-text"
|
|
@@ -2527,7 +2536,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
2527
2536
|
}, null, 40, _hoisted_3$B),
|
|
2528
2537
|
createElementVNode("div", _hoisted_4$A, [
|
|
2529
2538
|
selectedFiles.value.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_5$w, [
|
|
2530
|
-
createElementVNode("div", _hoisted_6$
|
|
2539
|
+
createElementVNode("div", _hoisted_6$r, toDisplayString(_ctx.dragDropText || "Click to select or drag and drop"), 1),
|
|
2531
2540
|
_ctx.accept ? (openBlock(), createElementBlock("div", _hoisted_7$p, toDisplayString(_ctx.accept), 1)) : createCommentVNode("", true)
|
|
2532
2541
|
])) : (openBlock(), createElementBlock("div", _hoisted_8$n, [
|
|
2533
2542
|
createElementVNode("div", _hoisted_9$m, toDisplayString(_ctx.selectedText || `${selectedFiles.value.length} file(s) selected`), 1),
|
|
@@ -3042,7 +3051,7 @@ const _hoisted_5$u = {
|
|
|
3042
3051
|
key: 1,
|
|
3043
3052
|
class: "datetime-picker-placeholder"
|
|
3044
3053
|
};
|
|
3045
|
-
const _hoisted_6$
|
|
3054
|
+
const _hoisted_6$q = {
|
|
3046
3055
|
key: 1,
|
|
3047
3056
|
class: "datetime-picker-trailing-icon"
|
|
3048
3057
|
};
|
|
@@ -3437,7 +3446,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
3437
3446
|
]),
|
|
3438
3447
|
_: 1
|
|
3439
3448
|
})
|
|
3440
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_6$
|
|
3449
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_6$q, [
|
|
3441
3450
|
createVNode(unref(ChevronDown))
|
|
3442
3451
|
]))
|
|
3443
3452
|
], 2),
|
|
@@ -24761,7 +24770,7 @@ const _hoisted_2$B = { class: "input-richtext-group" };
|
|
|
24761
24770
|
const _hoisted_3$y = { class: "input-richtext-group" };
|
|
24762
24771
|
const _hoisted_4$x = { class: "input-richtext-group" };
|
|
24763
24772
|
const _hoisted_5$t = { class: "input-richtext-group" };
|
|
24764
|
-
const _hoisted_6$
|
|
24773
|
+
const _hoisted_6$p = { class: "input-richtext-group" };
|
|
24765
24774
|
const _hoisted_7$n = { class: "input-richtext-editor-wrapper" };
|
|
24766
24775
|
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
24767
24776
|
__name: "UiInput.RichText",
|
|
@@ -25068,7 +25077,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
25068
25077
|
spacing: "28px",
|
|
25069
25078
|
margin: "4px"
|
|
25070
25079
|
}),
|
|
25071
|
-
createElementVNode("div", _hoisted_6$
|
|
25080
|
+
createElementVNode("div", _hoisted_6$p, [
|
|
25072
25081
|
createVNode(StrandsUiButton, {
|
|
25073
25082
|
color: "secondary",
|
|
25074
25083
|
size: "sm",
|
|
@@ -25869,7 +25878,7 @@ const _hoisted_3$u = {
|
|
|
25869
25878
|
};
|
|
25870
25879
|
const _hoisted_4$t = { class: "editor-main" };
|
|
25871
25880
|
const _hoisted_5$q = { class: "canvas-container" };
|
|
25872
|
-
const _hoisted_6$
|
|
25881
|
+
const _hoisted_6$o = ["width", "height"];
|
|
25873
25882
|
const _hoisted_7$m = { class: "crop-overlay" };
|
|
25874
25883
|
const _hoisted_8$l = { class: "crop-backdrop" };
|
|
25875
25884
|
const _hoisted_9$k = { class: "crop-svg" };
|
|
@@ -26209,7 +26218,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
26209
26218
|
class: "canvas",
|
|
26210
26219
|
onMousedown: startDrag,
|
|
26211
26220
|
onWheel: handleWheel
|
|
26212
|
-
}, null, 40, _hoisted_6$
|
|
26221
|
+
}, null, 40, _hoisted_6$o),
|
|
26213
26222
|
createElementVNode("div", _hoisted_7$m, [
|
|
26214
26223
|
createElementVNode("div", _hoisted_8$l, [
|
|
26215
26224
|
(openBlock(), createElementBlock("svg", _hoisted_9$k, [
|
|
@@ -26670,7 +26679,7 @@ const _hoisted_2$v = ["width", "height", "viewBox"];
|
|
|
26670
26679
|
const _hoisted_3$t = { key: 0 };
|
|
26671
26680
|
const _hoisted_4$s = ["r"];
|
|
26672
26681
|
const _hoisted_5$p = ["y"];
|
|
26673
|
-
const _hoisted_6$
|
|
26682
|
+
const _hoisted_6$n = ["d", "stroke-width"];
|
|
26674
26683
|
const _hoisted_7$l = ["d", "stroke", "stroke-width"];
|
|
26675
26684
|
const _hoisted_8$k = ["d"];
|
|
26676
26685
|
const _hoisted_9$j = ["d", "stroke", "stroke-width"];
|
|
@@ -26882,7 +26891,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
26882
26891
|
"stroke-width": thickness.value,
|
|
26883
26892
|
fill: "none",
|
|
26884
26893
|
"stroke-linecap": "round"
|
|
26885
|
-
}, null, 8, _hoisted_6$
|
|
26894
|
+
}, null, 8, _hoisted_6$n)) : createCommentVNode("", true),
|
|
26886
26895
|
createElementVNode("path", {
|
|
26887
26896
|
d: staticArcPath.value,
|
|
26888
26897
|
stroke: staticArcGradient.value,
|
|
@@ -27160,7 +27169,11 @@ const _hoisted_1$z = {
|
|
|
27160
27169
|
const _hoisted_2$u = { class: "ui-modal-header-content" };
|
|
27161
27170
|
const _hoisted_3$s = { class: "ui-modal-title" };
|
|
27162
27171
|
const _hoisted_4$r = { key: 0 };
|
|
27163
|
-
const _hoisted_5$o = {
|
|
27172
|
+
const _hoisted_5$o = {
|
|
27173
|
+
key: 1,
|
|
27174
|
+
class: "ui-modal-subtitle"
|
|
27175
|
+
};
|
|
27176
|
+
const _hoisted_6$m = { class: "ui-modal-body-content" };
|
|
27164
27177
|
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
27165
27178
|
__name: "UiModal",
|
|
27166
27179
|
props: {
|
|
@@ -27336,7 +27349,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
27336
27349
|
isOpen: isModalOpen.value,
|
|
27337
27350
|
openModal
|
|
27338
27351
|
}, () => [
|
|
27339
|
-
_ctx.$props.title ? (openBlock(), createElementBlock("h2", _hoisted_4$r, toDisplayString(_ctx.$props.title), 1)) : createCommentVNode("", true)
|
|
27352
|
+
_ctx.$props.title ? (openBlock(), createElementBlock("h2", _hoisted_4$r, toDisplayString(_ctx.$props.title), 1)) : createCommentVNode("", true),
|
|
27353
|
+
_ctx.$props.subtitle ? (openBlock(), createElementBlock("p", _hoisted_5$o, toDisplayString(_ctx.$props.subtitle), 1)) : createCommentVNode("", true)
|
|
27340
27354
|
], true)
|
|
27341
27355
|
]),
|
|
27342
27356
|
_ctx.showCloseButton ? (openBlock(), createElementBlock("button", {
|
|
@@ -27360,7 +27374,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
27360
27374
|
])
|
|
27361
27375
|
]),
|
|
27362
27376
|
default: withCtx(() => [
|
|
27363
|
-
createElementVNode("div",
|
|
27377
|
+
createElementVNode("div", _hoisted_6$m, [
|
|
27364
27378
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
27365
27379
|
])
|
|
27366
27380
|
]),
|
|
@@ -27388,7 +27402,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
27388
27402
|
};
|
|
27389
27403
|
}
|
|
27390
27404
|
});
|
|
27391
|
-
const UiModal = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-
|
|
27405
|
+
const UiModal = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-ba1f9d90"]]);
|
|
27392
27406
|
const tailwindColors = {
|
|
27393
27407
|
"#000000": {
|
|
27394
27408
|
label: "Black"
|