compote-ui 0.0.4 → 0.0.5

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.
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { Checkbox } from '@ark-ui/svelte/checkbox';
3
- import PhCheck from '~icons/ph/check-bold';
4
3
  import type { CheckboxProps as Props } from './checkbox-props.js';
4
+ import CheckBold from '../../icons/CheckBold.svelte';
5
5
 
6
6
  let { label, children, ...rest }: Props = $props();
7
7
  </script>
@@ -9,7 +9,7 @@
9
9
  <Checkbox.Root class="inline-flex cursor-pointer items-start gap-2" {...rest}>
10
10
  <Checkbox.Control class="mt-0.5 flex size-5 shrink-0 items-center justify-center rounded-sm border border-border bg-transparent transition-colors data-disabled:pointer-events-none data-disabled:opacity-50 data-focus-visible:outline-2 data-focus-visible:outline-offset-2 data-focus-visible:outline-ring data-[state=checked]:border-primary data-[state=checked]:bg-primary">
11
11
  <Checkbox.Indicator>
12
- <PhCheck class="size-3.5 text-primary-foreground" />
12
+ <CheckBold class="size-3.5 text-primary-foreground" />
13
13
  </Checkbox.Indicator>
14
14
  </Checkbox.Control>
15
15
  {#if label}
@@ -0,0 +1,7 @@
1
+ <script lang="ts">
2
+ let { class: cls = '', ...rest } = $props();
3
+ </script>
4
+
5
+ <svg class={cls} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" {...rest}>
6
+ <path fill="currentColor" d="m232.49 80.49l-128 128a12 12 0 0 1-17 0l-56-56a12 12 0 1 1 17-17L96 183L215.51 63.51a12 12 0 0 1 17 17Z" />
7
+ </svg>
@@ -0,0 +1,5 @@
1
+ declare const CheckBold: import("svelte").Component<{
2
+ class?: string;
3
+ } & Record<string, any>, {}, "">;
4
+ type CheckBold = ReturnType<typeof CheckBold>;
5
+ export default CheckBold;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "compote-ui",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",