flowbite-svelte 0.25.21 → 0.25.24

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.
Files changed (40) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/alerts/Alert.svelte +3 -5
  3. package/alerts/Alert.svelte.d.ts +2 -4
  4. package/avatar/Avatar.svelte +4 -4
  5. package/dropdowns/Dropdown.svelte +25 -18
  6. package/dropdowns/Dropdown.svelte.d.ts +2 -3
  7. package/dropdowns/DropdownItem.svelte +1 -0
  8. package/index.d.ts +4 -0
  9. package/index.js +4 -0
  10. package/navbar/Menu.svelte +36 -0
  11. package/navbar/Menu.svelte.d.ts +22 -0
  12. package/navbar/NavHamburger.svelte +2 -3
  13. package/package.json +7 -1
  14. package/popover/Popover.svelte +3 -3
  15. package/popover/Popover.svelte.d.ts +1 -0
  16. package/ratings/Rating.svelte +1 -1
  17. package/ratings/RatingComment.svelte +4 -6
  18. package/ratings/Star.svelte +36 -0
  19. package/ratings/Star.svelte.d.ts +22 -0
  20. package/sidebars/SidebarDropdownWrapper.svelte +4 -7
  21. package/timelines/Timeline.svelte +13 -2
  22. package/timelines/Timeline.svelte.d.ts +2 -1
  23. package/timelines/TimelineItem.svelte +123 -35
  24. package/timelines/TimelineItem.svelte.d.ts +8 -3
  25. package/timelines/TimelineItemHorizontal.svelte +52 -21
  26. package/timelines/TimelineItemHorizontal.svelte.d.ts +6 -2
  27. package/timelines/TimelineItemVertical.svelte +30 -25
  28. package/timelines/TimelineItemVertical.svelte.d.ts +6 -3
  29. package/tooltips/Tooltip.svelte +12 -2
  30. package/tooltips/Tooltip.svelte.d.ts +2 -3
  31. package/utils/ChevronDown.svelte +36 -0
  32. package/utils/ChevronDown.svelte.d.ts +22 -0
  33. package/utils/ChevronLeft.svelte +36 -0
  34. package/utils/ChevronLeft.svelte.d.ts +22 -0
  35. package/utils/ChevronRight.svelte +36 -0
  36. package/utils/ChevronRight.svelte.d.ts +22 -0
  37. package/utils/ChevronUp.svelte +36 -0
  38. package/utils/ChevronUp.svelte.d.ts +22 -0
  39. package/utils/Popper.svelte +94 -66
  40. package/utils/Popper.svelte.d.ts +5 -6
@@ -1,37 +1,125 @@
1
- <script>export let timelineItems;
1
+ <script>import classNames from 'classnames';
2
+ import { getContext } from 'svelte';
3
+ export let title = '';
4
+ export let date = '';
5
+ export let customDiv = '';
6
+ export let customTimeClass = '';
7
+ let order = 'default';
8
+ order = getContext('order');
9
+ const liClasses = {
10
+ default: 'mb-10 ml-4',
11
+ vertical: 'mb-10 ml-6',
12
+ horizontal: 'relative mb-6 sm:mb-0',
13
+ activity: 'mb-10 ml-6',
14
+ group: ''
15
+ };
16
+ const divClasses = {
17
+ default: 'absolute w-3 h-3 bg-gray-200 rounded-full mt-1.5 -left-1.5 border border-white dark:border-gray-900 dark:bg-gray-700',
18
+ vertical: 'flex absolute -left-3 justify-center items-center w-6 h-6 bg-blue-200 rounded-full ring-8 ring-white dark:ring-gray-900 dark:bg-blue-900',
19
+ horizontal: 'flex items-center',
20
+ activity: 'flex absolute -left-3 justify-center items-center w-6 h-6 bg-blue-200 rounded-full ring-8 ring-white dark:ring-gray-900 dark:bg-blue-900',
21
+ group: 'p-5 mb-4 bg-gray-50 rounded-lg border border-gray-100 dark:bg-gray-800 dark:border-gray-700',
22
+ custom: customDiv
23
+ };
24
+ const timeClasses = {
25
+ default: 'mb-1 text-sm font-normal leading-none text-gray-400 dark:text-gray-500',
26
+ vertical: 'block mb-2 text-sm font-normal leading-none text-gray-400 dark:text-gray-500',
27
+ horizontal: 'block mb-2 text-sm font-normal leading-none text-gray-400 dark:text-gray-500',
28
+ activity: 'mb-1 text-xs font-normal text-gray-400 sm:order-last sm:mb-0',
29
+ group: 'text-lg font-semibold text-gray-900 dark:text-white',
30
+ custom: customTimeClass
31
+ };
32
+ const h3Class = classNames(order === 'vertical'
33
+ ? 'flex items-center mb-1 text-lg font-semibold text-gray-900 dark:text-white'
34
+ : 'text-lg font-semibold text-gray-900 dark:text-white');
2
35
  </script>
3
36
 
4
- {#each timelineItems as { date, title, text, href, linkname }}
5
- <li class="mb-10 ml-4">
6
- <div
7
- class="absolute w-3 h-3 bg-gray-200 rounded-full mt-1.5 -left-1.5 border border-white dark:border-gray-900 dark:bg-gray-700"
8
- />
9
- <time class="mb-1 text-sm font-normal leading-none text-gray-400 dark:text-gray-500"
10
- >{date}</time
11
- >
12
- <h3 class="text-lg font-semibold text-gray-900 dark:text-white">
13
- {title}
14
- </h3>
15
- <p class="mb-4 text-base font-normal text-gray-500 dark:text-gray-400">
16
- {text}
17
- </p>
18
- {#if href}
19
- <a
20
- {href}
21
- class="inline-flex items-center py-2 px-4 text-sm font-medium text-gray-900 bg-white rounded-lg border border-gray-200 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:outline-none focus:ring-gray-200 focus:text-blue-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700 dark:focus:ring-gray-700"
22
- >{linkname}
23
- <svg
24
- class="ml-2 w-3 h-3"
25
- fill="currentColor"
26
- viewBox="0 0 20 20"
27
- xmlns="http://www.w3.org/2000/svg"
28
- ><path
29
- fill-rule="evenodd"
30
- d="M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z"
31
- clip-rule="evenodd"
32
- /></svg
33
- ></a
34
- >
35
- {/if}
36
- </li>
37
- {/each}
37
+ <li class={liClasses[order]}>
38
+ {#if order === 'default'}
39
+ <div class={divClasses[order]} />
40
+ {#if date}
41
+ <time class={timeClasses[order]}>{date}</time>
42
+ {/if}
43
+ {#if title}
44
+ <h3 class={h3Class}>
45
+ {title}
46
+ </h3>
47
+ {/if}
48
+ <slot />
49
+ {:else if order === 'vertical'}
50
+ <div class={divClasses[order]} />
51
+ {#if $$slots.icon}
52
+ <slot name="icon" />
53
+ {:else}
54
+ <svg
55
+ aria-hidden="true"
56
+ class="w-3 h-3 text-blue-600 dark:text-blue-400"
57
+ fill="currentColor"
58
+ viewBox="0 0 20 20"
59
+ xmlns="http://www.w3.org/2000/svg"
60
+ ><path
61
+ fill-rule="evenodd"
62
+ d="M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z"
63
+ clip-rule="evenodd" /></svg>
64
+ {/if}
65
+ {#if title}
66
+ <h3 class={h3Class}>
67
+ {title}
68
+ </h3>
69
+ {/if}
70
+ {#if date}
71
+ <time class={timeClasses[order]}>{date}</time>
72
+ {/if}
73
+ <slot />
74
+ {:else if order === 'horizontal'}
75
+ <div class={divClasses[order]} />
76
+ {#if $$slots.icon}
77
+ <slot name="icon" />
78
+ {:else}
79
+ <svg
80
+ aria-hidden="true"
81
+ class="w-3 h-3 text-blue-600 dark:text-blue-400"
82
+ fill="currentColor"
83
+ viewBox="0 0 20 20"
84
+ xmlns="http://www.w3.org/2000/svg"
85
+ ><path
86
+ fill-rule="evenodd"
87
+ d="M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z"
88
+ clip-rule="evenodd" /></svg>
89
+ {/if}
90
+ {#if title}
91
+ <h3 class={h3Class}>
92
+ {title}
93
+ </h3>
94
+ {/if}
95
+ {#if date}
96
+ <time class={timeClasses[order]}>{date}</time>
97
+ {/if}
98
+ <slot />
99
+ {:else}
100
+ <div class={divClasses[order]} />
101
+ {#if $$slots.icon}
102
+ <slot name="icon" />
103
+ {:else}
104
+ <svg
105
+ aria-hidden="true"
106
+ class="w-3 h-3 text-blue-600 dark:text-blue-400"
107
+ fill="currentColor"
108
+ viewBox="0 0 20 20"
109
+ xmlns="http://www.w3.org/2000/svg"
110
+ ><path
111
+ fill-rule="evenodd"
112
+ d="M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z"
113
+ clip-rule="evenodd" /></svg>
114
+ {/if}
115
+ {#if title}
116
+ <h3 class={h3Class}>
117
+ {title}
118
+ </h3>
119
+ {/if}
120
+ {#if date}
121
+ <time class={timeClasses[order]}>{date}</time>
122
+ {/if}
123
+ <slot />
124
+ {/if}
125
+ </li>
@@ -1,13 +1,18 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
- import type { TimelineItemType } from '../types';
3
2
  declare const __propDef: {
4
3
  props: {
5
- timelineItems: TimelineItemType[];
4
+ title?: string;
5
+ date?: string;
6
+ customDiv?: string;
7
+ customTimeClass?: string;
6
8
  };
7
9
  events: {
8
10
  [evt: string]: CustomEvent<any>;
9
11
  };
10
- slots: {};
12
+ slots: {
13
+ default: {};
14
+ icon: {};
15
+ };
11
16
  };
12
17
  export declare type TimelineItemProps = typeof __propDef.props;
13
18
  export declare type TimelineItemEvents = typeof __propDef.events;
@@ -1,24 +1,55 @@
1
- <script>export let timelineItems;
1
+ <script>// import type { TimelineItemHorizontalType } from '../types';
2
+ // export let timelineItems: TimelineItemHorizontalType[];
3
+ export let title;
4
+ export let date;
5
+ export let href;
6
+ export let text;
7
+ export let linkname;
8
+ export let icon;
2
9
  </script>
3
10
 
4
- {#each timelineItems as { date, title, text, icon, iconClass, iconSize }}
5
- <li class="relative mb-6 sm:mb-0">
6
- <div class="flex items-center">
7
- <div class="flex z-10 justify-center items-center w-6 h-6 bg-blue-200 rounded-full ring-0 ring-white dark:bg-blue-900 sm:ring-8 dark:ring-gray-900 shrink-0">
8
- {#if icon}
9
- <svelte:component this={icon} size={iconSize} class={iconClass} />
10
- {:else}
11
- <svg class="w-3 h-3 text-blue-600 dark:text-blue-300" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z" clip-rule="evenodd" /></svg>
12
- {/if}
13
- </div>
14
- <div class="hidden sm:flex w-full bg-gray-200 h-0.5 dark:bg-gray-700" />
11
+ <li class="relative mb-6 sm:mb-0">
12
+ <div class="flex items-center">
13
+ <div
14
+ class="flex z-10 justify-center items-center w-6 h-6 bg-blue-200 rounded-full ring-0 ring-white dark:bg-blue-900 sm:ring-8 dark:ring-gray-900 shrink-0">
15
+ {#if icon}
16
+ {@html icon}
17
+ {:else}
18
+ <svg
19
+ class="w-3 h-3 text-blue-600 dark:text-blue-300"
20
+ fill="currentColor"
21
+ viewBox="0 0 20 20"
22
+ xmlns="http://www.w3.org/2000/svg"
23
+ ><path
24
+ fill-rule="evenodd"
25
+ d="M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z"
26
+ clip-rule="evenodd" /></svg>
27
+ {/if}
15
28
  </div>
16
- <div class="mt-3 sm:pr-8">
17
- <h3 class="text-lg font-semibold text-gray-900 dark:text-white">{title}</h3>
18
- <time class="block mb-2 text-sm font-normal leading-none text-gray-400 dark:text-gray-500">{date}</time>
19
- <p class="text-base font-normal text-gray-500 dark:text-gray-400">
20
- {text}
21
- </p>
22
- </div>
23
- </li>
24
- {/each}
29
+ <div class="hidden sm:flex w-full bg-gray-200 h-0.5 dark:bg-gray-700" />
30
+ </div>
31
+ <div class="mt-3 sm:pr-8">
32
+ <h3 class="text-lg font-semibold text-gray-900 dark:text-white">{title}</h3>
33
+ <time class="block mb-2 text-sm font-normal leading-none text-gray-400 dark:text-gray-500"
34
+ >{date}</time>
35
+ <p class="text-base font-normal text-gray-500 dark:text-gray-400">
36
+ {text}
37
+ </p>
38
+ </div>
39
+ {#if href}
40
+ <a
41
+ {href}
42
+ class="inline-flex items-center py-2 px-4 text-sm font-medium text-gray-900 bg-white rounded-lg border border-gray-200 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:outline-none focus:ring-gray-200 focus:text-blue-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700 dark:focus:ring-gray-700"
43
+ >{linkname}
44
+ <svg
45
+ class="ml-2 w-3 h-3"
46
+ fill="currentColor"
47
+ viewBox="0 0 20 20"
48
+ xmlns="http://www.w3.org/2000/svg"
49
+ ><path
50
+ fill-rule="evenodd"
51
+ d="M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z"
52
+ clip-rule="evenodd" /></svg
53
+ ></a>
54
+ {/if}
55
+ </li>
@@ -1,8 +1,12 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
- import type { TimelineItemHorizontalType } from '../types';
3
2
  declare const __propDef: {
4
3
  props: {
5
- timelineItems: TimelineItemHorizontalType[];
4
+ title: string;
5
+ date: string;
6
+ href: string;
7
+ text: string;
8
+ linkname: string;
9
+ icon: string;
6
10
  };
7
11
  events: {
8
12
  [evt: string]: CustomEvent<any>;
@@ -1,28 +1,33 @@
1
- <script>export let timelineItems;
1
+ <script>// import type { TimelineItemVerticalType } from '../types';
2
+ // export let timelineItems: TimelineItemVerticalType[];
3
+ export let title;
4
+ export let date;
2
5
  </script>
3
6
 
4
- {#each timelineItems as { date, title, text, href, linkname, icon, iconClass, iconSize }}
5
- <li class="mb-10 ml-6">
6
- <span class="flex absolute -left-3 justify-center items-center w-6 h-6 bg-blue-200 rounded-full ring-8 ring-white dark:ring-gray-900 dark:bg-blue-900">
7
- {#if icon}
8
- <svelte:component this={icon} size={iconSize} class={iconClass} />
9
- {:else}
10
- <svg width="20" height="20" class="text-blue-600 dark:text-blue-300" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z" clip-rule="evenodd" /></svg>
11
- {/if}
12
- </span>
13
-
14
- <h3 class="flex items-center mb-1 text-lg font-semibold text-gray-900 dark:text-white">
15
- {title}
16
- </h3>
17
- <time class="block mb-2 text-sm font-normal leading-none text-gray-400 dark:text-gray-500">{date}</time>
18
- <p class="mb-4 text-base font-normal text-gray-500 dark:text-gray-400">
19
- {text}
20
- </p>
21
- {#if href}
22
- <a {href} class="inline-flex items-center py-2 px-4 text-sm font-medium text-gray-900 bg-white rounded-lg border border-gray-200 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:outline-none focus:ring-gray-200 focus:text-blue-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700 dark:focus:ring-gray-700"
23
- >{linkname}
24
- <svg class="ml-2 w-3 h-3" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z" clip-rule="evenodd" /></svg></a
25
- >
7
+ <li class="mb-10 ml-6">
8
+ <span
9
+ class="flex absolute -left-3 justify-center items-center w-6 h-6 bg-blue-200 rounded-full ring-8 ring-white dark:ring-gray-900 dark:bg-blue-900">
10
+ {#if $$slots.icon}
11
+ <slot name="icon" />
12
+ {:else}
13
+ <svg
14
+ width="20"
15
+ height="20"
16
+ class="text-blue-600 dark:text-blue-300"
17
+ fill="currentColor"
18
+ viewBox="0 0 20 20"
19
+ xmlns="http://www.w3.org/2000/svg"
20
+ ><path
21
+ fill-rule="evenodd"
22
+ d="M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z"
23
+ clip-rule="evenodd" /></svg>
26
24
  {/if}
27
- </li>
28
- {/each}
25
+ </span>
26
+
27
+ <h3 class="flex items-center mb-1 text-lg font-semibold text-gray-900 dark:text-white">
28
+ {title}
29
+ </h3>
30
+ <time class="block mb-2 text-sm font-normal leading-none text-gray-400 dark:text-gray-500"
31
+ >{date}</time>
32
+ <slot />
33
+ </li>
@@ -1,13 +1,16 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
- import type { TimelineItemVerticalType } from '../types';
3
2
  declare const __propDef: {
4
3
  props: {
5
- timelineItems: TimelineItemVerticalType[];
4
+ title: string;
5
+ date: string;
6
6
  };
7
7
  events: {
8
8
  [evt: string]: CustomEvent<any>;
9
9
  };
10
- slots: {};
10
+ slots: {
11
+ icon: {};
12
+ default: {};
13
+ };
11
14
  };
12
15
  export declare type TimelineItemVerticalProps = typeof __propDef.props;
13
16
  export declare type TimelineItemVerticalEvents = typeof __propDef.events;
@@ -1,9 +1,11 @@
1
1
  <script>import Popper from '../utils/Popper.svelte';
2
2
  import classNames from 'classnames';
3
+ import generateId from '../utils/generateId';
3
4
  export let content = '';
4
5
  export let style = 'dark';
5
6
  export let tipColor = '';
6
7
  export let tipClass = 'py-2 px-3 text-sm font-medium rounded-lg shadow-sm tooltip';
8
+ export let triggeredBy;
7
9
  const tipStyleClasses = {
8
10
  dark: 'border border-gray-800 bg-gray-900 text-white dark:bg-gray-700 dark:border-gray-600',
9
11
  light: 'border border-gray-200 bg-white text-gray-900',
@@ -12,9 +14,17 @@ const tipStyleClasses = {
12
14
  };
13
15
  let toolTipClass;
14
16
  $: toolTipClass = classNames(tipClass, tipStyleClasses[style], $$props.class);
17
+ let id = generateId();
15
18
  </script>
16
19
 
17
- <Popper activeContent={false} {...$$restProps} class={toolTipClass} on:show>
18
- <slot slot="trigger" />
20
+ <div {id}>
21
+ <slot />
22
+ </div>
23
+ <Popper
24
+ activeContent={false}
25
+ triggeredBy={triggeredBy ?? '#' + id}
26
+ {...$$restProps}
27
+ class={toolTipClass}
28
+ on:show>
19
29
  <slot name="content">{content}</slot>
20
30
  </Popper>
@@ -6,6 +6,7 @@ declare const __propDef: {
6
6
  style?: 'dark' | 'light' | 'auto' | 'custom';
7
7
  tipColor?: string;
8
8
  tipClass?: string;
9
+ triggeredBy: string;
9
10
  };
10
11
  events: {
11
12
  show: CustomEvent<any>;
@@ -13,9 +14,7 @@ declare const __propDef: {
13
14
  [evt: string]: CustomEvent<any>;
14
15
  };
15
16
  slots: {
16
- default: {
17
- slot: string;
18
- };
17
+ default: {};
19
18
  content: {};
20
19
  };
21
20
  };
@@ -0,0 +1,36 @@
1
+ <script>export let size = '24';
2
+ export let color = 'currentColor';
3
+ export let variation = 'outline';
4
+ let viewBox;
5
+ let svgpath;
6
+ let svgoutline = `<path d="M19.5 8.25L12 15.75L4.5 8.25" stroke="${color}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> `;
7
+ let svgsolid = `<path fill-rule="evenodd" clip-rule="evenodd" d="M12.5303 16.2803C12.2374 16.5732 11.7626 16.5732 11.4697 16.2803L3.96967 8.78033C3.67678 8.48744 3.67678 8.01256 3.96967 7.71967C4.26256 7.42678 4.73744 7.42678 5.03033 7.71967L12 14.6893L18.9697 7.71967C19.2626 7.42678 19.7374 7.42678 20.0303 7.71967C20.3232 8.01256 20.3232 8.48744 20.0303 8.78033L12.5303 16.2803Z" fill="${color}"/> `;
8
+ $: switch (variation) {
9
+ case 'outline':
10
+ svgpath = svgoutline;
11
+ viewBox = '0 0 24 24';
12
+ break;
13
+ case 'solid':
14
+ svgpath = svgsolid;
15
+ viewBox = '0 0 24 24';
16
+ break;
17
+ default:
18
+ svgpath = svgoutline;
19
+ viewBox = '0 0 24 24';
20
+ }
21
+ export let ariaLabel = 'chevron down';
22
+ </script>
23
+
24
+ <svg
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
+ </svg>
@@ -0,0 +1,22 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ [x: string]: any;
5
+ size?: string;
6
+ color?: string;
7
+ variation?: 'solid' | 'outline';
8
+ ariaLabel?: string;
9
+ };
10
+ events: {
11
+ click: MouseEvent;
12
+ } & {
13
+ [evt: string]: CustomEvent<any>;
14
+ };
15
+ slots: {};
16
+ };
17
+ export declare type ChevronDownProps = typeof __propDef.props;
18
+ export declare type ChevronDownEvents = typeof __propDef.events;
19
+ export declare type ChevronDownSlots = typeof __propDef.slots;
20
+ export default class ChevronDown extends SvelteComponentTyped<ChevronDownProps, ChevronDownEvents, ChevronDownSlots> {
21
+ }
22
+ export {};
@@ -0,0 +1,36 @@
1
+ <script>export let size = '24';
2
+ export let color = 'currentColor';
3
+ export let variation = 'outline';
4
+ let viewBox;
5
+ let svgpath;
6
+ let svgoutline = `<path d="M15.75 19.5L8.25 12L15.75 4.5" stroke="${color}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> `;
7
+ let svgsolid = `<path fill-rule="evenodd" clip-rule="evenodd" d="M7.71967 12.5303C7.42678 12.2374 7.42678 11.7626 7.71967 11.4697L15.2197 3.96967C15.5126 3.67678 15.9874 3.67678 16.2803 3.96967C16.5732 4.26256 16.5732 4.73744 16.2803 5.03033L9.31066 12L16.2803 18.9697C16.5732 19.2626 16.5732 19.7374 16.2803 20.0303C15.9874 20.3232 15.5126 20.3232 15.2197 20.0303L7.71967 12.5303Z" fill="${color}"/> `;
8
+ $: switch (variation) {
9
+ case 'outline':
10
+ svgpath = svgoutline;
11
+ viewBox = '0 0 24 24';
12
+ break;
13
+ case 'solid':
14
+ svgpath = svgsolid;
15
+ viewBox = '0 0 24 24';
16
+ break;
17
+ default:
18
+ svgpath = svgoutline;
19
+ viewBox = '0 0 24 24';
20
+ }
21
+ export let ariaLabel = 'chevron left';
22
+ </script>
23
+
24
+ <svg
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
+ </svg>
@@ -0,0 +1,22 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ [x: string]: any;
5
+ size?: string;
6
+ color?: string;
7
+ variation?: 'solid' | 'outline';
8
+ ariaLabel?: string;
9
+ };
10
+ events: {
11
+ click: MouseEvent;
12
+ } & {
13
+ [evt: string]: CustomEvent<any>;
14
+ };
15
+ slots: {};
16
+ };
17
+ export declare type ChevronLeftProps = typeof __propDef.props;
18
+ export declare type ChevronLeftEvents = typeof __propDef.events;
19
+ export declare type ChevronLeftSlots = typeof __propDef.slots;
20
+ export default class ChevronLeft extends SvelteComponentTyped<ChevronLeftProps, ChevronLeftEvents, ChevronLeftSlots> {
21
+ }
22
+ export {};
@@ -0,0 +1,36 @@
1
+ <script>export let size = '24';
2
+ export let color = 'currentColor';
3
+ export let variation = 'outline';
4
+ let viewBox;
5
+ let svgpath;
6
+ let svgoutline = `<path d="M8.25 4.5L15.75 12L8.25 19.5" stroke="${color}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> `;
7
+ let svgsolid = `<path fill-rule="evenodd" clip-rule="evenodd" d="M16.2803 11.4697C16.5732 11.7626 16.5732 12.2374 16.2803 12.5303L8.78033 20.0303C8.48744 20.3232 8.01256 20.3232 7.71967 20.0303C7.42678 19.7374 7.42678 19.2626 7.71967 18.9697L14.6893 12L7.71967 5.03033C7.42678 4.73744 7.42678 4.26256 7.71967 3.96967C8.01256 3.67678 8.48744 3.67678 8.78033 3.96967L16.2803 11.4697Z" fill="${color}"/> `;
8
+ $: switch (variation) {
9
+ case 'outline':
10
+ svgpath = svgoutline;
11
+ viewBox = '0 0 24 24';
12
+ break;
13
+ case 'solid':
14
+ svgpath = svgsolid;
15
+ viewBox = '0 0 24 24';
16
+ break;
17
+ default:
18
+ svgpath = svgoutline;
19
+ viewBox = '0 0 24 24';
20
+ }
21
+ export let ariaLabel = 'chevron right';
22
+ </script>
23
+
24
+ <svg
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
+ </svg>
@@ -0,0 +1,22 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ [x: string]: any;
5
+ size?: string;
6
+ color?: string;
7
+ variation?: 'solid' | 'outline';
8
+ ariaLabel?: string;
9
+ };
10
+ events: {
11
+ click: MouseEvent;
12
+ } & {
13
+ [evt: string]: CustomEvent<any>;
14
+ };
15
+ slots: {};
16
+ };
17
+ export declare type ChevronRightProps = typeof __propDef.props;
18
+ export declare type ChevronRightEvents = typeof __propDef.events;
19
+ export declare type ChevronRightSlots = typeof __propDef.slots;
20
+ export default class ChevronRight extends SvelteComponentTyped<ChevronRightProps, ChevronRightEvents, ChevronRightSlots> {
21
+ }
22
+ export {};
@@ -0,0 +1,36 @@
1
+ <script>export let size = '24';
2
+ export let color = 'currentColor';
3
+ export let variation = 'outline';
4
+ let viewBox;
5
+ let svgpath;
6
+ let svgoutline = `<path d="M4.5 15.75L12 8.25L19.5 15.75" stroke="${color}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> `;
7
+ let svgsolid = `<path fill-rule="evenodd" clip-rule="evenodd" d="M11.4697 7.71967C11.7626 7.42678 12.2374 7.42678 12.5303 7.71967L20.0303 15.2197C20.3232 15.5126 20.3232 15.9874 20.0303 16.2803C19.7374 16.5732 19.2626 16.5732 18.9697 16.2803L12 9.31066L5.03033 16.2803C4.73744 16.5732 4.26256 16.5732 3.96967 16.2803C3.67678 15.9874 3.67678 15.5126 3.96967 15.2197L11.4697 7.71967Z" fill="${color}"/> `;
8
+ $: switch (variation) {
9
+ case 'outline':
10
+ svgpath = svgoutline;
11
+ viewBox = '0 0 24 24';
12
+ break;
13
+ case 'solid':
14
+ svgpath = svgsolid;
15
+ viewBox = '0 0 24 24';
16
+ break;
17
+ default:
18
+ svgpath = svgoutline;
19
+ viewBox = '0 0 24 24';
20
+ }
21
+ export let ariaLabel = 'chevron up';
22
+ </script>
23
+
24
+ <svg
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
+ </svg>
@@ -0,0 +1,22 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ [x: string]: any;
5
+ size?: string;
6
+ color?: string;
7
+ variation?: 'solid' | 'outline';
8
+ ariaLabel?: string;
9
+ };
10
+ events: {
11
+ click: MouseEvent;
12
+ } & {
13
+ [evt: string]: CustomEvent<any>;
14
+ };
15
+ slots: {};
16
+ };
17
+ export declare type ChevronUpProps = typeof __propDef.props;
18
+ export declare type ChevronUpEvents = typeof __propDef.events;
19
+ export declare type ChevronUpSlots = typeof __propDef.slots;
20
+ export default class ChevronUp extends SvelteComponentTyped<ChevronUpProps, ChevronUpEvents, ChevronUpSlots> {
21
+ }
22
+ export {};