@uipath/apollo-wind 2.7.0 → 2.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/components/ui/data-table.cjs +25 -5
- package/dist/components/ui/data-table.d.ts +7 -1
- package/dist/components/ui/data-table.js +25 -5
- package/dist/components/ui/index.cjs +22 -22
- package/dist/components/ui/table.cjs +2 -2
- package/dist/components/ui/table.js +2 -2
- package/dist/styles.css +29 -4
- package/package.json +1 -1
|
@@ -37,8 +37,11 @@ const external_dropdown_menu_cjs_namespaceObject = require("./dropdown-menu.cjs"
|
|
|
37
37
|
const external_editable_cell_cjs_namespaceObject = require("./editable-cell.cjs");
|
|
38
38
|
const external_input_cjs_namespaceObject = require("./input.cjs");
|
|
39
39
|
const external_table_cjs_namespaceObject = require("./table.cjs");
|
|
40
|
+
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
40
41
|
const react_table_namespaceObject = require("@tanstack/react-table");
|
|
41
|
-
function DataTable({ columns, data, searchKey, searchPlaceholder = 'Search...', showColumnToggle = true, showPagination = true, pageSize = 10, editable = false, onCellUpdate, resizable = false, compact = false, columnToggleText = 'Columns', rowSelection: controlledRowSelection, onRowSelectionChange: controlledOnRowSelectionChange, toolbarContent }) {
|
|
42
|
+
function DataTable({ columns, data, searchKey, searchPlaceholder = 'Search...', showColumnToggle = true, showPagination = true, pageSize = 10, editable = false, onCellUpdate, resizable = false, compact = false, columnToggleText = 'Columns', rowSelection: controlledRowSelection, onRowSelectionChange: controlledOnRowSelectionChange, toolbarContent, maxBodyHeight }) {
|
|
43
|
+
const useBlockLayout = void 0 !== maxBodyHeight;
|
|
44
|
+
const blockRowClasses = '[&>tr]:table [&>tr]:w-full [&>tr]:table-fixed';
|
|
42
45
|
const [sorting, setSorting] = external_react_namespaceObject.useState([]);
|
|
43
46
|
const [columnFilters, setColumnFilters] = external_react_namespaceObject.useState([]);
|
|
44
47
|
const [columnVisibility, setColumnVisibility] = external_react_namespaceObject.useState({});
|
|
@@ -142,19 +145,21 @@ function DataTable({ columns, data, searchKey, searchPlaceholder = 'Search...',
|
|
|
142
145
|
]
|
|
143
146
|
}),
|
|
144
147
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
145
|
-
className:
|
|
148
|
+
className: (0, index_cjs_namespaceObject.cn)('rounded-md border', useBlockLayout ? 'overflow-x-auto' : 'overflow-auto'),
|
|
146
149
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_table_cjs_namespaceObject.Table, {
|
|
150
|
+
className: useBlockLayout ? 'block' : void 0,
|
|
147
151
|
style: resizable ? {
|
|
148
152
|
width: table.getTotalSize(),
|
|
149
153
|
tableLayout: 'fixed'
|
|
150
154
|
} : void 0,
|
|
151
155
|
children: [
|
|
152
156
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_table_cjs_namespaceObject.TableHeader, {
|
|
157
|
+
className: (0, index_cjs_namespaceObject.cn)('sticky top-0 z-10 bg-background', useBlockLayout && `block ${blockRowClasses}`),
|
|
153
158
|
children: table.getHeaderGroups().map((headerGroup)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_table_cjs_namespaceObject.TableRow, {
|
|
154
159
|
children: headerGroup.headers.map((header)=>{
|
|
155
160
|
const { column } = header;
|
|
156
161
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_table_cjs_namespaceObject.TableHead, {
|
|
157
|
-
className: compact ? 'relative h-8 px-2 py-0' : 'relative py-0',
|
|
162
|
+
className: (0, index_cjs_namespaceObject.cn)(compact ? 'relative h-8 px-2 py-0' : 'relative py-0', resizable && 'overflow-visible'),
|
|
158
163
|
style: {
|
|
159
164
|
width: resizable ? header.getSize() : 150 !== column.getSize() ? column.getSize() : void 0,
|
|
160
165
|
minWidth: column.columnDef.minSize,
|
|
@@ -173,7 +178,7 @@ function DataTable({ columns, data, searchKey, searchPlaceholder = 'Search...',
|
|
|
173
178
|
onTouchStart: header.getResizeHandler(),
|
|
174
179
|
className: "absolute -right-1 top-0 z-10 h-full w-2 cursor-col-resize select-none touch-none group",
|
|
175
180
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
176
|
-
className:
|
|
181
|
+
className: (0, index_cjs_namespaceObject.cn)('h-full mx-auto transition-all duration-150', header.column.getIsResizing() ? 'w-0.5 bg-primary' : 'w-px group-hover:w-0.5 group-hover:bg-primary')
|
|
177
182
|
})
|
|
178
183
|
})
|
|
179
184
|
]
|
|
@@ -182,12 +187,22 @@ function DataTable({ columns, data, searchKey, searchPlaceholder = 'Search...',
|
|
|
182
187
|
}, headerGroup.id))
|
|
183
188
|
}),
|
|
184
189
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_table_cjs_namespaceObject.TableBody, {
|
|
190
|
+
className: useBlockLayout ? (0, index_cjs_namespaceObject.cn)('block overflow-y-auto', blockRowClasses) : void 0,
|
|
191
|
+
style: useBlockLayout ? {
|
|
192
|
+
maxHeight: maxBodyHeight
|
|
193
|
+
} : void 0,
|
|
194
|
+
tabIndex: useBlockLayout ? 0 : void 0,
|
|
185
195
|
children: table.getRowModel().rows?.length ? table.getRowModel().rows.map((row)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_table_cjs_namespaceObject.TableRow, {
|
|
186
196
|
"data-state": row.getIsSelected() && 'selected',
|
|
187
197
|
children: row.getVisibleCells().map((cell)=>{
|
|
188
198
|
const { column } = cell;
|
|
189
199
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_table_cjs_namespaceObject.TableCell, {
|
|
190
200
|
className: compact ? 'h-8 truncate px-2 py-0' : 'h-12 truncate px-4 py-0',
|
|
201
|
+
onMouseEnter: (e)=>{
|
|
202
|
+
const el = e.currentTarget;
|
|
203
|
+
const value = cell.getValue();
|
|
204
|
+
el.title = el.scrollWidth > el.clientWidth && ('string' == typeof value || 'number' == typeof value) ? String(value) : '';
|
|
205
|
+
},
|
|
191
206
|
style: {
|
|
192
207
|
width: resizable ? cell.column.getSize() : 150 !== column.getSize() ? column.getSize() : void 0,
|
|
193
208
|
minWidth: column.columnDef.minSize,
|
|
@@ -263,10 +278,15 @@ function DataTableColumnHeader({ column, title, children }) {
|
|
|
263
278
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_button_cjs_namespaceObject.Button, {
|
|
264
279
|
variant: "ghost",
|
|
265
280
|
size: "sm",
|
|
266
|
-
className: "-ml-3 h-8 data-[state=open]:bg-accent",
|
|
281
|
+
className: "-ml-3 h-8 max-w-full data-[state=open]:bg-accent",
|
|
267
282
|
onClick: handleClick,
|
|
283
|
+
onMouseEnter: (e)=>{
|
|
284
|
+
const span = e.currentTarget.querySelector('span');
|
|
285
|
+
e.currentTarget.title = span && span.scrollWidth > span.clientWidth ? title : '';
|
|
286
|
+
},
|
|
268
287
|
children: [
|
|
269
288
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
289
|
+
className: "truncate min-w-0",
|
|
270
290
|
children: title
|
|
271
291
|
}),
|
|
272
292
|
children,
|
|
@@ -16,8 +16,14 @@ export interface DataTableProps<TData, TValue> {
|
|
|
16
16
|
rowSelection?: RowSelectionState;
|
|
17
17
|
onRowSelectionChange?: (selection: RowSelectionState) => void;
|
|
18
18
|
toolbarContent?: React.ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* When set, the table body scrolls independently with this max height (any CSS length).
|
|
21
|
+
* The header stays above the scroll region and the vertical scrollbar is confined to the
|
|
22
|
+
* body, leaving the header row clear of scrollbar tracks.
|
|
23
|
+
*/
|
|
24
|
+
maxBodyHeight?: string;
|
|
19
25
|
}
|
|
20
|
-
export declare function DataTable<TData, TValue>({ columns, data, searchKey, searchPlaceholder, showColumnToggle, showPagination, pageSize, editable, onCellUpdate, resizable, compact, columnToggleText, rowSelection: controlledRowSelection, onRowSelectionChange: controlledOnRowSelectionChange, toolbarContent, }: DataTableProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare function DataTable<TData, TValue>({ columns, data, searchKey, searchPlaceholder, showColumnToggle, showPagination, pageSize, editable, onCellUpdate, resizable, compact, columnToggleText, rowSelection: controlledRowSelection, onRowSelectionChange: controlledOnRowSelectionChange, toolbarContent, maxBodyHeight, }: DataTableProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
|
|
21
27
|
export declare function DataTableColumnHeader<TData, TValue>({ column, title, children, }: {
|
|
22
28
|
column: Column<TData, TValue>;
|
|
23
29
|
title: string;
|
|
@@ -7,8 +7,11 @@ import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMe
|
|
|
7
7
|
import { EditableCell } from "./editable-cell.js";
|
|
8
8
|
import { Input } from "./input.js";
|
|
9
9
|
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "./table.js";
|
|
10
|
+
import { cn } from "../../lib/index.js";
|
|
10
11
|
import { flexRender, getCoreRowModel, getFilteredRowModel, getPaginationRowModel, getSortedRowModel, useReactTable } from "@tanstack/react-table";
|
|
11
|
-
function DataTable({ columns, data, searchKey, searchPlaceholder = 'Search...', showColumnToggle = true, showPagination = true, pageSize = 10, editable = false, onCellUpdate, resizable = false, compact = false, columnToggleText = 'Columns', rowSelection: controlledRowSelection, onRowSelectionChange: controlledOnRowSelectionChange, toolbarContent }) {
|
|
12
|
+
function DataTable({ columns, data, searchKey, searchPlaceholder = 'Search...', showColumnToggle = true, showPagination = true, pageSize = 10, editable = false, onCellUpdate, resizable = false, compact = false, columnToggleText = 'Columns', rowSelection: controlledRowSelection, onRowSelectionChange: controlledOnRowSelectionChange, toolbarContent, maxBodyHeight }) {
|
|
13
|
+
const useBlockLayout = void 0 !== maxBodyHeight;
|
|
14
|
+
const blockRowClasses = '[&>tr]:table [&>tr]:w-full [&>tr]:table-fixed';
|
|
12
15
|
const [sorting, setSorting] = useState([]);
|
|
13
16
|
const [columnFilters, setColumnFilters] = useState([]);
|
|
14
17
|
const [columnVisibility, setColumnVisibility] = useState({});
|
|
@@ -112,19 +115,21 @@ function DataTable({ columns, data, searchKey, searchPlaceholder = 'Search...',
|
|
|
112
115
|
]
|
|
113
116
|
}),
|
|
114
117
|
/*#__PURE__*/ jsx("div", {
|
|
115
|
-
className:
|
|
118
|
+
className: cn('rounded-md border', useBlockLayout ? 'overflow-x-auto' : 'overflow-auto'),
|
|
116
119
|
children: /*#__PURE__*/ jsxs(Table, {
|
|
120
|
+
className: useBlockLayout ? 'block' : void 0,
|
|
117
121
|
style: resizable ? {
|
|
118
122
|
width: table.getTotalSize(),
|
|
119
123
|
tableLayout: 'fixed'
|
|
120
124
|
} : void 0,
|
|
121
125
|
children: [
|
|
122
126
|
/*#__PURE__*/ jsx(TableHeader, {
|
|
127
|
+
className: cn('sticky top-0 z-10 bg-background', useBlockLayout && `block ${blockRowClasses}`),
|
|
123
128
|
children: table.getHeaderGroups().map((headerGroup)=>/*#__PURE__*/ jsx(TableRow, {
|
|
124
129
|
children: headerGroup.headers.map((header)=>{
|
|
125
130
|
const { column } = header;
|
|
126
131
|
return /*#__PURE__*/ jsxs(TableHead, {
|
|
127
|
-
className: compact ? 'relative h-8 px-2 py-0' : 'relative py-0',
|
|
132
|
+
className: cn(compact ? 'relative h-8 px-2 py-0' : 'relative py-0', resizable && 'overflow-visible'),
|
|
128
133
|
style: {
|
|
129
134
|
width: resizable ? header.getSize() : 150 !== column.getSize() ? column.getSize() : void 0,
|
|
130
135
|
minWidth: column.columnDef.minSize,
|
|
@@ -143,7 +148,7 @@ function DataTable({ columns, data, searchKey, searchPlaceholder = 'Search...',
|
|
|
143
148
|
onTouchStart: header.getResizeHandler(),
|
|
144
149
|
className: "absolute -right-1 top-0 z-10 h-full w-2 cursor-col-resize select-none touch-none group",
|
|
145
150
|
children: /*#__PURE__*/ jsx("div", {
|
|
146
|
-
className:
|
|
151
|
+
className: cn('h-full mx-auto transition-all duration-150', header.column.getIsResizing() ? 'w-0.5 bg-primary' : 'w-px group-hover:w-0.5 group-hover:bg-primary')
|
|
147
152
|
})
|
|
148
153
|
})
|
|
149
154
|
]
|
|
@@ -152,12 +157,22 @@ function DataTable({ columns, data, searchKey, searchPlaceholder = 'Search...',
|
|
|
152
157
|
}, headerGroup.id))
|
|
153
158
|
}),
|
|
154
159
|
/*#__PURE__*/ jsx(TableBody, {
|
|
160
|
+
className: useBlockLayout ? cn('block overflow-y-auto', blockRowClasses) : void 0,
|
|
161
|
+
style: useBlockLayout ? {
|
|
162
|
+
maxHeight: maxBodyHeight
|
|
163
|
+
} : void 0,
|
|
164
|
+
tabIndex: useBlockLayout ? 0 : void 0,
|
|
155
165
|
children: table.getRowModel().rows?.length ? table.getRowModel().rows.map((row)=>/*#__PURE__*/ jsx(TableRow, {
|
|
156
166
|
"data-state": row.getIsSelected() && 'selected',
|
|
157
167
|
children: row.getVisibleCells().map((cell)=>{
|
|
158
168
|
const { column } = cell;
|
|
159
169
|
return /*#__PURE__*/ jsx(TableCell, {
|
|
160
170
|
className: compact ? 'h-8 truncate px-2 py-0' : 'h-12 truncate px-4 py-0',
|
|
171
|
+
onMouseEnter: (e)=>{
|
|
172
|
+
const el = e.currentTarget;
|
|
173
|
+
const value = cell.getValue();
|
|
174
|
+
el.title = el.scrollWidth > el.clientWidth && ('string' == typeof value || 'number' == typeof value) ? String(value) : '';
|
|
175
|
+
},
|
|
161
176
|
style: {
|
|
162
177
|
width: resizable ? cell.column.getSize() : 150 !== column.getSize() ? column.getSize() : void 0,
|
|
163
178
|
minWidth: column.columnDef.minSize,
|
|
@@ -233,10 +248,15 @@ function DataTableColumnHeader({ column, title, children }) {
|
|
|
233
248
|
return /*#__PURE__*/ jsxs(Button, {
|
|
234
249
|
variant: "ghost",
|
|
235
250
|
size: "sm",
|
|
236
|
-
className: "-ml-3 h-8 data-[state=open]:bg-accent",
|
|
251
|
+
className: "-ml-3 h-8 max-w-full data-[state=open]:bg-accent",
|
|
237
252
|
onClick: handleClick,
|
|
253
|
+
onMouseEnter: (e)=>{
|
|
254
|
+
const span = e.currentTarget.querySelector('span');
|
|
255
|
+
e.currentTarget.title = span && span.scrollWidth > span.clientWidth ? title : '';
|
|
256
|
+
},
|
|
238
257
|
children: [
|
|
239
258
|
/*#__PURE__*/ jsx("span", {
|
|
259
|
+
className: "truncate min-w-0",
|
|
240
260
|
children: title
|
|
241
261
|
}),
|
|
242
262
|
children,
|
|
@@ -15,7 +15,7 @@ var __webpack_modules__ = {
|
|
|
15
15
|
"./avatar" (module) {
|
|
16
16
|
module.exports = require("./avatar.cjs");
|
|
17
17
|
},
|
|
18
|
-
"
|
|
18
|
+
"./badge" (module) {
|
|
19
19
|
module.exports = require("./badge.cjs");
|
|
20
20
|
},
|
|
21
21
|
"./breadcrumb" (module) {
|
|
@@ -30,10 +30,10 @@ var __webpack_modules__ = {
|
|
|
30
30
|
"@/components/ui/calendar" (module) {
|
|
31
31
|
module.exports = require("./calendar.cjs");
|
|
32
32
|
},
|
|
33
|
-
"
|
|
33
|
+
"./card" (module) {
|
|
34
34
|
module.exports = require("./card.cjs");
|
|
35
35
|
},
|
|
36
|
-
"
|
|
36
|
+
"./checkbox" (module) {
|
|
37
37
|
module.exports = require("./checkbox.cjs");
|
|
38
38
|
},
|
|
39
39
|
"./collapsible" (module) {
|
|
@@ -42,7 +42,7 @@ var __webpack_modules__ = {
|
|
|
42
42
|
"./combobox" (module) {
|
|
43
43
|
module.exports = require("./combobox.cjs");
|
|
44
44
|
},
|
|
45
|
-
"
|
|
45
|
+
"./command" (module) {
|
|
46
46
|
module.exports = require("./command.cjs");
|
|
47
47
|
},
|
|
48
48
|
"./context-menu" (module) {
|
|
@@ -57,13 +57,13 @@ var __webpack_modules__ = {
|
|
|
57
57
|
"./datetime-picker" (module) {
|
|
58
58
|
module.exports = require("./datetime-picker.cjs");
|
|
59
59
|
},
|
|
60
|
-
"
|
|
60
|
+
"./dialog" (module) {
|
|
61
61
|
module.exports = require("./dialog.cjs");
|
|
62
62
|
},
|
|
63
|
-
"
|
|
63
|
+
"./dropdown-menu" (module) {
|
|
64
64
|
module.exports = require("./dropdown-menu.cjs");
|
|
65
65
|
},
|
|
66
|
-
"
|
|
66
|
+
"./editable-cell" (module) {
|
|
67
67
|
module.exports = require("./editable-cell.cjs");
|
|
68
68
|
},
|
|
69
69
|
"./empty-state" (module) {
|
|
@@ -75,10 +75,10 @@ var __webpack_modules__ = {
|
|
|
75
75
|
"./hover-card" (module) {
|
|
76
76
|
module.exports = require("./hover-card.cjs");
|
|
77
77
|
},
|
|
78
|
-
"
|
|
78
|
+
"./input" (module) {
|
|
79
79
|
module.exports = require("./input.cjs");
|
|
80
80
|
},
|
|
81
|
-
"
|
|
81
|
+
"./label" (module) {
|
|
82
82
|
module.exports = require("./label.cjs");
|
|
83
83
|
},
|
|
84
84
|
"./layout" (module) {
|
|
@@ -138,7 +138,7 @@ var __webpack_modules__ = {
|
|
|
138
138
|
"./switch" (module) {
|
|
139
139
|
module.exports = require("./switch.cjs");
|
|
140
140
|
},
|
|
141
|
-
"
|
|
141
|
+
"./table" (module) {
|
|
142
142
|
module.exports = require("./table.cjs");
|
|
143
143
|
},
|
|
144
144
|
"./tabs" (module) {
|
|
@@ -150,7 +150,7 @@ var __webpack_modules__ = {
|
|
|
150
150
|
"./toggle-group" (module) {
|
|
151
151
|
module.exports = require("./toggle-group.cjs");
|
|
152
152
|
},
|
|
153
|
-
"
|
|
153
|
+
"./toggle" (module) {
|
|
154
154
|
module.exports = require("./toggle.cjs");
|
|
155
155
|
},
|
|
156
156
|
"./tooltip" (module) {
|
|
@@ -241,7 +241,7 @@ var __webpack_exports__ = {};
|
|
|
241
241
|
"default"
|
|
242
242
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_avatar__rspack_import_4[__rspack_import_key];
|
|
243
243
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
244
|
-
var _badge__rspack_import_5 = __webpack_require__("
|
|
244
|
+
var _badge__rspack_import_5 = __webpack_require__("./badge");
|
|
245
245
|
var __rspack_reexport = {};
|
|
246
246
|
for(const __rspack_import_key in _badge__rspack_import_5)if ([
|
|
247
247
|
"TreeView",
|
|
@@ -276,14 +276,14 @@ var __webpack_exports__ = {};
|
|
|
276
276
|
"default"
|
|
277
277
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_calendar__rspack_import_9[__rspack_import_key];
|
|
278
278
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
279
|
-
var _card__rspack_import_10 = __webpack_require__("
|
|
279
|
+
var _card__rspack_import_10 = __webpack_require__("./card");
|
|
280
280
|
var __rspack_reexport = {};
|
|
281
281
|
for(const __rspack_import_key in _card__rspack_import_10)if ([
|
|
282
282
|
"TreeView",
|
|
283
283
|
"default"
|
|
284
284
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_card__rspack_import_10[__rspack_import_key];
|
|
285
285
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
286
|
-
var _checkbox__rspack_import_11 = __webpack_require__("
|
|
286
|
+
var _checkbox__rspack_import_11 = __webpack_require__("./checkbox");
|
|
287
287
|
var __rspack_reexport = {};
|
|
288
288
|
for(const __rspack_import_key in _checkbox__rspack_import_11)if ([
|
|
289
289
|
"TreeView",
|
|
@@ -304,7 +304,7 @@ var __webpack_exports__ = {};
|
|
|
304
304
|
"default"
|
|
305
305
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_combobox__rspack_import_13[__rspack_import_key];
|
|
306
306
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
307
|
-
var _command__rspack_import_14 = __webpack_require__("
|
|
307
|
+
var _command__rspack_import_14 = __webpack_require__("./command");
|
|
308
308
|
var __rspack_reexport = {};
|
|
309
309
|
for(const __rspack_import_key in _command__rspack_import_14)if ([
|
|
310
310
|
"TreeView",
|
|
@@ -339,21 +339,21 @@ var __webpack_exports__ = {};
|
|
|
339
339
|
"default"
|
|
340
340
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_datetime_picker__rspack_import_18[__rspack_import_key];
|
|
341
341
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
342
|
-
var _dialog__rspack_import_19 = __webpack_require__("
|
|
342
|
+
var _dialog__rspack_import_19 = __webpack_require__("./dialog");
|
|
343
343
|
var __rspack_reexport = {};
|
|
344
344
|
for(const __rspack_import_key in _dialog__rspack_import_19)if ([
|
|
345
345
|
"TreeView",
|
|
346
346
|
"default"
|
|
347
347
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_dialog__rspack_import_19[__rspack_import_key];
|
|
348
348
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
349
|
-
var _dropdown_menu__rspack_import_20 = __webpack_require__("
|
|
349
|
+
var _dropdown_menu__rspack_import_20 = __webpack_require__("./dropdown-menu");
|
|
350
350
|
var __rspack_reexport = {};
|
|
351
351
|
for(const __rspack_import_key in _dropdown_menu__rspack_import_20)if ([
|
|
352
352
|
"TreeView",
|
|
353
353
|
"default"
|
|
354
354
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_dropdown_menu__rspack_import_20[__rspack_import_key];
|
|
355
355
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
356
|
-
var _editable_cell__rspack_import_21 = __webpack_require__("
|
|
356
|
+
var _editable_cell__rspack_import_21 = __webpack_require__("./editable-cell");
|
|
357
357
|
var __rspack_reexport = {};
|
|
358
358
|
for(const __rspack_import_key in _editable_cell__rspack_import_21)if ([
|
|
359
359
|
"TreeView",
|
|
@@ -381,14 +381,14 @@ var __webpack_exports__ = {};
|
|
|
381
381
|
"default"
|
|
382
382
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_hover_card__rspack_import_24[__rspack_import_key];
|
|
383
383
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
384
|
-
var _input__rspack_import_25 = __webpack_require__("
|
|
384
|
+
var _input__rspack_import_25 = __webpack_require__("./input");
|
|
385
385
|
var __rspack_reexport = {};
|
|
386
386
|
for(const __rspack_import_key in _input__rspack_import_25)if ([
|
|
387
387
|
"TreeView",
|
|
388
388
|
"default"
|
|
389
389
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_input__rspack_import_25[__rspack_import_key];
|
|
390
390
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
391
|
-
var _label__rspack_import_26 = __webpack_require__("
|
|
391
|
+
var _label__rspack_import_26 = __webpack_require__("./label");
|
|
392
392
|
var __rspack_reexport = {};
|
|
393
393
|
for(const __rspack_import_key in _label__rspack_import_26)if ([
|
|
394
394
|
"TreeView",
|
|
@@ -528,7 +528,7 @@ var __webpack_exports__ = {};
|
|
|
528
528
|
"default"
|
|
529
529
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_switch__rspack_import_45[__rspack_import_key];
|
|
530
530
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
531
|
-
var _table__rspack_import_46 = __webpack_require__("
|
|
531
|
+
var _table__rspack_import_46 = __webpack_require__("./table");
|
|
532
532
|
var __rspack_reexport = {};
|
|
533
533
|
for(const __rspack_import_key in _table__rspack_import_46)if ([
|
|
534
534
|
"TreeView",
|
|
@@ -549,7 +549,7 @@ var __webpack_exports__ = {};
|
|
|
549
549
|
"default"
|
|
550
550
|
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_textarea__rspack_import_48[__rspack_import_key];
|
|
551
551
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
552
|
-
var _toggle__rspack_import_49 = __webpack_require__("
|
|
552
|
+
var _toggle__rspack_import_49 = __webpack_require__("./toggle");
|
|
553
553
|
var __rspack_reexport = {};
|
|
554
554
|
for(const __rspack_import_key in _toggle__rspack_import_49)if ([
|
|
555
555
|
"TreeView",
|
|
@@ -65,13 +65,13 @@ const TableFooter = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ c
|
|
|
65
65
|
TableFooter.displayName = 'TableFooter';
|
|
66
66
|
const TableRow = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("tr", {
|
|
67
67
|
ref: ref,
|
|
68
|
-
className: (0, index_cjs_namespaceObject.cn)('border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted', className),
|
|
68
|
+
className: (0, index_cjs_namespaceObject.cn)('border-b transition-colors bg-background hover:bg-muted/50 data-[state=selected]:bg-muted', className),
|
|
69
69
|
...props
|
|
70
70
|
}));
|
|
71
71
|
TableRow.displayName = 'TableRow';
|
|
72
72
|
const TableHead = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("th", {
|
|
73
73
|
ref: ref,
|
|
74
|
-
className: (0, index_cjs_namespaceObject.cn)('h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0', className),
|
|
74
|
+
className: (0, index_cjs_namespaceObject.cn)('h-12 px-4 text-left align-middle font-medium text-muted-foreground overflow-hidden bg-background [&:has([role=checkbox])]:pr-0', className),
|
|
75
75
|
...props
|
|
76
76
|
}));
|
|
77
77
|
TableHead.displayName = 'TableHead';
|
|
@@ -30,13 +30,13 @@ const TableFooter = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#
|
|
|
30
30
|
TableFooter.displayName = 'TableFooter';
|
|
31
31
|
const TableRow = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("tr", {
|
|
32
32
|
ref: ref,
|
|
33
|
-
className: cn('border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted', className),
|
|
33
|
+
className: cn('border-b transition-colors bg-background hover:bg-muted/50 data-[state=selected]:bg-muted', className),
|
|
34
34
|
...props
|
|
35
35
|
}));
|
|
36
36
|
TableRow.displayName = 'TableRow';
|
|
37
37
|
const TableHead = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("th", {
|
|
38
38
|
ref: ref,
|
|
39
|
-
className: cn('h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0', className),
|
|
39
|
+
className: cn('h-12 px-4 text-left align-middle font-medium text-muted-foreground overflow-hidden bg-background [&:has([role=checkbox])]:pr-0', className),
|
|
40
40
|
...props
|
|
41
41
|
}));
|
|
42
42
|
TableHead.displayName = 'TableHead';
|
package/dist/styles.css
CHANGED
|
@@ -1170,6 +1170,9 @@
|
|
|
1170
1170
|
.w-0 {
|
|
1171
1171
|
width: calc(var(--spacing) * 0);
|
|
1172
1172
|
}
|
|
1173
|
+
.w-0\.5 {
|
|
1174
|
+
width: calc(var(--spacing) * 0.5);
|
|
1175
|
+
}
|
|
1173
1176
|
.w-1 {
|
|
1174
1177
|
width: calc(var(--spacing) * 1);
|
|
1175
1178
|
}
|
|
@@ -1897,6 +1900,9 @@
|
|
|
1897
1900
|
.overflow-hidden {
|
|
1898
1901
|
overflow: hidden;
|
|
1899
1902
|
}
|
|
1903
|
+
.overflow-visible {
|
|
1904
|
+
overflow: visible;
|
|
1905
|
+
}
|
|
1900
1906
|
.overflow-x-auto {
|
|
1901
1907
|
overflow-x: auto;
|
|
1902
1908
|
}
|
|
@@ -4131,6 +4137,13 @@
|
|
|
4131
4137
|
background-color: var(--foreground-accent);
|
|
4132
4138
|
}
|
|
4133
4139
|
}
|
|
4140
|
+
.group-hover\:w-0\.5 {
|
|
4141
|
+
&:is(:where(.group):hover *) {
|
|
4142
|
+
@media (hover: hover) {
|
|
4143
|
+
width: calc(var(--spacing) * 0.5);
|
|
4144
|
+
}
|
|
4145
|
+
}
|
|
4146
|
+
}
|
|
4134
4147
|
.group-hover\:scale-\[1\.2\] {
|
|
4135
4148
|
&:is(:where(.group):hover *) {
|
|
4136
4149
|
@media (hover: hover) {
|
|
@@ -4167,13 +4180,10 @@
|
|
|
4167
4180
|
}
|
|
4168
4181
|
}
|
|
4169
4182
|
}
|
|
4170
|
-
.group-hover\:bg-primary
|
|
4183
|
+
.group-hover\:bg-primary {
|
|
4171
4184
|
&:is(:where(.group):hover *) {
|
|
4172
4185
|
@media (hover: hover) {
|
|
4173
4186
|
background-color: var(--primary);
|
|
4174
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
4175
|
-
background-color: color-mix(in oklab, var(--primary) 50%, transparent);
|
|
4176
|
-
}
|
|
4177
4187
|
}
|
|
4178
4188
|
}
|
|
4179
4189
|
}
|
|
@@ -6321,6 +6331,21 @@
|
|
|
6321
6331
|
padding-left: calc(var(--spacing) * 7);
|
|
6322
6332
|
}
|
|
6323
6333
|
}
|
|
6334
|
+
.\[\&\>tr\]\:table {
|
|
6335
|
+
&>tr {
|
|
6336
|
+
display: table;
|
|
6337
|
+
}
|
|
6338
|
+
}
|
|
6339
|
+
.\[\&\>tr\]\:w-full {
|
|
6340
|
+
&>tr {
|
|
6341
|
+
width: 100%;
|
|
6342
|
+
}
|
|
6343
|
+
}
|
|
6344
|
+
.\[\&\>tr\]\:table-fixed {
|
|
6345
|
+
&>tr {
|
|
6346
|
+
table-layout: fixed;
|
|
6347
|
+
}
|
|
6348
|
+
}
|
|
6324
6349
|
.\[\&\>tr\]\:last\:border-b-0 {
|
|
6325
6350
|
&>tr {
|
|
6326
6351
|
&:last-child {
|