noph-ui 0.4.0 → 0.4.1
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/README.md +4 -3
- package/dist/button/Button.svelte +6 -24
- package/dist/button/Button.svelte.d.ts +2 -15
- package/dist/button/IconButton.svelte +4 -23
- package/dist/button/IconButton.svelte.d.ts +2 -16
- package/dist/button/SegmentedButton.svelte +2 -15
- package/dist/button/SegmentedButton.svelte.d.ts +2 -14
- package/dist/button/types.d.ts +46 -0
- package/dist/button/types.js +1 -0
- package/dist/card/Card.svelte +14 -41
- package/dist/card/Card.svelte.d.ts +2 -33
- package/dist/card/types.d.ts +37 -0
- package/dist/card/types.js +1 -0
- package/dist/chip/types.d.ts +1 -0
- package/dist/chip/types.js +1 -0
- package/dist/divider/Divider.svelte +24 -4
- package/dist/divider/Divider.svelte.d.ts +2 -1
- package/dist/divider/types.d.ts +4 -0
- package/dist/divider/types.js +1 -0
- package/dist/index.js +0 -1
- package/dist/list/Item.svelte +2 -27
- package/dist/list/Item.svelte.d.ts +2 -27
- package/dist/list/ListItem.svelte +2 -27
- package/dist/list/ListItem.svelte.d.ts +2 -27
- package/dist/list/types.d.ts +27 -0
- package/dist/list/types.js +1 -1
- package/dist/menu/Menu.svelte +1 -7
- package/dist/menu/Menu.svelte.d.ts +2 -6
- package/dist/menu/MenuItem.svelte +3 -19
- package/dist/menu/MenuItem.svelte.d.ts +2 -17
- package/dist/menu/types.d.ts +21 -0
- package/dist/menu/types.js +1 -0
- package/dist/progress/CircularProgress.svelte +3 -9
- package/dist/progress/LinearProgress.svelte +3 -10
- package/dist/progress/LinearProgress.svelte.d.ts +2 -9
- package/dist/progress/types.d.ts +13 -0
- package/dist/progress/types.js +1 -0
- package/dist/ripple/Ripple.svelte +1 -6
- package/dist/ripple/Ripple.svelte.d.ts +2 -6
- package/dist/ripple/types.d.ts +6 -0
- package/dist/ripple/types.js +1 -0
- package/dist/snackbar/Snackbar.svelte +2 -17
- package/dist/snackbar/Snackbar.svelte.d.ts +2 -15
- package/dist/snackbar/types.d.ts +15 -0
- package/dist/snackbar/types.js +1 -0
- package/dist/text-field/TextField.svelte +2 -2
- package/dist/text-field/TextField.svelte.d.ts +2 -3
- package/dist/text-field/types.d.ts +2 -1
- package/dist/tooltip/Tooltip.svelte +1 -5
- package/dist/tooltip/Tooltip.svelte.d.ts +2 -4
- package/dist/tooltip/types.d.ts +4 -0
- package/dist/tooltip/types.js +1 -0
- package/dist/types.d.ts +13 -3
- package/dist/types.js +13 -1
- package/package.json +92 -91
- package/dist/progress/CircularProgress.svelte.d.ts +0 -10
package/dist/list/types.d.ts
CHANGED
|
@@ -1 +1,28 @@
|
|
|
1
|
+
import type { Snippet } from 'svelte';
|
|
2
|
+
import type { HTMLAnchorAttributes, HTMLAttributes, HTMLButtonAttributes } from 'svelte/elements';
|
|
3
|
+
interface ButtonProps extends HTMLButtonAttributes {
|
|
4
|
+
selected?: boolean;
|
|
5
|
+
start?: Snippet;
|
|
6
|
+
end?: Snippet;
|
|
7
|
+
variant: 'button';
|
|
8
|
+
supportingText?: Snippet;
|
|
9
|
+
}
|
|
10
|
+
interface AnchorProps extends HTMLAnchorAttributes {
|
|
11
|
+
selected?: boolean;
|
|
12
|
+
start?: Snippet;
|
|
13
|
+
end?: Snippet;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
variant: 'link';
|
|
16
|
+
supportingText?: Snippet;
|
|
17
|
+
}
|
|
18
|
+
interface TextProps extends HTMLAttributes<HTMLDivElement> {
|
|
19
|
+
selected?: boolean;
|
|
20
|
+
start?: Snippet;
|
|
21
|
+
end?: Snippet;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
variant?: 'text';
|
|
24
|
+
supportingText?: Snippet;
|
|
25
|
+
}
|
|
26
|
+
export type ItemProps = ButtonProps | AnchorProps | TextProps;
|
|
27
|
+
export type ListItemProps = ButtonProps | AnchorProps | TextProps;
|
|
1
28
|
export {};
|
package/dist/list/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/menu/Menu.svelte
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { generateUUIDv4 } from '../utils.js'
|
|
3
|
-
import type {
|
|
4
|
-
import type { HTMLAttributes } from 'svelte/elements'
|
|
5
|
-
|
|
6
|
-
interface MenuProps extends HTMLAttributes<HTMLDivElement> {
|
|
7
|
-
children: Snippet
|
|
8
|
-
anchor?: HTMLElement | undefined
|
|
9
|
-
}
|
|
3
|
+
import type { MenuProps } from './types.ts'
|
|
10
4
|
|
|
11
5
|
let { anchor, children, ...attributes }: MenuProps = $props()
|
|
12
6
|
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
declare const Menu: import("svelte").Component<HTMLAttributes<HTMLDivElement> & {
|
|
4
|
-
children: Snippet;
|
|
5
|
-
anchor?: HTMLElement | undefined;
|
|
6
|
-
}, {}, "">;
|
|
1
|
+
import type { MenuProps } from './types.ts';
|
|
2
|
+
declare const Menu: import("svelte").Component<MenuProps, {}, "">;
|
|
7
3
|
type Menu = ReturnType<typeof Menu>;
|
|
8
4
|
export default Menu;
|
|
@@ -1,27 +1,11 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import Item from '../list/Item.svelte'
|
|
3
|
-
import type { Snippet } from 'svelte'
|
|
4
3
|
import type { HTMLAnchorAttributes, HTMLButtonAttributes } from 'svelte/elements'
|
|
4
|
+
import type { MenuItemProps } from './types.ts'
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
selected?: boolean
|
|
8
|
-
start?: Snippet
|
|
9
|
-
end?: Snippet
|
|
10
|
-
supportingText?: Snippet
|
|
11
|
-
}
|
|
12
|
-
interface AnchorProps extends HTMLAnchorAttributes {
|
|
13
|
-
selected?: boolean
|
|
14
|
-
start?: Snippet
|
|
15
|
-
end?: Snippet
|
|
16
|
-
disabled?: boolean
|
|
17
|
-
supportingText?: Snippet
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
let { ...attributes }: ButtonProps | AnchorProps = $props()
|
|
6
|
+
let { ...attributes }: MenuItemProps = $props()
|
|
21
7
|
|
|
22
|
-
const isButton = (
|
|
23
|
-
obj: HTMLAnchorAttributes | HTMLButtonAttributes,
|
|
24
|
-
): obj is HTMLButtonAttributes => {
|
|
8
|
+
const isButton = (obj: unknown): obj is HTMLButtonAttributes => {
|
|
25
9
|
return (obj as HTMLAnchorAttributes).href === undefined
|
|
26
10
|
}
|
|
27
11
|
</script>
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
interface ButtonProps extends HTMLButtonAttributes {
|
|
4
|
-
selected?: boolean;
|
|
5
|
-
start?: Snippet;
|
|
6
|
-
end?: Snippet;
|
|
7
|
-
supportingText?: Snippet;
|
|
8
|
-
}
|
|
9
|
-
interface AnchorProps extends HTMLAnchorAttributes {
|
|
10
|
-
selected?: boolean;
|
|
11
|
-
start?: Snippet;
|
|
12
|
-
end?: Snippet;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
supportingText?: Snippet;
|
|
15
|
-
}
|
|
16
|
-
type $$ComponentProps = ButtonProps | AnchorProps;
|
|
17
|
-
declare const MenuItem: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
1
|
+
import type { MenuItemProps } from './types.ts';
|
|
2
|
+
declare const MenuItem: import("svelte").Component<MenuItemProps, {}, "">;
|
|
18
3
|
type MenuItem = ReturnType<typeof MenuItem>;
|
|
19
4
|
export default MenuItem;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Snippet } from 'svelte';
|
|
2
|
+
import type { HTMLAttributes, HTMLAnchorAttributes, HTMLButtonAttributes } from 'svelte/elements';
|
|
3
|
+
export interface MenuProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
children: Snippet;
|
|
5
|
+
anchor?: HTMLElement | undefined;
|
|
6
|
+
}
|
|
7
|
+
interface ButtonProps extends HTMLButtonAttributes {
|
|
8
|
+
selected?: boolean;
|
|
9
|
+
start?: Snippet;
|
|
10
|
+
end?: Snippet;
|
|
11
|
+
supportingText?: Snippet;
|
|
12
|
+
}
|
|
13
|
+
interface AnchorProps extends HTMLAnchorAttributes {
|
|
14
|
+
selected?: boolean;
|
|
15
|
+
start?: Snippet;
|
|
16
|
+
end?: Snippet;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
supportingText?: Snippet;
|
|
19
|
+
}
|
|
20
|
+
export type MenuItemProps = ButtonProps | AnchorProps;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
max?: number
|
|
5
|
-
indeterminate?: boolean
|
|
6
|
-
fourColor?: boolean
|
|
7
|
-
'aria-label'?: string | undefined | null
|
|
8
|
-
element?: HTMLDivElement
|
|
9
|
-
}
|
|
2
|
+
import type { CircularProgressProps } from './types.ts'
|
|
3
|
+
|
|
10
4
|
let {
|
|
11
5
|
value = 0,
|
|
12
6
|
max = 1,
|
|
@@ -14,7 +8,7 @@
|
|
|
14
8
|
fourColor = false,
|
|
15
9
|
element = $bindable(),
|
|
16
10
|
...attributes
|
|
17
|
-
}:
|
|
11
|
+
}: CircularProgressProps = $props()
|
|
18
12
|
|
|
19
13
|
let dashOffset = $derived((1 - value / max) * 100)
|
|
20
14
|
</script>
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
max?: number
|
|
5
|
-
indeterminate?: boolean
|
|
6
|
-
fourColor?: boolean
|
|
7
|
-
buffer?: number
|
|
8
|
-
'aria-label'?: string | undefined | null
|
|
9
|
-
element?: HTMLDivElement
|
|
10
|
-
}
|
|
2
|
+
import type { LinearProgressProps } from './types.ts'
|
|
3
|
+
|
|
11
4
|
let {
|
|
12
5
|
value = 0,
|
|
13
6
|
max = 1,
|
|
@@ -16,7 +9,7 @@
|
|
|
16
9
|
buffer = 0,
|
|
17
10
|
element = $bindable(),
|
|
18
11
|
...attributes
|
|
19
|
-
}:
|
|
12
|
+
}: LinearProgressProps = $props()
|
|
20
13
|
|
|
21
14
|
let progressStyles = $derived(`transform: scaleX(${(indeterminate ? 1 : value / max) * 100}%)`)
|
|
22
15
|
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
max?: number;
|
|
4
|
-
indeterminate?: boolean;
|
|
5
|
-
fourColor?: boolean;
|
|
6
|
-
buffer?: number;
|
|
7
|
-
'aria-label'?: string | undefined | null;
|
|
8
|
-
element?: HTMLDivElement;
|
|
9
|
-
}, {}, "element">;
|
|
1
|
+
import type { LinearProgressProps } from './types.ts';
|
|
2
|
+
declare const LinearProgress: import("svelte").Component<LinearProgressProps, {}, "element">;
|
|
10
3
|
type LinearProgress = ReturnType<typeof LinearProgress>;
|
|
11
4
|
export default LinearProgress;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface ProgressProps {
|
|
2
|
+
value?: number;
|
|
3
|
+
max?: number;
|
|
4
|
+
indeterminate?: boolean;
|
|
5
|
+
fourColor?: boolean;
|
|
6
|
+
'aria-label'?: string | undefined | null;
|
|
7
|
+
element?: HTMLDivElement;
|
|
8
|
+
}
|
|
9
|
+
export interface LinearProgressProps extends ProgressProps {
|
|
10
|
+
buffer?: number;
|
|
11
|
+
}
|
|
12
|
+
export type CircularProgressProps = ProgressProps;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type {
|
|
2
|
+
import type { RippleProps } from './types.ts'
|
|
3
3
|
|
|
4
|
-
interface RippleProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
forceHover?: boolean
|
|
6
|
-
element?: HTMLDivElement
|
|
7
|
-
forElement?: HTMLElement
|
|
8
|
-
}
|
|
9
4
|
let {
|
|
10
5
|
forceHover = false,
|
|
11
6
|
element = $bindable(),
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare const Ripple: import("svelte").Component<
|
|
3
|
-
forceHover?: boolean;
|
|
4
|
-
element?: HTMLDivElement;
|
|
5
|
-
forElement?: HTMLElement;
|
|
6
|
-
}, {}, "element">;
|
|
1
|
+
import type { RippleProps } from './types.ts';
|
|
2
|
+
declare const Ripple: import("svelte").Component<RippleProps, {}, "element">;
|
|
7
3
|
type Ripple = ReturnType<typeof Ripple>;
|
|
8
4
|
export default Ripple;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,22 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import Button from '../button/Button.svelte'
|
|
3
3
|
import IconButton from '../button/IconButton.svelte'
|
|
4
|
-
import type {
|
|
5
|
-
import type { HTMLAttributes } from 'svelte/elements'
|
|
6
|
-
|
|
7
|
-
interface SnackbarProps extends HTMLAttributes<HTMLDivElement> {
|
|
8
|
-
label: string
|
|
9
|
-
supportingText?: string | undefined
|
|
10
|
-
actionLabel?: string | undefined
|
|
11
|
-
onActionClick?: (event: Event) => void
|
|
12
|
-
icon?: Snippet | undefined
|
|
13
|
-
onIconClick?: (event: Event) => void
|
|
14
|
-
showPopover?: () => void
|
|
15
|
-
hidePopover?: () => void
|
|
16
|
-
timeout?: number
|
|
17
|
-
element?: HTMLElement
|
|
18
|
-
popover?: 'auto' | 'manual'
|
|
19
|
-
}
|
|
4
|
+
import type { SnackbarProps } from './types.ts'
|
|
20
5
|
|
|
21
6
|
let {
|
|
22
7
|
label,
|
|
@@ -61,7 +46,7 @@
|
|
|
61
46
|
<div
|
|
62
47
|
{...attributes}
|
|
63
48
|
{popover}
|
|
64
|
-
class="np-snackbar"
|
|
49
|
+
class="np-snackbar {attributes.class}"
|
|
65
50
|
onbeforetoggle={toggleHandler}
|
|
66
51
|
bind:this={element}
|
|
67
52
|
>
|
|
@@ -1,17 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
declare const Snackbar: import("svelte").Component<HTMLAttributes<HTMLDivElement> & {
|
|
4
|
-
label: string;
|
|
5
|
-
supportingText?: string | undefined;
|
|
6
|
-
actionLabel?: string | undefined;
|
|
7
|
-
onActionClick?: (event: Event) => void;
|
|
8
|
-
icon?: Snippet | undefined;
|
|
9
|
-
onIconClick?: (event: Event) => void;
|
|
10
|
-
showPopover?: () => void;
|
|
11
|
-
hidePopover?: () => void;
|
|
12
|
-
timeout?: number;
|
|
13
|
-
element?: HTMLElement;
|
|
14
|
-
popover?: "auto" | "manual";
|
|
15
|
-
}, {}, "element" | "showPopover" | "hidePopover">;
|
|
1
|
+
import type { SnackbarProps } from './types.ts';
|
|
2
|
+
declare const Snackbar: import("svelte").Component<SnackbarProps, {}, "element" | "showPopover" | "hidePopover">;
|
|
16
3
|
type Snackbar = ReturnType<typeof Snackbar>;
|
|
17
4
|
export default Snackbar;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Snippet } from 'svelte';
|
|
2
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
+
export interface SnackbarProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
label: string;
|
|
5
|
+
supportingText?: string | undefined;
|
|
6
|
+
actionLabel?: string | undefined;
|
|
7
|
+
onActionClick?: (event: Event) => void;
|
|
8
|
+
icon?: Snippet | undefined;
|
|
9
|
+
onIconClick?: (event: Event) => void;
|
|
10
|
+
showPopover?: () => void;
|
|
11
|
+
hidePopover?: () => void;
|
|
12
|
+
timeout?: number;
|
|
13
|
+
element?: HTMLElement;
|
|
14
|
+
popover?: 'auto' | 'manual';
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { isFirstInvalidControlInForm } from './report-validity.js'
|
|
3
|
-
import type { TextFieldProps
|
|
3
|
+
import type { TextFieldProps } from './types.ts'
|
|
4
4
|
|
|
5
5
|
let {
|
|
6
6
|
value = $bindable(),
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
variant = 'filled',
|
|
18
18
|
placeholder = ' ',
|
|
19
19
|
...attributes
|
|
20
|
-
}: TextFieldProps
|
|
20
|
+
}: TextFieldProps = $props()
|
|
21
21
|
|
|
22
22
|
let contentEl: HTMLInputElement | HTMLTextAreaElement | undefined = $state()
|
|
23
23
|
let errorTextRaw = $state(errorText)
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { TextFieldProps
|
|
2
|
-
|
|
3
|
-
declare const TextField: import("svelte").Component<$$ComponentProps, {}, "value">;
|
|
1
|
+
import type { TextFieldProps } from './types.ts';
|
|
2
|
+
declare const TextField: import("svelte").Component<TextFieldProps, {}, "value">;
|
|
4
3
|
type TextField = ReturnType<typeof TextField>;
|
|
5
4
|
export default TextField;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
2
|
import type { HTMLInputAttributes, HTMLTextareaAttributes } from 'svelte/elements';
|
|
3
|
-
export interface
|
|
3
|
+
export interface InputFieldProps extends Omit<HTMLInputAttributes, 'class'> {
|
|
4
4
|
label?: string;
|
|
5
5
|
type?: 'text' | 'password' | 'email' | 'number' | 'search' | 'tel' | 'url';
|
|
6
6
|
supportingText?: string;
|
|
@@ -26,3 +26,4 @@ export interface TextAreaFieldProps extends Omit<HTMLTextareaAttributes, 'class'
|
|
|
26
26
|
end?: Snippet;
|
|
27
27
|
noAsterisk?: boolean;
|
|
28
28
|
}
|
|
29
|
+
export type TextFieldProps = InputFieldProps | TextAreaFieldProps;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
interface TooltipProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
anchor: HTMLElement
|
|
6
|
-
}
|
|
2
|
+
import type { TooltipProps } from './types.ts'
|
|
7
3
|
|
|
8
4
|
let { children, anchor, ...attributes }: TooltipProps = $props()
|
|
9
5
|
let clientWidth = $state(0)
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare const Tooltip: import("svelte").Component<
|
|
3
|
-
anchor: HTMLElement;
|
|
4
|
-
}, {}, "">;
|
|
1
|
+
import type { TooltipProps } from './types.ts';
|
|
2
|
+
declare const Tooltip: import("svelte").Component<TooltipProps, {}, "">;
|
|
5
3
|
type Tooltip = ReturnType<typeof Tooltip>;
|
|
6
4
|
export default Tooltip;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/types.d.ts
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export * from './button/types.ts';
|
|
2
|
+
export * from './card/types.ts';
|
|
3
|
+
export * from './checkbox/types.ts';
|
|
4
|
+
export * from './chip/types.ts';
|
|
5
|
+
export * from './divider/types.js';
|
|
6
|
+
export * from './list/types.ts';
|
|
7
|
+
export * from './menu/types.ts';
|
|
8
|
+
export * from './progress/types.js';
|
|
9
|
+
export * from './radio/types.ts';
|
|
10
|
+
export * from './ripple/types.ts';
|
|
11
|
+
export * from './snackbar/types.ts';
|
|
12
|
+
export * from './text-field/types.ts';
|
|
13
|
+
export * from './tooltip/types.ts';
|
package/dist/types.js
CHANGED
|
@@ -1 +1,13 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './button/types.ts';
|
|
2
|
+
export * from './card/types.ts';
|
|
3
|
+
export * from './checkbox/types.ts';
|
|
4
|
+
export * from './chip/types.ts';
|
|
5
|
+
export * from './divider/types.js';
|
|
6
|
+
export * from './list/types.ts';
|
|
7
|
+
export * from './menu/types.ts';
|
|
8
|
+
export * from './progress/types.js';
|
|
9
|
+
export * from './radio/types.ts';
|
|
10
|
+
export * from './ripple/types.ts';
|
|
11
|
+
export * from './snackbar/types.ts';
|
|
12
|
+
export * from './text-field/types.ts';
|
|
13
|
+
export * from './tooltip/types.ts';
|
package/package.json
CHANGED
|
@@ -1,92 +1,93 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
2
|
+
"name": "noph-ui",
|
|
3
|
+
"version": "0.4.1",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"homepage": "https://noph.dev",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/cnolte/noph-ui"
|
|
9
|
+
},
|
|
10
|
+
"author": {
|
|
11
|
+
"name": "cnolte"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"svelte",
|
|
15
|
+
"svelte 5",
|
|
16
|
+
"material",
|
|
17
|
+
"material 3",
|
|
18
|
+
"material you",
|
|
19
|
+
"m3",
|
|
20
|
+
"ui",
|
|
21
|
+
"frontend",
|
|
22
|
+
"design-system",
|
|
23
|
+
"ui-library",
|
|
24
|
+
"theming"
|
|
25
|
+
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"dev": "vite dev",
|
|
28
|
+
"build": "vite build && npm run package",
|
|
29
|
+
"preview": "vite preview",
|
|
30
|
+
"package": "svelte-kit sync && svelte-package && publint",
|
|
31
|
+
"prepublishOnly": "npm run package",
|
|
32
|
+
"test": "npm run test:integration && npm run test:unit",
|
|
33
|
+
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
34
|
+
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
35
|
+
"lint": "prettier --check . && eslint .",
|
|
36
|
+
"format": "prettier --write .",
|
|
37
|
+
"test:integration": "playwright test",
|
|
38
|
+
"test:unit": "vitest"
|
|
39
|
+
},
|
|
40
|
+
"exports": {
|
|
41
|
+
".": {
|
|
42
|
+
"types": "./dist/index.d.ts",
|
|
43
|
+
"svelte": "./dist/index.js"
|
|
44
|
+
},
|
|
45
|
+
"./icons": {
|
|
46
|
+
"types": "./dist/icons/index.d.ts",
|
|
47
|
+
"svelte": "./dist/icons/index.js"
|
|
48
|
+
},
|
|
49
|
+
"./types": {
|
|
50
|
+
"types": "./dist/types.d.ts"
|
|
51
|
+
},
|
|
52
|
+
"./defaultTheme": {
|
|
53
|
+
"import": "./dist/themes/defaultTheme.css",
|
|
54
|
+
"require": "./dist/themes/defaultTheme.css"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"sideEffects": [
|
|
58
|
+
"**/*.css"
|
|
59
|
+
],
|
|
60
|
+
"files": [
|
|
61
|
+
"dist",
|
|
62
|
+
"!dist/**/*.test.*",
|
|
63
|
+
"!dist/**/*.spec.*"
|
|
64
|
+
],
|
|
65
|
+
"peerDependencies": {
|
|
66
|
+
"svelte": "^5.0.0"
|
|
67
|
+
},
|
|
68
|
+
"devDependencies": {
|
|
69
|
+
"@material/material-color-utilities": "^0.3.0",
|
|
70
|
+
"@playwright/test": "^1.49.1",
|
|
71
|
+
"@sveltejs/adapter-vercel": "^5.5.2",
|
|
72
|
+
"@sveltejs/kit": "^2.12.1",
|
|
73
|
+
"@sveltejs/package": "^2.3.7",
|
|
74
|
+
"@sveltejs/vite-plugin-svelte": "^5.0.2",
|
|
75
|
+
"@types/eslint": "^9.6.1",
|
|
76
|
+
"eslint": "^9.17.0",
|
|
77
|
+
"eslint-config-prettier": "^9.1.0",
|
|
78
|
+
"eslint-plugin-svelte": "^2.46.1",
|
|
79
|
+
"globals": "^15.13.0",
|
|
80
|
+
"prettier": "^3.4.2",
|
|
81
|
+
"prettier-plugin-svelte": "^3.3.2",
|
|
82
|
+
"publint": "^0.2.12",
|
|
83
|
+
"svelte": "^5.14.1",
|
|
84
|
+
"svelte-check": "^4.1.1",
|
|
85
|
+
"typescript": "^5.7.2",
|
|
86
|
+
"typescript-eslint": "^8.18.1",
|
|
87
|
+
"vite": "^6.0.3",
|
|
88
|
+
"vitest": "^2.1.8"
|
|
89
|
+
},
|
|
90
|
+
"svelte": "./dist/index.js",
|
|
91
|
+
"types": "./dist/index.d.ts",
|
|
92
|
+
"type": "module"
|
|
93
|
+
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
declare const CircularProgress: import("svelte").Component<{
|
|
2
|
-
value?: number;
|
|
3
|
-
max?: number;
|
|
4
|
-
indeterminate?: boolean;
|
|
5
|
-
fourColor?: boolean;
|
|
6
|
-
'aria-label'?: string | undefined | null;
|
|
7
|
-
element?: HTMLDivElement;
|
|
8
|
-
}, {}, "element">;
|
|
9
|
-
type CircularProgress = ReturnType<typeof CircularProgress>;
|
|
10
|
-
export default CircularProgress;
|