@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.
@@ -13,7 +13,7 @@ SupportingPane provides a layout with a main content area and a supporting side
13
13
  const {
14
14
  main,
15
15
  supporting,
16
- anchor = 'parent',
16
+ anchor = 'viewport',
17
17
  position = 'right',
18
18
  centered = false,
19
19
  rounded = true,
@@ -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
- <button type="button" onclick={trailingOnClick}>
71
- <Icon class={cls.trailingIcon()} {...trailingIconProps} />
72
- </button>
71
+ <ButtonIcon onclick={trailingOnClick} class={cls.trailingIcon()} iconProps={trailingIconProps}
72
+ ></ButtonIcon>
73
73
  {/if}
74
74
  </div>
75
75
 
@@ -11,6 +11,7 @@ export const textfield = tv({
11
11
  focus-within:after:h-[2px]
12
12
  disabled:bg-md-sys-color-on-surface/4
13
13
  disabled:after:bg-md-sys-color-on-surface/12
14
+
14
15
  `,
15
16
  inputWrapper: `
16
17
  relative flex-1 px-4
@@ -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: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noxlovette/material",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {