flowbite-svelte 0.26.0 → 0.26.1

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,26 @@
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.26.1](https://github.com/themesberg/flowbite-svelte/compare/v0.26.0...v0.26.1) (2022-08-29)
6
+
7
+
8
+ ### Features
9
+
10
+ * new tab components and page ([7c53437](https://github.com/themesberg/flowbite-svelte/commit/7c534377c31384b609774db19b0bace7fee3d5cb))
11
+ * working on Tabs ([201c124](https://github.com/themesberg/flowbite-svelte/commit/201c124e33bed0d1b13cfe2e3f6ba5ea0bfc6c1c))
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * fixing the tab page layout problem ([bc3b7bf](https://github.com/themesberg/flowbite-svelte/commit/bc3b7bf32100abbbab3fede7fa6a912ff81d00f6))
17
+ * remove heros from cards page ([c46f0b3](https://github.com/themesberg/flowbite-svelte/commit/c46f0b3f9a16793f12d68fd3d1b9e973dd1f7b4a))
18
+ * remove heros from megamenu and list-group page ([9980b7d](https://github.com/themesberg/flowbite-svelte/commit/9980b7d98668c0356217dd3aac810c52cd5e0e51))
19
+ * remove heros from popover page ([eeff79f](https://github.com/themesberg/flowbite-svelte/commit/eeff79f53733a8f5cbb480eead692f111f96b07c))
20
+ * remove heros from sidebars page ([a3981a0](https://github.com/themesberg/flowbite-svelte/commit/a3981a09b6b36dcbcb90cfad789bee6a10dae9a1))
21
+ * remove heros icons from select and toggle pages ([fba7660](https://github.com/themesberg/flowbite-svelte/commit/fba7660c1bf08c47a9d0200db545f0b1fce457a9))
22
+ * remove unused icon prop ([10e8c81](https://github.com/themesberg/flowbite-svelte/commit/10e8c81dae9e0470ef875fc95dd7d89decdae732))
23
+ * Review component and review in the ratings page ([afe6972](https://github.com/themesberg/flowbite-svelte/commit/afe69726d08a3cad7de7f29db131909816bc9c3e))
24
+
5
25
  ## [0.26.0](https://github.com/themesberg/flowbite-svelte/compare/v0.25.24...v0.26.0) (2022-08-29)
6
26
 
7
27
 
package/index.d.ts CHANGED
@@ -98,6 +98,10 @@ export { default as IconTabs } from './tabs/IconTabs.svelte';
98
98
  export { default as PillTabs } from './tabs/PillTabs.svelte';
99
99
  export { default as TabContent } from './tabs/TabContent.svelte';
100
100
  export { default as UnderlineTabs } from './tabs/UnderlineTabs.svelte';
101
+ export { default as TabHead } from './tabs/TabHead.svelte';
102
+ export { default as TabHeadItem } from './tabs/TabHeadItem.svelte';
103
+ export { default as TabContentItem } from './tabs/TabContentItem.svelte';
104
+ export { default as TabWrapper } from './tabs/TabWrapper.svelte';
101
105
  export { default as Group } from './timelines/Group.svelte';
102
106
  export { default as GroupItem } from './timelines/GroupItem.svelte';
103
107
  export { default as Activity } from './timelines/Activity.svelte';
@@ -128,3 +132,5 @@ export { default as ChevronDown } from './utils/ChevronDown.svelte';
128
132
  export { default as ChevronLeft } from './utils/ChevronLeft.svelte';
129
133
  export { default as ChevronRight } from './utils/ChevronRight.svelte';
130
134
  export { default as ChevronUp } from './utils/ChevronUp.svelte';
135
+ export { default as InformationCircle } from './utils/InformationCircle.svelte';
136
+ export { default as UserCircle } from './utils/UserCircle.svelte';
package/index.js CHANGED
@@ -126,6 +126,11 @@ export { default as IconTabs } from './tabs/IconTabs.svelte';
126
126
  export { default as PillTabs } from './tabs/PillTabs.svelte';
127
127
  export { default as TabContent } from './tabs/TabContent.svelte';
128
128
  export { default as UnderlineTabs } from './tabs/UnderlineTabs.svelte';
129
+ // Tabs new
130
+ export { default as TabHead } from './tabs/TabHead.svelte';
131
+ export { default as TabHeadItem } from './tabs/TabHeadItem.svelte';
132
+ export { default as TabContentItem } from './tabs/TabContentItem.svelte';
133
+ export { default as TabWrapper } from './tabs/TabWrapper.svelte';
129
134
  // Timeline
130
135
  export { default as Group } from './timelines/Group.svelte';
131
136
  export { default as GroupItem } from './timelines/GroupItem.svelte';
@@ -162,3 +167,5 @@ export { default as ChevronDown } from './utils/ChevronDown.svelte';
162
167
  export { default as ChevronLeft } from './utils/ChevronLeft.svelte';
163
168
  export { default as ChevronRight } from './utils/ChevronRight.svelte';
164
169
  export { default as ChevronUp } from './utils/ChevronUp.svelte';
170
+ export { default as InformationCircle } from './utils/InformationCircle.svelte';
171
+ export { default as UserCircle } from './utils/UserCircle.svelte';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "0.26.0",
3
+ "version": "0.26.1",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "main": "index.js",
6
6
  "author": {
@@ -207,6 +207,11 @@
207
207
  "./tabs/InteractiveTabs.svelte": "./tabs/InteractiveTabs.svelte",
208
208
  "./tabs/PillTabs.svelte": "./tabs/PillTabs.svelte",
209
209
  "./tabs/TabContent.svelte": "./tabs/TabContent.svelte",
210
+ "./tabs/TabContentItem.svelte": "./tabs/TabContentItem.svelte",
211
+ "./tabs/TabContentWrapper.svelte": "./tabs/TabContentWrapper.svelte",
212
+ "./tabs/TabHead.svelte": "./tabs/TabHead.svelte",
213
+ "./tabs/TabHeadItem.svelte": "./tabs/TabHeadItem.svelte",
214
+ "./tabs/TabWrapper.svelte": "./tabs/TabWrapper.svelte",
210
215
  "./tabs/Tabs.svelte": "./tabs/Tabs.svelte",
211
216
  "./tabs/UnderlineTabs.svelte": "./tabs/UnderlineTabs.svelte",
212
217
  "./tabs/tabStores": "./tabs/tabStores.js",
@@ -241,7 +246,9 @@
241
246
  "./utils/ChevronRight.svelte": "./utils/ChevronRight.svelte",
242
247
  "./utils/ChevronUp.svelte": "./utils/ChevronUp.svelte",
243
248
  "./utils/CloseButton.svelte": "./utils/CloseButton.svelte",
249
+ "./utils/InformationCircle.svelte": "./utils/InformationCircle.svelte",
244
250
  "./utils/Popper.svelte": "./utils/Popper.svelte",
251
+ "./utils/UserCircle.svelte": "./utils/UserCircle.svelte",
245
252
  "./utils/Wrapper.svelte": "./utils/Wrapper.svelte",
246
253
  "./utils/clickOutside": "./utils/clickOutside.js",
247
254
  "./utils/createEventDispatcher": "./utils/createEventDispatcher.js",
@@ -15,29 +15,26 @@ export let liClass = 'flex items-center';
15
15
  <p>{review.name}</p>
16
16
  {#if review.address}
17
17
  <div class="flex items-center text-sm text-gray-500 dark:text-gray-400">
18
- {#if review.addressIcon}
19
- <svelte:component this={review.addressIcon} size="16" class="mr-2" />
20
- {/if}
21
- {review.address}
18
+ <slot name="address" />
22
19
  </div>
23
20
  {/if}
24
21
  </div>
25
22
  </div>
26
- {#if $$slots.item || $$slots.option1 || $$slots.option2}
23
+ {#if $$slots.item1 || $$slots.item2 || $$slots.item3}
27
24
  <ul class={classNames(ulClass, $$props.classUl)}>
28
- {#if $$slots.item}
25
+ {#if $$slots.item1}
29
26
  <li class={classNames(liClass, $$props.classLi)}>
30
- <slot name="item" />
27
+ <slot name="item1" />
31
28
  </li>
32
29
  {/if}
33
- {#if $$slots.option1}
30
+ {#if $$slots.item2}
34
31
  <li class={classNames(liClass, $$props.classLi)}>
35
- <slot name="option1" />
32
+ <slot name="item2" />
36
33
  </li>
37
34
  {/if}
38
- {#if $$slots.option2}
35
+ {#if $$slots.item3}
39
36
  <li class={classNames(liClass, $$props.classLi)}>
40
- <slot name="option2" />
37
+ <slot name="item3" />
41
38
  </li>
42
39
  {/if}
43
40
  </ul>
@@ -58,8 +55,7 @@ export let liClass = 'flex items-center';
58
55
  </h4>
59
56
  </div>
60
57
  <p
61
- class="bg-blue-700 text-white text-sm font-semibold inline-flex items-center p-1.5 rounded"
62
- >
58
+ class="bg-blue-700 text-white text-sm font-semibold inline-flex items-center p-1.5 rounded">
63
59
  {review.rating}
64
60
  </p>
65
61
  </div>
@@ -14,9 +14,10 @@ declare const __propDef: {
14
14
  [evt: string]: CustomEvent<any>;
15
15
  };
16
16
  slots: {
17
- item: {};
18
- option1: {};
19
- option2: {};
17
+ address: {};
18
+ item1: {};
19
+ item2: {};
20
+ item3: {};
20
21
  default: {};
21
22
  };
22
23
  };
@@ -6,7 +6,6 @@ export let btnClass = 'flex items-center p-2 w-full text-base font-normal text-g
6
6
  export let label = '';
7
7
  export let spanClass = 'flex-1 ml-3 text-left whitespace-nowrap';
8
8
  export let ulClass = 'py-2 space-y-2';
9
- export let icon;
10
9
  let isOpen = false;
11
10
  const handleDropdown = () => {
12
11
  isOpen = !isOpen;
@@ -20,11 +19,7 @@ const handleDropdown = () => {
20
19
  type="button"
21
20
  class={classNames(btnClass, $$props.class)}
22
21
  aria-controls="sidebar-dropdown">
23
- <svelte:component
24
- this={icon.name}
25
- size={icon.size}
26
- color={icon.color}
27
- class="mr-2 {icon.class}" />
22
+ <slot name="icon" />
28
23
  <span class={spanClass} sidebar-toggle-item>{label}</span>
29
24
  <ChevronDown />
30
25
  </button>
@@ -1,5 +1,4 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
- import type { IconType } from '../types';
3
2
  declare const __propDef: {
4
3
  props: {
5
4
  [x: string]: any;
@@ -7,12 +6,12 @@ declare const __propDef: {
7
6
  label?: string;
8
7
  spanClass?: string;
9
8
  ulClass?: string;
10
- icon: IconType;
11
9
  };
12
10
  events: {
13
11
  [evt: string]: CustomEvent<any>;
14
12
  };
15
13
  slots: {
14
+ icon: {};
16
15
  default: {};
17
16
  };
18
17
  };
@@ -3,7 +3,6 @@ export let aClass = 'flex items-center p-2 text-base font-normal text-gray-900 r
3
3
  export let href = '';
4
4
  export let label = '';
5
5
  export let spanClass = 'ml-3';
6
- export let icon;
7
6
  </script>
8
7
 
9
8
  <li>
@@ -19,14 +18,8 @@ export let icon;
19
18
  on:mouseenter
20
19
  on:mouseleave
21
20
  on:mouseover
22
- class={classNames(aClass, $$props.class)}
23
- >
24
- <svelte:component
25
- this={icon.name}
26
- size={icon.size}
27
- color={icon.color}
28
- class="mr-2 {icon.class}"
29
- />
21
+ class={classNames(aClass, $$props.class)}>
22
+ <slot name="icon" />
30
23
  <span class={spanClass}>{label}</span>
31
24
  {#if $$slots.subtext}
32
25
  <slot name="subtext" />
@@ -1,5 +1,4 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
- import type { IconType } from '../types';
3
2
  declare const __propDef: {
4
3
  props: {
5
4
  [x: string]: any;
@@ -7,7 +6,6 @@ declare const __propDef: {
7
6
  href?: string;
8
7
  label?: string;
9
8
  spanClass?: string;
10
- icon: IconType;
11
9
  };
12
10
  events: {
13
11
  blur: FocusEvent;
@@ -23,6 +21,7 @@ declare const __propDef: {
23
21
  [evt: string]: CustomEvent<any>;
24
22
  };
25
23
  slots: {
24
+ icon: {};
26
25
  subtext: {};
27
26
  };
28
27
  };
@@ -0,0 +1,10 @@
1
+ <script>export let activeTabValue;
2
+ export let id;
3
+ export let contentDivClass = 'p-4 bg-gray-50 rounded-lg dark:bg-gray-800';
4
+ </script>
5
+
6
+ {#if activeTabValue === id}
7
+ <div class={contentDivClass} id="{id}-tabitem" role="tabpanel" aria-labelledby="{id}-tab">
8
+ <slot />
9
+ </div>
10
+ {/if}
@@ -0,0 +1,20 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ activeTabValue: number;
5
+ id: number;
6
+ contentDivClass?: string;
7
+ };
8
+ events: {
9
+ [evt: string]: CustomEvent<any>;
10
+ };
11
+ slots: {
12
+ default: {};
13
+ };
14
+ };
15
+ export declare type TabContentItemProps = typeof __propDef.props;
16
+ export declare type TabContentItemEvents = typeof __propDef.events;
17
+ export declare type TabContentItemSlots = typeof __propDef.slots;
18
+ export default class TabContentItem extends SvelteComponentTyped<TabContentItemProps, TabContentItemEvents, TabContentItemSlots> {
19
+ }
20
+ export {};
@@ -0,0 +1,8 @@
1
+ <script>import { getContext } from 'svelte';
2
+ let tabId;
3
+ tabId = getContext('tabId');
4
+ </script>
5
+
6
+ <div id="{tabId}-content">
7
+ <slot />
8
+ </div>
@@ -0,0 +1,16 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {};
4
+ events: {
5
+ [evt: string]: CustomEvent<any>;
6
+ };
7
+ slots: {
8
+ default: {};
9
+ };
10
+ };
11
+ export declare type TabContentWrapperProps = typeof __propDef.props;
12
+ export declare type TabContentWrapperEvents = typeof __propDef.events;
13
+ export declare type TabContentWrapperSlots = typeof __propDef.slots;
14
+ export default class TabContentWrapper extends SvelteComponentTyped<TabContentWrapperProps, TabContentWrapperEvents, TabContentWrapperSlots> {
15
+ }
16
+ export {};
@@ -0,0 +1,27 @@
1
+ <script>export let tabStyle;
2
+ export let tabId;
3
+ export let customDivClass = '';
4
+ export let customUlClass = '';
5
+ const divClasses = {
6
+ default: 'mb-4 border-b border-gray-200 dark:border-gray-700',
7
+ full: 'mb-4',
8
+ icon: 'mb-4 border-b border-gray-200 dark:border-gray-700',
9
+ pill: 'mb-4 ',
10
+ underline: 'mb-4 text-sm font-medium text-center text-gray-500 border-b border-gray-200 dark:text-gray-400 dark:border-gray-700',
11
+ custom: customDivClass
12
+ };
13
+ const ulClasses = {
14
+ default: 'flex flex-wrap -mb-px',
15
+ full: 'hidden text-sm font-medium text-center text-gray-500 rounded-lg divide-x divide-gray-200 shadow sm:flex dark:divide-gray-700 dark:text-gray-400 mb-1',
16
+ icon: 'flex flex-wrap -mb-px text-sm font-medium text-center text-gray-500 dark:text-gray-400',
17
+ pill: 'flex flex-wrap',
18
+ underline: 'flex flex-wrap -mb-px',
19
+ custom: customUlClass
20
+ };
21
+ </script>
22
+
23
+ <div class={divClasses[tabStyle]}>
24
+ <ul class={ulClasses[tabStyle]} id={tabId} role="tablist">
25
+ <slot />
26
+ </ul>
27
+ </div>
@@ -0,0 +1,21 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ tabStyle: any;
5
+ tabId: any;
6
+ customDivClass?: string;
7
+ customUlClass?: string;
8
+ };
9
+ events: {
10
+ [evt: string]: CustomEvent<any>;
11
+ };
12
+ slots: {
13
+ default: {};
14
+ };
15
+ };
16
+ export declare type TabHeadProps = typeof __propDef.props;
17
+ export declare type TabHeadEvents = typeof __propDef.events;
18
+ export declare type TabHeadSlots = typeof __propDef.slots;
19
+ export default class TabHead extends SvelteComponentTyped<TabHeadProps, TabHeadEvents, TabHeadSlots> {
20
+ }
21
+ export {};
@@ -0,0 +1,54 @@
1
+ <script>import classNames from 'classnames';
2
+ export let id;
3
+ export let tabStyle;
4
+ export let activeTabValue;
5
+ export let customActiveClass = '';
6
+ export let customInActiveClass = '';
7
+ export let customLiClass = '';
8
+ const activeClasses = {
9
+ default: 'inline-block py-4 px-4 text-sm font-medium text-center text-blue-600 bg-gray-100 rounded-t-lg active dark:bg-gray-800 dark:text-blue-500',
10
+ full: 'inline-block p-4 w-full text-gray-900 bg-gray-100 focus:ring-4 focus:ring-blue-300 active focus:outline-none dark:bg-gray-700 dark:text-white',
11
+ icon: 'inline-flex p-4 text-blue-600 rounded-t-lg border-b-2 border-blue-600 active dark:text-blue-500 dark:border-blue-500 group',
12
+ pill: 'active inline-block py-3 px-4 text-sm font-medium text-center text-white bg-blue-600 rounded-lg',
13
+ underline: 'inline-block p-4 text-blue-600 rounded-t-lg border-b-2 border-blue-600 active dark:text-blue-500 dark:border-blue-500',
14
+ custom: customActiveClass
15
+ };
16
+ const inactiveClasses = {
17
+ default: 'inline-block py-4 px-4 text-sm font-medium text-center text-gray-500 rounded-t-lg hover:text-gray-600 hover:bg-gray-50 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-300',
18
+ full: 'inline-block p-4 w-full bg-white hover:text-gray-700 hover:bg-gray-50 focus:ring-4 focus:ring-blue-300 focus:outline-none dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700',
19
+ icon: 'inline-flex p-4 rounded-t-lg border-b-2 border-transparent hover:text-gray-600 hover:border-gray-300 dark:hover:text-gray-300 group ',
20
+ pill: 'inline-block py-3 px-4 text-sm font-medium text-center text-gray-500 rounded-lg hover:text-gray-900 hover:bg-gray-100 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-white',
21
+ underline: 'inline-block p-4 rounded-t-lg border-b-2 border-transparent hover:text-gray-600 hover:border-gray-300 dark:hover:text-gray-300',
22
+ custom: customInActiveClass
23
+ };
24
+ const liClasses = {
25
+ default: 'mr-2',
26
+ full: 'w-full',
27
+ icon: 'mr-2',
28
+ pill: 'mr-2',
29
+ underline: 'mr-2',
30
+ custom: customLiClass
31
+ };
32
+ </script>
33
+
34
+ <li class={liClasses[tabStyle]} role="presentation">
35
+ <button
36
+ {...$$restProps}
37
+ on:click
38
+ on:blur
39
+ on:click
40
+ on:focus
41
+ on:keydown
42
+ on:keypress
43
+ on:keyup
44
+ on:mouseenter
45
+ on:mouseleave
46
+ on:mouseover
47
+ class={classNames(activeTabValue === id ? activeClasses[tabStyle] : inactiveClasses[tabStyle])}
48
+ id="{id}-tabhead"
49
+ type="button"
50
+ role="tab"
51
+ {...$$restProps}>
52
+ <slot />
53
+ </button>
54
+ </li>
@@ -0,0 +1,34 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ [x: string]: any;
5
+ id: number;
6
+ tabStyle: string;
7
+ activeTabValue: number;
8
+ customActiveClass?: string;
9
+ customInActiveClass?: string;
10
+ customLiClass?: string;
11
+ };
12
+ events: {
13
+ click: MouseEvent;
14
+ blur: FocusEvent;
15
+ focus: FocusEvent;
16
+ keydown: KeyboardEvent;
17
+ keypress: KeyboardEvent;
18
+ keyup: KeyboardEvent;
19
+ mouseenter: MouseEvent;
20
+ mouseleave: MouseEvent;
21
+ mouseover: MouseEvent;
22
+ } & {
23
+ [evt: string]: CustomEvent<any>;
24
+ };
25
+ slots: {
26
+ default: {};
27
+ };
28
+ };
29
+ export declare type TabHeadItemProps = typeof __propDef.props;
30
+ export declare type TabHeadItemEvents = typeof __propDef.events;
31
+ export declare type TabHeadItemSlots = typeof __propDef.slots;
32
+ export default class TabHeadItem extends SvelteComponentTyped<TabHeadItemProps, TabHeadItemEvents, TabHeadItemSlots> {
33
+ }
34
+ export {};
@@ -0,0 +1,10 @@
1
+ <script>import classNames from 'classnames';
2
+ export let divClass = 'w-full';
3
+ export let tabStyle = 'default';
4
+ let tabId;
5
+ export let activeTabValue;
6
+ </script>
7
+
8
+ <div class={classNames(divClass, $$props.class)}>
9
+ <slot {tabStyle} {tabId} {activeTabValue} />
10
+ </div>
@@ -0,0 +1,25 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ [x: string]: any;
5
+ divClass?: string;
6
+ tabStyle?: 'default' | 'full' | 'icon' | 'pill' | 'underline' | 'custom';
7
+ activeTabValue: number;
8
+ };
9
+ events: {
10
+ [evt: string]: CustomEvent<any>;
11
+ };
12
+ slots: {
13
+ default: {
14
+ tabStyle: "default" | "custom" | "full" | "icon" | "pill" | "underline";
15
+ tabId: number;
16
+ activeTabValue: number;
17
+ };
18
+ };
19
+ };
20
+ export declare type TabWrapperProps = typeof __propDef.props;
21
+ export declare type TabWrapperEvents = typeof __propDef.events;
22
+ export declare type TabWrapperSlots = typeof __propDef.slots;
23
+ export default class TabWrapper extends SvelteComponentTyped<TabWrapperProps, TabWrapperEvents, TabWrapperSlots> {
24
+ }
25
+ export {};
package/tabs/Tabs.svelte CHANGED
@@ -87,13 +87,11 @@ const handleClick = (tabValue) => () => (activeTabValue = tabValue);
87
87
  type="button"
88
88
  role="tab"
89
89
  aria-controls={name}
90
- {disabled}
91
- >
90
+ {disabled}>
92
91
  {#if icon}
93
92
  <svelte:component this={icon} size={iconSize} class={iconClass} />
94
93
  {/if}
95
- {name}</button
96
- >
94
+ {name}</button>
97
95
  </li>
98
96
  {/each}
99
97
  </ul>
package/types.d.ts CHANGED
@@ -157,16 +157,12 @@ export declare type ReviewType = {
157
157
  imgSrc: string;
158
158
  imgAlt: string;
159
159
  address: string | undefined;
160
- addressIcon: typeof SvelteComponent | undefined;
161
160
  reviewDate: string | undefined;
162
161
  title: string;
163
162
  rating: number;
164
- item: string | undefined;
165
- itemIcon: typeof SvelteComponent | undefined;
166
- option1: string | undefined;
167
- option1Icon: typeof SvelteComponent | undefined;
168
- option2: string | undefined;
169
- option2Icon: typeof SvelteComponent | undefined;
163
+ item1: string | undefined;
164
+ item2: string | undefined;
165
+ item3: string | undefined;
170
166
  };
171
167
  export declare type SelectOptionType = {
172
168
  name: string;
@@ -0,0 +1,37 @@
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.25 11.25L11.2915 11.2293C11.8646 10.9427 12.5099 11.4603 12.3545 12.082L11.6455 14.918C11.4901 15.5397 12.1354 16.0573 12.7085 15.7707L12.75 15.75M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM12 8.25H12.0075V8.2575H12V8.25Z" stroke="${color}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> `;
7
+ let svgsolid = `<path fill-rule="evenodd" clip-rule="evenodd" d="M2.25 12C2.25 6.61522 6.61522 2.25 12 2.25C17.3848 2.25 21.75 6.61522 21.75 12C21.75 17.3848 17.3848 21.75 12 21.75C6.61522 21.75 2.25 17.3848 2.25 12ZM10.9562 10.5584C12.1025 9.98533 13.3931 11.0206 13.0823 12.2639L12.3733 15.0999L12.4148 15.0792C12.7852 14.894 13.2357 15.0441 13.421 15.4146C13.6062 15.7851 13.4561 16.2356 13.0856 16.4208L13.0441 16.4416C11.8979 17.0147 10.6072 15.9794 10.9181 14.7361L11.6271 11.9001L11.5856 11.9208C11.2151 12.1061 10.7646 11.9559 10.5793 11.5854C10.3941 11.2149 10.5443 10.7644 10.9148 10.5792L10.9562 10.5584ZM12 9C12.4142 9 12.75 8.66421 12.75 8.25C12.75 7.83579 12.4142 7.5 12 7.5C11.5858 7.5 11.25 7.83579 11.25 8.25C11.25 8.66421 11.5858 9 12 9Z" 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 = 'information circle';
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
+ >
36
+ {@html svgpath}
37
+ </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 InformationCircleProps = typeof __propDef.props;
18
+ export declare type InformationCircleEvents = typeof __propDef.events;
19
+ export declare type InformationCircleSlots = typeof __propDef.slots;
20
+ export default class InformationCircle extends SvelteComponentTyped<InformationCircleProps, InformationCircleEvents, InformationCircleSlots> {
21
+ }
22
+ export {};
@@ -0,0 +1,37 @@
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="M17.9815 18.7248C16.6121 16.9175 14.4424 15.75 12 15.75C9.55761 15.75 7.38789 16.9175 6.01846 18.7248M17.9815 18.7248C19.8335 17.0763 21 14.6744 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 14.6744 4.1665 17.0763 6.01846 18.7248M17.9815 18.7248C16.3915 20.1401 14.2962 21 12 21C9.70383 21 7.60851 20.1401 6.01846 18.7248M15 9.75C15 11.4069 13.6569 12.75 12 12.75C10.3431 12.75 9 11.4069 9 9.75C9 8.09315 10.3431 6.75 12 6.75C13.6569 6.75 15 8.09315 15 9.75Z" stroke="${color}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> `;
7
+ let svgsolid = `<path fill-rule="evenodd" clip-rule="evenodd" d="M18.6854 19.0971C20.5721 17.3191 21.75 14.7971 21.75 12C21.75 6.61522 17.3848 2.25 12 2.25C6.61522 2.25 2.25 6.61522 2.25 12C2.25 14.7971 3.42785 17.3191 5.31463 19.0971C7.06012 20.7419 9.41234 21.75 12 21.75C14.5877 21.75 16.9399 20.7419 18.6854 19.0971ZM6.14512 17.8123C7.51961 16.0978 9.63161 15 12 15C14.3684 15 16.4804 16.0978 17.8549 17.8123C16.3603 19.3178 14.289 20.25 12 20.25C9.711 20.25 7.63973 19.3178 6.14512 17.8123ZM15.75 9C15.75 11.0711 14.0711 12.75 12 12.75C9.92893 12.75 8.25 11.0711 8.25 9C8.25 6.92893 9.92893 5.25 12 5.25C14.0711 5.25 15.75 6.92893 15.75 9Z" 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 = 'user circle';
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
+ >
36
+ {@html svgpath}
37
+ </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 UserCircleProps = typeof __propDef.props;
18
+ export declare type UserCircleEvents = typeof __propDef.events;
19
+ export declare type UserCircleSlots = typeof __propDef.slots;
20
+ export default class UserCircle extends SvelteComponentTyped<UserCircleProps, UserCircleEvents, UserCircleSlots> {
21
+ }
22
+ export {};