@strands.gg/accui 2.11.31 → 2.11.33

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/index.es.js CHANGED
@@ -1,9 +1,9 @@
1
- import { defineComponent, computed, provide, onMounted, onUnmounted, createElementBlock, openBlock, normalizeClass, createElementVNode, createBlock, renderSlot, Teleport, createCommentVNode, toDisplayString, createTextVNode, unref, normalizeStyle, useSlots, createVNode, Fragment as Fragment$1, withCtx, getCurrentInstance, resolveDynamicComponent, resolveComponent, ref, nextTick, normalizeProps, mergeProps, createSlots, useAttrs, h as h$1, withModifiers, renderList, watch, toRefs, withDirectives, vModelSelect, watchEffect, onBeforeUnmount, shallowRef, markRaw, customRef, useCssVars, reactive, createStaticVNode, vModelText, Transition, inject, withKeys, isMemoSame } from "vue";
1
+ import { defineComponent, computed, provide, onMounted, onUnmounted, createElementBlock, openBlock, normalizeClass, createElementVNode, createBlock, renderSlot, Teleport, createCommentVNode, toDisplayString, createTextVNode, unref, normalizeStyle, useSlots, createVNode, Fragment as Fragment$1, withCtx, getCurrentInstance, resolveDynamicComponent, resolveComponent, ref, mergeProps, nextTick, normalizeProps, createSlots, useAttrs, h as h$1, withModifiers, renderList, watch, toRefs, withDirectives, vModelSelect, watchEffect, onBeforeUnmount, shallowRef, markRaw, customRef, useCssVars, reactive, createStaticVNode, vModelText, Transition, inject, withKeys, isMemoSame } from "vue";
2
2
  import { u as useStrandsConfig, p as provideStrandsConfig } from "./useStrandsConfig-XmPqJn_B.es.js";
3
3
  import { s } from "./useStrandsConfig-XmPqJn_B.es.js";
4
4
  import { u as useStrandsAuth } from "./useStrandsAuth-Dca-zFQT.es.js";
5
5
  const _hoisted_1$U = { class: "app-content" };
6
- const _hoisted_2$N = {
6
+ const _hoisted_2$M = {
7
7
  key: 0,
8
8
  class: "ui-app-loading-overlay"
9
9
  };
@@ -64,7 +64,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
64
64
  _cache[0] || (_cache[0] = createElementVNode("div", { class: "ui-app-notifications" }, null, -1))
65
65
  ])),
66
66
  (openBlock(), createBlock(Teleport, { to: "body" }, [
67
- isGlobalLoading.value ? (openBlock(), createElementBlock("div", _hoisted_2$N, [
67
+ isGlobalLoading.value ? (openBlock(), createElementBlock("div", _hoisted_2$M, [
68
68
  createElementVNode("div", _hoisted_3$J, [
69
69
  _cache[1] || (_cache[1] = createElementVNode("div", { class: "ui-app-loading-spinner" }, null, -1)),
70
70
  _ctx.loadingMessage ? (openBlock(), createElementBlock("p", _hoisted_4$H, toDisplayString(_ctx.loadingMessage), 1)) : createCommentVNode("", true)
@@ -84,7 +84,7 @@ const _export_sfc = (sfc, props) => {
84
84
  };
85
85
  const UiApp = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__scopeId", "data-v-f18c1706"]]);
86
86
  const _hoisted_1$T = { class: "accui-component-scope" };
87
- const _hoisted_2$M = { class: "alert-content" };
87
+ const _hoisted_2$L = { class: "alert-content" };
88
88
  const _hoisted_3$I = { class: "alert-icon-container" };
89
89
  const _hoisted_4$G = {
90
90
  class: "alert-main-icon",
@@ -139,7 +139,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
139
139
  class: normalizeClass(alertClasses.value),
140
140
  role: "alert"
141
141
  }, [
142
- createElementVNode("div", _hoisted_2$M, [
142
+ createElementVNode("div", _hoisted_2$L, [
143
143
  createElementVNode("div", _hoisted_3$I, [
144
144
  (openBlock(), createElementBlock("svg", _hoisted_4$G, [
145
145
  createElementVNode("path", {
@@ -194,7 +194,7 @@ const _hoisted_1$S = {
194
194
  key: 0,
195
195
  class: "loader-icon"
196
196
  };
197
- const _hoisted_2$L = ["width", "height"];
197
+ const _hoisted_2$K = ["width", "height"];
198
198
  const _hoisted_3$H = ["d"];
199
199
  const _hoisted_4$F = ["stroke-width"];
200
200
  const _hoisted_5$z = ["stroke-width"];
@@ -267,7 +267,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
267
267
  "stroke-linejoin": "round",
268
268
  class: "loader-animated-path"
269
269
  }, null, 8, _hoisted_5$z)
270
- ], 8, _hoisted_2$L))
270
+ ], 8, _hoisted_2$K))
271
271
  ])) : _ctx.variant === "circle" ? (openBlock(), createElementBlock("div", {
272
272
  key: 1,
273
273
  class: "loader-circle",
@@ -311,7 +311,7 @@ const _hoisted_1$R = {
311
311
  key: 0,
312
312
  class: "button-loading-content"
313
313
  };
314
- const _hoisted_2$K = { key: 0 };
314
+ const _hoisted_2$J = { key: 0 };
315
315
  const _hoisted_3$G = {
316
316
  key: 0,
317
317
  class: "leading-icon"
@@ -369,7 +369,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
369
369
  centered: false,
370
370
  color: "white"
371
371
  }, null, 8, ["size"]),
372
- !_ctx.icon ? (openBlock(), createElementBlock("span", _hoisted_2$K, toDisplayString(_ctx.loadingText || "Loading..."), 1)) : createCommentVNode("", true)
372
+ !_ctx.icon ? (openBlock(), createElementBlock("span", _hoisted_2$J, toDisplayString(_ctx.loadingText || "Loading..."), 1)) : createCommentVNode("", true)
373
373
  ])) : (openBlock(), createElementBlock("span", {
374
374
  key: 1,
375
375
  class: normalizeClass(["button-content", sizeClass.value])
@@ -584,6 +584,9 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
584
584
  });
585
585
  const _hoisted_1$P = { class: "ui-tooltip-content" };
586
586
  const _sfc_main$V = /* @__PURE__ */ defineComponent({
587
+ ...{
588
+ inheritAttrs: false
589
+ },
587
590
  __name: "UiTooltip",
588
591
  props: {
589
592
  content: { default: "" },
@@ -684,13 +687,14 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
684
687
  if (hideTimeout) clearTimeout(hideTimeout);
685
688
  });
686
689
  return (_ctx, _cache) => {
687
- return openBlock(), createElementBlock("div", {
690
+ return openBlock(), createElementBlock("div", mergeProps({
688
691
  ref_key: "tooltipContainer",
689
692
  ref: tooltipContainer,
690
- class: "ui-tooltip-container",
693
+ class: "ui-tooltip-container"
694
+ }, _ctx.$attrs, {
691
695
  onMouseenter: showTooltip,
692
696
  onMouseleave: hideTooltip
693
- }, [
697
+ }), [
694
698
  renderSlot(_ctx.$slots, "default", {}, void 0, true),
695
699
  (openBlock(), createBlock(Teleport, { to: "body" }, [
696
700
  shouldRender.value ? (openBlock(), createElementBlock("div", {
@@ -716,14 +720,17 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
716
720
  }, null, 2)
717
721
  ], 6)) : createCommentVNode("", true)
718
722
  ]))
719
- ], 544);
723
+ ], 16);
720
724
  };
721
725
  }
722
726
  });
723
- const UiTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-b5702341"]]);
727
+ const UiTooltip = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-ba66edda"]]);
724
728
  const _hoisted_1$O = ["type", "disabled", "tabindex"];
725
- const _hoisted_2$J = ["type", "disabled", "tabindex"];
729
+ const _hoisted_2$I = ["type", "disabled", "tabindex"];
726
730
  const _sfc_main$U = /* @__PURE__ */ defineComponent({
731
+ ...{
732
+ inheritAttrs: false
733
+ },
727
734
  __name: "UiButton",
728
735
  props: {
729
736
  variant: { default: "primary" },
@@ -807,15 +814,14 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
807
814
  return (_ctx, _cache) => {
808
815
  return _ctx.title ? (openBlock(), createBlock(UiTooltip, normalizeProps(mergeProps({ key: 0 }, tooltipProps.value)), {
809
816
  default: withCtx(() => [
810
- !_ctx.to ? (openBlock(), createElementBlock("button", {
811
- key: 0,
817
+ !_ctx.to ? (openBlock(), createElementBlock("button", mergeProps({ key: 0 }, _ctx.$attrs, {
812
818
  type: _ctx.type,
813
819
  disabled: _ctx.disabled || _ctx.loading,
814
- class: normalizeClass(buttonClassString.value),
815
- style: normalizeStyle(buttonStyles.value),
820
+ class: buttonClassString.value,
821
+ style: buttonStyles.value,
816
822
  tabindex: effectiveTabindex.value,
817
823
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click", $event))
818
- }, [
824
+ }), [
819
825
  createVNode(UiButtonContent, {
820
826
  loading: _ctx.loading,
821
827
  "loading-text": _ctx.loadingText,
@@ -845,7 +851,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
845
851
  key: "1"
846
852
  } : void 0
847
853
  ]), 1032, ["loading", "loading-text", "icon", "size"])
848
- ], 14, _hoisted_1$O)) : isNuxtAvailable.value && _ctx.to ? (openBlock(), createBlock(_sfc_main$X, {
854
+ ], 16, _hoisted_1$O)) : isNuxtAvailable.value && _ctx.to ? (openBlock(), createBlock(_sfc_main$X, {
849
855
  key: 1,
850
856
  to: _ctx.to,
851
857
  disabled: _ctx.disabled,
@@ -953,15 +959,14 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
953
959
  ]),
954
960
  _: 3
955
961
  }, 16)) : (openBlock(), createElementBlock(Fragment$1, { key: 1 }, [
956
- !_ctx.to ? (openBlock(), createElementBlock("button", {
957
- key: 0,
962
+ !_ctx.to ? (openBlock(), createElementBlock("button", mergeProps({ key: 0 }, _ctx.$attrs, {
958
963
  type: _ctx.type,
959
964
  disabled: _ctx.disabled || _ctx.loading,
960
- class: normalizeClass(buttonClassString.value),
961
- style: normalizeStyle(buttonStyles.value),
965
+ class: buttonClassString.value,
966
+ style: buttonStyles.value,
962
967
  tabindex: effectiveTabindex.value,
963
968
  onClick: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("click", $event))
964
- }, [
969
+ }), [
965
970
  createVNode(UiButtonContent, {
966
971
  loading: _ctx.loading,
967
972
  "loading-text": _ctx.loadingText,
@@ -991,7 +996,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
991
996
  key: "1"
992
997
  } : void 0
993
998
  ]), 1032, ["loading", "loading-text", "icon", "size"])
994
- ], 14, _hoisted_2$J)) : isNuxtAvailable.value && _ctx.to ? (openBlock(), createBlock(_sfc_main$X, {
999
+ ], 16, _hoisted_2$I)) : isNuxtAvailable.value && _ctx.to ? (openBlock(), createBlock(_sfc_main$X, {
995
1000
  key: 1,
996
1001
  to: _ctx.to,
997
1002
  disabled: _ctx.disabled,
@@ -1100,7 +1105,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
1100
1105
  };
1101
1106
  }
1102
1107
  });
1103
- const StrandsUiButton = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-52fc28e3"]]);
1108
+ const StrandsUiButton = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-21489ebf"]]);
1104
1109
  const CompoundUiButton = StrandsUiButton;
1105
1110
  CompoundUiButton.Content = UiButtonContent;
1106
1111
  CompoundUiButton.Anchor = _sfc_main$Y;
@@ -1110,7 +1115,7 @@ const _hoisted_1$N = {
1110
1115
  key: 0,
1111
1116
  class: "ui-card-header"
1112
1117
  };
1113
- const _hoisted_2$I = {
1118
+ const _hoisted_2$H = {
1114
1119
  key: 0,
1115
1120
  class: "ui-card-title-wrapper"
1116
1121
  };
@@ -1158,7 +1163,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
1158
1163
  _ctx.$slots["header"] || _ctx.title || _ctx.subtitle || _ctx.$slots["leading-icon"] || _ctx.$slots["trailing-icon"] ? (openBlock(), createElementBlock("div", _hoisted_1$N, [
1159
1164
  renderSlot(_ctx.$slots, "header", {}, () => [
1160
1165
  renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true),
1161
- _ctx.title || _ctx.$slots["title"] || _ctx.subtitle || _ctx.$slots["subtitle"] ? (openBlock(), createElementBlock("div", _hoisted_2$I, [
1166
+ _ctx.title || _ctx.$slots["title"] || _ctx.subtitle || _ctx.$slots["subtitle"] ? (openBlock(), createElementBlock("div", _hoisted_2$H, [
1162
1167
  _ctx.title || _ctx.$slots["title"] ? renderSlot(_ctx.$slots, "title", { key: 0 }, () => [
1163
1168
  _ctx.title ? (openBlock(), createElementBlock("h2", _hoisted_3$F, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true)
1164
1169
  ], true) : createCommentVNode("", true),
@@ -1738,7 +1743,7 @@ const _hoisted_1$M = {
1738
1743
  key: 0,
1739
1744
  class: "input-leading-icon"
1740
1745
  };
1741
- const _hoisted_2$H = ["id", "type", "value", "placeholder", "disabled", "readonly", "required", "min", "max", "step", "autocomplete", "spellcheck", "tabindex"];
1746
+ const _hoisted_2$G = ["id", "type", "value", "placeholder", "disabled", "readonly", "required", "min", "max", "step", "autocomplete", "spellcheck", "tabindex"];
1742
1747
  const _hoisted_3$E = {
1743
1748
  key: 1,
1744
1749
  class: "input-trailing-icon"
@@ -1864,7 +1869,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
1864
1869
  onBlur: handleBlur,
1865
1870
  onFocus: handleFocus,
1866
1871
  onKeydown: handleKeydown
1867
- }, null, 42, _hoisted_2$H),
1872
+ }, null, 42, _hoisted_2$G),
1868
1873
  _ctx.type === "password" ? (openBlock(), createElementBlock("div", _hoisted_3$E, [
1869
1874
  createVNode(StrandsUiButton, {
1870
1875
  color: showPassword.value ? "primary" : "secondary",
@@ -1909,7 +1914,7 @@ const _hoisted_1$L = {
1909
1914
  key: 0,
1910
1915
  class: "input-leading-icon"
1911
1916
  };
1912
- const _hoisted_2$G = ["id", "value", "placeholder", "disabled", "readonly", "required", "rows", "cols", "maxlength", "autocomplete", "spellcheck"];
1917
+ const _hoisted_2$F = ["id", "value", "placeholder", "disabled", "readonly", "required", "rows", "cols", "maxlength", "autocomplete", "spellcheck"];
1913
1918
  const _hoisted_3$D = {
1914
1919
  key: 1,
1915
1920
  class: "input-trailing-icon"
@@ -2007,7 +2012,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
2007
2012
  onBlur: handleBlur,
2008
2013
  onFocus: handleFocus,
2009
2014
  onKeydown: handleKeydown
2010
- }, null, 42, _hoisted_2$G)
2015
+ }, null, 42, _hoisted_2$F)
2011
2016
  ], 2),
2012
2017
  props.hasTrailingIcon ? (openBlock(), createElementBlock("div", _hoisted_3$D, [
2013
2018
  renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
@@ -2202,7 +2207,7 @@ function useFloatingPosition(options) {
2202
2207
  }
2203
2208
  }
2204
2209
  if (clickOutside?.enabled) {
2205
- document.addEventListener("click", handleClickOutside);
2210
+ document.addEventListener("click", handleClickOutside, true);
2206
2211
  }
2207
2212
  };
2208
2213
  const cleanup = () => {
@@ -2211,7 +2216,7 @@ function useFloatingPosition(options) {
2211
2216
  window.removeEventListener("scroll", handleScroll, true);
2212
2217
  }
2213
2218
  if (clickOutside?.enabled) {
2214
- document.removeEventListener("click", handleClickOutside);
2219
+ document.removeEventListener("click", handleClickOutside, true);
2215
2220
  }
2216
2221
  if (resizeObserver) {
2217
2222
  resizeObserver.disconnect();
@@ -2234,7 +2239,7 @@ const _hoisted_1$K = {
2234
2239
  key: 0,
2235
2240
  class: "input-leading-icon"
2236
2241
  };
2237
- const _hoisted_2$F = ["tabindex", "aria-expanded", "aria-controls", "aria-disabled"];
2242
+ const _hoisted_2$E = ["tabindex", "aria-expanded", "aria-controls", "aria-disabled"];
2238
2243
  const _hoisted_3$C = { class: "input-select-value" };
2239
2244
  const _hoisted_4$B = {
2240
2245
  key: 0,
@@ -2605,7 +2610,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
2605
2610
  }, [
2606
2611
  createVNode(unref(ChevronDown))
2607
2612
  ], 2)
2608
- ], 42, _hoisted_2$F),
2613
+ ], 42, _hoisted_2$E),
2609
2614
  props.hasTrailingIcon ? (openBlock(), createElementBlock("div", _hoisted_6$r, [
2610
2615
  renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
2611
2616
  ])) : createCommentVNode("", true)
@@ -2682,7 +2687,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
2682
2687
  });
2683
2688
  const UiInputSelect = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-302debb0"]]);
2684
2689
  const _hoisted_1$J = { class: "input-leading-icon" };
2685
- const _hoisted_2$E = ["src"];
2690
+ const _hoisted_2$D = ["src"];
2686
2691
  const _hoisted_3$B = ["id", "accept", "multiple", "disabled", "required"];
2687
2692
  const _hoisted_4$A = { class: "input-file-content" };
2688
2693
  const _hoisted_5$v = {
@@ -2925,7 +2930,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2925
2930
  src: previewImageUrl.value,
2926
2931
  alt: "Preview",
2927
2932
  class: "input-file-preview"
2928
- }, null, 8, _hoisted_2$E)) : props.hasLeadingIcon ? renderSlot(_ctx.$slots, "leading-icon", { key: 1 }, void 0, true) : (openBlock(), createBlock(unref(FileInput), { key: 2 }))
2933
+ }, null, 8, _hoisted_2$D)) : props.hasLeadingIcon ? renderSlot(_ctx.$slots, "leading-icon", { key: 1 }, void 0, true) : (openBlock(), createBlock(unref(FileInput), { key: 2 }))
2929
2934
  ]),
2930
2935
  createElementVNode("div", {
2931
2936
  class: normalizeClass(["input-file-area", {
@@ -2996,7 +3001,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
2996
3001
  });
2997
3002
  const UiInputFile = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-e1fd712d"]]);
2998
3003
  const _hoisted_1$I = { class: "tabs-wrapper" };
2999
- const _hoisted_2$D = {
3004
+ const _hoisted_2$C = {
3000
3005
  key: 0,
3001
3006
  class: "tabs-before"
3002
3007
  };
@@ -3342,7 +3347,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
3342
3347
  ]]),
3343
3348
  style: normalizeStyle(_ctx.sticky ? { position: "sticky", [_ctx.sticky.side]: `${_ctx.sticky.offset}px`, zIndex: 10 } : {})
3344
3349
  }, [
3345
- _ctx.$slots["before"] ? (openBlock(), createElementBlock("div", _hoisted_2$D, [
3350
+ _ctx.$slots["before"] ? (openBlock(), createElementBlock("div", _hoisted_2$C, [
3346
3351
  renderSlot(_ctx.$slots, "before", {}, void 0, true)
3347
3352
  ])) : createCommentVNode("", true),
3348
3353
  createElementVNode("div", {
@@ -3465,7 +3470,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
3465
3470
  });
3466
3471
  const UiDivider = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-1c798024"]]);
3467
3472
  const _hoisted_1$G = { class: "datetime-picker-wrapper" };
3468
- const _hoisted_2$C = { class: "datetime-picker-leading-icon" };
3473
+ const _hoisted_2$B = { class: "datetime-picker-leading-icon" };
3469
3474
  const _hoisted_3$z = { class: "datetime-picker-display" };
3470
3475
  const _hoisted_4$y = {
3471
3476
  key: 0,
@@ -3846,7 +3851,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
3846
3851
  ]]),
3847
3852
  onClick: togglePicker
3848
3853
  }, [
3849
- createElementVNode("div", _hoisted_2$C, [
3854
+ createElementVNode("div", _hoisted_2$B, [
3850
3855
  _ctx.type === "date" ? (openBlock(), createBlock(unref(Calendar), { key: 0 })) : _ctx.type === "time" ? (openBlock(), createBlock(unref(Clock), { key: 1 })) : (openBlock(), createBlock(unref(CalendarClock), { key: 2 }))
3851
3856
  ]),
3852
3857
  createElementVNode("div", _hoisted_3$z, [
@@ -25190,7 +25195,7 @@ var TextAlign = Extension.create({
25190
25195
  var index_default$1 = TextAlign;
25191
25196
  var index_default = Placeholder;
25192
25197
  const _hoisted_1$F = { class: "input-richtext-toolbar" };
25193
- const _hoisted_2$B = { class: "input-richtext-group" };
25198
+ const _hoisted_2$A = { class: "input-richtext-group" };
25194
25199
  const _hoisted_3$y = { class: "input-richtext-group" };
25195
25200
  const _hoisted_4$x = { class: "input-richtext-group" };
25196
25201
  const _hoisted_5$s = { class: "input-richtext-group" };
@@ -25283,7 +25288,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
25283
25288
  }])
25284
25289
  }, [
25285
25290
  createElementVNode("div", _hoisted_1$F, [
25286
- createElementVNode("div", _hoisted_2$B, [
25291
+ createElementVNode("div", _hoisted_2$A, [
25287
25292
  createVNode(StrandsUiButton, {
25288
25293
  color: unref(editor)?.isActive("bold") ? "primary" : "secondary",
25289
25294
  size: "sm",
@@ -25565,7 +25570,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
25565
25570
  });
25566
25571
  const UiInputRichText = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-18a35d5d"]]);
25567
25572
  const _hoisted_1$E = { class: "pincode-inputs" };
25568
- const _hoisted_2$A = {
25573
+ const _hoisted_2$z = {
25569
25574
  key: 0,
25570
25575
  class: "pincode-icon pincode-icon-leading"
25571
25576
  };
@@ -25765,7 +25770,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
25765
25770
  class: normalizeClass(["pincode-wrapper", [`pincode-size-${_ctx.size}`, { "pincode-error": _ctx.error }]])
25766
25771
  }, [
25767
25772
  createElementVNode("div", _hoisted_1$E, [
25768
- props.hasLeadingIcon ? (openBlock(), createElementBlock("div", _hoisted_2$A, [
25773
+ props.hasLeadingIcon ? (openBlock(), createElementBlock("div", _hoisted_2$z, [
25769
25774
  renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true)
25770
25775
  ])) : createCommentVNode("", true),
25771
25776
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.maxLength, (index) => {
@@ -25819,7 +25824,7 @@ function hasSlotContent(slots, slotName) {
25819
25824
  });
25820
25825
  }
25821
25826
  const _hoisted_1$D = ["for"];
25822
- const _hoisted_2$z = {
25827
+ const _hoisted_2$y = {
25823
25828
  key: 0,
25824
25829
  class: "input-required"
25825
25830
  };
@@ -25930,7 +25935,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
25930
25935
  class: "input-label"
25931
25936
  }, [
25932
25937
  createTextVNode(toDisplayString(props.label) + " ", 1),
25933
- props.required ? (openBlock(), createElementBlock("span", _hoisted_2$z, "*")) : createCommentVNode("", true)
25938
+ props.required ? (openBlock(), createElementBlock("span", _hoisted_2$y, "*")) : createCommentVNode("", true)
25934
25939
  ], 8, _hoisted_1$D)) : createCommentVNode("", true),
25935
25940
  createElementVNode("div", null, [
25936
25941
  isTextInput.value ? (openBlock(), createBlock(UiInputText, {
@@ -26157,7 +26162,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
26157
26162
  });
26158
26163
  const StrandsUiInput = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-96984fc3"]]);
26159
26164
  const _hoisted_1$C = ["disabled", "aria-disabled"];
26160
- const _hoisted_2$y = ["href", "target", "rel", "aria-disabled"];
26165
+ const _hoisted_2$x = ["href", "target", "rel", "aria-disabled"];
26161
26166
  const _sfc_main$F = /* @__PURE__ */ defineComponent({
26162
26167
  __name: "UiLink",
26163
26168
  props: {
@@ -26264,13 +26269,13 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
26264
26269
  onClick: handleClick2
26265
26270
  }, [
26266
26271
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
26267
- ], 14, _hoisted_2$y));
26272
+ ], 14, _hoisted_2$x));
26268
26273
  };
26269
26274
  }
26270
26275
  });
26271
26276
  const StrandsUiLink = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-3bf99110"]]);
26272
26277
  const _hoisted_1$B = { class: "ui-toggle-container" };
26273
- const _hoisted_2$x = ["for"];
26278
+ const _hoisted_2$w = ["for"];
26274
26279
  const _hoisted_3$v = {
26275
26280
  key: 0,
26276
26281
  class: "ui-toggle-required"
@@ -26317,7 +26322,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
26317
26322
  }, [
26318
26323
  createTextVNode(toDisplayString(_ctx.label) + " ", 1),
26319
26324
  _ctx.required ? (openBlock(), createElementBlock("span", _hoisted_3$v, "*")) : createCommentVNode("", true)
26320
- ], 8, _hoisted_2$x)) : createCommentVNode("", true),
26325
+ ], 8, _hoisted_2$w)) : createCommentVNode("", true),
26321
26326
  createElementVNode("button", {
26322
26327
  id: toggleId.value,
26323
26328
  type: "button",
@@ -26336,7 +26341,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
26336
26341
  });
26337
26342
  const UiToggle = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-ba05b9e3"]]);
26338
26343
  const _hoisted_1$A = { class: "accui-component-scope" };
26339
- const _hoisted_2$w = { class: "avatar-editor-simple" };
26344
+ const _hoisted_2$v = { class: "avatar-editor-simple" };
26340
26345
  const _hoisted_3$u = {
26341
26346
  key: 1,
26342
26347
  class: "editor-container"
@@ -26652,7 +26657,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
26652
26657
  }, { immediate: true });
26653
26658
  return (_ctx, _cache) => {
26654
26659
  return openBlock(), createElementBlock("div", _hoisted_1$A, [
26655
- createElementVNode("div", _hoisted_2$w, [
26660
+ createElementVNode("div", _hoisted_2$v, [
26656
26661
  createElementVNode("input", {
26657
26662
  ref_key: "fileInput",
26658
26663
  ref: fileInput,
@@ -27140,7 +27145,7 @@ class SoundEffects {
27140
27145
  }
27141
27146
  const playLevelUp = (level, userSettings) => SoundEffects.playLevelUp(level, userSettings);
27142
27147
  const _hoisted_1$z = { class: "level-progress-container" };
27143
- const _hoisted_2$v = ["width", "height", "viewBox"];
27148
+ const _hoisted_2$u = ["width", "height", "viewBox"];
27144
27149
  const _hoisted_3$t = { key: 0 };
27145
27150
  const _hoisted_4$s = ["r"];
27146
27151
  const _hoisted_5$o = ["y"];
@@ -27417,7 +27422,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
27417
27422
  }, null, -1)
27418
27423
  ])], 8, _hoisted_12$j)
27419
27424
  ])
27420
- ], 8, _hoisted_2$v))
27425
+ ], 8, _hoisted_2$u))
27421
27426
  ]);
27422
27427
  };
27423
27428
  }
@@ -27631,7 +27636,7 @@ const _hoisted_1$y = {
27631
27636
  role: "dialog",
27632
27637
  "aria-modal": "true"
27633
27638
  };
27634
- const _hoisted_2$u = { class: "ui-modal-header-content" };
27639
+ const _hoisted_2$t = { class: "ui-modal-header-content" };
27635
27640
  const _hoisted_3$s = { class: "ui-modal-title" };
27636
27641
  const _hoisted_4$r = { key: 0 };
27637
27642
  const _hoisted_5$n = {
@@ -27809,7 +27814,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
27809
27814
  tabindex: "-1"
27810
27815
  }, createSlots({
27811
27816
  header: withCtx(() => [
27812
- createElementVNode("div", _hoisted_2$u, [
27817
+ createElementVNode("div", _hoisted_2$t, [
27813
27818
  createElementVNode("div", _hoisted_3$s, [
27814
27819
  renderSlot(_ctx.$slots, "header", {
27815
27820
  handleClose: closeModal,
@@ -28473,7 +28478,7 @@ const tailwindColors = {
28473
28478
  }
28474
28479
  };
28475
28480
  const _hoisted_1$x = { class: "ui-color-picker" };
28476
- const _hoisted_2$t = { class: "ui-color-picker-main" };
28481
+ const _hoisted_2$s = { class: "ui-color-picker-main" };
28477
28482
  const _hoisted_3$r = ["viewBox"];
28478
28483
  const _hoisted_4$q = ["d"];
28479
28484
  const _hoisted_5$m = ["d"];
@@ -30101,7 +30106,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
30101
30106
  });
30102
30107
  return (_ctx, _cache) => {
30103
30108
  return openBlock(), createElementBlock("div", _hoisted_1$x, [
30104
- createElementVNode("div", _hoisted_2$t, [
30109
+ createElementVNode("div", _hoisted_2$s, [
30105
30110
  createElementVNode("div", {
30106
30111
  ref_key: "colorAreaRef",
30107
30112
  ref: colorAreaRef,
@@ -30743,8 +30748,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
30743
30748
  }
30744
30749
  });
30745
30750
  const UiColorPickerPicker = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-24473a61"]]);
30746
- const _hoisted_1$w = { class: "ui-color-picker-button-container" };
30747
- const _hoisted_2$s = { class: "ui-color-picker-button-preview" };
30751
+ const _hoisted_1$w = { class: "ui-color-picker-button-preview" };
30748
30752
  const _sfc_main$z = /* @__PURE__ */ defineComponent({
30749
30753
  __name: "UiColorPicker.Button",
30750
30754
  props: {
@@ -30763,7 +30767,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
30763
30767
  setup(__props, { emit: __emit }) {
30764
30768
  const props = __props;
30765
30769
  const emit = __emit;
30766
- const buttonRef = ref();
30770
+ const containerRef = ref();
30767
30771
  const popoverRef = ref();
30768
30772
  const isPopoverOpen = ref(false);
30769
30773
  const internalValue = computed({
@@ -30771,15 +30775,13 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
30771
30775
  set: (value) => emit("update:modelValue", value)
30772
30776
  });
30773
30777
  const currentColorString = computed(() => props.modelValue || "#000000");
30774
- const triggerElement = computed(() => buttonRef.value?.$el);
30775
- const floatingElement = computed(() => popoverRef.value);
30776
30778
  const {
30777
30779
  floatingStyle,
30778
30780
  updatePosition,
30779
30781
  cleanup: cleanupFloating
30780
30782
  } = useFloatingPosition({
30781
- trigger: triggerElement,
30782
- floating: floatingElement,
30783
+ trigger: containerRef,
30784
+ floating: popoverRef,
30783
30785
  placement: "bottom-start",
30784
30786
  offset: 8,
30785
30787
  shift: true,
@@ -30829,16 +30831,18 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
30829
30831
  cleanupFloating();
30830
30832
  });
30831
30833
  return (_ctx, _cache) => {
30832
- return openBlock(), createElementBlock("div", _hoisted_1$w, [
30834
+ return openBlock(), createElementBlock("div", {
30835
+ ref_key: "containerRef",
30836
+ ref: containerRef,
30837
+ class: "ui-color-picker-button-container"
30838
+ }, [
30833
30839
  createVNode(StrandsUiButton, {
30834
- ref_key: "buttonRef",
30835
- ref: buttonRef,
30836
30840
  disabled: props.disabled,
30837
30841
  color: "secondary",
30838
30842
  onClick: togglePopover
30839
30843
  }, {
30840
30844
  "leading-icon": withCtx(() => [
30841
- createElementVNode("div", _hoisted_2$s, [
30845
+ createElementVNode("div", _hoisted_1$w, [
30842
30846
  createElementVNode("div", {
30843
30847
  class: "ui-color-picker-button-color",
30844
30848
  style: normalizeStyle({ backgroundColor: currentColorString.value })
@@ -30869,11 +30873,11 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
30869
30873
  }), null, 16, ["modelValue"])
30870
30874
  ], 4)) : createCommentVNode("", true)
30871
30875
  ]))
30872
- ]);
30876
+ ], 512);
30873
30877
  };
30874
30878
  }
30875
30879
  });
30876
- const UiColorPickerButton = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-a03d15a6"]]);
30880
+ const UiColorPickerButton = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-2ccec31a"]]);
30877
30881
  const _sfc_main$y = /* @__PURE__ */ defineComponent({
30878
30882
  __name: "UiColorPicker",
30879
30883
  props: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strands.gg/accui",
3
- "version": "2.11.31",
3
+ "version": "2.11.33",
4
4
  "description": "Strands Authentication UI Components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs.js",