@skalar-saas/design-system 0.1.152 → 0.1.154

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.mjs CHANGED
@@ -1147,7 +1147,7 @@ const Me = (t) => t !== void 0 && {
1147
1147
  /* @__PURE__ */ e("g", { clipPath: "url(#a)", children: /* @__PURE__ */ e(
1148
1148
  "path",
1149
1149
  {
1150
- fill: "currontColor",
1150
+ fill: "currentColor",
1151
1151
  fillRule: "evenodd",
1152
1152
  d: "M8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2ZM.665 8a7.333 7.333 0 1 1 14.667 0A7.333 7.333 0 0 1 .666 8Z",
1153
1153
  clipRule: "evenodd"
@@ -6035,7 +6035,7 @@ const tu = ({
6035
6035
  "flex",
6036
6036
  "items-center",
6037
6037
  "justify-center",
6038
- "p-1 bg-brand-primary-main-special rounded-lg border border-brand-primary-accent-special gap-2"
6038
+ "p-1 bg-brand-primary-main-special rounded-8 border border-brand-primary-accent-special gap-2"
6039
6039
  ), [a, l] = R(null), u = F(null);
6040
6040
  return Z(() => {
6041
6041
  const d = (h) => {
@@ -6055,8 +6055,8 @@ const tu = ({
6055
6055
  variant: m.variant || "brand",
6056
6056
  hierarchy: m.hierarchy || "secondary",
6057
6057
  size: m.size || "sm",
6058
- icons: m.leadingIcon && m.trailingIcon ? "both" : m.leadingIcon ? "leading" : m.trailingIcon ? "trailing" : void 0,
6059
- leadingIcon: m.leadingIcon,
6058
+ icons: m.label && m.leadingIcon ? "both" : "trailing",
6059
+ leadingIcon: m.label ? m.leadingIcon : void 0,
6060
6060
  trailingIcon: a === m.id ? /* @__PURE__ */ e(dr, {}) : /* @__PURE__ */ e(cr, {}),
6061
6061
  onClick: () => l(a === m.id ? null : m.id),
6062
6062
  disabled: m.disabled,
@@ -6065,7 +6065,10 @@ const tu = ({
6065
6065
  m.className,
6066
6066
  a === m.id && "bg-brand-primary-accent-special"
6067
6067
  ),
6068
- children: m.label
6068
+ children: m.label ? m.label : z.isValidElement(m.leadingIcon) ? z.cloneElement(m.leadingIcon, {
6069
+ size: 18,
6070
+ color: "currentColor"
6071
+ }) : m.leadingIcon
6069
6072
  }
6070
6073
  ),
6071
6074
  a === m.id && /* @__PURE__ */ e(
@@ -6073,6 +6076,7 @@ const tu = ({
6073
6076
  {
6074
6077
  floating: !0,
6075
6078
  size: m.dropMenuSize || "sm",
6079
+ selectedIds: m.selectedIds,
6076
6080
  items: m.items.map((p) => ({
6077
6081
  id: p.id,
6078
6082
  title: p.label,
@@ -6081,6 +6085,7 @@ const tu = ({
6081
6085
  showDescription: m.showDescription ?? !1,
6082
6086
  showTrailingIcon: m.showTrailingIcon ?? !1,
6083
6087
  showTrailingText: m.showTrailingText ?? !1,
6088
+ trailingText: p.trailingText,
6084
6089
  showTag: m.showTag ?? !1,
6085
6090
  showCheckbox: m.showCheckbox ?? !1,
6086
6091
  disabled: p.disabled,