@spteck/react-controls-v2 2.0.4 → 2.0.6
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/index.mjs
CHANGED
|
@@ -8589,23 +8589,23 @@ const DataGrid = (props) => {
|
|
|
8589
8589
|
}
|
|
8590
8590
|
) });
|
|
8591
8591
|
};
|
|
8592
|
-
const scrollbarClassName = css$1
|
|
8593
|
-
|
|
8594
|
-
width:
|
|
8595
|
-
height:
|
|
8596
|
-
},
|
|
8597
|
-
"&::-webkit-scrollbar-track": {
|
|
8598
|
-
background: tokens.colorNeutralBackground4,
|
|
8599
|
-
borderRadius: tokens.borderRadiusMedium
|
|
8600
|
-
},
|
|
8601
|
-
"&::-webkit-scrollbar-thumb": {
|
|
8602
|
-
background: tokens.colorBrandBackground,
|
|
8603
|
-
borderRadius: tokens.borderRadiusMedium
|
|
8604
|
-
},
|
|
8605
|
-
"&::-webkit-scrollbar-thumb:hover": {
|
|
8606
|
-
background: tokens.colorBrandBackgroundHover
|
|
8592
|
+
const scrollbarClassName = css$1`
|
|
8593
|
+
&::-webkit-scrollbar {
|
|
8594
|
+
width: 5px;
|
|
8595
|
+
height: 5px;
|
|
8607
8596
|
}
|
|
8608
|
-
|
|
8597
|
+
&::-webkit-scrollbar-track {
|
|
8598
|
+
background: ${tokens.colorNeutralBackground4};
|
|
8599
|
+
border-radius: ${tokens.borderRadiusMedium};
|
|
8600
|
+
}
|
|
8601
|
+
&::-webkit-scrollbar-thumb {
|
|
8602
|
+
background: ${tokens.colorBrandBackground};
|
|
8603
|
+
border-radius: ${tokens.borderRadiusMedium};
|
|
8604
|
+
}
|
|
8605
|
+
&::-webkit-scrollbar-thumb:hover {
|
|
8606
|
+
background: ${tokens.colorBrandBackgroundHover};
|
|
8607
|
+
}
|
|
8608
|
+
`;
|
|
8609
8609
|
const DataGridV2 = React.forwardRef((props, ref) => {
|
|
8610
8610
|
const {
|
|
8611
8611
|
columns,
|
|
@@ -8808,7 +8808,7 @@ const DataGridV2 = React.forwardRef((props, ref) => {
|
|
|
8808
8808
|
style: dataGridBodyStyles,
|
|
8809
8809
|
children: [
|
|
8810
8810
|
/* @__PURE__ */ jsx$2(DataGridHeader$1, { children: /* @__PURE__ */ jsx$2(DataGridRow$1, { children: ({ renderHeaderCell }) => /* @__PURE__ */ jsx$2(DataGridHeaderCell$1, { children: renderHeaderCell() }) }) }),
|
|
8811
|
-
/* @__PURE__ */ jsx$2(
|
|
8811
|
+
/* @__PURE__ */ jsx$2("div", { className: mergeClasses(scrollbarClassName), children: /* @__PURE__ */ jsx$2(
|
|
8812
8812
|
DataGridBody$1,
|
|
8813
8813
|
{
|
|
8814
8814
|
itemSize: virtualizedItemSize,
|
|
@@ -8817,7 +8817,6 @@ const DataGridV2 = React.forwardRef((props, ref) => {
|
|
|
8817
8817
|
listProps: {
|
|
8818
8818
|
onItemsRendered: handleItemsRendered
|
|
8819
8819
|
},
|
|
8820
|
-
className: mergeClasses(scrollbarClassName),
|
|
8821
8820
|
children: (row, style) => (() => {
|
|
8822
8821
|
const item = row.item;
|
|
8823
8822
|
const idx = itemIndexMap.get(item) ?? items.indexOf(item);
|
|
@@ -8843,7 +8842,7 @@ const DataGridV2 = React.forwardRef((props, ref) => {
|
|
|
8843
8842
|
);
|
|
8844
8843
|
})()
|
|
8845
8844
|
}
|
|
8846
|
-
)
|
|
8845
|
+
) })
|
|
8847
8846
|
]
|
|
8848
8847
|
},
|
|
8849
8848
|
gridKey
|