Skip to content

Commit 56de48b

Browse files
authored
Charts page update (#999)
* docs: add charts page props * feat: export backdropClass and dialogClass in Modal component * fix: #997 dropdown with toggle switch * fix: shorten component docs
1 parent 88251bf commit 56de48b

File tree

150 files changed

+100
-2890
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+100
-2890
lines changed

src/lib/accordion/Accordion.svelte

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -51,38 +51,12 @@
5151

5252
<!--
5353
@component
54-
## Features
5554
[Accordion](https://flowbite-svelte.com/docs/components/accordion)
56-
- Default accordion
57-
- Always open
58-
- Color option
59-
- Flush accordion
60-
- Arrow style
61-
- Icon Accordion
62-
- Multiple mode
63-
- Custom transitions
6455
## Props
6556
@prop multiple: boolean = false;
6657
@prop flush: boolean = false;
6758
@prop activeClasses: string = 'bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800';
6859
@prop inactiveClasses: string = 'text-gray-500 dark:text-gray-400 hover:bg-gray-100 hover:dark:bg-gray-800';
6960
@prop defaultClass: string = 'text-gray-500 dark:text-gray-400';
70-
## Example
71-
```
72-
<script>
73-
import { AccordionItem, Accordion } from 'flowbite-svelte'
74-
</script>
75-
76-
<Accordion>
77-
<AccordionItem>
78-
<span slot="header">My Header 1</span>
79-
<p class="mb-2 text-gray-500 dark:text-gray-400">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Illo ab necessitatibus sint explicabo ...</p>
80-
</AccordionItem>
81-
<AccordionItem>
82-
<span slot="header">My Header 2</span>
83-
<p class="mb-2 text-gray-500 dark:text-gray-400">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Illo ab necessitatibus sint explicabo ...</p>\
84-
</AccordionItem>
85-
</Accordion>
86-
```
8761
8862
-->

src/lib/accordion/AccordionItem.svelte

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,7 @@
9999

100100
<!--
101101
@component
102-
## Features
103102
[Go to Accordion page](https://flowbite-svelte.com/docs/components/accordion)
104-
- Default bottom navigation
105-
- Menu items with border
106-
- Application bar example
107-
- Example with pagination
108-
- Button group bottom bar
109-
- Card with bottom bar
110-
111103
## Props
112104
@prop open: boolean = false;
113105
@prop activeClass: string | undefined = undefined;

src/lib/alerts/Alert.svelte

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,7 @@
5454

5555
<!--
5656
@component
57-
## Features
5857
[Go to Alert](https://flowbite-svelte.com/docs/components/alert)
59-
- Default alert
60-
- Alerts with icon
61-
- Bordered alerts
62-
- Alerts with list
63-
- Dismissable alerts
64-
- Border accent
65-
- Additional content
66-
- Custom color
6758
## Props
6859
@prop dismissable: boolean = false;
6960
@prop accent: boolean = false;
@@ -77,17 +68,4 @@
7768
- on:mouseenter
7869
- on:mouseleave
7970
80-
## Example
81-
```
82-
<script>
83-
import {Alert} from "flowbite-svelte";
84-
</script>
85-
86-
<Alert>
87-
<span class="font-medium">Info alert!</span> Change a few things up and try submitting again.
88-
</Alert>
89-
<Alert color="red">
90-
<span class="font-medium">Danger alert!</span> Change a few things up and try submitting again.
91-
</Alert>
92-
```
9371
-->

src/lib/avatar/Avatar.svelte

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,7 @@
4343

4444
<!--
4545
@component
46-
## Features
4746
[Go to Avatar](https://flowbite-svelte.com/docs/components/avatar)
48-
- Bordered
49-
- Placeholder
50-
- Placeholder initials
51-
- Avatar tooltip
52-
- Dot indicator
53-
- Stacked
54-
- Avatar text
55-
- User dropdown
56-
- Sizes
5747
## Props
5848
@prop src: string = '';
5949
@prop href: string | undefined = undefined;
@@ -63,15 +53,5 @@
6353
@prop dot: object | undefined = undefined;
6454
@prop alt: string = '';
6555
@prop size: 'xs' | 'sm' | 'md' | 'lg' | 'xl' = 'md';
66-
## Example
67-
```
68-
<script>
69-
import { Avatar } from "flowbite-svelte"
70-
</script>
71-
72-
<div class="flex space-x-4">
73-
<Avatar src="/images/profile-picture-2.webp"/>
74-
<Avatar src="/images/profile-picture-2.webp" rounded/>
75-
</div>
76-
```
56+
7757
-->

src/lib/avatar/Placeholder.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<!--
1212
@component
13-
## Features
1413
[Go to Avatar](https://flowbite-svelte.com/docs/components/avatar)
14+
## Props
1515
@prop rounded: boolean = false;
1616
-->

src/lib/badges/Badge.svelte

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -101,18 +101,7 @@
101101

102102
<!--
103103
@component
104-
## Features
105104
[Go to Badge](https://flowbite-svelte.com/docs/components/badge)
106-
- Default badge
107-
- Large badges
108-
- Bordered badge
109-
- Pills badge
110-
- Badges as links
111-
- Badges with icon
112-
- Notification badge
113-
- Button with badge
114-
- Badge with icon only
115-
- Dismissable badges
116105
## Props
117106
@prop color: 'blue' | 'dark' | 'red' | 'green' | 'yellow' | 'indigo' | 'purple' | 'pink' | 'none' = 'blue';
118107
@prop large: boolean = false;
@@ -121,13 +110,5 @@
121110
@prop rounded: boolean = false;
122111
@prop index: boolean = false;
123112
@prop dismissable: boolean = false;
124-
## Example
125-
```
126-
<script>
127-
import { Badge } from 'flowbite-svelte';
128-
</script>
129113
130-
<Badge>Default</Badge>
131-
<Badge color="dark">Dark</Badge>
132-
```
133114
-->

src/lib/banner/Banner.svelte

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,7 @@
4949

5050
<!--
5151
@component
52-
## Features
5352
[Go to Banner](https://flowbite-svelte.com/docs/components/banner)
54-
- Setup
55-
- Default sticky banner
56-
- Bottom banner position
57-
- Marketing CTA banner
58-
- Newsletter sign-up banner
59-
- Informational banner
6053
## Props
6154
@prop id: string = 'sticky-banner';
6255
@prop position: 'static' | 'fixed' | 'absolute' | 'relative' | 'sticky' = 'sticky';
@@ -73,22 +66,5 @@
7366
- on:blur
7467
- on:mouseenter
7568
- on:mouseleave
76-
## Example
77-
```
78-
<script>
79-
import { Banner } from "flowbite-svelte"
80-
</script>
81-
82-
<Banner id="default-banner" position="absolute">
83-
<p class="flex items-center text-sm font-normal text-gray-500 dark:text-gray-400">
84-
<span class="inline-flex p-1 mr-3 bg-gray-200 rounded-full dark:bg-gray-600">
85-
<svg class="w-4 h-4 text-gray-500 dark:text-gray-400" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
86-
<path d="M11 3a1 1 0 10-2 0v1a1 1 0 102 0V3zM15.657 5.757a1 1 0 00-1.414-1.414l-.707.707a1 1 0 001.414 1.414l.707-.707zM18 10a1 1 0 01-1 1h-1a1 1 0 110-2h1a1 1 0 011 1zM5.05 6.464A1 1 0 106.464 5.05l-.707-.707a1 1 0 00-1.414 1.414l.707.707zM5 10a1 1 0 01-1 1H3a1 1 0 110-2h1a1 1 0 011 1zM8 16v-1h4v1a2 2 0 11-4 0zM12 14c.015-.34.208-.646.477-.859a4 4 0 10-4.954 0c.27.213.462.519.476.859h4.002z"></path>
87-
</svg>
88-
<span class="sr-only">Light bulb</span>
89-
</span>
90-
<span>New brand identity has been launched for the <a href="https://flowbite.com" class="inline font-medium text-blue-600 underline dark:text-blue-500 underline-offset-2 decoration-600 dark:decoration-500 decoration-solid hover:no-underline">Flowbite Library</a></span>
91-
</p>
92-
</Banner>
93-
```
69+
9470
-->

src/lib/bottom-nav/BottomNav.svelte

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -64,49 +64,13 @@
6464

6565
<!--
6666
@component
67-
## Features
6867
[Go to Bottom Navigation](https://flowbite-svelte.com/docs/components/bottom-navigation)
69-
- Default bottom navigation
70-
- Menu items with border
71-
- Application bar example
72-
- Example with pagination
73-
- Button group bottom bar
74-
- Card with bottom bar
7568
## Props
7669
@prop position: 'static' | 'fixed' | 'absolute' | 'relative' | 'sticky' = 'fixed';
7770
@prop navType:| 'default' | 'border' | 'application' | 'pagination' | 'group' | 'card' | 'meeting' | 'video' | 'custom' = 'default';
7871
@prop outerClass: string = 'w-full z-50 border-gray-200 dark:bg-gray-700 dark:border-gray-600';
7972
@prop innerClass: string = 'grid h-full max-w-lg mx-auto';
8073
@prop outerCustom: string = '';
8174
@prop innerCustom: string = '';
82-
## Example
83-
```
84-
<script>
85-
import { BottomNav, BottomNavItem } from "flowbite-svelte"
86-
</script>
87-
88-
<BottomNav position="absolute" innerDiv="grid-cols-4">
89-
<BottomNavItem btnName="Home">
90-
<svg class="w-6 h-6 mb-1 text-gray-500 dark:text-gray-400 group-hover:text-primary-600 dark:group-hover:text-primary-500" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
91-
<path d="M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z"></path>
92-
</svg>
93-
</BottomNavItem>
94-
<BottomNavItem btnName="Wallet">
95-
<svg class="w-6 h-6 mb-1 text-gray-500 dark:text-gray-400 group-hover:text-primary-600 dark:group-hover:text-primary-500" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
96-
<path d="M4 4a2 2 0 00-2 2v1h16V6a2 2 0 00-2-2H4z"></path>
97-
<path clip-rule="evenodd" fill-rule="evenodd" d="M18 9H2v5a2 2 0 002 2h12a2 2 0 002-2V9zM4 13a1 1 0 011-1h1a1 1 0 110 2H5a1 1 0 01-1-1zm5-1a1 1 0 100 2h1a1 1 0 100-2H9z"></path>
98-
</svg>
99-
</BottomNavItem>
100-
<BottomNavItem btnName="Settings">
101-
<svg class="w-6 h-6 mb-1 text-gray-500 dark:text-gray-400 group-hover:text-primary-600 dark:group-hover:text-primary-500" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
102-
<path d="M5 4a1 1 0 00-2 0v7.268a2 2 0 000 3.464V16a1 1 0 102 0v-1.268a2 2 0 000-3.464V4zM11 4a1 1 0 10-2 0v1.268a2 2 0 000 3.464V16a1 1 0 102 0V8.732a2 2 0 000-3.464V4zM16 3a1 1 0 011 1v7.268a2 2 0 010 3.464V16a1 1 0 11-2 0v-1.268a2 2 0 010-3.464V4a1 1 0 011-1z"></path>
103-
</svg>
104-
</BottomNavItem>
105-
<BottomNavItem btnName="Profile">
106-
<svg class="w-6 h-6 mb-1 text-gray-500 dark:text-gray-400 group-hover:text-primary-600 dark:group-hover:text-primary-500" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
107-
<path clip-rule="evenodd" fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2 0 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z"></path>
108-
</svg>
109-
</BottomNavItem>
110-
</BottomNav>
111-
```
75+
11276
-->

src/lib/bottom-nav/BottomNavHeader.svelte

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,9 @@
1212

1313
<!--
1414
@component
15-
## Features
1615
[Go to Bottom Navigation](https://flowbite-svelte.com/docs/components/bottom-navigation)
1716
## Props
1817
@prop outerClass: string = 'w-full';
1918
@prop innerClass: string = 'grid max-w-xs grid-cols-3 gap-1 p-1 mx-auto my-2 bg-gray-100 rounded-lg dark:bg-gray-600';
20-
## Example
21-
```
22-
<BottomNav position="absolute" navType="group" innerDiv="grid-cols-5">
23-
<BottomNavHeader slot="header">
24-
<BottomNavHeaderItem itemName="New" />
25-
<BottomNavHeaderItem itemName="Popular" active={true}/>
26-
<BottomNavHeaderItem itemName="Following" />
27-
</BottomNavHeader>
28-
...
29-
</BottomNav>
30-
```
19+
3120
-->

src/lib/bottom-nav/BottomNavHeaderItem.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
<!--
1616
@component
17-
## Features
1817
[Go to Bottom Navigation](https://flowbite-svelte.com/docs/components/bottom-navigation)
1918
## Props
2019
@prop itemName: string = '';

0 commit comments

Comments
 (0)