flowbite-svelte 0.37.3 → 0.37.4
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.d.ts +1 -1
- package/dist/alerts/Alert.svelte.d.ts +1 -1
- package/dist/buttons/Button.svelte +1 -0
- package/dist/buttons/Button.svelte.d.ts.map +1 -1
- package/dist/cards/Card.svelte.d.ts +1 -1
- package/dist/carousels/Carousel.svelte +0 -2
- package/dist/carousels/Carousel.svelte.d.ts.map +1 -1
- package/dist/carousels/CarouselTransition.svelte +0 -2
- package/dist/carousels/CarouselTransition.svelte.d.ts.map +1 -1
- package/dist/carousels/Thumbnail.svelte +11 -10
- package/dist/carousels/Thumbnail.svelte.d.ts +1 -1
- package/dist/carousels/Thumbnail.svelte.d.ts.map +1 -1
- package/dist/dropdowns/DropdownItem.svelte +2 -1
- package/dist/forms/Dropzone.svelte +14 -13
- package/dist/forms/Dropzone.svelte.d.ts.map +1 -1
- package/dist/forms/FloatingLabelInput.svelte +1 -1
- package/dist/forms/FloatingLabelInput.svelte.d.ts +1 -1
- package/dist/forms/FloatingLabelInput.svelte.d.ts.map +1 -1
- package/dist/forms/Input.svelte +1 -1
- package/dist/forms/Search.svelte +1 -1
- package/dist/forms/Search.svelte.d.ts +1 -1
- package/dist/forms/Search.svelte.d.ts.map +1 -1
- package/dist/forms/Select.svelte +1 -1
- package/dist/forms/Select.svelte.d.ts +1 -1
- package/dist/forms/Select.svelte.d.ts.map +1 -1
- package/dist/forms/Textarea.svelte +1 -1
- package/dist/forms/Textarea.svelte.d.ts +1 -1
- package/dist/forms/Textarea.svelte.d.ts.map +1 -1
- package/dist/list-group/Listgroup.svelte.d.ts +1 -1
- package/dist/modals/Modal.svelte +1 -0
- package/dist/modals/Modal.svelte.d.ts +1 -1
- package/dist/navbar/Menu.svelte +2 -0
- package/dist/navbar/NavLi.svelte +1 -0
- package/dist/navbar/NavUl.svelte +1 -1
- package/dist/navbar/Navbar.svelte.d.ts +1 -1
- package/dist/paginations/PaginationItem.svelte +1 -0
- package/dist/paginations/PaginationItem.svelte.d.ts.map +1 -1
- package/dist/popover/Popover.svelte.d.ts +1 -1
- package/dist/ratings/Heart.svelte +2 -0
- package/dist/ratings/Heart.svelte.d.ts +1 -0
- package/dist/ratings/Heart.svelte.d.ts.map +1 -1
- package/dist/ratings/Star.svelte +2 -0
- package/dist/ratings/Star.svelte.d.ts +1 -0
- package/dist/ratings/Star.svelte.d.ts.map +1 -1
- package/dist/ratings/Thumbup.svelte +2 -0
- package/dist/ratings/Thumbup.svelte.d.ts +1 -0
- package/dist/ratings/Thumbup.svelte.d.ts.map +1 -1
- package/dist/tables/TableBodyCell.svelte +4 -9
- package/dist/tables/TableBodyCell.svelte.d.ts +0 -7
- package/dist/tables/TableBodyCell.svelte.d.ts.map +1 -1
- package/dist/toasts/Toast.svelte +34 -22
- package/dist/toasts/Toast.svelte.d.ts +5 -3
- package/dist/toasts/Toast.svelte.d.ts.map +1 -1
- package/dist/tooltips/Tooltip.svelte.d.ts +1 -1
- package/dist/utils/ChevronDown.svelte +2 -0
- package/dist/utils/ChevronDown.svelte.d.ts +1 -0
- package/dist/utils/ChevronDown.svelte.d.ts.map +1 -1
- package/dist/utils/ChevronLeft.svelte +2 -0
- package/dist/utils/ChevronLeft.svelte.d.ts +1 -0
- package/dist/utils/ChevronLeft.svelte.d.ts.map +1 -1
- package/dist/utils/ChevronRight.svelte +2 -0
- package/dist/utils/ChevronRight.svelte.d.ts +1 -0
- package/dist/utils/ChevronRight.svelte.d.ts.map +1 -1
- package/dist/utils/ChevronUp.svelte +2 -0
- package/dist/utils/ChevronUp.svelte.d.ts +1 -0
- package/dist/utils/ChevronUp.svelte.d.ts.map +1 -1
- package/dist/utils/Frame.svelte +3 -0
- package/dist/utils/Frame.svelte.d.ts +1 -1
- package/dist/utils/Frame.svelte.d.ts.map +1 -1
- package/dist/utils/InformationCircle.svelte +2 -0
- package/dist/utils/InformationCircle.svelte.d.ts +1 -0
- package/dist/utils/InformationCircle.svelte.d.ts.map +1 -1
- package/dist/utils/Popper.svelte.d.ts +1 -1
- package/dist/utils/UserCircle.svelte +2 -0
- package/dist/utils/UserCircle.svelte.d.ts +1 -0
- package/dist/utils/UserCircle.svelte.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -52,7 +52,7 @@ declare const __propDef: {
|
|
|
52
52
|
autocapitalize?: string | null | undefined;
|
|
53
53
|
autocorrect?: string | null | undefined;
|
|
54
54
|
autosave?: string | null | undefined;
|
|
55
|
-
color?: "gray" | "red" | "yellow" | "green" | "indigo" | "purple" | "pink" | "blue" | "light" | "dark" | "default" | "dropdown" | "navbar" | "navbarUl" | "form" | "primary" | "none" | undefined;
|
|
55
|
+
color?: "gray" | "red" | "yellow" | "green" | "indigo" | "purple" | "pink" | "blue" | "light" | "dark" | "default" | "dropdown" | "navbar" | "navbarUl" | "form" | "primary" | "orange" | "none" | undefined;
|
|
56
56
|
itemprop?: string | null | undefined;
|
|
57
57
|
itemscope?: boolean | null | undefined;
|
|
58
58
|
itemtype?: string | null | undefined;
|
|
@@ -45,7 +45,7 @@ declare const __propDef: {
|
|
|
45
45
|
autocapitalize?: string | null | undefined;
|
|
46
46
|
autocorrect?: string | null | undefined;
|
|
47
47
|
autosave?: string | null | undefined;
|
|
48
|
-
color?: "gray" | "red" | "yellow" | "green" | "indigo" | "purple" | "pink" | "blue" | "light" | "dark" | "default" | "dropdown" | "navbar" | "navbarUl" | "form" | "primary" | "none" | undefined;
|
|
48
|
+
color?: "gray" | "red" | "yellow" | "green" | "indigo" | "purple" | "pink" | "blue" | "light" | "dark" | "default" | "dropdown" | "navbar" | "navbarUl" | "form" | "primary" | "orange" | "none" | undefined;
|
|
49
49
|
itemprop?: string | null | undefined;
|
|
50
50
|
itemscope?: boolean | null | undefined;
|
|
51
51
|
itemtype?: string | null | undefined;
|
|
@@ -78,6 +78,7 @@ $: buttonClass = btnClass
|
|
|
78
78
|
: (pill && 'rounded-full') || 'rounded-lg', shadow && 'shadow-lg', shadow && coloredShadowClasses[color], $$props.disabled && 'cursor-not-allowed opacity-50', $$props.class);
|
|
79
79
|
</script>
|
|
80
80
|
|
|
81
|
+
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
81
82
|
<svelte:element
|
|
82
83
|
this={href ? 'a' : 'button'}
|
|
83
84
|
type={href ? undefined : type}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/buttons/Button.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAGD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/buttons/Button.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAGD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAgI3C,QAAA,MAAM,SAAS;;;;;;eADoN,MAAM,GAAG,SAAS;mBAAa,MAAM,GAAG,SAAS;;;;;;;;;;;;;;;;;;CACtM,CAAC;AAC/E,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,oBAAoB,CAAC,WAAW,EAAE,YAAY,EAAE,WAAW,CAAC;CAC/F"}
|
|
@@ -46,7 +46,7 @@ declare const __propDef: {
|
|
|
46
46
|
autocapitalize?: string | null | undefined;
|
|
47
47
|
autocorrect?: string | null | undefined;
|
|
48
48
|
autosave?: string | null | undefined;
|
|
49
|
-
color?: "gray" | "red" | "yellow" | "green" | "indigo" | "purple" | "pink" | "blue" | "light" | "dark" | "default" | "dropdown" | "navbar" | "navbarUl" | "form" | "primary" | "none" | undefined;
|
|
49
|
+
color?: "gray" | "red" | "yellow" | "green" | "indigo" | "purple" | "pink" | "blue" | "light" | "dark" | "default" | "dropdown" | "navbar" | "navbarUl" | "form" | "primary" | "orange" | "none" | undefined;
|
|
50
50
|
itemprop?: string | null | undefined;
|
|
51
51
|
itemscope?: boolean | null | undefined;
|
|
52
52
|
itemtype?: string | null | undefined;
|
|
@@ -37,7 +37,6 @@ const prevSlide = () => {
|
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
const goToSlide = (number) => (imageShowingIndex = number);
|
|
40
|
-
let thumbWidth = 100 / images.length;
|
|
41
40
|
if (loop) {
|
|
42
41
|
setInterval(() => {
|
|
43
42
|
nextSlide();
|
|
@@ -122,7 +121,6 @@ if (loop) {
|
|
|
122
121
|
<div class="flex flex-row justify-center bg-gray-100">
|
|
123
122
|
{#each images as { id, imgurl, name, attribution }}
|
|
124
123
|
<Thumbnail
|
|
125
|
-
{thumbWidth}
|
|
126
124
|
thumbImg={imgurl}
|
|
127
125
|
altTag={name}
|
|
128
126
|
titleLink={attribution}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Carousel.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/carousels/Carousel.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;
|
|
1
|
+
{"version":3,"file":"Carousel.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/carousels/Carousel.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AA+GD,QAAA,MAAM,SAAS;;;;;gBADiZ,GAAG,EAAE;;;;;;;;;;;;;;;;;CAC9W,CAAC;AACxD,MAAM,MAAM,aAAa,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AACnD,MAAM,MAAM,cAAc,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACrD,MAAM,MAAM,aAAa,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,oBAAoB,CAAC,aAAa,EAAE,cAAc,EAAE,aAAa,CAAC;CACvG"}
|
|
@@ -53,7 +53,6 @@ const prevSlide = () => {
|
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
55
|
const goToSlide = (number) => (imageShowingIndex = number);
|
|
56
|
-
let thumbWidth = 100 / images.length;
|
|
57
56
|
if (loop) {
|
|
58
57
|
setInterval(() => {
|
|
59
58
|
nextSlide();
|
|
@@ -145,7 +144,6 @@ if (loop) {
|
|
|
145
144
|
<div class="flex flex-row justify-center bg-gray-100">
|
|
146
145
|
{#each images as { id, imgurl, name, attribution }}
|
|
147
146
|
<Thumbnail
|
|
148
|
-
{thumbWidth}
|
|
149
147
|
thumbImg={imgurl}
|
|
150
148
|
altTag={name}
|
|
151
149
|
titleLink={attribution}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselTransition.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/carousels/CarouselTransition.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAED,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"CarouselTransition.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/carousels/CarouselTransition.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAED,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AA0ItE,QAAA,MAAM,SAAS;;;;;gBAD8b,GAAG,EAAE;;;;;;;;;;;;;;;;;;CAC3Z,CAAC;AACxD,MAAM,MAAM,uBAAuB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAC7D,MAAM,MAAM,wBAAwB,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AAC/D,MAAM,MAAM,uBAAuB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAE7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,oBAAoB,CAAC,uBAAuB,EAAE,wBAAwB,EAAE,uBAAuB,CAAC;CAC/I"}
|
|
@@ -2,20 +2,21 @@
|
|
|
2
2
|
export let altTag = '';
|
|
3
3
|
export let titleLink = '';
|
|
4
4
|
export let id;
|
|
5
|
-
export let thumbWidth;
|
|
5
|
+
export let thumbWidth = 100;
|
|
6
6
|
export let selected = false;
|
|
7
7
|
</script>
|
|
8
8
|
|
|
9
9
|
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
<button on:click aria-label="Click to view image">
|
|
11
|
+
<img
|
|
12
|
+
class="opacity-40"
|
|
13
|
+
class:active={selected}
|
|
14
|
+
id={id.toString()}
|
|
15
|
+
src={thumbImg}
|
|
16
|
+
alt={altTag}
|
|
17
|
+
title="Image from {titleLink}"
|
|
18
|
+
width="{thumbWidth}%" />
|
|
19
|
+
</button>
|
|
19
20
|
|
|
20
21
|
<!--
|
|
21
22
|
@component
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Thumbnail.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/carousels/Thumbnail.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;
|
|
1
|
+
{"version":3,"file":"Thumbnail.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/carousels/Thumbnail.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAqBD,QAAA,MAAM,SAAS;;;;;YADqL,MAAM;;;;;;;;;;CACnJ,CAAC;AACxD,MAAM,MAAM,cAAc,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AACpD,MAAM,MAAM,eAAe,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACtD,MAAM,MAAM,cAAc,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEpD;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,oBAAoB,CAAC,cAAc,EAAE,eAAe,EAAE,cAAc,CAAC;CAC3G"}
|
|
@@ -11,9 +11,8 @@ function keydown(ev) {
|
|
|
11
11
|
}
|
|
12
12
|
</script>
|
|
13
13
|
|
|
14
|
-
<
|
|
14
|
+
<button
|
|
15
15
|
class={classNames(defaultClass, $$props.class)}
|
|
16
|
-
tabIndex="0"
|
|
17
16
|
on:keydown={keydown}
|
|
18
17
|
on:focus
|
|
19
18
|
on:blur
|
|
@@ -24,17 +23,19 @@ function keydown(ev) {
|
|
|
24
23
|
on:dragleave
|
|
25
24
|
on:dragover
|
|
26
25
|
on:drop>
|
|
27
|
-
<
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
26
|
+
<label tabIndex="0">
|
|
27
|
+
<slot />
|
|
28
|
+
<input
|
|
29
|
+
{...$$restProps}
|
|
30
|
+
bind:value
|
|
31
|
+
bind:files
|
|
32
|
+
bind:this={input}
|
|
33
|
+
on:change
|
|
34
|
+
on:click
|
|
35
|
+
type="file"
|
|
36
|
+
class="hidden" />
|
|
37
|
+
</label>
|
|
38
|
+
</button>
|
|
38
39
|
|
|
39
40
|
<!--
|
|
40
41
|
@component
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropzone.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/forms/Dropzone.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;
|
|
1
|
+
{"version":3,"file":"Dropzone.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/forms/Dropzone.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAgCD,QAAA,MAAM,SAAS;;;;gBADwF,QAAQ,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;CAC7C,CAAC;AAC/E,MAAM,MAAM,aAAa,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AACnD,MAAM,MAAM,cAAc,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACrD,MAAM,MAAM,aAAa,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,oBAAoB,CAAC,aAAa,EAAE,cAAc,EAAE,aAAa,CAAC;CACvG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FloatingLabelInput.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/forms/FloatingLabelInput.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAGD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAkH1C,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"FloatingLabelInput.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/forms/FloatingLabelInput.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAGD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAkH1C,QAAA,MAAM,SAAS;;;;;;;;gBADqP,GAAG;;;;;;;;;;;;;;;;;;;;CACzL,CAAC;AAC/E,MAAM,MAAM,uBAAuB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAC7D,MAAM,MAAM,wBAAwB,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AAC/D,MAAM,MAAM,uBAAuB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAE7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,oBAAoB,CAAC,uBAAuB,EAAE,wBAAwB,EAAE,uBAAuB,CAAC;CAC/I"}
|
package/dist/forms/Input.svelte
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import classNames from 'classnames';
|
|
8
8
|
import { getContext } from 'svelte';
|
|
9
9
|
export let type = 'text';
|
|
10
|
-
export let value =
|
|
10
|
+
export let value = undefined;
|
|
11
11
|
export let size = undefined;
|
|
12
12
|
export let defaultClass = 'block w-full disabled:cursor-not-allowed disabled:opacity-50';
|
|
13
13
|
export let color = 'base';
|
package/dist/forms/Search.svelte
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Search.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/forms/Search.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AACD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAuC/C,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"Search.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/forms/Search.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AACD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAuC/C,QAAA,MAAM,SAAS;;;;;gBAD+G,GAAG;;;;;;;;;;;;;;;;;;;;;CACnD,CAAC;AAC/E,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,oBAAoB,CAAC,WAAW,EAAE,YAAY,EAAE,WAAW,CAAC;CAC/F"}
|
package/dist/forms/Select.svelte
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/forms/Select.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAED,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAmDjD,QAAA,MAAM,SAAS;;;;
|
|
1
|
+
{"version":3,"file":"Select.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/forms/Select.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAED,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAmDjD,QAAA,MAAM,SAAS;;;;gBADoM,GAAG;;;;;;;;;;;;;;;;;CACxI,CAAC;AAC/E,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,oBAAoB,CAAC,WAAW,EAAE,YAAY,EAAE,WAAW,CAAC;CAC/F"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { getContext } from 'svelte';
|
|
3
3
|
import Wrapper from '../utils/Wrapper.svelte';
|
|
4
4
|
const background = getContext('background');
|
|
5
|
-
export let value =
|
|
5
|
+
export let value = undefined;
|
|
6
6
|
export let wrappedClass = 'block w-full text-sm border-0 px-0 bg-inherit dark:bg-inherit focus:outline-none focus:ring-0';
|
|
7
7
|
export let unWrappedClass = 'p-2.5 text-sm focus:ring-primary-500 focus:border-primary-500 dark:focus:ring-primary-500 dark:focus:border-primary-500';
|
|
8
8
|
let wrapped;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Textarea.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/forms/Textarea.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAgED,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"Textarea.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/forms/Textarea.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAgED,QAAA,MAAM,SAAS;;;gBAD0F,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;CAC9B,CAAC;AAC/E,MAAM,MAAM,aAAa,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AACnD,MAAM,MAAM,cAAc,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACrD,MAAM,MAAM,aAAa,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,oBAAoB,CAAC,aAAa,EAAE,cAAc,EAAE,aAAa,CAAC;CACvG"}
|
|
@@ -46,7 +46,7 @@ declare const __propDef: {
|
|
|
46
46
|
autocapitalize?: string | null | undefined;
|
|
47
47
|
autocorrect?: string | null | undefined;
|
|
48
48
|
autosave?: string | null | undefined;
|
|
49
|
-
color?: "gray" | "red" | "yellow" | "green" | "indigo" | "purple" | "pink" | "blue" | "light" | "dark" | "default" | "dropdown" | "navbar" | "navbarUl" | "form" | "primary" | "none" | undefined;
|
|
49
|
+
color?: "gray" | "red" | "yellow" | "green" | "indigo" | "purple" | "pink" | "blue" | "light" | "dark" | "default" | "dropdown" | "navbar" | "navbarUl" | "form" | "primary" | "orange" | "none" | undefined;
|
|
50
50
|
itemprop?: string | null | undefined;
|
|
51
51
|
itemscope?: boolean | null | undefined;
|
|
52
52
|
itemtype?: string | null | undefined;
|
package/dist/modals/Modal.svelte
CHANGED
|
@@ -46,7 +46,7 @@ declare const __propDef: {
|
|
|
46
46
|
autocapitalize?: string | null | undefined;
|
|
47
47
|
autocorrect?: string | null | undefined;
|
|
48
48
|
autosave?: string | null | undefined;
|
|
49
|
-
color?: "gray" | "red" | "yellow" | "green" | "indigo" | "purple" | "pink" | "blue" | "light" | "dark" | "default" | "dropdown" | "navbar" | "navbarUl" | "form" | "primary" | "none" | undefined;
|
|
49
|
+
color?: "gray" | "red" | "yellow" | "green" | "indigo" | "purple" | "pink" | "blue" | "light" | "dark" | "default" | "dropdown" | "navbar" | "navbarUl" | "form" | "primary" | "orange" | "none" | undefined;
|
|
50
50
|
itemprop?: string | null | undefined;
|
|
51
51
|
itemscope?: boolean | null | undefined;
|
|
52
52
|
itemtype?: string | null | undefined;
|
package/dist/navbar/Menu.svelte
CHANGED
package/dist/navbar/NavLi.svelte
CHANGED
package/dist/navbar/NavUl.svelte
CHANGED
|
@@ -22,7 +22,7 @@ $$props.class);
|
|
|
22
22
|
</script>
|
|
23
23
|
|
|
24
24
|
{#if !hidden}
|
|
25
|
-
<div {...$$restProps} class={_divClass} transition:slide={slideParams} on:click>
|
|
25
|
+
<div {...$$restProps} class={_divClass} transition:slide={slideParams} on:click role="button" tabindex="0">
|
|
26
26
|
<Frame tag="ul" border rounded color="navbarUl" class={_ulClass}>
|
|
27
27
|
<slot />
|
|
28
28
|
</Frame>
|
|
@@ -45,7 +45,7 @@ declare const __propDef: {
|
|
|
45
45
|
autocapitalize?: string | null | undefined;
|
|
46
46
|
autocorrect?: string | null | undefined;
|
|
47
47
|
autosave?: string | null | undefined;
|
|
48
|
-
color?: "gray" | "red" | "yellow" | "green" | "indigo" | "purple" | "pink" | "blue" | "light" | "dark" | "default" | "dropdown" | "navbar" | "navbarUl" | "form" | "primary" | "none" | undefined;
|
|
48
|
+
color?: "gray" | "red" | "yellow" | "green" | "indigo" | "purple" | "pink" | "blue" | "light" | "dark" | "default" | "dropdown" | "navbar" | "navbarUl" | "form" | "primary" | "orange" | "none" | undefined;
|
|
49
49
|
itemprop?: string | null | undefined;
|
|
50
50
|
itemscope?: boolean | null | undefined;
|
|
51
51
|
itemtype?: string | null | undefined;
|
|
@@ -10,6 +10,7 @@ let defaultClass;
|
|
|
10
10
|
$: defaultClass = classNames('block py-2', group ? 'px-3' : 'px-4', 'text-sm font-medium', table || 'border border-gray-300', group || (table ? 'rounded' : 'rounded-lg'), active ? activeClass : normalClass, $$props.class);
|
|
11
11
|
</script>
|
|
12
12
|
|
|
13
|
+
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
13
14
|
<svelte:element
|
|
14
15
|
this={href ? 'a' : 'button'}
|
|
15
16
|
{href}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaginationItem.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/paginations/PaginationItem.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;
|
|
1
|
+
{"version":3,"file":"PaginationItem.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/paginations/PaginationItem.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAsCD,QAAA,MAAM,SAAS;;;eADgG,MAAM,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;CACnD,CAAC;AAC/E,MAAM,MAAM,mBAAmB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AACzD,MAAM,MAAM,oBAAoB,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AAC3D,MAAM,MAAM,mBAAmB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AACH,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,oBAAoB,CAAC,mBAAmB,EAAE,oBAAoB,EAAE,mBAAmB,CAAC;CAC/H"}
|
|
@@ -45,7 +45,7 @@ declare const __propDef: {
|
|
|
45
45
|
autocapitalize?: string | null | undefined;
|
|
46
46
|
autocorrect?: string | null | undefined;
|
|
47
47
|
autosave?: string | null | undefined;
|
|
48
|
-
color?: "gray" | "red" | "yellow" | "green" | "indigo" | "purple" | "pink" | "blue" | "light" | "dark" | "default" | "dropdown" | "navbar" | "navbarUl" | "form" | "primary" | "none" | undefined;
|
|
48
|
+
color?: "gray" | "red" | "yellow" | "green" | "indigo" | "purple" | "pink" | "blue" | "light" | "dark" | "default" | "dropdown" | "navbar" | "navbarUl" | "form" | "primary" | "orange" | "none" | undefined;
|
|
49
49
|
itemprop?: string | null | undefined;
|
|
50
50
|
itemscope?: boolean | null | undefined;
|
|
51
51
|
itemtype?: string | null | undefined;
|
|
@@ -4,6 +4,7 @@ export let strokeColor = '#ff0000';
|
|
|
4
4
|
export let size = 24;
|
|
5
5
|
export let ariaLabel = 'heart';
|
|
6
6
|
export let id = 'heart';
|
|
7
|
+
export let role = 'img';
|
|
7
8
|
</script>
|
|
8
9
|
|
|
9
10
|
<svg
|
|
@@ -13,6 +14,7 @@ export let id = 'heart';
|
|
|
13
14
|
{...$$restProps}
|
|
14
15
|
aria-label={ariaLabel}
|
|
15
16
|
viewBox="0 0 24 24"
|
|
17
|
+
{role}
|
|
16
18
|
stroke-width="1.5"
|
|
17
19
|
stroke="currentColor"
|
|
18
20
|
fill="none"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Heart.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/ratings/Heart.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;
|
|
1
|
+
{"version":3,"file":"Heart.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/ratings/Heart.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAgCD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;CAA+D,CAAC;AAC/E,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;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,oBAAoB,CAAC,UAAU,EAAE,WAAW,EAAE,UAAU,CAAC;CAC3F"}
|
package/dist/ratings/Star.svelte
CHANGED
|
@@ -5,6 +5,7 @@ export let strokeColor = '#F5CA14';
|
|
|
5
5
|
export let size = 24;
|
|
6
6
|
export let ariaLabel = 'star';
|
|
7
7
|
export let id = generateId();
|
|
8
|
+
export let role = 'img';
|
|
8
9
|
</script>
|
|
9
10
|
|
|
10
11
|
<svg
|
|
@@ -14,6 +15,7 @@ export let id = generateId();
|
|
|
14
15
|
{...$$restProps}
|
|
15
16
|
aria-label={ariaLabel}
|
|
16
17
|
viewBox="100 100 120 120"
|
|
18
|
+
{role}
|
|
17
19
|
on:click>
|
|
18
20
|
<defs>
|
|
19
21
|
<linearGradient {id}>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Star.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/ratings/Star.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;
|
|
1
|
+
{"version":3,"file":"Star.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/ratings/Star.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAyCD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;CAA+D,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;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,oBAAoB,CAAC,SAAS,EAAE,UAAU,EAAE,SAAS,CAAC;CACvF"}
|
|
@@ -4,6 +4,7 @@ export let strokeColor = '#00b500';
|
|
|
4
4
|
export let size = 24;
|
|
5
5
|
export let ariaLabel = 'thumbup';
|
|
6
6
|
export let id = 'thumbup';
|
|
7
|
+
export let role = 'img';
|
|
7
8
|
</script>
|
|
8
9
|
|
|
9
10
|
<svg
|
|
@@ -13,6 +14,7 @@ export let id = 'thumbup';
|
|
|
13
14
|
{...$$restProps}
|
|
14
15
|
aria-label={ariaLabel}
|
|
15
16
|
viewBox="0 0 24 24"
|
|
17
|
+
{role}
|
|
16
18
|
stroke-width="1.5"
|
|
17
19
|
stroke="currentColor"
|
|
18
20
|
fill="none"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Thumbup.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/ratings/Thumbup.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;
|
|
1
|
+
{"version":3,"file":"Thumbup.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/ratings/Thumbup.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAgCD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;CAA+D,CAAC;AAC/E,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;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,oBAAoB,CAAC,YAAY,EAAE,aAAa,EAAE,YAAY,CAAC;CACnG"}
|
|
@@ -9,19 +9,14 @@ $: tdClassfinal = classNames(tdClass, color === 'default'
|
|
|
9
9
|
: 'text-blue-50 whitespace-nowrap dark:text-blue-100', $$props.class);
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
|
-
<
|
|
12
|
+
<svelte:element
|
|
13
|
+
this={$$props.onclick ? 'button' : 'td'}
|
|
13
14
|
{...$$restProps}
|
|
14
15
|
class={tdClassfinal}
|
|
15
16
|
on:click
|
|
16
|
-
|
|
17
|
-
on:keydown
|
|
18
|
-
on:keypress
|
|
19
|
-
on:keyup
|
|
20
|
-
on:mouseenter
|
|
21
|
-
on:mouseleave
|
|
22
|
-
on:mouseover>
|
|
17
|
+
role={$$props.onclick ? 'button' : undefined}>
|
|
23
18
|
<slot />
|
|
24
|
-
</
|
|
19
|
+
</svelte:element>
|
|
25
20
|
|
|
26
21
|
<!--
|
|
27
22
|
@component
|
|
@@ -6,13 +6,6 @@ declare const __propDef: {
|
|
|
6
6
|
};
|
|
7
7
|
events: {
|
|
8
8
|
click: MouseEvent;
|
|
9
|
-
focus: FocusEvent;
|
|
10
|
-
keydown: KeyboardEvent;
|
|
11
|
-
keypress: KeyboardEvent;
|
|
12
|
-
keyup: KeyboardEvent;
|
|
13
|
-
mouseenter: MouseEvent;
|
|
14
|
-
mouseleave: MouseEvent;
|
|
15
|
-
mouseover: MouseEvent;
|
|
16
9
|
} & {
|
|
17
10
|
[evt: string]: CustomEvent<any>;
|
|
18
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableBodyCell.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/tables/TableBodyCell.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AA8BD,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"TableBodyCell.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/tables/TableBodyCell.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AA8BD,QAAA,MAAM,SAAS;;;;;;;;;;;;;CAA+D,CAAC;AAC/E,MAAM,MAAM,kBAAkB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AACxD,MAAM,MAAM,mBAAmB,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AAC1D,MAAM,MAAM,kBAAkB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAExD;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,oBAAoB,CAAC,kBAAkB,EAAE,mBAAmB,EAAE,kBAAkB,CAAC;CAC3H"}
|
package/dist/toasts/Toast.svelte
CHANGED
|
@@ -3,14 +3,13 @@ import classNames from 'classnames';
|
|
|
3
3
|
import CloseButton from '../utils/CloseButton.svelte';
|
|
4
4
|
import { fade } from 'svelte/transition';
|
|
5
5
|
export let simple = false;
|
|
6
|
+
export let color = 'primary';
|
|
6
7
|
export let position = 'none';
|
|
7
8
|
export let open = true;
|
|
8
|
-
export let divClass = 'w-full max-w-xs p-4';
|
|
9
|
-
export let defaultIconClass = '
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
$$restProps.color = $$restProps.color ?? 'blue';
|
|
13
|
-
}
|
|
9
|
+
export let divClass = 'w-full max-w-xs p-4 text-gray-500 bg-white shadow dark:text-gray-400 dark:bg-gray-800 gap-3';
|
|
10
|
+
export let defaultIconClass = 'w-8 h-8';
|
|
11
|
+
export let contentClass = 'w-full text-sm font-normal';
|
|
12
|
+
export let align = true;
|
|
14
13
|
const positions = {
|
|
15
14
|
'top-left': 'absolute top-5 left-5',
|
|
16
15
|
'top-right': 'absolute top-5 right-5',
|
|
@@ -18,27 +17,40 @@ const positions = {
|
|
|
18
17
|
'bottom-right': 'absolute bottom-5 right-5',
|
|
19
18
|
none: ''
|
|
20
19
|
};
|
|
21
|
-
let
|
|
22
|
-
$:
|
|
20
|
+
let finalDivClass;
|
|
21
|
+
$: finalDivClass = classNames('flex', align ? 'items-center' : 'items-start', divClass, positions[position], $$props.class);
|
|
22
|
+
const colors = {
|
|
23
|
+
primary: 'text-primary-500 bg-primary-100 dark:bg-primary-800 dark:text-primary-200',
|
|
24
|
+
gray: 'text-gray-500 bg-gray-100 dark:bg-gray-700 dark:text-gray-200',
|
|
25
|
+
red: 'text-red-500 bg-red-100 dark:bg-red-800 dark:text-red-200',
|
|
26
|
+
yellow: 'text-yellow-500 bg-yellow-100 dark:bg-yellow-800 dark:text-yellow-200',
|
|
27
|
+
green: 'text-green-500 bg-green-100 dark:bg-green-800 dark:text-green-200',
|
|
28
|
+
blue: 'text-blue-500 bg-blue-100 dark:bg-blue-800 dark:text-blue-200',
|
|
29
|
+
indigo: 'text-indigo-500 bg-indigo-100 dark:bg-indigo-800 dark:text-indigo-200',
|
|
30
|
+
purple: 'text-purple-500 bg-purple-100 dark:bg-purple-800 dark:text-purple-200',
|
|
31
|
+
orange: 'text-orange-500 bg-orange-100 dark:bg-orange-700 dark:text-orange-200',
|
|
32
|
+
none: ''
|
|
33
|
+
};
|
|
23
34
|
let iconClass;
|
|
24
|
-
$: iconClass = classNames(defaultIconClass);
|
|
35
|
+
$: iconClass = classNames('inline-flex items-center justify-center shrink-0', colors[color], defaultIconClass);
|
|
36
|
+
const clsBtnExtraClass = '-mx-1.5 -my-1.5 text-gray-400 hover:text-gray-900 focus:!ring-gray-300 hover:bg-gray-100 dark:text-gray-500 dark:hover:text-white dark:hover:bg-gray-700';
|
|
25
37
|
</script>
|
|
26
38
|
|
|
27
39
|
{#if open}
|
|
28
|
-
<Frame rounded
|
|
29
|
-
|
|
30
|
-
{
|
|
31
|
-
<
|
|
32
|
-
|
|
40
|
+
<Frame rounded transition={fade} color="none" {...$$restProps} class={finalDivClass} role="alert">
|
|
41
|
+
{#if $$slots.icon}
|
|
42
|
+
<Frame rounded color="none" class={iconClass}>
|
|
43
|
+
<slot name="icon" />
|
|
44
|
+
</Frame>
|
|
45
|
+
{/if}
|
|
33
46
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
<slot name="extra" />
|
|
37
|
-
</div>
|
|
38
|
-
{#if !simple}
|
|
39
|
-
<CloseButton on:click={() => (open = false)} />
|
|
40
|
-
{/if}
|
|
47
|
+
<div class={contentClass}>
|
|
48
|
+
<slot />
|
|
41
49
|
</div>
|
|
50
|
+
|
|
51
|
+
{#if !simple}
|
|
52
|
+
<CloseButton class={clsBtnExtraClass} on:click={() => (open = false)} />
|
|
53
|
+
{/if}
|
|
42
54
|
</Frame>
|
|
43
55
|
{/if}
|
|
44
56
|
|
|
@@ -56,7 +68,7 @@ $: iconClass = classNames(defaultIconClass);
|
|
|
56
68
|
- Blur examples
|
|
57
69
|
- Fly examples
|
|
58
70
|
- Undo button
|
|
59
|
-
-
|
|
71
|
+
- Advanced examples
|
|
60
72
|
- Toast message
|
|
61
73
|
- Push notification
|
|
62
74
|
- Interactive toast
|
|
@@ -45,7 +45,7 @@ declare const __propDef: {
|
|
|
45
45
|
autocapitalize?: string | null | undefined;
|
|
46
46
|
autocorrect?: string | null | undefined;
|
|
47
47
|
autosave?: string | null | undefined;
|
|
48
|
-
color?: "gray" | "red" | "yellow" | "green" | "indigo" | "purple" | "
|
|
48
|
+
color?: "gray" | "red" | "yellow" | "green" | "indigo" | "purple" | "blue" | "orange" | "none" | undefined;
|
|
49
49
|
itemprop?: string | null | undefined;
|
|
50
50
|
itemscope?: boolean | null | undefined;
|
|
51
51
|
itemtype?: string | null | undefined;
|
|
@@ -246,6 +246,9 @@ declare const __propDef: {
|
|
|
246
246
|
position?: "none" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
247
247
|
open?: boolean | undefined;
|
|
248
248
|
divClass?: string | undefined;
|
|
249
|
+
defaultIconClass?: string | undefined;
|
|
250
|
+
extraIconClass?: string | undefined;
|
|
251
|
+
contentClass?: string | undefined;
|
|
249
252
|
};
|
|
250
253
|
events: {
|
|
251
254
|
[evt: string]: CustomEvent<any>;
|
|
@@ -253,7 +256,6 @@ declare const __propDef: {
|
|
|
253
256
|
slots: {
|
|
254
257
|
icon: {};
|
|
255
258
|
default: {};
|
|
256
|
-
extra: {};
|
|
257
259
|
};
|
|
258
260
|
};
|
|
259
261
|
export type ToastProps = typeof __propDef.props;
|
|
@@ -272,7 +274,7 @@ export type ToastSlots = typeof __propDef.slots;
|
|
|
272
274
|
* - Blur examples
|
|
273
275
|
* - Fly examples
|
|
274
276
|
* - Undo button
|
|
275
|
-
* -
|
|
277
|
+
* - Advanced examples
|
|
276
278
|
* - Toast message
|
|
277
279
|
* - Push notification
|
|
278
280
|
* - Interactive toast
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/toasts/Toast.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;
|
|
1
|
+
{"version":3,"file":"Toast.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/toasts/Toast.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAsHD,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,oBAAoB,CAAC,UAAU,EAAE,WAAW,EAAE,UAAU,CAAC;CAC3F"}
|
|
@@ -45,7 +45,7 @@ declare const __propDef: {
|
|
|
45
45
|
autocapitalize?: string | null | undefined;
|
|
46
46
|
autocorrect?: string | null | undefined;
|
|
47
47
|
autosave?: string | null | undefined;
|
|
48
|
-
color?: "gray" | "red" | "yellow" | "green" | "indigo" | "purple" | "pink" | "blue" | "light" | "dark" | "default" | "dropdown" | "navbar" | "navbarUl" | "form" | "primary" | "none" | undefined;
|
|
48
|
+
color?: "gray" | "red" | "yellow" | "green" | "indigo" | "purple" | "pink" | "blue" | "light" | "dark" | "default" | "dropdown" | "navbar" | "navbarUl" | "form" | "primary" | "orange" | "none" | undefined;
|
|
49
49
|
itemprop?: string | null | undefined;
|
|
50
50
|
itemscope?: boolean | null | undefined;
|
|
51
51
|
itemtype?: string | null | undefined;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export let color = 'currentColor';
|
|
3
3
|
export let variation = 'outline';
|
|
4
4
|
export let ariaLabel = 'chevron down';
|
|
5
|
+
export let role = 'img';
|
|
5
6
|
let viewBox;
|
|
6
7
|
let svgpath;
|
|
7
8
|
let svgoutline = `<path stroke-linecap="round" stroke-linejoin="round" d="M19 9l-7 7-7-7" stroke="${color}"></path>`;
|
|
@@ -30,6 +31,7 @@ $: switch (variation) {
|
|
|
30
31
|
aria-label={ariaLabel}
|
|
31
32
|
fill="none"
|
|
32
33
|
{viewBox}
|
|
34
|
+
{role}
|
|
33
35
|
stroke-width="2"
|
|
34
36
|
on:click>
|
|
35
37
|
{@html svgpath}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChevronDown.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/ChevronDown.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;
|
|
1
|
+
{"version":3,"file":"ChevronDown.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/ChevronDown.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAmCD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;CAA+D,CAAC;AAC/E,MAAM,MAAM,gBAAgB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AACtD,MAAM,MAAM,iBAAiB,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACxD,MAAM,MAAM,gBAAgB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEtD;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,oBAAoB,CAAC,gBAAgB,EAAE,iBAAiB,EAAE,gBAAgB,CAAC;CACnH"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export let color = 'currentColor';
|
|
3
3
|
export let variation = 'outline';
|
|
4
4
|
export let ariaLabel = 'chevron left';
|
|
5
|
+
export let role = 'img';
|
|
5
6
|
let viewBox;
|
|
6
7
|
let svgpath;
|
|
7
8
|
let svgoutline = `<path clip-rule="evenodd" fill-rule="evenodd" d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z" stroke="${color}"></path>`;
|
|
@@ -30,6 +31,7 @@ $: switch (variation) {
|
|
|
30
31
|
aria-label={ariaLabel}
|
|
31
32
|
fill="none"
|
|
32
33
|
{viewBox}
|
|
34
|
+
{role}
|
|
33
35
|
stroke-width="2"
|
|
34
36
|
on:click>
|
|
35
37
|
{@html svgpath}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChevronLeft.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/ChevronLeft.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;
|
|
1
|
+
{"version":3,"file":"ChevronLeft.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/ChevronLeft.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAmCD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;CAA+D,CAAC;AAC/E,MAAM,MAAM,gBAAgB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AACtD,MAAM,MAAM,iBAAiB,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACxD,MAAM,MAAM,gBAAgB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEtD;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,oBAAoB,CAAC,gBAAgB,EAAE,iBAAiB,EAAE,gBAAgB,CAAC;CACnH"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export let color = 'currentColor';
|
|
3
3
|
export let variation = 'outline';
|
|
4
4
|
export let ariaLabel = 'chevron right';
|
|
5
|
+
export let role = 'img';
|
|
5
6
|
let viewBox;
|
|
6
7
|
let svgpath;
|
|
7
8
|
let svgoutline = `<path clip-rule="evenodd" fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" stroke="${color}"></path> `;
|
|
@@ -30,6 +31,7 @@ $: switch (variation) {
|
|
|
30
31
|
aria-label={ariaLabel}
|
|
31
32
|
fill="none"
|
|
32
33
|
{viewBox}
|
|
34
|
+
{role}
|
|
33
35
|
stroke-width="2"
|
|
34
36
|
on:click>
|
|
35
37
|
{@html svgpath}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChevronRight.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/ChevronRight.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;
|
|
1
|
+
{"version":3,"file":"ChevronRight.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/ChevronRight.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAmCD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;CAA+D,CAAC;AAC/E,MAAM,MAAM,iBAAiB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AACvD,MAAM,MAAM,kBAAkB,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACzD,MAAM,MAAM,iBAAiB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEvD;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,oBAAoB,CAAC,iBAAiB,EAAE,kBAAkB,EAAE,iBAAiB,CAAC;CACvH"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export let color = 'currentColor';
|
|
3
3
|
export let variation = 'outline';
|
|
4
4
|
export let ariaLabel = 'chevron up';
|
|
5
|
+
export let role = 'img';
|
|
5
6
|
let viewBox;
|
|
6
7
|
let svgpath;
|
|
7
8
|
let svgoutline = `<path clip-rule="evenodd" fill-rule="evenodd" d="M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z" stroke="${color}"></path>`;
|
|
@@ -30,6 +31,7 @@ $: switch (variation) {
|
|
|
30
31
|
aria-label={ariaLabel}
|
|
31
32
|
fill="none"
|
|
32
33
|
{viewBox}
|
|
34
|
+
{role}
|
|
33
35
|
stroke-width="2"
|
|
34
36
|
on:click>
|
|
35
37
|
{@html svgpath}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChevronUp.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/ChevronUp.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;
|
|
1
|
+
{"version":3,"file":"ChevronUp.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/ChevronUp.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAmCD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;CAA+D,CAAC;AAC/E,MAAM,MAAM,cAAc,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AACpD,MAAM,MAAM,eAAe,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACtD,MAAM,MAAM,cAAc,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEpD;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,oBAAoB,CAAC,cAAc,EAAE,eAAe,EAAE,cAAc,CAAC;CAC3G"}
|
package/dist/utils/Frame.svelte
CHANGED
|
@@ -36,6 +36,7 @@ const bgColors = {
|
|
|
36
36
|
navbarUl: 'bg-gray-50 dark:bg-gray-800',
|
|
37
37
|
form: 'bg-gray-50 dark:bg-gray-700',
|
|
38
38
|
primary: 'bg-primary-50 dark:bg-gray-800 ',
|
|
39
|
+
orange: 'bg-orange-50 dark:bg-orange-800',
|
|
39
40
|
none: ''
|
|
40
41
|
};
|
|
41
42
|
const textColors = {
|
|
@@ -55,6 +56,7 @@ const textColors = {
|
|
|
55
56
|
navbarUl: 'text-gray-700 dark:text-gray-400',
|
|
56
57
|
form: 'text-gray-900 dark:text-white',
|
|
57
58
|
primary: 'text-primary-800 dark:text-primary-400',
|
|
59
|
+
orange: 'text-orange-800 dark:text-orange-400',
|
|
58
60
|
none: ''
|
|
59
61
|
};
|
|
60
62
|
const borderColors = {
|
|
@@ -74,6 +76,7 @@ const borderColors = {
|
|
|
74
76
|
navbarUl: 'border-gray-100 dark:border-gray-700',
|
|
75
77
|
form: 'border-gray-300 dark:border-gray-700',
|
|
76
78
|
primary: 'border-primary-500 dark:bg-primary-200 ',
|
|
79
|
+
orange: 'border-orange-300 dark:bg-orange-800',
|
|
77
80
|
none: ''
|
|
78
81
|
};
|
|
79
82
|
let divClass;
|
|
@@ -47,7 +47,7 @@ declare const __propDef: {
|
|
|
47
47
|
autocapitalize?: string | null | undefined;
|
|
48
48
|
autocorrect?: string | null | undefined;
|
|
49
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;
|
|
50
|
+
color?: "gray" | "red" | "yellow" | "green" | "indigo" | "purple" | "pink" | "blue" | "light" | "dark" | "default" | "dropdown" | "navbar" | "navbarUl" | "form" | "primary" | "orange" | "none" | undefined;
|
|
51
51
|
itemprop?: string | null | undefined;
|
|
52
52
|
itemscope?: boolean | null | undefined;
|
|
53
53
|
itemtype?: string | null | undefined;
|
|
@@ -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;AA8I1D,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAlIgB,WAAW,UAAU,GAAG,KAAK,gBAAgB;;eAWjE,WAAW,GAAG,SAAS;;;;;;;;;;;;;;;;CAuHqB,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;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,oBAAoB,CAAC,UAAU,EAAE,WAAW,EAAE,UAAU,CAAC;CAC3F"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export let color = 'currentColor';
|
|
3
3
|
export let variation = 'outline';
|
|
4
4
|
export let ariaLabel = 'information circle';
|
|
5
|
+
export let role = 'img';
|
|
5
6
|
let viewBox;
|
|
6
7
|
let svgpath;
|
|
7
8
|
let svgoutline = `<path d="M11.25 11.25L11.2915 11.2293C11.8646 10.9427 12.5099 11.4603 12.3545 12.082L11.6455 14.918C11.4901 15.5397 12.1354 16.0573 12.7085 15.7707L12.75 15.75M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM12 8.25H12.0075V8.2575H12V8.25Z" stroke="${color}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> `;
|
|
@@ -30,6 +31,7 @@ $: switch (variation) {
|
|
|
30
31
|
aria-label={ariaLabel}
|
|
31
32
|
fill="none"
|
|
32
33
|
{viewBox}
|
|
34
|
+
{role}
|
|
33
35
|
stroke-width="2"
|
|
34
36
|
on:click>
|
|
35
37
|
{@html svgpath}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InformationCircle.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/InformationCircle.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;
|
|
1
|
+
{"version":3,"file":"InformationCircle.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/InformationCircle.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAmCD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;CAA+D,CAAC;AAC/E,MAAM,MAAM,sBAAsB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAC5D,MAAM,MAAM,uBAAuB,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AAC9D,MAAM,MAAM,sBAAsB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAE5D;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,oBAAoB,CAAC,sBAAsB,EAAE,uBAAuB,EAAE,sBAAsB,CAAC;CAC3I"}
|
|
@@ -46,7 +46,7 @@ declare const __propDef: {
|
|
|
46
46
|
autocapitalize?: string | null | undefined;
|
|
47
47
|
autocorrect?: string | null | undefined;
|
|
48
48
|
autosave?: string | null | undefined;
|
|
49
|
-
color?: "gray" | "red" | "yellow" | "green" | "indigo" | "purple" | "pink" | "blue" | "light" | "dark" | "default" | "dropdown" | "navbar" | "navbarUl" | "form" | "primary" | "none" | undefined;
|
|
49
|
+
color?: "gray" | "red" | "yellow" | "green" | "indigo" | "purple" | "pink" | "blue" | "light" | "dark" | "default" | "dropdown" | "navbar" | "navbarUl" | "form" | "primary" | "orange" | "none" | undefined;
|
|
50
50
|
itemprop?: string | null | undefined;
|
|
51
51
|
itemscope?: boolean | null | undefined;
|
|
52
52
|
itemtype?: string | null | undefined;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export let color = 'currentColor';
|
|
3
3
|
export let variation = 'outline';
|
|
4
4
|
export let ariaLabel = 'user circle';
|
|
5
|
+
export let role = 'img';
|
|
5
6
|
let viewBox;
|
|
6
7
|
let svgpath;
|
|
7
8
|
let svgoutline = `<path d="M17.9815 18.7248C16.6121 16.9175 14.4424 15.75 12 15.75C9.55761 15.75 7.38789 16.9175 6.01846 18.7248M17.9815 18.7248C19.8335 17.0763 21 14.6744 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 14.6744 4.1665 17.0763 6.01846 18.7248M17.9815 18.7248C16.3915 20.1401 14.2962 21 12 21C9.70383 21 7.60851 20.1401 6.01846 18.7248M15 9.75C15 11.4069 13.6569 12.75 12 12.75C10.3431 12.75 9 11.4069 9 9.75C9 8.09315 10.3431 6.75 12 6.75C13.6569 6.75 15 8.09315 15 9.75Z" stroke="${color}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> `;
|
|
@@ -30,6 +31,7 @@ $: switch (variation) {
|
|
|
30
31
|
aria-label={ariaLabel}
|
|
31
32
|
fill="none"
|
|
32
33
|
{viewBox}
|
|
34
|
+
{role}
|
|
33
35
|
stroke-width="2"
|
|
34
36
|
on:click>
|
|
35
37
|
{@html svgpath}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserCircle.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/UserCircle.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;
|
|
1
|
+
{"version":3,"file":"UserCircle.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/UserCircle.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAmCD,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;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,oBAAoB,CAAC,eAAe,EAAE,gBAAgB,EAAE,eAAe,CAAC;CAC/G"}
|