@alaarab/ogrid-react-fluent 2.1.8 → 2.1.9

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.
@@ -623,6 +623,10 @@
623
623
  [data-drag-anchor] {
624
624
  background: var(--ogrid-bg, #fff) !important;
625
625
  }
626
+ .DataGridTable_module_activeCellContent[data-drag-anchor],
627
+ .DataGridTable_module_activeCellContent[data-drag-range] {
628
+ outline: none;
629
+ }
626
630
  .DataGridTable_module_cellCut {
627
631
  background: var(--ogrid-hover-bg, rgba(0, 0, 0, 0.04)) !important;
628
632
  opacity: 0.7;
@@ -811,35 +815,106 @@
811
815
  transform: rotate(360deg);
812
816
  }
813
817
  }
814
- :root {
818
+ :where(:root) {
815
819
  --ogrid-bg: #ffffff;
816
820
  --ogrid-fg: rgba(0, 0, 0, 0.87);
817
821
  --ogrid-fg-secondary: rgba(0, 0, 0, 0.6);
818
822
  --ogrid-fg-muted: rgba(0, 0, 0, 0.5);
819
823
  --ogrid-border: rgba(0, 0, 0, 0.12);
820
- --ogrid-header-bg: #f3f2f1;
824
+ --ogrid-border-strong: rgba(0, 0, 0, 0.5);
825
+ --ogrid-border-hover: rgba(0, 0, 0, 0.3);
826
+ --ogrid-header-bg: #f5f5f5;
821
827
  --ogrid-hover-bg: rgba(0, 0, 0, 0.04);
822
828
  --ogrid-selected-row-bg: #e6f0fb;
829
+ --ogrid-bg-selected-hover: #dae8f8;
823
830
  --ogrid-active-cell-bg: rgba(0, 0, 0, 0.02);
824
831
  --ogrid-range-bg: rgba(33, 115, 70, 0.12);
825
832
  --ogrid-accent: #0078d4;
833
+ --ogrid-accent-dark: #005a9e;
826
834
  --ogrid-selection-color: #217346;
835
+ --ogrid-primary: #0078d4;
836
+ --ogrid-primary-fg: #fff;
837
+ --ogrid-primary-hover: #106ebe;
838
+ --ogrid-bg-subtle: #f5f5f5;
839
+ --ogrid-bg-hover: rgba(0, 0, 0, 0.04);
840
+ --ogrid-active-bg: rgba(0, 0, 0, 0.06);
841
+ --ogrid-muted: rgba(0, 0, 0, 0.5);
842
+ --ogrid-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
843
+ --ogrid-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
844
+ --ogrid-pinned-shadow: rgba(0, 0, 0, 0.1);
827
845
  --ogrid-loading-overlay: rgba(255, 255, 255, 0.7);
846
+ --ogrid-selection: #217346;
847
+ --ogrid-bg-range: rgba(33, 115, 70, 0.12);
848
+ --ogrid-bg-selected: #e6f0fb;
849
+ --ogrid-loading-bg: rgba(255, 255, 255, 0.7);
850
+ }
851
+ @media (prefers-color-scheme: dark) {
852
+ :where(:root:not([data-theme=light])) {
853
+ --ogrid-bg: #1e1e1e;
854
+ --ogrid-fg: rgba(255, 255, 255, 0.87);
855
+ --ogrid-fg-secondary: rgba(255, 255, 255, 0.6);
856
+ --ogrid-fg-muted: rgba(255, 255, 255, 0.5);
857
+ --ogrid-border: rgba(255, 255, 255, 0.12);
858
+ --ogrid-border-strong: rgba(255, 255, 255, 0.5);
859
+ --ogrid-border-hover: rgba(255, 255, 255, 0.3);
860
+ --ogrid-header-bg: #2c2c2c;
861
+ --ogrid-hover-bg: rgba(255, 255, 255, 0.08);
862
+ --ogrid-selected-row-bg: #1a3a5c;
863
+ --ogrid-bg-selected-hover: #1f3650;
864
+ --ogrid-active-cell-bg: rgba(255, 255, 255, 0.06);
865
+ --ogrid-range-bg: rgba(46, 160, 67, 0.15);
866
+ --ogrid-accent: #4da6ff;
867
+ --ogrid-accent-dark: #3390e0;
868
+ --ogrid-selection-color: #2ea043;
869
+ --ogrid-primary: #4da6ff;
870
+ --ogrid-primary-fg: #fff;
871
+ --ogrid-primary-hover: #66b3ff;
872
+ --ogrid-bg-subtle: rgba(255, 255, 255, 0.04);
873
+ --ogrid-bg-hover: rgba(255, 255, 255, 0.08);
874
+ --ogrid-active-bg: rgba(255, 255, 255, 0.08);
875
+ --ogrid-muted: rgba(255, 255, 255, 0.5);
876
+ --ogrid-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
877
+ --ogrid-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.25);
878
+ --ogrid-pinned-shadow: rgba(0, 0, 0, 0.3);
879
+ --ogrid-loading-overlay: rgba(0, 0, 0, 0.7);
880
+ --ogrid-selection: #2ea043;
881
+ --ogrid-bg-range: rgba(46, 160, 67, 0.15);
882
+ --ogrid-bg-selected: #1a3a5c;
883
+ --ogrid-loading-bg: rgba(0, 0, 0, 0.7);
884
+ }
828
885
  }
829
- [data-theme=dark] {
830
- --ogrid-bg: #1b1b1f;
886
+ :where([data-theme=dark]) {
887
+ --ogrid-bg: #1e1e1e;
831
888
  --ogrid-fg: rgba(255, 255, 255, 0.87);
832
889
  --ogrid-fg-secondary: rgba(255, 255, 255, 0.6);
833
890
  --ogrid-fg-muted: rgba(255, 255, 255, 0.5);
834
891
  --ogrid-border: rgba(255, 255, 255, 0.12);
892
+ --ogrid-border-strong: rgba(255, 255, 255, 0.5);
893
+ --ogrid-border-hover: rgba(255, 255, 255, 0.3);
835
894
  --ogrid-header-bg: #2c2c2c;
836
- --ogrid-hover-bg: rgba(255, 255, 255, 0.06);
895
+ --ogrid-hover-bg: rgba(255, 255, 255, 0.08);
837
896
  --ogrid-selected-row-bg: #1a3a5c;
838
- --ogrid-active-cell-bg: rgba(255, 255, 255, 0.04);
839
- --ogrid-range-bg: rgba(33, 115, 70, 0.2);
897
+ --ogrid-bg-selected-hover: #1f3650;
898
+ --ogrid-active-cell-bg: rgba(255, 255, 255, 0.06);
899
+ --ogrid-range-bg: rgba(46, 160, 67, 0.15);
840
900
  --ogrid-accent: #4da6ff;
841
- --ogrid-selection-color: #217346;
842
- --ogrid-loading-overlay: rgba(0, 0, 0, 0.5);
901
+ --ogrid-accent-dark: #3390e0;
902
+ --ogrid-selection-color: #2ea043;
903
+ --ogrid-primary: #4da6ff;
904
+ --ogrid-primary-fg: #fff;
905
+ --ogrid-primary-hover: #66b3ff;
906
+ --ogrid-bg-subtle: rgba(255, 255, 255, 0.04);
907
+ --ogrid-bg-hover: rgba(255, 255, 255, 0.08);
908
+ --ogrid-active-bg: rgba(255, 255, 255, 0.08);
909
+ --ogrid-muted: rgba(255, 255, 255, 0.5);
910
+ --ogrid-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
911
+ --ogrid-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.25);
912
+ --ogrid-pinned-shadow: rgba(0, 0, 0, 0.3);
913
+ --ogrid-loading-overlay: rgba(0, 0, 0, 0.7);
914
+ --ogrid-selection: #2ea043;
915
+ --ogrid-bg-range: rgba(46, 160, 67, 0.15);
916
+ --ogrid-bg-selected: #1a3a5c;
917
+ --ogrid-loading-bg: rgba(0, 0, 0, 0.7);
843
918
  }
844
919
  .fui-FluentProvider {
845
920
  --ogrid-bg: var(--colorNeutralBackground1, #ffffff);
package/dist/esm/index.js CHANGED
@@ -924,7 +924,8 @@ function DataGridTableInner(props) {
924
924
  items,
925
925
  visibleColumns,
926
926
  columnSizingOverrides,
927
- columnOrder
927
+ columnOrder,
928
+ isDragging
928
929
  }
929
930
  ),
930
931
  showEmptyInGrid && emptyState && /* @__PURE__ */ jsx(EmptyState, { emptyState })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alaarab/ogrid-react-fluent",
3
- "version": "2.1.8",
3
+ "version": "2.1.9",
4
4
  "description": "OGrid React Fluent implementation – DataGrid-powered data table with sorting, filtering, pagination, column chooser, and CSV export.",
5
5
  "main": "dist/esm/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -41,7 +41,7 @@
41
41
  "node": ">=18"
42
42
  },
43
43
  "dependencies": {
44
- "@alaarab/ogrid-react": "2.1.8"
44
+ "@alaarab/ogrid-react": "2.1.9"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@fluentui/react-components": "^9.0.0",