@ai-matrx/design-system 0.49.2 → 0.49.3
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 +6 -0
- package/dist/data-table/index.cjs +24 -1
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.js +24 -1
- package/dist/data-table/index.js.map +1 -1
- package/dist/data-table/pagination.cjs +11 -1
- package/dist/data-table/pagination.cjs.map +1 -1
- package/dist/data-table/pagination.js +11 -1
- package/dist/data-table/pagination.js.map +1 -1
- package/dist/index.cjs +329 -324
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +329 -324
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.49.3
|
|
4
|
+
### Unreleased
|
|
5
|
+
### page-pass shared fix (2026-09-27): one dropdown chevron
|
|
6
|
+
|
|
7
|
+
- New export **`SelectChevron`** — THE trigger glyph for every dropdown (down chevron, 16px / 14px `sm`, muted). `SelectTrigger` and `CreatablePicker` draw it (the picker drew an up-down pair beside Selects' down chevron). Proof: `one-dropdown-chevron.test.tsx`, red on the previous picker.
|
|
8
|
+
|
|
3
9
|
## 0.49.2
|
|
4
10
|
|
|
5
11
|
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
@@ -35068,6 +35068,16 @@ var selectTriggerVariants = (0, import_class_variance_authority2.cva)(
|
|
|
35068
35068
|
}
|
|
35069
35069
|
}
|
|
35070
35070
|
);
|
|
35071
|
+
function SelectChevron({ className, size = "default" }) {
|
|
35072
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
35073
|
+
RadixChevronDownIcon,
|
|
35074
|
+
{
|
|
35075
|
+
"aria-hidden": "true",
|
|
35076
|
+
"data-select-chevron": "",
|
|
35077
|
+
className: cn(size === "sm" ? "h-3.5 w-3.5" : "h-4 w-4", "shrink-0 opacity-50", className)
|
|
35078
|
+
}
|
|
35079
|
+
);
|
|
35080
|
+
}
|
|
35071
35081
|
var SelectTrigger = React8.forwardRef(({ className, children, hideArrow = false, size, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
35072
35082
|
SelectPrimitive.Trigger,
|
|
35073
35083
|
{
|
|
@@ -35076,7 +35086,7 @@ var SelectTrigger = React8.forwardRef(({ className, children, hideArrow = false,
|
|
|
35076
35086
|
...props,
|
|
35077
35087
|
children: [
|
|
35078
35088
|
children,
|
|
35079
|
-
!hideArrow && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
35089
|
+
!hideArrow && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SelectChevron, { size: size === "sm" ? "sm" : "default" }) })
|
|
35080
35090
|
]
|
|
35081
35091
|
}
|
|
35082
35092
|
));
|
|
@@ -48221,6 +48231,17 @@ function MatrxDataTableCore(coreProps) {
|
|
|
48221
48231
|
const CHECKBOX_TAP_AREA = "h-4 w-4 touch-manipulation";
|
|
48222
48232
|
const mobileCardsClass = mobileCardsBreakpoint === "lg" ? "lg:hidden" : "sm:hidden";
|
|
48223
48233
|
const tableWithCardsClass = mobileCardsBreakpoint === "lg" ? "max-lg:hidden" : "max-sm:hidden";
|
|
48234
|
+
const cardsQuery = mobileCardsBreakpoint === "lg" ? "(max-width: 1023px)" : "(max-width: 639px)";
|
|
48235
|
+
const [cardsActive, setCardsActive] = (0, import_react22.useState)(null);
|
|
48236
|
+
(0, import_react22.useEffect)(() => {
|
|
48237
|
+
if (!mobileCards || typeof window === "undefined" || !window.matchMedia) return;
|
|
48238
|
+
const mql = window.matchMedia(cardsQuery);
|
|
48239
|
+
const read2 = () => setCardsActive(mql.matches);
|
|
48240
|
+
read2();
|
|
48241
|
+
mql.addEventListener?.("change", read2);
|
|
48242
|
+
return () => mql.removeEventListener?.("change", read2);
|
|
48243
|
+
}, [mobileCards, cardsQuery]);
|
|
48244
|
+
const inactiveProps = (active) => cardsActive === null || active ? {} : { inert: true, "aria-hidden": true };
|
|
48224
48245
|
const controlledQuery = query?.mode === "controlled" || query?.mode === "controlled-local" || query?.mode === "controlled-append" ? query : null;
|
|
48225
48246
|
const remoteQuery = query?.mode === "controlled" || query?.mode === "controlled-append" ? query : null;
|
|
48226
48247
|
const sourceProcessing = query?.mode === "controlled" || query?.mode === "controlled-local" ? query.sourceProcessing : appendQuery?.sourceProcessing;
|
|
@@ -51379,6 +51400,7 @@ function MatrxDataTableCore(coreProps) {
|
|
|
51379
51400
|
"div",
|
|
51380
51401
|
{
|
|
51381
51402
|
ref: cardsScrollRef,
|
|
51403
|
+
...inactiveProps(cardsActive === true),
|
|
51382
51404
|
"data-matrx-table-cards-scroll": true,
|
|
51383
51405
|
"aria-busy": isLoading || isFetching,
|
|
51384
51406
|
...appendQuery === null ? {} : { style: { containerType: "inline-size" } },
|
|
@@ -51487,6 +51509,7 @@ function MatrxDataTableCore(coreProps) {
|
|
|
51487
51509
|
"div",
|
|
51488
51510
|
{
|
|
51489
51511
|
ref: scrollRef,
|
|
51512
|
+
...mobileCards ? inactiveProps(cardsActive === false) : {},
|
|
51490
51513
|
"data-matrx-table-scroll": true,
|
|
51491
51514
|
onScroll: updateScrollHint,
|
|
51492
51515
|
...spreadsheetEnabled ? {
|