@cjlapao/ui-kit 0.2.15 → 0.2.16

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.cjs CHANGED
@@ -73984,7 +73984,9 @@ function MenuRow({ item, state, depth }) {
73984
73984
  item.label && /* @__PURE__ */ (0, import_jsx_runtime336.jsx)("div", { className: "px-3 pb-1 pt-3 text-xs font-semibold text-neutral-500 dark:text-neutral-400", children: item.label }),
73985
73985
  item.items && /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(MenuList, { items: item.disabled ? item.items.map((child) => ({ ...child, disabled: true })) : item.items, state, depth, parentLabel: label, grouped: true })
73986
73986
  ] });
73987
- const tokens = getSideMenuItemTokens(props.tone ?? "neutral");
73987
+ const itemTone2 = item.tone ?? props.itemTone ?? props.tone ?? "neutral";
73988
+ const itemPadding = item.padding ?? props.itemPadding;
73989
+ const tokens = getSideMenuItemTokens(itemTone2);
73988
73990
  const checkable = item.type === "checkbox" || item.type === "radio";
73989
73991
  const activate = (event) => {
73990
73992
  if (item.disabled) {
@@ -74026,9 +74028,10 @@ function MenuRow({ item, state, depth }) {
74026
74028
  "data-menu-text": label,
74027
74029
  tabIndex: -1,
74028
74030
  className: (0, import_classnames142.default)(
74029
- "flex w-full items-center gap-2 rounded-lg text-left font-medium outline-none transition-colors",
74030
- rowSizes[props.size ?? "md"],
74031
- getSurfaceTriggerTokens(props.tone ?? "neutral").focusRing,
74031
+ "flex w-full items-center gap-2 text-left font-medium outline-none transition-colors",
74032
+ itemPadding === void 0 ? rowSizes[props.size ?? "md"] : [rowSizes[props.size ?? "md"].split(" ").filter((token) => token.startsWith("text-")), getSurfacePaddingClass(itemPadding)],
74033
+ getSurfaceCornerClass(item.corner ?? props.itemCorner ?? "rounded-sm"),
74034
+ getSurfaceTriggerTokens(itemTone2).focusRing,
74032
74035
  item.disabled ? "cursor-not-allowed opacity-40" : item.danger ? "text-rose-700 hover:bg-rose-50 dark:text-rose-300 dark:hover:bg-rose-500/10" : [tokens.hoverBg, tokens.hoverText],
74033
74036
  expanded && !item.disabled && tokens.bg
74034
74037
  ),