@uipath/apollo-wind 2.6.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.
@@ -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: "rounded-md border overflow-auto",
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: `h-full w-px mx-auto ${header.column.getIsResizing() ? 'bg-primary' : 'group-hover:bg-primary/50'}`
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: "rounded-md border overflow-auto",
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: `h-full w-px mx-auto ${header.column.getIsResizing() ? 'bg-primary' : 'group-hover:bg-primary/50'}`
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
- "@/components/ui/badge" (module) {
18
+ "./badge" (module) {
19
19
  module.exports = require("./badge.cjs");
20
20
  },
21
21
  "./breadcrumb" (module) {
@@ -30,22 +30,22 @@ var __webpack_modules__ = {
30
30
  "@/components/ui/calendar" (module) {
31
31
  module.exports = require("./calendar.cjs");
32
32
  },
33
- "@/components/ui/card" (module) {
33
+ "./card" (module) {
34
34
  module.exports = require("./card.cjs");
35
35
  },
36
- "@/components/ui/checkbox" (module) {
36
+ "./checkbox" (module) {
37
37
  module.exports = require("./checkbox.cjs");
38
38
  },
39
- "@/components/ui/collapsible" (module) {
39
+ "./collapsible" (module) {
40
40
  module.exports = require("./collapsible.cjs");
41
41
  },
42
42
  "./combobox" (module) {
43
43
  module.exports = require("./combobox.cjs");
44
44
  },
45
- "@/components/ui/command" (module) {
45
+ "./command" (module) {
46
46
  module.exports = require("./command.cjs");
47
47
  },
48
- "@/components/ui/context-menu" (module) {
48
+ "./context-menu" (module) {
49
49
  module.exports = require("./context-menu.cjs");
50
50
  },
51
51
  "./data-table" (module) {
@@ -57,13 +57,13 @@ var __webpack_modules__ = {
57
57
  "./datetime-picker" (module) {
58
58
  module.exports = require("./datetime-picker.cjs");
59
59
  },
60
- "@/components/ui/dialog" (module) {
60
+ "./dialog" (module) {
61
61
  module.exports = require("./dialog.cjs");
62
62
  },
63
- "@/components/ui/dropdown-menu" (module) {
63
+ "./dropdown-menu" (module) {
64
64
  module.exports = require("./dropdown-menu.cjs");
65
65
  },
66
- "@/components/ui/editable-cell" (module) {
66
+ "./editable-cell" (module) {
67
67
  module.exports = require("./editable-cell.cjs");
68
68
  },
69
69
  "./empty-state" (module) {
@@ -72,13 +72,13 @@ var __webpack_modules__ = {
72
72
  "./file-upload" (module) {
73
73
  module.exports = require("./file-upload.cjs");
74
74
  },
75
- "@/components/ui/hover-card" (module) {
75
+ "./hover-card" (module) {
76
76
  module.exports = require("./hover-card.cjs");
77
77
  },
78
- "@/components/ui/input" (module) {
78
+ "./input" (module) {
79
79
  module.exports = require("./input.cjs");
80
80
  },
81
- "@/components/ui/label" (module) {
81
+ "./label" (module) {
82
82
  module.exports = require("./label.cjs");
83
83
  },
84
84
  "./layout" (module) {
@@ -150,7 +150,7 @@ var __webpack_modules__ = {
150
150
  "./toggle-group" (module) {
151
151
  module.exports = require("./toggle-group.cjs");
152
152
  },
153
- "@/components/ui/toggle" (module) {
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__("@/components/ui/badge");
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,21 +276,21 @@ 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__("@/components/ui/card");
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__("@/components/ui/checkbox");
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",
290
290
  "default"
291
291
  ].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_checkbox__rspack_import_11[__rspack_import_key];
292
292
  __webpack_require__.d(__webpack_exports__, __rspack_reexport);
293
- var _collapsible__rspack_import_12 = __webpack_require__("@/components/ui/collapsible");
293
+ var _collapsible__rspack_import_12 = __webpack_require__("./collapsible");
294
294
  var __rspack_reexport = {};
295
295
  for(const __rspack_import_key in _collapsible__rspack_import_12)if ([
296
296
  "TreeView",
@@ -304,14 +304,14 @@ 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__("@/components/ui/command");
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",
311
311
  "default"
312
312
  ].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_command__rspack_import_14[__rspack_import_key];
313
313
  __webpack_require__.d(__webpack_exports__, __rspack_reexport);
314
- var _context_menu__rspack_import_15 = __webpack_require__("@/components/ui/context-menu");
314
+ var _context_menu__rspack_import_15 = __webpack_require__("./context-menu");
315
315
  var __rspack_reexport = {};
316
316
  for(const __rspack_import_key in _context_menu__rspack_import_15)if ([
317
317
  "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__("@/components/ui/dialog");
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__("@/components/ui/dropdown-menu");
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__("@/components/ui/editable-cell");
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",
@@ -374,21 +374,21 @@ var __webpack_exports__ = {};
374
374
  "default"
375
375
  ].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_file_upload__rspack_import_23[__rspack_import_key];
376
376
  __webpack_require__.d(__webpack_exports__, __rspack_reexport);
377
- var _hover_card__rspack_import_24 = __webpack_require__("@/components/ui/hover-card");
377
+ var _hover_card__rspack_import_24 = __webpack_require__("./hover-card");
378
378
  var __rspack_reexport = {};
379
379
  for(const __rspack_import_key in _hover_card__rspack_import_24)if ([
380
380
  "TreeView",
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__("@/components/ui/input");
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__("@/components/ui/label");
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",
@@ -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__("@/components/ui/toggle");
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';
@@ -3,10 +3,10 @@ import { type VariantProps } from 'class-variance-authority';
3
3
  import * as React from 'react';
4
4
  declare const ToggleGroup: React.ForwardRefExoticComponent<((Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement>, "ref">) & VariantProps<(props?: ({
5
5
  variant?: "default" | "outline" | null | undefined;
6
- size?: "default" | "lg" | "sm" | null | undefined;
6
+ size?: "default" | "lg" | "sm" | "xs" | null | undefined;
7
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string>) & React.RefAttributes<HTMLDivElement>>;
8
8
  declare const ToggleGroupItem: React.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
9
9
  variant?: "default" | "outline" | null | undefined;
10
- size?: "default" | "lg" | "sm" | null | undefined;
10
+ size?: "default" | "lg" | "sm" | "xs" | null | undefined;
11
11
  } & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
12
12
  export { ToggleGroup, ToggleGroupItem };
@@ -42,7 +42,8 @@ const toggleVariants = (0, external_class_variance_authority_namespaceObject.cva
42
42
  size: {
43
43
  default: 'h-10 px-3 min-w-10',
44
44
  sm: 'h-9 px-2.5 min-w-9',
45
- lg: 'h-11 px-5 min-w-11'
45
+ lg: 'h-11 px-5 min-w-11',
46
+ xs: 'h-6 px-2 min-w-6 text-xs'
46
47
  }
47
48
  },
48
49
  defaultVariants: {
@@ -3,10 +3,10 @@ import { type VariantProps } from 'class-variance-authority';
3
3
  import * as React from 'react';
4
4
  declare const toggleVariants: (props?: ({
5
5
  variant?: "default" | "outline" | null | undefined;
6
- size?: "default" | "lg" | "sm" | null | undefined;
6
+ size?: "default" | "lg" | "sm" | "xs" | null | undefined;
7
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
8
  declare const Toggle: React.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
9
9
  variant?: "default" | "outline" | null | undefined;
10
- size?: "default" | "lg" | "sm" | null | undefined;
10
+ size?: "default" | "lg" | "sm" | "xs" | null | undefined;
11
11
  } & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
12
12
  export { Toggle, toggleVariants };
@@ -13,7 +13,8 @@ const toggleVariants = cva('inline-flex items-center justify-center rounded-md t
13
13
  size: {
14
14
  default: 'h-10 px-3 min-w-10',
15
15
  sm: 'h-9 px-2.5 min-w-9',
16
- lg: 'h-11 px-5 min-w-11'
16
+ lg: 'h-11 px-5 min-w-11',
17
+ xs: 'h-6 px-2 min-w-6 text-xs'
17
18
  }
18
19
  },
19
20
  defaultVariants: {
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
  }
@@ -1497,6 +1500,9 @@
1497
1500
  .min-w-5 {
1498
1501
  min-width: calc(var(--spacing) * 5);
1499
1502
  }
1503
+ .min-w-6 {
1504
+ min-width: calc(var(--spacing) * 6);
1505
+ }
1500
1506
  .min-w-9 {
1501
1507
  min-width: calc(var(--spacing) * 9);
1502
1508
  }
@@ -1894,6 +1900,9 @@
1894
1900
  .overflow-hidden {
1895
1901
  overflow: hidden;
1896
1902
  }
1903
+ .overflow-visible {
1904
+ overflow: visible;
1905
+ }
1897
1906
  .overflow-x-auto {
1898
1907
  overflow-x: auto;
1899
1908
  }
@@ -4128,6 +4137,13 @@
4128
4137
  background-color: var(--foreground-accent);
4129
4138
  }
4130
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
+ }
4131
4147
  .group-hover\:scale-\[1\.2\] {
4132
4148
  &:is(:where(.group):hover *) {
4133
4149
  @media (hover: hover) {
@@ -4164,13 +4180,10 @@
4164
4180
  }
4165
4181
  }
4166
4182
  }
4167
- .group-hover\:bg-primary\/50 {
4183
+ .group-hover\:bg-primary {
4168
4184
  &:is(:where(.group):hover *) {
4169
4185
  @media (hover: hover) {
4170
4186
  background-color: var(--primary);
4171
- @supports (color: color-mix(in lab, red, red)) {
4172
- background-color: color-mix(in oklab, var(--primary) 50%, transparent);
4173
- }
4174
4187
  }
4175
4188
  }
4176
4189
  }
@@ -6318,6 +6331,21 @@
6318
6331
  padding-left: calc(var(--spacing) * 7);
6319
6332
  }
6320
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
+ }
6321
6349
  .\[\&\>tr\]\:last\:border-b-0 {
6322
6350
  &>tr {
6323
6351
  &:last-child {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/apollo-wind",
3
- "version": "2.6.0",
3
+ "version": "2.7.1",
4
4
  "description": "UiPath wind design system - A Tailwind CSS based React component library",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",