@fuzdev/fuz_ui 0.210.3 → 0.210.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.
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import type { Hue } from '@fuzdev/fuz_util/colors.ts';
2
+ import { parse_hue, type Hue } from '@fuzdev/fuz_util/colors.ts';
3
3
  import type { Snippet } from 'svelte';
4
4
  import type { SvelteHTMLElements } from 'svelte/elements';
5
5
 
@@ -12,16 +12,6 @@
12
12
  children?: Snippet;
13
13
  } = $props();
14
14
 
15
- // TODO probably upstream this to fuz_util
16
- const parse_hue = (v: any): Hue | null => {
17
- const t = typeof v;
18
- if (t === 'number') return v;
19
- if (t !== 'string') return null;
20
- const parsed = Number(v);
21
- if (Number.isNaN(parsed)) return null;
22
- return parsed;
23
- };
24
-
25
15
  const update_hue = (v: Hue) => {
26
16
  value = v;
27
17
  };
@@ -1,4 +1,4 @@
1
- import type { Hue } from '@fuzdev/fuz_util/colors.ts';
1
+ import { type Hue } from '@fuzdev/fuz_util/colors.ts';
2
2
  import type { Snippet } from 'svelte';
3
3
  import type { SvelteHTMLElements } from 'svelte/elements';
4
4
  type $$ComponentProps = SvelteHTMLElements['div'] & {
@@ -1 +1 @@
1
- {"version":3,"file":"HueInput.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/HueInput.svelte"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,KAAK,gBAAgB,GAAI,kBAAkB,CAAC,KAAK,CAAC,GAAG;IACpD,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AA6DH,QAAA,MAAM,QAAQ,2DAAwC,CAAC;AACvD,KAAK,QAAQ,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAC5C,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"HueInput.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/HueInput.svelte"],"names":[],"mappings":"AAGA,OAAO,EAAa,KAAK,GAAG,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,KAAK,gBAAgB,GAAI,kBAAkB,CAAC,KAAK,CAAC,GAAG;IACpD,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAmDH,QAAA,MAAM,QAAQ,2DAAwC,CAAC;AACvD,KAAK,QAAQ,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAC5C,eAAe,QAAQ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fuzdev/fuz_ui",
3
- "version": "0.210.3",
3
+ "version": "0.210.4",
4
4
  "description": "Svelte UI library",
5
5
  "tagline": "friendly user zystem",
6
6
  "glyph": "🧶",
@@ -35,7 +35,7 @@
35
35
  "peerDependencies": {
36
36
  "@fuzdev/fuz_code": ">=0.46.0",
37
37
  "@fuzdev/fuz_css": ">=0.65.0",
38
- "@fuzdev/fuz_util": ">=0.65.1",
38
+ "@fuzdev/fuz_util": ">=0.72.0",
39
39
  "@fuzdev/gro": ">=0.204.0",
40
40
  "@fuzdev/mdz": ">=0.2.0",
41
41
  "@sveltejs/kit": "^2.47.3",
@@ -64,8 +64,8 @@
64
64
  "@changesets/changelog-git": "^0.2.1",
65
65
  "@fuzdev/blake3-wasm": "^0.2.0",
66
66
  "@fuzdev/fuz_code": "^0.50.0",
67
- "@fuzdev/fuz_css": "^0.65.3",
68
- "@fuzdev/fuz_util": "^0.69.0",
67
+ "@fuzdev/fuz_css": "^0.66.0",
68
+ "@fuzdev/fuz_util": "^0.72.0",
69
69
  "@fuzdev/gro": "^0.213.0",
70
70
  "@fuzdev/mdz": "^0.3.0",
71
71
  "@ryanatkn/eslint-config": "^0.12.2",