@uipath/apollo-wind 2.7.1 → 2.9.0
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 +58 -14
- package/dist/components/ui/data-table.d.ts +24 -2
- package/dist/components/ui/data-table.js +59 -15
- package/dist/components/ui/index.cjs +28 -28
- package/dist/components/ui/switch.cjs +34 -4
- package/dist/components/ui/switch.d.ts +8 -2
- package/dist/components/ui/switch.js +31 -4
- package/dist/styles.css +17 -0
- package/package.json +1 -1
|
@@ -39,24 +39,57 @@ const external_input_cjs_namespaceObject = require("./input.cjs");
|
|
|
39
39
|
const external_table_cjs_namespaceObject = require("./table.cjs");
|
|
40
40
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
41
41
|
const react_table_namespaceObject = require("@tanstack/react-table");
|
|
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 }) {
|
|
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, sorting: controlledSorting, onSortingChange: controlledOnSortingChange, initialSorting, columnSizing: controlledColumnSizing, onColumnSizingChange: controlledOnColumnSizingChange, columnVisibility: controlledColumnVisibility, onColumnVisibilityChange: controlledOnColumnVisibilityChange, globalFilterFn, allowWrap = false, toolbarContent, maxBodyHeight }) {
|
|
43
43
|
const useBlockLayout = void 0 !== maxBodyHeight;
|
|
44
44
|
const blockRowClasses = '[&>tr]:table [&>tr]:w-full [&>tr]:table-fixed';
|
|
45
|
-
const [
|
|
45
|
+
const [internalSorting, setInternalSorting] = external_react_namespaceObject.useState(initialSorting ?? []);
|
|
46
46
|
const [columnFilters, setColumnFilters] = external_react_namespaceObject.useState([]);
|
|
47
|
-
const [
|
|
47
|
+
const [internalColumnVisibility, setInternalColumnVisibility] = external_react_namespaceObject.useState({});
|
|
48
|
+
const [internalColumnSizing, setInternalColumnSizing] = external_react_namespaceObject.useState({});
|
|
48
49
|
const [internalRowSelection, setInternalRowSelection] = external_react_namespaceObject.useState({});
|
|
49
|
-
const
|
|
50
|
-
const
|
|
50
|
+
const [globalFilter, setGlobalFilter] = external_react_namespaceObject.useState('');
|
|
51
|
+
const isRowSelectionControlled = void 0 !== controlledRowSelection;
|
|
52
|
+
const rowSelection = isRowSelectionControlled ? controlledRowSelection : internalRowSelection;
|
|
53
|
+
const rowSelectionRef = external_react_namespaceObject.useRef(rowSelection);
|
|
54
|
+
rowSelectionRef.current = rowSelection;
|
|
51
55
|
const setRowSelection = external_react_namespaceObject.useCallback((updater)=>{
|
|
52
|
-
const next = 'function' == typeof updater ? updater(
|
|
53
|
-
if (!
|
|
56
|
+
const next = 'function' == typeof updater ? updater(rowSelectionRef.current) : updater;
|
|
57
|
+
if (!isRowSelectionControlled) setInternalRowSelection(next);
|
|
54
58
|
controlledOnRowSelectionChange?.(next);
|
|
55
59
|
}, [
|
|
56
|
-
|
|
57
|
-
rowSelection,
|
|
60
|
+
isRowSelectionControlled,
|
|
58
61
|
controlledOnRowSelectionChange
|
|
59
62
|
]);
|
|
63
|
+
const isSortingControlled = void 0 !== controlledSorting;
|
|
64
|
+
const sorting = isSortingControlled ? controlledSorting : internalSorting;
|
|
65
|
+
const onSortingChange = external_react_namespaceObject.useCallback((updater)=>{
|
|
66
|
+
if (!isSortingControlled) setInternalSorting((prev)=>'function' == typeof updater ? updater(prev) : updater);
|
|
67
|
+
controlledOnSortingChange?.(updater);
|
|
68
|
+
}, [
|
|
69
|
+
isSortingControlled,
|
|
70
|
+
controlledOnSortingChange
|
|
71
|
+
]);
|
|
72
|
+
const isColumnSizingControlled = void 0 !== controlledColumnSizing;
|
|
73
|
+
const columnSizing = isColumnSizingControlled ? controlledColumnSizing : internalColumnSizing;
|
|
74
|
+
const onColumnSizingChange = external_react_namespaceObject.useCallback((updater)=>{
|
|
75
|
+
if (!isColumnSizingControlled) setInternalColumnSizing((prev)=>'function' == typeof updater ? updater(prev) : updater);
|
|
76
|
+
controlledOnColumnSizingChange?.(updater);
|
|
77
|
+
}, [
|
|
78
|
+
isColumnSizingControlled,
|
|
79
|
+
controlledOnColumnSizingChange
|
|
80
|
+
]);
|
|
81
|
+
const isColumnVisibilityControlled = void 0 !== controlledColumnVisibility;
|
|
82
|
+
const columnVisibility = isColumnVisibilityControlled ? controlledColumnVisibility : internalColumnVisibility;
|
|
83
|
+
const onColumnVisibilityChange = external_react_namespaceObject.useCallback((updater)=>{
|
|
84
|
+
if (!isColumnVisibilityControlled) setInternalColumnVisibility((prev)=>'function' == typeof updater ? updater(prev) : updater);
|
|
85
|
+
controlledOnColumnVisibilityChange?.(updater);
|
|
86
|
+
}, [
|
|
87
|
+
isColumnVisibilityControlled,
|
|
88
|
+
controlledOnColumnVisibilityChange
|
|
89
|
+
]);
|
|
90
|
+
const tanstackGlobalFilterFn = external_react_namespaceObject.useMemo(()=>globalFilterFn ? (row, _columnId, filterValue)=>globalFilterFn(row.original, filterValue) : void 0, [
|
|
91
|
+
globalFilterFn
|
|
92
|
+
]);
|
|
60
93
|
const processedColumns = external_react_namespaceObject.useMemo(()=>{
|
|
61
94
|
if (!editable || !onCellUpdate) return columns;
|
|
62
95
|
return columns.map((col)=>{
|
|
@@ -80,21 +113,26 @@ function DataTable({ columns, data, searchKey, searchPlaceholder = 'Search...',
|
|
|
80
113
|
const table = (0, react_table_namespaceObject.useReactTable)({
|
|
81
114
|
data,
|
|
82
115
|
columns: processedColumns,
|
|
83
|
-
onSortingChange
|
|
116
|
+
onSortingChange,
|
|
84
117
|
onColumnFiltersChange: setColumnFilters,
|
|
85
118
|
getCoreRowModel: (0, react_table_namespaceObject.getCoreRowModel)(),
|
|
86
119
|
getPaginationRowModel: (0, react_table_namespaceObject.getPaginationRowModel)(),
|
|
87
120
|
getSortedRowModel: (0, react_table_namespaceObject.getSortedRowModel)(),
|
|
88
121
|
getFilteredRowModel: (0, react_table_namespaceObject.getFilteredRowModel)(),
|
|
89
|
-
onColumnVisibilityChange
|
|
122
|
+
onColumnVisibilityChange,
|
|
123
|
+
onColumnSizingChange,
|
|
90
124
|
onRowSelectionChange: setRowSelection,
|
|
125
|
+
onGlobalFilterChange: setGlobalFilter,
|
|
126
|
+
globalFilterFn: tanstackGlobalFilterFn,
|
|
91
127
|
enableColumnResizing: resizable,
|
|
92
128
|
columnResizeMode: 'onChange',
|
|
93
129
|
state: {
|
|
94
130
|
sorting,
|
|
95
131
|
columnFilters,
|
|
96
132
|
columnVisibility,
|
|
97
|
-
|
|
133
|
+
columnSizing,
|
|
134
|
+
rowSelection,
|
|
135
|
+
globalFilter
|
|
98
136
|
},
|
|
99
137
|
initialState: {
|
|
100
138
|
pagination: {
|
|
@@ -108,7 +146,12 @@ function DataTable({ columns, data, searchKey, searchPlaceholder = 'Search...',
|
|
|
108
146
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
109
147
|
className: "flex items-center gap-4 py-4",
|
|
110
148
|
children: [
|
|
111
|
-
|
|
149
|
+
globalFilterFn ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_input_cjs_namespaceObject.Input, {
|
|
150
|
+
placeholder: searchPlaceholder,
|
|
151
|
+
value: globalFilter,
|
|
152
|
+
onChange: (event)=>setGlobalFilter(event.target.value),
|
|
153
|
+
className: "max-w-sm"
|
|
154
|
+
}) : searchKey && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_input_cjs_namespaceObject.Input, {
|
|
112
155
|
placeholder: searchPlaceholder,
|
|
113
156
|
value: table.getColumn(searchKey)?.getFilterValue() ?? '',
|
|
114
157
|
onChange: (event)=>table.getColumn(searchKey)?.setFilterValue(event.target.value),
|
|
@@ -197,8 +240,9 @@ function DataTable({ columns, data, searchKey, searchPlaceholder = 'Search...',
|
|
|
197
240
|
children: row.getVisibleCells().map((cell)=>{
|
|
198
241
|
const { column } = cell;
|
|
199
242
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_table_cjs_namespaceObject.TableCell, {
|
|
200
|
-
className: compact ? 'h-8 truncate px-2 py-0' : 'h-12 truncate px-4 py-0',
|
|
243
|
+
className: (0, index_cjs_namespaceObject.cn)(allowWrap ? compact ? 'min-h-8 px-2 py-1' : 'min-h-12 px-4 py-2' : compact ? 'h-8 truncate px-2 py-0' : 'h-12 truncate px-4 py-0'),
|
|
201
244
|
onMouseEnter: (e)=>{
|
|
245
|
+
if (allowWrap) return;
|
|
202
246
|
const el = e.currentTarget;
|
|
203
247
|
const value = cell.getValue();
|
|
204
248
|
el.title = el.scrollWidth > el.clientWidth && ('string' == typeof value || 'number' == typeof value) ? String(value) : '';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Column, ColumnDef, RowSelectionState } from '@tanstack/react-table';
|
|
2
|
+
import { Column, ColumnDef, ColumnSizingState, OnChangeFn, RowSelectionState, SortingState, VisibilityState } from '@tanstack/react-table';
|
|
3
3
|
export interface DataTableProps<TData, TValue> {
|
|
4
4
|
columns: ColumnDef<TData, TValue>[];
|
|
5
5
|
data: TData[];
|
|
@@ -15,6 +15,28 @@ export interface DataTableProps<TData, TValue> {
|
|
|
15
15
|
columnToggleText?: string;
|
|
16
16
|
rowSelection?: RowSelectionState;
|
|
17
17
|
onRowSelectionChange?: (selection: RowSelectionState) => void;
|
|
18
|
+
/** Controlled sort state. When provided, the table runs in controlled mode for sorting. */
|
|
19
|
+
sorting?: SortingState;
|
|
20
|
+
onSortingChange?: OnChangeFn<SortingState>;
|
|
21
|
+
/** Initial sort applied when `sorting` is uncontrolled. */
|
|
22
|
+
initialSorting?: SortingState;
|
|
23
|
+
/** Controlled column-sizing state. Pairs with `resizable`. */
|
|
24
|
+
columnSizing?: ColumnSizingState;
|
|
25
|
+
onColumnSizingChange?: OnChangeFn<ColumnSizingState>;
|
|
26
|
+
/** Controlled column-visibility state. */
|
|
27
|
+
columnVisibility?: VisibilityState;
|
|
28
|
+
onColumnVisibilityChange?: OnChangeFn<VisibilityState>;
|
|
29
|
+
/**
|
|
30
|
+
* When set, the search input filters whole rows via this predicate.
|
|
31
|
+
* Takes precedence over `searchKey`.
|
|
32
|
+
*/
|
|
33
|
+
globalFilterFn?: (row: TData, query: string) => boolean;
|
|
34
|
+
/**
|
|
35
|
+
* When true, body cells render multi-line content (drops the default `truncate` class).
|
|
36
|
+
* Useful for tables that show JSON, long text, or preformatted content.
|
|
37
|
+
* Default: false (single-line + ellipsis).
|
|
38
|
+
*/
|
|
39
|
+
allowWrap?: boolean;
|
|
18
40
|
toolbarContent?: React.ReactNode;
|
|
19
41
|
/**
|
|
20
42
|
* When set, the table body scrolls independently with this max height (any CSS length).
|
|
@@ -23,7 +45,7 @@ export interface DataTableProps<TData, TValue> {
|
|
|
23
45
|
*/
|
|
24
46
|
maxBodyHeight?: string;
|
|
25
47
|
}
|
|
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;
|
|
48
|
+
export declare function DataTable<TData, TValue>({ columns, data, searchKey, searchPlaceholder, showColumnToggle, showPagination, pageSize, editable, onCellUpdate, resizable, compact, columnToggleText, rowSelection: controlledRowSelection, onRowSelectionChange: controlledOnRowSelectionChange, sorting: controlledSorting, onSortingChange: controlledOnSortingChange, initialSorting, columnSizing: controlledColumnSizing, onColumnSizingChange: controlledOnColumnSizingChange, columnVisibility: controlledColumnVisibility, onColumnVisibilityChange: controlledOnColumnVisibilityChange, globalFilterFn, allowWrap, toolbarContent, maxBodyHeight, }: DataTableProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
|
|
27
49
|
export declare function DataTableColumnHeader<TData, TValue>({ column, title, children, }: {
|
|
28
50
|
column: Column<TData, TValue>;
|
|
29
51
|
title: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useCallback, useMemo, useState } from "react";
|
|
2
|
+
import { useCallback, useMemo, useRef, useState } from "react";
|
|
3
3
|
import { ArrowDown, ArrowUp, ArrowUpDown, ChevronDown } from "lucide-react";
|
|
4
4
|
import { Button } from "./button.js";
|
|
5
5
|
import { Checkbox } from "./checkbox.js";
|
|
@@ -9,24 +9,57 @@ import { Input } from "./input.js";
|
|
|
9
9
|
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "./table.js";
|
|
10
10
|
import { cn } from "../../lib/index.js";
|
|
11
11
|
import { flexRender, getCoreRowModel, getFilteredRowModel, getPaginationRowModel, getSortedRowModel, useReactTable } from "@tanstack/react-table";
|
|
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 }) {
|
|
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, sorting: controlledSorting, onSortingChange: controlledOnSortingChange, initialSorting, columnSizing: controlledColumnSizing, onColumnSizingChange: controlledOnColumnSizingChange, columnVisibility: controlledColumnVisibility, onColumnVisibilityChange: controlledOnColumnVisibilityChange, globalFilterFn, allowWrap = false, toolbarContent, maxBodyHeight }) {
|
|
13
13
|
const useBlockLayout = void 0 !== maxBodyHeight;
|
|
14
14
|
const blockRowClasses = '[&>tr]:table [&>tr]:w-full [&>tr]:table-fixed';
|
|
15
|
-
const [
|
|
15
|
+
const [internalSorting, setInternalSorting] = useState(initialSorting ?? []);
|
|
16
16
|
const [columnFilters, setColumnFilters] = useState([]);
|
|
17
|
-
const [
|
|
17
|
+
const [internalColumnVisibility, setInternalColumnVisibility] = useState({});
|
|
18
|
+
const [internalColumnSizing, setInternalColumnSizing] = useState({});
|
|
18
19
|
const [internalRowSelection, setInternalRowSelection] = useState({});
|
|
19
|
-
const
|
|
20
|
-
const
|
|
20
|
+
const [globalFilter, setGlobalFilter] = useState('');
|
|
21
|
+
const isRowSelectionControlled = void 0 !== controlledRowSelection;
|
|
22
|
+
const rowSelection = isRowSelectionControlled ? controlledRowSelection : internalRowSelection;
|
|
23
|
+
const rowSelectionRef = useRef(rowSelection);
|
|
24
|
+
rowSelectionRef.current = rowSelection;
|
|
21
25
|
const setRowSelection = useCallback((updater)=>{
|
|
22
|
-
const next = 'function' == typeof updater ? updater(
|
|
23
|
-
if (!
|
|
26
|
+
const next = 'function' == typeof updater ? updater(rowSelectionRef.current) : updater;
|
|
27
|
+
if (!isRowSelectionControlled) setInternalRowSelection(next);
|
|
24
28
|
controlledOnRowSelectionChange?.(next);
|
|
25
29
|
}, [
|
|
26
|
-
|
|
27
|
-
rowSelection,
|
|
30
|
+
isRowSelectionControlled,
|
|
28
31
|
controlledOnRowSelectionChange
|
|
29
32
|
]);
|
|
33
|
+
const isSortingControlled = void 0 !== controlledSorting;
|
|
34
|
+
const sorting = isSortingControlled ? controlledSorting : internalSorting;
|
|
35
|
+
const onSortingChange = useCallback((updater)=>{
|
|
36
|
+
if (!isSortingControlled) setInternalSorting((prev)=>'function' == typeof updater ? updater(prev) : updater);
|
|
37
|
+
controlledOnSortingChange?.(updater);
|
|
38
|
+
}, [
|
|
39
|
+
isSortingControlled,
|
|
40
|
+
controlledOnSortingChange
|
|
41
|
+
]);
|
|
42
|
+
const isColumnSizingControlled = void 0 !== controlledColumnSizing;
|
|
43
|
+
const columnSizing = isColumnSizingControlled ? controlledColumnSizing : internalColumnSizing;
|
|
44
|
+
const onColumnSizingChange = useCallback((updater)=>{
|
|
45
|
+
if (!isColumnSizingControlled) setInternalColumnSizing((prev)=>'function' == typeof updater ? updater(prev) : updater);
|
|
46
|
+
controlledOnColumnSizingChange?.(updater);
|
|
47
|
+
}, [
|
|
48
|
+
isColumnSizingControlled,
|
|
49
|
+
controlledOnColumnSizingChange
|
|
50
|
+
]);
|
|
51
|
+
const isColumnVisibilityControlled = void 0 !== controlledColumnVisibility;
|
|
52
|
+
const columnVisibility = isColumnVisibilityControlled ? controlledColumnVisibility : internalColumnVisibility;
|
|
53
|
+
const onColumnVisibilityChange = useCallback((updater)=>{
|
|
54
|
+
if (!isColumnVisibilityControlled) setInternalColumnVisibility((prev)=>'function' == typeof updater ? updater(prev) : updater);
|
|
55
|
+
controlledOnColumnVisibilityChange?.(updater);
|
|
56
|
+
}, [
|
|
57
|
+
isColumnVisibilityControlled,
|
|
58
|
+
controlledOnColumnVisibilityChange
|
|
59
|
+
]);
|
|
60
|
+
const tanstackGlobalFilterFn = useMemo(()=>globalFilterFn ? (row, _columnId, filterValue)=>globalFilterFn(row.original, filterValue) : void 0, [
|
|
61
|
+
globalFilterFn
|
|
62
|
+
]);
|
|
30
63
|
const processedColumns = useMemo(()=>{
|
|
31
64
|
if (!editable || !onCellUpdate) return columns;
|
|
32
65
|
return columns.map((col)=>{
|
|
@@ -50,21 +83,26 @@ function DataTable({ columns, data, searchKey, searchPlaceholder = 'Search...',
|
|
|
50
83
|
const table = useReactTable({
|
|
51
84
|
data,
|
|
52
85
|
columns: processedColumns,
|
|
53
|
-
onSortingChange
|
|
86
|
+
onSortingChange,
|
|
54
87
|
onColumnFiltersChange: setColumnFilters,
|
|
55
88
|
getCoreRowModel: getCoreRowModel(),
|
|
56
89
|
getPaginationRowModel: getPaginationRowModel(),
|
|
57
90
|
getSortedRowModel: getSortedRowModel(),
|
|
58
91
|
getFilteredRowModel: getFilteredRowModel(),
|
|
59
|
-
onColumnVisibilityChange
|
|
92
|
+
onColumnVisibilityChange,
|
|
93
|
+
onColumnSizingChange,
|
|
60
94
|
onRowSelectionChange: setRowSelection,
|
|
95
|
+
onGlobalFilterChange: setGlobalFilter,
|
|
96
|
+
globalFilterFn: tanstackGlobalFilterFn,
|
|
61
97
|
enableColumnResizing: resizable,
|
|
62
98
|
columnResizeMode: 'onChange',
|
|
63
99
|
state: {
|
|
64
100
|
sorting,
|
|
65
101
|
columnFilters,
|
|
66
102
|
columnVisibility,
|
|
67
|
-
|
|
103
|
+
columnSizing,
|
|
104
|
+
rowSelection,
|
|
105
|
+
globalFilter
|
|
68
106
|
},
|
|
69
107
|
initialState: {
|
|
70
108
|
pagination: {
|
|
@@ -78,7 +116,12 @@ function DataTable({ columns, data, searchKey, searchPlaceholder = 'Search...',
|
|
|
78
116
|
/*#__PURE__*/ jsxs("div", {
|
|
79
117
|
className: "flex items-center gap-4 py-4",
|
|
80
118
|
children: [
|
|
81
|
-
|
|
119
|
+
globalFilterFn ? /*#__PURE__*/ jsx(Input, {
|
|
120
|
+
placeholder: searchPlaceholder,
|
|
121
|
+
value: globalFilter,
|
|
122
|
+
onChange: (event)=>setGlobalFilter(event.target.value),
|
|
123
|
+
className: "max-w-sm"
|
|
124
|
+
}) : searchKey && /*#__PURE__*/ jsx(Input, {
|
|
82
125
|
placeholder: searchPlaceholder,
|
|
83
126
|
value: table.getColumn(searchKey)?.getFilterValue() ?? '',
|
|
84
127
|
onChange: (event)=>table.getColumn(searchKey)?.setFilterValue(event.target.value),
|
|
@@ -167,8 +210,9 @@ function DataTable({ columns, data, searchKey, searchPlaceholder = 'Search...',
|
|
|
167
210
|
children: row.getVisibleCells().map((cell)=>{
|
|
168
211
|
const { column } = cell;
|
|
169
212
|
return /*#__PURE__*/ jsx(TableCell, {
|
|
170
|
-
className: compact ? 'h-8 truncate px-2 py-0' : 'h-12 truncate px-4 py-0',
|
|
213
|
+
className: cn(allowWrap ? compact ? 'min-h-8 px-2 py-1' : 'min-h-12 px-4 py-2' : compact ? 'h-8 truncate px-2 py-0' : 'h-12 truncate px-4 py-0'),
|
|
171
214
|
onMouseEnter: (e)=>{
|
|
215
|
+
if (allowWrap) return;
|
|
172
216
|
const el = e.currentTarget;
|
|
173
217
|
const value = cell.getValue();
|
|
174
218
|
el.title = el.scrollWidth > el.clientWidth && ('string' == typeof value || 'number' == typeof value) ? String(value) : '';
|
|
@@ -15,7 +15,7 @@ var __webpack_modules__ = {
|
|
|
15
15
|
"./avatar" (module) {
|
|
16
16
|
module.exports = require("./avatar.cjs");
|
|
17
17
|
},
|
|
18
|
-
"
|
|
18
|
+
"@/components/ui/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
|
-
"
|
|
33
|
+
"@/components/ui/card" (module) {
|
|
34
34
|
module.exports = require("./card.cjs");
|
|
35
35
|
},
|
|
36
|
-
"
|
|
36
|
+
"@/components/ui/checkbox" (module) {
|
|
37
37
|
module.exports = require("./checkbox.cjs");
|
|
38
38
|
},
|
|
39
|
-
"
|
|
39
|
+
"@/components/ui/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
|
-
"
|
|
45
|
+
"@/components/ui/command" (module) {
|
|
46
46
|
module.exports = require("./command.cjs");
|
|
47
47
|
},
|
|
48
|
-
"
|
|
48
|
+
"@/components/ui/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
|
-
"
|
|
60
|
+
"@/components/ui/dialog" (module) {
|
|
61
61
|
module.exports = require("./dialog.cjs");
|
|
62
62
|
},
|
|
63
|
-
"
|
|
63
|
+
"@/components/ui/dropdown-menu" (module) {
|
|
64
64
|
module.exports = require("./dropdown-menu.cjs");
|
|
65
65
|
},
|
|
66
|
-
"
|
|
66
|
+
"@/components/ui/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
|
-
"
|
|
75
|
+
"@/components/ui/hover-card" (module) {
|
|
76
76
|
module.exports = require("./hover-card.cjs");
|
|
77
77
|
},
|
|
78
|
-
"
|
|
78
|
+
"@/components/ui/input" (module) {
|
|
79
79
|
module.exports = require("./input.cjs");
|
|
80
80
|
},
|
|
81
|
-
"
|
|
81
|
+
"@/components/ui/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
|
+
"@/components/ui/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
|
+
"@/components/ui/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__("@/components/ui/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__("
|
|
279
|
+
var _card__rspack_import_10 = __webpack_require__("@/components/ui/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__("@/components/ui/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__("
|
|
293
|
+
var _collapsible__rspack_import_12 = __webpack_require__("@/components/ui/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__("
|
|
307
|
+
var _command__rspack_import_14 = __webpack_require__("@/components/ui/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__("
|
|
314
|
+
var _context_menu__rspack_import_15 = __webpack_require__("@/components/ui/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__("
|
|
342
|
+
var _dialog__rspack_import_19 = __webpack_require__("@/components/ui/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__("@/components/ui/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__("@/components/ui/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__("
|
|
377
|
+
var _hover_card__rspack_import_24 = __webpack_require__("@/components/ui/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__("
|
|
384
|
+
var _input__rspack_import_25 = __webpack_require__("@/components/ui/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__("@/components/ui/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__("@/components/ui/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__("@/components/ui/toggle");
|
|
553
553
|
var __rspack_reexport = {};
|
|
554
554
|
for(const __rspack_import_key in _toggle__rspack_import_49)if ([
|
|
555
555
|
"TreeView",
|
|
@@ -24,24 +24,54 @@ var __webpack_require__ = {};
|
|
|
24
24
|
var __webpack_exports__ = {};
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
switchVariants: ()=>switchVariants,
|
|
27
28
|
Switch: ()=>Switch
|
|
28
29
|
});
|
|
29
30
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
31
|
const react_switch_namespaceObject = require("@radix-ui/react-switch");
|
|
32
|
+
const external_class_variance_authority_namespaceObject = require("class-variance-authority");
|
|
31
33
|
const external_react_namespaceObject = require("react");
|
|
32
34
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
+
const switchVariants = (0, external_class_variance_authority_namespaceObject.cva)('peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-border', {
|
|
36
|
+
variants: {
|
|
37
|
+
size: {
|
|
38
|
+
default: 'h-6 w-11',
|
|
39
|
+
sm: 'h-5 w-9'
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
defaultVariants: {
|
|
43
|
+
size: 'default'
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
const switchThumbVariants = (0, external_class_variance_authority_namespaceObject.cva)('pointer-events-none block rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=unchecked]:translate-x-0', {
|
|
47
|
+
variants: {
|
|
48
|
+
size: {
|
|
49
|
+
default: 'h-5 w-5 data-[state=checked]:translate-x-5',
|
|
50
|
+
sm: 'h-4 w-4 data-[state=checked]:translate-x-4'
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
defaultVariants: {
|
|
54
|
+
size: 'default'
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
const Switch = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, size, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_switch_namespaceObject.Root, {
|
|
58
|
+
className: (0, index_cjs_namespaceObject.cn)(switchVariants({
|
|
59
|
+
size
|
|
60
|
+
}), className),
|
|
35
61
|
...props,
|
|
36
62
|
ref: ref,
|
|
37
63
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_switch_namespaceObject.Thumb, {
|
|
38
|
-
className: (0, index_cjs_namespaceObject.cn)(
|
|
64
|
+
className: (0, index_cjs_namespaceObject.cn)(switchThumbVariants({
|
|
65
|
+
size
|
|
66
|
+
}))
|
|
39
67
|
})
|
|
40
68
|
}));
|
|
41
69
|
Switch.displayName = react_switch_namespaceObject.Root.displayName;
|
|
42
70
|
exports.Switch = __webpack_exports__.Switch;
|
|
71
|
+
exports.switchVariants = __webpack_exports__.switchVariants;
|
|
43
72
|
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
44
|
-
"Switch"
|
|
73
|
+
"Switch",
|
|
74
|
+
"switchVariants"
|
|
45
75
|
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
46
76
|
Object.defineProperty(exports, '__esModule', {
|
|
47
77
|
value: true
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
3
|
import * as React from 'react';
|
|
3
|
-
declare const
|
|
4
|
-
|
|
4
|
+
declare const switchVariants: (props?: ({
|
|
5
|
+
size?: "default" | "sm" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
8
|
+
size?: "default" | "sm" | null | undefined;
|
|
9
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
export { Switch, switchVariants };
|
|
@@ -1,14 +1,41 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Root, Thumb } from "@radix-ui/react-switch";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
3
4
|
import { forwardRef } from "react";
|
|
4
5
|
import { cn } from "../../lib/index.js";
|
|
5
|
-
const
|
|
6
|
-
|
|
6
|
+
const switchVariants = cva('peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-border', {
|
|
7
|
+
variants: {
|
|
8
|
+
size: {
|
|
9
|
+
default: 'h-6 w-11',
|
|
10
|
+
sm: 'h-5 w-9'
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
defaultVariants: {
|
|
14
|
+
size: 'default'
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
const switchThumbVariants = cva('pointer-events-none block rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=unchecked]:translate-x-0', {
|
|
18
|
+
variants: {
|
|
19
|
+
size: {
|
|
20
|
+
default: 'h-5 w-5 data-[state=checked]:translate-x-5',
|
|
21
|
+
sm: 'h-4 w-4 data-[state=checked]:translate-x-4'
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
defaultVariants: {
|
|
25
|
+
size: 'default'
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
const Switch = /*#__PURE__*/ forwardRef(({ className, size, ...props }, ref)=>/*#__PURE__*/ jsx(Root, {
|
|
29
|
+
className: cn(switchVariants({
|
|
30
|
+
size
|
|
31
|
+
}), className),
|
|
7
32
|
...props,
|
|
8
33
|
ref: ref,
|
|
9
34
|
children: /*#__PURE__*/ jsx(Thumb, {
|
|
10
|
-
className: cn(
|
|
35
|
+
className: cn(switchThumbVariants({
|
|
36
|
+
size
|
|
37
|
+
}))
|
|
11
38
|
})
|
|
12
39
|
}));
|
|
13
40
|
Switch.displayName = Root.displayName;
|
|
14
|
-
export { Switch };
|
|
41
|
+
export { Switch, switchVariants };
|
package/dist/styles.css
CHANGED
|
@@ -1146,9 +1146,15 @@
|
|
|
1146
1146
|
.min-h-5 {
|
|
1147
1147
|
min-height: calc(var(--spacing) * 5);
|
|
1148
1148
|
}
|
|
1149
|
+
.min-h-8 {
|
|
1150
|
+
min-height: calc(var(--spacing) * 8);
|
|
1151
|
+
}
|
|
1149
1152
|
.min-h-10 {
|
|
1150
1153
|
min-height: calc(var(--spacing) * 10);
|
|
1151
1154
|
}
|
|
1155
|
+
.min-h-12 {
|
|
1156
|
+
min-height: calc(var(--spacing) * 12);
|
|
1157
|
+
}
|
|
1152
1158
|
.min-h-\[32px\] {
|
|
1153
1159
|
min-height: 32px;
|
|
1154
1160
|
}
|
|
@@ -5419,6 +5425,12 @@
|
|
|
5419
5425
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
5420
5426
|
}
|
|
5421
5427
|
}
|
|
5428
|
+
.data-\[state\=checked\]\:translate-x-4 {
|
|
5429
|
+
&[data-state="checked"] {
|
|
5430
|
+
--tw-translate-x: calc(var(--spacing) * 4);
|
|
5431
|
+
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
5432
|
+
}
|
|
5433
|
+
}
|
|
5422
5434
|
.data-\[state\=checked\]\:translate-x-5 {
|
|
5423
5435
|
&[data-state="checked"] {
|
|
5424
5436
|
--tw-translate-x: calc(var(--spacing) * 5);
|
|
@@ -6101,6 +6113,11 @@
|
|
|
6101
6113
|
height: calc(var(--spacing) * 4);
|
|
6102
6114
|
}
|
|
6103
6115
|
}
|
|
6116
|
+
.\[\&_table\]\:\!w-full {
|
|
6117
|
+
& table {
|
|
6118
|
+
width: 100% !important;
|
|
6119
|
+
}
|
|
6120
|
+
}
|
|
6104
6121
|
.\[\&_tr\]\:border-b {
|
|
6105
6122
|
& tr {
|
|
6106
6123
|
border-bottom-style: var(--tw-border-style);
|