@helpwave/hightide 0.6.6 → 0.6.7

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.
@@ -491,6 +491,11 @@
491
491
  flex-direction: row;
492
492
  column-gap: calc(var(--spacing) * 6);
493
493
  }
494
+ .flex-row-8 {
495
+ display: flex;
496
+ flex-direction: row;
497
+ column-gap: calc(var(--spacing) * 8);
498
+ }
494
499
  .flex-col-0 {
495
500
  display: flex;
496
501
  flex-direction: column;
@@ -664,6 +669,9 @@
664
669
  .max-h-71 {
665
670
  max-height: calc(var(--spacing) * 71);
666
671
  }
672
+ .max-h-128 {
673
+ max-height: calc(var(--spacing) * 128);
674
+ }
667
675
  .\!min-h-10 {
668
676
  min-height: calc(var(--spacing) * 10) !important;
669
677
  }
@@ -763,9 +771,6 @@
763
771
  .max-w-128 {
764
772
  max-width: calc(var(--spacing) * 128);
765
773
  }
766
- .max-w-full {
767
- max-width: 100%;
768
- }
769
774
  .min-w-0 {
770
775
  min-width: calc(var(--spacing) * 0);
771
776
  }
@@ -775,6 +780,9 @@
775
780
  .min-w-20 {
776
781
  min-width: calc(var(--spacing) * 20);
777
782
  }
783
+ .min-w-24 {
784
+ min-width: calc(var(--spacing) * 24);
785
+ }
778
786
  .min-w-26 {
779
787
  min-width: calc(var(--spacing) * 26);
780
788
  }
@@ -816,6 +824,10 @@
816
824
  --tw-translate-x: calc(1/2 * 100%);
817
825
  translate: var(--tw-translate-x) var(--tw-translate-y);
818
826
  }
827
+ .translate-x-4 {
828
+ --tw-translate-x: calc(var(--spacing) * 4);
829
+ translate: var(--tw-translate-x) var(--tw-translate-y);
830
+ }
819
831
  .-translate-y-1\/2 {
820
832
  --tw-translate-y: calc(calc(1/2 * 100%) * -1);
821
833
  translate: var(--tw-translate-x) var(--tw-translate-y);
@@ -1443,9 +1455,6 @@
1443
1455
  .text-nowrap {
1444
1456
  text-wrap: nowrap;
1445
1457
  }
1446
- .overflow-ellipsis {
1447
- text-overflow: ellipsis;
1448
- }
1449
1458
  .text-ellipsis {
1450
1459
  text-overflow: ellipsis;
1451
1460
  }
@@ -3023,14 +3032,14 @@
3023
3032
  }
3024
3033
  }
3025
3034
  @layer components {
3026
- [data-name="table-container"] {
3035
+ .table-container {
3027
3036
  display: flex;
3028
3037
  flex-direction: column;
3029
3038
  row-gap: calc(var(--spacing) * 0);
3030
3039
  width: 100%;
3031
3040
  overflow: auto;
3032
3041
  }
3033
- [data-name="table"] {
3042
+ .table {
3034
3043
  table-layout: fixed;
3035
3044
  border-collapse: separate;
3036
3045
  --tw-border-spacing-x: calc(var(--spacing) * 0);
@@ -3040,7 +3049,7 @@
3040
3049
  background-color: var(--color-table-background);
3041
3050
  color: var(--color-table-text);
3042
3051
  }
3043
- [data-name="table-filler-cell"] {
3052
+ .table-filler-cell {
3044
3053
  display: flex;
3045
3054
  height: calc(var(--spacing) * 6);
3046
3055
  width: calc(1/2 * 100%);
@@ -3050,17 +3059,14 @@
3050
3059
  font-weight: var(--font-weight-bold);
3051
3060
  color: var(--color-disabled);
3052
3061
  }
3053
- [data-name="table-cell"] {
3062
+ .table-default-cell {
3054
3063
  display: block;
3055
3064
  max-width: 100%;
3056
3065
  overflow: hidden;
3057
3066
  white-space: nowrap;
3058
3067
  text-overflow: ellipsis;
3059
3068
  }
3060
- [data-name="table-header-cell"] {
3061
- position: relative;
3062
- --tw-font-weight: var(--font-weight-bold);
3063
- font-weight: var(--font-weight-bold);
3069
+ .table-header-cell {
3064
3070
  padding-inline: calc(var(--spacing) * 3);
3065
3071
  padding-block: calc(var(--spacing) * 2.5);
3066
3072
  &:first-child {
@@ -3086,23 +3092,29 @@
3086
3092
  border-top-right-radius: var(--radius-lg);
3087
3093
  }
3088
3094
  background-color: var(--color-table-header-background);
3095
+ --tw-font-weight: var(--font-weight-bold);
3096
+ font-weight: var(--font-weight-bold);
3089
3097
  color: var(--color-description);
3098
+ &[data-sticky] {
3099
+ position: sticky;
3100
+ top: calc(var(--spacing) * 0);
3101
+ }
3090
3102
  }
3091
- [data-name="table-body-row"] {
3103
+ .table-body-row {
3092
3104
  &:hover {
3093
3105
  @media (hover: hover) {
3094
3106
  background-color: var(--color-table-row-hover-background);
3095
3107
  }
3096
3108
  }
3097
3109
  }
3098
- [data-name="table-body-filler-row"] {
3110
+ .table-body-filler-row {
3099
3111
  &:hover {
3100
3112
  @media (hover: hover) {
3101
3113
  cursor: not-allowed;
3102
3114
  }
3103
3115
  }
3104
3116
  }
3105
- [data-name="table-body-cell"], [data-name="table-body-filler-cell"] {
3117
+ .table-body-cell, .table-body-filler-cell {
3106
3118
  padding-inline: calc(var(--spacing) * 3);
3107
3119
  padding-block: calc(var(--spacing) * 2.5);
3108
3120
  &:first-child {
@@ -3162,7 +3174,7 @@
3162
3174
  }
3163
3175
  }
3164
3176
  }
3165
- [data-name="table-body-row"]:last-child > [data-name="table-body-cell"] {
3177
+ .table-body-row:last-child > .table-body-cell {
3166
3178
  &:first-child {
3167
3179
  border-bottom-left-radius: var(--radius-lg);
3168
3180
  }
@@ -3994,7 +4006,7 @@
3994
4006
  }
3995
4007
  }
3996
4008
  @layer components {
3997
- [data-name="tooltip"] {
4009
+ .tooltip {
3998
4010
  position: absolute;
3999
4011
  border-radius: 0.25rem;
4000
4012
  padding-inline: calc(var(--spacing) * 2);
@@ -4004,16 +4016,19 @@
4004
4016
  --shadow-top: 0 -5px 5px 0 var(--tw-shadow-color, rgb(0 0 0 / 2%));
4005
4017
  --shadow-bottom: 0 5px 5px 0 var(--tw-shadow-color, rgb(0 0 0 / 2%));
4006
4018
  box-shadow: var(--shadow-right, 0 0 0 transparent), var(--shadow-left, 0 0 0 transparent), var(--shadow-top, 0 0 0 transparent), var(--shadow-bottom, 0 0 0 transparent);
4019
+ overflow: hidden;
4020
+ text-overflow: ellipsis;
4021
+ white-space: nowrap;
4007
4022
  background-color: var(--color-tooltip-background);
4008
4023
  font-size: var(--text-xs);
4009
4024
  line-height: var(--tw-leading, var(--text-xs--line-height));
4010
4025
  --tw-font-weight: var(--font-weight-semibold);
4011
4026
  font-weight: var(--font-weight-semibold);
4012
4027
  color: var(--color-tooltip-text);
4013
- &[data-state="opening"] {
4028
+ &[data-state="opening"][data-animated] {
4014
4029
  animation: fade-in calc(var(--animation-duration-in, 250ms) * 2) ease-in-out 1 forwards;
4015
4030
  }
4016
- &[data-state="closing"] {
4031
+ &[data-state="closing"][data-animated] {
4017
4032
  animation: fade-in var(--animation-duration-out, 170ms) ease-in-out 1 reverse forwards;
4018
4033
  }
4019
4034
  &[data-state="closed"] {
@@ -1,41 +1,41 @@
1
1
  @layer components {
2
- [data-name="table-container"] {
2
+ .table-container {
3
3
  @apply flex-col-0 w-full overflow-auto;
4
4
  }
5
5
 
6
- [data-name="table"] {
6
+ .table {
7
7
  @apply table-fixed border-separate border-spacing-0 rounded-lg;
8
8
  @apply bg-table-background text-table-text;
9
9
  }
10
10
 
11
- [data-name="table-filler-cell"] {
11
+ .table-filler-cell {
12
12
  @apply flex flex-row items-center w-1/2 h-6 text-disabled font-bold;
13
13
  }
14
14
 
15
- [data-name="table-cell"] {
15
+ .table-default-cell {
16
16
  @apply block max-w-full overflow-ellipsis truncate;
17
17
  }
18
18
 
19
- [data-name="table-header-row"] {
20
- }
21
-
22
- [data-name="table-header-cell"] {
23
- @apply relative font-bold;
19
+ .table-header-cell {
24
20
  @apply px-3 first:pl-6 last:pr-6 py-2.5;
25
21
  @apply border-y-1 first:border-l-1 last:border-r-1;
26
22
  @apply first:rounded-tl-lg last:rounded-tr-lg;
27
- @apply bg-table-header-background text-description;
23
+ @apply bg-table-header-background text-description font-bold;
24
+
25
+ &[data-sticky] {
26
+ @apply sticky top-0;
27
+ }
28
28
  }
29
29
 
30
- [data-name="table-body-row"] {
30
+ .table-body-row {
31
31
  @apply hover:bg-table-row-hover-background;
32
32
  }
33
33
 
34
- [data-name="table-body-filler-row"] {
34
+ .table-body-filler-row {
35
35
  @apply hover:cursor-not-allowed;
36
36
  }
37
37
 
38
- [data-name="table-body-cell"], [data-name="table-body-filler-cell"] {
38
+ .table-body-cell, .table-body-filler-cell {
39
39
  @apply px-3 first:pl-6 last:pr-6 py-2.5;
40
40
  @apply border-b-1 first:border-l-1 last:border-r-1;
41
41
  @apply [nth-last-child(1)]:first:rounded-bl-lg [nth-last-child(1)]:last:rounded-br-lg;
@@ -60,7 +60,7 @@
60
60
  }
61
61
  }
62
62
 
63
- [data-name="table-body-row"]:last-child > [data-name="table-body-cell"] {
63
+ .table-body-row:last-child > .table-body-cell {
64
64
  @apply first:rounded-bl-lg last:rounded-br-lg;
65
65
  }
66
66
  }
@@ -8,14 +8,14 @@
8
8
  }
9
9
 
10
10
  @layer components {
11
- [data-name="tooltip"] {
11
+ .tooltip {
12
12
  @apply absolute px-2 py-1 rounded shadow-around-md;
13
- @apply text-xs font-semibold text-tooltip-text bg-tooltip-background;
13
+ @apply text-xs font-semibold text-tooltip-text bg-tooltip-background truncate;
14
14
 
15
- &[data-state="opening"] {
15
+ &[data-state="opening"][data-animated] {
16
16
  @apply animate-tooltip-fade-in;
17
17
  }
18
- &[data-state="closing"] {
18
+ &[data-state="closing"][data-animated] {
19
19
  @apply animate-tooltip-fade-out;
20
20
  }
21
21
  &[data-state="closed"] {
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "url": "git+https://github.com/helpwave/hightide.git"
8
8
  },
9
9
  "license": "MPL-2.0",
10
- "version": "0.6.6",
10
+ "version": "0.6.7",
11
11
  "files": [
12
12
  "dist"
13
13
  ],