noph-ui 0.32.3 → 0.32.5
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.
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
bind:this={element}
|
|
32
32
|
popover="auto"
|
|
33
33
|
{...attributes}
|
|
34
|
-
class={['np-dialog-container', !quick && 'np-animate']}
|
|
34
|
+
class={['np-dialog-container', !quick && 'np-animate', attributes.class]}
|
|
35
35
|
>
|
|
36
36
|
<div
|
|
37
37
|
role="none"
|
|
@@ -84,11 +84,13 @@
|
|
|
84
84
|
border: none;
|
|
85
85
|
margin: auto;
|
|
86
86
|
padding: 2rem 1rem;
|
|
87
|
+
box-sizing: border-box;
|
|
88
|
+
min-width: 19.5rem;
|
|
89
|
+
width: 37rem;
|
|
90
|
+
max-width: 100%;
|
|
87
91
|
}
|
|
88
92
|
.np-dialog {
|
|
89
93
|
border: 0;
|
|
90
|
-
min-width: 280px;
|
|
91
|
-
max-width: 560px;
|
|
92
94
|
background-color: var(--np-color-surface);
|
|
93
95
|
color: var(--np-color-on-surface);
|
|
94
96
|
padding: 1.5rem;
|
package/dist/dialog/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
2
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
-
export interface DialogProps extends Omit<HTMLAttributes<HTMLDivElement>, '
|
|
3
|
+
export interface DialogProps extends Omit<HTMLAttributes<HTMLDivElement>, 'popover'> {
|
|
4
4
|
icon?: Snippet;
|
|
5
5
|
headline: string;
|
|
6
6
|
supportingText?: string;
|
package/dist/list/Item.svelte
CHANGED
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
|
|
47
47
|
{#snippet content()}
|
|
48
48
|
{#if start}
|
|
49
|
-
<div class=
|
|
49
|
+
<div class={['np-item-start', selected && 'selected', disabled && 'disabled']}>
|
|
50
50
|
{@render start()}
|
|
51
51
|
</div>
|
|
52
52
|
{/if}
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
</div>
|
|
65
65
|
|
|
66
66
|
{#if end}
|
|
67
|
-
<div class={['np-item-end', selected && 'selected']}>
|
|
67
|
+
<div class={['np-item-end', selected && 'selected', disabled && 'disabled']}>
|
|
68
68
|
{@render end()}
|
|
69
69
|
</div>
|
|
70
70
|
{/if}
|
|
@@ -138,6 +138,11 @@
|
|
|
138
138
|
color: inherit;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
+
.np-item-end.disabled,
|
|
142
|
+
.np-item-start.disabled {
|
|
143
|
+
color: inherit;
|
|
144
|
+
}
|
|
145
|
+
|
|
141
146
|
:global(.np-item-end svg, .np-item-start svg) {
|
|
142
147
|
fill: currentColor;
|
|
143
148
|
display: block;
|