@ai-matrx/design-system 0.20.22 → 0.21.0

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.
@@ -168,13 +168,28 @@ var buttonVariants = cva(
168
168
  }
169
169
  }
170
170
  );
171
+ var TOUCH_FLOOR_SIZES = /* @__PURE__ */ new Set([
172
+ "xs",
173
+ "sm",
174
+ "default",
175
+ "md",
176
+ "lg",
177
+ "icon",
178
+ "icon-sm",
179
+ "roundIcon"
180
+ ]);
181
+ var SQUARE_SIZES = /* @__PURE__ */ new Set(["icon", "icon-sm", "roundIcon"]);
171
182
  var Button = React.forwardRef(
172
183
  ({ className, variant, size, asChild = false, ...props }, ref) => {
173
184
  const Component = asChild ? Slot : "button";
185
+ const resolvedSize = size ?? "default";
174
186
  return /* @__PURE__ */ jsx2(
175
187
  Component,
176
188
  {
177
189
  className: cn(buttonVariants({ variant, size, className })),
190
+ "data-matrx-button": "",
191
+ "data-tap-floor": TOUCH_FLOOR_SIZES.has(resolvedSize) ? "" : void 0,
192
+ "data-tap-floor-square": SQUARE_SIZES.has(resolvedSize) ? "" : void 0,
178
193
  ref,
179
194
  ...props
180
195
  }