@invopop/popui 0.1.21 → 0.1.23

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.
@@ -20,7 +20,7 @@
20
20
  {...rest}
21
21
  {onclick}
22
22
  >
23
- <div class="flex flex-col gap-2 w-full">
23
+ <div class="flex flex-col gap-2 w-full flex-1">
24
24
  <div class="flex items-start justify-between w-full">
25
25
  <div
26
26
  class="size-8 border border-border rounded-lg overflow-hidden flex items-center justify-center shrink-0"
@@ -29,7 +29,7 @@
29
29
  </span>
30
30
  {:else if field.copy && data}
31
31
  <ButtonUuidCopy uuid={String(data)} full oncopied={onCopied} />
32
- {:else}
32
+ {:else if data}
33
33
  <span class="hidden md:inline">{data}</span>
34
34
  <span class="md:hidden">{data ? data : badge || status ? '' : '-'}</span>
35
35
  {/if}
@@ -1 +1 @@
1
- <li class="bg-border h-px w-full my-1"></li>
1
+ <li class="bg-border h-px min-h-px w-full my-1"></li>
@@ -44,7 +44,8 @@
44
44
  (!multiple && items.find((i) => i.selected)?.iconClass) || 'text-foreground-default-secondary'
45
45
  )
46
46
  let selectedLabel = $derived(
47
- `${selectedItems[0]?.label || ''}${selectedItems.length > 1 ? ' and more' : ''}` || placeholder
47
+ `${selectedItems[0]?.label || ''}${selectedItems.length > 1 && multiple ? ' and more' : ''}` ||
48
+ placeholder
48
49
  )
49
50
 
50
51
  let styles = $derived(
@@ -114,7 +115,13 @@
114
115
  {/if}
115
116
  </div>
116
117
  {/snippet}
117
- <DrawerContext {widthClass} {multiple} {items} onclick={handleClick} onselect={handleSelected} />
118
+ <DrawerContext
119
+ widthClass="min-w-[256px]"
120
+ {multiple}
121
+ {items}
122
+ onclick={handleClick}
123
+ onselect={handleSelected}
124
+ />
118
125
  </BaseDropdown>
119
126
 
120
127
  <style>
@@ -13,7 +13,7 @@
13
13
  const styles = $derived(
14
14
  clsx('cursor-pointer flex items-center border border-border-inverse-default rounded-lg h-8', {
15
15
  'gap-1 px-2 py-1.5 w-full hover:bg-background-selected-inverse': !collapsed,
16
- 'p-1.5': collapsed
16
+ 'p-2': collapsed
17
17
  })
18
18
  )
19
19
 
@@ -113,7 +113,7 @@
113
113
  >
114
114
  <span class="flex items-center space-x-1.5">
115
115
  {#if resolvedIcon}
116
- <Icon src={resolvedIcon} theme={iconTheme} class="{iconStyles} h-4 w-4 text-white-70" />
116
+ <Icon src={resolvedIcon} theme={iconTheme} class="{iconStyles} h-4 w-4 text-icon-inverse" />
117
117
  {/if}
118
118
  {#if !collapsedSidebar}
119
119
  <span class="whitespace-nowrap tracking-normal">{label}</span>
@@ -26,7 +26,7 @@
26
26
 
27
27
  <span
28
28
  {title}
29
- class="{styles} text-foreground-inverse text-base flex items-center justify-between rounded-lg h-8"
29
+ class="{styles} text-foreground-inverse text-base flex items-center justify-between rounded-lg h-8 font-medium"
30
30
  >
31
31
  <span class:space-x-2={!collapsed} class="flex items-center">
32
32
  {@render children?.()}
@@ -34,12 +34,12 @@
34
34
  <div>
35
35
  <div class="whitespace-nowrap max-w-[118px] truncate tracking-tight">{title}</div>
36
36
  {#if subtitle}
37
- <div class="text-sm font-medium text-yellow-600">{subtitle}</div>
37
+ <div class="text-sm text-foreground-inverse-secondary">{subtitle}</div>
38
38
  {/if}
39
39
  </div>
40
40
  {/if}
41
41
  </span>
42
42
  {#if icon}
43
- <Icon src={icon} class="h-4 w-4 text-white-40 mt-px" />
43
+ <Icon src={icon} class="h-4 w-4 text-icon-inverse" />
44
44
  {/if}
45
45
  </span>
@@ -99,7 +99,7 @@
99
99
  class: '[&_svg]:!text-icon-default-bold'
100
100
  },
101
101
  {
102
- variant: ['primary', 'warning'],
102
+ variant: ['primary', 'warning', 'dark-ghost'],
103
103
  iconOnly: true,
104
104
  class: '[&_svg]:!text-icon-inverse-bold'
105
105
  },
@@ -15,7 +15,7 @@
15
15
  bind:this={ref}
16
16
  data-slot="table-cell"
17
17
  class={cn(
18
- 'py-3 pl-3 pr-3 align-middle text-foreground font-normal text-base [&:has([role=menu])]:pl-1 relative z-1',
18
+ 'py-3 pl-3 pr-3 align-middle text-foreground font-normal text-base [&:has([role=menu])]:pl-1 relative z-1 border-b border-border',
19
19
  className
20
20
  )}
21
21
  onclick={bubble('click')}
@@ -18,7 +18,7 @@
18
18
  bind:this={ref}
19
19
  data-slot="table-row"
20
20
  class={cn(
21
- 'data-[state=selected]:bg-background-default-secondary data-[state=checked]:bg-background-selected transition-colors border-b border-border h-10',
21
+ 'data-[state=selected]:bg-background-default-secondary data-[state=checked]:bg-background-selected transition-colors h-10',
22
22
  className
23
23
  )}
24
24
  {oncontextmenu}
@@ -375,16 +375,16 @@
375
375
  ============================================ */
376
376
 
377
377
  /* Accent */
378
- --color-accent-40: var(--color-green-40);
379
- --color-accent-50: var(--color-green-50);
380
- --color-accent-60: var(--color-green-60);
381
- --color-accent-70: var(--color-green-70);
382
- --color-accent-80: var(--color-sherwood-50);
383
- --color-accent-alpha-5: var(--color-green-alpha-5);
384
- --color-accent-alpha-10: var(--color-green-alpha-10);
385
- --color-accent-alpha-20: var(--color-green-alpha-20);
386
- --color-accent-alpha-30: var(--color-green-alpha-30);
387
- --color-accent-alpha-40: var(--color-green-alpha-40);
378
+ --color-accent-40: color-mix(in srgb, var(--color-accent-50) 72%, white);
379
+ --color-accent-50: var(--color-base-accent, var(--color-green-50));
380
+ --color-accent-60: color-mix(in srgb, var(--color-accent-50) 84%, black);
381
+ --color-accent-70: color-mix(in srgb, var(--color-accent-50) 68%, black);
382
+ --color-accent-80: color-mix(in srgb, var(--color-accent-50) 52%, black);
383
+ --color-accent-alpha-5: color-mix(in srgb, var(--color-accent-50) 5%, transparent);
384
+ --color-accent-alpha-10: color-mix(in srgb, var(--color-accent-50) 10%, transparent);
385
+ --color-accent-alpha-20: color-mix(in srgb, var(--color-accent-50) 20%, transparent);
386
+ --color-accent-alpha-30: color-mix(in srgb, var(--color-accent-50) 30%, transparent);
387
+ --color-accent-alpha-40: color-mix(in srgb, var(--color-accent-50) 40%, transparent);
388
388
 
389
389
  /* Neutral */
390
390
  --color-neutral-5: var(--color-grey-5);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@invopop/popui",
3
3
  "license": "MIT",
4
- "version": "0.1.21",
4
+ "version": "0.1.23",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
7
7
  "dev:clean": "npm run clean && vite dev",
@@ -82,7 +82,7 @@
82
82
  "type": "module",
83
83
  "dependencies": {
84
84
  "@floating-ui/core": "^1.5.1",
85
- "@invopop/ui-icons": "0.0.71",
85
+ "@invopop/ui-icons": "0.0.72",
86
86
  "@steeze-ui/heroicons": "^2.2.3",
87
87
  "@steeze-ui/svelte-icon": "^1.6.2",
88
88
  "@tailwindcss/vite": "^4.1.12",