@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
package/dist/data-table/index.js
CHANGED
|
@@ -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
|
}
|