flowbite-svelte 0.35.1 → 0.35.2
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/alerts/Alert.svelte.d.ts +2 -2
- package/dist/alerts/Alert.svelte.d.ts.map +1 -1
- package/dist/popover/Popover.svelte +1 -1
- package/dist/popover/Popover.svelte.d.ts +0 -2
- package/dist/popover/Popover.svelte.d.ts.map +1 -1
- package/dist/tooltips/Tooltip.svelte +1 -2
- package/dist/tooltips/Tooltip.svelte.d.ts +0 -2
- package/dist/tooltips/Tooltip.svelte.d.ts.map +1 -1
- package/dist/utils/Popper.svelte +13 -1
- package/dist/utils/Popper.svelte.d.ts +0 -2
- package/dist/utils/Popper.svelte.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -242,8 +242,8 @@ declare const __propDef: {
|
|
|
242
242
|
node?: HTMLElement | undefined;
|
|
243
243
|
use?: import("svelte/action").Action<HTMLElement, any, Record<never, any>> | undefined;
|
|
244
244
|
options?: object | undefined;
|
|
245
|
-
dismissable
|
|
246
|
-
accent
|
|
245
|
+
dismissable?: boolean | undefined;
|
|
246
|
+
accent?: boolean | undefined;
|
|
247
247
|
};
|
|
248
248
|
events: {
|
|
249
249
|
click: MouseEvent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/alerts/Alert.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAyDD,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"Alert.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/alerts/Alert.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAyDD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwC,CAAC;AACxD,MAAM,MAAM,UAAU,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAChD,MAAM,MAAM,WAAW,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AAClD,MAAM,MAAM,UAAU,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEhD,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,oBAAoB,CAAC,UAAU,EAAE,WAAW,EAAE,UAAU,CAAC;CAC3F"}
|
|
@@ -3,7 +3,7 @@ export let title = '';
|
|
|
3
3
|
export let defaultClass = 'py-2 px-3';
|
|
4
4
|
</script>
|
|
5
5
|
|
|
6
|
-
<Popper
|
|
6
|
+
<Popper activeContent border shadow rounded {...$$restProps} class={$$props.class} on:show>
|
|
7
7
|
{#if $$slots.title || title}
|
|
8
8
|
<div
|
|
9
9
|
class="py-2 px-3 bg-gray-100 rounded-t-lg border-b border-gray-200 dark:border-gray-600 dark:bg-gray-700">
|
|
@@ -251,8 +251,6 @@ declare const __propDef: {
|
|
|
251
251
|
strategy?: "fixed" | "absolute" | undefined;
|
|
252
252
|
open?: boolean | undefined;
|
|
253
253
|
yOnly?: boolean | undefined;
|
|
254
|
-
'data-tooltip'?: boolean | undefined;
|
|
255
|
-
'data-popover'?: boolean | undefined;
|
|
256
254
|
defaultClass?: string | undefined;
|
|
257
255
|
};
|
|
258
256
|
events: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/popover/Popover.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAiCD,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"Popover.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/popover/Popover.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAiCD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwC,CAAC;AACxD,MAAM,MAAM,YAAY,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAClD,MAAM,MAAM,aAAa,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACpD,MAAM,MAAM,YAAY,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAElD,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,oBAAoB,CAAC,YAAY,EAAE,aAAa,EAAE,YAAY,CAAC;CACnG"}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
export let type = 'dark';
|
|
4
4
|
export let defaultClass = 'py-2 px-3 text-sm font-medium';
|
|
5
|
-
export let placement = 'top';
|
|
6
5
|
const types = {
|
|
7
6
|
dark: 'bg-gray-900 text-white dark:bg-gray-700',
|
|
8
7
|
light: 'border border-gray-200 bg-white text-gray-900',
|
|
@@ -19,6 +18,6 @@ $: {
|
|
|
19
18
|
}
|
|
20
19
|
</script>
|
|
21
20
|
|
|
22
|
-
<Popper
|
|
21
|
+
<Popper rounded shadow {...$$restProps} class={toolTipClass} on:show>
|
|
23
22
|
<slot />
|
|
24
23
|
</Popper>
|
|
@@ -251,8 +251,6 @@ declare const __propDef: {
|
|
|
251
251
|
strategy?: "fixed" | "absolute" | undefined;
|
|
252
252
|
open?: boolean | undefined;
|
|
253
253
|
yOnly?: boolean | undefined;
|
|
254
|
-
'data-tooltip'?: boolean | undefined;
|
|
255
|
-
'data-popover'?: boolean | undefined;
|
|
256
254
|
defaultClass?: string | undefined;
|
|
257
255
|
};
|
|
258
256
|
events: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/tooltips/Tooltip.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;
|
|
1
|
+
{"version":3,"file":"Tooltip.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/tooltips/Tooltip.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAwCD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwC,CAAC;AACxD,MAAM,MAAM,YAAY,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAClD,MAAM,MAAM,aAAa,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACpD,MAAM,MAAM,YAAY,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAElD,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,oBAAoB,CAAC,YAAY,EAAE,aAAa,EAAE,YAAY,CAAC;CACnG"}
|
package/dist/utils/Popper.svelte
CHANGED
|
@@ -115,6 +115,12 @@ onMount(() => {
|
|
|
115
115
|
function optional(pred, func) {
|
|
116
116
|
return (pred && func) || null;
|
|
117
117
|
}
|
|
118
|
+
let placement_primary;
|
|
119
|
+
$: placement_primary = placement.split('-')[0];
|
|
120
|
+
let arrowClass = 'bottom';
|
|
121
|
+
$: arrowClass = classNames('absolute w-[9px] h-[9px] rotate-45 inset-0 m-auto bg-inherit', $$props.border && placement_primary === 'top' && 'border-b border-r', $$props.border && placement_primary === 'bottom' && 'border-t border-l', $$props.border && placement_primary === 'left' && 'border-t border-r', $$props.border && placement_primary === 'right' && 'border-b border-l');
|
|
122
|
+
let arrowOffset = '-4px';
|
|
123
|
+
$: arrowOffset = $$props.border ? '-5px' : '-4px';
|
|
118
124
|
</script>
|
|
119
125
|
|
|
120
126
|
{#if !triggerEl}
|
|
@@ -134,6 +140,12 @@ function optional(pred, func) {
|
|
|
134
140
|
{...$$restProps}
|
|
135
141
|
class={classNames('z-10 outline-none', $$props.class)}>
|
|
136
142
|
<slot />
|
|
137
|
-
{#if arrow}<div
|
|
143
|
+
{#if arrow}<div
|
|
144
|
+
class={arrowClass}
|
|
145
|
+
style:margin-left={placement_primary === 'right' ? arrowOffset : undefined}
|
|
146
|
+
style:margin-right={placement_primary === 'left' ? arrowOffset : undefined}
|
|
147
|
+
style:margin-top={placement_primary === 'bottom' ? arrowOffset : undefined}
|
|
148
|
+
style:margin-bottom={placement_primary === 'top' ? arrowOffset : undefined} />
|
|
149
|
+
{/if}
|
|
138
150
|
</Frame>
|
|
139
151
|
{/if}
|
|
@@ -252,8 +252,6 @@ declare const __propDef: {
|
|
|
252
252
|
strategy?: "fixed" | "absolute" | undefined;
|
|
253
253
|
open?: boolean | undefined;
|
|
254
254
|
yOnly?: boolean | undefined;
|
|
255
|
-
'data-tooltip'?: boolean | undefined;
|
|
256
|
-
'data-popover'?: boolean | undefined;
|
|
257
255
|
};
|
|
258
256
|
events: {
|
|
259
257
|
[evt: string]: CustomEvent<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popper.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/Popper.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAID,OAAO,KAAK,EAAE,SAAS,EAAY,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"Popper.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/Popper.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAID,OAAO,KAAK,EAAE,SAAS,EAAY,MAAM,gBAAgB,CAAC;AA8K1D,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwC,CAAC;AACxD,MAAM,MAAM,WAAW,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AACjD,MAAM,MAAM,YAAY,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACnD,MAAM,MAAM,WAAW,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEjD,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,oBAAoB,CAAC,WAAW,EAAE,YAAY,EAAE,WAAW,CAAC;CAC/F"}
|