noph-ui 0.32.4 → 0.32.6
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/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;
|
|
@@ -115,6 +115,9 @@
|
|
|
115
115
|
<style>
|
|
116
116
|
.np-tooltip[popover] {
|
|
117
117
|
width: max-content;
|
|
118
|
+
max-width: 12.5rem;
|
|
119
|
+
word-wrap: break-word;
|
|
120
|
+
overflow-wrap: break-word;
|
|
118
121
|
margin: 4px 0;
|
|
119
122
|
background: var(--np-color-inverse-surface);
|
|
120
123
|
color: var(--np-color-inverse-on-surface);
|