hazo_ui 2.6.3 → 2.6.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
@@ -232,13 +232,36 @@ var buttonVariants = classVarianceAuthority.cva(
232
232
  }
233
233
  }
234
234
  );
235
+ var variant_styles = {
236
+ default: {
237
+ backgroundColor: "var(--primary)",
238
+ color: "var(--primary-foreground)",
239
+ border: "1px solid var(--primary)"
240
+ },
241
+ destructive: {
242
+ backgroundColor: "var(--destructive)",
243
+ color: "white",
244
+ border: "1px solid var(--destructive)"
245
+ },
246
+ outline: {
247
+ backgroundColor: "var(--background)",
248
+ color: "var(--foreground)",
249
+ border: "1px solid var(--border)"
250
+ },
251
+ secondary: {
252
+ backgroundColor: "var(--secondary)",
253
+ color: "var(--secondary-foreground)"
254
+ }
255
+ };
235
256
  var Button = React27__namespace.forwardRef(
236
- ({ className, variant, size, asChild = false, ...props }, ref) => {
257
+ ({ className, variant, size, asChild = false, style, ...props }, ref) => {
237
258
  const Comp = asChild ? reactSlot.Slot : "button";
259
+ const fallback_styles = variant_styles[variant ?? "default"] ?? {};
238
260
  return /* @__PURE__ */ jsxRuntime.jsx(
239
261
  Comp,
240
262
  {
241
263
  className: cn(buttonVariants({ variant, size, className })),
264
+ style: { ...fallback_styles, ...style },
242
265
  ref,
243
266
  ...props
244
267
  }