flowbite-svelte 0.38.1 → 0.38.3
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 +4 -4
- package/dist/accordion/Accordion.svelte.d.ts +8 -4
- package/dist/accordion/Accordion.svelte.d.ts.map +1 -1
- package/dist/accordion/AccordionItem.svelte +18 -5
- package/dist/accordion/AccordionItem.svelte.d.ts +6 -4
- package/dist/accordion/AccordionItem.svelte.d.ts.map +1 -1
- package/dist/alerts/Alert.svelte +1 -1
- package/dist/alerts/Alert.svelte.d.ts.map +1 -1
- package/dist/avatar/Avatar.svelte +1 -1
- package/dist/avatar/Placeholder.svelte +4 -6
- package/dist/avatar/Placeholder.svelte.d.ts +1 -0
- package/dist/avatar/Placeholder.svelte.d.ts.map +1 -1
- package/dist/badges/Badge.svelte.d.ts +1 -1
- package/dist/badges/Badge.svelte.d.ts.map +1 -1
- package/dist/banner/Banner.svelte +8 -10
- package/dist/banner/Banner.svelte.d.ts +5 -5
- package/dist/banner/Banner.svelte.d.ts.map +1 -1
- package/dist/bottom-nav/BottomNav.svelte +16 -14
- package/dist/bottom-nav/BottomNav.svelte.d.ts +9 -7
- package/dist/bottom-nav/BottomNav.svelte.d.ts.map +1 -1
- package/dist/bottom-nav/BottomNavHeader.svelte +4 -3
- package/dist/bottom-nav/BottomNavHeader.svelte.d.ts.map +1 -1
- package/dist/bottom-nav/BottomNavHeaderItem.svelte +3 -2
- package/dist/bottom-nav/BottomNavHeaderItem.svelte.d.ts.map +1 -1
- package/dist/bottom-nav/BottomNavItem.svelte +11 -14
- package/dist/bottom-nav/BottomNavItem.svelte.d.ts +3 -6
- package/dist/bottom-nav/BottomNavItem.svelte.d.ts.map +1 -1
- package/dist/breadcrumbs/BreadcrumbItem.svelte +6 -5
- package/dist/breadcrumbs/BreadcrumbItem.svelte.d.ts.map +1 -1
- package/dist/buttons/Button.svelte +8 -11
- package/dist/buttons/Button.svelte.d.ts +0 -1
- package/dist/buttons/Button.svelte.d.ts.map +1 -1
- package/dist/carousels/Caption.svelte +2 -1
- package/dist/carousels/Caption.svelte.d.ts +1 -0
- package/dist/carousels/Caption.svelte.d.ts.map +1 -1
- package/dist/carousels/Carousel.svelte +15 -7
- package/dist/carousels/Carousel.svelte.d.ts +4 -1
- package/dist/carousels/Carousel.svelte.d.ts.map +1 -1
- package/dist/carousels/CarouselTransition.svelte +13 -5
- package/dist/carousels/CarouselTransition.svelte.d.ts +3 -0
- package/dist/carousels/CarouselTransition.svelte.d.ts.map +1 -1
- package/dist/carousels/Thumbnail.svelte +2 -1
- package/dist/carousels/Thumbnail.svelte.d.ts +1 -0
- package/dist/carousels/Thumbnail.svelte.d.ts.map +1 -1
- package/dist/device-mockup/DeviceMockup.svelte +93 -30
- package/dist/device-mockup/DeviceMockup.svelte.d.ts +1 -0
- package/dist/device-mockup/DeviceMockup.svelte.d.ts.map +1 -1
- package/dist/dropdowns/Dropdown.svelte +7 -6
- package/dist/dropdowns/Dropdown.svelte.d.ts +0 -2
- package/dist/dropdowns/Dropdown.svelte.d.ts.map +1 -1
- package/dist/footer/Footer.svelte +4 -20
- package/dist/footer/Footer.svelte.d.ts.map +1 -1
- package/dist/footer/FooterBrand.svelte +7 -4
- package/dist/footer/FooterBrand.svelte.d.ts.map +1 -1
- package/dist/footer/FooterCopyright.svelte +4 -2
- package/dist/footer/FooterCopyright.svelte.d.ts.map +1 -1
- package/dist/footer/FooterLink.svelte +4 -2
- package/dist/footer/FooterLink.svelte.d.ts.map +1 -1
- package/dist/forms/Checkbox.svelte +2 -1
- package/dist/forms/Checkbox.svelte.d.ts.map +1 -1
- package/dist/forms/FloatingLabelInput.svelte +3 -3
- package/dist/forms/Input.svelte +6 -4
- package/dist/forms/Input.svelte.d.ts +1 -0
- package/dist/forms/Input.svelte.d.ts.map +1 -1
- package/dist/forms/Radio.svelte.d.ts.map +1 -1
- package/dist/forms/Select.svelte +1 -1
- package/dist/forms/Toggle.svelte +10 -2
- package/dist/forms/Toggle.svelte.d.ts.map +1 -1
- package/dist/gallery/Gallery.svelte +1 -1
- package/dist/megamenu/MegaMenu.svelte +1 -1
- package/dist/megamenu/MegaMenu.svelte.d.ts.map +1 -1
- package/dist/modals/Modal.svelte +4 -3
- package/dist/modals/Modal.svelte.d.ts +2 -2
- package/dist/modals/Modal.svelte.d.ts.map +1 -1
- package/dist/navbar/NavHamburger.svelte +2 -1
- package/dist/navbar/NavHamburger.svelte.d.ts +1 -0
- package/dist/navbar/NavHamburger.svelte.d.ts.map +1 -1
- package/dist/navbar/NavSidebarHamburger.svelte +2 -1
- package/dist/navbar/NavSidebarHamburger.svelte.d.ts +1 -0
- package/dist/navbar/NavSidebarHamburger.svelte.d.ts.map +1 -1
- package/dist/navbar/NavUl.svelte +1 -1
- package/dist/navbar/Navbar.svelte +1 -1
- package/dist/navbar/Navbar.svelte.d.ts +1 -0
- package/dist/navbar/Navbar.svelte.d.ts.map +1 -1
- package/dist/navbar/SidebarMenu.svelte +1 -1
- package/dist/paginations/Pagination.svelte +6 -6
- package/dist/paginations/Pagination.svelte.d.ts.map +1 -1
- package/dist/progressbars/Progressbar.svelte +3 -3
- package/dist/progressbars/Progressbar.svelte.d.ts +1 -0
- package/dist/progressbars/Progressbar.svelte.d.ts.map +1 -1
- package/dist/ratings/Star.svelte +1 -1
- package/dist/ratings/Thumbup.svelte +1 -1
- package/dist/skeleton/CardPlaceholder.svelte.d.ts.map +1 -1
- package/dist/steps/StepIndicator.svelte +1 -1
- package/dist/toasts/Toast.svelte.d.ts +0 -38
- package/dist/toasts/Toast.svelte.d.ts.map +1 -1
- package/dist/typography/A.svelte +1 -1
- package/dist/typography/A.svelte.d.ts +2 -0
- package/dist/typography/A.svelte.d.ts.map +1 -1
- package/dist/utils/ChevronUp.svelte +1 -1
- package/dist/utils/Popper.svelte +2 -2
- package/package.json +15 -19
- package/dist/navbar/NavDropdown.svelte +0 -102
- package/dist/navbar/NavDropdown.svelte.d.ts +0 -84
- package/dist/navbar/NavDropdown.svelte.d.ts.map +0 -1
|
@@ -66,7 +66,8 @@ function onChange() {
|
|
|
66
66
|
{...$$restProps}
|
|
67
67
|
class={twMerge(
|
|
68
68
|
spacing,
|
|
69
|
-
inputClass(custom, color, true, background, $$slots.default || $$props.class)
|
|
69
|
+
inputClass(custom, color, true, background, $$slots.default || $$props.class)
|
|
70
|
+
)} /><slot />
|
|
70
71
|
</Label>
|
|
71
72
|
|
|
72
73
|
<!--
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/forms/Checkbox.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAGD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"Checkbox.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/forms/Checkbox.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAGD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAoE9C,QAAA,MAAM,SAAS;;;;;;;;kBADqP,OAAO,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;CACzM,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,oBAAoB,CAAC,aAAa,EAAE,cAAc,EAAE,aAAa,CAAC;CACvG"}
|
|
@@ -71,7 +71,7 @@ function setType(node, _type) {
|
|
|
71
71
|
}
|
|
72
72
|
</script>
|
|
73
73
|
|
|
74
|
-
<div class={divClasses[style]}>
|
|
74
|
+
<div class={twMerge(divClasses[style], $$props.classDiv)}>
|
|
75
75
|
<input
|
|
76
76
|
{id}
|
|
77
77
|
{...$$restProps}
|
|
@@ -94,7 +94,7 @@ function setType(node, _type) {
|
|
|
94
94
|
inputClasses[style],
|
|
95
95
|
inputColorClasses[color],
|
|
96
96
|
inputSizes[style][size],
|
|
97
|
-
$$props.
|
|
97
|
+
$$props.classInput
|
|
98
98
|
)} />
|
|
99
99
|
|
|
100
100
|
<label
|
|
@@ -103,7 +103,7 @@ function setType(node, _type) {
|
|
|
103
103
|
labelClasses[style],
|
|
104
104
|
labelColorClasses[color],
|
|
105
105
|
labelSizes[style][size],
|
|
106
|
-
$$props.
|
|
106
|
+
$$props.classLabel
|
|
107
107
|
)}>
|
|
108
108
|
{label}
|
|
109
109
|
</label>
|
package/dist/forms/Input.svelte
CHANGED
|
@@ -11,6 +11,7 @@ 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';
|
|
14
|
+
export let floatClass = 'flex absolute inset-y-0 items-center text-gray-500 dark:text-gray-400';
|
|
14
15
|
const borderClasses = {
|
|
15
16
|
base: 'border-gray-300 dark:border-gray-600',
|
|
16
17
|
tinted: 'border-gray-300 dark:border-gray-500',
|
|
@@ -50,7 +51,7 @@ $: {
|
|
|
50
51
|
const _color = color === 'base' && background ? 'tinted' : color;
|
|
51
52
|
inputClass = twMerge([
|
|
52
53
|
defaultClass,
|
|
53
|
-
($$slots.left && leftPadding[_size] || $$slots.right && rightPadding[_size]) || inputPadding[_size],
|
|
54
|
+
($$slots.left && leftPadding[_size]) || ($$slots.right && rightPadding[_size]) || inputPadding[_size],
|
|
54
55
|
ringClasses[color],
|
|
55
56
|
colorClasses[_color],
|
|
56
57
|
borderClasses[_color],
|
|
@@ -61,12 +62,13 @@ $: {
|
|
|
61
62
|
$$props.class
|
|
62
63
|
]);
|
|
63
64
|
}
|
|
64
|
-
let floatClass = 'flex absolute inset-y-0 items-center text-gray-500 dark:text-gray-400';
|
|
65
65
|
</script>
|
|
66
66
|
|
|
67
67
|
<Wrapper class="relative w-full" show={$$slots.left || $$slots.right}>
|
|
68
68
|
{#if $$slots.left}
|
|
69
|
-
<div class="{floatClass} left-0 pl-2.5 pointer-events-none"
|
|
69
|
+
<div class="{twMerge(floatClass, $$props.classLeft)} left-0 pl-2.5 pointer-events-none">
|
|
70
|
+
<slot name="left" />
|
|
71
|
+
</div>
|
|
70
72
|
{/if}
|
|
71
73
|
<slot props={{ ...$$restProps, class: inputClass }}>
|
|
72
74
|
<input
|
|
@@ -89,7 +91,7 @@ let floatClass = 'flex absolute inset-y-0 items-center text-gray-500 dark:text-g
|
|
|
89
91
|
class={inputClass} />
|
|
90
92
|
</slot>
|
|
91
93
|
{#if $$slots.right}
|
|
92
|
-
<div class="{floatClass} right-0 pr-2.5"><slot name="right" /></div>
|
|
94
|
+
<div class="{twMerge(floatClass, $$props.classRight)} right-0 pr-2.5"><slot name="right" /></div>
|
|
93
95
|
{/if}
|
|
94
96
|
</Wrapper>
|
|
95
97
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/forms/Input.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AACC,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AACzD,wBAAgB,SAAS,CAAC,CAAC,EAAE,QAAQ,sBAEpC;AAMH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"Input.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/forms/Input.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AACC,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AACzD,wBAAgB,SAAS,CAAC,CAAC,EAAE,QAAQ,sBAEpC;AAMH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAgG1C,QAAA,MAAM,SAAS;;;;gBAD6I,GAAG;eAAS,YAAY,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAClH,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,oBAAoB,CAAC,UAAU,EAAE,WAAW,EAAE,UAAU,CAAC;CAC3F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/forms/Radio.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAgBC,eAAO,MAAM,UAAU,WAAY,OAAO,cAAc,MAAM,
|
|
1
|
+
{"version":3,"file":"Radio.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/forms/Radio.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAgBC,eAAO,MAAM,UAAU,WAAY,OAAO,cAAc,MAAM,WACQ,CAAC;AACvE,eAAO,IAAI,OAAO,EAAE,MAAe,CAAC;AAEpC,eAAO,MAAM,UAAU,WACb,OAAO,SACR,aAAa,WACX,OAAO,UACR,OAAO,cACH,MAAM,WAUjB,CAAC;AAIN,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AA4B9C,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,oBAAoB,CAAC,UAAU,EAAE,WAAW,EAAE,UAAU,CAAC;CAC3F"}
|
package/dist/forms/Select.svelte
CHANGED
|
@@ -13,7 +13,7 @@ const sizes = {
|
|
|
13
13
|
lg: 'text-base py-3 px-4'
|
|
14
14
|
};
|
|
15
15
|
let selectClass;
|
|
16
|
-
$: selectClass = twMerge(common, underline ? underlineClass : defaultClass, sizes[size], underline && '!px-0', $$
|
|
16
|
+
$: selectClass = twMerge(common, underline ? underlineClass : defaultClass, sizes[size], underline && '!px-0', $$props.class);
|
|
17
17
|
</script>
|
|
18
18
|
|
|
19
19
|
<select {...$$restProps} bind:value class={selectClass} on:change on:contextmenu on:input>
|
package/dist/forms/Toggle.svelte
CHANGED
|
@@ -27,10 +27,18 @@ const sizes = {
|
|
|
27
27
|
custom: customSize
|
|
28
28
|
};
|
|
29
29
|
let divClass;
|
|
30
|
-
$: divClass = twMerge(common, background ? 'dark:bg-gray-600 dark:border-gray-500' : 'dark:bg-gray-700 dark:border-gray-600', colors[$$restProps.color ?? 'primary'], sizes[size], 'relative');
|
|
30
|
+
$: divClass = twMerge(common, background ? 'dark:bg-gray-600 dark:border-gray-500' : 'dark:bg-gray-700 dark:border-gray-600', colors[$$restProps.color ?? 'primary'], sizes[size], 'relative', $$props.class);
|
|
31
31
|
</script>
|
|
32
32
|
|
|
33
|
-
<Checkbox
|
|
33
|
+
<Checkbox
|
|
34
|
+
custom
|
|
35
|
+
{...$$restProps}
|
|
36
|
+
class={$$props.classCheckbox}
|
|
37
|
+
{value}
|
|
38
|
+
bind:checked
|
|
39
|
+
bind:group
|
|
40
|
+
on:click
|
|
41
|
+
on:change>
|
|
34
42
|
<span class={divClass} />
|
|
35
43
|
<slot />
|
|
36
44
|
</Checkbox>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toggle.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/forms/Toggle.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;
|
|
1
|
+
{"version":3,"file":"Toggle.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/forms/Toggle.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAgED,QAAA,MAAM,SAAS;;;;;;kBAD6M,OAAO,GAAG,SAAS;;;;;;;;;;;;CACjK,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;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,oBAAoB,CAAC,WAAW,EAAE,YAAY,EAAE,WAAW,CAAC;CAC/F"}
|
|
@@ -11,7 +11,7 @@ function init(node) {
|
|
|
11
11
|
<div {...$$restProps} class={divClass} use:init>
|
|
12
12
|
{#each items as item}
|
|
13
13
|
<slot {item}>
|
|
14
|
-
<div><img src={item.src} alt={item.alt} class={imgClass} /></div>
|
|
14
|
+
<div><img src={item.src} alt={item.alt} class={twMerge(imgClass, $$props.classImg)} /></div>
|
|
15
15
|
</slot>
|
|
16
16
|
{:else}
|
|
17
17
|
<slot item={items[0]} />
|
|
@@ -6,7 +6,7 @@ export let open = false;
|
|
|
6
6
|
let wrapperClass;
|
|
7
7
|
$: wrapperClass = twMerge(full && 'border-y w-full', $$props.class);
|
|
8
8
|
let ulClass;
|
|
9
|
-
$: ulClass = twMerge('grid grid-flow-row gap-y-4 md:gap-x-0 auto-col-max auto-row-max', full && $$slots.extra ? 'grid-cols-2' : 'grid-cols-2 md:grid-cols-3', 'text-sm font-medium', full && $$slots.extra && 'md:w-2/3');
|
|
9
|
+
$: ulClass = twMerge('grid grid-flow-row gap-y-4 md:gap-x-0 auto-col-max auto-row-max', full && $$slots.extra ? 'grid-cols-2' : 'grid-cols-2 md:grid-cols-3', 'text-sm font-medium', full && $$slots.extra && 'md:w-2/3', $$props.classUl);
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
12
|
<Popper
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MegaMenu.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/megamenu/MegaMenu.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAED,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"MegaMenu.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/megamenu/MegaMenu.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAED,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAgDzC,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;CAA+D,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,oBAAoB,CAAC,aAAa,EAAE,cAAc,EAAE,aAAa,CAAC;CACvG"}
|
package/dist/modals/Modal.svelte
CHANGED
|
@@ -9,7 +9,7 @@ export let size = 'md';
|
|
|
9
9
|
export let placement = 'center';
|
|
10
10
|
export let autoclose = false;
|
|
11
11
|
export let permanent = false;
|
|
12
|
-
export let
|
|
12
|
+
export let backdropClass = 'bg-gray-900 bg-opacity-50 dark:bg-opacity-80';
|
|
13
13
|
export let defaultClass = 'relative flex flex-col mx-auto';
|
|
14
14
|
export let outsideclose = false;
|
|
15
15
|
const dispatch = createEventDispatcher();
|
|
@@ -78,6 +78,7 @@ const isScrollable = (e) => [
|
|
|
78
78
|
e.scrollWidth > e.clientWidth && ['scroll', 'auto'].indexOf(getComputedStyle(e).overflowX) >= 0,
|
|
79
79
|
e.scrollHeight > e.clientHeight && ['scroll', 'auto'].indexOf(getComputedStyle(e).overflowY) >= 0
|
|
80
80
|
];
|
|
81
|
+
let backdropCls = twMerge(backdropClass, $$props.classBackdrop);
|
|
81
82
|
function handleKeys(e) {
|
|
82
83
|
if (e.key === 'Escape' && !permanent)
|
|
83
84
|
return hide(e);
|
|
@@ -86,7 +87,7 @@ function handleKeys(e) {
|
|
|
86
87
|
|
|
87
88
|
{#if open}
|
|
88
89
|
<!-- backdrop -->
|
|
89
|
-
<div class={twMerge('fixed inset-0 z-40',
|
|
90
|
+
<div class={twMerge('fixed inset-0 z-40', backdropCls)} />
|
|
90
91
|
<!-- dialog -->
|
|
91
92
|
<div
|
|
92
93
|
on:keydown={handleKeys}
|
|
@@ -162,7 +163,7 @@ function handleKeys(e) {
|
|
|
162
163
|
@prop placement: ModalPlacementType = 'center';
|
|
163
164
|
@prop autoclose: boolean = false;
|
|
164
165
|
@prop permanent: boolean = false;
|
|
165
|
-
@prop
|
|
166
|
+
@prop backdropClass: string = 'bg-gray-900 bg-opacity-50 dark:bg-opacity-80';
|
|
166
167
|
@prop defaultClass: string = 'relative flex flex-col mx-auto';
|
|
167
168
|
@prop outsideclose: boolean = false;
|
|
168
169
|
## Example
|
|
@@ -248,7 +248,7 @@ declare const __propDef: {
|
|
|
248
248
|
placement?: "top-left" | "top-center" | "top-right" | "center-left" | "center" | "center-right" | "bottom-left" | "bottom-center" | "bottom-right" | undefined;
|
|
249
249
|
autoclose?: boolean | undefined;
|
|
250
250
|
permanent?: boolean | undefined;
|
|
251
|
-
|
|
251
|
+
backdropClass?: string | undefined;
|
|
252
252
|
defaultClass?: string | undefined;
|
|
253
253
|
outsideclose?: boolean | undefined;
|
|
254
254
|
};
|
|
@@ -286,7 +286,7 @@ export type ModalSlots = typeof __propDef.slots;
|
|
|
286
286
|
* @prop placement: ModalPlacementType = 'center';
|
|
287
287
|
* @prop autoclose: boolean = false;
|
|
288
288
|
* @prop permanent: boolean = false;
|
|
289
|
-
* @prop
|
|
289
|
+
* @prop backdropClass: string = 'bg-gray-900 bg-opacity-50 dark:bg-opacity-80';
|
|
290
290
|
* @prop defaultClass: string = 'relative flex flex-col mx-auto';
|
|
291
291
|
* @prop outsideclose: boolean = false;
|
|
292
292
|
* ## Example
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/modals/Modal.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAMD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"Modal.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/modals/Modal.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAMD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAwK3C,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,oBAAoB,CAAC,UAAU,EAAE,WAAW,EAAE,UAAU,CAAC;CAC3F"}
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
import { twMerge } from 'tailwind-merge';
|
|
3
3
|
import Menu from './Menu.svelte';
|
|
4
4
|
export let btnClass = 'ml-3 md:hidden';
|
|
5
|
+
export let menuClass = 'h-6 w-6 shrink-0';
|
|
5
6
|
</script>
|
|
6
7
|
|
|
7
8
|
<ToolbarButton name="Open main menu" on:click {...$$restProps} class={twMerge(btnClass, $$props.class)}>
|
|
8
|
-
<Menu class=
|
|
9
|
+
<Menu class={twMerge(menuClass, $$props.classMenu)} />
|
|
9
10
|
</ToolbarButton>
|
|
10
11
|
|
|
11
12
|
<!--
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavHamburger.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/navbar/NavHamburger.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;
|
|
1
|
+
{"version":3,"file":"NavHamburger.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/navbar/NavHamburger.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAsBD,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,oBAAoB,CAAC,iBAAiB,EAAE,kBAAkB,EAAE,iBAAiB,CAAC;CACvH"}
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
import { twMerge } from 'tailwind-merge';
|
|
3
3
|
import SidebarMenu from './SidebarMenu.svelte';
|
|
4
4
|
export let btnClass = 'ml-3 md:hidden';
|
|
5
|
+
export let sideMenuClass = 'h-6 w-6 shrink-0';
|
|
5
6
|
</script>
|
|
6
7
|
|
|
7
8
|
<ToolbarButton name="Open main menu" on:click {...$$restProps} class={twMerge(btnClass, $$props.class)}>
|
|
8
|
-
<SidebarMenu class=
|
|
9
|
+
<SidebarMenu class={twMerge(sideMenuClass, $$props.classSideMenu)} variation="solid" />
|
|
9
10
|
</ToolbarButton>
|
|
10
11
|
|
|
11
12
|
<!--
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavSidebarHamburger.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/navbar/NavSidebarHamburger.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;
|
|
1
|
+
{"version":3,"file":"NavSidebarHamburger.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/navbar/NavSidebarHamburger.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAsBD,QAAA,MAAM,SAAS;;;;;;;;;;;;CAA+D,CAAC;AAC/E,MAAM,MAAM,wBAAwB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAC9D,MAAM,MAAM,yBAAyB,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AAChE,MAAM,MAAM,wBAAwB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,oBAAoB,CAAC,wBAAwB,EAAE,yBAAyB,EAAE,wBAAwB,CAAC;CACnJ"}
|
package/dist/navbar/NavUl.svelte
CHANGED
|
@@ -14,7 +14,7 @@ let toggle = () => {
|
|
|
14
14
|
</script>
|
|
15
15
|
|
|
16
16
|
<Frame tag="nav" {...$$restProps} class={twMerge(navClass, $$props.class)}>
|
|
17
|
-
<div class={twMerge(navDivClass, (fluid && 'w-full') || 'container')}>
|
|
17
|
+
<div class={twMerge(navDivClass, $$props.classNavDiv, (fluid && 'w-full') || 'container')}>
|
|
18
18
|
<slot {hidden} {toggle} />
|
|
19
19
|
</div>
|
|
20
20
|
</Frame>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Navbar.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/navbar/Navbar.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;
|
|
1
|
+
{"version":3,"file":"Navbar.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/navbar/Navbar.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AA2CD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwC,CAAC;AACxD,MAAM,MAAM,WAAW,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AACjD,MAAM,MAAM,YAAY,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACnD,MAAM,MAAM,WAAW,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,oBAAoB,CAAC,WAAW,EAAE,YAAY,EAAE,WAAW,CAAC;CAC/F"}
|
|
@@ -6,6 +6,8 @@ export let activeClass = 'text-blue-600 border border-gray-300 bg-blue-50 hover:
|
|
|
6
6
|
export let normalClass = 'text-gray-500 bg-white hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white';
|
|
7
7
|
export let ulClass = 'inline-flex -space-x-px items-center';
|
|
8
8
|
export let table = false;
|
|
9
|
+
let normalCls = twMerge(normalClass, $$props.classNormal);
|
|
10
|
+
let activeCls = twMerge(activeClass, $$props.classActive);
|
|
9
11
|
const dispatch = createEventDispatcher();
|
|
10
12
|
setContext('group', true);
|
|
11
13
|
setContext('table', table);
|
|
@@ -20,9 +22,7 @@ const next = () => {
|
|
|
20
22
|
<nav aria-label="Page navigation">
|
|
21
23
|
<ul class={twMerge(ulClass, table && 'divide-x divide-gray-700', $$props.class)}>
|
|
22
24
|
<li>
|
|
23
|
-
<PaginationItem
|
|
24
|
-
on:click={previous}
|
|
25
|
-
class={twJoin(normalClass, table ? 'rounded-l' : 'rounded-l-lg')}>
|
|
25
|
+
<PaginationItem on:click={previous} class={twJoin(normalCls, table ? 'rounded-l' : 'rounded-l-lg')}>
|
|
26
26
|
<slot name="prev">Previous</slot>
|
|
27
27
|
</PaginationItem>
|
|
28
28
|
</li>
|
|
@@ -40,13 +40,13 @@ const next = () => {
|
|
|
40
40
|
on:mouseenter
|
|
41
41
|
on:mouseleave
|
|
42
42
|
on:mouseover
|
|
43
|
-
{
|
|
44
|
-
{
|
|
43
|
+
{activeCls}
|
|
44
|
+
{normalCls}
|
|
45
45
|
{href}>{name}</PaginationItem>
|
|
46
46
|
</li>
|
|
47
47
|
{/each}
|
|
48
48
|
<li>
|
|
49
|
-
<PaginationItem on:click={next} class={twJoin(
|
|
49
|
+
<PaginationItem on:click={next} class={twJoin(normalCls, table ? 'rounded-r' : 'rounded-r-lg')}>
|
|
50
50
|
<slot name="next">Next</slot>
|
|
51
51
|
</PaginationItem>
|
|
52
52
|
</li>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/paginations/Pagination.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAGD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"Pagination.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/paginations/Pagination.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAGD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAyDzC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AACH,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,oBAAoB,CAAC,eAAe,EAAE,gBAAgB,EAAE,eAAe,CAAC;CAC/G"}
|
|
@@ -5,6 +5,7 @@ export let labelInside = false;
|
|
|
5
5
|
export let labelOutside = '';
|
|
6
6
|
export let color = 'primary';
|
|
7
7
|
export let labelInsideClass = 'text-primary-100 text-xs font-medium text-center p-0.5 leading-none rounded-full';
|
|
8
|
+
export let divClass = 'w-full bg-gray-200 rounded-full dark:bg-gray-700';
|
|
8
9
|
// let barColor: string;
|
|
9
10
|
const barColors = {
|
|
10
11
|
primary: 'bg-primary-600',
|
|
@@ -19,13 +20,12 @@ const barColors = {
|
|
|
19
20
|
</script>
|
|
20
21
|
|
|
21
22
|
{#if labelOutside}
|
|
22
|
-
|
|
23
|
-
<div {...$$restProps} class={twMerge('flex justify-between mb-1', $$props.class)}>
|
|
23
|
+
<div {...$$restProps} class={twMerge('flex justify-between mb-1', $$props.classLabelOutside)}>
|
|
24
24
|
<span class="text-base font-medium text-blue-700 dark:text-white">{labelOutside}</span>
|
|
25
25
|
<span class="text-sm font-medium text-blue-700 dark:text-white">{progress}%</span>
|
|
26
26
|
</div>
|
|
27
27
|
{/if}
|
|
28
|
-
<div class={twMerge(
|
|
28
|
+
<div class={twMerge(divClass, size, $$props.class)}>
|
|
29
29
|
{#if labelInside}
|
|
30
30
|
<div class={twJoin(labelInsideClass, barColors[color])} style="width: {progress}%">
|
|
31
31
|
{progress}%
|
|
@@ -8,6 +8,7 @@ declare const __propDef: {
|
|
|
8
8
|
labelOutside?: string | undefined;
|
|
9
9
|
color?: "gray" | "red" | "yellow" | "green" | "indigo" | "purple" | "blue" | "primary" | undefined;
|
|
10
10
|
labelInsideClass?: string | undefined;
|
|
11
|
+
divClass?: string | undefined;
|
|
11
12
|
};
|
|
12
13
|
events: {
|
|
13
14
|
[evt: string]: CustomEvent<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Progressbar.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/progressbars/Progressbar.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAiDD,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"Progressbar.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/progressbars/Progressbar.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAiDD,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;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,oBAAoB,CAAC,gBAAgB,EAAE,iBAAiB,EAAE,gBAAgB,CAAC;CACnH"}
|
package/dist/ratings/Star.svelte
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardPlaceholder.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/skeleton/CardPlaceholder.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;
|
|
1
|
+
{"version":3,"file":"CardPlaceholder.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/skeleton/CardPlaceholder.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AA6CD,QAAA,MAAM,SAAS;;;;;;;;;;CAA+D,CAAC;AAC/E,MAAM,MAAM,oBAAoB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAC1D,MAAM,MAAM,qBAAqB,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AAC5D,MAAM,MAAM,oBAAoB,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAE1D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,oBAAoB,CAAC,oBAAoB,EAAE,qBAAqB,EAAE,oBAAoB,CAAC;CACnI"}
|
|
@@ -55,7 +55,7 @@ const currentStepColors = {
|
|
|
55
55
|
{:else if i < currentStep - 1}
|
|
56
56
|
<div class={twJoin('w-full h-full rounded-sm', completedStepColors[color])} />
|
|
57
57
|
{:else}
|
|
58
|
-
<div class=
|
|
58
|
+
<div class="w-full h-full rounded-sm bg-gray-200 dark:bg-gray-700" />
|
|
59
59
|
{/if}
|
|
60
60
|
{/each}
|
|
61
61
|
</div>
|
|
@@ -150,44 +150,6 @@ declare const __propDef: {
|
|
|
150
150
|
'on:load'?: import("svelte/elements").EventHandler<Event, Element> | null | undefined;
|
|
151
151
|
'on:error'?: import("svelte/elements").EventHandler<Event, Element> | null | undefined;
|
|
152
152
|
'on:toggle'?: import("svelte/elements").EventHandler<Event, HTMLAnchorElement> | null | undefined;
|
|
153
|
-
/**
|
|
154
|
-
* ## Features
|
|
155
|
-
* [Go to Toast](https://flowbite-svelte.com/docs/components/toast)
|
|
156
|
-
* - Setup
|
|
157
|
-
* - Default toast
|
|
158
|
-
* - Simple toast
|
|
159
|
-
* - Colors
|
|
160
|
-
* - Icons
|
|
161
|
-
* - Autohide example
|
|
162
|
-
* - Transitions
|
|
163
|
-
* - Blur examples
|
|
164
|
-
* - Fly examples
|
|
165
|
-
* - Undo button
|
|
166
|
-
* - Advanced examples
|
|
167
|
-
* - Toast message
|
|
168
|
-
* - Push notification
|
|
169
|
-
* - Interactive toast
|
|
170
|
-
* - Positioning
|
|
171
|
-
* ## Props
|
|
172
|
-
* @prop simple: boolean = false;
|
|
173
|
-
* @prop position: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'none' = 'none';
|
|
174
|
-
* @prop open: boolean = true;
|
|
175
|
-
* @prop divClass: string = 'w-full max-w-xs p-4';
|
|
176
|
-
* @prop defaultIconClass: string = 'inline-flex items-center justify-center flex-shrink-0 w-8 h-8 mr-3';
|
|
177
|
-
* ## Example
|
|
178
|
-
* ```
|
|
179
|
-
* <script>
|
|
180
|
-
* import { Toast } from 'flowbite-svelte';
|
|
181
|
-
* </script>
|
|
182
|
-
* <Toast>
|
|
183
|
-
* <svelte:fragment slot="icon">
|
|
184
|
-
* <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6"><path stroke-linecap="round" stroke-linejoin="round" d="M15.362 5.214A8.252 8.252 0 0112 21 8.25 8.25 0 016.038 7.048 8.287 8.287 0 009 9.6a8.983 8.983 0 013.361-6.867 8.21 8.21 0 003 2.48z" /><path stroke-linecap="round" stroke-linejoin="round" d="M12 18a3.75 3.75 0 00.495-7.467 5.99 5.99 0 00-1.925 3.546 5.974 5.974 0 01-2.133-1A3.75 3.75 0 0012 18z" />
|
|
185
|
-
* </svg>
|
|
186
|
-
* </svelte:fragment>
|
|
187
|
-
* Dismissable user notification.
|
|
188
|
-
* </Toast>
|
|
189
|
-
* ```
|
|
190
|
-
*/
|
|
191
153
|
'on:keydown'?: import("svelte/elements").KeyboardEventHandler<HTMLAnchorElement> | null | undefined;
|
|
192
154
|
'on:keypress'?: import("svelte/elements").KeyboardEventHandler<HTMLAnchorElement> | null | undefined;
|
|
193
155
|
'on:keyup'?: import("svelte/elements").KeyboardEventHandler<HTMLAnchorElement> | null | undefined;
|
|
@@ -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;AAsHD,QAAA,MAAM,SAAS
|
|
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"}
|
package/dist/typography/A.svelte
CHANGED
|
@@ -4,7 +4,7 @@ export let color = 'text-primary-600 dark:text-primary-500';
|
|
|
4
4
|
export let aClass = 'inline-flex items-center hover:underline';
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
|
-
<a {...$$restProps} {href} class={twMerge(aClass, color, $$props.class)}>
|
|
7
|
+
<a {...$$restProps} {href} class={twMerge(aClass, color, $$props.class)} on:click>
|
|
8
8
|
<slot />
|
|
9
9
|
</a>
|
|
10
10
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/typography/A.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAmBD,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"A.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/typography/A.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAmBD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;CAA+D,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,CAAC,OAAO,OAAO,CAAE,SAAQ,oBAAoB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC;CAC3E"}
|
|
@@ -5,7 +5,7 @@ export let ariaLabel = 'chevron up';
|
|
|
5
5
|
export let role = 'img';
|
|
6
6
|
let viewBox;
|
|
7
7
|
let svgpath;
|
|
8
|
-
let svgoutline = `<path clip-rule="evenodd" fill-rule="evenodd" d="
|
|
8
|
+
let svgoutline = `<path clip-rule="evenodd" fill-rule="evenodd" d="M4.5 15.75L12 8.25L19.5 15.75" stroke="${color}"></path>`;
|
|
9
9
|
let svgsolid = `<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" fill="${color}"></path>`;
|
|
10
10
|
$: switch (variation) {
|
|
11
11
|
case 'outline':
|
package/dist/utils/Popper.svelte
CHANGED
|
@@ -119,8 +119,8 @@ function optional(pred, func) {
|
|
|
119
119
|
}
|
|
120
120
|
let position = 'bottom';
|
|
121
121
|
$: position = placement.split('-', 1)[0];
|
|
122
|
-
let arrowClass
|
|
123
|
-
$: arrowClass = twMerge('
|
|
122
|
+
let arrowClass;
|
|
123
|
+
$: arrowClass = twMerge('after:w-[9px] after:h-[9px] after:rotate-45 bg-inherit after:bg-inherit invisible after:visible after:block border-inherit after:border-inherit', position === 'top' && ($$props.border ? 'after:border-b after:border-r -bottom-[5px]' : '-bottom-[4px]'), position === 'bottom' && ($$props.border ? 'after:border-t after:border-l -top-[5px]' : '-top-[4px]'), position === 'left' && ($$props.border ? 'after:border-t after:border-r -right-[5px]' : '-right-[4px]'), position === 'right' && ($$props.border ? 'after:border-b after:border-l -left-[5px]' : '-left-[4px]'));
|
|
124
124
|
</script>
|
|
125
125
|
|
|
126
126
|
{#if !triggerEl}
|