@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.
- package/CHANGELOG.md +39 -0
- 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
|
@@ -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
|
}
|