@sarunyu/system-one 1.0.3 → 1.0.4

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
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  "use strict";
2
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
4
  const jsxRuntime = require("react/jsx-runtime");
@@ -2941,8 +2942,8 @@ const Tag = React.forwardRef(function Tag2({
2941
2942
  className
2942
2943
  }, ref) {
2943
2944
  const isDisabled = state === "disabled";
2944
- const s = sizeStyles[size];
2945
- const v = variantStyles[variant];
2945
+ const s = sizeStyles[size] ?? sizeStyles.large;
2946
+ const v = variantStyles[variant] ?? variantStyles.gray;
2946
2947
  const bgClass = state === "disabled" ? "bg-disabled-bg" : state === "hover" ? "bg-hover-bg" : v.bg;
2947
2948
  const textClass = isDisabled ? "text-disabled" : v.text;
2948
2949
  return /* @__PURE__ */ jsxRuntime.jsxs(