@strands.gg/accui 2.11.23 → 2.11.24

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
@@ -1430,18 +1430,6 @@ const X = createLucideIcon("x", [
1430
1430
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
1431
1431
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
1432
1432
  ]);
1433
- function hasSlotContent(slots, slotName) {
1434
- const slot = slots[slotName];
1435
- if (!slot) return false;
1436
- const content = slot();
1437
- if (!content || content.length === 0) return false;
1438
- return content.some((vnode) => {
1439
- if (vnode.children && vnode.children !== "") return true;
1440
- if (vnode.type && typeof vnode.type === "object") return true;
1441
- if (vnode.props && Object.keys(vnode.props).length > 0) return true;
1442
- return false;
1443
- });
1444
- }
1445
1433
  const _hoisted_1$N = {
1446
1434
  key: 0,
1447
1435
  class: "input-leading-icon"
@@ -1468,6 +1456,8 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
1468
1456
  step: {},
1469
1457
  autocomplete: {},
1470
1458
  spellcheck: { type: Boolean, default: true },
1459
+ hasLeadingIcon: { type: Boolean, default: false },
1460
+ hasTrailingIcon: { type: Boolean, default: false },
1471
1461
  label: {},
1472
1462
  helpText: {},
1473
1463
  modelValue: {},
@@ -1485,7 +1475,6 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
1485
1475
  setup(__props, { emit: __emit }) {
1486
1476
  const props = __props;
1487
1477
  const emit = __emit;
1488
- const slots = useSlots();
1489
1478
  const showPassword = ref(false);
1490
1479
  const computedType = computed(() => {
1491
1480
  if (props.type === "password") {
@@ -1493,11 +1482,8 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
1493
1482
  }
1494
1483
  return props.type;
1495
1484
  });
1496
- const hasLeadingIcon = computed(() => {
1497
- return hasSlotContent(slots, "leading-icon");
1498
- });
1499
- const hasTrailingIcon = computed(() => {
1500
- return hasSlotContent(slots, "trailing-icon") || props.type === "password" || props.type === "search" && props.modelValue;
1485
+ const hasTrailingIconComputed = computed(() => {
1486
+ return props.hasTrailingIcon || props.type === "password" || props.type === "search" && props.modelValue;
1501
1487
  });
1502
1488
  const buttonTabindex = computed(() => {
1503
1489
  if (props.tabindex === void 0) return;
@@ -1513,12 +1499,12 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
1513
1499
  });
1514
1500
  const paddingClasses = computed(() => {
1515
1501
  const classes = [];
1516
- if (slots["leading-icon"]) {
1502
+ if (props.hasLeadingIcon) {
1517
1503
  classes.push("input-padding-left-icon");
1518
1504
  } else {
1519
1505
  classes.push("input-padding-left");
1520
1506
  }
1521
- if (hasTrailingIcon.value) {
1507
+ if (hasTrailingIconComputed.value) {
1522
1508
  classes.push("input-padding-right-icon");
1523
1509
  } else {
1524
1510
  classes.push("input-padding-right");
@@ -1552,7 +1538,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
1552
1538
  return openBlock(), createElementBlock("div", {
1553
1539
  class: normalizeClass(["input-field-wrapper", wrapperClasses.value])
1554
1540
  }, [
1555
- hasLeadingIcon.value ? (openBlock(), createElementBlock("div", _hoisted_1$N, [
1541
+ props.hasLeadingIcon ? (openBlock(), createElementBlock("div", _hoisted_1$N, [
1556
1542
  renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true)
1557
1543
  ])) : createCommentVNode("", true),
1558
1544
  createElementVNode("input", {
@@ -1607,14 +1593,14 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
1607
1593
  ]),
1608
1594
  _: 1
1609
1595
  }, 8, ["tabindex"])
1610
- ])) : hasTrailingIcon.value ? (openBlock(), createElementBlock("div", _hoisted_5$x, [
1596
+ ])) : props.hasTrailingIcon ? (openBlock(), createElementBlock("div", _hoisted_5$x, [
1611
1597
  renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
1612
1598
  ])) : createCommentVNode("", true)
1613
1599
  ], 2);
1614
1600
  };
1615
1601
  }
1616
1602
  });
1617
- const UiInputText = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-99563a41"]]);
1603
+ const UiInputText = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-b3152b5d"]]);
1618
1604
  const _hoisted_1$M = {
1619
1605
  key: 0,
1620
1606
  class: "input-leading-icon"
@@ -1633,6 +1619,8 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
1633
1619
  autocomplete: {},
1634
1620
  spellcheck: { type: Boolean, default: true },
1635
1621
  resizable: { type: Boolean, default: true },
1622
+ hasLeadingIcon: { type: Boolean, default: false },
1623
+ hasTrailingIcon: { type: Boolean, default: false },
1636
1624
  label: {},
1637
1625
  helpText: {},
1638
1626
  modelValue: {},
@@ -1650,9 +1638,6 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
1650
1638
  setup(__props, { emit: __emit }) {
1651
1639
  const props = __props;
1652
1640
  const emit = __emit;
1653
- const slots = useSlots();
1654
- const hasLeadingIcon = computed(() => hasSlotContent(slots, "leading-icon"));
1655
- const hasTrailingIcon = computed(() => hasSlotContent(slots, "trailing-icon"));
1656
1641
  const wrapperClasses = computed(() => {
1657
1642
  const classes = [];
1658
1643
  if (props.error) classes.push("input-error");
@@ -1663,12 +1648,12 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
1663
1648
  });
1664
1649
  const paddingClasses = computed(() => {
1665
1650
  const classes = [];
1666
- if (hasLeadingIcon.value) {
1651
+ if (props.hasLeadingIcon) {
1667
1652
  classes.push("input-padding-left-icon");
1668
1653
  } else {
1669
1654
  classes.push("input-padding-left");
1670
1655
  }
1671
- if (hasTrailingIcon.value) {
1656
+ if (props.hasTrailingIcon) {
1672
1657
  classes.push("input-padding-right-icon");
1673
1658
  } else {
1674
1659
  classes.push("input-padding-right");
@@ -1692,7 +1677,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
1692
1677
  return openBlock(), createElementBlock("div", {
1693
1678
  class: normalizeClass(["input-field-wrapper input-textarea", wrapperClasses.value])
1694
1679
  }, [
1695
- hasLeadingIcon.value ? (openBlock(), createElementBlock("div", _hoisted_1$M, [
1680
+ props.hasLeadingIcon ? (openBlock(), createElementBlock("div", _hoisted_1$M, [
1696
1681
  renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true)
1697
1682
  ])) : createCommentVNode("", true),
1698
1683
  createElementVNode("div", {
@@ -1720,14 +1705,14 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
1720
1705
  onKeydown: handleKeydown
1721
1706
  }, null, 42, _hoisted_2$G)
1722
1707
  ], 2),
1723
- hasTrailingIcon.value ? (openBlock(), createElementBlock("div", _hoisted_3$D, [
1708
+ props.hasTrailingIcon ? (openBlock(), createElementBlock("div", _hoisted_3$D, [
1724
1709
  renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
1725
1710
  ])) : createCommentVNode("", true)
1726
1711
  ], 2);
1727
1712
  };
1728
1713
  }
1729
1714
  });
1730
- const UiInputTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-ffd4ab5c"]]);
1715
+ const UiInputTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-4f57fd4b"]]);
1731
1716
  function useFloatingPosition(options) {
1732
1717
  const {
1733
1718
  trigger,
@@ -1978,6 +1963,8 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
1978
1963
  maxDropdownHeight: { default: 400 },
1979
1964
  noOptionsText: { default: "No options available" },
1980
1965
  searchPlaceholder: { default: "" },
1966
+ hasLeadingIcon: { type: Boolean, default: false },
1967
+ hasTrailingIcon: { type: Boolean, default: false },
1981
1968
  label: {},
1982
1969
  helpText: {},
1983
1970
  modelValue: {},
@@ -1995,7 +1982,6 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
1995
1982
  setup(__props, { emit: __emit }) {
1996
1983
  const props = __props;
1997
1984
  const emit = __emit;
1998
- const slots = useSlots();
1999
1985
  const selectTriggerRef = ref();
2000
1986
  const dropdownRef = ref();
2001
1987
  const searchInputRef = ref();
@@ -2101,12 +2087,12 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
2101
2087
  });
2102
2088
  const paddingClasses = computed(() => {
2103
2089
  const classes = [];
2104
- if (slots["leading-icon"]) {
2090
+ if (props.hasLeadingIcon) {
2105
2091
  classes.push("input-padding-left-icon");
2106
2092
  } else {
2107
2093
  classes.push("input-padding-left");
2108
2094
  }
2109
- if (slots["trailing-icon"]) {
2095
+ if (props.hasTrailingIcon) {
2110
2096
  classes.push("input-padding-right-icon");
2111
2097
  } else {
2112
2098
  classes.push("input-padding-right");
@@ -2280,7 +2266,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
2280
2266
  paddingClasses.value
2281
2267
  ]])
2282
2268
  }, [
2283
- _ctx.$slots["leading-icon"] ? (openBlock(), createElementBlock("div", _hoisted_1$L, [
2269
+ props.hasLeadingIcon ? (openBlock(), createElementBlock("div", _hoisted_1$L, [
2284
2270
  renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true)
2285
2271
  ])) : createCommentVNode("", true),
2286
2272
  createElementVNode("div", {
@@ -2305,7 +2291,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
2305
2291
  createVNode(unref(ChevronDown))
2306
2292
  ], 2)
2307
2293
  ], 42, _hoisted_2$F),
2308
- _ctx.$slots["trailing-icon"] ? (openBlock(), createElementBlock("div", _hoisted_6$r, [
2294
+ props.hasTrailingIcon ? (openBlock(), createElementBlock("div", _hoisted_6$r, [
2309
2295
  renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
2310
2296
  ])) : createCommentVNode("", true)
2311
2297
  ], 2),
@@ -2379,7 +2365,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
2379
2365
  };
2380
2366
  }
2381
2367
  });
2382
- const UiInputSelect = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-662c22e1"]]);
2368
+ const UiInputSelect = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-302debb0"]]);
2383
2369
  const _hoisted_1$K = { class: "input-leading-icon" };
2384
2370
  const _hoisted_2$E = ["src"];
2385
2371
  const _hoisted_3$B = ["id", "accept", "multiple", "disabled", "required"];
@@ -2425,6 +2411,8 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
2425
2411
  dragDropText: {},
2426
2412
  selectedText: {},
2427
2413
  preview: {},
2414
+ hasLeadingIcon: { type: Boolean, default: false },
2415
+ hasTrailingIcon: { type: Boolean, default: false },
2428
2416
  label: {},
2429
2417
  helpText: {},
2430
2418
  modelValue: {},
@@ -2622,7 +2610,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
2622
2610
  src: previewImageUrl.value,
2623
2611
  alt: "Preview",
2624
2612
  class: "input-file-preview"
2625
- }, null, 8, _hoisted_2$E)) : _ctx.$slots["leading-icon"] ? renderSlot(_ctx.$slots, "leading-icon", { key: 1 }, void 0, true) : (openBlock(), createBlock(unref(FileInput), { key: 2 }))
2613
+ }, null, 8, _hoisted_2$E)) : props.hasLeadingIcon ? renderSlot(_ctx.$slots, "leading-icon", { key: 1 }, void 0, true) : (openBlock(), createBlock(unref(FileInput), { key: 2 }))
2626
2614
  ]),
2627
2615
  createElementVNode("div", {
2628
2616
  class: normalizeClass(["input-file-area", {
@@ -2684,14 +2672,14 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
2684
2672
  }, [
2685
2673
  createVNode(unref(X))
2686
2674
  ])
2687
- ])) : _ctx.$slots["trailing-icon"] ? (openBlock(), createElementBlock("div", _hoisted_18$f, [
2675
+ ])) : props.hasTrailingIcon ? (openBlock(), createElementBlock("div", _hoisted_18$f, [
2688
2676
  renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
2689
2677
  ])) : createCommentVNode("", true)
2690
2678
  ], 2);
2691
2679
  };
2692
2680
  }
2693
2681
  });
2694
- const UiInputFile = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-86bf65ec"]]);
2682
+ const UiInputFile = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-e1fd712d"]]);
2695
2683
  const _hoisted_1$J = { class: "tabs-wrapper" };
2696
2684
  const _hoisted_2$D = {
2697
2685
  key: 0,
@@ -25281,6 +25269,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
25281
25269
  maxLength: { default: 6 },
25282
25270
  variant: { default: "numeric" },
25283
25271
  divider: {},
25272
+ hasLeadingIcon: { type: Boolean, default: false },
25273
+ hasTrailingIcon: { type: Boolean, default: false },
25284
25274
  label: {},
25285
25275
  helpText: {},
25286
25276
  modelValue: {},
@@ -25460,7 +25450,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
25460
25450
  class: normalizeClass(["pincode-wrapper", [`pincode-size-${_ctx.size}`, { "pincode-error": _ctx.error }]])
25461
25451
  }, [
25462
25452
  createElementVNode("div", _hoisted_1$F, [
25463
- _ctx.$slots["leading-icon"] ? (openBlock(), createElementBlock("div", _hoisted_2$A, [
25453
+ props.hasLeadingIcon ? (openBlock(), createElementBlock("div", _hoisted_2$A, [
25464
25454
  renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true)
25465
25455
  ])) : createCommentVNode("", true),
25466
25456
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.maxLength, (index) => {
@@ -25492,7 +25482,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
25492
25482
  }, dividerProps.value, { class: "pincode-custom-divider" }), null, 16)) : shouldShowDivider(index) ? (openBlock(), createElementBlock("span", _hoisted_4$w, toDisplayString(dividerCharacter.value), 1)) : createCommentVNode("", true)
25493
25483
  ], 64);
25494
25484
  }), 128)),
25495
- _ctx.$slots["trailing-icon"] ? (openBlock(), createElementBlock("div", _hoisted_5$r, [
25485
+ props.hasTrailingIcon ? (openBlock(), createElementBlock("div", _hoisted_5$r, [
25496
25486
  renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
25497
25487
  ])) : createCommentVNode("", true)
25498
25488
  ])
@@ -25500,7 +25490,19 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
25500
25490
  };
25501
25491
  }
25502
25492
  });
25503
- const UiInputPincode = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-dc5d46fa"]]);
25493
+ const UiInputPincode = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-78a9c50b"]]);
25494
+ function hasSlotContent(slots, slotName) {
25495
+ const slot = slots[slotName];
25496
+ if (!slot) return false;
25497
+ const content = slot();
25498
+ if (!content || content.length === 0) return false;
25499
+ return content.some((vnode) => {
25500
+ if (vnode.children && vnode.children !== "") return true;
25501
+ if (vnode.type && typeof vnode.type === "object") return true;
25502
+ if (vnode.props && Object.keys(vnode.props).length > 0) return true;
25503
+ return false;
25504
+ });
25505
+ }
25504
25506
  const _hoisted_1$E = ["for"];
25505
25507
  const _hoisted_2$z = {
25506
25508
  key: 0,
@@ -25527,6 +25529,8 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
25527
25529
  step: {},
25528
25530
  autocomplete: {},
25529
25531
  spellcheck: { type: Boolean },
25532
+ hasLeadingIcon: { type: Boolean },
25533
+ hasTrailingIcon: { type: Boolean },
25530
25534
  label: {},
25531
25535
  helpText: {},
25532
25536
  modelValue: {},
@@ -25631,26 +25635,21 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
25631
25635
  error: Boolean(props.error && props.error !== true && props.error !== ""),
25632
25636
  size: props.size,
25633
25637
  tabindex: _ctx.tabindex,
25638
+ "has-leading-icon": hasSlotContent$1("leading-icon"),
25639
+ "has-trailing-icon": hasSlotContent$1("trailing-icon"),
25634
25640
  "onUpdate:modelValue": handleInput,
25635
25641
  onBlur: handleBlur,
25636
25642
  onFocus: handleFocus,
25637
25643
  onKeydown: handleKeydown
25638
- }, createSlots({ _: 2 }, [
25639
- hasSlotContent$1("leading-icon") ? {
25640
- name: "leading-icon",
25641
- fn: withCtx(() => [
25642
- renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true)
25643
- ]),
25644
- key: "0"
25645
- } : void 0,
25646
- hasSlotContent$1("trailing-icon") ? {
25647
- name: "trailing-icon",
25648
- fn: withCtx(() => [
25649
- renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
25650
- ]),
25651
- key: "1"
25652
- } : void 0
25653
- ]), 1032, ["model-value", "type", "placeholder", "disabled", "readonly", "required", "min", "max", "step", "autocomplete", "spellcheck", "input-id", "error", "size", "tabindex"])) : _ctx.type === "textarea" ? (openBlock(), createBlock(UiInputTextarea, {
25644
+ }, {
25645
+ "leading-icon": withCtx(() => [
25646
+ renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true)
25647
+ ]),
25648
+ "trailing-icon": withCtx(() => [
25649
+ renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
25650
+ ]),
25651
+ _: 3
25652
+ }, 8, ["model-value", "type", "placeholder", "disabled", "readonly", "required", "min", "max", "step", "autocomplete", "spellcheck", "input-id", "error", "size", "tabindex", "has-leading-icon", "has-trailing-icon"])) : _ctx.type === "textarea" ? (openBlock(), createBlock(UiInputTextarea, {
25654
25653
  key: 1,
25655
25654
  "model-value": _ctx.modelValue,
25656
25655
  placeholder: _ctx.placeholder,
@@ -25667,26 +25666,21 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
25667
25666
  error: props.error,
25668
25667
  size: props.size,
25669
25668
  tabindex: _ctx.tabindex,
25669
+ "has-leading-icon": hasSlotContent$1("leading-icon"),
25670
+ "has-trailing-icon": hasSlotContent$1("trailing-icon"),
25670
25671
  "onUpdate:modelValue": handleInput,
25671
25672
  onBlur: handleBlur,
25672
25673
  onFocus: handleFocus,
25673
25674
  onKeydown: handleKeydown
25674
- }, createSlots({ _: 2 }, [
25675
- hasSlotContent$1("leading-icon") ? {
25676
- name: "leading-icon",
25677
- fn: withCtx(() => [
25678
- renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true)
25679
- ]),
25680
- key: "0"
25681
- } : void 0,
25682
- hasSlotContent$1("trailing-icon") ? {
25683
- name: "trailing-icon",
25684
- fn: withCtx(() => [
25685
- renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
25686
- ]),
25687
- key: "1"
25688
- } : void 0
25689
- ]), 1032, ["model-value", "placeholder", "disabled", "readonly", "required", "rows", "cols", "maxlength", "autocomplete", "spellcheck", "resizable", "input-id", "error", "size", "tabindex"])) : _ctx.type === "select" ? (openBlock(), createBlock(UiInputSelect, {
25675
+ }, {
25676
+ "leading-icon": withCtx(() => [
25677
+ renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true)
25678
+ ]),
25679
+ "trailing-icon": withCtx(() => [
25680
+ renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
25681
+ ]),
25682
+ _: 3
25683
+ }, 8, ["model-value", "placeholder", "disabled", "readonly", "required", "rows", "cols", "maxlength", "autocomplete", "spellcheck", "resizable", "input-id", "error", "size", "tabindex", "has-leading-icon", "has-trailing-icon"])) : _ctx.type === "select" ? (openBlock(), createBlock(UiInputSelect, {
25690
25684
  key: 2,
25691
25685
  "model-value": _ctx.modelValue,
25692
25686
  options: props.options,
@@ -25702,25 +25696,20 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
25702
25696
  error: props.error,
25703
25697
  size: props.size,
25704
25698
  tabindex: _ctx.tabindex,
25699
+ "has-leading-icon": hasSlotContent$1("leading-icon"),
25700
+ "has-trailing-icon": hasSlotContent$1("trailing-icon"),
25705
25701
  "onUpdate:modelValue": handleInput,
25706
25702
  onBlur: handleBlur,
25707
25703
  onFocus: handleFocus
25708
- }, createSlots({ _: 2 }, [
25709
- hasSlotContent$1("leading-icon") ? {
25710
- name: "leading-icon",
25711
- fn: withCtx(() => [
25712
- renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true)
25713
- ]),
25714
- key: "0"
25715
- } : void 0,
25716
- hasSlotContent$1("trailing-icon") ? {
25717
- name: "trailing-icon",
25718
- fn: withCtx(() => [
25719
- renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
25720
- ]),
25721
- key: "1"
25722
- } : void 0
25723
- ]), 1032, ["model-value", "options", "placeholder", "disabled", "multiple", "searchable", "allow-insert", "max-dropdown-height", "no-options-text", "search-placeholder", "input-id", "error", "size", "tabindex"])) : _ctx.type === "file" ? (openBlock(), createBlock(UiInputFile, {
25704
+ }, {
25705
+ "leading-icon": withCtx(() => [
25706
+ renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true)
25707
+ ]),
25708
+ "trailing-icon": withCtx(() => [
25709
+ renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
25710
+ ]),
25711
+ _: 3
25712
+ }, 8, ["model-value", "options", "placeholder", "disabled", "multiple", "searchable", "allow-insert", "max-dropdown-height", "no-options-text", "search-placeholder", "input-id", "error", "size", "tabindex", "has-leading-icon", "has-trailing-icon"])) : _ctx.type === "file" ? (openBlock(), createBlock(UiInputFile, {
25724
25713
  key: 3,
25725
25714
  "model-value": _ctx.modelValue,
25726
25715
  accept: props.accept,
@@ -25735,27 +25724,22 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
25735
25724
  error: props.error,
25736
25725
  size: props.size,
25737
25726
  tabindex: _ctx.tabindex,
25727
+ "has-leading-icon": hasSlotContent$1("leading-icon"),
25728
+ "has-trailing-icon": hasSlotContent$1("trailing-icon"),
25738
25729
  "onUpdate:modelValue": handleInput,
25739
25730
  onFileError: handleFileError,
25740
25731
  onClearPreview: handleClearPreview,
25741
25732
  onBlur: handleBlur,
25742
25733
  onFocus: handleFocus
25743
- }, createSlots({ _: 2 }, [
25744
- hasSlotContent$1("leading-icon") ? {
25745
- name: "leading-icon",
25746
- fn: withCtx(() => [
25747
- renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true)
25748
- ]),
25749
- key: "0"
25750
- } : void 0,
25751
- hasSlotContent$1("trailing-icon") ? {
25752
- name: "trailing-icon",
25753
- fn: withCtx(() => [
25754
- renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
25755
- ]),
25756
- key: "1"
25757
- } : void 0
25758
- ]), 1032, ["model-value", "accept", "multiple", "max-file-size", "drag-drop-text", "selected-text", "preview", "disabled", "required", "input-id", "error", "size", "tabindex"])) : _ctx.type === "date" ? (openBlock(), createBlock(_sfc_main$M, {
25734
+ }, {
25735
+ "leading-icon": withCtx(() => [
25736
+ renderSlot(_ctx.$slots, "leading-icon", {}, void 0, true)
25737
+ ]),
25738
+ "trailing-icon": withCtx(() => [
25739
+ renderSlot(_ctx.$slots, "trailing-icon", {}, void 0, true)
25740
+ ]),
25741
+ _: 3
25742
+ }, 8, ["model-value", "accept", "multiple", "max-file-size", "drag-drop-text", "selected-text", "preview", "disabled", "required", "input-id", "error", "size", "tabindex", "has-leading-icon", "has-trailing-icon"])) : _ctx.type === "date" ? (openBlock(), createBlock(_sfc_main$M, {
25759
25743
  key: 4,
25760
25744
  "model-value": _ctx.modelValue,
25761
25745
  placeholder: _ctx.placeholder,
@@ -25856,7 +25840,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
25856
25840
  };
25857
25841
  }
25858
25842
  });
25859
- const StrandsUiInput = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-55d725f7"]]);
25843
+ const StrandsUiInput = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-96984fc3"]]);
25860
25844
  const _hoisted_1$D = ["disabled", "aria-disabled"];
25861
25845
  const _hoisted_2$y = ["href", "target", "rel", "aria-disabled"];
25862
25846
  const _sfc_main$G = /* @__PURE__ */ defineComponent({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strands.gg/accui",
3
- "version": "2.11.23",
3
+ "version": "2.11.24",
4
4
  "description": "Strands Authentication UI Components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs.js",