@bubo-squared/ui-framework 0.2.30 → 0.2.31

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
@@ -123,7 +123,7 @@ function spawnRipple(target, clientX, clientY, options = {}) {
123
123
  }
124
124
 
125
125
  // src/components/ui/button.tsx
126
- var React = require("react");
126
+ var React = __toESM(require("react"), 1);
127
127
  var import_react_slot = require("@radix-ui/react-slot");
128
128
  var import_class_variance_authority = require("class-variance-authority");
129
129
  var import_jsx_runtime2 = require("react/jsx-runtime");
@@ -154,17 +154,12 @@ var buttonVariants = (0, import_class_variance_authority.cva)(
154
154
  }
155
155
  }
156
156
  );
157
- function Button({
158
- className,
159
- variant = "default",
160
- size = "default",
161
- asChild = false,
162
- ...props
163
- }) {
157
+ var Button = React.forwardRef(({ className, variant = "default", size = "default", asChild = false, ...props }, ref) => {
164
158
  const Comp = asChild ? import_react_slot.Slot : "button";
165
159
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
166
160
  Comp,
167
161
  {
162
+ ref,
168
163
  "data-slot": "button",
169
164
  "data-variant": variant,
170
165
  "data-size": size,
@@ -172,7 +167,8 @@ function Button({
172
167
  ...props
173
168
  }
174
169
  );
175
- }
170
+ });
171
+ Button.displayName = "Button";
176
172
 
177
173
  // src/components/Buttons/Button.tsx
178
174
  var import_jsx_runtime3 = require("react/jsx-runtime");