@spteck/react-controls-v2 2.0.3 → 2.0.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.
package/dist/index.mjs CHANGED
@@ -8589,6 +8589,23 @@ const DataGrid = (props) => {
8589
8589
  }
8590
8590
  ) });
8591
8591
  };
8592
+ const scrollbarClassName = css$1({
8593
+ "&::-webkit-scrollbar": {
8594
+ width: "5px",
8595
+ height: "5px"
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
8607
+ }
8608
+ });
8592
8609
  const DataGridV2 = React.forwardRef((props, ref) => {
8593
8610
  const {
8594
8611
  columns,
@@ -8766,7 +8783,7 @@ const DataGridV2 = React.forwardRef((props, ref) => {
8766
8783
  () => ({ overflowX: "auto", overflowY: "hidden", position: "relative" }),
8767
8784
  []
8768
8785
  );
8769
- return /* @__PURE__ */ jsxs$1("div", { style: hostStyle, children: [
8786
+ return /* @__PURE__ */ jsxs$1("div", { style: hostStyle, className: scrollbarClassName, children: [
8770
8787
  isLoadingData && /* @__PURE__ */ jsx$2("div", { style: { display: "flex", gap: 8, alignItems: "center", padding: 8 }, children: React.isValidElement(isLoadingDataMessage) ? isLoadingDataMessage : /* @__PURE__ */ jsxs$1(Spinner, { size: "extra-tiny", children: [
8771
8788
  " ",
8772
8789
  isLoadingDataMessage ?? "Loading data...",
@@ -8791,7 +8808,7 @@ const DataGridV2 = React.forwardRef((props, ref) => {
8791
8808
  style: dataGridBodyStyles,
8792
8809
  children: [
8793
8810
  /* @__PURE__ */ jsx$2(DataGridHeader$1, { children: /* @__PURE__ */ jsx$2(DataGridRow$1, { children: ({ renderHeaderCell }) => /* @__PURE__ */ jsx$2(DataGridHeaderCell$1, { children: renderHeaderCell() }) }) }),
8794
- /* @__PURE__ */ jsx$2(
8811
+ /* @__PURE__ */ jsx$2("div", { className: mergeClasses(scrollbarClassName), children: /* @__PURE__ */ jsx$2(
8795
8812
  DataGridBody$1,
8796
8813
  {
8797
8814
  itemSize: virtualizedItemSize,
@@ -8800,8 +8817,6 @@ const DataGridV2 = React.forwardRef((props, ref) => {
8800
8817
  listProps: {
8801
8818
  onItemsRendered: handleItemsRendered
8802
8819
  },
8803
- className: dataGridBodyClassName,
8804
- style: dataGridBodyStyles,
8805
8820
  children: (row, style) => (() => {
8806
8821
  const item = row.item;
8807
8822
  const idx = itemIndexMap.get(item) ?? items.indexOf(item);
@@ -8827,7 +8842,7 @@ const DataGridV2 = React.forwardRef((props, ref) => {
8827
8842
  );
8828
8843
  })()
8829
8844
  }
8830
- )
8845
+ ) })
8831
8846
  ]
8832
8847
  },
8833
8848
  gridKey
@@ -26825,8 +26840,7 @@ const useDashboardStyles = () => {
26825
26840
  minHeight: "280px"
26826
26841
  }),
26827
26842
  cardDescription: css$1({
26828
- color: `${tokens.colorNeutralForeground2}`,
26829
- marginTop: "4px"
26843
+ color: `${tokens.colorNeutralForeground2}`
26830
26844
  }),
26831
26845
  cardWrapper: css$1({
26832
26846
  position: "relative",