@strands.gg/accui 2.11.33 → 2.11.34

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
@@ -326,7 +326,8 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
326
326
  loading: { type: Boolean, default: false },
327
327
  loadingText: {},
328
328
  icon: { type: Boolean, default: false },
329
- size: {}
329
+ size: {},
330
+ align: { default: "center" }
330
331
  },
331
332
  setup(__props) {
332
333
  const slots = useSlots();
@@ -379,7 +380,11 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
379
380
  renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true)
380
381
  ])) : createCommentVNode("", true),
381
382
  renderSlot(_ctx.$slots, "icon", {}, void 0, true),
382
- renderSlot(_ctx.$slots, "default", {}, void 0, true),
383
+ createElementVNode("span", {
384
+ class: normalizeClass(["button-text-content", `button-text-align-${_ctx.align}`])
385
+ }, [
386
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
387
+ ], 2),
383
388
  hasTrailingIconSlot.value ? (openBlock(), createElementBlock("span", _hoisted_4$E, [
384
389
  renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
385
390
  ])) : createCommentVNode("", true)
@@ -388,7 +393,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
388
393
  };
389
394
  }
390
395
  });
391
- const UiButtonContent = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-97962cf6"]]);
396
+ const UiButtonContent = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-fb8bbb18"]]);
392
397
  const _hoisted_1$Q = ["href", "target", "rel"];
393
398
  const _sfc_main$Y = /* @__PURE__ */ defineComponent({
394
399
  __name: "UiButton.Anchor",
@@ -748,7 +753,8 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
748
753
  href: {},
749
754
  external: { type: Boolean, default: false },
750
755
  tabindex: {},
751
- title: {}
756
+ title: {},
757
+ align: { default: "center" }
752
758
  },
753
759
  emits: ["click"],
754
760
  setup(__props, { emit: __emit }) {
@@ -826,7 +832,8 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
826
832
  loading: _ctx.loading,
827
833
  "loading-text": _ctx.loadingText,
828
834
  icon: _ctx.icon,
829
- size: _ctx.size
835
+ size: _ctx.size,
836
+ align: _ctx.align
830
837
  }, createSlots({
831
838
  icon: withCtx(() => [
832
839
  renderSlot(_ctx.$slots, "icon", {}, void 0, true)
@@ -850,7 +857,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
850
857
  ]),
851
858
  key: "1"
852
859
  } : void 0
853
- ]), 1032, ["loading", "loading-text", "icon", "size"])
860
+ ]), 1032, ["loading", "loading-text", "icon", "size", "align"])
854
861
  ], 16, _hoisted_1$O)) : isNuxtAvailable.value && _ctx.to ? (openBlock(), createBlock(_sfc_main$X, {
855
862
  key: 1,
856
863
  to: _ctx.to,
@@ -971,7 +978,8 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
971
978
  loading: _ctx.loading,
972
979
  "loading-text": _ctx.loadingText,
973
980
  icon: _ctx.icon,
974
- size: _ctx.size
981
+ size: _ctx.size,
982
+ align: _ctx.align
975
983
  }, createSlots({
976
984
  icon: withCtx(() => [
977
985
  renderSlot(_ctx.$slots, "icon", {}, void 0, true)
@@ -995,7 +1003,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
995
1003
  ]),
996
1004
  key: "1"
997
1005
  } : void 0
998
- ]), 1032, ["loading", "loading-text", "icon", "size"])
1006
+ ]), 1032, ["loading", "loading-text", "icon", "size", "align"])
999
1007
  ], 16, _hoisted_2$I)) : isNuxtAvailable.value && _ctx.to ? (openBlock(), createBlock(_sfc_main$X, {
1000
1008
  key: 1,
1001
1009
  to: _ctx.to,
@@ -1105,7 +1113,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
1105
1113
  };
1106
1114
  }
1107
1115
  });
1108
- const StrandsUiButton = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-21489ebf"]]);
1116
+ const StrandsUiButton = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-62daebaa"]]);
1109
1117
  const CompoundUiButton = StrandsUiButton;
1110
1118
  CompoundUiButton.Content = UiButtonContent;
1111
1119
  CompoundUiButton.Anchor = _sfc_main$Y;
@@ -40453,7 +40461,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
40453
40461
  href: {},
40454
40462
  external: { type: Boolean },
40455
40463
  tabindex: {},
40456
- title: {}
40464
+ title: {},
40465
+ align: {}
40457
40466
  },
40458
40467
  setup(__props) {
40459
40468
  const props = __props;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strands.gg/accui",
3
- "version": "2.11.33",
3
+ "version": "2.11.34",
4
4
  "description": "Strands Authentication UI Components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs.js",