noph-ui 0.9.1 → 0.9.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/date-picker/DockedDatePicker.svelte +11 -0
- package/dist/date-picker/DockedDatePicker.svelte.d.ts +18 -0
- package/dist/icons/CalendarToday.svelte +5 -0
- package/dist/icons/CalendarToday.svelte.d.ts +26 -0
- package/dist/icons/index.d.ts +1 -0
- package/dist/icons/index.js +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/menu/Menu.svelte +2 -6
- package/dist/select/Select.svelte +7 -0
- package/package.json +1 -1
- /package/dist/{dialogs → dialog}/Dialog.svelte +0 -0
- /package/dist/{dialogs → dialog}/Dialog.svelte.d.ts +0 -0
- /package/dist/{dialogs → dialog}/index.d.ts +0 -0
- /package/dist/{dialogs → dialog}/index.js +0 -0
- /package/dist/{dialogs → dialog}/types.d.ts +0 -0
- /package/dist/{dialogs → dialog}/types.js +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import IconButton from '../button/IconButton.svelte'
|
|
3
|
+
import CalendarToday from '../icons/CalendarToday.svelte'
|
|
4
|
+
import TextField from '../text-field/TextField.svelte'
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<TextField label="Date" supportingText="MM/DD/YYYY">
|
|
8
|
+
{#snippet end()}
|
|
9
|
+
<IconButton><CalendarToday /></IconButton>
|
|
10
|
+
{/snippet}
|
|
11
|
+
</TextField>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
11
|
+
};
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
13
|
+
}
|
|
14
|
+
declare const DockedDatePicker: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
15
|
+
[evt: string]: CustomEvent<any>;
|
|
16
|
+
}, {}, {}, string>;
|
|
17
|
+
type DockedDatePicker = InstanceType<typeof DockedDatePicker>;
|
|
18
|
+
export default DockedDatePicker;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px"
|
|
2
|
+
><path
|
|
3
|
+
d="M200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v560q0 33-23.5 56.5T760-80H200Zm0-80h560v-400H200v400Zm0-480h560v-80H200v80Zm0 0v-80 80Z"
|
|
4
|
+
/></svg
|
|
5
|
+
>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default CalendarToday;
|
|
2
|
+
type CalendarToday = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
4
|
+
}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> & {
|
|
7
|
+
$$bindings?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
declare const CalendarToday: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
11
|
+
}, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {}, {}, string>;
|
|
14
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
15
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
16
|
+
$$bindings?: Bindings;
|
|
17
|
+
} & Exports;
|
|
18
|
+
(internal: unknown, props: {
|
|
19
|
+
$$events?: Events;
|
|
20
|
+
$$slots?: Slots;
|
|
21
|
+
}): Exports & {
|
|
22
|
+
$set?: any;
|
|
23
|
+
$on?: any;
|
|
24
|
+
};
|
|
25
|
+
z_$$bindings?: Bindings;
|
|
26
|
+
}
|
package/dist/icons/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export { default as ArrowBackIcon } from './ArrowBackIcon.svelte';
|
|
|
3
3
|
export { default as ArrowForwardIcon } from './ArrowForwardIcon.svelte';
|
|
4
4
|
export { default as BreakingNewsIcon } from './BreakingNewsIcon.svelte';
|
|
5
5
|
export { default as BrightnessMediumIcon } from './BrightnessMediumIcon.svelte';
|
|
6
|
+
export { default as CalendarToday } from './CalendarToday.svelte';
|
|
6
7
|
export { default as ChatIcon } from './ChatIcon.svelte';
|
|
7
8
|
export { default as CheckIcon } from './CheckIcon.svelte';
|
|
8
9
|
export { default as CloseIcon } from './CloseIcon.svelte';
|
package/dist/icons/index.js
CHANGED
|
@@ -3,6 +3,7 @@ export { default as ArrowBackIcon } from './ArrowBackIcon.svelte';
|
|
|
3
3
|
export { default as ArrowForwardIcon } from './ArrowForwardIcon.svelte';
|
|
4
4
|
export { default as BreakingNewsIcon } from './BreakingNewsIcon.svelte';
|
|
5
5
|
export { default as BrightnessMediumIcon } from './BrightnessMediumIcon.svelte';
|
|
6
|
+
export { default as CalendarToday } from './CalendarToday.svelte';
|
|
6
7
|
export { default as ChatIcon } from './ChatIcon.svelte';
|
|
7
8
|
export { default as CheckIcon } from './CheckIcon.svelte';
|
|
8
9
|
export { default as CloseIcon } from './CloseIcon.svelte';
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export * from './button/index.js';
|
|
|
2
2
|
export * from './card/index.js';
|
|
3
3
|
export * from './checkbox/index.js';
|
|
4
4
|
export * from './chip/index.js';
|
|
5
|
-
export * from './
|
|
5
|
+
export * from './dialog/index.js';
|
|
6
6
|
export * from './divider/index.js';
|
|
7
7
|
export * from './list/index.js';
|
|
8
8
|
export * from './menu/index.js';
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ export * from './button/index.js';
|
|
|
2
2
|
export * from './card/index.js';
|
|
3
3
|
export * from './checkbox/index.js';
|
|
4
4
|
export * from './chip/index.js';
|
|
5
|
-
export * from './
|
|
5
|
+
export * from './dialog/index.js';
|
|
6
6
|
export * from './divider/index.js';
|
|
7
7
|
export * from './list/index.js';
|
|
8
8
|
export * from './menu/index.js';
|
package/dist/menu/Menu.svelte
CHANGED
|
@@ -116,9 +116,7 @@
|
|
|
116
116
|
border-radius: var(--np-menu-container-shape, var(--np-shape-corner-extra-small));
|
|
117
117
|
padding: 0.5rem 0;
|
|
118
118
|
box-shadow: var(--np-elevation-2);
|
|
119
|
-
margin:
|
|
120
|
-
margin-bottom: 2px;
|
|
121
|
-
margin-top: 2px;
|
|
119
|
+
margin: 2px;
|
|
122
120
|
max-height: 80dvh;
|
|
123
121
|
scrollbar-color: var(--np-color-on-surface-variant) transparent;
|
|
124
122
|
scrollbar-width: thin;
|
|
@@ -143,9 +141,7 @@
|
|
|
143
141
|
|
|
144
142
|
.np-menu:popover-open {
|
|
145
143
|
opacity: 1;
|
|
146
|
-
|
|
147
|
-
@starting-style {
|
|
148
|
-
.np-menu:popover-open {
|
|
144
|
+
@starting-style {
|
|
149
145
|
opacity: 0;
|
|
150
146
|
}
|
|
151
147
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import { generateUUIDv4 } from '../utils.js'
|
|
5
5
|
import type { SelectProps } from './types.ts'
|
|
6
6
|
import Item from '../list/Item.svelte'
|
|
7
|
+
import { tick } from 'svelte'
|
|
7
8
|
|
|
8
9
|
let {
|
|
9
10
|
options = [],
|
|
@@ -216,6 +217,9 @@
|
|
|
216
217
|
menuElement?.hidePopover()
|
|
217
218
|
field?.focus()
|
|
218
219
|
event.preventDefault()
|
|
220
|
+
tick().then(() => {
|
|
221
|
+
selectElement?.dispatchEvent(new Event('change', { bubbles: true }))
|
|
222
|
+
})
|
|
219
223
|
}}
|
|
220
224
|
onkeydown={(event) => {
|
|
221
225
|
if (event.key === 'ArrowDown') {
|
|
@@ -230,6 +234,9 @@
|
|
|
230
234
|
value = option.value
|
|
231
235
|
menuElement?.hidePopover()
|
|
232
236
|
event.preventDefault()
|
|
237
|
+
tick().then(() => {
|
|
238
|
+
selectElement?.dispatchEvent(new Event('change', { bubbles: true }))
|
|
239
|
+
})
|
|
233
240
|
}
|
|
234
241
|
if (event.key === 'Tab') {
|
|
235
242
|
menuElement?.hidePopover()
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|