@onsvisual/svelte-components 1.1.51 → 1.1.53
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/Button/Button.svelte +1 -1
- package/dist/components/Button/Button.svelte.d.ts +2 -2
- package/dist/components/Icon/Icon.svelte +9 -1
- package/dist/components/Icon/Icon.svelte.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.svelte +9 -3
- package/dist/components/Tooltip/Tooltip.svelte.d.ts +2 -2
- package/package.json +1 -1
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
export let small = false;
|
|
43
43
|
/**
|
|
44
44
|
* Icon on button, eg. "arrow", "search"
|
|
45
|
-
* @type {"arrow"|"carret"|"chevron"|"code"|"cog"|"copy"|"cross"|"delete"|"download"|"edit"|"expand"|"external"|"pin"|"print"|"save"|"saveas"|"search"|"shrink"|"signout"|"tick"|"upload"|null}
|
|
45
|
+
* @type {"arrow"|"carret"|"chevron"|"code"|"cog"|"copy"|"cross"|"delete"|"download"|"edit"|"expand"|"external"|"minus"|"pin"|"plus"|"print"|"save"|"saveas"|"search"|"shrink"|"signout"|"tick"|"upload"|null}
|
|
46
46
|
*/
|
|
47
47
|
export let icon = null;
|
|
48
48
|
/**
|
|
@@ -10,7 +10,7 @@ export default class Button extends SvelteComponentTyped<{
|
|
|
10
10
|
variant?: "primary" | "secondary" | "ghost" | undefined;
|
|
11
11
|
rel?: string | null | undefined;
|
|
12
12
|
noScroll?: boolean | undefined;
|
|
13
|
-
icon?: "code" | "search" | "copy" | "arrow" | "carret" | "chevron" | "cog" | "cross" | "delete" | "download" | "edit" | "expand" | "external" | "pin" | "print" | "save" | "saveas" | "shrink" | "signout" | "tick" | "upload" | null | undefined;
|
|
13
|
+
icon?: "code" | "search" | "copy" | "arrow" | "carret" | "chevron" | "cog" | "cross" | "delete" | "download" | "edit" | "expand" | "external" | "minus" | "pin" | "plus" | "print" | "save" | "saveas" | "shrink" | "signout" | "tick" | "upload" | null | undefined;
|
|
14
14
|
iconPosition?: "before" | "after" | undefined;
|
|
15
15
|
iconRotation?: number | undefined;
|
|
16
16
|
disabled?: boolean | undefined;
|
|
@@ -40,7 +40,7 @@ declare const __propDef: {
|
|
|
40
40
|
variant?: "primary" | "secondary" | "ghost" | undefined;
|
|
41
41
|
rel?: string | null | undefined;
|
|
42
42
|
noScroll?: boolean | undefined;
|
|
43
|
-
icon?: "code" | "search" | "copy" | "arrow" | "carret" | "chevron" | "cog" | "cross" | "delete" | "download" | "edit" | "expand" | "external" | "pin" | "print" | "save" | "saveas" | "shrink" | "signout" | "tick" | "upload" | null | undefined;
|
|
43
|
+
icon?: "code" | "search" | "copy" | "arrow" | "carret" | "chevron" | "cog" | "cross" | "delete" | "download" | "edit" | "expand" | "external" | "minus" | "pin" | "plus" | "print" | "save" | "saveas" | "shrink" | "signout" | "tick" | "upload" | null | undefined;
|
|
44
44
|
iconPosition?: "before" | "after" | undefined;
|
|
45
45
|
iconRotation?: number | undefined;
|
|
46
46
|
disabled?: boolean | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
/**
|
|
3
3
|
* Set the type of icon
|
|
4
|
-
* @type {"arrow"|"carret"|"chevron"|"code"|"cog"|"copy"|"cross"|"delete"|"download"|"edit"|"expand"|"external"|"pin"|"print"|"save"|"saveas"|"search"|"shrink"|"signout"|"tick"|"upload"}
|
|
4
|
+
* @type {"arrow"|"carret"|"chevron"|"code"|"cog"|"copy"|"cross"|"delete"|"download"|"edit"|"expand"|"external"|"minus"|"pin"|"plus"|"print"|"save"|"saveas"|"search"|"shrink"|"signout"|"tick"|"upload"}
|
|
5
5
|
*/
|
|
6
6
|
export let type = "arrow";
|
|
7
7
|
/**
|
|
@@ -84,6 +84,10 @@
|
|
|
84
84
|
d: "M13.5,9H13a.5.5,0,0,0-.5.5v3h-9v-9h3A.5.5,0,0,0,7,3V2.5A.5.5,0,0,0,6.5,2h-4a.5.5,0,0,0-.5.5v11a.5.5,0,0,0,.5.5h11a.5.5,0,0,0,.5-.5v-4A.5.5,0,0,0,13.5,9Z M8.83,7.88a.51.51,0,0,0,.71,0l2.31-2.32,1.28,1.28A.51.51,0,0,0,14,6.49v-4a.52.52,0,0,0-.5-.5h-4A.51.51,0,0,0,9,2.52a.58.58,0,0,0,.14.33l1.28,1.28L8.12,6.46a.51.51,0,0,0,0,.71Z",
|
|
85
85
|
viewBox: "2 2 12 12"
|
|
86
86
|
},
|
|
87
|
+
minus: {
|
|
88
|
+
d: "M19 13H5v-2h14z",
|
|
89
|
+
viewBox: "4 4 16 16"
|
|
90
|
+
},
|
|
87
91
|
pin: {
|
|
88
92
|
d: "M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5Z",
|
|
89
93
|
viewBox: "4 4 16 16"
|
|
@@ -92,6 +96,10 @@
|
|
|
92
96
|
d: "M17 4H3C1.3 4 0 5.2 0 6.8v5.5h4V16h12v-3.7h4V6.8C20 5.2 18.7 4 17 4zm-3 10H6V9h8v5zm3-6a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm-1-8H4v3h12V0z",
|
|
93
97
|
viewBox: "4 0 16 16"
|
|
94
98
|
},
|
|
99
|
+
plus: {
|
|
100
|
+
d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z",
|
|
101
|
+
viewBox: "4 4 16 16"
|
|
102
|
+
},
|
|
95
103
|
save: {
|
|
96
104
|
d: "M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z",
|
|
97
105
|
viewBox: "4 4 16 16"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} IconEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} IconSlots */
|
|
4
4
|
export default class Icon extends SvelteComponentTyped<{
|
|
5
|
-
type?: "code" | "search" | "copy" | "arrow" | "carret" | "chevron" | "cog" | "cross" | "delete" | "download" | "edit" | "expand" | "external" | "pin" | "print" | "save" | "saveas" | "shrink" | "signout" | "tick" | "upload" | undefined;
|
|
5
|
+
type?: "code" | "search" | "copy" | "arrow" | "carret" | "chevron" | "cog" | "cross" | "delete" | "download" | "edit" | "expand" | "external" | "minus" | "pin" | "plus" | "print" | "save" | "saveas" | "shrink" | "signout" | "tick" | "upload" | undefined;
|
|
6
6
|
size?: "s" | "m" | "l" | "xl" | "2xl" | "3xl" | null | undefined;
|
|
7
7
|
rotation?: number | undefined;
|
|
8
8
|
svgPath?: string | null | undefined;
|
|
@@ -19,7 +19,7 @@ export type IconSlots = typeof __propDef.slots;
|
|
|
19
19
|
import { SvelteComponentTyped } from "svelte";
|
|
20
20
|
declare const __propDef: {
|
|
21
21
|
props: {
|
|
22
|
-
type?: "code" | "search" | "copy" | "arrow" | "carret" | "chevron" | "cog" | "cross" | "delete" | "download" | "edit" | "expand" | "external" | "pin" | "print" | "save" | "saveas" | "shrink" | "signout" | "tick" | "upload" | undefined;
|
|
22
|
+
type?: "code" | "search" | "copy" | "arrow" | "carret" | "chevron" | "cog" | "cross" | "delete" | "download" | "edit" | "expand" | "external" | "minus" | "pin" | "plus" | "print" | "save" | "saveas" | "shrink" | "signout" | "tick" | "upload" | undefined;
|
|
23
23
|
size?: "s" | "m" | "l" | "xl" | "2xl" | "3xl" | null | undefined;
|
|
24
24
|
rotation?: number | undefined;
|
|
25
25
|
svgPath?: string | null | undefined;
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
export let width = null;
|
|
20
20
|
/**
|
|
21
21
|
* Set z-index of tooltip, to ensure it appears in front of other elements
|
|
22
|
-
* @type {number}
|
|
22
|
+
* @type {number|null}
|
|
23
23
|
*/
|
|
24
|
-
export let zIndex =
|
|
24
|
+
export let zIndex = null;
|
|
25
25
|
|
|
26
26
|
let wrapper, tooltip; // HTML element bindings
|
|
27
27
|
let showToolip = null;
|
|
@@ -85,7 +85,13 @@
|
|
|
85
85
|
<slot />
|
|
86
86
|
</div>
|
|
87
87
|
|
|
88
|
-
<div
|
|
88
|
+
<div
|
|
89
|
+
class="tooltip"
|
|
90
|
+
role="tooltip"
|
|
91
|
+
data-show={showToolip}
|
|
92
|
+
bind:this={tooltip}
|
|
93
|
+
style:z-index={zIndex}
|
|
94
|
+
>
|
|
89
95
|
{text}
|
|
90
96
|
<div class="tooltip-arrow" data-popper-arrow></div>
|
|
91
97
|
</div>
|
|
@@ -5,7 +5,7 @@ export default class Tooltip extends SvelteComponentTyped<{
|
|
|
5
5
|
width?: number | null | undefined;
|
|
6
6
|
text?: string | undefined;
|
|
7
7
|
position?: "top" | "bottom" | "left" | "right" | undefined;
|
|
8
|
-
zIndex?: number | undefined;
|
|
8
|
+
zIndex?: number | null | undefined;
|
|
9
9
|
}, {
|
|
10
10
|
[evt: string]: CustomEvent<any>;
|
|
11
11
|
}, {
|
|
@@ -21,7 +21,7 @@ declare const __propDef: {
|
|
|
21
21
|
width?: number | null | undefined;
|
|
22
22
|
text?: string | undefined;
|
|
23
23
|
position?: "top" | "bottom" | "left" | "right" | undefined;
|
|
24
|
-
zIndex?: number | undefined;
|
|
24
|
+
zIndex?: number | null | undefined;
|
|
25
25
|
};
|
|
26
26
|
events: {
|
|
27
27
|
[evt: string]: CustomEvent<any>;
|