@ims360/svelte-ivory 0.4.15 → 0.4.17
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/components/layout/popover/Popover.svelte +4 -6
- package/dist/components/layout/popover/Popover.svelte.d.ts.map +1 -1
- package/dist/components/layout/tooltip/Tooltip.svelte +1 -1
- package/package.json +1 -1
- package/src/lib/components/layout/popover/Popover.svelte +4 -6
- package/src/lib/components/layout/tooltip/Tooltip.svelte +1 -1
|
@@ -132,12 +132,10 @@
|
|
|
132
132
|
let style = $derived(getStyles(placement, anchorName, autoplacement));
|
|
133
133
|
|
|
134
134
|
$effect(() => {
|
|
135
|
-
if (target)
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
};
|
|
140
|
-
}
|
|
135
|
+
if (target) target.style.setProperty('anchor-name', anchorName);
|
|
136
|
+
return () => {
|
|
137
|
+
target?.style.removeProperty('anchor-name');
|
|
138
|
+
};
|
|
141
139
|
});
|
|
142
140
|
|
|
143
141
|
$effect(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/layout/popover/Popover.svelte.ts"],"names":[],"mappings":"AAII,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAGjD,0CAA0C;AAC1C,MAAM,MAAM,gBAAgB,GACtB,KAAK,GACL,WAAW,GACX,SAAS,GACT,OAAO,GACP,aAAa,GACb,WAAW,GACX,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,UAAU,CAAC;AAEjB,MAAM,WAAW,YAAa,SAAQ,cAAc,CAAC,cAAc,CAAC;IAChE,6DAA6D;IAC7D,MAAM,EAAE,WAAW,GAAG,SAAS,CAAC;IAChC;;;;OAIG;IACH,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B;
|
|
1
|
+
{"version":3,"file":"Popover.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/layout/popover/Popover.svelte.ts"],"names":[],"mappings":"AAII,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAGjD,0CAA0C;AAC1C,MAAM,MAAM,gBAAgB,GACtB,KAAK,GACL,WAAW,GACX,SAAS,GACT,OAAO,GACP,aAAa,GACb,WAAW,GACX,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,UAAU,CAAC;AAEjB,MAAM,WAAW,YAAa,SAAQ,cAAc,CAAC,cAAc,CAAC;IAChE,6DAA6D;IAC7D,MAAM,EAAE,WAAW,GAAG,SAAS,CAAC;IAChC;;;;OAIG;IACH,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B;AAiJL,QAAA,MAAM,OAAO;;;;;MAAwC,CAAC;AACtD,KAAK,OAAO,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;AAC1C,eAAe,OAAO,CAAC"}
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
{@render children?.()}
|
|
78
78
|
</svelte:element>
|
|
79
79
|
|
|
80
|
-
<Popover bind:this={popover} {target} {placement} class={tooltipClass}>
|
|
80
|
+
<Popover bind:this={popover} popover="hint" {target} {placement} class={tooltipClass}>
|
|
81
81
|
{#if typeof tooltip === 'string'}
|
|
82
82
|
{tooltip}
|
|
83
83
|
{:else}
|
package/package.json
CHANGED
|
@@ -132,12 +132,10 @@
|
|
|
132
132
|
let style = $derived(getStyles(placement, anchorName, autoplacement));
|
|
133
133
|
|
|
134
134
|
$effect(() => {
|
|
135
|
-
if (target)
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
};
|
|
140
|
-
}
|
|
135
|
+
if (target) target.style.setProperty('anchor-name', anchorName);
|
|
136
|
+
return () => {
|
|
137
|
+
target?.style.removeProperty('anchor-name');
|
|
138
|
+
};
|
|
141
139
|
});
|
|
142
140
|
|
|
143
141
|
$effect(() => {
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
{@render children?.()}
|
|
78
78
|
</svelte:element>
|
|
79
79
|
|
|
80
|
-
<Popover bind:this={popover} {target} {placement} class={tooltipClass}>
|
|
80
|
+
<Popover bind:this={popover} popover="hint" {target} {placement} class={tooltipClass}>
|
|
81
81
|
{#if typeof tooltip === 'string'}
|
|
82
82
|
{tooltip}
|
|
83
83
|
{:else}
|