@strands.gg/accui 2.14.0 → 2.14.1

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
@@ -13949,7 +13949,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
13949
13949
  });
13950
13950
  const _hoisted_1$3 = {
13951
13951
  key: 0,
13952
- class: "mini-profile-avatar-wrapper"
13952
+ class: "mini-profile-avatar-container"
13953
13953
  };
13954
13954
  const _hoisted_2$2 = ["src", "alt", "width", "height"];
13955
13955
  const _hoisted_3$2 = {
@@ -14187,104 +14187,107 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
14187
14187
  })
14188
14188
  ]),
14189
14189
  default: withCtx(() => [
14190
- createVNode(unref(CompoundUiButton), {
14191
- ref_key: "triggerRef",
14192
- ref: triggerRef,
14193
- color: "secondary",
14194
- active: showDropdown.value,
14195
- class: normalizeClass([`user-button-size-${_ctx.size}`, _ctx.variant === "mini-profile" && "user-button-mini-profile"]),
14196
- onClick: toggleDropdown,
14197
- onKeydown: [
14198
- withKeys(toggleDropdown, ["enter"]),
14199
- withKeys(withModifiers(toggleDropdown, ["prevent"]), ["space"]),
14200
- withKeys(closeDropdown, ["escape"]),
14201
- withKeys(withModifiers(openDropdown, ["prevent"]), ["arrow-down"])
14202
- ],
14203
- "aria-haspopup": "true",
14204
- "aria-expanded": showDropdown.value,
14205
- "aria-label": "User menu"
14206
- }, {
14207
- "leading-icon": withCtx(() => [
14208
- _ctx.variant === "mini-profile" ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
14209
- createVNode(unref(UiLevelProgress), {
14210
- size: avatarSizeWithProgress.value,
14211
- value: user.value?.xp || 0,
14212
- max: user.value?.next_level_xp || 100,
14213
- level: user.value?.level || 1,
14214
- "level-label": `${user.value?.level || 1}`,
14215
- "user-settings": user.value?.settings,
14216
- class: "mini-profile-level-progress"
14217
- }, null, 8, ["size", "value", "max", "level", "level-label", "user-settings"]),
14218
- user.value?.avatar ? (openBlock(), createElementBlock("img", {
14219
- key: 0,
14220
- src: user.value.avatar,
14221
- alt: `${user.value?.firstName || user.value?.email}'s avatar`,
14222
- class: "mini-profile-avatar-image",
14223
- width: avatarSize.value,
14224
- height: avatarSize.value,
14225
- loading: "eager"
14226
- }, null, 8, _hoisted_2$2)) : (openBlock(), createElementBlock("div", _hoisted_3$2, [..._cache[2] || (_cache[2] = [
14227
- createElementVNode("svg", {
14228
- class: "mini-profile-avatar-icon",
14229
- fill: "currentColor",
14230
- viewBox: "0 0 20 20"
14231
- }, [
14232
- createElementVNode("path", {
14233
- "fill-rule": "evenodd",
14234
- d: "M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",
14235
- "clip-rule": "evenodd"
14236
- })
14237
- ], -1)
14238
- ])]))
14239
- ])) : (openBlock(), createElementBlock("div", _hoisted_4$2, [
14240
- user.value?.avatar ? (openBlock(), createElementBlock("img", {
14241
- key: 0,
14242
- src: user.value.avatar,
14243
- alt: `${user.value?.firstName || user.value?.email}'s avatar`,
14244
- class: "avatar-image",
14245
- width: avatarSize.value,
14246
- height: avatarSize.value,
14247
- loading: "eager"
14248
- }, null, 8, _hoisted_5$1)) : (openBlock(), createElementBlock("div", _hoisted_6$1, [..._cache[3] || (_cache[3] = [
14249
- createElementVNode("svg", {
14250
- class: "avatar-icon",
14251
- fill: "currentColor",
14252
- viewBox: "0 0 20 20"
14253
- }, [
14254
- createElementVNode("path", {
14255
- "fill-rule": "evenodd",
14256
- d: "M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",
14257
- "clip-rule": "evenodd"
14258
- })
14259
- ], -1)
14260
- ])]))
14261
- ]))
14262
- ]),
14263
- "trailing-icon": withCtx(() => [
14264
- (openBlock(), createElementBlock("svg", {
14265
- class: normalizeClass(["dropdown-arrow", { "dropdown-arrow-open": showDropdown.value }]),
14266
- fill: "none",
14267
- stroke: "currentColor",
14268
- viewBox: "0 0 24 24"
14269
- }, [..._cache[4] || (_cache[4] = [
14270
- createElementVNode("path", {
14271
- "stroke-linecap": "round",
14272
- "stroke-linejoin": "round",
14273
- "stroke-width": "2",
14274
- d: "M19 9l-7 7-7-7"
14275
- }, null, -1)
14276
- ])], 2))
14277
- ]),
14278
- default: withCtx(() => [
14279
- _ctx.variant === "mini-profile" ? (openBlock(), createElementBlock("div", _hoisted_7$1, [
14280
- createElementVNode("div", _hoisted_8$1, toDisplayString(displayName.value), 1),
14281
- createElementVNode("div", _hoisted_9$1, toDisplayString(user.value?.email), 1)
14282
- ])) : !_ctx.hideUser ? (openBlock(), createElementBlock("div", _hoisted_10$1, [
14283
- createElementVNode("div", _hoisted_11$1, toDisplayString(displayName.value), 1)
14284
- ])) : createCommentVNode("", true)
14285
- ]),
14286
- _: 1
14287
- }, 8, ["active", "class", "onKeydown", "aria-expanded"]),
14190
+ createElementVNode("div", {
14191
+ class: normalizeClass(["user-button-wrapper", `user-button-size-${_ctx.size}`, _ctx.variant === "mini-profile" && "user-button-mini-profile"])
14192
+ }, [
14193
+ createVNode(unref(CompoundUiButton), {
14194
+ ref_key: "triggerRef",
14195
+ ref: triggerRef,
14196
+ color: "secondary",
14197
+ active: showDropdown.value,
14198
+ onClick: toggleDropdown,
14199
+ onKeydown: [
14200
+ withKeys(toggleDropdown, ["enter"]),
14201
+ withKeys(withModifiers(toggleDropdown, ["prevent"]), ["space"]),
14202
+ withKeys(closeDropdown, ["escape"]),
14203
+ withKeys(withModifiers(openDropdown, ["prevent"]), ["arrow-down"])
14204
+ ],
14205
+ "aria-haspopup": "true",
14206
+ "aria-expanded": showDropdown.value,
14207
+ "aria-label": "User menu"
14208
+ }, {
14209
+ "leading-icon": withCtx(() => [
14210
+ _ctx.variant === "mini-profile" ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
14211
+ createVNode(unref(UiLevelProgress), {
14212
+ size: avatarSizeWithProgress.value,
14213
+ value: user.value?.xp || 0,
14214
+ max: user.value?.next_level_xp || 100,
14215
+ level: user.value?.level || 1,
14216
+ "level-label": `LEVEL ${user.value?.level || 1}`,
14217
+ "user-settings": user.value?.settings,
14218
+ class: "mini-profile-level-progress"
14219
+ }, null, 8, ["size", "value", "max", "level", "level-label", "user-settings"]),
14220
+ user.value?.avatar ? (openBlock(), createElementBlock("img", {
14221
+ key: 0,
14222
+ src: user.value.avatar,
14223
+ alt: `${user.value?.firstName || user.value?.email}'s avatar`,
14224
+ class: "mini-profile-avatar-image",
14225
+ width: avatarSize.value,
14226
+ height: avatarSize.value,
14227
+ loading: "eager"
14228
+ }, null, 8, _hoisted_2$2)) : (openBlock(), createElementBlock("div", _hoisted_3$2, [..._cache[2] || (_cache[2] = [
14229
+ createElementVNode("svg", {
14230
+ class: "mini-profile-avatar-icon",
14231
+ fill: "currentColor",
14232
+ viewBox: "0 0 20 20"
14233
+ }, [
14234
+ createElementVNode("path", {
14235
+ "fill-rule": "evenodd",
14236
+ d: "M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",
14237
+ "clip-rule": "evenodd"
14238
+ })
14239
+ ], -1)
14240
+ ])]))
14241
+ ])) : (openBlock(), createElementBlock("div", _hoisted_4$2, [
14242
+ user.value?.avatar ? (openBlock(), createElementBlock("img", {
14243
+ key: 0,
14244
+ src: user.value.avatar,
14245
+ alt: `${user.value?.firstName || user.value?.email}'s avatar`,
14246
+ class: "avatar-image",
14247
+ width: avatarSize.value,
14248
+ height: avatarSize.value,
14249
+ loading: "eager"
14250
+ }, null, 8, _hoisted_5$1)) : (openBlock(), createElementBlock("div", _hoisted_6$1, [..._cache[3] || (_cache[3] = [
14251
+ createElementVNode("svg", {
14252
+ class: "avatar-icon",
14253
+ fill: "currentColor",
14254
+ viewBox: "0 0 20 20"
14255
+ }, [
14256
+ createElementVNode("path", {
14257
+ "fill-rule": "evenodd",
14258
+ d: "M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",
14259
+ "clip-rule": "evenodd"
14260
+ })
14261
+ ], -1)
14262
+ ])]))
14263
+ ]))
14264
+ ]),
14265
+ "trailing-icon": withCtx(() => [
14266
+ (openBlock(), createElementBlock("svg", {
14267
+ class: normalizeClass(["dropdown-arrow", { "dropdown-arrow-open": showDropdown.value }]),
14268
+ fill: "none",
14269
+ stroke: "currentColor",
14270
+ viewBox: "0 0 24 24"
14271
+ }, [..._cache[4] || (_cache[4] = [
14272
+ createElementVNode("path", {
14273
+ "stroke-linecap": "round",
14274
+ "stroke-linejoin": "round",
14275
+ "stroke-width": "2",
14276
+ d: "M19 9l-7 7-7-7"
14277
+ }, null, -1)
14278
+ ])], 2))
14279
+ ]),
14280
+ default: withCtx(() => [
14281
+ _ctx.variant === "mini-profile" ? (openBlock(), createElementBlock("div", _hoisted_7$1, [
14282
+ createElementVNode("div", _hoisted_8$1, toDisplayString(displayName.value), 1),
14283
+ createElementVNode("div", _hoisted_9$1, toDisplayString(user.value?.email), 1)
14284
+ ])) : !_ctx.hideUser ? (openBlock(), createElementBlock("div", _hoisted_10$1, [
14285
+ createElementVNode("div", _hoisted_11$1, toDisplayString(displayName.value), 1)
14286
+ ])) : createCommentVNode("", true)
14287
+ ]),
14288
+ _: 1
14289
+ }, 8, ["active", "onKeydown", "aria-expanded"])
14290
+ ], 2),
14288
14291
  (openBlock(), createBlock(Teleport, { to: "body" }, [
14289
14292
  showDropdown.value ? (openBlock(), createElementBlock("div", {
14290
14293
  key: 0,
@@ -14389,7 +14392,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
14389
14392
  };
14390
14393
  }
14391
14394
  });
14392
- const StrandsUserButton = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-19537c80"]]);
14395
+ const StrandsUserButton = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-2c322150"]]);
14393
14396
  const _sfc_main$3 = /* @__PURE__ */ defineComponent({
14394
14397
  __name: "StrandsNav",
14395
14398
  props: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strands.gg/accui",
3
- "version": "2.14.0",
3
+ "version": "2.14.1",
4
4
  "description": "Strands Authentication UI Components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs.js",