flowbite-svelte 0.34.12 → 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/accordion/Accordion.svelte +6 -2
- package/dist/accordion/Accordion.svelte.d.ts +246 -6
- package/dist/accordion/Accordion.svelte.d.ts.map +1 -1
- package/dist/accordion/AccordionItem.svelte +7 -4
- package/dist/accordion/AccordionItem.svelte.d.ts +4 -1
- package/dist/accordion/AccordionItem.svelte.d.ts.map +1 -1
- package/dist/alerts/Alert.svelte.d.ts +241 -1
- package/dist/alerts/Alert.svelte.d.ts.map +1 -1
- package/dist/avatar/Avatar.svelte.d.ts +1 -1
- package/dist/bottom-nav/BottomNav.svelte.d.ts +1 -1
- package/dist/buttons/Button.svelte +2 -2
- package/dist/buttons/Button.svelte.d.ts +4 -4
- package/dist/buttons/Button.svelte.d.ts.map +1 -1
- package/dist/cards/Card.svelte +13 -1
- package/dist/cards/Card.svelte.d.ts +242 -3
- package/dist/cards/Card.svelte.d.ts.map +1 -1
- package/dist/darkmode/DarkMode.svelte.d.ts +1 -1
- package/dist/forms/Input.svelte.d.ts +2 -2
- package/dist/forms/Input.svelte.d.ts.map +1 -1
- package/dist/forms/Range.svelte.d.ts +1 -1
- package/dist/forms/Select.svelte.d.ts +1 -1
- package/dist/indicators/Indicator.svelte.d.ts +4 -3
- package/dist/indicators/Indicator.svelte.d.ts.map +1 -1
- package/dist/list-group/Listgroup.svelte.d.ts +241 -2
- package/dist/list-group/Listgroup.svelte.d.ts.map +1 -1
- package/dist/modals/Modal.svelte.d.ts +241 -3
- package/dist/modals/Modal.svelte.d.ts.map +1 -1
- package/dist/navbar/Navbar.svelte +5 -2
- package/dist/navbar/Navbar.svelte.d.ts +241 -2
- package/dist/navbar/Navbar.svelte.d.ts.map +1 -1
- package/dist/popover/Popover.svelte +12 -12
- package/dist/popover/Popover.svelte.d.ts +249 -1
- package/dist/popover/Popover.svelte.d.ts.map +1 -1
- package/dist/ratings/Rating.svelte +5 -3
- package/dist/ratings/Rating.svelte.d.ts +2 -0
- package/dist/ratings/Rating.svelte.d.ts.map +1 -1
- package/dist/speed-dial/SpeedDial.svelte +2 -1
- package/dist/speed-dial/SpeedDial.svelte.d.ts +3 -2
- package/dist/speed-dial/SpeedDial.svelte.d.ts.map +1 -1
- package/dist/speed-dial/SpeedDialButton.svelte +7 -4
- package/dist/speed-dial/SpeedDialButton.svelte.d.ts +4 -1
- package/dist/speed-dial/SpeedDialButton.svelte.d.ts.map +1 -1
- package/dist/tables/Table.svelte.d.ts +2 -1
- package/dist/tables/Table.svelte.d.ts.map +1 -1
- package/dist/tables/TableBodyRow.svelte.d.ts +1 -1
- package/dist/tables/TableSearch.svelte.d.ts +1 -1
- package/dist/timeline/Timeline.svelte.d.ts +1 -1
- package/dist/timeline/TimelineItem.svelte +2 -1
- package/dist/timeline/TimelineItem.svelte.d.ts.map +1 -1
- package/dist/toasts/Toast.svelte +5 -2
- package/dist/toasts/Toast.svelte.d.ts +241 -3
- package/dist/toasts/Toast.svelte.d.ts.map +1 -1
- package/dist/toolbar/Toolbar.svelte +1 -1
- package/dist/toolbar/Toolbar.svelte.d.ts +242 -3
- package/dist/toolbar/Toolbar.svelte.d.ts.map +1 -1
- package/dist/toolbar/ToolbarButton.svelte.d.ts +3 -2
- package/dist/toolbar/ToolbarButton.svelte.d.ts.map +1 -1
- package/dist/tooltips/Tooltip.svelte +5 -5
- package/dist/tooltips/Tooltip.svelte.d.ts +250 -2
- package/dist/tooltips/Tooltip.svelte.d.ts.map +1 -1
- package/dist/types.d.ts +12 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/typography/Blockquote.svelte +1 -1
- package/dist/typography/Blockquote.svelte.d.ts +2 -1
- package/dist/typography/Blockquote.svelte.d.ts.map +1 -1
- package/dist/typography/List.svelte +2 -6
- package/dist/typography/List.svelte.d.ts +1 -5
- package/dist/typography/List.svelte.d.ts.map +1 -1
- package/dist/typography/P.svelte.d.ts +4 -3
- package/dist/typography/P.svelte.d.ts.map +1 -1
- package/dist/utils/Frame.svelte +1 -0
- package/dist/utils/Frame.svelte.d.ts +233 -3
- package/dist/utils/Frame.svelte.d.ts.map +1 -1
- package/dist/utils/Popper.svelte +14 -2
- package/dist/utils/Popper.svelte.d.ts +241 -1
- package/dist/utils/Popper.svelte.d.ts.map +1 -1
- package/dist/utils/createEventDispatcher.d.ts +1 -1
- package/dist/utils/createEventDispatcher.d.ts.map +1 -1
- package/dist/utils/createEventDispatcher.js +11 -13
- package/dist/utils/focusTrap.d.ts +1 -3
- package/dist/utils/focusTrap.d.ts.map +1 -1
- package/dist/utils/focusTrap.js +4 -1
- package/package.json +15 -19
- package/dist/alert/Alert.svelte +0 -48
- package/dist/alert/Alert.svelte.d.ts +0 -34
- package/dist/alert/Alert.svelte.d.ts.map +0 -1
- package/dist/typography/Ul.svelte +0 -20
- package/dist/typography/Ul.svelte.d.ts +0 -22
- package/dist/typography/Ul.svelte.d.ts.map +0 -1
package/dist/types.d.ts
CHANGED
|
@@ -1,13 +1,23 @@
|
|
|
1
1
|
import type { SvelteComponent } from 'svelte';
|
|
2
|
+
export type BlockQuoteType = 'xs' | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | '8xl' | '9xl';
|
|
2
3
|
export type ButtonType = 'button' | 'submit' | 'reset';
|
|
3
|
-
export type
|
|
4
|
+
export type ButtonColorType = 'alternative' | 'blue' | 'cyan' | 'dark' | 'light' | 'lime' | 'green' | 'pink' | 'primary' | 'red' | 'teal' | 'yellow' | 'purple' | 'purpleToBlue' | 'cyanToBlue' | 'greenToBlue' | 'purpleToPink' | 'pinkToOrange' | 'tealToLime' | 'redToYellow';
|
|
5
|
+
export type Colors = 'blue' | 'gray' | 'red' | 'yellow' | 'purple' | 'green' | 'indigo' | 'pink' | 'white' | 'custom' | 'primary' | 'secondary';
|
|
4
6
|
export type ImgType = {
|
|
5
7
|
src: string;
|
|
6
8
|
alt?: string;
|
|
7
9
|
};
|
|
10
|
+
export type IndicatorColorType = 'gray' | 'dark' | 'blue' | 'green' | 'red' | 'purple' | 'indigo' | 'yellow' | 'teal' | 'none';
|
|
11
|
+
export type IndicatorPlacementType = 'top-left' | 'top-center' | 'top-right' | 'center-left' | 'center' | 'center-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | undefined;
|
|
8
12
|
export type InputType = 'color' | 'date' | 'datetime-local' | 'email' | 'file' | 'hidden' | 'image' | 'month' | 'number' | 'password' | 'reset' | 'submit' | 'tel' | 'text' | 'time' | 'url' | 'week' | 'search';
|
|
9
13
|
export type drawerTransitionTypes = 'fade' | 'fly' | 'slide' | 'blur' | 'in:fly' | 'out:fly' | 'in:slide' | 'out:slide' | 'in:fade' | 'out:fade' | 'in:blur' | 'out:blur' | undefined;
|
|
10
|
-
export type FormColorType = 'blue' | 'red' | 'green' | 'purple' | 'teal' | 'yellow' | 'orange';
|
|
14
|
+
export type FormColorType = 'blue' | 'red' | 'green' | 'purple' | 'teal' | 'yellow' | 'orange' | 'primary' | 'secondary';
|
|
15
|
+
export type ModalPlacementType = 'top-left' | 'top-center' | 'top-right' | 'center-left' | 'center' | 'center-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
|
16
|
+
export type PsizeType = 'xs' | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | '8xl' | '9xl';
|
|
17
|
+
export type PweightType = 'thin' | 'extralight' | 'light' | 'normal' | 'medium' | 'semibold' | 'bold' | 'extrabold' | 'black';
|
|
18
|
+
export type TableColorType = 'blue' | 'green' | 'red' | 'yellow' | 'purple' | 'indigo' | 'pink' | 'default' | 'custom';
|
|
19
|
+
export type ToolbarColorType = 'gray' | 'red' | 'yellow' | 'green' | 'indigo' | 'purple' | 'pink' | 'blue' | 'dark' | 'none';
|
|
20
|
+
export type ToolbarButtonType = 'dark' | 'default' | 'gray' | 'red' | 'yellow' | 'green' | 'indigo' | 'purple' | 'pink' | 'blue';
|
|
11
21
|
export declare const xs = "xs";
|
|
12
22
|
export declare const sm = "sm";
|
|
13
23
|
export declare const md = "md";
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAE9C,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEvD,MAAM,MAAM,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAE9C,MAAM,MAAM,cAAc,GAAK,IAAI,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AAElI,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEvD,MAAM,MAAM,eAAe,GAAK,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,cAAc,GAAG,YAAY,GAAG,aAAa,GAAG,cAAc,GAAG,cAAc,GAAG,YAAY,GAAG,aAAa,CAAC;AAEnR,MAAM,MAAM,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,Q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
8
|
export let alignment = 'left';
|
|
9
|
+
export let size = 'lg';
|
|
9
10
|
let alignmentClasses = {
|
|
10
11
|
left: 'text-left',
|
|
11
12
|
center: 'text-center',
|
|
12
13
|
right: 'text-right'
|
|
13
14
|
};
|
|
14
|
-
export let size = 'lg';
|
|
15
15
|
const sizes = {
|
|
16
16
|
xs: 'text-xs',
|
|
17
17
|
sm: 'text-sm',
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import type { BlockQuoteType } from '../types';
|
|
2
3
|
declare const __propDef: {
|
|
3
4
|
props: {
|
|
4
5
|
[x: string]: any;
|
|
@@ -9,7 +10,7 @@ declare const __propDef: {
|
|
|
9
10
|
bg?: boolean | undefined;
|
|
10
11
|
baseClass?: string | undefined;
|
|
11
12
|
alignment?: "center" | "left" | "right" | undefined;
|
|
12
|
-
size?:
|
|
13
|
+
size?: BlockQuoteType | undefined;
|
|
13
14
|
};
|
|
14
15
|
events: {
|
|
15
16
|
[evt: string]: CustomEvent<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Blockquote.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/typography/Blockquote.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;
|
|
1
|
+
{"version":3,"file":"Blockquote.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/typography/Blockquote.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAED,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAkD/C,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;CAA+D,CAAC;AAC/E,MAAM,MAAM,eAAe,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AACrD,MAAM,MAAM,gBAAgB,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACvD,MAAM,MAAM,eAAe,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAErD,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,oBAAoB,CAAC,eAAe,EAAE,gBAAgB,EAAE,eAAe,CAAC;CAC/G"}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
<script>import classNames from 'classnames';
|
|
2
2
|
export let tag = 'ul';
|
|
3
|
-
export let list =
|
|
3
|
+
export let list = undefined;
|
|
4
4
|
export let position = 'inside';
|
|
5
|
-
export let color = 'text-gray-500 dark:text-gray-400';
|
|
6
|
-
export let olClass = 'list-decimal list-inside';
|
|
7
|
-
export let ulClass = 'max-w-md';
|
|
8
|
-
export let dlClass = 'max-w-md divide-y divide-gray-200 dark:divide-gray-700';
|
|
9
5
|
let lists = {
|
|
10
6
|
disc: 'list-disc',
|
|
11
7
|
none: 'list-none',
|
|
@@ -15,7 +11,7 @@ let positions = {
|
|
|
15
11
|
inside: 'list-inside',
|
|
16
12
|
outside: 'list-outside'
|
|
17
13
|
};
|
|
18
|
-
let classList = classNames(
|
|
14
|
+
let classList = classNames(lists[list ?? (tag === 'ul' ? 'disc' : 'ol' ? 'decimal' : 'none')], positions[position], $$props.class);
|
|
19
15
|
</script>
|
|
20
16
|
|
|
21
17
|
<svelte:element this={tag} {...$$restProps} class={classList}>
|
|
@@ -3,12 +3,8 @@ declare const __propDef: {
|
|
|
3
3
|
props: {
|
|
4
4
|
[x: string]: any;
|
|
5
5
|
tag?: "ol" | "dl" | "ul" | undefined;
|
|
6
|
-
list?:
|
|
6
|
+
list?: 'disc' | 'none' | 'decimal' | undefined;
|
|
7
7
|
position?: "inside" | "outside" | undefined;
|
|
8
|
-
color?: string | undefined;
|
|
9
|
-
olClass?: string | undefined;
|
|
10
|
-
ulClass?: string | undefined;
|
|
11
|
-
dlClass?: string | undefined;
|
|
12
8
|
};
|
|
13
9
|
events: {
|
|
14
10
|
[evt: string]: CustomEvent<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"List.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/typography/List.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;
|
|
1
|
+
{"version":3,"file":"List.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/typography/List.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAkCD,QAAA,MAAM,SAAS;;;;eADmF,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS;;;;;;;;;CAC3D,CAAC;AAC/E,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAC/C,MAAM,MAAM,UAAU,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACjD,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAE/C,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,oBAAoB,CAAC,SAAS,EAAE,UAAU,EAAE,SAAS,CAAC;CACvF"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import type { PsizeType, PweightType } from '../types';
|
|
2
3
|
declare const __propDef: {
|
|
3
4
|
props: {
|
|
4
5
|
[x: string]: any;
|
|
@@ -10,10 +11,10 @@ declare const __propDef: {
|
|
|
10
11
|
firstupper?: boolean | undefined;
|
|
11
12
|
upperClass?: string | undefined;
|
|
12
13
|
opacity?: number | undefined;
|
|
13
|
-
whitespace?: "
|
|
14
|
-
size?:
|
|
14
|
+
whitespace?: "normal" | "pre" | "nowrap" | "preline" | "prewrap" | undefined;
|
|
15
|
+
size?: PsizeType | undefined;
|
|
15
16
|
space?: 'tighter' | 'tight' | 'normal' | 'wide' | 'wider' | 'widest' | undefined;
|
|
16
|
-
weight?:
|
|
17
|
+
weight?: PweightType | undefined;
|
|
17
18
|
};
|
|
18
19
|
events: {
|
|
19
20
|
[evt: string]: CustomEvent<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"P.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/typography/P.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;
|
|
1
|
+
{"version":3,"file":"P.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/typography/P.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAED,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAqGvD,QAAA,MAAM,SAAS;;;;;;;;;;kBAD2Z,MAAM,GAAG,SAAS;;;gBAA8F,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS;;;;;;;;;CACphB,CAAC;AAC/E,MAAM,MAAM,MAAM,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAC5C,MAAM,MAAM,OAAO,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AAC9C,MAAM,MAAM,MAAM,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAE5C,MAAM,CAAC,OAAO,OAAO,CAAE,SAAQ,oBAAoB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC;CAC3E"}
|
package/dist/utils/Frame.svelte
CHANGED
|
@@ -3,9 +3,239 @@ import type { Action } from 'svelte/action';
|
|
|
3
3
|
import type { TransitionConfig } from 'svelte/transition';
|
|
4
4
|
declare const __propDef: {
|
|
5
5
|
props: {
|
|
6
|
-
|
|
6
|
+
download?: any;
|
|
7
|
+
href?: string | null | undefined;
|
|
8
|
+
hreflang?: string | null | undefined;
|
|
9
|
+
media?: string | null | undefined;
|
|
10
|
+
ping?: string | null | undefined;
|
|
11
|
+
rel?: string | null | undefined;
|
|
12
|
+
target?: import("svelte/elements").HTMLAttributeAnchorTarget | null | undefined;
|
|
13
|
+
type?: string | null | undefined;
|
|
14
|
+
referrerpolicy?: ReferrerPolicy | null | undefined;
|
|
15
|
+
'sapper:noscroll'?: true | null | undefined;
|
|
16
|
+
'sapper:prefetch'?: true | null | undefined;
|
|
17
|
+
accesskey?: string | null | undefined;
|
|
18
|
+
autofocus?: boolean | null | undefined;
|
|
19
|
+
class?: string | undefined;
|
|
20
|
+
contenteditable?: import("svelte/elements").Booleanish | "inherit" | null | undefined;
|
|
21
|
+
contextmenu?: string | null | undefined;
|
|
22
|
+
dir?: string | null | undefined;
|
|
23
|
+
draggable?: import("svelte/elements").Booleanish | null | undefined;
|
|
24
|
+
enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | null | undefined;
|
|
25
|
+
hidden?: boolean | null | undefined;
|
|
26
|
+
id?: string | null | undefined;
|
|
27
|
+
lang?: string | null | undefined;
|
|
28
|
+
part?: string | null | undefined;
|
|
29
|
+
placeholder?: string | null | undefined;
|
|
30
|
+
slot?: string | null | undefined;
|
|
31
|
+
spellcheck?: import("svelte/elements").Booleanish | null | undefined;
|
|
32
|
+
style?: string | null | undefined;
|
|
33
|
+
tabindex?: number | null | undefined;
|
|
34
|
+
title?: string | null | undefined;
|
|
35
|
+
translate?: "" | "yes" | "no" | null | undefined;
|
|
36
|
+
inert?: boolean | null | undefined;
|
|
37
|
+
radiogroup?: string | null | undefined;
|
|
38
|
+
role?: import("svelte/elements").AriaRole | null | undefined;
|
|
39
|
+
about?: string | null | undefined;
|
|
40
|
+
datatype?: string | null | undefined;
|
|
41
|
+
inlist?: any;
|
|
42
|
+
prefix?: string | null | undefined;
|
|
43
|
+
property?: string | null | undefined;
|
|
44
|
+
resource?: string | null | undefined;
|
|
45
|
+
typeof?: string | null | undefined;
|
|
46
|
+
vocab?: string | null | undefined;
|
|
47
|
+
autocapitalize?: string | null | undefined;
|
|
48
|
+
autocorrect?: string | null | undefined;
|
|
49
|
+
autosave?: string | null | undefined;
|
|
50
|
+
color?: "gray" | "red" | "yellow" | "green" | "indigo" | "purple" | "pink" | "blue" | "light" | "dark" | "default" | "dropdown" | "navbar" | "navbarUl" | "form" | "primary" | "none" | undefined;
|
|
51
|
+
itemprop?: string | null | undefined;
|
|
52
|
+
itemscope?: boolean | null | undefined;
|
|
53
|
+
itemtype?: string | null | undefined;
|
|
54
|
+
itemid?: string | null | undefined;
|
|
55
|
+
itemref?: string | null | undefined;
|
|
56
|
+
results?: number | null | undefined;
|
|
57
|
+
security?: string | null | undefined;
|
|
58
|
+
unselectable?: "on" | "off" | null | undefined;
|
|
59
|
+
inputmode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | null | undefined;
|
|
60
|
+
is?: string | null | undefined;
|
|
61
|
+
'bind:innerHTML'?: string | null | undefined;
|
|
62
|
+
'bind:textContent'?: string | null | undefined;
|
|
63
|
+
'bind:innerText'?: string | null | undefined;
|
|
64
|
+
'bind:contentRect'?: DOMRectReadOnly | null | undefined;
|
|
65
|
+
'bind:contentBoxSize'?: {
|
|
66
|
+
blockSize: number;
|
|
67
|
+
inlineSize: number;
|
|
68
|
+
}[] | null | undefined;
|
|
69
|
+
'bind:borderBoxSize'?: {
|
|
70
|
+
blockSize: number;
|
|
71
|
+
inlineSize: number;
|
|
72
|
+
}[] | null | undefined;
|
|
73
|
+
'bind:devicePixelContentBoxSize'?: {
|
|
74
|
+
blockSize: number;
|
|
75
|
+
inlineSize: number;
|
|
76
|
+
}[] | null | undefined;
|
|
77
|
+
'data-sveltekit-keepfocus'?: true | "" | "off" | null | undefined;
|
|
78
|
+
'data-sveltekit-noscroll'?: true | "" | "off" | null | undefined;
|
|
79
|
+
'data-sveltekit-preload-code'?: true | "" | "off" | "eager" | "viewport" | "hover" | "tap" | null | undefined;
|
|
80
|
+
'data-sveltekit-preload-data'?: true | "" | "off" | "hover" | "tap" | null | undefined;
|
|
81
|
+
'data-sveltekit-reload'?: true | "" | "off" | null | undefined;
|
|
82
|
+
'data-sveltekit-replacestate'?: true | "" | "off" | null | undefined;
|
|
83
|
+
'aria-activedescendant'?: string | null | undefined;
|
|
84
|
+
'aria-atomic'?: import("svelte/elements").Booleanish | null | undefined;
|
|
85
|
+
'aria-autocomplete'?: "none" | "list" | "inline" | "both" | null | undefined;
|
|
86
|
+
'aria-busy'?: import("svelte/elements").Booleanish | null | undefined;
|
|
87
|
+
'aria-checked'?: boolean | "true" | "false" | "mixed" | null | undefined;
|
|
88
|
+
'aria-colcount'?: number | null | undefined;
|
|
89
|
+
'aria-colindex'?: number | null | undefined;
|
|
90
|
+
'aria-colspan'?: number | null | undefined;
|
|
91
|
+
'aria-controls'?: string | null | undefined;
|
|
92
|
+
'aria-current'?: import("svelte/elements").Booleanish | "page" | "step" | "location" | "date" | "time" | null | undefined;
|
|
93
|
+
'aria-describedby'?: string | null | undefined;
|
|
94
|
+
'aria-details'?: string | null | undefined;
|
|
95
|
+
'aria-disabled'?: import("svelte/elements").Booleanish | null | undefined;
|
|
96
|
+
'aria-dropeffect'?: "none" | "copy" | "link" | "execute" | "move" | "popup" | null | undefined;
|
|
97
|
+
'aria-errormessage'?: string | null | undefined;
|
|
98
|
+
'aria-expanded'?: import("svelte/elements").Booleanish | null | undefined;
|
|
99
|
+
'aria-flowto'?: string | null | undefined;
|
|
100
|
+
'aria-grabbed'?: import("svelte/elements").Booleanish | null | undefined;
|
|
101
|
+
'aria-haspopup'?: import("svelte/elements").Booleanish | "dialog" | "grid" | "listbox" | "menu" | "tree" | null | undefined;
|
|
102
|
+
'aria-hidden'?: import("svelte/elements").Booleanish | null | undefined;
|
|
103
|
+
'aria-invalid'?: import("svelte/elements").Booleanish | "grammar" | "spelling" | null | undefined;
|
|
104
|
+
'aria-keyshortcuts'?: string | null | undefined;
|
|
105
|
+
'aria-label'?: string | null | undefined;
|
|
106
|
+
'aria-labelledby'?: string | null | undefined;
|
|
107
|
+
'aria-level'?: number | null | undefined;
|
|
108
|
+
'aria-live'?: "off" | "assertive" | "polite" | null | undefined;
|
|
109
|
+
'aria-modal'?: import("svelte/elements").Booleanish | null | undefined;
|
|
110
|
+
'aria-multiline'?: import("svelte/elements").Booleanish | null | undefined;
|
|
111
|
+
'aria-multiselectable'?: import("svelte/elements").Booleanish | null | undefined;
|
|
112
|
+
'aria-orientation'?: "horizontal" | "vertical" | null | undefined;
|
|
113
|
+
'aria-owns'?: string | null | undefined;
|
|
114
|
+
'aria-placeholder'?: string | null | undefined;
|
|
115
|
+
'aria-posinset'?: number | null | undefined;
|
|
116
|
+
'aria-pressed'?: boolean | "true" | "false" | "mixed" | null | undefined;
|
|
117
|
+
'aria-readonly'?: import("svelte/elements").Booleanish | null | undefined;
|
|
118
|
+
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | null | undefined;
|
|
119
|
+
'aria-required'?: import("svelte/elements").Booleanish | null | undefined;
|
|
120
|
+
'aria-roledescription'?: string | null | undefined;
|
|
121
|
+
'aria-rowcount'?: number | null | undefined;
|
|
122
|
+
'aria-rowindex'?: number | null | undefined;
|
|
123
|
+
'aria-rowspan'?: number | null | undefined;
|
|
124
|
+
'aria-selected'?: import("svelte/elements").Booleanish | null | undefined;
|
|
125
|
+
'aria-setsize'?: number | null | undefined;
|
|
126
|
+
'aria-sort'?: "none" | "ascending" | "descending" | "other" | null | undefined;
|
|
127
|
+
'aria-valuemax'?: number | null | undefined;
|
|
128
|
+
'aria-valuemin'?: number | null | undefined;
|
|
129
|
+
'aria-valuenow'?: number | null | undefined;
|
|
130
|
+
'aria-valuetext'?: string | null | undefined;
|
|
131
|
+
'on:copy'?: import("svelte/elements").ClipboardEventHandler<HTMLAnchorElement> | null | undefined;
|
|
132
|
+
'on:cut'?: import("svelte/elements").ClipboardEventHandler<HTMLAnchorElement> | null | undefined;
|
|
133
|
+
'on:paste'?: import("svelte/elements").ClipboardEventHandler<HTMLAnchorElement> | null | undefined;
|
|
134
|
+
'on:compositionend'?: import("svelte/elements").CompositionEventHandler<HTMLAnchorElement> | null | undefined;
|
|
135
|
+
'on:compositionstart'?: import("svelte/elements").CompositionEventHandler<HTMLAnchorElement> | null | undefined;
|
|
136
|
+
'on:compositionupdate'?: import("svelte/elements").CompositionEventHandler<HTMLAnchorElement> | null | undefined;
|
|
137
|
+
'on:focus'?: import("svelte/elements").FocusEventHandler<HTMLAnchorElement> | null | undefined;
|
|
138
|
+
'on:focusin'?: import("svelte/elements").FocusEventHandler<HTMLAnchorElement> | null | undefined;
|
|
139
|
+
'on:focusout'?: import("svelte/elements").FocusEventHandler<HTMLAnchorElement> | null | undefined;
|
|
140
|
+
'on:blur'?: import("svelte/elements").FocusEventHandler<HTMLAnchorElement> | null | undefined;
|
|
141
|
+
'on:change'?: import("svelte/elements").FormEventHandler<HTMLAnchorElement> | null | undefined;
|
|
142
|
+
'on:beforeinput'?: import("svelte/elements").EventHandler<InputEvent, HTMLAnchorElement> | null | undefined;
|
|
143
|
+
'on:input'?: import("svelte/elements").FormEventHandler<HTMLAnchorElement> | null | undefined;
|
|
144
|
+
'on:reset'?: import("svelte/elements").FormEventHandler<HTMLAnchorElement> | null | undefined;
|
|
145
|
+
'on:submit'?: import("svelte/elements").EventHandler<Event & {
|
|
146
|
+
readonly submitter: HTMLElement | null;
|
|
147
|
+
}, HTMLAnchorElement> | null | undefined;
|
|
148
|
+
'on:invalid'?: import("svelte/elements").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
149
|
+
'on:formdata'?: import("svelte/elements").EventHandler<Event & {
|
|
150
|
+
readonly formData: FormData;
|
|
151
|
+
}, HTMLAnchorElement> | null | undefined;
|
|
152
|
+
'on:load'?: import("svelte/elements").EventHandler<Event, Element> | null | undefined;
|
|
153
|
+
'on:error'?: import("svelte/elements").EventHandler<Event, Element> | null | undefined;
|
|
154
|
+
'on:toggle'?: import("svelte/elements").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
155
|
+
'on:keydown'?: import("svelte/elements").KeyboardEventHandler<HTMLAnchorElement> | null | undefined;
|
|
156
|
+
'on:keypress'?: import("svelte/elements").KeyboardEventHandler<HTMLAnchorElement> | null | undefined;
|
|
157
|
+
'on:keyup'?: import("svelte/elements").KeyboardEventHandler<HTMLAnchorElement> | null | undefined;
|
|
158
|
+
'on:abort'?: import("svelte/elements").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
159
|
+
'on:canplay'?: import("svelte/elements").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
160
|
+
'on:canplaythrough'?: import("svelte/elements").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
161
|
+
'on:cuechange'?: import("svelte/elements").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
162
|
+
'on:durationchange'?: import("svelte/elements").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
163
|
+
'on:emptied'?: import("svelte/elements").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
164
|
+
'on:encrypted'?: import("svelte/elements").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
165
|
+
'on:ended'?: import("svelte/elements").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
166
|
+
'on:loadeddata'?: import("svelte/elements").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
167
|
+
'on:loadedmetadata'?: import("svelte/elements").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
168
|
+
'on:loadstart'?: import("svelte/elements").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
169
|
+
'on:pause'?: import("svelte/elements").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
170
|
+
'on:play'?: import("svelte/elements").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
171
|
+
'on:playing'?: import("svelte/elements").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
172
|
+
'on:progress'?: import("svelte/elements").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
173
|
+
'on:ratechange'?: import("svelte/elements").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
174
|
+
'on:seeked'?: import("svelte/elements").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
175
|
+
'on:seeking'?: import("svelte/elements").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
176
|
+
'on:stalled'?: import("svelte/elements").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
177
|
+
'on:suspend'?: import("svelte/elements").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
178
|
+
'on:timeupdate'?: import("svelte/elements").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
179
|
+
'on:volumechange'?: import("svelte/elements").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
180
|
+
'on:waiting'?: import("svelte/elements").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
181
|
+
'on:auxclick'?: import("svelte/elements").MouseEventHandler<HTMLAnchorElement> | null | undefined;
|
|
182
|
+
'on:click'?: import("svelte/elements").MouseEventHandler<HTMLAnchorElement> | null | undefined;
|
|
183
|
+
'on:contextmenu'?: import("svelte/elements").MouseEventHandler<HTMLAnchorElement> | null | undefined;
|
|
184
|
+
'on:dblclick'?: import("svelte/elements").MouseEventHandler<HTMLAnchorElement> | null | undefined;
|
|
185
|
+
'on:drag'?: import("svelte/elements").DragEventHandler<HTMLAnchorElement> | null | undefined;
|
|
186
|
+
'on:dragend'?: import("svelte/elements").DragEventHandler<HTMLAnchorElement> | null | undefined;
|
|
187
|
+
'on:dragenter'?: import("svelte/elements").DragEventHandler<HTMLAnchorElement> | null | undefined;
|
|
188
|
+
'on:dragexit'?: import("svelte/elements").DragEventHandler<HTMLAnchorElement> | null | undefined;
|
|
189
|
+
'on:dragleave'?: import("svelte/elements").DragEventHandler<HTMLAnchorElement> | null | undefined;
|
|
190
|
+
'on:dragover'?: import("svelte/elements").DragEventHandler<HTMLAnchorElement> | null | undefined;
|
|
191
|
+
'on:dragstart'?: import("svelte/elements").DragEventHandler<HTMLAnchorElement> | null | undefined;
|
|
192
|
+
'on:drop'?: import("svelte/elements").DragEventHandler<HTMLAnchorElement> | null | undefined;
|
|
193
|
+
'on:mousedown'?: import("svelte/elements").MouseEventHandler<HTMLAnchorElement> | null | undefined;
|
|
194
|
+
'on:mouseenter'?: import("svelte/elements").MouseEventHandler<HTMLAnchorElement> | null | undefined;
|
|
195
|
+
'on:mouseleave'?: import("svelte/elements").MouseEventHandler<HTMLAnchorElement> | null | undefined;
|
|
196
|
+
'on:mousemove'?: import("svelte/elements").MouseEventHandler<HTMLAnchorElement> | null | undefined;
|
|
197
|
+
'on:mouseout'?: import("svelte/elements").MouseEventHandler<HTMLAnchorElement> | null | undefined;
|
|
198
|
+
'on:mouseover'?: import("svelte/elements").MouseEventHandler<HTMLAnchorElement> | null | undefined;
|
|
199
|
+
'on:mouseup'?: import("svelte/elements").MouseEventHandler<HTMLAnchorElement> | null | undefined;
|
|
200
|
+
'on:select'?: import("svelte/elements").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
201
|
+
'on:selectionchange'?: import("svelte/elements").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
202
|
+
'on:selectstart'?: import("svelte/elements").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
203
|
+
'on:touchcancel'?: import("svelte/elements").TouchEventHandler<HTMLAnchorElement> | null | undefined;
|
|
204
|
+
'on:touchend'?: import("svelte/elements").TouchEventHandler<HTMLAnchorElement> | null | undefined;
|
|
205
|
+
'on:touchmove'?: import("svelte/elements").TouchEventHandler<HTMLAnchorElement> | null | undefined;
|
|
206
|
+
'on:touchstart'?: import("svelte/elements").TouchEventHandler<HTMLAnchorElement> | null | undefined;
|
|
207
|
+
'on:gotpointercapture'?: import("svelte/elements").PointerEventHandler<HTMLAnchorElement> | null | undefined;
|
|
208
|
+
'on:pointercancel'?: import("svelte/elements").PointerEventHandler<HTMLAnchorElement> | null | undefined;
|
|
209
|
+
'on:pointerdown'?: import("svelte/elements").PointerEventHandler<HTMLAnchorElement> | null | undefined;
|
|
210
|
+
'on:pointerenter'?: import("svelte/elements").PointerEventHandler<HTMLAnchorElement> | null | undefined;
|
|
211
|
+
'on:pointerleave'?: import("svelte/elements").PointerEventHandler<HTMLAnchorElement> | null | undefined;
|
|
212
|
+
'on:pointermove'?: import("svelte/elements").PointerEventHandler<HTMLAnchorElement> | null | undefined;
|
|
213
|
+
'on:pointerout'?: import("svelte/elements").PointerEventHandler<HTMLAnchorElement> | null | undefined;
|
|
214
|
+
'on:pointerover'?: import("svelte/elements").PointerEventHandler<HTMLAnchorElement> | null | undefined;
|
|
215
|
+
'on:pointerup'?: import("svelte/elements").PointerEventHandler<HTMLAnchorElement> | null | undefined;
|
|
216
|
+
'on:lostpointercapture'?: import("svelte/elements").PointerEventHandler<HTMLAnchorElement> | null | undefined;
|
|
217
|
+
'on:scroll'?: import("svelte/elements").UIEventHandler<HTMLAnchorElement> | null | undefined;
|
|
218
|
+
'on:resize'?: import("svelte/elements").UIEventHandler<HTMLAnchorElement> | null | undefined;
|
|
219
|
+
'on:wheel'?: import("svelte/elements").WheelEventHandler<HTMLAnchorElement> | null | undefined;
|
|
220
|
+
'on:animationstart'?: import("svelte/elements").AnimationEventHandler<HTMLAnchorElement> | null | undefined;
|
|
221
|
+
'on:animationend'?: import("svelte/elements").AnimationEventHandler<HTMLAnchorElement> | null | undefined;
|
|
222
|
+
'on:animationiteration'?: import("svelte/elements").AnimationEventHandler<HTMLAnchorElement> | null | undefined;
|
|
223
|
+
'on:transitionstart'?: import("svelte/elements").TransitionEventHandler<HTMLAnchorElement> | null | undefined;
|
|
224
|
+
'on:transitionrun'?: import("svelte/elements").TransitionEventHandler<HTMLAnchorElement> | null | undefined;
|
|
225
|
+
'on:transitionend'?: import("svelte/elements").TransitionEventHandler<HTMLAnchorElement> | null | undefined;
|
|
226
|
+
'on:transitioncancel'?: import("svelte/elements").TransitionEventHandler<HTMLAnchorElement> | null | undefined;
|
|
227
|
+
'on:outrostart'?: import("svelte/elements").EventHandler<CustomEvent<null>, HTMLAnchorElement> | null | undefined;
|
|
228
|
+
'on:outroend'?: import("svelte/elements").EventHandler<CustomEvent<null>, HTMLAnchorElement> | null | undefined;
|
|
229
|
+
'on:introstart'?: import("svelte/elements").EventHandler<CustomEvent<null>, HTMLAnchorElement> | null | undefined;
|
|
230
|
+
'on:introend'?: import("svelte/elements").EventHandler<CustomEvent<null>, HTMLAnchorElement> | null | undefined;
|
|
231
|
+
'on:message'?: import("svelte/elements").MessageEventHandler<HTMLAnchorElement> | null | undefined;
|
|
232
|
+
'on:messageerror'?: import("svelte/elements").MessageEventHandler<HTMLAnchorElement> | null | undefined;
|
|
233
|
+
'on:visibilitychange'?: import("svelte/elements").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
234
|
+
'on:cancel'?: import("svelte/elements").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
235
|
+
'on:close'?: import("svelte/elements").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
236
|
+
'on:fullscreenchange'?: import("svelte/elements").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
237
|
+
'on:fullscreenerror'?: import("svelte/elements").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
7
238
|
tag?: string | undefined;
|
|
8
|
-
color?: "gray" | "red" | "yellow" | "green" | "indigo" | "default" | "purple" | "pink" | "blue" | "light" | "dark" | "dropdown" | "navbar" | "navbarUl" | "form" | "none" | undefined;
|
|
9
239
|
rounded?: boolean | undefined;
|
|
10
240
|
border?: boolean | undefined;
|
|
11
241
|
shadow?: boolean | undefined;
|
|
@@ -13,7 +243,7 @@ declare const __propDef: {
|
|
|
13
243
|
params?: object | undefined;
|
|
14
244
|
node?: HTMLElement | undefined;
|
|
15
245
|
use?: Action<HTMLElement, any, Record<never, any>> | undefined;
|
|
16
|
-
options?:
|
|
246
|
+
options?: object | undefined;
|
|
17
247
|
};
|
|
18
248
|
events: {
|
|
19
249
|
click: MouseEvent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Frame.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/Frame.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAKD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"Frame.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/Frame.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAKD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAuI1D,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BA3HgB,WAAW,UAAU,GAAG,KAAK,gBAAgB;;eAWjE,WAAW,GAAG,SAAS;;;;;;;;;;;;;;;;CAgHqB,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"}
|
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}
|
|
@@ -126,7 +132,7 @@ function optional(pred, func) {
|
|
|
126
132
|
use={init}
|
|
127
133
|
options={triggerEl}
|
|
128
134
|
role="tooltip"
|
|
129
|
-
|
|
135
|
+
tabindex={activeContent ? -1 : undefined}
|
|
130
136
|
on:focusin={optional(activeContent, showHandler)}
|
|
131
137
|
on:focusout={optional(activeContent, hideHandler)}
|
|
132
138
|
on:mouseenter={optional(activeContent && !clickable, showHandler)}
|
|
@@ -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}
|