noph-ui 0.7.1 → 0.7.2

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.
@@ -76,6 +76,7 @@
76
76
  class={[
77
77
  'np-icon-button',
78
78
  variant,
79
+ 'enabled',
79
80
  selectedState && ((variant !== 'outlined' && variant !== 'text') || toggle) && 'selected',
80
81
  attributes.class,
81
82
  ]}
@@ -1,8 +1,7 @@
1
1
  import type { Snippet } from 'svelte';
2
2
  import type { HTMLInputAttributes, HTMLTextareaAttributes } from 'svelte/elements';
3
- export interface InputFieldProps extends Omit<HTMLInputAttributes, 'class'> {
3
+ interface FieldProps {
4
4
  label?: string;
5
- type?: 'text' | 'password' | 'email' | 'number' | 'search' | 'tel' | 'url';
6
5
  supportingText?: string;
7
6
  error?: boolean;
8
7
  errorText?: string;
@@ -14,18 +13,11 @@ export interface InputFieldProps extends Omit<HTMLInputAttributes, 'class'> {
14
13
  noAsterisk?: boolean;
15
14
  element?: HTMLSpanElement;
16
15
  }
17
- export interface TextAreaFieldProps extends Omit<HTMLTextareaAttributes, 'class'> {
18
- label?: string;
16
+ export interface InputFieldProps extends Omit<HTMLInputAttributes, 'class'>, FieldProps {
17
+ type?: 'text' | 'password' | 'email' | 'number' | 'search' | 'tel' | 'url';
18
+ }
19
+ export interface TextAreaFieldProps extends Omit<HTMLTextareaAttributes, 'class'>, FieldProps {
19
20
  type: 'textarea';
20
- supportingText?: string;
21
- error?: boolean;
22
- errorText?: string;
23
- prefixText?: string;
24
- suffixText?: string;
25
- variant?: 'outlined' | 'filled';
26
- start?: Snippet;
27
- end?: Snippet;
28
- noAsterisk?: boolean;
29
- element?: HTMLSpanElement;
30
21
  }
31
22
  export type TextFieldProps = InputFieldProps | TextAreaFieldProps;
23
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "noph-ui",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "license": "MIT",
5
5
  "homepage": "https://noph.dev",
6
6
  "repository": {