@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
package/dist/index.js
CHANGED
|
@@ -717,13 +717,28 @@ var buttonVariants = cva3(
|
|
|
717
717
|
}
|
|
718
718
|
}
|
|
719
719
|
);
|
|
720
|
+
var TOUCH_FLOOR_SIZES = /* @__PURE__ */ new Set([
|
|
721
|
+
"xs",
|
|
722
|
+
"sm",
|
|
723
|
+
"default",
|
|
724
|
+
"md",
|
|
725
|
+
"lg",
|
|
726
|
+
"icon",
|
|
727
|
+
"icon-sm",
|
|
728
|
+
"roundIcon"
|
|
729
|
+
]);
|
|
730
|
+
var SQUARE_SIZES = /* @__PURE__ */ new Set(["icon", "icon-sm", "roundIcon"]);
|
|
720
731
|
var Button = React5.forwardRef(
|
|
721
732
|
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
722
733
|
const Component = asChild ? Slot : "button";
|
|
734
|
+
const resolvedSize = size ?? "default";
|
|
723
735
|
return /* @__PURE__ */ jsx8(
|
|
724
736
|
Component,
|
|
725
737
|
{
|
|
726
738
|
className: cn(buttonVariants({ variant, size, className })),
|
|
739
|
+
"data-matrx-button": "",
|
|
740
|
+
"data-tap-floor": TOUCH_FLOOR_SIZES.has(resolvedSize) ? "" : void 0,
|
|
741
|
+
"data-tap-floor-square": SQUARE_SIZES.has(resolvedSize) ? "" : void 0,
|
|
727
742
|
ref,
|
|
728
743
|
...props
|
|
729
744
|
}
|