flowbite-svelte 0.36.2 → 0.36.5
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/README.md +2 -2
- package/dist/avatar/Placeholder.svelte +5 -10
- package/dist/banner/Banner.svelte +16 -16
- package/dist/banner/Banner.svelte.d.ts.map +1 -1
- package/dist/bottom-nav/BottomNav.svelte +3 -4
- package/dist/bottom-nav/BottomNav.svelte.d.ts.map +1 -1
- package/dist/bottom-nav/BottomNavHeader.svelte +6 -7
- package/dist/bottom-nav/BottomNavHeader.svelte.d.ts.map +1 -1
- package/dist/bottom-nav/BottomNavHeaderItem.svelte +3 -3
- package/dist/bottom-nav/BottomNavHeaderItem.svelte.d.ts.map +1 -1
- package/dist/bottom-nav/BottomNavItem.svelte +8 -5
- package/dist/bottom-nav/BottomNavItem.svelte.d.ts.map +1 -1
- package/dist/breadcrumbs/Breadcrumb.svelte +3 -3
- package/dist/buttongroups/ButtonGroup.svelte.d.ts.map +1 -1
- package/dist/buttons/GradientButton.svelte +10 -11
- package/dist/darkmode/DarkMode.svelte +3 -0
- package/dist/darkmode/DarkMode.svelte.d.ts.map +1 -1
- package/dist/datepicker/Calender.svelte +9 -11
- package/dist/device-mockup/Android.svelte +12 -5
- package/dist/device-mockup/Android.svelte.d.ts +10 -13
- package/dist/device-mockup/Android.svelte.d.ts.map +1 -1
- package/dist/device-mockup/DefaultMockup.svelte +10 -0
- package/dist/device-mockup/DefaultMockup.svelte.d.ts +20 -0
- package/dist/device-mockup/DefaultMockup.svelte.d.ts.map +1 -0
- package/dist/device-mockup/DeviceMockup.svelte +85 -44
- package/dist/device-mockup/DeviceMockup.svelte.d.ts +42 -0
- package/dist/device-mockup/DeviceMockup.svelte.d.ts.map +1 -1
- package/dist/device-mockup/Ios.svelte +10 -4
- package/dist/device-mockup/Ios.svelte.d.ts +9 -13
- package/dist/device-mockup/Ios.svelte.d.ts.map +1 -1
- package/dist/device-mockup/Smartwatch.svelte +6 -0
- package/dist/device-mockup/Smartwatch.svelte.d.ts +18 -0
- package/dist/device-mockup/Smartwatch.svelte.d.ts.map +1 -0
- package/dist/device-mockup/Tablet.svelte +10 -4
- package/dist/device-mockup/Tablet.svelte.d.ts +9 -13
- package/dist/device-mockup/Tablet.svelte.d.ts.map +1 -1
- package/dist/dropdowns/Dropdown.svelte +1 -1
- package/dist/dropdowns/DropdownHeader.svelte +2 -2
- package/dist/dropdowns/DropdownItem.svelte.d.ts.map +1 -1
- package/dist/footer/FooterLinkGroup.svelte +1 -1
- package/dist/forms/Dropzone.svelte +9 -1
- package/dist/forms/FloatingLabelInput.svelte +34 -37
- package/dist/forms/FloatingLabelInput.svelte.d.ts.map +1 -1
- package/dist/forms/Helper.svelte +1 -1
- package/dist/forms/RadioInline.svelte +1 -1
- package/dist/forms/VoiceSearch.svelte +31 -45
- package/dist/forms/VoiceSearch.svelte.d.ts.map +1 -1
- package/dist/gallery/Gallery.svelte +2 -2
- package/dist/kbd/ArrowKeyDown.svelte +8 -10
- package/dist/kbd/ArrowKeyLeft.svelte +8 -10
- package/dist/kbd/ArrowKeyRight.svelte +8 -10
- package/dist/kbd/ArrowKeyUp.svelte +8 -10
- package/dist/kbd/Kbd.svelte +1 -1
- package/dist/modals/Modal.svelte +4 -7
- package/dist/modals/Modal.svelte.d.ts +3 -1
- package/dist/modals/Modal.svelte.d.ts.map +1 -1
- package/dist/navbar/Menu.svelte +11 -11
- package/dist/navbar/NavBrand.svelte +1 -1
- package/dist/navbar/NavHamburger.svelte +1 -1
- package/dist/navbar/NavSidebarHamburger.svelte +1 -1
- package/dist/navbar/SidebarMenu.svelte +11 -11
- package/dist/ratings/AdvancedRating.svelte +9 -9
- package/dist/ratings/Heart.svelte +7 -9
- package/dist/ratings/Rating.svelte +5 -5
- package/dist/ratings/RatingComment.svelte +3 -1
- package/dist/ratings/RatingComment.svelte.d.ts.map +1 -1
- package/dist/ratings/Review.svelte +52 -53
- package/dist/ratings/ScoreRating.svelte +42 -39
- package/dist/ratings/ScoreRating.svelte.d.ts.map +1 -1
- package/dist/ratings/Star.svelte +20 -20
- package/dist/ratings/Star.svelte.d.ts.map +1 -1
- package/dist/ratings/Thumbup.svelte +7 -9
- package/dist/sidebars/Sidebar.svelte +1 -1
- package/dist/sidebars/SidebarBrand.svelte +2 -2
- package/dist/sidebars/SidebarBrand.svelte.d.ts.map +1 -1
- package/dist/sidebars/SidebarCta.svelte +8 -13
- package/dist/sidebars/SidebarGroup.svelte +1 -1
- package/dist/sidebars/SidebarWrapper.svelte +1 -1
- package/dist/skeleton/CardPlaceholder.svelte +33 -37
- package/dist/skeleton/ImagePlaceholder.svelte +23 -26
- package/dist/skeleton/ImagePlaceholder.svelte.d.ts.map +1 -1
- package/dist/skeleton/ListPlaceholder.svelte +36 -36
- package/dist/skeleton/Skeleton.svelte +8 -8
- package/dist/skeleton/TestimonialPlaceholder.svelte +17 -19
- package/dist/skeleton/TextPlaceholder.svelte +31 -31
- package/dist/skeleton/VideoPlaceholder.svelte +11 -13
- package/dist/skeleton/WidgetPlaceholder.svelte +12 -12
- package/dist/steps/StepIndicator.svelte +1 -5
- package/dist/steps/StepIndicator.svelte.d.ts.map +1 -1
- package/dist/tables/TableBodyCell.svelte +11 -10
- package/dist/tables/TableHeadCell.svelte +12 -11
- package/dist/tables/TableSearch.svelte +25 -31
- package/dist/tables/TableSearch.svelte.d.ts.map +1 -1
- package/dist/timeline/Activity.svelte +1 -1
- package/dist/timeline/ActivityItem.svelte +21 -24
- package/dist/timeline/Group.svelte +4 -4
- package/dist/timeline/Group.svelte.d.ts.map +1 -1
- package/dist/timeline/GroupItem.svelte +39 -44
- package/dist/timeline/TimelineItem.svelte +87 -87
- package/dist/timeline/TimelineItem.svelte.d.ts.map +1 -1
- package/dist/timeline/TimelineItemHorizontal.svelte +38 -43
- package/dist/timeline/TimelineItemVertical.svelte +23 -24
- package/dist/toolbar/ToolbarGroup.svelte +2 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/typography/Img.svelte +1 -5
- package/dist/utils/ChevronDown.svelte +11 -11
- package/dist/utils/ChevronLeft.svelte +11 -11
- package/dist/utils/ChevronRight.svelte +11 -11
- package/dist/utils/ChevronUp.svelte +11 -11
- package/dist/utils/InformationCircle.svelte +11 -12
- package/dist/utils/UserCircle.svelte +11 -12
- package/dist/utils/clickOutside.d.ts.map +1 -1
- package/dist/utils/clickOutside.js +1 -1
- package/dist/utils/generateId.js +2 -2
- package/package.json +25 -25
- package/dist/device-mockup/Default.svelte +0 -4
- package/dist/device-mockup/Default.svelte.d.ts +0 -24
- package/dist/device-mockup/Default.svelte.d.ts.map +0 -1
- package/dist/device-mockup/SmartWatch.svelte +0 -2
- package/dist/device-mockup/SmartWatch.svelte.d.ts +0 -24
- package/dist/device-mockup/SmartWatch.svelte.d.ts.map +0 -1
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} IosProps */
|
|
2
|
-
/** @typedef {typeof __propDef.events} IosEvents */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} IosSlots */
|
|
4
|
-
export default class Ios extends SvelteComponentTyped<{
|
|
5
|
-
[x: string]: never;
|
|
6
|
-
}, {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
}, {}> {
|
|
9
|
-
}
|
|
10
|
-
export type IosProps = typeof __propDef.props;
|
|
11
|
-
export type IosEvents = typeof __propDef.events;
|
|
12
|
-
export type IosSlots = typeof __propDef.slots;
|
|
13
1
|
import { SvelteComponentTyped } from "svelte";
|
|
14
2
|
declare const __propDef: {
|
|
15
3
|
props: {
|
|
16
|
-
|
|
4
|
+
iosTop?: string | undefined;
|
|
5
|
+
iosLeftTop?: string | undefined;
|
|
6
|
+
iosLeftBot?: string | undefined;
|
|
7
|
+
iosRight?: string | undefined;
|
|
17
8
|
};
|
|
18
9
|
events: {
|
|
19
10
|
[evt: string]: CustomEvent<any>;
|
|
20
11
|
};
|
|
21
12
|
slots: {};
|
|
22
13
|
};
|
|
14
|
+
export type IosProps = typeof __propDef.props;
|
|
15
|
+
export type IosEvents = typeof __propDef.events;
|
|
16
|
+
export type IosSlots = typeof __propDef.slots;
|
|
17
|
+
export default class Ios extends SvelteComponentTyped<IosProps, IosEvents, IosSlots> {
|
|
18
|
+
}
|
|
23
19
|
export {};
|
|
24
20
|
//# sourceMappingURL=Ios.svelte.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Ios.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/device-mockup/Ios.svelte
|
|
1
|
+
{"version":3,"file":"Ios.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/device-mockup/Ios.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAmBD,QAAA,MAAM,SAAS;;;;;;;;;;;CAAwC,CAAC;AACxD,MAAM,MAAM,QAAQ,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAC9C,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AAChD,MAAM,MAAM,QAAQ,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAE9C,MAAM,CAAC,OAAO,OAAO,GAAI,SAAQ,oBAAoB,CAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,CAAC;CACnF"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<script>export let smartRightTop = 'h-[41px] w-[6px] bg-gray-800 dark:bg-gray-800 absolute -right-[16px] top-[40px] rounded-r-lg';
|
|
2
|
+
export let smartRightBot = 'h-[32px] w-[6px] bg-gray-800 dark:bg-gray-800 absolute -right-[16px] top-[88px] rounded-r-lg';
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<div class={smartRightTop} />
|
|
6
|
+
<div class={smartRightBot} />
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
smartRightTop?: string | undefined;
|
|
5
|
+
smartRightBot?: string | undefined;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {};
|
|
11
|
+
};
|
|
12
|
+
export type SmartwatchProps = typeof __propDef.props;
|
|
13
|
+
export type SmartwatchEvents = typeof __propDef.events;
|
|
14
|
+
export type SmartwatchSlots = typeof __propDef.slots;
|
|
15
|
+
export default class Smartwatch extends SvelteComponentTyped<SmartwatchProps, SmartwatchEvents, SmartwatchSlots> {
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=Smartwatch.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Smartwatch.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/device-mockup/Smartwatch.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAaD,QAAA,MAAM,SAAS;;;;;;;;;CAAwC,CAAC;AACxD,MAAM,MAAM,eAAe,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AACrD,MAAM,MAAM,gBAAgB,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACvD,MAAM,MAAM,eAAe,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAErD,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,oBAAoB,CAAC,eAAe,EAAE,gBAAgB,EAAE,eAAe,CAAC;CAC/G"}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
<script>export let tabletLeftTop = 'h-[32px] w-[3px] bg-gray-800 dark:bg-gray-800 absolute -left-[17px] top-[72px] rounded-l-lg';
|
|
2
|
+
export let tabletLeftMid = 'h-[46px] w-[3px] bg-gray-800 dark:bg-gray-800 absolute -left-[17px] top-[124px] rounded-l-lg';
|
|
3
|
+
export let tabletLeftBot = 'h-[46px] w-[3px] bg-gray-800 dark:bg-gray-800 absolute -left-[17px] top-[178px] rounded-l-lg';
|
|
4
|
+
export let tabletRight = 'h-[64px] w-[3px] bg-gray-800 dark:bg-gray-800 absolute -right-[17px] top-[142px] rounded-r-lg';
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<div class={tabletLeftTop} />
|
|
8
|
+
<div class={tabletLeftMid} />
|
|
9
|
+
<div class={tabletLeftBot} />
|
|
10
|
+
<div class={tabletRight} />
|
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} TabletProps */
|
|
2
|
-
/** @typedef {typeof __propDef.events} TabletEvents */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} TabletSlots */
|
|
4
|
-
export default class Tablet extends SvelteComponentTyped<{
|
|
5
|
-
[x: string]: never;
|
|
6
|
-
}, {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
}, {}> {
|
|
9
|
-
}
|
|
10
|
-
export type TabletProps = typeof __propDef.props;
|
|
11
|
-
export type TabletEvents = typeof __propDef.events;
|
|
12
|
-
export type TabletSlots = typeof __propDef.slots;
|
|
13
1
|
import { SvelteComponentTyped } from "svelte";
|
|
14
2
|
declare const __propDef: {
|
|
15
3
|
props: {
|
|
16
|
-
|
|
4
|
+
tabletLeftTop?: string | undefined;
|
|
5
|
+
tabletLeftMid?: string | undefined;
|
|
6
|
+
tabletLeftBot?: string | undefined;
|
|
7
|
+
tabletRight?: string | undefined;
|
|
17
8
|
};
|
|
18
9
|
events: {
|
|
19
10
|
[evt: string]: CustomEvent<any>;
|
|
20
11
|
};
|
|
21
12
|
slots: {};
|
|
22
13
|
};
|
|
14
|
+
export type TabletProps = typeof __propDef.props;
|
|
15
|
+
export type TabletEvents = typeof __propDef.events;
|
|
16
|
+
export type TabletSlots = typeof __propDef.slots;
|
|
17
|
+
export default class Tablet extends SvelteComponentTyped<TabletProps, TabletEvents, TabletSlots> {
|
|
18
|
+
}
|
|
23
19
|
export {};
|
|
24
20
|
//# sourceMappingURL=Tablet.svelte.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tablet.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/device-mockup/Tablet.svelte
|
|
1
|
+
{"version":3,"file":"Tablet.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/device-mockup/Tablet.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AAmBD,QAAA,MAAM,SAAS;;;;;;;;;;;CAAwC,CAAC;AACxD,MAAM,MAAM,WAAW,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AACjD,MAAM,MAAM,YAAY,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AACnD,MAAM,MAAM,WAAW,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEjD,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,oBAAoB,CAAC,WAAW,EAAE,YAAY,EAAE,WAAW,CAAC;CAC/F"}
|
|
@@ -25,7 +25,7 @@ $: popoverClass = classNames('divide-y divide-gray-100 dark:divide-gray-600', fr
|
|
|
25
25
|
<slot />
|
|
26
26
|
</ul>
|
|
27
27
|
{#if $$slots.footer}
|
|
28
|
-
<div class="py-1
|
|
28
|
+
<div class="py-1 overflow-hidden rounded-b">
|
|
29
29
|
<slot name="footer" />
|
|
30
30
|
</div>
|
|
31
31
|
{/if}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownItem.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/dropdowns/DropdownItem.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;
|
|
1
|
+
{"version":3,"file":"DropdownItem.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/dropdowns/DropdownItem.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AA4BD,QAAA,MAAM,SAAS;;;;eAD6E,MAAM,GAAG,SAAS;;;;;;;;;;;;;;;;;CAChC,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,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,oBAAoB,CAAC,iBAAiB,EAAE,kBAAkB,EAAE,iBAAiB,CAAC;CACvH"}
|
|
@@ -25,5 +25,13 @@ function keydown(ev) {
|
|
|
25
25
|
on:dragover
|
|
26
26
|
on:drop>
|
|
27
27
|
<slot />
|
|
28
|
-
<input
|
|
28
|
+
<input
|
|
29
|
+
{...$$restProps}
|
|
30
|
+
bind:value
|
|
31
|
+
bind:files
|
|
32
|
+
bind:this={input}
|
|
33
|
+
type="file"
|
|
34
|
+
class="hidden"
|
|
35
|
+
on:change
|
|
36
|
+
on:click />
|
|
29
37
|
</label>
|
|
@@ -69,45 +69,42 @@ function setType(node, _type) {
|
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
;
|
|
73
72
|
</script>
|
|
74
73
|
|
|
75
74
|
<div class={divClasses[style]}>
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
/>
|
|
75
|
+
<input
|
|
76
|
+
{id}
|
|
77
|
+
{...$$restProps}
|
|
78
|
+
bind:value
|
|
79
|
+
on:blur
|
|
80
|
+
on:change
|
|
81
|
+
on:click
|
|
82
|
+
on:focus
|
|
83
|
+
on:input
|
|
84
|
+
on:keydown
|
|
85
|
+
on:keypress
|
|
86
|
+
on:keyup
|
|
87
|
+
on:mouseenter
|
|
88
|
+
on:mouseleave
|
|
89
|
+
on:mouseover
|
|
90
|
+
on:paste
|
|
91
|
+
use:setType={type}
|
|
92
|
+
placeholder=" "
|
|
93
|
+
class={classNames(
|
|
94
|
+
inputClasses[style],
|
|
95
|
+
inputColorClasses[color],
|
|
96
|
+
inputSizes[style][size],
|
|
97
|
+
$$props.class
|
|
98
|
+
)} />
|
|
101
99
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
</label>
|
|
100
|
+
<label
|
|
101
|
+
for={id}
|
|
102
|
+
class={classNames(
|
|
103
|
+
labelClasses[style],
|
|
104
|
+
labelColorClasses[color],
|
|
105
|
+
labelSizes[style][size],
|
|
106
|
+
$$props.labelClass
|
|
107
|
+
)}>
|
|
108
|
+
{label}
|
|
109
|
+
</label>
|
|
113
110
|
</div>
|
|
@@ -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;
|
|
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;AAgH1C,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA+D,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,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,oBAAoB,CAAC,uBAAuB,EAAE,wBAAwB,EAAE,uBAAuB,CAAC;CAC/I"}
|
package/dist/forms/Helper.svelte
CHANGED
|
@@ -15,49 +15,35 @@ const handleVoiceBtn = () => {
|
|
|
15
15
|
</script>
|
|
16
16
|
|
|
17
17
|
<form class="flex items-center" on:submit>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
><svg
|
|
50
|
-
class="mr-2 -ml-1 w-5 h-5"
|
|
51
|
-
fill="none"
|
|
52
|
-
stroke="currentColor"
|
|
53
|
-
viewBox="0 0 24 24"
|
|
54
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
55
|
-
><path
|
|
56
|
-
stroke-linecap="round"
|
|
57
|
-
stroke-linejoin="round"
|
|
58
|
-
stroke-width="2"
|
|
59
|
-
d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"
|
|
60
|
-
/></svg
|
|
61
|
-
>Search</button
|
|
62
|
-
>
|
|
18
|
+
<label for={id} class={labelClass}>Search</label>
|
|
19
|
+
<div class="relative w-full">
|
|
20
|
+
<div class={iconDivClass}>
|
|
21
|
+
<svg class={iconClass} fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"
|
|
22
|
+
><path
|
|
23
|
+
fill-rule="evenodd"
|
|
24
|
+
d="M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z"
|
|
25
|
+
clip-rule="evenodd" /></svg>
|
|
26
|
+
</div>
|
|
27
|
+
<input {...$$restProps} type="text" {id} class={inputClass} {placeholder} />
|
|
28
|
+
<button type="button" class={voiceBtnClass} on:click={handleVoiceBtn}>
|
|
29
|
+
<svg class={voiceIconClass} fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"
|
|
30
|
+
><path
|
|
31
|
+
fill-rule="evenodd"
|
|
32
|
+
d="M7 4a3 3 0 016 0v4a3 3 0 11-6 0V4zm4 10.93A7.001 7.001 0 0017 8a1 1 0 10-2 0A5 5 0 015 8a1 1 0 00-2 0 7.001 7.001 0 006 6.93V17H6a1 1 0 100 2h8a1 1 0 100-2h-3v-2.07z"
|
|
33
|
+
clip-rule="evenodd" /></svg>
|
|
34
|
+
</button>
|
|
35
|
+
</div>
|
|
36
|
+
<button type="submit" class={btnClass}
|
|
37
|
+
><svg
|
|
38
|
+
class="mr-2 -ml-1 w-5 h-5"
|
|
39
|
+
fill="none"
|
|
40
|
+
stroke="currentColor"
|
|
41
|
+
viewBox="0 0 24 24"
|
|
42
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
43
|
+
><path
|
|
44
|
+
stroke-linecap="round"
|
|
45
|
+
stroke-linejoin="round"
|
|
46
|
+
stroke-width="2"
|
|
47
|
+
d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" /></svg
|
|
48
|
+
>Search</button>
|
|
63
49
|
</form>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VoiceSearch.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/forms/VoiceSearch.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;
|
|
1
|
+
{"version":3,"file":"VoiceSearch.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/forms/VoiceSearch.svelte"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAE5C;AA0CD,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,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,oBAAoB,CAAC,gBAAgB,EAAE,iBAAiB,EAAE,gBAAgB,CAAC;CACnH"}
|
|
@@ -10,8 +10,8 @@ function init(node) {
|
|
|
10
10
|
<div {...$$restProps} class={divClass} use:init>
|
|
11
11
|
{#each items as item}
|
|
12
12
|
<slot {item}>
|
|
13
|
-
<div><img src={item.src} alt={item.alt} class=
|
|
14
|
-
</slot>
|
|
13
|
+
<div><img src={item.src} alt={item.alt} class="h-auto max-w-full rounded-lg" /></div>
|
|
14
|
+
</slot>
|
|
15
15
|
{:else}
|
|
16
16
|
<slot />
|
|
17
17
|
{/each}
|
|
@@ -3,13 +3,11 @@ export let svgClass = 'w-4 h-4';
|
|
|
3
3
|
</script>
|
|
4
4
|
|
|
5
5
|
<svg
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/></svg
|
|
15
|
-
>
|
|
6
|
+
{...$$restProps}
|
|
7
|
+
class={classNames(svgClass, $$props.class)}
|
|
8
|
+
aria-hidden="true"
|
|
9
|
+
fill="currentColor"
|
|
10
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
11
|
+
viewBox="0 0 320 512"
|
|
12
|
+
><path
|
|
13
|
+
d="M310.6 246.6l-127.1 128C176.4 380.9 168.2 384 160 384s-16.38-3.125-22.63-9.375l-127.1-128C.2244 237.5-2.516 223.7 2.438 211.8S19.07 192 32 192h255.1c12.94 0 24.62 7.781 29.58 19.75S319.8 237.5 310.6 246.6z" /></svg>
|
|
@@ -3,13 +3,11 @@ export let svgClass = 'w-4 h-4';
|
|
|
3
3
|
</script>
|
|
4
4
|
|
|
5
5
|
<svg
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/></svg
|
|
15
|
-
>
|
|
6
|
+
{...$$restProps}
|
|
7
|
+
class={classNames(svgClass, $$props.class)}
|
|
8
|
+
aria-hidden="true"
|
|
9
|
+
fill="currentColor"
|
|
10
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
11
|
+
viewBox="0 0 320 512"
|
|
12
|
+
><path
|
|
13
|
+
d="M137.4 406.6l-128-127.1C3.125 272.4 0 264.2 0 255.1s3.125-16.38 9.375-22.63l128-127.1c9.156-9.156 22.91-11.9 34.88-6.943S192 115.1 192 128v255.1c0 12.94-7.781 24.62-19.75 29.58S146.5 415.8 137.4 406.6z" /></svg>
|
|
@@ -3,13 +3,11 @@ export let svgClass = 'w-4 h-4';
|
|
|
3
3
|
</script>
|
|
4
4
|
|
|
5
5
|
<svg
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/></svg
|
|
15
|
-
>
|
|
6
|
+
{...$$restProps}
|
|
7
|
+
class={classNames(svgClass, $$props.class)}
|
|
8
|
+
aria-hidden="true"
|
|
9
|
+
fill="currentColor"
|
|
10
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
11
|
+
viewBox="0 0 320 512"
|
|
12
|
+
><path
|
|
13
|
+
d="M118.6 105.4l128 127.1C252.9 239.6 256 247.8 256 255.1s-3.125 16.38-9.375 22.63l-128 127.1c-9.156 9.156-22.91 11.9-34.88 6.943S64 396.9 64 383.1V128c0-12.94 7.781-24.62 19.75-29.58S109.5 96.23 118.6 105.4z" /></svg>
|
|
@@ -3,13 +3,11 @@ export let svgClass = 'w-4 h-4';
|
|
|
3
3
|
</script>
|
|
4
4
|
|
|
5
5
|
<svg
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/></svg
|
|
15
|
-
>
|
|
6
|
+
{...$$restProps}
|
|
7
|
+
class={classNames(svgClass, $$props.class)}
|
|
8
|
+
aria-hidden="true"
|
|
9
|
+
fill="currentColor"
|
|
10
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
11
|
+
viewBox="0 0 320 512"
|
|
12
|
+
><path
|
|
13
|
+
d="M9.39 265.4l127.1-128C143.6 131.1 151.8 128 160 128s16.38 3.125 22.63 9.375l127.1 128c9.156 9.156 11.9 22.91 6.943 34.88S300.9 320 287.1 320H32.01c-12.94 0-24.62-7.781-29.58-19.75S.2333 274.5 9.39 265.4z" /></svg>
|
package/dist/kbd/Kbd.svelte
CHANGED
package/dist/modals/Modal.svelte
CHANGED
|
@@ -11,6 +11,7 @@ export let autoclose = false;
|
|
|
11
11
|
export let permanent = false;
|
|
12
12
|
export let backdropClasses = 'bg-gray-900 bg-opacity-50 dark:bg-opacity-80';
|
|
13
13
|
export let defaultClass = 'relative flex flex-col mx-auto';
|
|
14
|
+
export let outsideclose = false;
|
|
14
15
|
const dispatch = createEventDispatcher();
|
|
15
16
|
$: dispatch(open ? 'open' : 'hide');
|
|
16
17
|
function prepareFocus(node) {
|
|
@@ -63,7 +64,9 @@ const sizes = {
|
|
|
63
64
|
const onAutoClose = (e) => {
|
|
64
65
|
const target = e.target;
|
|
65
66
|
if (autoclose && target?.tagName === 'BUTTON')
|
|
66
|
-
hide(e);
|
|
67
|
+
hide(e); // close on any button click
|
|
68
|
+
if (outsideclose && target === e.currentTarget)
|
|
69
|
+
hide(e); // close on click outside
|
|
67
70
|
};
|
|
68
71
|
const hide = (e) => {
|
|
69
72
|
e.preventDefault();
|
|
@@ -75,11 +78,6 @@ const isScrollable = (e) => [
|
|
|
75
78
|
e.scrollWidth > e.clientWidth && ['scroll', 'auto'].indexOf(getComputedStyle(e).overflowX) >= 0,
|
|
76
79
|
e.scrollHeight > e.clientHeight && ['scroll', 'auto'].indexOf(getComputedStyle(e).overflowY) >= 0
|
|
77
80
|
];
|
|
78
|
-
function preventWheelDefault(e) {
|
|
79
|
-
// @ts-ignore
|
|
80
|
-
const [x, y] = isScrollable(this);
|
|
81
|
-
return x || y || e.preventDefault();
|
|
82
|
-
}
|
|
83
81
|
function handleKeys(e) {
|
|
84
82
|
if (e.key === 'Escape' && !permanent)
|
|
85
83
|
return hide(e);
|
|
@@ -126,7 +124,6 @@ function handleKeys(e) {
|
|
|
126
124
|
{/if}
|
|
127
125
|
<!-- Modal body -->
|
|
128
126
|
<div
|
|
129
|
-
id="modal"
|
|
130
127
|
class="p-6 space-y-6 flex-1 overflow-y-auto overscroll-contain"
|
|
131
128
|
on:keydown|stopPropagation={handleKeys}
|
|
132
129
|
on:wheel|stopPropagation|passive>
|
|
@@ -22,7 +22,7 @@ declare const __propDef: {
|
|
|
22
22
|
draggable?: import("svelte/elements").Booleanish | null | undefined;
|
|
23
23
|
enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | null | undefined;
|
|
24
24
|
hidden?: boolean | null | undefined;
|
|
25
|
-
id?: string |
|
|
25
|
+
id?: string | undefined;
|
|
26
26
|
lang?: string | null | undefined;
|
|
27
27
|
part?: string | null | undefined;
|
|
28
28
|
placeholder?: string | null | undefined;
|
|
@@ -249,6 +249,8 @@ declare const __propDef: {
|
|
|
249
249
|
autoclose?: boolean | undefined;
|
|
250
250
|
permanent?: boolean | undefined;
|
|
251
251
|
backdropClasses?: string | undefined;
|
|
252
|
+
defaultClass?: string | undefined;
|
|
253
|
+
outsideclose?: boolean | undefined;
|
|
252
254
|
};
|
|
253
255
|
events: {
|
|
254
256
|
wheel: WheelEvent;
|
|
@@ -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;AAqK3C,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwC,CAAC;AACxD,MAAM,MAAM,UAAU,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAChD,MAAM,MAAM,WAAW,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC;AAClD,MAAM,MAAM,UAAU,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAEhD,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,oBAAoB,CAAC,UAAU,EAAE,WAAW,EAAE,UAAU,CAAC;CAC3F"}
|
package/dist/navbar/Menu.svelte
CHANGED
|
@@ -22,15 +22,15 @@ $: switch (variation) {
|
|
|
22
22
|
</script>
|
|
23
23
|
|
|
24
24
|
<svg
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
25
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
26
|
+
width={size}
|
|
27
|
+
height={size}
|
|
28
|
+
class={$$props.class}
|
|
29
|
+
{...$$restProps}
|
|
30
|
+
aria-label={ariaLabel}
|
|
31
|
+
fill="none"
|
|
32
|
+
{viewBox}
|
|
33
|
+
stroke-width="2"
|
|
34
|
+
on:click>
|
|
35
|
+
{@html svgpath}
|
|
36
36
|
</svg>
|
|
@@ -5,5 +5,5 @@ export let btnClass = 'ml-3 md:hidden';
|
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<ToolbarButton name="Open main menu" on:click {...$$restProps} class={classNames(btnClass, $$props.class)}>
|
|
8
|
-
|
|
8
|
+
<SidebarMenu class="h-6 w-6 shrink-0" variation="solid" />
|
|
9
9
|
</ToolbarButton>
|
|
@@ -22,15 +22,15 @@ export let ariaLabel = 'bars 3';
|
|
|
22
22
|
</script>
|
|
23
23
|
|
|
24
24
|
<svg
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
25
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
26
|
+
width={size}
|
|
27
|
+
height={size}
|
|
28
|
+
class={$$props.class}
|
|
29
|
+
{...$$restProps}
|
|
30
|
+
aria-label={ariaLabel}
|
|
31
|
+
fill="none"
|
|
32
|
+
{viewBox}
|
|
33
|
+
stroke-width="2"
|
|
34
|
+
on:click>
|
|
35
|
+
{@html svgpath}
|
|
36
36
|
</svg>
|