@gridkitjs/theme-css 0.0.0-dev-20261112200523 → 0.0.0-dev-20261118111459

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/styles.css +63 -25
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridkitjs/theme-css",
3
- "version": "0.0.0-dev-20261112200523",
3
+ "version": "0.0.0-dev-20261118111459",
4
4
  "description": "Plain-CSS theme for GridKit — palette tokens, dark mode and grid styles, no Tailwind needed.",
5
5
  "license": "MIT",
6
6
  "author": "Blagoja Blazhevski",
package/src/styles.css CHANGED
@@ -444,7 +444,7 @@
444
444
  .gridkit-data-grid .gridkit-header-resize-handle {
445
445
  position: absolute;
446
446
  top: 0;
447
- right: 0;
447
+ inset-inline-end: 0;
448
448
  bottom: 0;
449
449
  width: 6px;
450
450
  cursor: col-resize;
@@ -456,7 +456,7 @@
456
456
  /*
457
457
  * A resize colours the edge being dragged on every cell in the column, so it
458
458
  * reads as one line down the grid rather than a stack of outlined cells.
459
- * `box-shadow` rather than `border-right`: under `borders="none"` there is no
459
+ * `box-shadow` rather than a border: under `borders="none"` there is no
460
460
  * border to recolour, and adding one would shift the cell's content by a
461
461
  * pixel mid-drag.
462
462
  */
@@ -466,6 +466,13 @@
466
466
  var(--gridkit-hover-line);
467
467
  }
468
468
 
469
+ /* A shadow's offset is physical, so right-to-left moves it to the left edge. */
470
+ .gridkit-data-grid .gridkit-header-cell.is-resizing:dir(rtl),
471
+ .gridkit-data-grid .gridkit-grid-cell.is-resizing:dir(rtl) {
472
+ box-shadow: inset var(--gridkit-indicator-width) 0 0 0
473
+ var(--gridkit-hover-line);
474
+ }
475
+
469
476
  /*
470
477
  * The grid is one tab stop and the arrow keys move within it, so the focused
471
478
  * cell is the only sign of where that stop currently is — without this ring a
@@ -525,6 +532,7 @@
525
532
  .gridkit-data-grid.gridkit-drag-ghost {
526
533
  position: fixed;
527
534
  top: 0;
535
+ /* Physical in either direction: the transform is a viewport x from the left. */
528
536
  left: 0;
529
537
  z-index: 50;
530
538
  padding: var(--gridkit-header-padding-y) var(--gridkit-header-padding-x);
@@ -567,14 +575,24 @@
567
575
  var(--gridkit-accent);
568
576
  }
569
577
 
578
+ /* Mirrored for the resize line's reason: a shadow's offset is physical. */
579
+ .gridkit-data-grid .gridkit-header-cell.is-drop-before:dir(rtl) {
580
+ box-shadow: inset calc(var(--gridkit-indicator-width) * -1) 0 0 0
581
+ var(--gridkit-accent);
582
+ }
583
+
584
+ .gridkit-data-grid .gridkit-header-cell.is-drop-after:dir(rtl) {
585
+ box-shadow: inset var(--gridkit-indicator-width) 0 0 0 var(--gridkit-accent);
586
+ }
587
+
570
588
  /*
571
- * Docked to the header's own right edge, absolutely — like the resize
589
+ * Docked to the header's own inline-end edge, absolutely — like the resize
572
590
  * handle, and for the same reason: sitting in the label's normal flow, a
573
591
  * long label under `text-overflow: ellipsis` pushes the toggle out past
574
592
  * where `overflow: hidden` clips it, leaving it unclickable (a real click
575
593
  * there lands on the header cell instead and selects the column). Docked
576
594
  * to a fixed offset, it stays inside the clipped area — and clear of the
577
- * resize handle's own 6px strip at `right: 0`, so a resizable, sortable
595
+ * resize handle's own 6px strip at the inline end, so a resizable, sortable
578
596
  * column keeps two independent hit targets rather than one shadowing the
579
597
  * other.
580
598
  */
@@ -582,7 +600,7 @@
582
600
  display: inline-flex;
583
601
  position: absolute;
584
602
  top: 50%;
585
- right: calc(var(--gridkit-spacing) * 3);
603
+ inset-inline-end: calc(var(--gridkit-spacing) * 3);
586
604
  transform: translateY(-50%);
587
605
  align-items: center;
588
606
  gap: calc(var(--gridkit-spacing) * 0.5);
@@ -647,7 +665,7 @@
647
665
  display: inline-flex;
648
666
  align-items: center;
649
667
  vertical-align: middle;
650
- margin-right: calc(var(--gridkit-spacing) * 1.5);
668
+ margin-inline-end: calc(var(--gridkit-spacing) * 1.5);
651
669
  cursor: pointer;
652
670
  color: var(--gridkit-fg-muted);
653
671
  }
@@ -689,7 +707,7 @@
689
707
  display: inline-flex;
690
708
  position: absolute;
691
709
  top: 50%;
692
- right: calc(var(--gridkit-spacing) * 3);
710
+ inset-inline-end: calc(var(--gridkit-spacing) * 3);
693
711
  transform: translateY(-50%);
694
712
  align-items: center;
695
713
  cursor: pointer;
@@ -728,7 +746,9 @@
728
746
  .gridkit-header-cell:has(> .gridkit-header-filter-toggle)
729
747
  .gridkit-header-sort-toggle {
730
748
  /* The filter button's offset and width, then a gap. */
731
- right: calc(var(--gridkit-spacing) * 4.5 + var(--gridkit-header-icon-size));
749
+ inset-inline-end: calc(
750
+ var(--gridkit-spacing) * 4.5 + var(--gridkit-header-icon-size)
751
+ );
732
752
  }
733
753
 
734
754
  .gridkit-data-grid .gridkit-grid-cell {
@@ -797,16 +817,17 @@
797
817
  font-weight: var(--gridkit-group-font-weight);
798
818
  }
799
819
 
800
- /* A right-pointing triangle that rotates open on expand. */
820
+ /* A triangle pointing to the inline end that rotates open on expand. */
801
821
  .gridkit-data-grid .gridkit-grid-group-row .gridkit-group-toggle {
802
822
  display: inline-block;
803
823
  flex-shrink: 0;
804
824
  width: 0;
805
825
  height: 0;
806
826
  border-style: solid;
807
- border-width: calc(var(--gridkit-icon-size) / 4) 0
808
- calc(var(--gridkit-icon-size) / 4) calc(var(--gridkit-icon-size) * 0.4);
809
- border-color: transparent transparent transparent var(--gridkit-fg-muted);
827
+ border-block-width: calc(var(--gridkit-icon-size) / 4);
828
+ border-inline-width: calc(var(--gridkit-icon-size) * 0.4) 0;
829
+ border-color: transparent;
830
+ border-inline-start-color: var(--gridkit-fg-muted);
810
831
  transition: transform var(--gridkit-transition-duration) ease;
811
832
  }
812
833
 
@@ -814,6 +835,13 @@
814
835
  transform: rotate(90deg);
815
836
  }
816
837
 
838
+ /* Pointing left, the triangle turns the other way to point down. */
839
+ .gridkit-data-grid
840
+ .gridkit-grid-group-row
841
+ .gridkit-group-toggle.is-expanded:dir(rtl) {
842
+ transform: rotate(-90deg);
843
+ }
844
+
817
845
  /*
818
846
  * Set on the rule rather than on `--gridkit-transition-duration`, so a
819
847
  * theme's own duration can't bring the motion back.
@@ -994,7 +1022,7 @@
994
1022
  /*
995
1023
  * The last row's bottom edge has no row below it to collapse with, so
996
1024
  * unlike every internal boundary it is a genuinely extra line — the same
997
- * reason `gridkit-borders-vertical` drops its `:last-child` border-right below.
1025
+ * reason `gridkit-borders-vertical` drops its `:last-child` end border below.
998
1026
  * Matched against both row kinds: the last rendered row can just as well
999
1027
  * be a collapsed group header as a data row.
1000
1028
  */
@@ -1017,8 +1045,8 @@
1017
1045
  .gridkit-data-grid.gridkit-borders-vertical .gridkit-grid-cell,
1018
1046
  .gridkit-data-grid.gridkit-borders-vertical .gridkit-grid-footer-cell,
1019
1047
  .gridkit-data-grid.gridkit-borders-vertical .gridkit-grid-group-summary-cell {
1020
- border-right: var(--gridkit-column-line-width) var(--gridkit-border-style)
1021
- var(--gridkit-line);
1048
+ border-inline-end: var(--gridkit-column-line-width)
1049
+ var(--gridkit-border-style) var(--gridkit-line);
1022
1050
  }
1023
1051
 
1024
1052
  .gridkit-data-grid.gridkit-borders-vertical
@@ -1029,7 +1057,7 @@
1029
1057
  .gridkit-grid-footer-cell:last-child,
1030
1058
  .gridkit-data-grid.gridkit-borders-vertical
1031
1059
  .gridkit-grid-group-summary-cell:last-child {
1032
- border-right: none;
1060
+ border-inline-end: none;
1033
1061
  }
1034
1062
 
1035
1063
  /* Borders on all sides */
@@ -1041,17 +1069,17 @@
1041
1069
  .gridkit-data-grid.gridkit-borders-all .gridkit-grid-group-summary-cell {
1042
1070
  border-bottom: var(--gridkit-row-line-width) var(--gridkit-border-style)
1043
1071
  var(--gridkit-line);
1044
- border-right: var(--gridkit-column-line-width) var(--gridkit-border-style)
1045
- var(--gridkit-line);
1072
+ border-inline-end: var(--gridkit-column-line-width)
1073
+ var(--gridkit-border-style) var(--gridkit-line);
1046
1074
  }
1047
1075
 
1048
1076
  .gridkit-data-grid.gridkit-borders-all .gridkit-grid-footer-cell {
1049
- border-right: var(--gridkit-column-line-width) var(--gridkit-border-style)
1050
- var(--gridkit-line);
1077
+ border-inline-end: var(--gridkit-column-line-width)
1078
+ var(--gridkit-border-style) var(--gridkit-line);
1051
1079
  }
1052
1080
 
1053
1081
  /*
1054
- * The outer left/right edges have no neighbouring cell to collapse with, so
1082
+ * The outer start and end edges have no neighbouring cell to collapse with, so
1055
1083
  * unlike every internal boundary they are a genuinely extra line — without
1056
1084
  * this the table would render two lines wider than the sum of its columns. A
1057
1085
  * group cell is both its row's first and last child at once (it is the
@@ -1065,7 +1093,7 @@
1065
1093
  .gridkit-data-grid.gridkit-borders-all .gridkit-grid-footer-cell:first-child,
1066
1094
  .gridkit-data-grid.gridkit-borders-all
1067
1095
  .gridkit-grid-group-summary-cell:first-child {
1068
- border-left: none;
1096
+ border-inline-start: none;
1069
1097
  }
1070
1098
 
1071
1099
  .gridkit-data-grid.gridkit-borders-all
@@ -1076,7 +1104,7 @@
1076
1104
  .gridkit-data-grid.gridkit-borders-all .gridkit-grid-footer-cell:last-child,
1077
1105
  .gridkit-data-grid.gridkit-borders-all
1078
1106
  .gridkit-grid-group-summary-cell:last-child {
1079
- border-right: none;
1107
+ border-inline-end: none;
1080
1108
  }
1081
1109
 
1082
1110
  .gridkit-data-grid.gridkit-borders-all
@@ -1326,13 +1354,13 @@
1326
1354
  }
1327
1355
 
1328
1356
  .gridkit-group-by-chip.is-drop-before::before {
1329
- left: calc(
1357
+ inset-inline-start: calc(
1330
1358
  var(--gridkit-spacing) * -1 - var(--gridkit-indicator-width) / 2
1331
1359
  );
1332
1360
  }
1333
1361
 
1334
1362
  .gridkit-group-by-chip.is-drop-after::after {
1335
- right: calc(
1363
+ inset-inline-end: calc(
1336
1364
  var(--gridkit-spacing) * -1 - var(--gridkit-indicator-width) / 2
1337
1365
  );
1338
1366
  }
@@ -1346,6 +1374,7 @@
1346
1374
  .gridkit-group-by-chip.gridkit-drag-ghost {
1347
1375
  position: fixed;
1348
1376
  top: 0;
1377
+ /* Physical for the header ghost's reason. */
1349
1378
  left: 0;
1350
1379
  z-index: 50;
1351
1380
  border: var(--gridkit-border-width) dashed var(--gridkit-accent);
@@ -1678,6 +1707,10 @@
1678
1707
  color: var(--gridkit-fg-muted);
1679
1708
  }
1680
1709
 
1710
+ .gridkit-menu-submenu-indicator:dir(rtl) svg {
1711
+ transform: scaleX(-1);
1712
+ }
1713
+
1681
1714
  .gridkit-menu-separator {
1682
1715
  height: var(--gridkit-border-width);
1683
1716
  margin: var(--gridkit-spacing) 0;
@@ -2030,6 +2063,11 @@
2030
2063
  margin-inline-start: auto;
2031
2064
  }
2032
2065
 
2066
+ .gridkit-filter-menu-submenu-indicator:dir(rtl) svg,
2067
+ .gridkit-filter-menu-back-icon:dir(rtl) svg {
2068
+ transform: scaleX(-1);
2069
+ }
2070
+
2033
2071
  .gridkit-filter-menu-search {
2034
2072
  box-sizing: border-box;
2035
2073
  width: 100%;