@noxlovette/material 0.1.4 → 0.1.6
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/dist/components/containers/panes/SupportingPane.svelte +1 -1
- package/dist/components/forms/command/Command.svelte +1 -1
- package/dist/components/forms/textfield/Textfield.svelte +3 -3
- package/dist/components/forms/textfield/theme.js +1 -0
- package/dist/components/pill/theme.d.ts +6 -0
- package/dist/components/pill/theme.js +3 -1
- package/package.json +1 -1
|
@@ -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
|
|
|
@@ -7,6 +7,8 @@ export declare const pill: import("tailwind-variants").TVReturnType<{
|
|
|
7
7
|
tertiary: string;
|
|
8
8
|
error: string;
|
|
9
9
|
container: string;
|
|
10
|
+
yellow: string;
|
|
11
|
+
green: string;
|
|
10
12
|
};
|
|
11
13
|
}, undefined, "relative inline-flex items-center justify-center px-4 py-1.5 md-sys-typescale-label-large select-none rounded-full", {
|
|
12
14
|
variant: {
|
|
@@ -15,6 +17,8 @@ export declare const pill: import("tailwind-variants").TVReturnType<{
|
|
|
15
17
|
tertiary: string;
|
|
16
18
|
error: string;
|
|
17
19
|
container: string;
|
|
20
|
+
yellow: string;
|
|
21
|
+
green: string;
|
|
18
22
|
};
|
|
19
23
|
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
20
24
|
variant: {
|
|
@@ -23,5 +27,7 @@ export declare const pill: import("tailwind-variants").TVReturnType<{
|
|
|
23
27
|
tertiary: string;
|
|
24
28
|
error: string;
|
|
25
29
|
container: string;
|
|
30
|
+
yellow: string;
|
|
31
|
+
green: string;
|
|
26
32
|
};
|
|
27
33
|
}, undefined, "relative inline-flex items-center justify-center px-4 py-1.5 md-sys-typescale-label-large select-none rounded-full", unknown, unknown, undefined>>;
|
|
@@ -7,7 +7,9 @@ export const pill = tv({
|
|
|
7
7
|
secondary: 'md-component-button-filled-secondary',
|
|
8
8
|
tertiary: 'md-component-button-filled-tertiary',
|
|
9
9
|
error: 'md-component-button-filled-error',
|
|
10
|
-
container: 'bg-md-sys-color-surface-container text-md-sys-color-on-surface'
|
|
10
|
+
container: 'bg-md-sys-color-surface-container text-md-sys-color-on-surface',
|
|
11
|
+
yellow: 'bg-yellow-400 text-yellow-950 dark:bg-yellow-300 dark:text-yellow-950',
|
|
12
|
+
green: 'bg-green-600 text-white dark:bg-green-500 dark:text-green-950'
|
|
11
13
|
}
|
|
12
14
|
},
|
|
13
15
|
defaultVariants: {
|