@invopop/popui 0.1.65 → 0.1.67

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.
@@ -16,11 +16,11 @@
16
16
  }: DataListItemProps = $props()
17
17
 
18
18
  let valueStyles = $derived(
19
- clsx('text-foreground font-medium text-base min-w-0 flex', {
19
+ clsx('text-foreground font-medium text-base min-w-0', {
20
20
  'font-mono slashed-zero tabular-nums lining-nums': monospaced,
21
21
  truncate: !children,
22
- 'h-6 items-center': !children,
23
- 'items-start': children
22
+ 'leading-6': !children,
23
+ 'flex items-start': children
24
24
  })
25
25
  )
26
26
 
@@ -62,7 +62,11 @@
62
62
  )}
63
63
  onclick={clickAction ? handleAreaClick : undefined}
64
64
  >
65
- <div class="flex-1 min-w-0 overflow-x-auto">
65
+ <div
66
+ class={clsx('flex-1 min-w-0', {
67
+ 'overflow-x-auto': children
68
+ })}
69
+ >
66
70
  <div class={valueStyles}>
67
71
  {#if children}
68
72
  {@render children()}
@@ -141,7 +141,7 @@
141
141
  />
142
142
  </div>
143
143
  <span class="text-base text-foreground-default-secondary whitespace-nowrap">
144
- / {totalPages}
144
+ / {formatNumber(totalPages)}
145
145
  </span>
146
146
  </div>
147
147
  <div class="flex items-center">
@@ -23,11 +23,7 @@
23
23
  </script>
24
24
 
25
25
  {#if typeof content === 'string'}
26
- {#if content}
27
- {content}
28
- {:else}
29
- <span class="text-foreground-default-tertiary">-</span>
30
- {/if}
26
+ {content}
31
27
  {:else if content instanceof Function}
32
28
  <!-- It's unlikely that a CellContext will be passed to a Header -->
33
29
  <!-- eslint-disable-next-line @typescript-eslint/no-explicit-any -->
@@ -40,7 +36,5 @@
40
36
  {@render snippet({ ...params, attach })}
41
37
  {:else if result != null && result !== ''}
42
38
  {result}
43
- {:else}
44
- <span class="text-foreground-default-tertiary">-</span>
45
39
  {/if}
46
40
  {/if}
@@ -1008,24 +1008,27 @@
1008
1008
  }
1009
1009
 
1010
1010
  .icon-sidebar-hide_anim_line {
1011
- transition-behavior: allow-discrete;
1011
+ transform: translate(3.5px, 0.5px);
1012
1012
  }
1013
1013
 
1014
- .icon-sidebar-hide_anim {
1015
- overflow: hidden;
1014
+ .icon-sidebar-hide:hover .icon-sidebar-hide_anim_line {
1015
+ transform: translate(-.25px, 0.5px) scale(0.70, 1);
1016
1016
  }
1017
1017
 
1018
- .icon-sidebar-hide:hover .icon-sidebar-hide_anim_line {
1019
- transform: translate(-2.5px, 0) scale(0.70, 1);
1018
+ .icon-sidebar-hide_anim {
1019
+ overflow: hidden;
1020
1020
  }
1021
1021
 
1022
1022
  .icon-sidebar-hide:hover .icon-sidebar-hide_anim_line rect {
1023
1023
  rx: 0.5px;
1024
1024
  }
1025
1025
 
1026
+ .icon-sidebar-hide_anim_arrow {
1027
+ transform: translate(-1.5px, -2px);
1028
+ }
1029
+
1026
1030
  .icon-sidebar-hide:hover .icon-sidebar-hide_anim_arrow {
1027
- transform: translate(-11px, 0);
1028
- display: block;
1031
+ transform: translate(-4px, -2px);
1029
1032
  }
1030
1033
 
1031
1034
  /* Animated sidebar show icon */
@@ -1057,7 +1060,7 @@
1057
1060
  }
1058
1061
 
1059
1062
  .icon-sidebar-show:hover .icon-sidebar-show_anim_arrow {
1060
- transform: scale(-1,1) translate(-4px, 0);
1063
+ transform: scale(-1, 1) translate(-4px, 0);
1061
1064
  }
1062
1065
 
1063
1066
  /* Animated pulse icon */
@@ -1067,4 +1070,4 @@
1067
1070
  @keyframes icon-pulse-animation {
1068
1071
  0%, 100% { fill: var(--color-background-default-tertiary); }
1069
1072
  40% { fill: var(--color-accent-50); }
1070
- }
1073
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@invopop/popui",
3
3
  "license": "MIT",
4
- "version": "0.1.65",
4
+ "version": "0.1.67",
5
5
  "repository": {
6
6
  "url": "https://github.com/invopop/popui"
7
7
  },