compote-ui 0.5.0 → 0.5.2

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.
@@ -140,7 +140,7 @@
140
140
  <Portal>
141
141
  <Combobox.Positioner class="data-[state=closed]:pointer-events-none">
142
142
  <Combobox.Content
143
- class="data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 z-50 max-h-60 min-w-(--reference-width) overflow-auto rounded-md border bg-surface-1 p-1 shadow-md"
143
+ class="data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 z-50 max-h-60 min-w-(--reference-width) overflow-auto rounded-md border bg-surface-document p-1 shadow-md"
144
144
  >
145
145
  {#if loading}
146
146
  <div class="flex items-center justify-center py-4">
@@ -157,7 +157,7 @@
157
157
  {#each loading ? [] : collection.items as item (item.value)}
158
158
  <Combobox.Item
159
159
  {item}
160
- class="relative flex cursor-default items-center rounded-sm py-1.5 pr-8 pl-2 text-sm select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-highlighted:bg-surface-2 data-[state=checked]:bg-surface-2"
160
+ class="relative flex cursor-default items-center rounded-sm py-1.5 pr-8 pl-2 text-sm select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-highlighted:bg-surface-1 data-[state=checked]:bg-surface-1"
161
161
  >
162
162
  <Combobox.ItemText>{item.label}</Combobox.ItemText>
163
163
  <Combobox.ItemIndicator class="absolute right-2 items-center justify-center">
@@ -6,9 +6,9 @@
6
6
  <script lang="ts" generics="T extends number | string = number | string">
7
7
  import { Listbox, createListCollection } from '@ark-ui/svelte/listbox';
8
8
  import { useFilter } from '@ark-ui/svelte/locale';
9
- import PhCheckBold from '~icons/ph/check-bold';
10
9
  import type { ListboxItem, ListboxProps } from './types';
11
10
  import { cn } from 'tailwind-variants';
11
+ import PhCheck from '../../icons/PhCheck.svelte';
12
12
 
13
13
  type Props = ListboxProps<T>;
14
14
 
@@ -56,7 +56,7 @@
56
56
  {collection}
57
57
  onValueChange={handleValueChange}
58
58
  {...restProps}
59
- class={cn('flex h-full w-full flex-col gap-1.5 overflow-hidden', className)}
59
+ class={cn('flex h-full w-full flex-col gap-1.5 overflow-hidden p-0.5', className)}
60
60
  >
61
61
  {#if label}
62
62
  <Listbox.Label>{label}</Listbox.Label>
@@ -65,7 +65,7 @@
65
65
  <Listbox.Input
66
66
  placeholder={filterPlaceholder}
67
67
  oninput={(e) => (filterText = e.currentTarget.value)}
68
- class="mx-1 h-8 w-full rounded-xs border border-surface-3 bg-transparent px-2.5 text-sm outline-none placeholder:text-ink-dim focus-visible:ring-1 focus-visible:ring-primary"
68
+ class="h-8 w-full rounded-xs border border-surface-3 bg-transparent px-2.5 text-sm outline-none placeholder:text-ink-dim focus-visible:ring-1 focus-visible:ring-primary"
69
69
  />
70
70
  {/if}
71
71
  <Listbox.Content class="flex min-h-0 w-full flex-1 flex-col gap-1 overflow-y-auto outline-none">
@@ -84,7 +84,7 @@
84
84
  <Listbox.ItemIndicator
85
85
  class="h-5 w-5 text-primary data-[state=checked]:flex data-[state=unchecked]:hidden"
86
86
  >
87
- <PhCheckBold />
87
+ <PhCheck />
88
88
  </Listbox.ItemIndicator>
89
89
  </Listbox.Item>
90
90
  {/each}
@@ -100,7 +100,7 @@
100
100
  <Listbox.ItemIndicator
101
101
  class="h-5 w-5 text-primary data-[state=checked]:flex data-[state=unchecked]:hidden"
102
102
  >
103
- <PhCheckBold />
103
+ <PhCheck />
104
104
  </Listbox.ItemIndicator>
105
105
  </Listbox.Item>
106
106
  {/each}
@@ -70,13 +70,13 @@
70
70
  <Portal>
71
71
  <Select.Positioner>
72
72
  <Select.Content
73
- class="data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 z-50 max-h-60 min-w-(--reference-width) overflow-auto rounded-md border bg-surface-1 p-1 text-ink shadow-md"
73
+ class="data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 z-50 max-h-60 min-w-(--reference-width) overflow-auto rounded-md border bg-surface-document p-1 text-ink shadow-md"
74
74
  >
75
75
  <Select.ItemGroup>
76
76
  {#each items as item (item.value)}
77
77
  <Select.Item
78
78
  {item}
79
- class="relative flex cursor-default items-center rounded-sm py-1.5 pr-8 pl-2 text-sm text-ink select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-highlighted:bg-surface-2 data-[state=checked]:bg-surface-2"
79
+ class="relative flex cursor-default items-center rounded-sm py-1.5 pr-8 pl-2 text-sm text-ink select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-highlighted:bg-surface-1 data-[state=checked]:bg-surface-1"
80
80
  >
81
81
  <Select.ItemText>{item.label}</Select.ItemText>
82
82
  <Select.ItemIndicator class="absolute right-2 items-center justify-center">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "compote-ui",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",