@citizenplane/pimp 10.6.1 → 10.6.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citizenplane/pimp",
3
- "version": "10.6.1",
3
+ "version": "10.6.2",
4
4
  "scripts": {
5
5
  "dev": "storybook dev -p 8080",
6
6
  "build-storybook": "storybook build --output-dir ./docs",
@@ -92,6 +92,7 @@ const handleItemClick = async (event: Event) => {
92
92
  }
93
93
 
94
94
  position: relative;
95
+ color: var(--cp-text-primary);
95
96
  display: flex;
96
97
  width: 100%;
97
98
  align-items: center;
@@ -695,75 +695,15 @@ defineExpose({ hideContextualMenu, resetPagination, currentRowData })
695
695
  }
696
696
 
697
697
  &__row {
698
- &--body:not(:last-of-type):not(#{&}--isFullWidth) {
699
- box-shadow: inset 0 calc(var(--cp-dimensions-0_25) * -1) 0 var(--cp-border-soft);
700
- }
701
-
702
- &--body:has(+ #{&}--isFullWidth),
703
- &--isFullWidth:has(+ .cpTable__row:hover) {
704
- box-shadow: none !important;
705
- }
706
-
707
- &--isFullWidth:has(+ .cpTable__row:is(:hover, :focus, :focus-within), + .cpTable__row--isSelected)
708
- + .cpTable__row::after {
709
- box-shadow: none !important;
710
- }
711
-
712
- &--isFullWidth {
713
- border-top: none;
714
- }
715
-
716
- &--body:not(#{&}--isFullWidth):is(:hover, :focus, :focus-within) {
717
- position: relative;
718
- transition: background-color 100ms ease-in-out;
698
+ &--body:not(:last-of-type) {
699
+ border-bottom: var(--cp-dimensions-0_25) solid var(--cp-border-soft);
719
700
  }
720
701
 
721
- &--body:not(#{&}--isFullWidth):is(:hover, :focus, :focus-within) td {
702
+ &--body:not(#{&}--isFullWidth):not(#{&}--isSelected):hover,
703
+ &--body:not(#{&}--isFullWidth):not(#{&}--isSelected):focus,
704
+ &--body:not(#{&}--isFullWidth):not(#{&}--isSelected):focus-within {
722
705
  background-color: var(--cp-background-primary-hover);
723
- }
724
-
725
- &--body:not(#{&}--isFullWidth):not(
726
- :has(+ #{&}--isSelected),
727
- :has(+ .cpTable__row:is(:hover, :focus, :focus-within))
728
- ):is(:hover, :focus, :focus-within)::after {
729
- content: '';
730
- position: absolute;
731
- inset: 0;
732
- border-radius: var(--cp-radius-md);
733
- box-shadow: inset 0 0 0 var(--cp-dimensions-0_25) var(--cp-border-soft);
734
- pointer-events: none;
735
- }
736
-
737
- &--body:not(#{&}--isFullWidth):hover td:first-child,
738
- &--body:not(#{&}--isFullWidth):focus td:first-child,
739
- &--body:not(#{&}--isFullWidth):focus-within td:first-child {
740
- border-top-left-radius: var(--cp-radius-md);
741
- border-bottom-left-radius: var(--cp-radius-md);
742
- }
743
-
744
- &--body:not(#{&}--isFullWidth):hover td:last-child,
745
- &--body:not(#{&}--isFullWidth):focus td:last-child,
746
- &--body:not(#{&}--isFullWidth):focus-within td:last-child {
747
- border-top-right-radius: var(--cp-radius-md);
748
- border-bottom-right-radius: var(--cp-radius-md);
749
- }
750
-
751
- &--body:not(#{&}--isFullWidth):has(.cpTable__cell--isOptions:not([style*='display: none'])):hover
752
- td:nth-last-child(2),
753
- &--body:not(#{&}--isFullWidth):has(.cpTable__cell--isOptions:not([style*='display: none'])):focus
754
- td:nth-last-child(2),
755
- &--body:not(#{&}--isFullWidth):has(.cpTable__cell--isOptions:not([style*='display: none'])):focus-within
756
- td:nth-last-child(2) {
757
- border-top-right-radius: 0;
758
- border-bottom-right-radius: 0;
759
- }
760
-
761
- &--body:not(#{&}--isFullWidth):has(.cpTable__cell--isOptions[style*='display: none']):hover td:nth-last-child(2),
762
- &--body:not(#{&}--isFullWidth):has(.cpTable__cell--isOptions[style*='display: none']):focus td:nth-last-child(2),
763
- &--body:not(#{&}--isFullWidth):has(.cpTable__cell--isOptions[style*='display: none']):focus-within
764
- td:nth-last-child(2) {
765
- border-top-right-radius: var(--cp-radius-md);
766
- border-bottom-right-radius: var(--cp-radius-md);
706
+ transition: background-color 100ms ease-in-out;
767
707
  }
768
708
 
769
709
  &--body:not(#{&}--isFullWidth):not(#{&}--isSelected):focus,
@@ -774,8 +714,6 @@ defineExpose({ hideContextualMenu, resetPagination, currentRowData })
774
714
  &--isFullWidth td {
775
715
  padding: var(--cp-spacing-md);
776
716
  background-color: var(--cp-background-secondary);
777
- border-radius: var(--cp-radius-md);
778
- box-shadow: inset 0 0 0 var(--cp-dimensions-0_25) var(--cp-border-soft);
779
717
  }
780
718
 
781
719
  &--isClickable {
@@ -787,49 +725,6 @@ defineExpose({ hideContextualMenu, resetPagination, currentRowData })
787
725
  color: var(--cp-text-accent-primary);
788
726
  }
789
727
 
790
- &--isSelected {
791
- position: relative;
792
- }
793
-
794
- &--isSelected:not(:has(+ #{&}--isFullWidth))::after {
795
- content: '';
796
- position: absolute;
797
- inset: 0;
798
- border-radius: var(--cp-radius-md);
799
- box-shadow: inset 0 0 0 var(--cp-dimensions-0_25) var(--cp-utility-accent-100);
800
- pointer-events: none;
801
- }
802
-
803
- &--isSelected td:first-child {
804
- border-top-left-radius: var(--cp-radius-md);
805
- border-bottom-left-radius: var(--cp-radius-md);
806
- }
807
-
808
- &--isSelected td:last-child {
809
- border-top-right-radius: var(--cp-radius-md);
810
- border-bottom-right-radius: var(--cp-radius-md);
811
- }
812
-
813
- &--isSelected:has(.cpTable__cell--isOptions:not([style*='display: none'])) td:nth-last-child(2) {
814
- border-top-right-radius: 0;
815
- border-bottom-right-radius: 0;
816
- }
817
-
818
- &--isSelected:has(.cpTable__cell--isOptions[style*='display: none']) td:nth-last-child(2) {
819
- border-top-right-radius: var(--cp-radius-md);
820
- border-bottom-right-radius: var(--cp-radius-md);
821
- }
822
-
823
- &--body:not(#{&}--isFullWidth):is(:hover, :focus, :focus-within),
824
- &--body:not(#{&}--isFullWidth).cpTable__row--isSelected {
825
- box-shadow: none !important;
826
- }
827
-
828
- &--body:not(#{&}--isFullWidth):has(+ #{&}--isSelected),
829
- &--body:not(#{&}--isFullWidth):has(+ #{&}:is(:hover, :focus, :focus-within)) {
830
- box-shadow: none !important;
831
- }
832
-
833
728
  &--body td {
834
729
  font-size: var(--cp-text-size-sm);
835
730
  }
@@ -873,28 +768,6 @@ defineExpose({ hideContextualMenu, resetPagination, currentRowData })
873
768
  }
874
769
  }
875
770
 
876
- &:has(
877
- .cpTable__row--body:first-of-type:is(:hover, :focus, :focus-within),
878
- .cpTable__row--body:first-of-type.cpTable__row--isSelected
879
- ) {
880
- .cpTable__column:after {
881
- background-color: transparent;
882
- }
883
- }
884
-
885
- &:has(
886
- .cpTable__row--body:last-of-type:is(:hover, :focus, :focus-within),
887
- .cpTable__row--body:last-of-type.cpTable__row--isSelected
888
- ) {
889
- .cpTable__container--hasPagination {
890
- border-bottom-color: transparent;
891
- }
892
- }
893
-
894
- &__table:has(.cpTable__row--body:first-of-type.cpTable__row--isFullWidth) &__column:after {
895
- background-color: transparent;
896
- }
897
-
898
771
  &__columnEditor {
899
772
  padding-right: calc(var(--cp-spacing-lg) + var(--cp-dimensions-0_5));
900
773