@ai-matrx/design-system 0.20.21 → 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 +33 -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/copy-helpers.d.cts +1 -1
- package/dist/data-table/copy-helpers.d.ts +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/filter-engine.d.cts +1 -1
- package/dist/data-table/filter-engine.d.ts +1 -1
- package/dist/data-table/host.d.cts +1 -1
- package/dist/data-table/host.d.ts +1 -1
- package/dist/data-table/index.cjs +34 -11
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.d.cts +4 -3
- package/dist/data-table/index.d.ts +4 -3
- package/dist/data-table/index.js +34 -11
- package/dist/data-table/index.js.map +1 -1
- package/dist/data-table/infer-filter.d.cts +1 -1
- package/dist/data-table/infer-filter.d.ts +1 -1
- package/dist/data-table/layered-filters.d.cts +1 -1
- package/dist/data-table/layered-filters.d.ts +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/data-table/query-control.d.cts +1 -1
- package/dist/data-table/query-control.d.ts +1 -1
- package/dist/data-table/types.cjs.map +1 -1
- package/dist/data-table/types.d.cts +1 -1
- package/dist/data-table/types.d.ts +1 -1
- package/dist/data-table/url-state.d.cts +1 -1
- package/dist/data-table/url-state.d.ts +1 -1
- package/dist/data-table/xlsx.d.cts +1 -1
- package/dist/data-table/xlsx.d.ts +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/dist/{types-n8d2I1Gu.d.cts → types-B99KFITZ.d.cts} +9 -2
- package/dist/{types-D_UZxZC5.d.ts → types-CryQuMmz.d.ts} +9 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AgentPayloadInput } from './copy-types.cjs';
|
|
2
|
-
import { f as MatrxDataTableCopyConfig, M as MatrxColumnDef } from '../types-
|
|
2
|
+
import { f as MatrxDataTableCopyConfig, M as MatrxColumnDef } from '../types-B99KFITZ.cjs';
|
|
3
3
|
import '../extensions-DCHtNwG3.cjs';
|
|
4
4
|
import '@ai-matrx/kit/content-transfer';
|
|
5
5
|
import 'react';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AgentPayloadInput } from './copy-types.js';
|
|
2
|
-
import { f as MatrxDataTableCopyConfig, M as MatrxColumnDef } from '../types-
|
|
2
|
+
import { f as MatrxDataTableCopyConfig, M as MatrxColumnDef } from '../types-CryQuMmz.js';
|
|
3
3
|
import '../extensions-DCHtNwG3.js';
|
|
4
4
|
import '@ai-matrx/kit/content-transfer';
|
|
5
5
|
import 'react';
|
|
@@ -107,13 +107,28 @@ var buttonVariants = (0, import_class_variance_authority.cva)(
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
);
|
|
110
|
+
var TOUCH_FLOOR_SIZES = /* @__PURE__ */ new Set([
|
|
111
|
+
"xs",
|
|
112
|
+
"sm",
|
|
113
|
+
"default",
|
|
114
|
+
"md",
|
|
115
|
+
"lg",
|
|
116
|
+
"icon",
|
|
117
|
+
"icon-sm",
|
|
118
|
+
"roundIcon"
|
|
119
|
+
]);
|
|
120
|
+
var SQUARE_SIZES = /* @__PURE__ */ new Set(["icon", "icon-sm", "roundIcon"]);
|
|
110
121
|
var Button = React.forwardRef(
|
|
111
122
|
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
112
123
|
const Component = asChild ? import_react_slot.Slot : "button";
|
|
124
|
+
const resolvedSize = size ?? "default";
|
|
113
125
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
114
126
|
Component,
|
|
115
127
|
{
|
|
116
128
|
className: cn(buttonVariants({ variant, size, className })),
|
|
129
|
+
"data-matrx-button": "",
|
|
130
|
+
"data-tap-floor": TOUCH_FLOOR_SIZES.has(resolvedSize) ? "" : void 0,
|
|
131
|
+
"data-tap-floor-square": SQUARE_SIZES.has(resolvedSize) ? "" : void 0,
|
|
117
132
|
ref,
|
|
118
133
|
...props
|
|
119
134
|
}
|