@policystudio/policy-studio-ui-vue 1.2.0-access.35 → 1.2.0-access.36

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.
@@ -1,4 +1,16 @@
1
1
  @import url("https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Round");
2
+ .psui-el-table-results.layout-results tbody tr td:first-child, .psui-el-table-results.layout-results thead tr th:first-child {
3
+ position: sticky;
4
+ left: 0px;
5
+ z-index: 10;
6
+ --tw-bg-opacity: 1;
7
+ background-color: rgb(255, 255, 255, var(--tw-bg-opacity, 1));
8
+ padding-left: 0px;
9
+ padding-right: 2rem;
10
+ text-align: left;
11
+ box-shadow: inset -1px 0px 0px #ebeef0;
12
+ }
13
+
2
14
  *, ::before, ::after {
3
15
  --tw-border-spacing-x: 0;
4
16
  --tw-border-spacing-y: 0;
@@ -568,31 +580,31 @@ video {
568
580
  --tw-shadow-colored: 0px 0px 8px var(--tw-shadow-color), 0px 2px 5px var(--tw-shadow-color);
569
581
  box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-shadow);
570
582
  }
571
- .psui-el-table-results.layout-results thead:after {
583
+ .psui-el-table-results.layout-results thead::after {
572
584
  content: "";
573
585
  }
574
- .psui-el-table-results.layout-results thead:after {
586
+ .psui-el-table-results.layout-results thead::after {
575
587
  position: absolute;
576
588
  }
577
- .psui-el-table-results.layout-results thead:after {
589
+ .psui-el-table-results.layout-results thead::after {
578
590
  top: 0px;
579
591
  }
580
- .psui-el-table-results.layout-results thead:after {
592
+ .psui-el-table-results.layout-results thead::after {
593
+ right: -8px;
594
+ }
595
+ .psui-el-table-results.layout-results thead::after {
581
596
  display: inline-block;
582
597
  }
583
- .psui-el-table-results.layout-results thead:after {
598
+ .psui-el-table-results.layout-results thead::after {
584
599
  height: 100%;
585
600
  }
586
- .psui-el-table-results.layout-results thead:after {
601
+ .psui-el-table-results.layout-results thead::after {
587
602
  width: 0.5rem;
588
603
  }
589
- .psui-el-table-results.layout-results thead:after {
604
+ .psui-el-table-results.layout-results thead::after {
590
605
  --tw-bg-opacity: 1;
591
606
  background-color: rgb(255, 255, 255, var(--tw-bg-opacity, 1));
592
607
  }
593
- .psui-el-table-results.layout-results thead:after {
594
- right: -8px;
595
- }
596
608
  .psui-el-table-results.layout-results thead tr .title {
597
609
  font-size: 14px;
598
610
  line-height: 20px;
@@ -600,9 +612,6 @@ video {
600
612
  .psui-el-table-results.layout-results thead tr .title {
601
613
  font-weight: 600;
602
614
  }
603
- .psui-el-table-results.layout-results thead tr .title {
604
- line-height: 1rem;
605
- }
606
615
  .psui-el-table-results.layout-results thead tr .title {
607
616
  --tw-text-opacity: 1;
608
617
  color: rgb(40, 50, 59, var(--tw-text-opacity, 1));
@@ -610,6 +619,10 @@ video {
610
619
  .psui-el-table-results.layout-results thead tr th {
611
620
  width: auto;
612
621
  }
622
+ .psui-el-table-results.layout-results thead tr th {
623
+ padding-top: 13px;
624
+ padding-bottom: 13px;
625
+ }
613
626
  .psui-el-table-results.layout-results thead tr th {
614
627
  padding-left: 1.5rem;
615
628
  }
@@ -623,10 +636,6 @@ video {
623
636
  --tw-text-opacity: 1;
624
637
  color: rgb(121, 132, 144, var(--tw-text-opacity, 1));
625
638
  }
626
- .psui-el-table-results.layout-results thead tr th {
627
- padding-top: 13px;
628
- padding-bottom: 13px;
629
- }
630
639
  .psui-el-table-results.layout-results thead tr th .description {
631
640
  font-size: 14px;
632
641
  line-height: 20px;
@@ -638,44 +647,18 @@ video {
638
647
  --tw-text-opacity: 1;
639
648
  color: rgb(81, 94, 106, var(--tw-text-opacity, 1));
640
649
  }
641
- .psui-el-table-results.layout-results thead tr th .description {
642
- line-height: 110%;
643
- }
644
- .psui-el-table-results.layout-results thead tr th:first-child {
645
- position: sticky;
646
- }
647
- .psui-el-table-results.layout-results thead tr th:first-child {
648
- left: 0px;
649
- }
650
650
  .psui-el-table-results.layout-results thead tr th:first-child {
651
- z-index: 10;
652
- }
653
- .psui-el-table-results.layout-results thead tr th:first-child {
654
- --tw-bg-opacity: 1;
655
- background-color: rgb(255, 255, 255, var(--tw-bg-opacity, 1));
656
- }
657
- .psui-el-table-results.layout-results thead tr th:first-child {
658
- padding-left: 0px;
659
- }
660
- .psui-el-table-results.layout-results thead tr th:first-child {
661
- padding-right: 2rem;
662
- }
663
- .psui-el-table-results.layout-results thead tr th:first-child {
664
- text-align: left;
665
- }
666
- .psui-el-table-results.layout-results thead tr th:first-child {
667
- box-shadow: inset -1px 0px 0px #ebeef0;
668
651
  min-width: 300px;
669
652
  }
670
653
  .psui-el-table-results.layout-results thead tr th:first-child > div {
671
654
  padding-left: 0px;
672
655
  }
673
656
  .psui-el-table-results.layout-results thead tr:first-of-type th {
674
- text-align: left;
657
+ padding-top: 0px;
658
+ padding-bottom: 0px;
675
659
  }
676
660
  .psui-el-table-results.layout-results thead tr:first-of-type th {
677
- padding-top: 0;
678
- padding-bottom: 0;
661
+ text-align: left;
679
662
  }
680
663
  .psui-el-table-results.layout-results thead tr:first-of-type th > div {
681
664
  display: flex;
@@ -694,39 +677,45 @@ video {
694
677
  padding-top: 0.688rem;
695
678
  padding-bottom: 0.688rem;
696
679
  }
697
- .psui-el-table-results.layout-results thead tr:first-of-type p {
698
- font-size: 16px;
699
- line-height: 24px;
700
- }
701
- .psui-el-table-results.layout-results thead tr:first-of-type p {
702
- line-height: 18px;
680
+ .psui-el-table-results.layout-results thead tr:first-of-type th > div {
681
+ padding-left: 0px;
682
+ padding-right: 0px;
703
683
  }
704
684
  .psui-el-table-results.layout-results tbody tr {
705
685
  border-bottom-width: 1px;
706
- }
707
- .psui-el-table-results.layout-results tbody tr {
708
686
  --tw-border-opacity: 1;
709
687
  border-color: rgb(230, 236, 242, var(--tw-border-opacity, 1));
710
688
  }
711
- .psui-el-table-results.layout-results tbody tr.is-first .title {
712
- font-weight: 700;
713
- }
714
- .psui-el-table-results.layout-results tbody tr.is-first .title {
715
- --tw-text-opacity: 1;
716
- color: rgb(40, 50, 59, var(--tw-text-opacity, 1));
717
- }
718
689
  .psui-el-table-results.layout-results tbody tr .title {
719
690
  display: flex;
720
691
  }
721
692
  .psui-el-table-results.layout-results tbody tr .title {
722
693
  align-items: center;
723
694
  }
695
+ .psui-el-table-results.layout-results tbody tr .title {
696
+ font-size: 14px;
697
+ line-height: 20px;
698
+ }
724
699
  .psui-el-table-results.layout-results tbody tr .title {
725
700
  line-height: 24px;
726
701
  }
702
+ .psui-el-table-results.layout-results tbody tr.is-first .title {
703
+ font-weight: 700;
704
+ }
705
+ .psui-el-table-results.layout-results tbody tr.is-first .title {
706
+ --tw-text-opacity: 1;
707
+ color: rgb(40, 50, 59, var(--tw-text-opacity, 1));
708
+ }
727
709
  .psui-el-table-results.layout-results tbody tr td {
728
710
  height: 2.5rem;
729
711
  }
712
+ .psui-el-table-results.layout-results tbody tr td {
713
+ min-height: 41.5px;
714
+ }
715
+ .psui-el-table-results.layout-results tbody tr td {
716
+ padding-top: 0.688rem;
717
+ padding-bottom: 0.688rem;
718
+ }
730
719
  .psui-el-table-results.layout-results tbody tr td {
731
720
  padding-left: 2rem;
732
721
  }
@@ -741,17 +730,22 @@ video {
741
730
  --tw-text-opacity: 1;
742
731
  color: rgb(40, 50, 59, var(--tw-text-opacity, 1));
743
732
  }
744
- .psui-el-table-results.layout-results tbody tr td {
745
- padding-top: 0.688rem;
746
- padding-bottom: 0.688rem;
747
- min-height: 41.5px;
748
- }
749
733
  .psui-el-table-results.layout-results tbody tr td > div {
750
734
  display: flex;
751
735
  }
752
736
  .psui-el-table-results.layout-results tbody tr td > div {
753
737
  align-items: center;
754
738
  }
739
+ .psui-el-table-results.layout-results tbody tr td:not(:first-child) > div {
740
+ justify-content: flex-end;
741
+ }
742
+ .psui-el-table-results.layout-results tbody tr td:first-child {
743
+ display: block;
744
+ }
745
+ .psui-el-table-results.layout-results tbody tr td:first-child {
746
+ padding-top: 0.5rem;
747
+ padding-bottom: 0.5rem;
748
+ }
755
749
  .psui-el-table-results.layout-results tbody tr td .actions {
756
750
  position: relative;
757
751
  }
@@ -773,39 +767,6 @@ video {
773
767
  .psui-el-table-results.layout-results tbody tr td .actions .is-last-deep {
774
768
  padding-left: 2.5rem;
775
769
  }
776
- .psui-el-table-results.layout-results tbody tr td:not(:first-child) > div {
777
- justify-content: flex-end;
778
- }
779
- .psui-el-table-results.layout-results tbody tr td:first-child {
780
- position: sticky;
781
- }
782
- .psui-el-table-results.layout-results tbody tr td:first-child {
783
- left: 0px;
784
- }
785
- .psui-el-table-results.layout-results tbody tr td:first-child {
786
- z-index: 10;
787
- }
788
- .psui-el-table-results.layout-results tbody tr td:first-child {
789
- display: block;
790
- }
791
- .psui-el-table-results.layout-results tbody tr td:first-child {
792
- --tw-bg-opacity: 1;
793
- background-color: rgb(255, 255, 255, var(--tw-bg-opacity, 1));
794
- }
795
- .psui-el-table-results.layout-results tbody tr td:first-child {
796
- padding-left: 0px;
797
- }
798
- .psui-el-table-results.layout-results tbody tr td:first-child {
799
- padding-right: 2rem;
800
- }
801
- .psui-el-table-results.layout-results tbody tr td:first-child {
802
- text-align: left;
803
- }
804
- .psui-el-table-results.layout-results tbody tr td:first-child {
805
- box-shadow: inset -1px 0px 0px #ebeef0;
806
- padding-top: 8px;
807
- padding-bottom: 8px;
808
- }
809
770
  .psui-el-table-results.layout-results tbody tr.is-active {
810
771
  --tw-bg-opacity: 1;
811
772
  background-color: rgb(243, 246, 249, var(--tw-bg-opacity, 1));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@policystudio/policy-studio-ui-vue",
3
- "version": "1.2.0-access.35",
3
+ "version": "1.2.0-access.36",
4
4
  "description": "Policy Studio UI",
5
5
  "author": "Policy Studio Team",
6
6
  "scripts": {
@@ -1,126 +1,101 @@
1
+ %sticky-first-column {
2
+ @apply psui-pl-0 psui-pr-8 psui-text-left psui-bg-white psui-sticky psui-z-10 psui-left-0;
3
+ box-shadow: inset -1px 0px 0px #ebeef0;
4
+ }
5
+
1
6
  @mixin renderResults {
2
- tr {
3
- th,
4
- td {
5
- &:last-child {
6
- @apply psui-pr-2;
7
- }
8
- }
7
+ tr th:last-child,
8
+ tr td:last-child {
9
+ @apply psui-pr-2;
9
10
  }
10
11
 
11
12
  thead {
12
13
  @apply psui-bg-white psui-items-start psui-shadow-elevation-10 psui-sticky psui-top-0 psui-z-15;
13
14
 
14
- &:after {
15
- content: "";
16
- @apply psui-inline-block psui-absolute psui-top-0 psui-w-2 psui-h-full psui-bg-white;
17
- right: -8px;
15
+ &::after {
16
+ content: '';
17
+ @apply psui-inline-block psui-absolute psui-top-0 psui-w-2 psui-h-full psui-bg-white psui-right-[-8px];
18
18
  }
19
19
 
20
20
  tr {
21
21
  .title {
22
- @apply psui-text-14 psui-font-semibold psui-leading-4 psui-text-gray-80;
22
+ @apply psui-text-14 psui-font-semibold psui-text-gray-80;
23
23
  }
24
24
 
25
25
  th {
26
- @apply psui-pl-6 psui-text-gray-50 psui-text-right psui-w-auto psui-align-top;
27
- padding-top: 13px;
28
- padding-bottom: 13px;
26
+ @apply psui-pl-6 psui-text-gray-50 psui-text-right psui-w-auto psui-align-top psui-py-[13px];
29
27
 
30
28
  .description {
31
29
  @apply psui-text-14 psui-text-gray-60 psui-font-normal;
32
- line-height: 110%;
33
30
  }
34
31
 
35
32
  &:first-child {
36
- @apply psui-pl-0 psui-pr-8 psui-text-left psui-bg-white psui-sticky psui-z-10 psui-left-0;
37
- box-shadow: inset -1px 0px 0px #ebeef0;
38
- min-width: 300px;
33
+ @extend %sticky-first-column;
34
+ @apply psui-min-w-[300px];
39
35
 
40
36
  > div {
41
37
  @apply psui-pl-0;
42
38
  }
43
39
  }
44
40
  }
41
+ }
45
42
 
46
- &:first-of-type {
47
- th {
48
- @apply psui-text-left;
49
- padding-top: 0;
50
- padding-bottom: 0;
51
-
52
- > div {
53
- @apply psui-flex psui-flex-row psui-border-b psui-border-gray-30;
54
- padding-top: 0.688rem;
55
- padding-bottom: 0.688rem;
56
- }
57
- }
43
+ tr:first-of-type {
44
+ th {
45
+ @apply psui-text-left psui-py-0;
58
46
 
59
- p {
60
- @apply psui-text-16;
61
- line-height: 18px;
47
+ > div {
48
+ @apply psui-flex psui-flex-row psui-border-b psui-border-gray-30 psui-py-[0.688rem] psui-px-0;
62
49
  }
63
50
  }
64
51
  }
65
52
  }
66
53
 
67
- tbody {
68
- tr {
69
- @apply psui-border-b psui-border-gray-20;
54
+ tbody tr {
55
+ @apply psui-border-b psui-border-gray-20;
70
56
 
71
- &.is-first {
72
- .title {
73
- @apply psui-font-bold psui-text-gray-80;
74
- }
75
- }
57
+ .title {
58
+ @apply psui-flex psui-items-center psui-text-14 psui-leading-[24px];
59
+ }
76
60
 
77
- .title {
78
- @apply psui-flex psui-items-center;
79
- line-height: 24px;
80
- }
61
+ &.is-first .title {
62
+ @apply psui-text-gray-80 psui-font-bold;
63
+ }
81
64
 
82
- td {
83
- @apply psui-pl-8 psui-text-gray-80 psui-h-10 psui-text-right psui-text-14;
84
- padding-top: 0.688rem;
85
- padding-bottom: 0.688rem;
86
- min-height: 41.5px;
65
+ td {
66
+ @apply psui-pl-8 psui-text-gray-80 psui-h-10 psui-text-right psui-text-14 psui-py-[0.688rem] psui-min-h-[41.5px];
87
67
 
88
- > div {
89
- @apply psui-flex psui-items-center;
90
- }
68
+ > div {
69
+ @apply psui-flex psui-items-center;
70
+ }
91
71
 
92
- .actions {
93
- @apply psui-flex psui-items-center psui-h-full psui-relative;
72
+ &:not(:first-child) > div {
73
+ @apply psui-justify-end;
74
+ }
94
75
 
95
- &-button {
96
- @apply psui-cursor-pointer psui-ml-1;
97
- }
76
+ &:first-child {
77
+ @extend %sticky-first-column;
78
+ @apply psui-block psui-py-2;
79
+ }
80
+ }
98
81
 
99
- .is-last-deep {
100
- @apply psui-pl-10;
101
- }
102
- }
82
+ td .actions {
83
+ @apply psui-flex psui-items-center psui-h-full psui-relative;
103
84
 
104
- &:not(:first-child) {
105
- > div {
106
- @apply psui-justify-end;
107
- }
108
- }
85
+ &-button {
86
+ @apply psui-cursor-pointer psui-ml-1;
87
+ }
109
88
 
110
- &:first-child {
111
- @apply psui-pl-0 psui-pr-8 psui-text-left psui-block psui-bg-white psui-sticky psui-z-10 psui-left-0;
112
- box-shadow: inset -1px 0px 0px #ebeef0;
113
- padding-top: 8px;
114
- padding-bottom: 8px;
115
- }
89
+ .is-last-deep {
90
+ @apply psui-pl-10;
116
91
  }
92
+ }
117
93
 
118
- &.is-active {
119
- @apply psui-bg-gray-10;
94
+ &.is-active {
95
+ @apply psui-bg-gray-10;
120
96
 
121
- td:first-child {
122
- @apply psui-bg-gray-10;
123
- }
97
+ td:first-child {
98
+ @apply psui-bg-gray-10;
124
99
  }
125
100
  }
126
101
  }