@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.
- package/CHANGELOG.md +32 -5
- package/dist/content-transfer.cjs +15 -0
- package/dist/content-transfer.cjs.map +1 -1
- package/dist/content-transfer.js +15 -0
- package/dist/content-transfer.js.map +1 -1
- package/dist/data-table/data-row-inspector.cjs +15 -0
- package/dist/data-table/data-row-inspector.cjs.map +1 -1
- package/dist/data-table/data-row-inspector.js +15 -0
- package/dist/data-table/data-row-inspector.js.map +1 -1
- package/dist/data-table/data-row-window.cjs +15 -0
- package/dist/data-table/data-row-window.cjs.map +1 -1
- package/dist/data-table/data-row-window.js +15 -0
- package/dist/data-table/data-row-window.js.map +1 -1
- package/dist/data-table/index.cjs +15 -0
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.js +15 -0
- package/dist/data-table/index.js.map +1 -1
- package/dist/data-table/pagination.cjs +15 -0
- package/dist/data-table/pagination.cjs.map +1 -1
- package/dist/data-table/pagination.js +15 -0
- package/dist/data-table/pagination.js.map +1 -1
- package/dist/index.cjs +15 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/dist/styles.css +26 -0
- package/package.json +1 -1
|
@@ -472,13 +472,28 @@ var buttonVariants = (0, import_class_variance_authority.cva)(
|
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
474
|
);
|
|
475
|
+
var TOUCH_FLOOR_SIZES = /* @__PURE__ */ new Set([
|
|
476
|
+
"xs",
|
|
477
|
+
"sm",
|
|
478
|
+
"default",
|
|
479
|
+
"md",
|
|
480
|
+
"lg",
|
|
481
|
+
"icon",
|
|
482
|
+
"icon-sm",
|
|
483
|
+
"roundIcon"
|
|
484
|
+
]);
|
|
485
|
+
var SQUARE_SIZES = /* @__PURE__ */ new Set(["icon", "icon-sm", "roundIcon"]);
|
|
475
486
|
var Button = React5.forwardRef(
|
|
476
487
|
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
477
488
|
const Component = asChild ? import_react_slot.Slot : "button";
|
|
489
|
+
const resolvedSize = size ?? "default";
|
|
478
490
|
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
479
491
|
Component,
|
|
480
492
|
{
|
|
481
493
|
className: cn(buttonVariants({ variant, size, className })),
|
|
494
|
+
"data-matrx-button": "",
|
|
495
|
+
"data-tap-floor": TOUCH_FLOOR_SIZES.has(resolvedSize) ? "" : void 0,
|
|
496
|
+
"data-tap-floor-square": SQUARE_SIZES.has(resolvedSize) ? "" : void 0,
|
|
482
497
|
ref,
|
|
483
498
|
...props
|
|
484
499
|
}
|