@cerberus-design/data-grid 0.25.3 → 1.0.0-rc.5

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.
@@ -1,319 +1,290 @@
1
- 'use client';
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
-
6
- const jsxRuntime = require('react/jsx-runtime');
7
- const react$1 = require('@cerberus-design/react');
8
- const signals = require('@cerberus-design/signals');
9
- const react = require('react');
10
- const jsx = require('styled-system/jsx');
11
- const _const = require('../const.cjs');
12
- const context_client = require('../context.client.cjs');
13
- const hooks_client = require('../hooks.client.cjs');
14
- const virtualizer_client = require('../virtualizer.client.cjs');
15
- const features_client = require('./features.client.cjs');
16
-
1
+ "use client";
2
+ "use client";
3
+ const require_const = require("../const.cjs");
4
+ const require_context_client = require("../context.client.cjs");
5
+ const require_hooks_client = require("../hooks.client.cjs");
6
+ const require_virtualizer_client = require("../virtualizer.client.cjs");
7
+ const require_features_client = require("./features.client.cjs");
8
+ let _cerberus_design_react = require("@cerberus-design/react");
9
+ let _cerberus_design_signals = require("@cerberus-design/signals");
10
+ let react = require("react");
11
+ let styled_system_jsx = require("styled-system/jsx");
12
+ let react_jsx_runtime = require("react/jsx-runtime");
13
+ //#region src/components/grid.client.tsx
17
14
  function GridViewport() {
18
- const viewportRef = react.useRef(null);
19
- const store = context_client.useDataGridContext();
20
- const { virtualRows, totalHeight } = virtualizer_client.useVirtualizer(store, viewportRef);
21
- const columns = signals.useRead(store.columns);
22
- const isServerPaginated = signals.useRead(store.isServerPaginated);
23
- const staticRows = signals.useRead(store.rows);
24
- const currentPageRange = signals.useRead(store.currentPageRange);
25
- return /* @__PURE__ */ jsxRuntime.jsxs(
26
- jsx.Scrollable,
27
- {
28
- hideScrollbar: true,
29
- "data-scope": _const.SCOPE,
30
- "data-part": _const.PARTS.VIEWPORT,
31
- h: "full",
32
- minH: "0",
33
- minW: "full",
34
- pos: "relative",
35
- w: "full",
36
- ref: viewportRef,
37
- children: [
38
- /* @__PURE__ */ jsxRuntime.jsx(
39
- jsx.Box,
40
- {
41
- role: "grid",
42
- "aria-rowcount": staticRows.length + 1,
43
- "aria-colcount": columns.length,
44
- h: "var(--row-height)",
45
- pos: "sticky",
46
- top: "0",
47
- w: "var(--total-grid-width)",
48
- zIndex: "sticky",
49
- children: /* @__PURE__ */ jsxRuntime.jsx(
50
- jsx.HStack,
51
- {
52
- "aria-rowIndex": "1",
53
- role: "rowgroup",
54
- gap: "0",
55
- h: "full",
56
- pos: "relative",
57
- w: "full",
58
- children: /* @__PURE__ */ jsxRuntime.jsx(react$1.For, { each: columns, children: (col) => /* @__PURE__ */ jsxRuntime.jsx(react$1.Show, { when: col.isVisible(), children: () => /* @__PURE__ */ jsxRuntime.jsx(GridHeaderCell, { column: col }) }, col.id) })
59
- }
60
- )
61
- }
62
- ),
63
- /* @__PURE__ */ jsxRuntime.jsx(
64
- react$1.Show,
65
- {
66
- when: isServerPaginated,
67
- fallback: /* @__PURE__ */ jsxRuntime.jsx(
68
- jsx.Box,
69
- {
70
- pos: "relative",
71
- w: "var(--total-grid-width)",
72
- style: {
73
- height: `${totalHeight}px`
74
- },
75
- children: /* @__PURE__ */ jsxRuntime.jsx(react$1.For, { each: virtualRows, children: (vRow) => /* @__PURE__ */ jsxRuntime.jsx(
76
- GridRow,
77
- {
78
- row: vRow.data,
79
- index: vRow.index,
80
- offsetY: vRow.offsetY
81
- },
82
- vRow.index
83
- ) })
84
- }
85
- ),
86
- children: () => /* @__PURE__ */ jsxRuntime.jsx(jsx.Stack, { direction: "column", gap: "0", w: "var(--total-grid-width)", children: /* @__PURE__ */ jsxRuntime.jsx(
87
- react$1.For,
88
- {
89
- each: staticRows.slice(
90
- currentPageRange.start,
91
- currentPageRange.end
92
- ),
93
- children: (row, index) => /* @__PURE__ */ jsxRuntime.jsx(GridRow, { row, index }, index)
94
- }
95
- ) })
96
- }
97
- )
98
- ]
99
- }
100
- );
15
+ const viewportRef = (0, react.useRef)(null);
16
+ const store = require_context_client.useDataGridContext();
17
+ const { virtualRows, totalHeight } = require_virtualizer_client.useVirtualizer(store, viewportRef);
18
+ const columns = (0, _cerberus_design_signals.useRead)(store.columns);
19
+ const isServerPaginated = (0, _cerberus_design_signals.useRead)(store.isServerPaginated);
20
+ const staticRows = (0, _cerberus_design_signals.useRead)(store.rows);
21
+ const currentPageRange = (0, _cerberus_design_signals.useRead)(store.currentPageRange);
22
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(styled_system_jsx.Scrollable, {
23
+ hideScrollbar: true,
24
+ "data-scope": require_const.SCOPE,
25
+ "data-part": require_const.PARTS.VIEWPORT,
26
+ h: "full",
27
+ minH: "0",
28
+ minW: "full",
29
+ pos: "relative",
30
+ w: "full",
31
+ ref: viewportRef,
32
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(styled_system_jsx.Box, {
33
+ role: "grid",
34
+ "aria-rowcount": staticRows.length + 1,
35
+ "aria-colcount": columns.length,
36
+ h: "var(--row-height)",
37
+ pos: "sticky",
38
+ top: "0",
39
+ w: "var(--total-grid-width)",
40
+ zIndex: "sticky",
41
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(styled_system_jsx.HStack, {
42
+ "aria-rowindex": 1,
43
+ role: "rowgroup",
44
+ gap: "0",
45
+ h: "full",
46
+ pos: "relative",
47
+ w: "full",
48
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_cerberus_design_react.For, {
49
+ each: columns,
50
+ children: (col) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_cerberus_design_react.Show, {
51
+ when: col.isVisible(),
52
+ children: () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GridHeaderCell, { column: col })
53
+ }, col.id)
54
+ })
55
+ })
56
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_cerberus_design_react.Show, {
57
+ when: isServerPaginated,
58
+ fallback: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(styled_system_jsx.Box, {
59
+ pos: "relative",
60
+ w: "var(--total-grid-width)",
61
+ style: { height: `${totalHeight}px` },
62
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_cerberus_design_react.For, {
63
+ each: virtualRows,
64
+ children: (vRow) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GridRow, {
65
+ row: vRow.data,
66
+ index: vRow.index,
67
+ offsetY: vRow.offsetY
68
+ }, vRow.index)
69
+ })
70
+ }),
71
+ children: () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(styled_system_jsx.Stack, {
72
+ direction: "column",
73
+ gap: "0",
74
+ w: "var(--total-grid-width)",
75
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_cerberus_design_react.For, {
76
+ each: staticRows.slice(currentPageRange.start, currentPageRange.end),
77
+ children: (row, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GridRow, {
78
+ row,
79
+ index
80
+ }, index)
81
+ })
82
+ })
83
+ })]
84
+ });
101
85
  }
102
- const GridHeaderCell = react.memo(function GridHeaderCell2(props) {
103
- const { column } = props;
104
- const store = context_client.useDataGridContext();
105
- const { icons } = react$1.useCerberusContext();
106
- const pinnedVal = signals.useRead(column.pinned);
107
- const sortingVal = signals.useRead(store.sorting);
108
- const pinnedState = hooks_client.usePinnedState(pinnedVal);
109
- const pinnedAttr = hooks_client.usePinnedAttribute(pinnedVal);
110
- const style = hooks_client.useColumnStyles(column, pinnedVal);
111
- const isSortedDesc = react.useMemo(() => {
112
- const result = sortingVal.find((item) => item.id === column.id);
113
- if (result) return result.desc;
114
- return false;
115
- }, [sortingVal, column.id]);
116
- const SortAscIcon = icons.sortAsc;
117
- const SortDescIcon = icons.sortDesc;
118
- function handleToggleSorting(e) {
119
- store.toggleSort(column.id, e.shiftKey);
120
- }
121
- return /* @__PURE__ */ jsxRuntime.jsxs(
122
- jsx.HStack,
123
- {
124
- role: "columnheader",
125
- "data-scope": _const.SCOPE,
126
- "data-part": _const.PARTS.HEAD_CELL,
127
- "data-state": pinnedState,
128
- "data-col": column.id,
129
- ...pinnedAttr,
130
- bgColor: "page.bg.initial",
131
- borderBottom: "1px solid",
132
- borderColor: "page.border.200",
133
- h: "full",
134
- justify: "space-between",
135
- pos: "relative",
136
- px: "md",
137
- userSelect: "none",
138
- textAlign: "left",
139
- textStyle: "label-md",
140
- verticalAlign: "middle",
141
- w: "full",
142
- zIndex: "10",
143
- _first: {
144
- borderTopLeftRadius: "md"
145
- },
146
- _last: {
147
- borderTopRightRadius: "md"
148
- },
149
- _pinned: {
150
- pos: "sticky",
151
- zIndex: 20
152
- },
153
- _leftPinned: {
154
- borderRightColor: "page.border.200",
155
- borderRight: "1px solid"
156
- },
157
- _rightPinned: {
158
- borderLeftColor: "page.border.200",
159
- borderLeft: "1px solid"
160
- },
161
- className: "group",
162
- style,
163
- children: [
164
- /* @__PURE__ */ jsxRuntime.jsxs(
165
- jsx.HStack,
166
- {
167
- gap: "sm",
168
- _groupHover: {
169
- "& :is(button)": {
170
- opacity: "1"
171
- }
172
- },
173
- children: [
174
- typeof column.original.header === "function" ? column.original.header({ colId: column.id }) : column.original.header,
175
- /* @__PURE__ */ jsxRuntime.jsx(react$1.Show, { when: column.sortable, children: /* @__PURE__ */ jsxRuntime.jsx(
176
- react$1.Tooltip,
177
- {
178
- content: isSortedDesc ? "Sort Ascending" : "Sort Decending",
179
- openDelay: 800,
180
- asChild: true,
181
- children: /* @__PURE__ */ jsxRuntime.jsx(
182
- react$1.IconButton,
183
- {
184
- ariaLabel: "Toggle sorting",
185
- size: "sm",
186
- opacity: {
187
- base: 1,
188
- md: 0
189
- },
190
- transitionProperty: "opacity",
191
- transitionDuration: "fast",
192
- onClick: handleToggleSorting,
193
- children: /* @__PURE__ */ jsxRuntime.jsx(react$1.Show, { when: isSortedDesc, fallback: /* @__PURE__ */ jsxRuntime.jsx(SortAscIcon, {}), children: /* @__PURE__ */ jsxRuntime.jsx(SortDescIcon, {}) })
194
- }
195
- )
196
- }
197
- ) })
198
- ]
199
- }
200
- ),
201
- /* @__PURE__ */ jsxRuntime.jsx(features_client.HeaderCellOptions, { ...column }),
202
- /* @__PURE__ */ jsxRuntime.jsx(react$1.Show, { when: pinnedState === "pinned", children: () => /* @__PURE__ */ jsxRuntime.jsx(ShadowFiller, { style, ...pinnedAttr }) })
203
- ]
204
- }
205
- );
86
+ var GridHeaderCell = (0, react.memo)(function GridHeaderCell(props) {
87
+ const { column } = props;
88
+ const store = require_context_client.useDataGridContext();
89
+ const { icons } = (0, _cerberus_design_react.useCerberusContext)();
90
+ const pinnedVal = (0, _cerberus_design_signals.useRead)(column.pinned);
91
+ const sortingVal = (0, _cerberus_design_signals.useRead)(store.sorting);
92
+ const pinnedState = require_hooks_client.usePinnedState(pinnedVal);
93
+ const pinnedAttr = require_hooks_client.usePinnedAttribute(pinnedVal);
94
+ const style = require_hooks_client.useColumnStyles(column, pinnedVal);
95
+ const isSortedDesc = (0, react.useMemo)(() => {
96
+ const result = sortingVal.find((item) => item.id === column.id);
97
+ if (result) return result.desc;
98
+ return false;
99
+ }, [sortingVal, column.id]);
100
+ const SortAscIcon = icons.sortAsc;
101
+ const SortDescIcon = icons.sortDesc;
102
+ function handleToggleSorting(e) {
103
+ store.toggleSort(column.id, e.shiftKey);
104
+ }
105
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(styled_system_jsx.HStack, {
106
+ role: "columnheader",
107
+ "data-scope": require_const.SCOPE,
108
+ "data-part": require_const.PARTS.HEAD_CELL,
109
+ "data-state": pinnedState,
110
+ "data-col": column.id,
111
+ ...pinnedAttr,
112
+ bgColor: "page.bg.initial",
113
+ borderBottom: "1px solid",
114
+ borderColor: "page.border.200",
115
+ h: "full",
116
+ justify: "space-between",
117
+ pos: "relative",
118
+ px: "md",
119
+ userSelect: "none",
120
+ textAlign: "left",
121
+ textStyle: "label-md",
122
+ verticalAlign: "middle",
123
+ w: "full",
124
+ zIndex: "10",
125
+ _first: { borderTopLeftRadius: "md" },
126
+ _last: { borderTopRightRadius: "md" },
127
+ _pinned: {
128
+ pos: "sticky",
129
+ zIndex: 20
130
+ },
131
+ _leftPinned: {
132
+ borderRightColor: "page.border.200",
133
+ borderRight: "1px solid"
134
+ },
135
+ _rightPinned: {
136
+ borderLeftColor: "page.border.200",
137
+ borderLeft: "1px solid"
138
+ },
139
+ className: "group",
140
+ style,
141
+ children: [
142
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(styled_system_jsx.HStack, {
143
+ gap: "sm",
144
+ _groupHover: { "& :is(button)": { opacity: "1" } },
145
+ children: [typeof column.original.header === "function" ? column.original.header({ colId: column.id }) : column.original.header, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_cerberus_design_react.Show, {
146
+ when: column.sortable,
147
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_cerberus_design_react.Tooltip, {
148
+ content: isSortedDesc ? "Sort Ascending" : "Sort Decending",
149
+ openDelay: 800,
150
+ asChild: true,
151
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_cerberus_design_react.IconButton, {
152
+ ariaLabel: "Toggle sorting",
153
+ size: "sm",
154
+ opacity: {
155
+ base: 1,
156
+ md: 0
157
+ },
158
+ transitionProperty: "opacity",
159
+ transitionDuration: "fast",
160
+ onClick: handleToggleSorting,
161
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_cerberus_design_react.Show, {
162
+ when: isSortedDesc,
163
+ fallback: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SortAscIcon, {}),
164
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SortDescIcon, {})
165
+ })
166
+ })
167
+ })
168
+ })]
169
+ }),
170
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_features_client.HeaderCellOptions, { ...column }),
171
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_cerberus_design_react.Show, {
172
+ when: pinnedState === "pinned",
173
+ children: () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ShadowFiller, {
174
+ style,
175
+ ...pinnedAttr
176
+ })
177
+ })
178
+ ]
179
+ });
206
180
  });
207
- const GridCell = react.memo(function GridCell2(props) {
208
- const { column, row } = props;
209
- const value = column.getValue(row);
210
- const pinnedVal = signals.useRead(column.pinned);
211
- const pinnedState = hooks_client.usePinnedState(pinnedVal);
212
- const pinnedAttr = hooks_client.usePinnedAttribute(pinnedVal);
213
- const style = hooks_client.useColumnStyles(column, pinnedVal);
214
- return /* @__PURE__ */ jsxRuntime.jsxs(
215
- jsx.HStack,
216
- {
217
- role: "cell",
218
- "data-scope": _const.SCOPE,
219
- "data-part": _const.PARTS.CELL,
220
- "data-state": pinnedState,
221
- ...pinnedAttr,
222
- bgColor: "inherit",
223
- borderColor: "page.border.200",
224
- h: "full",
225
- pos: "relative",
226
- px: "md",
227
- userSelect: "none",
228
- verticalAlign: "middle",
229
- zIndex: "base",
230
- _pinned: {
231
- pos: "sticky",
232
- zIndex: 20
233
- },
234
- _leftPinned: {
235
- borderRightColor: "page.border.200",
236
- borderRight: "1px solid"
237
- },
238
- _rightPinned: {
239
- borderLeftColor: "page.border.200",
240
- borderLeft: "1px solid"
241
- },
242
- style,
243
- children: [
244
- column.original.cell ? column.original.cell({ row, value }) : value,
245
- /* @__PURE__ */ jsxRuntime.jsx(react$1.Show, { when: pinnedState === "pinned", children: () => /* @__PURE__ */ jsxRuntime.jsx(ShadowFiller, { style, ...pinnedAttr }) })
246
- ]
247
- }
248
- );
181
+ var GridCell = (0, react.memo)(function GridCell(props) {
182
+ const { column, row } = props;
183
+ const value = column.getValue(row);
184
+ const pinnedVal = (0, _cerberus_design_signals.useRead)(column.pinned);
185
+ const pinnedState = require_hooks_client.usePinnedState(pinnedVal);
186
+ const pinnedAttr = require_hooks_client.usePinnedAttribute(pinnedVal);
187
+ const style = require_hooks_client.useColumnStyles(column, pinnedVal);
188
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(styled_system_jsx.HStack, {
189
+ role: "cell",
190
+ "data-scope": require_const.SCOPE,
191
+ "data-part": require_const.PARTS.CELL,
192
+ "data-state": pinnedState,
193
+ ...pinnedAttr,
194
+ bgColor: "inherit",
195
+ borderColor: "page.border.200",
196
+ h: "full",
197
+ pos: "relative",
198
+ px: "md",
199
+ userSelect: "none",
200
+ verticalAlign: "middle",
201
+ zIndex: "base",
202
+ _pinned: {
203
+ pos: "sticky",
204
+ zIndex: 20
205
+ },
206
+ _leftPinned: {
207
+ borderRightColor: "page.border.200",
208
+ borderRight: "1px solid"
209
+ },
210
+ _rightPinned: {
211
+ borderLeftColor: "page.border.200",
212
+ borderLeft: "1px solid"
213
+ },
214
+ style,
215
+ children: [column.original.cell ? column.original.cell({
216
+ row,
217
+ value
218
+ }) : value, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_cerberus_design_react.Show, {
219
+ when: pinnedState === "pinned",
220
+ children: () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ShadowFiller, {
221
+ style,
222
+ ...pinnedAttr
223
+ })
224
+ })]
225
+ });
249
226
  });
250
- const GridRow = react.memo(function GridRow2(props) {
251
- const store = context_client.useDataGridContext();
252
- const columns = signals.useRead(store.columns);
253
- return /* @__PURE__ */ jsxRuntime.jsx(GridRowContainer, { offsetY: props.offsetY, children: /* @__PURE__ */ jsxRuntime.jsx(react$1.For, { each: columns, children: (col) => /* @__PURE__ */ jsxRuntime.jsx(react$1.Show, { when: col.isVisible(), children: () => /* @__PURE__ */ jsxRuntime.jsx(GridCell, { row: props.row, column: col }) }, col.id) }) });
227
+ var GridRow = (0, react.memo)(function GridRow(props) {
228
+ const columns = (0, _cerberus_design_signals.useRead)(require_context_client.useDataGridContext().columns);
229
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GridRowContainer, {
230
+ offsetY: props.offsetY,
231
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_cerberus_design_react.For, {
232
+ each: columns,
233
+ children: (col) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_cerberus_design_react.Show, {
234
+ when: col.isVisible(),
235
+ children: () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GridCell, {
236
+ row: props.row,
237
+ column: col
238
+ })
239
+ }, col.id)
240
+ })
241
+ });
254
242
  });
255
243
  function GridRowContainer(props) {
256
- const isVirtualized = props.offsetY !== void 0;
257
- return /* @__PURE__ */ jsxRuntime.jsx(
258
- jsx.HStack,
259
- {
260
- role: "row",
261
- "data-scope": _const.SCOPE,
262
- "data-part": _const.PARTS.ROW,
263
- "data-render": isVirtualized ? "virtualized" : "static",
264
- bgColor: "page.surface.100",
265
- gap: "0",
266
- h: "var(--row-height)",
267
- w: "full",
268
- _even: {
269
- bgColor: "page.surface.initial"
270
- },
271
- _hover: {
272
- bgColor: "page.surface.200"
273
- },
274
- css: {
275
- "&:is([data-render=virtualized])": {
276
- pos: "absolute",
277
- left: 0
278
- }
279
- },
280
- style: {
281
- transform: isVirtualized ? `translateY(${props.offsetY}px)` : void 0
282
- },
283
- children: props.children
284
- }
285
- );
244
+ const isVirtualized = props.offsetY !== void 0;
245
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(styled_system_jsx.HStack, {
246
+ role: "row",
247
+ "data-scope": require_const.SCOPE,
248
+ "data-part": require_const.PARTS.ROW,
249
+ "data-render": isVirtualized ? "virtualized" : "static",
250
+ bgColor: "page.surface.100",
251
+ gap: "0",
252
+ h: "var(--row-height)",
253
+ w: "full",
254
+ _even: { bgColor: "page.surface.initial" },
255
+ _hover: { bgColor: "page.surface.200" },
256
+ css: { "&:is([data-render=virtualized])": {
257
+ pos: "absolute",
258
+ left: 0
259
+ } },
260
+ style: { transform: isVirtualized ? `translateY(${props.offsetY}px)` : void 0 },
261
+ children: props.children
262
+ });
286
263
  }
287
264
  function ShadowFiller(props) {
288
- const { style, ...rest } = props;
289
- return /* @__PURE__ */ jsxRuntime.jsx(
290
- jsx.Box,
291
- {
292
- bottom: "0",
293
- h: "full",
294
- pos: "absolute",
295
- w: "0.75rem",
296
- zIndex: "inherit",
297
- _leftPinned: {
298
- bgGradient: "to-r",
299
- gradientFrom: "black/10",
300
- gradientTo: "transparent"
301
- },
302
- _rightPinned: {
303
- bgGradient: "to-l",
304
- gradientFrom: "black/10",
305
- gradientTo: "transparent"
306
- },
307
- style: {
308
- left: style.left ? style.width : void 0,
309
- right: style.right ? style.width : void 0
310
- },
311
- ...rest
312
- }
313
- );
265
+ const { style, ...rest } = props;
266
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(styled_system_jsx.Box, {
267
+ bottom: "0",
268
+ h: "full",
269
+ pos: "absolute",
270
+ w: "0.75rem",
271
+ zIndex: "inherit",
272
+ _leftPinned: {
273
+ bgGradient: "to-r",
274
+ gradientFrom: "black/10",
275
+ gradientTo: "transparent"
276
+ },
277
+ _rightPinned: {
278
+ bgGradient: "to-l",
279
+ gradientFrom: "black/10",
280
+ gradientTo: "transparent"
281
+ },
282
+ style: {
283
+ left: style.left ? style.width : void 0,
284
+ right: style.right ? style.width : void 0
285
+ },
286
+ ...rest
287
+ });
314
288
  }
315
-
316
- exports.GridCell = GridCell;
317
- exports.GridHeaderCell = GridHeaderCell;
318
- exports.GridRow = GridRow;
289
+ //#endregion
319
290
  exports.GridViewport = GridViewport;