@ai-matrx/design-system 0.20.22 → 0.21.1

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.
@@ -205,13 +205,28 @@ var buttonVariants = (0, import_class_variance_authority.cva)(
205
205
  }
206
206
  }
207
207
  );
208
+ var TOUCH_FLOOR_SIZES = /* @__PURE__ */ new Set([
209
+ "xs",
210
+ "sm",
211
+ "default",
212
+ "md",
213
+ "lg",
214
+ "icon",
215
+ "icon-sm",
216
+ "roundIcon"
217
+ ]);
218
+ var SQUARE_SIZES = /* @__PURE__ */ new Set(["icon", "icon-sm", "roundIcon"]);
208
219
  var Button = React.forwardRef(
209
220
  ({ className, variant, size, asChild = false, ...props }, ref) => {
210
221
  const Component = asChild ? import_react_slot.Slot : "button";
222
+ const resolvedSize = size ?? "default";
211
223
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
212
224
  Component,
213
225
  {
214
226
  className: cn(buttonVariants({ variant, size, className })),
227
+ "data-matrx-button": "",
228
+ "data-tap-floor": TOUCH_FLOOR_SIZES.has(resolvedSize) ? "" : void 0,
229
+ "data-tap-floor-square": SQUARE_SIZES.has(resolvedSize) ? "" : void 0,
215
230
  ref,
216
231
  ...props
217
232
  }