@noxickon/onyx 6.6.0 → 6.7.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/dist/code-block/CodeBlock.styles.d.ts +2 -2
- package/dist/code-block/CodeBlock2.js +1 -1
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/Accordion/Accordion.styles.d.ts +2 -2
- package/dist/components/Alert/Alert.js +16 -14
- package/dist/components/Alert/Alert.styles.d.ts +2 -2
- package/dist/components/AlertDialog/AlertDialog.styles.d.ts +2 -2
- package/dist/components/AnimatedGradientText/AnimatedGradientText.styles.d.ts +2 -2
- package/dist/components/AnimatedGradientText/AnimatedGradientText2.js +1 -1
- package/dist/components/AppLayout/AppLayout.js +1 -1
- package/dist/components/AppLayout/AppLayout.styles.d.ts +26 -26
- package/dist/components/Autocomplete/Autocomplete.js +2 -2
- package/dist/components/Autocomplete/Autocomplete.styles.d.ts +64 -64
- package/dist/components/Avatar/Avatar.styles.d.ts +4 -4
- package/dist/components/Badge/Badge.js +1 -1
- package/dist/components/Badge/Badge.styles.d.ts +2 -2
- package/dist/components/BlurSwitch/BlurSwitch.styles.d.ts +2 -2
- package/dist/components/BlurSwitch/BlurSwitch.styles.js +4 -3
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.styles.d.ts +29 -29
- package/dist/components/Button/Button.js +2 -2
- package/dist/components/Button/Button.styles.d.ts +2 -2
- package/dist/components/Card/Card.styles.d.ts +2 -2
- package/dist/components/Checkbox/Checkbox.styles.d.ts +14 -14
- package/dist/components/Checkbox/Checkbox.types.d.ts +4 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.styles.d.ts +8 -8
- package/dist/components/Chip/Chip.js +1 -1
- package/dist/components/Chip/Chip.styles.d.ts +2 -2
- package/dist/components/Collapsible/Collapsible.js +2 -2
- package/dist/components/Collapsible/Collapsible.styles.d.ts +20 -20
- package/dist/components/Combobox/Combobox.js +4 -4
- package/dist/components/Combobox/Combobox.styles.d.ts +16 -16
- package/dist/components/Command/Command.js +2 -2
- package/dist/components/Command/Command.styles.d.ts +2 -2
- package/dist/components/ContextMenu/ContextMenu.styles.d.ts +2 -2
- package/dist/components/CopyButton/CopyButton.js +1 -1
- package/dist/components/CopyButton/CopyButton.styles.d.ts +2 -2
- package/dist/components/CopyInput/CopyInput.js +1 -1
- package/dist/components/CopyInput/CopyInput.styles.d.ts +2 -2
- package/dist/components/DataTable/DataTable.d.ts +1 -1
- package/dist/components/DataTable/DataTable.js +737 -531
- package/dist/components/DataTable/DataTable.styles.d.ts +53 -5
- package/dist/components/DataTable/DataTable.styles.js +24 -7
- package/dist/components/DataTable/DataTable.types.d.ts +13 -1
- package/dist/components/DataTable/DataTable.utils.js +1 -1
- package/dist/components/DescriptionList/DescriptionList.js +1 -1
- package/dist/components/DescriptionList/DescriptionList.styles.d.ts +14 -14
- package/dist/components/Dialog/Dialog.js +1 -1
- package/dist/components/Dialog/Dialog.styles.d.ts +2 -2
- package/dist/components/Drawer/Drawer.styles.d.ts +2 -2
- package/dist/components/Drawer/Drawer.styles.js +2 -2
- package/dist/components/Drawer/Drawer2.js +4 -4
- package/dist/components/Dropdown/Dropdown.js +1 -1
- package/dist/components/Dropdown/Dropdown.styles.d.ts +2 -2
- package/dist/components/Field/Field.styles.d.ts +29 -29
- package/dist/components/Fieldset/Fieldset.styles.d.ts +11 -11
- package/dist/components/Footer/Footer.js +1 -1
- package/dist/components/Footer/Footer.styles.d.ts +2 -2
- package/dist/components/Header/Header.js +1 -1
- package/dist/components/Header/Header.styles.d.ts +2 -2
- package/dist/components/Header/Header.styles.js +1 -1
- package/dist/components/HoldToDelete/HoldToDelete.css +1 -1
- package/dist/components/HoldToDelete/HoldToDelete.styles.d.ts +48 -21
- package/dist/components/HoldToDelete/HoldToDelete.styles.js +32 -17
- package/dist/components/HoldToDelete/HoldToDelete2.js +97 -85
- package/dist/components/IconTile/IconTile.styles.d.ts +8 -8
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/Input.styles.d.ts +26 -26
- package/dist/components/Kbd/Kbd.styles.d.ts +1 -1
- package/dist/components/Main/Main.styles.d.ts +1 -1
- package/dist/components/Meter/Meter.styles.d.ts +20 -20
- package/dist/components/NavigationMenu/NavigationMenu.js +1 -1
- package/dist/components/NavigationMenu/NavigationMenu.styles.d.ts +2 -2
- package/dist/components/NumberInput/NumberInput.js +1 -1
- package/dist/components/NumberInput/NumberInput.styles.d.ts +32 -32
- package/dist/components/OtpField/OtpField.styles.d.ts +14 -14
- package/dist/components/PageProgress/PageProgress.styles.d.ts +14 -14
- package/dist/components/PageProgress/PageProgress.styles.js +1 -1
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/Pagination/Pagination.styles.d.ts +2 -2
- package/dist/components/Popover/Popover.js +1 -1
- package/dist/components/Popover/Popover.styles.d.ts +26 -26
- package/dist/components/Popover/Popover.styles.js +1 -1
- package/dist/components/Progress/Progress.styles.d.ts +20 -20
- package/dist/components/Radio/Radio.styles.d.ts +19 -19
- package/dist/components/ResponsiveOverlay/ResponsiveOverlay.d.ts +1 -1
- package/dist/components/ResponsiveOverlay/ResponsiveOverlay.js +193 -157
- package/dist/components/ResponsiveOverlay/ResponsiveOverlay.styles.d.ts +11 -2
- package/dist/components/ResponsiveOverlay/ResponsiveOverlay.styles.js +2 -1
- package/dist/components/ResponsiveOverlay/ResponsiveOverlay.types.d.ts +9 -2
- package/dist/components/ResponsiveOverlay/index.d.ts +1 -1
- package/dist/components/ScrollArea/ScrollArea.styles.d.ts +23 -23
- package/dist/components/ScrollArea/ScrollArea2.js +2 -2
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/Select/Select.styles.d.ts +38 -38
- package/dist/components/Separator/Separator.styles.d.ts +1 -1
- package/dist/components/Sidebar/Sidebar.styles.d.ts +15 -15
- package/dist/components/Sidebar/Sidebar2.js +19 -19
- package/dist/components/SidebarRail/SidebarRail.js +1 -1
- package/dist/components/SidebarRail/SidebarRail.styles.d.ts +17 -17
- package/dist/components/Skeleton/Skeleton.styles.d.ts +11 -11
- package/dist/components/Slider/Slider.styles.d.ts +20 -20
- package/dist/components/Spinner/Spinner.styles.d.ts +2 -2
- package/dist/components/StatusDisplay/StatusDisplay.styles.d.ts +2 -2
- package/dist/components/Switch/Switch.styles.d.ts +11 -11
- package/dist/components/TabBar/TabBar.js +1 -1
- package/dist/components/TabBar/TabBar.styles.d.ts +2 -2
- package/dist/components/Table/Table.d.ts +1 -1
- package/dist/components/Table/Table.js +69 -63
- package/dist/components/Table/Table.styles.d.ts +8 -8
- package/dist/components/Table/Table.styles.js +11 -11
- package/dist/components/Table/Table.types.d.ts +7 -1
- package/dist/components/Tabs/Tabs.js +4 -4
- package/dist/components/Tabs/Tabs.styles.d.ts +2 -2
- package/dist/components/Textarea/Textarea.js +2 -2
- package/dist/components/Textarea/Textarea.styles.d.ts +39 -39
- package/dist/components/Toast/Toast.css +1 -1
- package/dist/components/Toast/Toast.styles.d.ts +2 -2
- package/dist/components/Toast/Toast.styles.js +1 -1
- package/dist/components/Toast/Toast2.js +16 -14
- package/dist/components/Toggle/Toggle.js +2 -2
- package/dist/components/Toggle/Toggle.styles.d.ts +6 -6
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Tooltip/Tooltip.styles.d.ts +17 -17
- package/dist/components/Tooltip/Tooltip.styles.js +1 -1
- package/dist/components/Typewriter/Typewriter.styles.d.ts +14 -14
- package/dist/components/Typewriter/Typewriter2.js +4 -4
- package/dist/components/VirtualList/VirtualList.styles.d.ts +14 -14
- package/dist/context/Auth/Auth.types.d.ts +3 -1
- package/dist/context/Theme/Theme.js +1 -1
- package/dist/hooks/useCommandShortcut/useCommandShortcut.js +1 -1
- package/dist/hooks/useFilter/useFilter.js +1 -1
- package/dist/hooks/useMediaQuery/useMediaQuery.js +1 -1
- package/dist/hooks/useVirtualizer/useVirtualizer.js +2 -2
- package/dist/hooks.js +3 -3
- package/dist/index.js +24 -24
- package/dist/internal/hooks/useControllableState/useControllableState.types.d.ts +1 -1
- package/dist/internal/hooks/useFormState/useFormState.js +81 -81
- package/dist/internal/styles/addonStyles.d.ts +28 -28
- package/dist/internal/styles/dialogSurfaceStyles.d.ts +1 -1
- package/dist/internal/styles/dialogSurfaceStyles.js +2 -2
- package/dist/internal/styles/menuSurfaceStyles.d.ts +1 -1
- package/dist/internal/styles/menuSurfaceStyles.js +1 -1
- package/dist/internal/styles/stackedLayerStyles.d.ts +1 -0
- package/dist/internal/styles/stackedLayerStyles.js +4 -0
- package/dist/internal/styles/tableCellStyles.d.ts +5 -0
- package/dist/internal/styles/tableCellStyles.js +7 -0
- package/dist/rest/executors/restExecutor.js +1 -1
- package/dist/rich-editor/RichEditor.styles.d.ts +36 -36
- package/dist/rich-editor/RichEditor2.js +3 -3
- package/dist/rich-editor/useOxRichEditor.js +1 -1
- package/dist/tokens/shared.css +5 -0
- package/package.json +17 -11
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
import { VariantProps } from '../../internal/tv';
|
|
2
2
|
export declare const dataTableVariants: import('tailwind-variants').TVReturnType<{
|
|
3
3
|
density: {
|
|
4
|
-
comfortable: {
|
|
4
|
+
comfortable: {
|
|
5
|
+
groupCell: "py-2.75";
|
|
6
|
+
};
|
|
5
7
|
compact: {
|
|
6
8
|
toolbar: string;
|
|
9
|
+
groupCell: "py-1.5";
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
stickyHeader: {
|
|
13
|
+
true: {
|
|
14
|
+
frozenHead: string;
|
|
15
|
+
scrollScrollbar: string;
|
|
16
|
+
groupCell: string;
|
|
7
17
|
};
|
|
18
|
+
false: {};
|
|
8
19
|
};
|
|
9
20
|
sortActive: {
|
|
10
21
|
true: {
|
|
@@ -36,6 +47,8 @@ export declare const dataTableVariants: import('tailwind-variants').TVReturnType
|
|
|
36
47
|
filterChipsRow: string;
|
|
37
48
|
selectionActions: string;
|
|
38
49
|
scroll: string;
|
|
50
|
+
scrollViewport: string;
|
|
51
|
+
scrollScrollbar: string;
|
|
39
52
|
selectCol: string;
|
|
40
53
|
frozenHead: string;
|
|
41
54
|
frozenCell: string[];
|
|
@@ -52,6 +65,9 @@ export declare const dataTableVariants: import('tailwind-variants').TVReturnType
|
|
|
52
65
|
footer: string;
|
|
53
66
|
spinner: string;
|
|
54
67
|
empty: string;
|
|
68
|
+
groupRow: string;
|
|
69
|
+
groupCell: string[];
|
|
70
|
+
virtualSpacerCell: string;
|
|
55
71
|
configPanel: string;
|
|
56
72
|
configTitle: string;
|
|
57
73
|
configList: string;
|
|
@@ -67,10 +83,21 @@ export declare const dataTableVariants: import('tailwind-variants').TVReturnType
|
|
|
67
83
|
skeletonBody: string;
|
|
68
84
|
}, undefined, {
|
|
69
85
|
density: {
|
|
70
|
-
comfortable: {
|
|
86
|
+
comfortable: {
|
|
87
|
+
groupCell: "py-2.75";
|
|
88
|
+
};
|
|
71
89
|
compact: {
|
|
72
90
|
toolbar: string;
|
|
91
|
+
groupCell: "py-1.5";
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
stickyHeader: {
|
|
95
|
+
true: {
|
|
96
|
+
frozenHead: string;
|
|
97
|
+
scrollScrollbar: string;
|
|
98
|
+
groupCell: string;
|
|
73
99
|
};
|
|
100
|
+
false: {};
|
|
74
101
|
};
|
|
75
102
|
sortActive: {
|
|
76
103
|
true: {
|
|
@@ -102,6 +129,8 @@ export declare const dataTableVariants: import('tailwind-variants').TVReturnType
|
|
|
102
129
|
filterChipsRow: string;
|
|
103
130
|
selectionActions: string;
|
|
104
131
|
scroll: string;
|
|
132
|
+
scrollViewport: string;
|
|
133
|
+
scrollScrollbar: string;
|
|
105
134
|
selectCol: string;
|
|
106
135
|
frozenHead: string;
|
|
107
136
|
frozenCell: string[];
|
|
@@ -118,6 +147,9 @@ export declare const dataTableVariants: import('tailwind-variants').TVReturnType
|
|
|
118
147
|
footer: string;
|
|
119
148
|
spinner: string;
|
|
120
149
|
empty: string;
|
|
150
|
+
groupRow: string;
|
|
151
|
+
groupCell: string[];
|
|
152
|
+
virtualSpacerCell: string;
|
|
121
153
|
configPanel: string;
|
|
122
154
|
configTitle: string;
|
|
123
155
|
configList: string;
|
|
@@ -131,12 +163,23 @@ export declare const dataTableVariants: import('tailwind-variants').TVReturnType
|
|
|
131
163
|
skeleton: string;
|
|
132
164
|
skeletonToolbar: string;
|
|
133
165
|
skeletonBody: string;
|
|
134
|
-
}, import('tailwind-variants').
|
|
166
|
+
}, import('tailwind-variants').TVReturnTypeLike<{
|
|
135
167
|
density: {
|
|
136
|
-
comfortable: {
|
|
168
|
+
comfortable: {
|
|
169
|
+
groupCell: "py-2.75";
|
|
170
|
+
};
|
|
137
171
|
compact: {
|
|
138
172
|
toolbar: string;
|
|
173
|
+
groupCell: "py-1.5";
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
stickyHeader: {
|
|
177
|
+
true: {
|
|
178
|
+
frozenHead: string;
|
|
179
|
+
scrollScrollbar: string;
|
|
180
|
+
groupCell: string;
|
|
139
181
|
};
|
|
182
|
+
false: {};
|
|
140
183
|
};
|
|
141
184
|
sortActive: {
|
|
142
185
|
true: {
|
|
@@ -168,6 +211,8 @@ export declare const dataTableVariants: import('tailwind-variants').TVReturnType
|
|
|
168
211
|
filterChipsRow: string;
|
|
169
212
|
selectionActions: string;
|
|
170
213
|
scroll: string;
|
|
214
|
+
scrollViewport: string;
|
|
215
|
+
scrollScrollbar: string;
|
|
171
216
|
selectCol: string;
|
|
172
217
|
frozenHead: string;
|
|
173
218
|
frozenCell: string[];
|
|
@@ -184,6 +229,9 @@ export declare const dataTableVariants: import('tailwind-variants').TVReturnType
|
|
|
184
229
|
footer: string;
|
|
185
230
|
spinner: string;
|
|
186
231
|
empty: string;
|
|
232
|
+
groupRow: string;
|
|
233
|
+
groupCell: string[];
|
|
234
|
+
virtualSpacerCell: string;
|
|
187
235
|
configPanel: string;
|
|
188
236
|
configTitle: string;
|
|
189
237
|
configList: string;
|
|
@@ -197,5 +245,5 @@ export declare const dataTableVariants: import('tailwind-variants').TVReturnType
|
|
|
197
245
|
skeleton: string;
|
|
198
246
|
skeletonToolbar: string;
|
|
199
247
|
skeletonBody: string;
|
|
200
|
-
}
|
|
248
|
+
}>>;
|
|
201
249
|
export type DataTableVariants = VariantProps<typeof dataTableVariants>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { tv as e } from "../../internal/tv.js";
|
|
2
|
+
import { tableCellBase as t, tableCellPadding as n } from "../../internal/styles/tableCellStyles.js";
|
|
2
3
|
//#region src/components/DataTable/DataTable.styles.ts
|
|
3
|
-
var
|
|
4
|
+
var r = e({
|
|
4
5
|
slots: {
|
|
5
6
|
root: "relative flex w-full flex-col overflow-hidden rounded-card border border-line bg-card shadow-[var(--shadow-card)]",
|
|
6
7
|
toolbar: "flex min-h-13 items-center justify-between gap-3 border-b border-line px-3 py-2.25 pointer-coarse:flex-col pointer-coarse:items-stretch pointer-coarse:gap-2.5",
|
|
@@ -15,11 +16,13 @@ var t = e({
|
|
|
15
16
|
collapseClip: "overflow-hidden",
|
|
16
17
|
filterChipsRow: "flex min-h-[calc(var(--control-h-md)+1.25rem+1px)] flex-wrap items-center gap-2 border-b border-line px-3.5 py-2.5",
|
|
17
18
|
selectionActions: "flex min-w-0 items-center gap-3",
|
|
18
|
-
scroll: "relative w-full
|
|
19
|
+
scroll: "relative w-full",
|
|
20
|
+
scrollViewport: "max-h-(--ox-data-table-max-h) [-webkit-overflow-scrolling:touch]",
|
|
21
|
+
scrollScrollbar: "",
|
|
19
22
|
selectCol: "pointer-coarse:w-11",
|
|
20
|
-
frozenHead: "pointer-coarse:sticky pointer-coarse:left-(--ox-frozen-left) pointer-coarse:z-
|
|
23
|
+
frozenHead: "pointer-coarse:sticky pointer-coarse:left-(--ox-frozen-left) pointer-coarse:z-(--z-table-frozen-header) pointer-coarse:bg-card",
|
|
21
24
|
frozenCell: [
|
|
22
|
-
"pointer-coarse:sticky pointer-coarse:left-(--ox-frozen-left) pointer-coarse:z-
|
|
25
|
+
"pointer-coarse:sticky pointer-coarse:left-(--ox-frozen-left) pointer-coarse:z-(--z-table-frozen-cell) pointer-coarse:bg-card",
|
|
23
26
|
"pointer-coarse:group-hover/row:bg-surface-raised",
|
|
24
27
|
"pointer-coarse:group-data-selected/row:bg-[color-mix(in_oklab,var(--color-primary-500)_16%,var(--card))]"
|
|
25
28
|
],
|
|
@@ -45,6 +48,9 @@ var t = e({
|
|
|
45
48
|
footer: "flex items-center justify-center gap-2 border-t border-line py-2.5 text-xs text-fg-subtle",
|
|
46
49
|
spinner: "size-3.5 animate-spin rounded-full border-2 border-line border-t-primary",
|
|
47
50
|
empty: "px-6 py-12 text-center text-body text-fg-subtle pointer-coarse:px-6 pointer-coarse:py-12",
|
|
51
|
+
groupRow: "[&>th]:border-t [&>th]:border-line first:[&>th]:border-t-0",
|
|
52
|
+
groupCell: [t, "bg-sunken text-left text-xs font-semibold tracking-[0.01em] whitespace-nowrap text-fg-muted"],
|
|
53
|
+
virtualSpacerCell: "border-0 p-0",
|
|
48
54
|
configPanel: "flex w-64 flex-col",
|
|
49
55
|
configTitle: "px-2 pt-1.5 pb-2 text-body font-semibold text-fg",
|
|
50
56
|
configList: "flex flex-col gap-0.5 py-1",
|
|
@@ -61,8 +67,19 @@ var t = e({
|
|
|
61
67
|
},
|
|
62
68
|
variants: {
|
|
63
69
|
density: {
|
|
64
|
-
comfortable: {},
|
|
65
|
-
compact: {
|
|
70
|
+
comfortable: { groupCell: n.comfortable },
|
|
71
|
+
compact: {
|
|
72
|
+
toolbar: "min-h-12 py-2",
|
|
73
|
+
groupCell: n.compact
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
stickyHeader: {
|
|
77
|
+
true: {
|
|
78
|
+
frozenHead: "pointer-coarse:z-(--z-table-frozen-corner)",
|
|
79
|
+
scrollScrollbar: "data-[orientation=vertical]:pt-[calc(var(--ox-data-table-head-h,0px)+2px)]",
|
|
80
|
+
groupCell: "sticky top-[var(--ox-data-table-head-h,0px)] z-(--z-table-group-header)"
|
|
81
|
+
},
|
|
82
|
+
false: {}
|
|
66
83
|
},
|
|
67
84
|
sortActive: {
|
|
68
85
|
true: {
|
|
@@ -84,4 +101,4 @@ var t = e({
|
|
|
84
101
|
}
|
|
85
102
|
});
|
|
86
103
|
//#endregion
|
|
87
|
-
export {
|
|
104
|
+
export { r as dataTableVariants };
|
|
@@ -3,7 +3,7 @@ import { DataTableVariants } from './DataTable.styles';
|
|
|
3
3
|
type DataTableDensity = NonNullable<DataTableVariants['density']>;
|
|
4
4
|
type DataTableAlign = 'start' | 'center' | 'end';
|
|
5
5
|
type SortDirection = 'asc' | 'desc';
|
|
6
|
-
type DataTablePaginationMode = 'pages' | 'infinite';
|
|
6
|
+
type DataTablePaginationMode = 'pages' | 'infinite' | 'virtual';
|
|
7
7
|
type DataTablePaginationLayout = 'end' | 'center' | 'split';
|
|
8
8
|
type ColumnAccessor<TRow> = keyof TRow | ((row: TRow) => unknown);
|
|
9
9
|
interface OxDataTableColumn<TRow> {
|
|
@@ -39,6 +39,12 @@ interface OxDataTableProps<TRow> {
|
|
|
39
39
|
data: TRow[];
|
|
40
40
|
defaultColumnOrder?: string[];
|
|
41
41
|
defaultColumnVisibility?: Record<string, boolean>;
|
|
42
|
+
/**
|
|
43
|
+
* Uncontrolled initial value — read on the first render only. Later changes to
|
|
44
|
+
* this prop are ignored, so passing a value that updates over time silently
|
|
45
|
+
* does nothing. Use `expandedRows` together with `onExpandedChange` to drive
|
|
46
|
+
* the expanded set from outside.
|
|
47
|
+
*/
|
|
42
48
|
defaultExpandedRows?: Set<string>;
|
|
43
49
|
defaultFrozenColumns?: string[];
|
|
44
50
|
defaultPage?: number;
|
|
@@ -47,8 +53,11 @@ interface OxDataTableProps<TRow> {
|
|
|
47
53
|
density?: DataTableDensity;
|
|
48
54
|
emptyState?: ReactNode;
|
|
49
55
|
endReachedThreshold?: number;
|
|
56
|
+
estimateSize?: (index: number) => number;
|
|
57
|
+
expandedRows?: Set<string>;
|
|
50
58
|
frozenColumns?: string[];
|
|
51
59
|
getRowCanExpand?: (row: TRow) => boolean;
|
|
60
|
+
getRowGroupId?: (row: TRow) => string;
|
|
52
61
|
getRowId: (row: TRow) => string;
|
|
53
62
|
hover?: boolean;
|
|
54
63
|
loading?: boolean;
|
|
@@ -56,14 +65,17 @@ interface OxDataTableProps<TRow> {
|
|
|
56
65
|
onColumnOrderChange?: (ids: string[]) => void;
|
|
57
66
|
onColumnVisibilityChange?: (visibility: Record<string, boolean>) => void;
|
|
58
67
|
onEndReached?: () => void;
|
|
68
|
+
onExpandedChange?: (ids: Set<string>) => void;
|
|
59
69
|
onFrozenColumnsChange?: (ids: string[]) => void;
|
|
60
70
|
onPageChange?: (page: number) => void;
|
|
61
71
|
onSelectionChange?: (ids: Set<string>) => void;
|
|
62
72
|
onSortChange?: (columnId: string, direction: SortDirection | null) => void;
|
|
73
|
+
overscan?: number;
|
|
63
74
|
page?: number;
|
|
64
75
|
pageSize?: number;
|
|
65
76
|
paginationMode?: DataTablePaginationMode;
|
|
66
77
|
renderExpandedRow?: (row: TRow) => ReactNode;
|
|
78
|
+
renderGroupHeader?: (groupId: string, rows: TRow[]) => ReactNode;
|
|
67
79
|
rowCount?: number;
|
|
68
80
|
selectable?: boolean;
|
|
69
81
|
selectedRows?: Set<string>;
|
|
@@ -2,7 +2,7 @@ import { arrayMove as e } from "@dnd-kit/sortable";
|
|
|
2
2
|
//#region src/components/DataTable/DataTable.utils.ts
|
|
3
3
|
var t = (e, t) => {
|
|
4
4
|
let n = new Set(e.map((e) => e.id)), r = /* @__PURE__ */ new Set(), i = [];
|
|
5
|
-
for (let e of t) n.has(e)
|
|
5
|
+
for (let e of t) !n.has(e) || r.has(e) || (i.push(e), r.add(e));
|
|
6
6
|
for (let t of e) r.has(t.id) || i.push(t.id);
|
|
7
7
|
return i;
|
|
8
8
|
}, n = (t, n, r) => {
|
|
@@ -8,7 +8,7 @@ var { Provider: a, useRequiredContext: o } = e("OxDescriptionList");
|
|
|
8
8
|
function s(e) {
|
|
9
9
|
let o = n(30), s, c, l, u, d, f;
|
|
10
10
|
o[0] === e ? (s = o[1], c = o[2], l = o[3], u = o[4], d = o[5], f = o[6]) : ({className: s, density: u, layout: d, render: l, striped: f, ...c} = e, o[0] = e, o[1] = s, o[2] = c, o[3] = l, o[4] = u, o[5] = d, o[6] = f);
|
|
11
|
-
let p = u === void 0 ? "comfortable" : u, m = d === void 0 ? "rows" : d, h = f
|
|
11
|
+
let p = u === void 0 ? "comfortable" : u, m = d === void 0 ? "rows" : d, h = f !== void 0 && f, g;
|
|
12
12
|
o[7] === l ? g = o[8] : (g = l ?? /* @__PURE__ */ r("dl", {}), o[7] = l, o[8] = g);
|
|
13
13
|
let _;
|
|
14
14
|
o[9] !== s || o[10] !== p || o[11] !== m || o[12] !== h ? (_ = t({
|
|
@@ -21,12 +21,12 @@ export declare const descriptionListVariants: import('tailwind-variants').TVRetu
|
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
23
|
density: {
|
|
24
|
-
comfortable:
|
|
25
|
-
compact:
|
|
24
|
+
comfortable: "";
|
|
25
|
+
compact: "";
|
|
26
26
|
};
|
|
27
27
|
striped: {
|
|
28
|
-
true:
|
|
29
|
-
false:
|
|
28
|
+
true: "";
|
|
29
|
+
false: "";
|
|
30
30
|
};
|
|
31
31
|
}, {
|
|
32
32
|
root: string;
|
|
@@ -55,19 +55,19 @@ export declare const descriptionListVariants: import('tailwind-variants').TVRetu
|
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
57
|
density: {
|
|
58
|
-
comfortable:
|
|
59
|
-
compact:
|
|
58
|
+
comfortable: "";
|
|
59
|
+
compact: "";
|
|
60
60
|
};
|
|
61
61
|
striped: {
|
|
62
|
-
true:
|
|
63
|
-
false:
|
|
62
|
+
true: "";
|
|
63
|
+
false: "";
|
|
64
64
|
};
|
|
65
65
|
}, {
|
|
66
66
|
root: string;
|
|
67
67
|
item: string;
|
|
68
68
|
term: string;
|
|
69
69
|
description: string;
|
|
70
|
-
}, import('tailwind-variants').
|
|
70
|
+
}, import('tailwind-variants').TVReturnTypeLike<{
|
|
71
71
|
layout: {
|
|
72
72
|
rows: {
|
|
73
73
|
root: string;
|
|
@@ -89,17 +89,17 @@ export declare const descriptionListVariants: import('tailwind-variants').TVRetu
|
|
|
89
89
|
};
|
|
90
90
|
};
|
|
91
91
|
density: {
|
|
92
|
-
comfortable:
|
|
93
|
-
compact:
|
|
92
|
+
comfortable: "";
|
|
93
|
+
compact: "";
|
|
94
94
|
};
|
|
95
95
|
striped: {
|
|
96
|
-
true:
|
|
97
|
-
false:
|
|
96
|
+
true: "";
|
|
97
|
+
false: "";
|
|
98
98
|
};
|
|
99
99
|
}, {
|
|
100
100
|
root: string;
|
|
101
101
|
item: string;
|
|
102
102
|
term: string;
|
|
103
103
|
description: string;
|
|
104
|
-
}
|
|
104
|
+
}>>;
|
|
105
105
|
export type DescriptionListVariants = VariantProps<typeof descriptionListVariants>;
|
|
@@ -9,7 +9,7 @@ var c = t();
|
|
|
9
9
|
function l(e) {
|
|
10
10
|
let t = n(6), r, i;
|
|
11
11
|
t[0] === e ? (r = t[1], i = t[2]) : ({modal: i, ...r} = e, t[0] = e, t[1] = r, t[2] = i);
|
|
12
|
-
let o = i === void 0
|
|
12
|
+
let o = i === void 0 || i, c;
|
|
13
13
|
return t[3] !== o || t[4] !== r ? (c = /* @__PURE__ */ a(s.Root, {
|
|
14
14
|
modal: o,
|
|
15
15
|
...r
|
|
@@ -37,7 +37,7 @@ export declare const dialogVariants: import('tailwind-variants').TVReturnType<{
|
|
|
37
37
|
title: string;
|
|
38
38
|
description: string;
|
|
39
39
|
close: string;
|
|
40
|
-
}, import('tailwind-variants').
|
|
40
|
+
}, import('tailwind-variants').TVReturnTypeLike<{
|
|
41
41
|
scroll: {
|
|
42
42
|
readonly outside: {
|
|
43
43
|
readonly viewport: "items-start overflow-y-auto p-4";
|
|
@@ -56,5 +56,5 @@ export declare const dialogVariants: import('tailwind-variants').TVReturnType<{
|
|
|
56
56
|
title: string;
|
|
57
57
|
description: string;
|
|
58
58
|
close: string;
|
|
59
|
-
}
|
|
59
|
+
}>>;
|
|
60
60
|
export type DialogVariants = VariantProps<typeof dialogVariants>;
|
|
@@ -97,7 +97,7 @@ export declare const drawerVariants: import('tailwind-variants').TVReturnType<{
|
|
|
97
97
|
title: string;
|
|
98
98
|
description: string;
|
|
99
99
|
close: string;
|
|
100
|
-
}, import('tailwind-variants').
|
|
100
|
+
}, import('tailwind-variants').TVReturnTypeLike<{
|
|
101
101
|
side: {
|
|
102
102
|
left: {
|
|
103
103
|
popup: string;
|
|
@@ -146,5 +146,5 @@ export declare const drawerVariants: import('tailwind-variants').TVReturnType<{
|
|
|
146
146
|
title: string;
|
|
147
147
|
description: string;
|
|
148
148
|
close: string;
|
|
149
|
-
}
|
|
149
|
+
}>>;
|
|
150
150
|
export type DrawerVariants = VariantProps<typeof drawerVariants>;
|
|
@@ -4,12 +4,12 @@ var t = e({
|
|
|
4
4
|
slots: {
|
|
5
5
|
trigger: "",
|
|
6
6
|
backdrop: [
|
|
7
|
-
"fixed inset-0 z-
|
|
7
|
+
"fixed inset-0 z-(--z-drawer) bg-scrim backdrop-blur-xs",
|
|
8
8
|
"transition-[opacity,backdrop-filter] duration-500 ease-ios motion-reduce:transition-[opacity]",
|
|
9
9
|
"ox-starting:opacity-0 ox-starting:backdrop-blur-[0px]",
|
|
10
10
|
"ox-ending:opacity-0 ox-ending:backdrop-blur-[0px]"
|
|
11
11
|
],
|
|
12
|
-
viewport: "pointer-events-none fixed inset-0 z-
|
|
12
|
+
viewport: "pointer-events-none fixed inset-0 z-(--z-drawer)",
|
|
13
13
|
popup: [
|
|
14
14
|
"group/drawer pointer-events-auto absolute flex flex-col overflow-hidden",
|
|
15
15
|
"touch-none select-none",
|
|
@@ -17,7 +17,7 @@ var { Provider: d, useRequiredContext: f } = e("OxDrawer"), p = {
|
|
|
17
17
|
function h(e) {
|
|
18
18
|
let t = r(14), n, i, a;
|
|
19
19
|
t[0] === e ? (n = t[1], i = t[2], a = t[3]) : ({modal: i, side: a, ...n} = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a);
|
|
20
|
-
let o = i === void 0
|
|
20
|
+
let o = i === void 0 || i, c = a === void 0 ? "right" : a, l;
|
|
21
21
|
t[4] !== o || t[5] !== c ? (l = {
|
|
22
22
|
modal: o,
|
|
23
23
|
side: c
|
|
@@ -51,7 +51,7 @@ function g(e) {
|
|
|
51
51
|
function _(e) {
|
|
52
52
|
let i = r(28), a, l, d, p, m, h, g, _;
|
|
53
53
|
i[0] === e ? (a = i[1], l = i[2], d = i[3], p = i[4], m = i[5], h = i[6], g = i[7], _ = i[8]) : ({backdropClassName: a, children: l, className: d, contained: h, container: p, forceBackdrop: g, viewportClassName: _, ...m} = e, i[0] = e, i[1] = a, i[2] = l, i[3] = d, i[4] = p, i[5] = m, i[6] = h, i[7] = g, i[8] = _);
|
|
54
|
-
let v = h
|
|
54
|
+
let v = h !== void 0 && h, y = g !== void 0 && g, { modal: b, side: x } = f(), S = n({
|
|
55
55
|
side: x,
|
|
56
56
|
contained: v
|
|
57
57
|
}), [C, w] = o(null), T = u, E = p ?? void 0, D = (b === !0 || y) && /* @__PURE__ */ s(u.Backdrop, {
|
|
@@ -171,7 +171,7 @@ function S(e) {
|
|
|
171
171
|
function C(e) {
|
|
172
172
|
let t = r(26), i, a, o, c, u;
|
|
173
173
|
t[0] === e ? (i = t[1], a = t[2], o = t[3], c = t[4], u = t[5]) : ({children: i, className: a, render: c, sticky: u, ...o} = e, t[0] = e, t[1] = i, t[2] = a, t[3] = o, t[4] = c, t[5] = u);
|
|
174
|
-
let d = u
|
|
174
|
+
let d = u !== void 0 && u, { side: p } = f(), m, h, g, _, v;
|
|
175
175
|
if (t[6] !== a || t[7] !== o || t[8] !== c || t[9] !== p || t[10] !== d) {
|
|
176
176
|
let e = n({
|
|
177
177
|
side: p,
|
|
@@ -209,7 +209,7 @@ function w(e) {
|
|
|
209
209
|
function T(e) {
|
|
210
210
|
let t = r(26), i, a, o, c, u;
|
|
211
211
|
t[0] === e ? (i = t[1], a = t[2], o = t[3], c = t[4], u = t[5]) : ({children: i, className: a, render: c, sticky: u, ...o} = e, t[0] = e, t[1] = i, t[2] = a, t[3] = o, t[4] = c, t[5] = u);
|
|
212
|
-
let d = u
|
|
212
|
+
let d = u !== void 0 && u, { side: p } = f(), m, h, g, _, v;
|
|
213
213
|
if (t[6] !== a || t[7] !== o || t[8] !== c || t[9] !== p || t[10] !== d) {
|
|
214
214
|
let e = n({
|
|
215
215
|
side: p,
|
|
@@ -235,7 +235,7 @@ function M(e) {
|
|
|
235
235
|
let u = l === void 0 ? "default" : l, d = y(), h, g, _, v, b, x, S, C;
|
|
236
236
|
if (t[6] !== n || t[7] !== a || t[8] !== d || t[9] !== o || t[10] !== c || t[11] !== u) {
|
|
237
237
|
let e = r({ variant: u });
|
|
238
|
-
g = m.SubmenuTrigger, v = c, b = e.item({ class: a }), x = "dropdown-sub-trigger", S = o ?? (d
|
|
238
|
+
g = m.SubmenuTrigger, v = c, b = e.item({ class: a }), x = "dropdown-sub-trigger", S = o ?? (!d && void 0), C = n, h = s, _ = e.subTriggerChevron(), t[6] = n, t[7] = a, t[8] = d, t[9] = o, t[10] = c, t[11] = u, t[12] = h, t[13] = g, t[14] = _, t[15] = v, t[16] = b, t[17] = x, t[18] = S, t[19] = C;
|
|
239
239
|
} else h = t[12], g = t[13], _ = t[14], v = t[15], b = t[16], x = t[17], S = t[18], C = t[19];
|
|
240
240
|
let w;
|
|
241
241
|
t[20] !== h || t[21] !== _ ? (w = /* @__PURE__ */ f(h, {
|
|
@@ -57,7 +57,7 @@ export declare const dropdownVariants: import('tailwind-variants').TVReturnType<
|
|
|
57
57
|
groupLabel: string[];
|
|
58
58
|
separator: string;
|
|
59
59
|
bar: string[];
|
|
60
|
-
}, import('tailwind-variants').
|
|
60
|
+
}, import('tailwind-variants').TVReturnTypeLike<{
|
|
61
61
|
variant: {
|
|
62
62
|
default: {};
|
|
63
63
|
danger: {
|
|
@@ -86,5 +86,5 @@ export declare const dropdownVariants: import('tailwind-variants').TVReturnType<
|
|
|
86
86
|
groupLabel: string[];
|
|
87
87
|
separator: string;
|
|
88
88
|
bar: string[];
|
|
89
|
-
}
|
|
89
|
+
}>>;
|
|
90
90
|
export type DropdownVariants = VariantProps<typeof dropdownVariants>;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
export declare const fieldVariants: import('tailwind-variants').TVReturnType<{
|
|
2
2
|
[key: string]: {
|
|
3
|
-
[key: string]: import('tailwind-
|
|
4
|
-
root?: import('tailwind-
|
|
5
|
-
item?: import('tailwind-
|
|
6
|
-
label?: import('tailwind-
|
|
7
|
-
description?: import('tailwind-
|
|
8
|
-
required?: import('tailwind-
|
|
9
|
-
errorIcon?: import('tailwind-
|
|
10
|
-
error?: import('tailwind-
|
|
11
|
-
counter?: import('tailwind-
|
|
3
|
+
[key: string]: import('tailwind-variants').ClassValue | {
|
|
4
|
+
root?: import('tailwind-variants').ClassValue;
|
|
5
|
+
item?: import('tailwind-variants').ClassValue;
|
|
6
|
+
label?: import('tailwind-variants').ClassValue;
|
|
7
|
+
description?: import('tailwind-variants').ClassValue;
|
|
8
|
+
required?: import('tailwind-variants').ClassValue;
|
|
9
|
+
errorIcon?: import('tailwind-variants').ClassValue;
|
|
10
|
+
error?: import('tailwind-variants').ClassValue;
|
|
11
|
+
counter?: import('tailwind-variants').ClassValue;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
} | {
|
|
15
15
|
[x: string]: {
|
|
16
|
-
[x: string]: import('tailwind-
|
|
17
|
-
root?: import('tailwind-
|
|
18
|
-
item?: import('tailwind-
|
|
19
|
-
label?: import('tailwind-
|
|
20
|
-
description?: import('tailwind-
|
|
21
|
-
required?: import('tailwind-
|
|
22
|
-
errorIcon?: import('tailwind-
|
|
23
|
-
error?: import('tailwind-
|
|
24
|
-
counter?: import('tailwind-
|
|
16
|
+
[x: string]: import('tailwind-variants').ClassValue | {
|
|
17
|
+
root?: import('tailwind-variants').ClassValue;
|
|
18
|
+
item?: import('tailwind-variants').ClassValue;
|
|
19
|
+
label?: import('tailwind-variants').ClassValue;
|
|
20
|
+
description?: import('tailwind-variants').ClassValue;
|
|
21
|
+
required?: import('tailwind-variants').ClassValue;
|
|
22
|
+
errorIcon?: import('tailwind-variants').ClassValue;
|
|
23
|
+
error?: import('tailwind-variants').ClassValue;
|
|
24
|
+
counter?: import('tailwind-variants').ClassValue;
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
27
|
} | {}, {
|
|
@@ -35,15 +35,15 @@ export declare const fieldVariants: import('tailwind-variants').TVReturnType<{
|
|
|
35
35
|
counter: string[];
|
|
36
36
|
}, undefined, {
|
|
37
37
|
[key: string]: {
|
|
38
|
-
[key: string]: import('tailwind-
|
|
39
|
-
root?: import('tailwind-
|
|
40
|
-
item?: import('tailwind-
|
|
41
|
-
label?: import('tailwind-
|
|
42
|
-
description?: import('tailwind-
|
|
43
|
-
required?: import('tailwind-
|
|
44
|
-
errorIcon?: import('tailwind-
|
|
45
|
-
error?: import('tailwind-
|
|
46
|
-
counter?: import('tailwind-
|
|
38
|
+
[key: string]: import('tailwind-variants').ClassValue | {
|
|
39
|
+
root?: import('tailwind-variants').ClassValue;
|
|
40
|
+
item?: import('tailwind-variants').ClassValue;
|
|
41
|
+
label?: import('tailwind-variants').ClassValue;
|
|
42
|
+
description?: import('tailwind-variants').ClassValue;
|
|
43
|
+
required?: import('tailwind-variants').ClassValue;
|
|
44
|
+
errorIcon?: import('tailwind-variants').ClassValue;
|
|
45
|
+
error?: import('tailwind-variants').ClassValue;
|
|
46
|
+
counter?: import('tailwind-variants').ClassValue;
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
49
|
} | {}, {
|
|
@@ -55,7 +55,7 @@ export declare const fieldVariants: import('tailwind-variants').TVReturnType<{
|
|
|
55
55
|
errorIcon: string;
|
|
56
56
|
required: string;
|
|
57
57
|
counter: string[];
|
|
58
|
-
}, import('tailwind-variants').
|
|
58
|
+
}, import('tailwind-variants').TVReturnTypeLike<unknown, {
|
|
59
59
|
root: string[];
|
|
60
60
|
item: string[];
|
|
61
61
|
label: string[];
|
|
@@ -64,4 +64,4 @@ export declare const fieldVariants: import('tailwind-variants').TVReturnType<{
|
|
|
64
64
|
errorIcon: string;
|
|
65
65
|
required: string;
|
|
66
66
|
counter: string[];
|
|
67
|
-
}
|
|
67
|
+
}>>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export declare const fieldsetVariants: import('tailwind-variants').TVReturnType<{
|
|
2
2
|
[key: string]: {
|
|
3
|
-
[key: string]: import('tailwind-
|
|
4
|
-
root?: import('tailwind-
|
|
5
|
-
legend?: import('tailwind-
|
|
3
|
+
[key: string]: import('tailwind-variants').ClassValue | {
|
|
4
|
+
root?: import('tailwind-variants').ClassValue;
|
|
5
|
+
legend?: import('tailwind-variants').ClassValue;
|
|
6
6
|
};
|
|
7
7
|
};
|
|
8
8
|
} | {
|
|
9
9
|
[x: string]: {
|
|
10
|
-
[x: string]: import('tailwind-
|
|
11
|
-
root?: import('tailwind-
|
|
12
|
-
legend?: import('tailwind-
|
|
10
|
+
[x: string]: import('tailwind-variants').ClassValue | {
|
|
11
|
+
root?: import('tailwind-variants').ClassValue;
|
|
12
|
+
legend?: import('tailwind-variants').ClassValue;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
} | {}, {
|
|
@@ -17,15 +17,15 @@ export declare const fieldsetVariants: import('tailwind-variants').TVReturnType<
|
|
|
17
17
|
legend: string[];
|
|
18
18
|
}, undefined, {
|
|
19
19
|
[key: string]: {
|
|
20
|
-
[key: string]: import('tailwind-
|
|
21
|
-
root?: import('tailwind-
|
|
22
|
-
legend?: import('tailwind-
|
|
20
|
+
[key: string]: import('tailwind-variants').ClassValue | {
|
|
21
|
+
root?: import('tailwind-variants').ClassValue;
|
|
22
|
+
legend?: import('tailwind-variants').ClassValue;
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
} | {}, {
|
|
26
26
|
root: string[];
|
|
27
27
|
legend: string[];
|
|
28
|
-
}, import('tailwind-variants').
|
|
28
|
+
}, import('tailwind-variants').TVReturnTypeLike<unknown, {
|
|
29
29
|
root: string[];
|
|
30
30
|
legend: string[];
|
|
31
|
-
}
|
|
31
|
+
}>>;
|
|
@@ -8,7 +8,7 @@ var { Provider: a, useRequiredContext: o } = e("OxFooter");
|
|
|
8
8
|
function s(e) {
|
|
9
9
|
let o = n(29), s, c, l, u, d;
|
|
10
10
|
o[0] === e ? (s = o[1], c = o[2], l = o[3], u = o[4], d = o[5]) : ({bordered: d, children: s, className: c, render: u, ...l} = e, o[0] = e, o[1] = s, o[2] = c, o[3] = l, o[4] = u, o[5] = d);
|
|
11
|
-
let f = d === void 0
|
|
11
|
+
let f = d === void 0 || d, p, m, h, g, _;
|
|
12
12
|
o[6] !== f || o[7] !== c || o[8] !== l || o[9] !== u ? (p = t({ bordered: f }), _ = i, o[15] === u ? g = o[16] : (g = u ?? /* @__PURE__ */ r("footer", {}), o[15] = u, o[16] = g), m = l, h = p.root({ class: c }), o[6] = f, o[7] = c, o[8] = l, o[9] = u, o[10] = p, o[11] = m, o[12] = h, o[13] = g, o[14] = _) : (p = o[10], m = o[11], h = o[12], g = o[13], _ = o[14]);
|
|
13
13
|
let v;
|
|
14
14
|
o[17] !== s || o[18] !== m || o[19] !== h ? (v = {
|
|
@@ -43,7 +43,7 @@ export declare const footerVariants: import('tailwind-variants').TVReturnType<{
|
|
|
43
43
|
bottom: string[];
|
|
44
44
|
copyright: string;
|
|
45
45
|
legal: string[];
|
|
46
|
-
}, import('tailwind-variants').
|
|
46
|
+
}, import('tailwind-variants').TVReturnTypeLike<{
|
|
47
47
|
bordered: {
|
|
48
48
|
true: {
|
|
49
49
|
root: string;
|
|
@@ -65,5 +65,5 @@ export declare const footerVariants: import('tailwind-variants').TVReturnType<{
|
|
|
65
65
|
bottom: string[];
|
|
66
66
|
copyright: string;
|
|
67
67
|
legal: string[];
|
|
68
|
-
}
|
|
68
|
+
}>>;
|
|
69
69
|
export type FooterVariants = VariantProps<typeof footerVariants>;
|
|
@@ -8,7 +8,7 @@ var { Provider: a, useRequiredContext: o } = e("OxHeader");
|
|
|
8
8
|
function s(e) {
|
|
9
9
|
let o = n(36), s, c, l, u, d, f, p;
|
|
10
10
|
o[0] === e ? (s = o[1], c = o[2], l = o[3], u = o[4], d = o[5], f = o[6], p = o[7]) : ({bordered: d, children: s, className: c, render: u, sticky: f, variant: p, ...l} = e, o[0] = e, o[1] = s, o[2] = c, o[3] = l, o[4] = u, o[5] = d, o[6] = f, o[7] = p);
|
|
11
|
-
let m = d === void 0
|
|
11
|
+
let m = d === void 0 || d, h = f !== void 0 && f, g = p === void 0 ? "solid" : p, _, v, y, b, x;
|
|
12
12
|
o[8] !== m || o[9] !== c || o[10] !== l || o[11] !== u || o[12] !== g ? (_ = t({
|
|
13
13
|
variant: g,
|
|
14
14
|
bordered: m
|
|
@@ -49,7 +49,7 @@ export declare const headerVariants: import('tailwind-variants').TVReturnType<{
|
|
|
49
49
|
brandSubtitle: string;
|
|
50
50
|
content: string;
|
|
51
51
|
actions: string;
|
|
52
|
-
}, import('tailwind-variants').
|
|
52
|
+
}, import('tailwind-variants').TVReturnTypeLike<{
|
|
53
53
|
variant: {
|
|
54
54
|
solid: {
|
|
55
55
|
root: string;
|
|
@@ -74,5 +74,5 @@ export declare const headerVariants: import('tailwind-variants').TVReturnType<{
|
|
|
74
74
|
brandSubtitle: string;
|
|
75
75
|
content: string;
|
|
76
76
|
actions: string;
|
|
77
|
-
}
|
|
77
|
+
}>>;
|
|
78
78
|
export type HeaderVariants = VariantProps<typeof headerVariants>;
|
|
@@ -6,7 +6,7 @@ var t = e({
|
|
|
6
6
|
"flex items-center justify-between gap-3.5 w-full",
|
|
7
7
|
"h-14 px-6 ox-console:h-13 ox-console:px-5",
|
|
8
8
|
"transition-colors",
|
|
9
|
-
"data-[sticky]:sticky data-[sticky]:top-0 data-[sticky]:z-
|
|
9
|
+
"data-[sticky]:sticky data-[sticky]:top-0 data-[sticky]:z-(--z-sticky)"
|
|
10
10
|
],
|
|
11
11
|
brand: "flex items-center gap-2.5 text-base font-semibold tracking-tight text-fg",
|
|
12
12
|
brandMark: [
|