@vireo-ai/trellis-ui 0.1.39 → 0.1.40
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/package.json +1 -1
- package/packages/client/src/components/data-grid/styles.css +73 -0
- package/packages/client/src/components/select/styles.css +14 -0
- package/packages/client/src/styles/components.css +1 -0
- package/packages/client/src/styles/generated-sources.css +1 -1
- package/packages/client/types/assets/full-runtime.generated.d.ts +1 -1
- package/packages/client/types/components/badge/contract.d.ts +1 -1
- package/packages/client/types/components/button/contract.d.ts +1 -1
- package/packages/client/types/components/card/contract.d.ts +2 -2
- package/packages/client/types/components/checkbox/contract.d.ts +6 -6
- package/packages/client/types/components/data-grid/contract.d.ts +107 -0
- package/packages/client/types/components/data-grid/entry.generated.d.ts +5 -0
- package/packages/client/types/components/data-grid/index.d.ts +34 -0
- package/packages/client/types/components/data-grid/model.d.ts +43 -0
- package/packages/client/types/components/data-grid/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/date-picker/contract.d.ts +1 -1
- package/packages/client/types/components/date-picker/machine.d.ts +2 -2
- package/packages/client/types/components/entry.generated.d.ts +1 -0
- package/packages/client/types/components/menu/contract.d.ts +1 -1
- package/packages/client/types/components/radio/contract.d.ts +4 -4
- package/packages/client/types/components/runtime.d.ts +3 -0
- package/packages/client/types/components/select/contract.d.ts +10 -1
- package/packages/client/types/components/select/machine.d.ts +20 -2
- package/packages/client/types/components/sidebar/contract.d.ts +1 -1
- package/packages/client/types/components/table/contract.d.ts +3 -3
- package/packages/client/types/components/toast/contract.d.ts +1 -1
- package/packages/client/types/components/toast/machine.d.ts +1 -1
- package/packages/client/types/directives/sortable.d.ts +6 -0
- package/packages/client/types/runtime/drag-and-drop/sortable/contract.d.ts +6 -1
- package/packages/client/types/runtime/drag-and-drop/sortable/ghost.d.ts +5 -2
- package/packages/client/types/runtime/index.d.ts +1 -0
- package/packages/client/types/runtime/virtualizer-fragment.d.ts +14 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/css/trellis.css +82 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/css/trellis.min.css +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/build-metadata.json +156 -112
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/capabilities/resizable.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/capabilities/sortable.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/capability-resizable-Bga8TngJ.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{capability-resizable-C6LKIbpv.js.map → capability-resizable-Bga8TngJ.js.map} +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/capability-sortable-BU1g9uTC.js +3 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/capability-sortable-BU1g9uTC.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{drag-and-drop-BV6kB47L.js → drag-and-drop-DHq3udf7.js} +2 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{drag-and-drop-BV6kB47L.js.map → drag-and-drop-DHq3udf7.js.map} +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-B2rTvkxi.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-B2rTvkxi.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-C35Q-qoz.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-C35Q-qoz.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-DI48yD0K.js → entry.generated-C7Kas-N2.js} +2 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-DI48yD0K.js.map → entry.generated-C7Kas-N2.js.map} +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-DvAia1Wz.js → entry.generated-Cc5mRBBS.js} +2 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-DvAia1Wz.js.map → entry.generated-Cc5mRBBS.js.map} +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry2.generated-BhPEF6oz.js → entry.generated-QspMEPHx.js} +2 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-QspMEPHx.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry2.generated-C5DAZC4R.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry2.generated-C5DAZC4R.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/virtual-window-BHdOw3Pi.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/virtual-window-BHdOw3Pi.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/data-grid.js +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/index.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/index.js.map +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/panels.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/select.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/sidebar.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/table.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/virtualizer.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/index.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/index.js.map +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/logical-entry-manifest.json +61 -33
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/trellis.js +9 -9
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/trellis.min.js +9 -9
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/capability-resizable-C6LKIbpv.js +0 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/capability-sortable-l7SPMutG.js +0 -3
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/capability-sortable-l7SPMutG.js.map +0 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-Bsennsyl.js +0 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-Bsennsyl.js.map +0 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DuNS3MYH.js +0 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DuNS3MYH.js.map +0 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry2.generated-BhPEF6oz.js.map +0 -1
|
@@ -71,6 +71,15 @@ declare const selectHooks: readonly [{
|
|
|
71
71
|
mode: import("../../runtime/codecs").OneOfCodec<"native" | "listbox" | "combobox" | "pillbox">;
|
|
72
72
|
multiple: import("../../runtime/codecs").BoolCodec;
|
|
73
73
|
searchable: import("../../runtime/codecs").BoolCodec;
|
|
74
|
+
virtualized: import("../../runtime/codecs").BoolCodec;
|
|
75
|
+
optionsFetchUrl: import("../../runtime/codecs").StringCodec;
|
|
76
|
+
optionsTotalItems: import("../../runtime/codecs").NumberCodec;
|
|
77
|
+
optionItemSize: import("../../runtime/codecs").NumberCodec;
|
|
78
|
+
optionBufferSize: import("../../runtime/codecs").NumberCodec;
|
|
79
|
+
optionOverscan: import("../../runtime/codecs").NumberCodec;
|
|
80
|
+
optionSearchParam: import("../../runtime/codecs").StringCodec;
|
|
81
|
+
optionSearchDebounce: import("../../runtime/codecs").NumberCodec;
|
|
82
|
+
selectedLabelMap: import("../../runtime/codecs").JsonCodec<Record<string, string>>;
|
|
74
83
|
creatable: import("../../runtime/codecs").BoolCodec;
|
|
75
84
|
filter: import("../../runtime/codecs").BoolCodec;
|
|
76
85
|
clearable: import("../../runtime/codecs").BoolCodec;
|
|
@@ -103,7 +112,7 @@ declare const selectHooks: readonly [{
|
|
|
103
112
|
listboxClass: import("../../runtime/codecs").StringCodec;
|
|
104
113
|
optionClass: import("../../runtime/codecs").StringCodec;
|
|
105
114
|
chipVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "soft" | "surface">;
|
|
106
|
-
chipColor: import("../../runtime/codecs").OneOfCodec<"
|
|
115
|
+
chipColor: import("../../runtime/codecs").OneOfCodec<"neutral" | "accent" | "danger" | "success" | "warning">;
|
|
107
116
|
chipClass: import("../../runtime/codecs").StringCodec;
|
|
108
117
|
class: import("../../runtime/codecs").StringCodec;
|
|
109
118
|
}>>;
|
|
@@ -139,6 +148,15 @@ declare const selectHooks: readonly [{
|
|
|
139
148
|
mode: import("../../runtime/codecs").OneOfCodec<"native" | "listbox" | "combobox" | "pillbox">;
|
|
140
149
|
multiple: import("../../runtime/codecs").BoolCodec;
|
|
141
150
|
searchable: import("../../runtime/codecs").BoolCodec;
|
|
151
|
+
virtualized: import("../../runtime/codecs").BoolCodec;
|
|
152
|
+
optionsFetchUrl: import("../../runtime/codecs").StringCodec;
|
|
153
|
+
optionsTotalItems: import("../../runtime/codecs").NumberCodec;
|
|
154
|
+
optionItemSize: import("../../runtime/codecs").NumberCodec;
|
|
155
|
+
optionBufferSize: import("../../runtime/codecs").NumberCodec;
|
|
156
|
+
optionOverscan: import("../../runtime/codecs").NumberCodec;
|
|
157
|
+
optionSearchParam: import("../../runtime/codecs").StringCodec;
|
|
158
|
+
optionSearchDebounce: import("../../runtime/codecs").NumberCodec;
|
|
159
|
+
selectedLabelMap: import("../../runtime/codecs").JsonCodec<Record<string, string>>;
|
|
142
160
|
creatable: import("../../runtime/codecs").BoolCodec;
|
|
143
161
|
filter: import("../../runtime/codecs").BoolCodec;
|
|
144
162
|
clearable: import("../../runtime/codecs").BoolCodec;
|
|
@@ -171,7 +189,7 @@ declare const selectHooks: readonly [{
|
|
|
171
189
|
listboxClass: import("../../runtime/codecs").StringCodec;
|
|
172
190
|
optionClass: import("../../runtime/codecs").StringCodec;
|
|
173
191
|
chipVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "soft" | "surface">;
|
|
174
|
-
chipColor: import("../../runtime/codecs").OneOfCodec<"
|
|
192
|
+
chipColor: import("../../runtime/codecs").OneOfCodec<"neutral" | "accent" | "danger" | "success" | "warning">;
|
|
175
193
|
chipClass: import("../../runtime/codecs").StringCodec;
|
|
176
194
|
class: import("../../runtime/codecs").StringCodec;
|
|
177
195
|
}>>;
|
|
@@ -29,7 +29,7 @@ declare const sidebarSchema: {
|
|
|
29
29
|
declare const sidebarItemSchema: {
|
|
30
30
|
as: import("../../runtime/codecs").OneOfCodec<"a" | "button">;
|
|
31
31
|
variant: import("../../runtime/codecs").OneOfCodec<"ghost" | "surface">;
|
|
32
|
-
color: import("../../runtime/codecs").OneOfCodec<"
|
|
32
|
+
color: import("../../runtime/codecs").OneOfCodec<"neutral" | "accent">;
|
|
33
33
|
href: import("../../runtime/codecs").StringCodec;
|
|
34
34
|
current: import("../../runtime/codecs").BoolCodec;
|
|
35
35
|
disabled: import("../../runtime/codecs").BoolCodec;
|
|
@@ -40,7 +40,7 @@ declare const tableRowSchema: {
|
|
|
40
40
|
};
|
|
41
41
|
declare const tableColumnSchema: {
|
|
42
42
|
align: import("../../runtime/codecs").OneOfCodec<"end" | "center" | "start">;
|
|
43
|
-
valign: import("../../runtime/codecs").OneOfCodec<"bottom" | "top" | "
|
|
43
|
+
valign: import("../../runtime/codecs").OneOfCodec<"bottom" | "top" | "baseline" | "middle">;
|
|
44
44
|
key: import("../../runtime/codecs").StringCodec;
|
|
45
45
|
target: import("../../runtime/codecs").StringCodec;
|
|
46
46
|
width: import("../../runtime/codecs").StringCodec;
|
|
@@ -62,13 +62,13 @@ declare const tableColumnFilterSchema: {
|
|
|
62
62
|
};
|
|
63
63
|
declare const tableRowHeaderSchema: {
|
|
64
64
|
align: import("../../runtime/codecs").OneOfCodec<"end" | "center" | "start">;
|
|
65
|
-
valign: import("../../runtime/codecs").OneOfCodec<"bottom" | "top" | "
|
|
65
|
+
valign: import("../../runtime/codecs").OneOfCodec<"bottom" | "top" | "baseline" | "middle">;
|
|
66
66
|
scope: import("../../runtime/codecs").OneOfCodec<"row" | "rowgroup">;
|
|
67
67
|
class: import("../../runtime/codecs").StringCodec;
|
|
68
68
|
};
|
|
69
69
|
declare const tableCellSchema: {
|
|
70
70
|
align: import("../../runtime/codecs").OneOfCodec<"end" | "center" | "start">;
|
|
71
|
-
valign: import("../../runtime/codecs").OneOfCodec<"bottom" | "top" | "
|
|
71
|
+
valign: import("../../runtime/codecs").OneOfCodec<"bottom" | "top" | "baseline" | "middle">;
|
|
72
72
|
class: import("../../runtime/codecs").StringCodec;
|
|
73
73
|
};
|
|
74
74
|
declare const tableEmptySchema: {
|
|
@@ -6,7 +6,7 @@ declare const TOAST_VARIANTS: readonly ["default", "soft", "surface", "solid", "
|
|
|
6
6
|
declare const TOAST_POSITIONS: readonly ["top-right", "top-left", "top-center", "bottom-right", "bottom-left", "bottom-center"];
|
|
7
7
|
declare const toastSchema: {
|
|
8
8
|
level: import("../../runtime/codecs").OneOfCodec<"danger" | "success" | "warning" | "info" | "debug">;
|
|
9
|
-
color: import("../../runtime/codecs").OneOfCodec<"auto" | "
|
|
9
|
+
color: import("../../runtime/codecs").OneOfCodec<"auto" | "neutral" | "accent" | "danger" | "success" | "warning">;
|
|
10
10
|
variant: import("../../runtime/codecs").OneOfCodec<"outline" | "default" | "solid" | "soft" | "surface">;
|
|
11
11
|
title: import("../../runtime/codecs").StringCodec;
|
|
12
12
|
description: import("../../runtime/codecs").StringCodec;
|
|
@@ -34,7 +34,7 @@ declare const toastHooks: readonly [{
|
|
|
34
34
|
context: Readonly<ToastContext>;
|
|
35
35
|
props: Readonly<import("../..").SchemaToProps<{
|
|
36
36
|
level: import("../../runtime/codecs").OneOfCodec<"danger" | "success" | "warning" | "info" | "debug">;
|
|
37
|
-
color: import("../../runtime/codecs").OneOfCodec<"auto" | "
|
|
37
|
+
color: import("../../runtime/codecs").OneOfCodec<"auto" | "neutral" | "accent" | "danger" | "success" | "warning">;
|
|
38
38
|
variant: import("../../runtime/codecs").OneOfCodec<"outline" | "default" | "solid" | "soft" | "surface">;
|
|
39
39
|
title: import("../../runtime/codecs").StringCodec;
|
|
40
40
|
description: import("../../runtime/codecs").StringCodec;
|
|
@@ -11,6 +11,9 @@ declare const groupSchema: {
|
|
|
11
11
|
sourceOpacity: import("../runtime/codecs").NumberCodec;
|
|
12
12
|
ghostOpacity: import("../runtime/codecs").NumberCodec;
|
|
13
13
|
dragCursor: import("../runtime/codecs").StringCodec;
|
|
14
|
+
previewPosition: import("../runtime/codecs").StringCodec;
|
|
15
|
+
color: import("../runtime/codecs").OneOfCodec<"neutral" | "accent">;
|
|
16
|
+
interaction: import("../runtime/codecs").OneOfCodec<"tonal" | "edge" | "combined">;
|
|
14
17
|
label: import("../runtime/codecs").StringCodec;
|
|
15
18
|
sortableData: import("../runtime/codecs").JsonCodec<Record<string, unknown>>;
|
|
16
19
|
};
|
|
@@ -24,6 +27,9 @@ declare const sourceSchema: {
|
|
|
24
27
|
sourceOpacity: import("../runtime/codecs").NumberCodec;
|
|
25
28
|
ghostOpacity: import("../runtime/codecs").NumberCodec;
|
|
26
29
|
dragCursor: import("../runtime/codecs").StringCodec;
|
|
30
|
+
previewPosition: import("../runtime/codecs").StringCodec;
|
|
31
|
+
color: import("../runtime/codecs").OneOfCodec<"neutral" | "accent">;
|
|
32
|
+
interaction: import("../runtime/codecs").OneOfCodec<"tonal" | "edge" | "combined">;
|
|
27
33
|
};
|
|
28
34
|
declare const registerSortableDirective: (AlpineInstance: Alpine.Alpine) => void;
|
|
29
35
|
export { groupSchema, registerSortableDirective, sourceSchema };
|
|
@@ -2,6 +2,8 @@ type SortableOperation = 'insert' | 'move';
|
|
|
2
2
|
type SortableCancelReason = 'escape' | 'outside' | 'disabled' | 'removed';
|
|
3
3
|
type SortableOrientation = 'vertical' | 'horizontal' | 'grid';
|
|
4
4
|
type SortableFeedback = 'indicator' | 'reorder';
|
|
5
|
+
type SortableColor = 'neutral' | 'accent';
|
|
6
|
+
type SortableInteraction = 'tonal' | 'edge' | 'combined';
|
|
5
7
|
type SortableEdge = 'before' | 'after';
|
|
6
8
|
type SortableDirection = 'ltr' | 'rtl';
|
|
7
9
|
type SortableFrame = Readonly<{
|
|
@@ -74,6 +76,9 @@ type SortableGroup = Readonly<{
|
|
|
74
76
|
sourceOpacity: number;
|
|
75
77
|
ghostOpacity: number;
|
|
76
78
|
dragCursor: string;
|
|
79
|
+
previewPosition: string;
|
|
80
|
+
color: SortableColor;
|
|
81
|
+
interaction: SortableInteraction;
|
|
77
82
|
data?: Readonly<Record<string, unknown>>;
|
|
78
83
|
label?: string;
|
|
79
84
|
}>;
|
|
@@ -129,5 +134,5 @@ type ResolveSortablePlacementOptions = Readonly<{
|
|
|
129
134
|
items: readonly SortableItemGeometry[];
|
|
130
135
|
input: SortableInput;
|
|
131
136
|
}>;
|
|
132
|
-
export type { ResolveSortablePlacementOptions, SortableAnchor, SortableCancelReason, SortableCanDropContext, SortableDirection, SortableDragDetail, SortableEdge, SortableFeedback, SortableFrame, SortableGroup, SortableDropDetail, SortableInput, SortableInsertSource, SortableItemGeometry, SortableOperation, SortableOrientation, SortablePlacement, SortableMoveSource, SortableSource, SortableMoveOptions, SortableMoveRelativeOptions, UiSortableService, };
|
|
137
|
+
export type { ResolveSortablePlacementOptions, SortableAnchor, SortableCancelReason, SortableColor, SortableCanDropContext, SortableDirection, SortableDragDetail, SortableEdge, SortableFeedback, SortableFrame, SortableGroup, SortableDropDetail, SortableInput, SortableInteraction, SortableInsertSource, SortableItemGeometry, SortableOperation, SortableOrientation, SortablePlacement, SortableMoveSource, SortableSource, SortableMoveOptions, SortableMoveRelativeOptions, UiSortableService, };
|
|
133
138
|
export { isValidGridColumns };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SortableInput } from './contract';
|
|
1
|
+
import type { SortableColor, SortableInput, SortableInteraction } from './contract';
|
|
2
2
|
type ManagedGhostFrame = Readonly<{
|
|
3
3
|
x: number;
|
|
4
4
|
y: number;
|
|
@@ -27,18 +27,21 @@ type SortableGhost = Readonly<{
|
|
|
27
27
|
visual: HTMLElement;
|
|
28
28
|
frame(): ManagedGhostFrame;
|
|
29
29
|
projectedFrame(input: SortableInput): ManagedGhostFrame;
|
|
30
|
+
projectedSourceFrame(input: SortableInput): ManagedGhostFrame;
|
|
30
31
|
move(input: SortableInput): void;
|
|
31
32
|
finish(to: ManagedGhostFrame | null): Promise<void>;
|
|
32
33
|
remove(): void;
|
|
33
34
|
}>;
|
|
34
35
|
declare const sanitizeClone: (root: HTMLElement) => void;
|
|
35
36
|
declare const frameFromRect: (rect: DOMRect | DOMRectReadOnly) => ManagedGhostFrame;
|
|
36
|
-
declare const createSortableGhost: ({ source, input, preview, previewPosition, opacity }: {
|
|
37
|
+
declare const createSortableGhost: ({ source, input, preview, previewPosition, opacity, color, interaction, }: {
|
|
37
38
|
source: HTMLElement;
|
|
38
39
|
input: SortableInput;
|
|
39
40
|
preview?: HTMLTemplateElement | null;
|
|
40
41
|
previewPosition?: string;
|
|
41
42
|
opacity?: number;
|
|
43
|
+
color?: SortableColor;
|
|
44
|
+
interaction?: SortableInteraction;
|
|
42
45
|
}) => SortableGhost;
|
|
43
46
|
export { createSortableGhost, frameFromRect, resolveSortablePreviewPosition, sanitizeClone };
|
|
44
47
|
export type { ManagedGhostFrame, SortableGhost, SortablePreviewPositionOptions };
|
|
@@ -15,6 +15,7 @@ export { dispatchNativeControlChange, syncControlPresence, syncNativeControl, sy
|
|
|
15
15
|
export { FOCUSABLE_SELECTOR, closestFocusable, focusFirst, focusableElements, isFocusable, trapFocus } from './focus-scope';
|
|
16
16
|
export { getPathValue, normalizeOptionText, parseItemData, splitControlValues } from './option-data';
|
|
17
17
|
export { observeSemanticChanges, type SemanticObserverOptions } from './semantic-observer';
|
|
18
|
+
export { parseVirtualizerFragmentResponse, type VirtualizerFragmentOptions, type VirtualizerFragmentPayload, } from './virtualizer-fragment';
|
|
18
19
|
export { createResizable, createSortableRegistry, registerResizable, sortable, type ResizableOptions, type ResizeAxis, type ResizeDirection, type ResizeEvent, type ResizeMode, type ResizePhase, type SortableAnchor, type SortableCancelReason, type SortableCanDropContext, type SortableDirection, type SortableDragDetail, type SortableDropDetail, type SortableEdge, type SortableFeedback, type SortableGroup, type SortableIndicatorFrame, type SortableInsertSource, type SortableMoveSource, type SortableOperation, type SortableOrientation, type SortablePlacement, type SortableReorderOffset, type SortableSource, type UiSortableService, } from './drag-and-drop';
|
|
19
20
|
export { defineManifest, propsFromSchema, type ComponentManifest, type DefineManifestOptions, type ManifestPart, type ManifestProp, type ManifestPropDetails, type ManifestToken, type PropsFromSchemaOptions, type SchemaPropDetails, } from './manifest';
|
|
20
21
|
export { defineStyles, resolveStyle, type DefineStylesOptions, type ResolveStyleOptions, type StyleDefinition, type StylePart, type StyleProps, } from './styles';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { AssetDescriptor } from '../assets/bridge';
|
|
2
|
+
type VirtualizerFragmentOptions = {
|
|
3
|
+
totalHeader: string;
|
|
4
|
+
assetsHeader: string;
|
|
5
|
+
metaSelector: string;
|
|
6
|
+
};
|
|
7
|
+
type VirtualizerFragmentPayload = {
|
|
8
|
+
html: string;
|
|
9
|
+
assets: AssetDescriptor[];
|
|
10
|
+
totalItems: number | null;
|
|
11
|
+
};
|
|
12
|
+
declare const parseVirtualizerFragmentResponse: (response: Response, options: VirtualizerFragmentOptions) => Promise<VirtualizerFragmentPayload>;
|
|
13
|
+
export { parseVirtualizerFragmentResponse };
|
|
14
|
+
export type { VirtualizerFragmentOptions, VirtualizerFragmentPayload };
|
|
@@ -1590,6 +1590,9 @@
|
|
|
1590
1590
|
.max-w-7xl {
|
|
1591
1591
|
max-width: var(--container-7xl);
|
|
1592
1592
|
}
|
|
1593
|
+
.max-w-56 {
|
|
1594
|
+
max-width: calc(var(--spacing) * 56);
|
|
1595
|
+
}
|
|
1593
1596
|
.max-w-64 {
|
|
1594
1597
|
max-width: calc(var(--spacing) * 64);
|
|
1595
1598
|
}
|
|
@@ -1653,6 +1656,9 @@
|
|
|
1653
1656
|
.min-w-full {
|
|
1654
1657
|
min-width: 100%;
|
|
1655
1658
|
}
|
|
1659
|
+
.min-w-max {
|
|
1660
|
+
min-width: max-content;
|
|
1661
|
+
}
|
|
1656
1662
|
.flex-1 {
|
|
1657
1663
|
flex: 1;
|
|
1658
1664
|
}
|
|
@@ -3434,6 +3440,9 @@
|
|
|
3434
3440
|
.px-menu-item-padding-inline {
|
|
3435
3441
|
padding-inline: var(--spacing-menu-item-padding-inline);
|
|
3436
3442
|
}
|
|
3443
|
+
.px-popover-padding {
|
|
3444
|
+
padding-inline: var(--spacing-popover-padding);
|
|
3445
|
+
}
|
|
3437
3446
|
.px-sidebar-content-padding-inline {
|
|
3438
3447
|
padding-inline: var(--spacing-sidebar-content-padding-inline);
|
|
3439
3448
|
}
|
|
@@ -4534,6 +4543,12 @@
|
|
|
4534
4543
|
background-color: var(--color-intent-neutral-edge-hover);
|
|
4535
4544
|
}
|
|
4536
4545
|
}
|
|
4546
|
+
.focus-visible\:ring-2 {
|
|
4547
|
+
&:focus-visible {
|
|
4548
|
+
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
4549
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
4550
|
+
}
|
|
4551
|
+
}
|
|
4537
4552
|
.focus-visible\:ui-focus-ring {
|
|
4538
4553
|
&:focus-visible {
|
|
4539
4554
|
box-shadow: 0 0 0 var(--color-intent-accent-focus-width) var(--color-intent-accent-focus);
|
|
@@ -4656,6 +4671,11 @@
|
|
|
4656
4671
|
background-color: var(--color-intent-neutral-edge-hover);
|
|
4657
4672
|
}
|
|
4658
4673
|
}
|
|
4674
|
+
.data-selected\:bg-interaction-selected {
|
|
4675
|
+
&[data-selected] {
|
|
4676
|
+
background-color: var(--color-interaction-selected);
|
|
4677
|
+
}
|
|
4678
|
+
}
|
|
4659
4679
|
.data-selected\:opacity-100 {
|
|
4660
4680
|
&[data-selected] {
|
|
4661
4681
|
opacity: 100%;
|
|
@@ -8898,10 +8918,68 @@
|
|
|
8898
8918
|
width: calc(100% - (var(--ui-scrollbar-inset) * 2));
|
|
8899
8919
|
}
|
|
8900
8920
|
}
|
|
8921
|
+
@layer components {
|
|
8922
|
+
[data-ui-data-grid-header-row], [data-ui-data-grid-row] {
|
|
8923
|
+
grid-template-columns: var(--ui-data-grid-template);
|
|
8924
|
+
height: var(--ui-data-grid-row-height);
|
|
8925
|
+
}
|
|
8926
|
+
[data-ui-data-grid-body] {
|
|
8927
|
+
min-height: var(--ui-data-grid-total-height);
|
|
8928
|
+
}
|
|
8929
|
+
[data-ui-data-grid] [data-ui-data-grid-scroll-area] > [data-ui-scroll-area-scrollbar][data-orientation="vertical"] {
|
|
8930
|
+
top: calc(var(--ui-data-grid-row-height) + var(--ui-scrollbar-inset)) !important;
|
|
8931
|
+
height: calc(100% - var(--ui-data-grid-row-height) - (var(--ui-scrollbar-inset) * 2)) !important;
|
|
8932
|
+
}
|
|
8933
|
+
[data-ui-data-grid-column-indicator] {
|
|
8934
|
+
background: var(--ui-data-grid-feedback-color, var(--ui-interaction-selected-edge-strong));
|
|
8935
|
+
}
|
|
8936
|
+
[data-ui-data-grid][data-interaction="tonal"] {
|
|
8937
|
+
--ui-data-grid-feedback-color: var(--ui-interaction-selected-fill);
|
|
8938
|
+
}
|
|
8939
|
+
[data-ui-data-grid-column-indicator][data-index="0"] {
|
|
8940
|
+
translate: 6px 0;
|
|
8941
|
+
}
|
|
8942
|
+
[data-ui-data-grid-column-indicator][data-index="0"]:dir(rtl) {
|
|
8943
|
+
translate: -6px 0;
|
|
8944
|
+
}
|
|
8945
|
+
[data-ui-data-grid-resize-handle]::after {
|
|
8946
|
+
position: absolute;
|
|
8947
|
+
inset-block: 0;
|
|
8948
|
+
right: 0;
|
|
8949
|
+
width: 1px;
|
|
8950
|
+
background: var(--ui-data-grid-feedback-color, var(--ui-interaction-selected-edge-strong));
|
|
8951
|
+
content: "";
|
|
8952
|
+
opacity: 0;
|
|
8953
|
+
}
|
|
8954
|
+
[data-ui-data-grid-resize-handle]:hover::after, [data-ui-data-grid-resize-handle]:focus-visible::after, [data-ui-data-grid-resize-handle][data-resizing]::after {
|
|
8955
|
+
opacity: 1;
|
|
8956
|
+
}
|
|
8957
|
+
[data-ui-data-grid-column-header][data-pinned], [data-ui-data-grid-cell][data-pinned] {
|
|
8958
|
+
background: var(--ui-surface-color);
|
|
8959
|
+
}
|
|
8960
|
+
[data-ui-data-grid][data-border="row"] [data-ui-data-grid-column-header], [data-ui-data-grid][data-border="row"] [data-ui-data-grid-cell], [data-ui-data-grid][data-border="grid"] [data-ui-data-grid-column-header], [data-ui-data-grid][data-border="grid"] [data-ui-data-grid-cell] {
|
|
8961
|
+
border-bottom: 1px solid var(--color-separator);
|
|
8962
|
+
}
|
|
8963
|
+
[data-ui-data-grid][data-border="grid"] [data-ui-data-grid-column-header]:not(:first-child), [data-ui-data-grid][data-border="grid"] [data-ui-data-grid-cell]:not(:first-child) {
|
|
8964
|
+
border-inline-start: 1px solid var(--color-separator);
|
|
8965
|
+
}
|
|
8966
|
+
[data-ui-data-grid][data-empty] [data-ui-data-grid-scroll-area] {
|
|
8967
|
+
display: none;
|
|
8968
|
+
}
|
|
8969
|
+
[data-ui-data-grid]:not([data-empty]) [data-ui-data-grid-empty] {
|
|
8970
|
+
display: none;
|
|
8971
|
+
}
|
|
8972
|
+
}
|
|
8901
8973
|
@layer components {
|
|
8902
8974
|
[data-ui-select-viewport] {
|
|
8903
8975
|
max-height: var(--ui-select-listbox-max-height, var(--spacing-select-listbox));
|
|
8904
8976
|
}
|
|
8977
|
+
[data-ui-select-virtualizer] > [data-ui-scroll-area] {
|
|
8978
|
+
max-height: var(--ui-select-listbox-max-height, var(--spacing-select-listbox));
|
|
8979
|
+
}
|
|
8980
|
+
[data-ui-select-virtualizer] > [data-ui-scroll-area] > [data-ui-scroll-area-viewport] > [data-ui-scroll-area-content] {
|
|
8981
|
+
padding-block: var(--spacing-popover-padding);
|
|
8982
|
+
}
|
|
8905
8983
|
[data-ui-select-sheet-heading] {
|
|
8906
8984
|
display: none;
|
|
8907
8985
|
}
|
|
@@ -8959,6 +9037,10 @@
|
|
|
8959
9037
|
height: 100%;
|
|
8960
9038
|
max-height: none;
|
|
8961
9039
|
}
|
|
9040
|
+
[data-ui-select-popover][data-presentation="dialog"] [data-ui-select-virtualizer] > [data-ui-scroll-area], [data-ui-select-popover][data-presentation="fullscreen"] [data-ui-select-virtualizer] > [data-ui-scroll-area] {
|
|
9041
|
+
height: 100%;
|
|
9042
|
+
max-height: none;
|
|
9043
|
+
}
|
|
8962
9044
|
[data-ui-select-popover][data-presentation="dialog"] [data-ui-select-viewport] [data-ui-scroll-area-viewport], [data-ui-select-popover][data-presentation="fullscreen"] [data-ui-select-viewport] [data-ui-scroll-area-viewport] {
|
|
8963
9045
|
overscroll-behavior: contain;
|
|
8964
9046
|
}
|