@redseed/redseed-ui-vue3 5.1.2 → 5.1.4

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": "@redseed/redseed-ui-vue3",
3
- "version": "5.1.2",
3
+ "version": "5.1.4",
4
4
  "description": "RedSeed UI Vue 3 components",
5
5
  "main": "index.js",
6
6
  "repository": "https://github.com/redseedtraining/redseed-ui",
@@ -119,12 +119,17 @@ const props = defineProps({
119
119
  table {
120
120
  @apply w-full border-collapse table-auto;
121
121
 
122
- tr{
123
- th {
124
- @apply bg-rsui-grey-100;
125
- @apply font-semibold text-xs leading-5 text-rsui-grey-600 hover:text-rsui-grey-700;
122
+ thead {
123
+ tr {
124
+ @apply last:border-b-rsui-grey-400;
125
+
126
+ th {
127
+ @apply bg-rsui-grey-100;
128
+ @apply font-semibold text-xs leading-5 text-rsui-grey-600 hover:text-rsui-grey-700;
129
+ }
126
130
  }
127
131
  }
132
+
128
133
  }
129
134
 
130
135
  &__container {
@@ -1,5 +1,5 @@
1
1
  <script setup>
2
- import { ref, computed } from 'vue'
2
+ import { ref, computed, watch } from 'vue'
3
3
  import { ArrowUpIcon, ChevronUpDownIcon } from '@heroicons/vue/24/outline'
4
4
 
5
5
  const props = defineProps({
@@ -18,9 +18,13 @@ const props = defineProps({
18
18
  const sortable = computed(() => props.sort !== false)
19
19
 
20
20
  const isAsc = ref(props.sort === 'asc')
21
-
22
21
  const isDesc = ref(props.sort === 'desc')
23
22
 
23
+ watch(() => props.sort, () => {
24
+ isAsc.value = props.sort === 'asc'
25
+ isDesc.value = props.sort === 'desc'
26
+ })
27
+
24
28
  const emit = defineEmits(['sort'])
25
29
 
26
30
  function handleSort() {
@@ -30,7 +30,7 @@ function handleClick() {
30
30
  .rsui-tr {
31
31
  @apply transition-all;
32
32
  @apply border-b border-rsui-grey-400 rounded-lg;
33
- @apply last:border-b-transparent only:border-b-rsui-grey-400;
33
+ @apply last:border-b-transparent;
34
34
 
35
35
  &--clickable {
36
36
  @apply cursor-pointer hover:bg-rsui-grey-100;