@noxlovette/material 0.1.4 → 0.1.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.
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { command } from './theme.js';
|
|
5
5
|
import type { CommandProps } from './types.js';
|
|
6
6
|
|
|
7
|
-
let { children, class: className, value = $bindable(), ...restProps }: CommandProps = $props();
|
|
7
|
+
let { children, class: className, value = $bindable(''), ...restProps }: CommandProps = $props();
|
|
8
8
|
|
|
9
9
|
const { base } = command();
|
|
10
10
|
</script>
|
|
@@ -12,6 +12,7 @@ Text fields allow users to enter and edit text.
|
|
|
12
12
|
import { textfield } from './theme.js';
|
|
13
13
|
import type { TextfieldProps } from './types.js';
|
|
14
14
|
import { useId } from 'bits-ui';
|
|
15
|
+
import { ButtonIcon } from '../../buttons/index.js';
|
|
15
16
|
|
|
16
17
|
let {
|
|
17
18
|
value = $bindable(),
|
|
@@ -67,9 +68,8 @@ Text fields allow users to enter and edit text.
|
|
|
67
68
|
{#if trailingIcon}
|
|
68
69
|
{@render trailingIcon()}
|
|
69
70
|
{:else if trailingIconProps}
|
|
70
|
-
<
|
|
71
|
-
|
|
72
|
-
</button>
|
|
71
|
+
<ButtonIcon onclick={trailingOnClick} class={cls.trailingIcon()} iconProps={trailingIconProps}
|
|
72
|
+
></ButtonIcon>
|
|
73
73
|
{/if}
|
|
74
74
|
</div>
|
|
75
75
|
|