flowbite-svelte 0.25.21 → 0.25.22

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/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.25.22](https://github.com/themesberg/flowbite-svelte/compare/v0.25.21...v0.25.22) (2022-08-28)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * create icon slot for Alert so that users can add svg or svelte component ([45244ec](https://github.com/themesberg/flowbite-svelte/commit/45244ec05f99298d150751209980dce519873163))
11
+ * remove heros from: ([57f6928](https://github.com/themesberg/flowbite-svelte/commit/57f69282190f5d33d7ac17c6adeab36b89184f47))
12
+ * update Alert color type ([fd819fb](https://github.com/themesberg/flowbite-svelte/commit/fd819fb59d2d01f900ad76449afabfa22de6d5b1))
13
+ * update Timeline components ([4b47d6b](https://github.com/themesberg/flowbite-svelte/commit/4b47d6b5d09abad3b2d8fc29c2b38287726c44d7))
14
+
5
15
  ### [0.25.21](https://github.com/themesberg/flowbite-svelte/compare/v0.25.20...v0.25.21) (2022-08-27)
6
16
 
7
17
 
@@ -5,7 +5,6 @@ import CloseButton from '../utils/CloseButton.svelte';
5
5
  const dispatch = createEventDispatcher();
6
6
  setContext('background', true);
7
7
  export let color = 'blue';
8
- export let icon = null;
9
8
  export let dismissable = false;
10
9
  export let rounded = true;
11
10
  export let accent = false;
@@ -61,8 +60,8 @@ $: divClass = classNames('p-4 text-sm', bgClasses[color] ?? bgClasses.blue, acce
61
60
 
62
61
  <div id={$$props.id} class:hidden class={divClass} role="alert">
63
62
  <div class="flex items-center whitespace-pre-wrap">
64
- {#if icon}
65
- <svelte:component this={icon} class="flex-shrink-0 w-5 h-5 mr-3" />
63
+ {#if $$slots.icon}
64
+ <slot name="icon" />
66
65
  {/if}
67
66
 
68
67
  <slot />
@@ -80,8 +79,7 @@ $: divClass = classNames('p-4 text-sm', bgClasses[color] ?? bgClasses.blue, acce
80
79
  on:focus
81
80
  on:blur
82
81
  on:mouseenter
83
- on:mouseleave
84
- />
82
+ on:mouseleave />
85
83
  {/if}
86
84
  </div>
87
85
  <slot name="extra" />
@@ -1,11 +1,8 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
- import type { SvelteComponent } from 'svelte';
3
- import type { Colors } from '../types';
4
2
  declare const __propDef: {
5
3
  props: {
6
4
  [x: string]: any;
7
- color?: Colors;
8
- icon?: typeof SvelteComponent | null;
5
+ color?: 'gray' | 'blue' | 'red' | 'green' | 'yellow' | 'indigo' | 'purple' | 'pink' | 'dark' | 'custom';
9
6
  dismissable?: boolean;
10
7
  rounded?: boolean;
11
8
  accent?: boolean;
@@ -27,6 +24,7 @@ declare const __propDef: {
27
24
  [evt: string]: CustomEvent<any>;
28
25
  };
29
26
  slots: {
27
+ icon: {};
30
28
  default: {};
31
29
  extra: {};
32
30
  };
@@ -2,7 +2,10 @@
2
2
  import Button from '../buttons/Button.svelte';
3
3
  import Popper from '../utils/Popper.svelte';
4
4
  import classNames from 'classnames';
5
- import { ChevronUp, ChevronRight, ChevronDown, ChevronLeft } from 'svelte-heros';
5
+ import ChevronUp from '../utils/ChevronUp.svelte';
6
+ import ChevronRight from '../utils/ChevronRight.svelte';
7
+ import ChevronDown from '../utils/ChevronDown.svelte';
8
+ import ChevronLeft from '../utils/ChevronLeft.svelte';
6
9
  export let label = '';
7
10
  export let inline = false;
8
11
  export let arrowIcon = true;
@@ -30,8 +33,7 @@ $: popoverClass = classNames('rounded-lg shadow-sm', 'bg-white dark:bg-gray-800'
30
33
  class={popoverClass}
31
34
  trigger="click"
32
35
  on:show
33
- bind:open
34
- >
36
+ bind:open>
35
37
  <slot name="trigger" slot="trigger">
36
38
  {#if inline}
37
39
  <button class={labelClass} class:flex-row-reverse={icon == ChevronLeft}>
@@ -39,8 +41,7 @@ $: popoverClass = classNames('rounded-lg shadow-sm', 'bg-white dark:bg-gray-800'
39
41
  {#if arrowIcon}
40
42
  <svelte:component
41
43
  this={icon ?? ChevronDown}
42
- class={classNames('h-4 w-4', icon == ChevronLeft ? 'mr-2' : 'ml-2')}
43
- />
44
+ class={classNames('h-4 w-4', icon == ChevronLeft ? 'mr-2' : 'ml-2')} />
44
45
  {/if}
45
46
  </button>
46
47
  {:else}
@@ -49,8 +50,7 @@ $: popoverClass = classNames('rounded-lg shadow-sm', 'bg-white dark:bg-gray-800'
49
50
  {#if arrowIcon}
50
51
  <svelte:component
51
52
  this={icon ?? ChevronDown}
52
- class={classNames('h-4 w-4', icon == ChevronLeft ? 'mr-2' : 'ml-2')}
53
- />
53
+ class={classNames('h-4 w-4', icon == ChevronLeft ? 'mr-2' : 'ml-2')} />
54
54
  {/if}
55
55
  </Button>
56
56
  {/if}
package/index.d.ts CHANGED
@@ -124,3 +124,7 @@ export { default as Secondary } from './typography/Secondary.svelte';
124
124
  export { default as TextGradient } from './typography/TextGradient.svelte';
125
125
  export { default as Underline } from './typography/Underline.svelte';
126
126
  export { default as CloseButton } from './utils/CloseButton.svelte';
127
+ export { default as ChevronDown } from './utils/ChevronDown.svelte';
128
+ export { default as ChevronLeft } from './utils/ChevronLeft.svelte';
129
+ export { default as ChevronRight } from './utils/ChevronRight.svelte';
130
+ export { default as ChevronUp } from './utils/ChevronUp.svelte';
package/index.js CHANGED
@@ -158,3 +158,7 @@ export { default as TextGradient } from './typography/TextGradient.svelte';
158
158
  export { default as Underline } from './typography/Underline.svelte';
159
159
  // utils
160
160
  export { default as CloseButton } from './utils/CloseButton.svelte';
161
+ export { default as ChevronDown } from './utils/ChevronDown.svelte';
162
+ export { default as ChevronLeft } from './utils/ChevronLeft.svelte';
163
+ export { default as ChevronRight } from './utils/ChevronRight.svelte';
164
+ export { default as ChevronUp } from './utils/ChevronUp.svelte';
@@ -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="M3.75 6.75H20.25M3.75 12H20.25M3.75 17.25H20.25" stroke="${color}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> `;
7
+ let svgsolid = `<path fill-rule="evenodd" clip-rule="evenodd" d="M3 6.75C3 6.33579 3.33579 6 3.75 6H20.25C20.6642 6 21 6.33579 21 6.75C21 7.16421 20.6642 7.5 20.25 7.5H3.75C3.33579 7.5 3 7.16421 3 6.75ZM3 12C3 11.5858 3.33579 11.25 3.75 11.25H20.25C20.6642 11.25 21 11.5858 21 12C21 12.4142 20.6642 12.75 20.25 12.75H3.75C3.33579 12.75 3 12.4142 3 12ZM3 17.25C3 16.8358 3.33579 16.5 3.75 16.5H20.25C20.6642 16.5 21 16.8358 21 17.25C21 17.6642 20.6642 18 20.25 18H3.75C3.33579 18 3 17.6642 3 17.25Z" 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 = 'bars 3';
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 MenuProps = typeof __propDef.props;
18
+ export declare type MenuEvents = typeof __propDef.events;
19
+ export declare type MenuSlots = typeof __propDef.slots;
20
+ export default class Menu extends SvelteComponentTyped<MenuProps, MenuEvents, MenuSlots> {
21
+ }
22
+ export {};
@@ -1,5 +1,5 @@
1
1
  <script>import classNames from 'classnames';
2
- import { Menu } from 'svelte-heros';
2
+ import Menu from './Menu.svelte';
3
3
  export let btnClass = 'ml-3 inline-flex items-center rounded-lg p-2 text-sm text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600 md:hidden';
4
4
  </script>
5
5
 
@@ -7,8 +7,7 @@ export let btnClass = 'ml-3 inline-flex items-center rounded-lg p-2 text-sm text
7
7
  {...$$restProps}
8
8
  class={classNames(btnClass, $$props.class)}
9
9
  data-testid="navbar-toggle"
10
- on:click
11
- >
10
+ on:click>
12
11
  <span class="sr-only">Open main menu</span>
13
12
  <Menu class="h-6 w-6 shrink-0" />
14
13
  </button>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "0.25.21",
3
+ "version": "0.25.22",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "main": "index.js",
6
6
  "author": {
@@ -157,6 +157,7 @@
157
157
  "./list-group/ListItem.svelte": "./list-group/ListItem.svelte",
158
158
  "./megamenu/MegaMenu.svelte": "./megamenu/MegaMenu.svelte",
159
159
  "./modals/Modal.svelte": "./modals/Modal.svelte",
160
+ "./navbar/Menu.svelte": "./navbar/Menu.svelte",
160
161
  "./navbar/NavBrand.svelte": "./navbar/NavBrand.svelte",
161
162
  "./navbar/NavDropdown.svelte": "./navbar/NavDropdown.svelte",
162
163
  "./navbar/NavHamburger.svelte": "./navbar/NavHamburger.svelte",
@@ -174,6 +175,7 @@
174
175
  "./ratings/RatingComment.svelte": "./ratings/RatingComment.svelte",
175
176
  "./ratings/Review.svelte": "./ratings/Review.svelte",
176
177
  "./ratings/ScoreRating.svelte": "./ratings/ScoreRating.svelte",
178
+ "./ratings/Star.svelte": "./ratings/Star.svelte",
177
179
  "./sidebars/Sidebar.svelte": "./sidebars/Sidebar.svelte",
178
180
  "./sidebars/SidebarBrand.svelte": "./sidebars/SidebarBrand.svelte",
179
181
  "./sidebars/SidebarCta.svelte": "./sidebars/SidebarCta.svelte",
@@ -234,6 +236,10 @@
234
236
  "./typography/Secondary.svelte": "./typography/Secondary.svelte",
235
237
  "./typography/TextGradient.svelte": "./typography/TextGradient.svelte",
236
238
  "./typography/Underline.svelte": "./typography/Underline.svelte",
239
+ "./utils/ChevronDown.svelte": "./utils/ChevronDown.svelte",
240
+ "./utils/ChevronLeft.svelte": "./utils/ChevronLeft.svelte",
241
+ "./utils/ChevronRight.svelte": "./utils/ChevronRight.svelte",
242
+ "./utils/ChevronUp.svelte": "./utils/ChevronUp.svelte",
237
243
  "./utils/CloseButton.svelte": "./utils/CloseButton.svelte",
238
244
  "./utils/Popper.svelte": "./utils/Popper.svelte",
239
245
  "./utils/Wrapper.svelte": "./utils/Wrapper.svelte",
@@ -1,4 +1,4 @@
1
- <script>import { Star } from 'svelte-heros';
1
+ <script>import Star from './Star.svelte';
2
2
  export let divClass = 'flex items-center';
3
3
  export let size = '24';
4
4
  export let total = 5;
@@ -1,5 +1,5 @@
1
1
  <script>import Button from '../buttons/Button.svelte';
2
- import { Star } from 'svelte-heros';
2
+ import Star from './Star.svelte';
3
3
  // default is floor
4
4
  export let ceil = false;
5
5
  export let helpfullink = '';
@@ -16,8 +16,7 @@ let grayStars = comment.total - roundedRating;
16
16
  <p>
17
17
  {comment.user.name}
18
18
  <time datetime="2014-08-16 19:00" class="block text-sm text-gray-500 dark:text-gray-400"
19
- >{comment.user.joined}</time
20
- >
19
+ >{comment.user.joined}</time>
21
20
  </p>
22
21
  </div>
23
22
  </div>
@@ -29,7 +28,7 @@ let grayStars = comment.total - roundedRating;
29
28
  {/each}
30
29
  {#each Array(grayStars) as _, star}
31
30
  <slot name="ratingDown">
32
- <Star size="26" class="px-0.5 text-gray-300 dark:text-gray-500" />
31
+ <Star size="24" class="px-0.5 text-gray-300 dark:text-gray-500" />
33
32
  </slot>
34
33
  {/each}
35
34
  {#if comment.heading}
@@ -57,8 +56,7 @@ let grayStars = comment.total - roundedRating;
57
56
  <a
58
57
  href={abuselink}
59
58
  class="pl-4 text-sm font-medium text-blue-600 hover:underline dark:text-blue-500"
60
- >Report abuse</a
61
- >
59
+ >Report abuse</a>
62
60
  {/if}
63
61
  </div>
64
62
  {/if}
@@ -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="M11.4806 3.49883C11.6728 3.03685 12.3272 3.03685 12.5193 3.49883L14.6453 8.61028C14.7263 8.80504 14.9095 8.93811 15.1197 8.95497L20.638 9.39736C21.1367 9.43735 21.339 10.0598 20.959 10.3853L16.7546 13.9867C16.5945 14.1239 16.5245 14.3392 16.5734 14.5444L17.8579 19.9293C17.974 20.416 17.4446 20.8007 17.0176 20.5398L12.2932 17.6542C12.1132 17.5443 11.8868 17.5443 11.7068 17.6542L6.98238 20.5398C6.55539 20.8007 6.02594 20.416 6.14203 19.9293L7.42652 14.5444C7.47546 14.3392 7.4055 14.1239 7.24531 13.9867L3.04099 10.3853C2.661 10.0598 2.86323 9.43735 3.36197 9.39736L8.88022 8.95497C9.09048 8.93811 9.27363 8.80504 9.35464 8.61028L11.4806 3.49883Z" stroke="${color}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> `;
7
+ let svgsolid = `<path fill-rule="evenodd" clip-rule="evenodd" d="M10.7881 3.2108C11.2364 2.13286 12.7635 2.13286 13.2118 3.2108L15.2938 8.21652L20.6979 8.64976C21.8616 8.74306 22.3335 10.1953 21.4469 10.9549L17.3295 14.4818L18.5874 19.7553C18.8583 20.8909 17.6229 21.7884 16.6266 21.1799L11.9999 18.354L7.37329 21.1799C6.37697 21.7884 5.14158 20.8909 5.41246 19.7553L6.67038 14.4818L2.55303 10.9549C1.66639 10.1953 2.13826 8.74306 3.302 8.64976L8.70609 8.21652L10.7881 3.2108Z" 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 = 'star';
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 StarProps = typeof __propDef.props;
18
+ export declare type StarEvents = typeof __propDef.events;
19
+ export declare type StarSlots = typeof __propDef.slots;
20
+ export default class Star extends SvelteComponentTyped<StarProps, StarEvents, StarSlots> {
21
+ }
22
+ export {};
@@ -1,7 +1,7 @@
1
1
  <script>import classNames from 'classnames';
2
2
  import { slide } from 'svelte/transition';
3
3
  import { quintOut } from 'svelte/easing';
4
- import { ChevronDown } from 'svelte-heros';
4
+ import ChevronDown from '../utils/ChevronDown.svelte';
5
5
  export let btnClass = 'flex items-center p-2 w-full text-base font-normal text-gray-900 rounded-lg transition duration-75 group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700';
6
6
  export let label = '';
7
7
  export let spanClass = 'flex-1 ml-3 text-left whitespace-nowrap';
@@ -19,14 +19,12 @@ const handleDropdown = () => {
19
19
  on:click={() => handleDropdown()}
20
20
  type="button"
21
21
  class={classNames(btnClass, $$props.class)}
22
- aria-controls="sidebar-dropdown"
23
- >
22
+ aria-controls="sidebar-dropdown">
24
23
  <svelte:component
25
24
  this={icon.name}
26
25
  size={icon.size}
27
26
  color={icon.color}
28
- class="mr-2 {icon.class}"
29
- />
27
+ class="mr-2 {icon.class}" />
30
28
  <span class={spanClass} sidebar-toggle-item>{label}</span>
31
29
  <ChevronDown />
32
30
  </button>
@@ -34,8 +32,7 @@ const handleDropdown = () => {
34
32
  <ul
35
33
  id="dropdown"
36
34
  class={ulClass}
37
- transition:slide={{ delay: 250, duration: 300, easing: quintOut }}
38
- >
35
+ transition:slide={{ delay: 250, duration: 300, easing: quintOut }}>
39
36
  <slot />
40
37
  </ul>
41
38
  {/if}
@@ -1,6 +1,17 @@
1
- <script>export let olClass = 'relative border-l border-gray-200 dark:border-gray-700';
1
+ <script>import { setContext } from 'svelte';
2
+ export let customClass = '';
3
+ export let order = 'default';
4
+ setContext('order', order);
5
+ let olClasses = {
6
+ group: 'p-5 mb-4 bg-gray-50 rounded-lg border border-gray-100 dark:bg-gray-800 dark:border-gray-700',
7
+ horizontal: 'items-center sm:flex',
8
+ activity: 'relative border-l border-gray-200 dark:border-gray-700',
9
+ vertical: 'relative border-l border-gray-200 dark:border-gray-700',
10
+ default: 'relative border-l border-gray-200 dark:border-gray-700',
11
+ custom: customClass
12
+ };
2
13
  </script>
3
14
 
4
- <ol class={olClass}>
15
+ <ol class={olClasses[order]}>
5
16
  <slot />
6
17
  </ol>
@@ -1,7 +1,8 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
- olClass?: string;
4
+ customClass?: string;
5
+ order?: 'default' | 'vertical' | 'horizontal' | 'activity' | 'group' | 'custom';
5
6
  };
6
7
  events: {
7
8
  [evt: string]: CustomEvent<any>;
@@ -1,37 +1,126 @@
1
- <script>export let timelineItems;
1
+ <script>import classNames from 'classnames';
2
+ import { getContext } from 'svelte';
3
+ export let icon;
4
+ export let title = '';
5
+ export let date = '';
6
+ export let customDiv = '';
7
+ export let customTimeClass = '';
8
+ let order = 'default';
9
+ order = getContext('order');
10
+ const liClasses = {
11
+ default: 'mb-10 ml-4',
12
+ vertical: 'mb-10 ml-6',
13
+ horizontal: 'relative mb-6 sm:mb-0',
14
+ activity: 'mb-10 ml-6',
15
+ group: ''
16
+ };
17
+ const divClasses = {
18
+ 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',
19
+ 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',
20
+ horizontal: 'flex items-center',
21
+ 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',
22
+ group: 'p-5 mb-4 bg-gray-50 rounded-lg border border-gray-100 dark:bg-gray-800 dark:border-gray-700',
23
+ custom: customDiv
24
+ };
25
+ const timeClasses = {
26
+ default: 'mb-1 text-sm font-normal leading-none text-gray-400 dark:text-gray-500',
27
+ vertical: 'block mb-2 text-sm font-normal leading-none text-gray-400 dark:text-gray-500',
28
+ horizontal: 'block mb-2 text-sm font-normal leading-none text-gray-400 dark:text-gray-500',
29
+ activity: 'mb-1 text-xs font-normal text-gray-400 sm:order-last sm:mb-0',
30
+ group: 'text-lg font-semibold text-gray-900 dark:text-white',
31
+ custom: customTimeClass
32
+ };
33
+ const h3Class = classNames(order === 'vertical'
34
+ ? 'flex items-center mb-1 text-lg font-semibold text-gray-900 dark:text-white'
35
+ : 'text-lg font-semibold text-gray-900 dark:text-white');
2
36
  </script>
3
37
 
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}
38
+ <li class={liClasses[order]}>
39
+ {#if order === 'default'}
40
+ <div class={divClasses[order]} />
41
+ {#if date}
42
+ <time class={timeClasses[order]}>{date}</time>
43
+ {/if}
44
+ {#if title}
45
+ <h3 class={h3Class}>
46
+ {title}
47
+ </h3>
48
+ {/if}
49
+ <slot />
50
+ {:else if order === 'vertical'}
51
+ <div class={divClasses[order]} />
52
+ {#if icon}
53
+ {@html icon}
54
+ {:else}
55
+ <svg
56
+ aria-hidden="true"
57
+ class="w-3 h-3 text-blue-600 dark:text-blue-400"
58
+ fill="currentColor"
59
+ viewBox="0 0 20 20"
60
+ xmlns="http://www.w3.org/2000/svg"
61
+ ><path
62
+ fill-rule="evenodd"
63
+ 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"
64
+ clip-rule="evenodd" /></svg>
65
+ {/if}
66
+ {#if title}
67
+ <h3 class={h3Class}>
68
+ {title}
69
+ </h3>
70
+ {/if}
71
+ {#if date}
72
+ <time class={timeClasses[order]}>{date}</time>
73
+ {/if}
74
+ <slot />
75
+ {:else if order === 'horizontal'}
76
+ <div class={divClasses[order]} />
77
+ {#if icon}
78
+ {@html icon}
79
+ {:else}
80
+ <svg
81
+ aria-hidden="true"
82
+ class="w-3 h-3 text-blue-600 dark:text-blue-400"
83
+ fill="currentColor"
84
+ viewBox="0 0 20 20"
85
+ xmlns="http://www.w3.org/2000/svg"
86
+ ><path
87
+ fill-rule="evenodd"
88
+ 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"
89
+ clip-rule="evenodd" /></svg>
90
+ {/if}
91
+ {#if title}
92
+ <h3 class={h3Class}>
93
+ {title}
94
+ </h3>
95
+ {/if}
96
+ {#if date}
97
+ <time class={timeClasses[order]}>{date}</time>
98
+ {/if}
99
+ <slot />
100
+ {:else}
101
+ <div class={divClasses[order]} />
102
+ {#if icon}
103
+ {@html icon}
104
+ {:else}
105
+ <svg
106
+ aria-hidden="true"
107
+ class="w-3 h-3 text-blue-600 dark:text-blue-400"
108
+ fill="currentColor"
109
+ viewBox="0 0 20 20"
110
+ xmlns="http://www.w3.org/2000/svg"
111
+ ><path
112
+ fill-rule="evenodd"
113
+ 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"
114
+ clip-rule="evenodd" /></svg>
115
+ {/if}
116
+ {#if title}
117
+ <h3 class={h3Class}>
118
+ {title}
119
+ </h3>
120
+ {/if}
121
+ {#if date}
122
+ <time class={timeClasses[order]}>{date}</time>
123
+ {/if}
124
+ <slot />
125
+ {/if}
126
+ </li>
@@ -1,13 +1,19 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
- import type { TimelineItemType } from '../types';
2
+ import type { SvelteComponent } from 'svelte';
3
3
  declare const __propDef: {
4
4
  props: {
5
- timelineItems: TimelineItemType[];
5
+ icon: string | SvelteComponent;
6
+ title?: string;
7
+ date?: string;
8
+ customDiv?: string;
9
+ customTimeClass?: string;
6
10
  };
7
11
  events: {
8
12
  [evt: string]: CustomEvent<any>;
9
13
  };
10
- slots: {};
14
+ slots: {
15
+ default: {};
16
+ };
11
17
  };
12
18
  export declare type TimelineItemProps = typeof __propDef.props;
13
19
  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,55 @@
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;
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, 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
- >
11
+ <li class="mb-10 ml-6">
12
+ <span
13
+ 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">
14
+ {#if icon}
15
+ {@html icon}
16
+ {:else}
17
+ <svg
18
+ width="20"
19
+ height="20"
20
+ class="text-blue-600 dark:text-blue-300"
21
+ fill="currentColor"
22
+ viewBox="0 0 20 20"
23
+ xmlns="http://www.w3.org/2000/svg"
24
+ ><path
25
+ fill-rule="evenodd"
26
+ 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"
27
+ clip-rule="evenodd" /></svg>
26
28
  {/if}
27
- </li>
28
- {/each}
29
+ </span>
30
+
31
+ <h3 class="flex items-center mb-1 text-lg font-semibold text-gray-900 dark:text-white">
32
+ {title}
33
+ </h3>
34
+ <time class="block mb-2 text-sm font-normal leading-none text-gray-400 dark:text-gray-500"
35
+ >{date}</time>
36
+ <p class="mb-4 text-base font-normal text-gray-500 dark:text-gray-400">
37
+ {text}
38
+ </p>
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 { TimelineItemVerticalType } from '../types';
3
2
  declare const __propDef: {
4
3
  props: {
5
- timelineItems: TimelineItemVerticalType[];
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>;
@@ -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 {};