@dvcol/neo-svelte 0.1.9 → 0.1.10

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.10](https://github.com/dvcol/neo-svelte/compare/v0.1.9...v0.1.10) (2025-02-19)
6
+
5
7
  ### [0.1.9](https://github.com/dvcol/neo-svelte/compare/v0.1.8...v0.1.9) (2025-02-19)
6
8
 
7
9
 
@@ -104,7 +104,7 @@
104
104
  const space = $derived(open ? 8 : 6);
105
105
  watch(
106
106
  () => {
107
- value = transform(selected);
107
+ value = transform ? transform(selected) : selected;
108
108
  touched = true;
109
109
  },
110
110
  () => selected,
@@ -170,7 +170,7 @@
170
170
  bind:focused
171
171
  bind:focusin
172
172
  bind:value
173
- display={(display ?? customDisplay) ? (customDisplay ?? display?.(selected)) : undefined}
173
+ display={(customDisplay ?? display) ? (customDisplay ?? display?.(selected)) : undefined}
174
174
  {rounded}
175
175
  {floating}
176
176
  {clearable}
@@ -13,6 +13,7 @@ export { default as NeoSwitch } from './NeoSwitch.svelte';
13
13
  export { default as NeoSelect } from './NeoSelect.svelte';
14
14
  export { default as NeoNativeSelect } from './NeoNativeSelect.svelte';
15
15
  export { NeoInputLabelPlacement } from './common/neo-input.model.js';
16
+ export { displayValue, transformValue } from './neo-select.model.js';
16
17
  export type * from './common/neo-input.model.js';
17
18
  export type * from './neo-checkbox.model.js';
18
19
  export type * from './neo-color-picker.model.js';
@@ -13,3 +13,4 @@ export { default as NeoSwitch } from './NeoSwitch.svelte';
13
13
  export { default as NeoSelect } from './NeoSelect.svelte';
14
14
  export { default as NeoNativeSelect } from './NeoNativeSelect.svelte';
15
15
  export { NeoInputLabelPlacement } from './common/neo-input.model.js';
16
+ export { displayValue, transformValue } from './neo-select.model.js';
@@ -113,6 +113,6 @@ export type NeoSelectProps<Value = unknown> = {
113
113
  * Button properties to pass to the show/hide dropdown button.
114
114
  */
115
115
  buttonProps?: NeoButtonProps;
116
- } & NeoInputProps;
117
- export declare const displayValue: <Value = unknown>(selection?: NeoListSelectedItem<Value> | NeoListSelectedItem<Value>[]) => undefined | string;
118
- export declare const transformValue: <Value = unknown>(selection?: NeoListSelectedItem<Value> | NeoListSelectedItem<Value>[]) => undefined | Value | Value[];
116
+ } & Omit<NeoInputProps, 'display'>;
117
+ export declare const displayValue: NeoSelectProps['display'];
118
+ export declare const transformValue: NeoSelectProps['transform'];
@@ -1,5 +1,5 @@
1
- @use '~/styles/reset' as reset;
2
- @use '~/styles/theme' as theme;
1
+ @use '../styles/reset' as reset;
2
+ @use '../styles/theme' as theme;
3
3
 
4
4
  // Inject reset styles
5
5
  @include reset.nested;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dvcol/neo-svelte",
3
3
  "type": "module",
4
- "version": "0.1.9",
4
+ "version": "0.1.10",
5
5
  "description": "Neomorphic ui library for svelte 5",
6
6
  "homepage": "https://github.com/dvcol/neo-svelte",
7
7
  "bugs": "https://github.com/dvcol/neo-svelte/issues",