@ai-matrx/design-system 0.86.357 → 0.86.359
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 +30 -2
- package/dist/carousel.js +6 -6
- package/dist/{chunk-T4D7WAV7.js → chunk-42GFQMLA.js} +2 -2
- package/dist/{chunk-POJ3RR3K.js → chunk-B5D3VIMC.js} +1 -1
- package/dist/{chunk-POJ3RR3K.js.map → chunk-B5D3VIMC.js.map} +1 -1
- package/dist/{chunk-FRJ4PPA2.js → chunk-CZGZV35G.js} +2 -2
- package/dist/{chunk-ACZALXD6.js → chunk-K3XWUACX.js} +3 -3
- package/dist/{chunk-TV2IDHPZ.js → chunk-K5ZQROWN.js} +4 -4
- package/dist/{chunk-U46XUQI7.js → chunk-KSCSH7AO.js} +16 -14
- package/dist/chunk-KSCSH7AO.js.map +1 -0
- package/dist/{chunk-MTE6N7XU.js → chunk-NFJ63LIH.js} +2 -2
- package/dist/{chunk-XZGYKKCE.js → chunk-OUQT72UL.js} +3 -3
- package/dist/{chunk-WUD23YTG.js → chunk-P56Y43RL.js} +6 -6
- package/dist/{chunk-GMNROZQJ.js → chunk-QTPW44IJ.js} +2 -2
- package/dist/{chunk-QA7EHFRX.js → chunk-T3FKFPCW.js} +5 -5
- package/dist/{chunk-X6ZRHJQP.js → chunk-T57DLONB.js} +20 -11
- package/dist/chunk-T57DLONB.js.map +1 -0
- package/dist/{chunk-SOCNWQMX.js → chunk-TEMAM5ET.js} +3 -3
- package/dist/{chunk-CH2NWSES.js → chunk-TIV6M7Q7.js} +3 -3
- package/dist/{chunk-6XNYYROM.js → chunk-WVEDW5VO.js} +2 -2
- package/dist/clipboard-fallback-dialog.js +2 -2
- package/dist/controls.cjs +19 -10
- package/dist/controls.cjs.map +1 -1
- package/dist/controls.js +6 -6
- package/dist/data-table/data-row-inspector.cjs +99 -11
- package/dist/data-table/data-row-inspector.cjs.map +1 -1
- package/dist/data-table/data-row-inspector.js +8 -7
- package/dist/data-table/data-row-window.cjs +99 -11
- package/dist/data-table/data-row-window.cjs.map +1 -1
- package/dist/data-table/data-row-window.js +9 -8
- package/dist/data-table/drill-chart.js +1 -1
- package/dist/data-table/host.cjs.map +1 -1
- package/dist/data-table/host.d.cts +6 -2
- package/dist/data-table/host.d.ts +6 -2
- package/dist/data-table/host.js +1 -1
- package/dist/data-table/index.cjs +39 -37
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.d.cts +6 -2
- package/dist/data-table/index.d.ts +6 -2
- package/dist/data-table/index.js +19 -23
- package/dist/data-table/index.js.map +1 -1
- package/dist/data-table/pagination.cjs +19 -10
- package/dist/data-table/pagination.cjs.map +1 -1
- package/dist/data-table/pagination.js +4 -4
- package/dist/data-table/uuid-cell.cjs +99 -11
- package/dist/data-table/uuid-cell.cjs.map +1 -1
- package/dist/data-table/uuid-cell.js +5 -4
- package/dist/desktop.cjs +20 -11
- package/dist/desktop.cjs.map +1 -1
- package/dist/desktop.d.cts +1 -1
- package/dist/desktop.d.ts +1 -1
- package/dist/desktop.js +13 -13
- package/dist/desktop.js.map +1 -1
- package/dist/email-input-dialog.js +1 -1
- package/dist/index.cjs +31 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +20 -20
- package/dist/item.cjs +19 -10
- package/dist/item.cjs.map +1 -1
- package/dist/item.js +5 -5
- package/dist/lite-table.js +3 -3
- package/dist/menu-look.cjs +19 -10
- package/dist/menu-look.cjs.map +1 -1
- package/dist/menu-look.js +2 -2
- package/dist/record-list.cjs +19 -10
- package/dist/record-list.cjs.map +1 -1
- package/dist/record-list.js +6 -6
- package/dist/settings.js +3 -3
- package/dist/swipe-deck.cjs +11 -2
- package/dist/swipe-deck.cjs.map +1 -1
- package/dist/swipe-deck.js +12 -3
- package/dist/swipe-deck.js.map +1 -1
- package/dist/text-input-dialog.js +1 -1
- package/dist/writing-field.js +3 -3
- package/package.json +2 -2
- package/dist/chunk-U46XUQI7.js.map +0 -1
- package/dist/chunk-X6ZRHJQP.js.map +0 -1
- /package/dist/{chunk-T4D7WAV7.js.map → chunk-42GFQMLA.js.map} +0 -0
- /package/dist/{chunk-FRJ4PPA2.js.map → chunk-CZGZV35G.js.map} +0 -0
- /package/dist/{chunk-ACZALXD6.js.map → chunk-K3XWUACX.js.map} +0 -0
- /package/dist/{chunk-TV2IDHPZ.js.map → chunk-K5ZQROWN.js.map} +0 -0
- /package/dist/{chunk-MTE6N7XU.js.map → chunk-NFJ63LIH.js.map} +0 -0
- /package/dist/{chunk-XZGYKKCE.js.map → chunk-OUQT72UL.js.map} +0 -0
- /package/dist/{chunk-WUD23YTG.js.map → chunk-P56Y43RL.js.map} +0 -0
- /package/dist/{chunk-GMNROZQJ.js.map → chunk-QTPW44IJ.js.map} +0 -0
- /package/dist/{chunk-QA7EHFRX.js.map → chunk-T3FKFPCW.js.map} +0 -0
- /package/dist/{chunk-SOCNWQMX.js.map → chunk-TEMAM5ET.js.map} +0 -0
- /package/dist/{chunk-CH2NWSES.js.map → chunk-TIV6M7Q7.js.map} +0 -0
- /package/dist/{chunk-6XNYYROM.js.map → chunk-WVEDW5VO.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -436,7 +436,7 @@ declare function ReadGate({ read, status: statusProp, error: errorProp, what: wh
|
|
|
436
436
|
loading?: ReactNode;
|
|
437
437
|
onRetry?: (() => void) | undefined;
|
|
438
438
|
children: ReactNode;
|
|
439
|
-
}): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined
|
|
439
|
+
}): string | number | bigint | boolean | React$1.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined>;
|
|
440
440
|
/**
|
|
441
441
|
* A list primitive's EMPTY branch (RC-B12 round 13): the failure while its read
|
|
442
442
|
* failed, the wait while it loads, and the primitive's own empty view only
|
|
@@ -657,8 +657,8 @@ declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<AlertDia
|
|
|
657
657
|
declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
658
658
|
|
|
659
659
|
declare const buttonVariants: (props?: ({
|
|
660
|
-
variant?: "
|
|
661
|
-
size?: "
|
|
660
|
+
variant?: "default" | "secondary" | "destructive" | "outline" | "success" | "link" | "primary" | "ghost" | "subtle" | null | undefined;
|
|
661
|
+
size?: "default" | "sm" | "md" | "xs" | "lg" | "xl" | "2xl" | "3xl" | "icon" | "icon-sm" | "roundIcon" | null | undefined;
|
|
662
662
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
663
663
|
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
664
664
|
asChild?: boolean;
|
|
@@ -2362,7 +2362,7 @@ declare const Select: React$1.FC<SelectPrimitive.SelectProps>;
|
|
|
2362
2362
|
declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2363
2363
|
declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
2364
2364
|
declare const selectTriggerVariants: (props?: ({
|
|
2365
|
-
size?: "
|
|
2365
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
2366
2366
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2367
2367
|
/**
|
|
2368
2368
|
* THE ONE DROPDOWN CHEVRON (page-pass 2026-09-27, /crm/<id>). Pickers drew three
|
|
@@ -2758,7 +2758,7 @@ declare function SidebarMenu({ className, ...props }: React$1.ComponentProps<"ul
|
|
|
2758
2758
|
declare function SidebarMenuItem({ className, ...props }: React$1.ComponentProps<"li">): React$1.JSX.Element;
|
|
2759
2759
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
2760
2760
|
variant?: "default" | "outline" | null | undefined;
|
|
2761
|
-
size?: "
|
|
2761
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
2762
2762
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2763
2763
|
declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, ...props }: React$1.ComponentProps<"button"> & {
|
|
2764
2764
|
asChild?: boolean;
|
|
@@ -4647,8 +4647,8 @@ declare const ResizableHandle: {
|
|
|
4647
4647
|
};
|
|
4648
4648
|
|
|
4649
4649
|
declare const toggleVariants: (props?: ({
|
|
4650
|
-
variant?: "
|
|
4651
|
-
size?: "
|
|
4650
|
+
variant?: "default" | "outline" | "switch" | null | undefined;
|
|
4651
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
4652
4652
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
4653
4653
|
interface ToggleProps extends React$1.ComponentPropsWithoutRef<typeof TogglePrimitive.Root>, VariantProps<typeof toggleVariants> {
|
|
4654
4654
|
}
|
|
@@ -5417,8 +5417,8 @@ type AdvancedTooltipProps = {
|
|
|
5417
5417
|
disabled?: boolean;
|
|
5418
5418
|
variant?: "default" | "error" | "warning" | "success";
|
|
5419
5419
|
};
|
|
5420
|
-
declare const SimpleTooltip: ({ children, text }: SimpleTooltipProps) => string | number | bigint | boolean | Iterable<React__default.ReactNode> | Promise<string | number | bigint | boolean | React__default.ReactPortal | React__default.ReactElement<unknown, string | React__default.JSXElementConstructor<any>> | Iterable<React__default.ReactNode> | null | undefined> |
|
|
5421
|
-
declare const AdvancedTooltip: ({ children, text, side, align, delayDuration, className, sideOffset, contentClassName, disabled, variant, }: AdvancedTooltipProps) => string | number | bigint | boolean | Iterable<React__default.ReactNode> | Promise<string | number | bigint | boolean | React__default.ReactPortal | React__default.ReactElement<unknown, string | React__default.JSXElementConstructor<any>> | Iterable<React__default.ReactNode> | null | undefined> |
|
|
5420
|
+
declare const SimpleTooltip: ({ children, text }: SimpleTooltipProps) => string | number | bigint | boolean | React__default.JSX.Element | Iterable<React__default.ReactNode> | Promise<string | number | bigint | boolean | React__default.ReactPortal | React__default.ReactElement<unknown, string | React__default.JSXElementConstructor<any>> | Iterable<React__default.ReactNode> | null | undefined> | null | undefined;
|
|
5421
|
+
declare const AdvancedTooltip: ({ children, text, side, align, delayDuration, className, sideOffset, contentClassName, disabled, variant, }: AdvancedTooltipProps) => string | number | bigint | boolean | React__default.JSX.Element | Iterable<React__default.ReactNode> | Promise<string | number | bigint | boolean | React__default.ReactPortal | React__default.ReactElement<unknown, string | React__default.JSXElementConstructor<any>> | Iterable<React__default.ReactNode> | null | undefined> | null | undefined;
|
|
5422
5422
|
|
|
5423
5423
|
type LoadingVariant = 'dots' | 'bars' | 'brain' | 'minimal' | 'workflow';
|
|
5424
5424
|
type LoadingSize = 'sm' | 'md' | 'lg';
|
package/dist/index.d.ts
CHANGED
|
@@ -436,7 +436,7 @@ declare function ReadGate({ read, status: statusProp, error: errorProp, what: wh
|
|
|
436
436
|
loading?: ReactNode;
|
|
437
437
|
onRetry?: (() => void) | undefined;
|
|
438
438
|
children: ReactNode;
|
|
439
|
-
}): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined
|
|
439
|
+
}): string | number | bigint | boolean | React$1.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined>;
|
|
440
440
|
/**
|
|
441
441
|
* A list primitive's EMPTY branch (RC-B12 round 13): the failure while its read
|
|
442
442
|
* failed, the wait while it loads, and the primitive's own empty view only
|
|
@@ -657,8 +657,8 @@ declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<AlertDia
|
|
|
657
657
|
declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
658
658
|
|
|
659
659
|
declare const buttonVariants: (props?: ({
|
|
660
|
-
variant?: "
|
|
661
|
-
size?: "
|
|
660
|
+
variant?: "default" | "secondary" | "destructive" | "outline" | "success" | "link" | "primary" | "ghost" | "subtle" | null | undefined;
|
|
661
|
+
size?: "default" | "sm" | "md" | "xs" | "lg" | "xl" | "2xl" | "3xl" | "icon" | "icon-sm" | "roundIcon" | null | undefined;
|
|
662
662
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
663
663
|
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
664
664
|
asChild?: boolean;
|
|
@@ -2362,7 +2362,7 @@ declare const Select: React$1.FC<SelectPrimitive.SelectProps>;
|
|
|
2362
2362
|
declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2363
2363
|
declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
2364
2364
|
declare const selectTriggerVariants: (props?: ({
|
|
2365
|
-
size?: "
|
|
2365
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
2366
2366
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2367
2367
|
/**
|
|
2368
2368
|
* THE ONE DROPDOWN CHEVRON (page-pass 2026-09-27, /crm/<id>). Pickers drew three
|
|
@@ -2758,7 +2758,7 @@ declare function SidebarMenu({ className, ...props }: React$1.ComponentProps<"ul
|
|
|
2758
2758
|
declare function SidebarMenuItem({ className, ...props }: React$1.ComponentProps<"li">): React$1.JSX.Element;
|
|
2759
2759
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
2760
2760
|
variant?: "default" | "outline" | null | undefined;
|
|
2761
|
-
size?: "
|
|
2761
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
2762
2762
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2763
2763
|
declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, ...props }: React$1.ComponentProps<"button"> & {
|
|
2764
2764
|
asChild?: boolean;
|
|
@@ -4647,8 +4647,8 @@ declare const ResizableHandle: {
|
|
|
4647
4647
|
};
|
|
4648
4648
|
|
|
4649
4649
|
declare const toggleVariants: (props?: ({
|
|
4650
|
-
variant?: "
|
|
4651
|
-
size?: "
|
|
4650
|
+
variant?: "default" | "outline" | "switch" | null | undefined;
|
|
4651
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
4652
4652
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
4653
4653
|
interface ToggleProps extends React$1.ComponentPropsWithoutRef<typeof TogglePrimitive.Root>, VariantProps<typeof toggleVariants> {
|
|
4654
4654
|
}
|
|
@@ -5417,8 +5417,8 @@ type AdvancedTooltipProps = {
|
|
|
5417
5417
|
disabled?: boolean;
|
|
5418
5418
|
variant?: "default" | "error" | "warning" | "success";
|
|
5419
5419
|
};
|
|
5420
|
-
declare const SimpleTooltip: ({ children, text }: SimpleTooltipProps) => string | number | bigint | boolean | Iterable<React__default.ReactNode> | Promise<string | number | bigint | boolean | React__default.ReactPortal | React__default.ReactElement<unknown, string | React__default.JSXElementConstructor<any>> | Iterable<React__default.ReactNode> | null | undefined> |
|
|
5421
|
-
declare const AdvancedTooltip: ({ children, text, side, align, delayDuration, className, sideOffset, contentClassName, disabled, variant, }: AdvancedTooltipProps) => string | number | bigint | boolean | Iterable<React__default.ReactNode> | Promise<string | number | bigint | boolean | React__default.ReactPortal | React__default.ReactElement<unknown, string | React__default.JSXElementConstructor<any>> | Iterable<React__default.ReactNode> | null | undefined> |
|
|
5420
|
+
declare const SimpleTooltip: ({ children, text }: SimpleTooltipProps) => string | number | bigint | boolean | React__default.JSX.Element | Iterable<React__default.ReactNode> | Promise<string | number | bigint | boolean | React__default.ReactPortal | React__default.ReactElement<unknown, string | React__default.JSXElementConstructor<any>> | Iterable<React__default.ReactNode> | null | undefined> | null | undefined;
|
|
5421
|
+
declare const AdvancedTooltip: ({ children, text, side, align, delayDuration, className, sideOffset, contentClassName, disabled, variant, }: AdvancedTooltipProps) => string | number | bigint | boolean | React__default.JSX.Element | Iterable<React__default.ReactNode> | Promise<string | number | bigint | boolean | React__default.ReactPortal | React__default.ReactElement<unknown, string | React__default.JSXElementConstructor<any>> | Iterable<React__default.ReactNode> | null | undefined> | null | undefined;
|
|
5422
5422
|
|
|
5423
5423
|
type LoadingVariant = 'dots' | 'bars' | 'brain' | 'minimal' | 'workflow';
|
|
5424
5424
|
type LoadingSize = 'sm' | 'md' | 'lg';
|
package/dist/index.js
CHANGED
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
matchesOrganizationQuery,
|
|
26
26
|
orderOrganizationsForPicker,
|
|
27
27
|
organizationColor
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-K5ZQROWN.js";
|
|
29
29
|
import {
|
|
30
30
|
EditableLabel
|
|
31
31
|
} from "./chunk-J6637L6D.js";
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
countReadState,
|
|
51
51
|
indicatorText,
|
|
52
52
|
unavailableCountLabel
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-K3XWUACX.js";
|
|
54
54
|
import {
|
|
55
55
|
Collapsible,
|
|
56
56
|
CollapsibleContent,
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
resolveSiteIcon,
|
|
69
69
|
siteHostname
|
|
70
70
|
} from "./chunk-ZCRPESQX.js";
|
|
71
|
-
import "./chunk-
|
|
71
|
+
import "./chunk-42GFQMLA.js";
|
|
72
72
|
import {
|
|
73
73
|
ContextMenu,
|
|
74
74
|
ContextMenuCheckboxItem,
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
} from "./chunk-HEFTQUJ5.js";
|
|
89
89
|
import {
|
|
90
90
|
MatrxTableRowAlchemyProvider
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-TIV6M7Q7.js";
|
|
92
92
|
import {
|
|
93
93
|
DragCursorMonitor
|
|
94
94
|
} from "./chunk-NR22O36P.js";
|
|
@@ -137,7 +137,7 @@ import {
|
|
|
137
137
|
EmptyState,
|
|
138
138
|
RowGroup,
|
|
139
139
|
Tile
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-QTPW44IJ.js";
|
|
141
141
|
import {
|
|
142
142
|
Drawer,
|
|
143
143
|
DrawerBody,
|
|
@@ -161,15 +161,6 @@ import {
|
|
|
161
161
|
useErrorActions,
|
|
162
162
|
useErrorCardMenus
|
|
163
163
|
} from "./chunk-5Z5GTXKL.js";
|
|
164
|
-
import {
|
|
165
|
-
FALLBACK_ERROR_SENTENCE,
|
|
166
|
-
TIMED_OUT_SENTENCE,
|
|
167
|
-
errorSentenceOf,
|
|
168
|
-
isOfflineError,
|
|
169
|
-
isRawErrorText,
|
|
170
|
-
isTimedOutError,
|
|
171
|
-
peopleErrorSentence
|
|
172
|
-
} from "./chunk-HS6GMHKZ.js";
|
|
173
164
|
import {
|
|
174
165
|
Skeleton
|
|
175
166
|
} from "./chunk-DRSBLHOF.js";
|
|
@@ -251,7 +242,7 @@ import {
|
|
|
251
242
|
useModalLayerOpen,
|
|
252
243
|
useRadixDialogModal
|
|
253
244
|
} from "./chunk-NDTDBBMM.js";
|
|
254
|
-
import "./chunk-
|
|
245
|
+
import "./chunk-CZGZV35G.js";
|
|
255
246
|
import {
|
|
256
247
|
ALCHEMY_GLYPH_PATHS,
|
|
257
248
|
ALCHEMY_GLYPH_VIEWBOX
|
|
@@ -293,7 +284,7 @@ import {
|
|
|
293
284
|
TableHeader,
|
|
294
285
|
TableRow,
|
|
295
286
|
useTableSize
|
|
296
|
-
} from "./chunk-
|
|
287
|
+
} from "./chunk-NFJ63LIH.js";
|
|
297
288
|
import {
|
|
298
289
|
getTapTargetLinkComponent,
|
|
299
290
|
setTapTargetLinkComponent
|
|
@@ -311,14 +302,14 @@ import {
|
|
|
311
302
|
RecordId,
|
|
312
303
|
displayId,
|
|
313
304
|
isRecordUuid
|
|
314
|
-
} from "./chunk-
|
|
305
|
+
} from "./chunk-KSCSH7AO.js";
|
|
315
306
|
import {
|
|
316
307
|
Badge,
|
|
317
308
|
Button as Button2,
|
|
318
309
|
Chip,
|
|
319
310
|
ChipSet,
|
|
320
311
|
Switch
|
|
321
|
-
} from "./chunk-
|
|
312
|
+
} from "./chunk-WVEDW5VO.js";
|
|
322
313
|
import {
|
|
323
314
|
BasicTextarea,
|
|
324
315
|
Textarea,
|
|
@@ -351,15 +342,24 @@ import {
|
|
|
351
342
|
DropdownMenuSubContent,
|
|
352
343
|
DropdownMenuSubTrigger,
|
|
353
344
|
DropdownMenuTrigger
|
|
354
|
-
} from "./chunk-
|
|
345
|
+
} from "./chunk-T57DLONB.js";
|
|
355
346
|
import {
|
|
356
347
|
useScrollFade
|
|
357
348
|
} from "./chunk-BNXNIN2S.js";
|
|
349
|
+
import {
|
|
350
|
+
FALLBACK_ERROR_SENTENCE,
|
|
351
|
+
TIMED_OUT_SENTENCE,
|
|
352
|
+
errorSentenceOf,
|
|
353
|
+
isOfflineError,
|
|
354
|
+
isRawErrorText,
|
|
355
|
+
isTimedOutError,
|
|
356
|
+
peopleErrorSentence
|
|
357
|
+
} from "./chunk-HS6GMHKZ.js";
|
|
358
358
|
import "./chunk-ORXB4A5E.js";
|
|
359
359
|
import {
|
|
360
360
|
useMatrxDataTableHost,
|
|
361
361
|
useMatrxTableRowAlchemy
|
|
362
|
-
} from "./chunk-
|
|
362
|
+
} from "./chunk-B5D3VIMC.js";
|
|
363
363
|
import "./chunk-4JAYMFQO.js";
|
|
364
364
|
import {
|
|
365
365
|
Select,
|
package/dist/item.cjs
CHANGED
|
@@ -600,7 +600,7 @@ var DropdownMenuSubTrigger = React6.forwardRef(({ className, inset, children, ..
|
|
|
600
600
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
601
601
|
var DropdownMenuSubContent = React6.forwardRef(({ className, container, surface = "default", sideOffset = 2, alignOffset = -4, collisionPadding, onFocusOutside, children, ...props }, ref) => {
|
|
602
602
|
const portalContainer = usePortalContainer(container);
|
|
603
|
-
const [bottomClearance] = React6.useState(
|
|
603
|
+
const [bottomClearance] = React6.useState(sharedBottomClearance);
|
|
604
604
|
const padding = menuCollisionPadding(collisionPadding ?? 8, 0, bottomClearance);
|
|
605
605
|
const nested = useNestedSubmenuPlacement(ref, padding);
|
|
606
606
|
const keep = useSubmenuSurvivesParentPanelFocus(nested.ref, onFocusOutside);
|
|
@@ -622,18 +622,27 @@ var DropdownMenuSubContent = React6.forwardRef(({ className, container, surface
|
|
|
622
622
|
) });
|
|
623
623
|
});
|
|
624
624
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
625
|
-
function readTopClearance() {
|
|
626
|
-
return readClearance("var(--matrx-floating-top-clearance, var(--shell-header-h, 0px))");
|
|
627
|
-
}
|
|
628
|
-
function readBottomClearance() {
|
|
629
|
-
return readClearance("var(--matrx-floating-clearance, 0px)");
|
|
630
|
-
}
|
|
631
625
|
function menuCollisionPadding(caller, top, bottom, fallback = 0) {
|
|
632
626
|
const side = (key) => typeof caller === "number" ? caller : caller?.[key] ?? fallback;
|
|
633
627
|
return { top: Math.max(side("top"), top), right: side("right"), bottom: Math.max(side("bottom"), bottom), left: side("left") };
|
|
634
628
|
}
|
|
635
|
-
|
|
629
|
+
var CLEARANCE_REUSE_MS = 500;
|
|
630
|
+
var clearanceCache = /* @__PURE__ */ new Map();
|
|
631
|
+
var clock = () => typeof performance !== "undefined" ? performance.now() : Date.now();
|
|
632
|
+
function readClearance(height, shared = false) {
|
|
636
633
|
if (typeof document === "undefined") return 0;
|
|
634
|
+
const now = clock();
|
|
635
|
+
const held = shared ? clearanceCache.get(height) : void 0;
|
|
636
|
+
if (held && now - held.at < CLEARANCE_REUSE_MS) return held.px;
|
|
637
|
+
const px = measureClearance(height);
|
|
638
|
+
clearanceCache.set(height, { px, at: now });
|
|
639
|
+
return px;
|
|
640
|
+
}
|
|
641
|
+
var TOP_CLEARANCE = "var(--matrx-floating-top-clearance, var(--shell-header-h, 0px))";
|
|
642
|
+
var BOTTOM_CLEARANCE = "var(--matrx-floating-clearance, 0px)";
|
|
643
|
+
var sharedTopClearance = () => readClearance(TOP_CLEARANCE, true);
|
|
644
|
+
var sharedBottomClearance = () => readClearance(BOTTOM_CLEARANCE, true);
|
|
645
|
+
function measureClearance(height) {
|
|
637
646
|
const probe = document.createElement("div");
|
|
638
647
|
probe.style.cssText = `position:fixed;top:0;left:0;width:0;visibility:hidden;pointer-events:none;height:${height}`;
|
|
639
648
|
document.body.appendChild(probe);
|
|
@@ -643,8 +652,8 @@ function readClearance(height) {
|
|
|
643
652
|
}
|
|
644
653
|
var DropdownMenuContent = React6.forwardRef(({ className, sideOffset = 4, container, surface = "default", children, onCloseAutoFocus, collisionPadding, ...props }, ref) => {
|
|
645
654
|
const portalContainer = usePortalContainer(container);
|
|
646
|
-
const [topClearance] = React6.useState(
|
|
647
|
-
const [bottomClearance] = React6.useState(
|
|
655
|
+
const [topClearance] = React6.useState(sharedTopClearance);
|
|
656
|
+
const [bottomClearance] = React6.useState(sharedBottomClearance);
|
|
648
657
|
const edges = useMenuScrollEdges(ref);
|
|
649
658
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DropdownMenuPrimitive.Portal, { container: portalContainer, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
650
659
|
DropdownMenuPrimitive.Content,
|