noph-ui 0.31.1 → 0.31.3
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/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/select/NativeSelect.svelte +2 -0
- package/dist/slider/Slider.svelte +25 -0
- package/dist/slider/Slider.svelte.d.ts +4 -0
- package/dist/slider/index.d.ts +1 -0
- package/dist/slider/index.js +1 -0
- package/dist/slider/types.d.ts +11 -0
- package/dist/slider/types.js +1 -0
- package/dist/text-field/types.d.ts +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/types.js +1 -0
- package/package.json +9 -9
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from './progress/index.js';
|
|
|
13
13
|
export * from './radio/index.js';
|
|
14
14
|
export * from './ripple/index.js';
|
|
15
15
|
export * from './select/index.js';
|
|
16
|
+
export * from './slider/index.js';
|
|
16
17
|
export * from './snackbar/index.js';
|
|
17
18
|
export * from './switch/index.js';
|
|
18
19
|
export * from './tabs/index.js';
|
package/dist/index.js
CHANGED
|
@@ -13,6 +13,7 @@ export * from './progress/index.js';
|
|
|
13
13
|
export * from './radio/index.js';
|
|
14
14
|
export * from './ripple/index.js';
|
|
15
15
|
export * from './select/index.js';
|
|
16
|
+
export * from './slider/index.js';
|
|
16
17
|
export * from './snackbar/index.js';
|
|
17
18
|
export * from './switch/index.js';
|
|
18
19
|
export * from './tabs/index.js';
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
noAsterisk,
|
|
25
25
|
children,
|
|
26
26
|
oninput,
|
|
27
|
+
style,
|
|
27
28
|
...attributes
|
|
28
29
|
}: SelectProps = $props()
|
|
29
30
|
const uid = $props.id()
|
|
@@ -43,6 +44,7 @@
|
|
|
43
44
|
animateLabel && 'animate-label',
|
|
44
45
|
attributes.class,
|
|
45
46
|
]}
|
|
47
|
+
{style}
|
|
46
48
|
>
|
|
47
49
|
{#if variant === 'outlined'}
|
|
48
50
|
<div class="np-select-outline">
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { SliderProps } from './types.ts'
|
|
3
|
+
|
|
4
|
+
let {
|
|
5
|
+
type = 'standard',
|
|
6
|
+
orientation = 'horizontal',
|
|
7
|
+
size = 'sm',
|
|
8
|
+
stops = false,
|
|
9
|
+
value = $bindable(0),
|
|
10
|
+
min = 0,
|
|
11
|
+
max = 100,
|
|
12
|
+
step = 1,
|
|
13
|
+
element = $bindable(),
|
|
14
|
+
inputElement = $bindable(),
|
|
15
|
+
...attributes
|
|
16
|
+
}: SliderProps = $props()
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<input class={[orientation]} bind:this={inputElement} type="range" />
|
|
20
|
+
|
|
21
|
+
<style>
|
|
22
|
+
.vertical {
|
|
23
|
+
appearance: slider-vertical;
|
|
24
|
+
}
|
|
25
|
+
</style>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Slider } from './Slider.svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Slider } from './Slider.svelte';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Snippet } from 'svelte';
|
|
2
|
+
import type { HTMLInputAttributes } from 'svelte/elements';
|
|
3
|
+
export interface SliderProps extends Omit<HTMLInputAttributes, 'type' | 'role' | 'checked' | 'indeterminate' | 'size'> {
|
|
4
|
+
type?: 'standard' | 'centered' | 'range';
|
|
5
|
+
orientation?: 'horizontal' | 'vertical';
|
|
6
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
7
|
+
stops?: boolean;
|
|
8
|
+
insetIcon?: Snippet;
|
|
9
|
+
inputElement?: HTMLInputElement;
|
|
10
|
+
element?: HTMLDivElement;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -20,7 +20,7 @@ interface FieldProps {
|
|
|
20
20
|
focused?: boolean;
|
|
21
21
|
}
|
|
22
22
|
export interface InputFieldProps extends HTMLInputAttributes, FieldProps {
|
|
23
|
-
type?: 'text' | 'password' | 'email' | 'number' | 'search' | 'tel' | 'url' | 'datetime-local';
|
|
23
|
+
type?: 'text' | 'password' | 'email' | 'number' | 'search' | 'tel' | 'url' | 'datetime-local' | 'date' | 'datetime' | 'time';
|
|
24
24
|
}
|
|
25
25
|
export interface TextAreaFieldProps extends HTMLTextareaAttributes, FieldProps {
|
|
26
26
|
type: 'textarea';
|
package/dist/types.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from './progress/types.ts';
|
|
|
13
13
|
export * from './radio/types.ts';
|
|
14
14
|
export * from './ripple/types.ts';
|
|
15
15
|
export * from './select/types.ts';
|
|
16
|
+
export * from './slider/types.ts';
|
|
16
17
|
export * from './snackbar/types.ts';
|
|
17
18
|
export * from './switch/types.ts';
|
|
18
19
|
export * from './text-field/types.ts';
|
package/dist/types.js
CHANGED
|
@@ -13,6 +13,7 @@ export * from './progress/types.ts';
|
|
|
13
13
|
export * from './radio/types.ts';
|
|
14
14
|
export * from './ripple/types.ts';
|
|
15
15
|
export * from './select/types.ts';
|
|
16
|
+
export * from './slider/types.ts';
|
|
16
17
|
export * from './snackbar/types.ts';
|
|
17
18
|
export * from './switch/types.ts';
|
|
18
19
|
export * from './text-field/types.ts';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "noph-ui",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://noph.dev",
|
|
6
6
|
"repository": {
|
|
@@ -72,23 +72,23 @@
|
|
|
72
72
|
"@materialx/material-color-utilities": "^0.4.8",
|
|
73
73
|
"@playwright/test": "^1.57.0",
|
|
74
74
|
"@sveltejs/adapter-auto": "^7.0.0",
|
|
75
|
-
"@sveltejs/kit": "^2.49.
|
|
75
|
+
"@sveltejs/kit": "^2.49.4",
|
|
76
76
|
"@sveltejs/package": "^2.5.7",
|
|
77
|
-
"@sveltejs/vite-plugin-svelte": "^6.2.
|
|
77
|
+
"@sveltejs/vite-plugin-svelte": "^6.2.4",
|
|
78
78
|
"@types/eslint": "^9.6.1",
|
|
79
79
|
"eslint": "^9.39.2",
|
|
80
80
|
"eslint-config-prettier": "^10.1.8",
|
|
81
|
-
"eslint-plugin-svelte": "^3.
|
|
82
|
-
"globals": "^
|
|
81
|
+
"eslint-plugin-svelte": "^3.14.0",
|
|
82
|
+
"globals": "^17.0.0",
|
|
83
83
|
"prettier": "^3.7.4",
|
|
84
84
|
"prettier-plugin-svelte": "^3.4.1",
|
|
85
85
|
"publint": "^0.3.16",
|
|
86
|
-
"svelte": "^5.46.
|
|
86
|
+
"svelte": "^5.46.3",
|
|
87
87
|
"svelte-check": "^4.3.5",
|
|
88
88
|
"typescript": "^5.9.3",
|
|
89
|
-
"typescript-eslint": "^8.
|
|
90
|
-
"vite": "^7.3.
|
|
91
|
-
"vitest": "^4.0.
|
|
89
|
+
"typescript-eslint": "^8.53.0",
|
|
90
|
+
"vite": "^7.3.1",
|
|
91
|
+
"vitest": "^4.0.17"
|
|
92
92
|
},
|
|
93
93
|
"svelte": "./dist/index.js",
|
|
94
94
|
"types": "./dist/index.d.ts",
|