flowbite-svelte 0.15.8 → 0.15.11

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,33 @@
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.15.11](https://github.com/themesberg/flowbite-svelte/compare/v0.15.10...v0.15.11) (2022-05-03)
6
+
7
+
8
+ ### Features
9
+
10
+ * add Search component ([c9874ad](https://github.com/themesberg/flowbite-svelte/commit/c9874ada31fbf20c74a882ee6392e9a7cc8ecc36))
11
+
12
+ ### [0.15.10](https://github.com/themesberg/flowbite-svelte/compare/v0.15.9...v0.15.10) (2022-05-03)
13
+
14
+
15
+ ### Features
16
+
17
+ * add radio label with a link to radio form ([2c3fe6f](https://github.com/themesberg/flowbite-svelte/commit/2c3fe6f9b24a7364a61fc534163c87a157afff12))
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * add Input to form index ([00ec469](https://github.com/themesberg/flowbite-svelte/commit/00ec46911c2748fb9224cf91ae68b3dca1c02dd7))
23
+ * position update for dropdown and imgdropdown components ([1aef255](https://github.com/themesberg/flowbite-svelte/commit/1aef2559e187458c89f4ad40acbbc8c94719b7ae))
24
+
25
+ ### [0.15.9](https://github.com/themesberg/flowbite-svelte/compare/v0.15.8...v0.15.9) (2022-04-30)
26
+
27
+
28
+ ### Features
29
+
30
+ * add color and size to Toggle component ([6595bb3](https://github.com/themesberg/flowbite-svelte/commit/6595bb38d95ae42862d134fee979ae97b66ab911))
31
+
5
32
  ### [0.15.8](https://github.com/themesberg/flowbite-svelte/compare/v0.15.7...v0.15.8) (2022-04-29)
6
33
 
7
34
 
package/README.md CHANGED
@@ -16,167 +16,300 @@
16
16
  - [CLI](https://flowbite-svelte.com/pages/cli)
17
17
  - [License](https://flowbite-svelte.com/pages/license)
18
18
 
19
- ## Accordion components
20
-
21
- - [Default accordion](https://flowbite-svelte.com/accordions/default)
22
- - [Icon accordion](https://flowbite-svelte.com/accordions/icon-accordion)
23
-
24
- ## Alert components
25
-
26
- - [Default alert](https://flowbite-svelte.com/alerts/default-alert)
27
- - [Border alert](https://flowbite-svelte.com/alerts/border-alert)
28
- - [Information alert](https://flowbite-svelte.com/alerts/information-alert)
29
- - [Animation alert](https://flowbite-svelte.com/alerts/animation)
30
-
31
- ## Avatar components
32
-
33
- - [Avatar](https://flowbite-svelte.com/avatar)
34
-
35
- ## Badges components
36
-
37
- - [Default badge](https://flowbite-svelte.com/badges/default)
38
- - [Icon badge](https://flowbite-svelte.com/badges/badge-icon)
39
- - [Link badge](https://flowbite-svelte.com/badges/badge-link)
40
-
41
- ## Breadcrumb components
42
-
43
- - [Breadcrumb](https://flowbite-svelte.com/breadcrumbs)
44
-
45
- ## Button group compnents
46
-
47
- - [Default button group](https://flowbite-svelte.com/button-groups/default)
48
- - [Outline button group](https://flowbite-svelte.com/button-groups/outline)
49
-
50
- ## Button components
51
-
52
- - [Default Button](https://flowbite-svelte.com/buttons/default)
53
- - [Colored Shadow Button](https://flowbite-svelte.com/buttons/colored-shadow)
54
- - [Gradient Duotone Button](https://flowbite-svelte.com/buttons/gradient-duotone)
55
- - [Gradient Monochrome Button](https://flowbite-svelte.com/buttons/gradient-monochrome)
56
- - [Gradietn Outline Button](https://flowbite-svelte.com/buttons/gradient-outline)
57
- - [Outlined Button](https://flowbite-svelte.com/buttons/outlined)
58
- - [Rounded Button](https://flowbite-svelte.com/buttons/rounded)
59
- - [Loader Button](https://flowbite-svelte.com/spinners/button-loader)
60
-
61
- ## Card components
62
-
63
- - [Default Card](https://flowbite-svelte.com/cards/card)
64
- - [CTA Card](https://flowbite-svelte.com/cards/cta)
65
- - [Ecommerce Card](https://flowbite-svelte.com/cards/ecommerce)
66
- - [Horizontal Card](https://flowbite-svelte.com/cards/horizontal)
67
- - [Interactive Card](https://flowbite-svelte.com/cards/interactive)
68
- - [List Card](https://flowbite-svelte.com/cards/list)
69
- - [Signin Card](https://flowbite-svelte.com/cards/signin)
70
-
71
- ## Carousel components
72
-
73
- - [Carousel](https://flowbite-svelte.com/carousels/default)
74
- - [Carousel with transition](https://flowbite-svelte.com/carousels/transition)
75
-
76
- ## Dark mode components
77
-
78
- - [Dark mode](https://flowbite-svelte.com/darkmode)
79
-
80
- ## Dropdown components
81
-
82
- - [Dropdown](https://flowbite-svelte.com/dropdowns/default)
83
- - [Dropdown with Image](https://flowbite-svelte.com/dropdowns/image)
84
-
85
- ## Form components
86
-
87
- - [Checkbox](https://flowbite-svelte.com/forms/checkbox)
88
- - [File input](https://flowbite-svelte.com/forms/file-input)
89
- - [Floating label](https://flowbite-svelte.com/forms/floating-label)
90
- - [Input](https://flowbite-svelte.com/forms/input)
91
- - [Radio](https://flowbite-svelte.com/forms/radio)
92
- - [Range](https://flowbite-svelte.com/forms/range)
93
- - [Textarea](https://flowbite-svelte.com/forms/textarea)
94
- - [Toggle](https://flowbite-svelte.com/forms/toggle)
95
-
96
- ## Footer components
97
-
98
- - [Default Footer](https://flowbite-svelte.com/footer/default)
99
- - [Footer with Logo](https://flowbite-svelte.com/footer/logo)
100
- - [Footer with Sitemap](https://flowbite-svelte.com/footer/sitemap)
101
- - [Footer with Socialmedia](https://flowbite-svelte.com/footer/socialmedia)
102
-
103
- ## Icons components
104
-
105
- - [Heroicons](https://flowbite-svelte.com/icons/heroicons)
106
- - [Simpleicons](https://flowbite-svelte.com/icons/simple-icons)
107
- - [Feathericons](https://flowbite-svelte.com/icons/feathericons)
108
-
109
- ## List group components
110
-
111
- - [List group](https://flowbite-svelte.com/list-group)
112
-
113
- ## Modal components
114
-
115
- - [Small Modal](https://flowbite-svelte.com/modals/small)
116
- - [Medium Modal](https://flowbite-svelte.com/modals/medium)
117
- - [Large Modal](https://flowbite-svelte.com/modals/large)
118
- - [Extra Large Modal](https://flowbite-svelte.com/modals/extra-large)
119
- - [Signin Modal](https://flowbite-svelte.com/modals/signin)
120
- - [All Modals](https://flowbite-svelte.com/modals/all-modals)
121
-
122
- ## Navbar components
123
-
124
- - [Default Navbar](https://flowbite-svelte.com/navbars/default)
125
- - [Dropdown Navbar](https://flowbite-svelte.com/navbars/dropdown)
126
-
127
- ## Pagination components
128
-
129
- - [Pagination](https://flowbite-svelte.com/paginations)
130
-
131
- ## Progress bar
132
-
133
- - [Probress bar](https://flowbite-svelte.com/progressbars)
134
-
135
- ## Rating
136
-
137
- - [Rating](https://flowbite-svelte.com/ratings/rating)
138
- - [Advanced rating](https://flowbite-svelte.com/ratings/advanced-rating)
139
- - [Score rating](https://flowbite-svelte.com/ratings/score-rating)
140
-
141
- ## Sidebar components
142
-
143
- - [Sidebar](https://flowbite-svelte.com/sidebars)
144
-
145
- ## Spinner components
146
-
147
- - [Default Spinner](https://flowbite-svelte.com/spinners/default)
148
-
149
- ## Tab components
150
-
151
- - [Default Tabs](https://flowbite-svelte.com/tabs/default-tabs)
152
- - [Underline Tabs](https://flowbite-svelte.com/tabs/underline-tabs)
153
- - [Icon Tabs](https://flowbite-svelte.com/tabs/icon-tabs)
154
- - [Full width Tabs](https://flowbite-svelte.com/tabs/full-width-tabs)
155
- - [Interactive Tabs](https://flowbite-svelte.com/tabs/interactive-tabs)
156
- - [Interactive Tabs 2](https://flowbite-svelte.com/tabs/interactive-tabs-2)
157
- - [Multiple Interactive Tabs](https://flowbite-svelte.com/tabs/multiple-interactive-tabs)
158
- - [Pill Tabs](https://flowbite-svelte.com/tabs/pilltabs)
159
-
160
- ## Table components
161
-
162
- - [Tables](https://flowbite-svelte.com/tables)
163
-
164
- ## Timeline components
165
-
166
- - [Default timeline](https://flowbite-svelte.com/timelines/default)
167
- - [Vetical timeline](https://flowbite-svelte.com/timelines/vertical)
168
- - [Horizontal timeline](https://flowbite-svelte.com/timelines/horizontal)
169
- - [Activity log](https://flowbite-svelte.com/timelines/activity)
170
- - [Grouped timeline](https://flowbite-svelte.com/timelines/group)
171
-
172
- ## Toast components
173
-
174
- - [Toast](https://flowbite-svelte.com/toasts)
175
-
176
- ## Tooltip components
177
-
178
- - [Default Tooltip](https://flowbite-svelte.com/tooltips/default)
179
- - [Light Tooltip](https://flowbite-svelte.com/tooltips/light)
19
+ ## Documentation
20
+
21
+ For full documentation, visit [flowbite-svelte.com](https://flowbite-svelte.com/).
22
+
23
+ ## Components
24
+
25
+ <table>
26
+ <tr>
27
+ <td width="33.3333%">Accordion</td>
28
+ <td width="33.3333%">Alerts</td>
29
+ <td width="33.3333%">Avatar</td>
30
+ </tr>
31
+ <tr>
32
+ <td width="33.3333%">
33
+ <a href="https://flowbite-svelte.com/accordions/">
34
+ <img alt="Tailwind CSS Accordion" src="https://flowbite.s3.amazonaws.com/github/accordion.jpg">
35
+ </a>
36
+ </td>
37
+ <td width="33.3333%">
38
+ <a href="https://flowbite-svelte.com/alerts/">
39
+ <img alt="Tailwind CSS Alerts" src="https://flowbite.s3.amazonaws.com/github/alerts.jpg">
40
+ </a>
41
+ </td>
42
+ <td width="33.3333%">
43
+ <a href="https://flowbite-svelte.com/avatar/">
44
+ <img alt="Tailwind CSS Avatar" src="https://flowbite.s3.amazonaws.com/github/avatar.jpg">
45
+ </a>
46
+ </td>
47
+ </tr>
48
+ <tr>
49
+ <td width="33.3333%">Badges</td>
50
+ <td width="33.3333%">Breadcrumbs</td>
51
+ <td width="33.3333%">Button group</td>
52
+
53
+ </tr>
54
+ <tr>
55
+ <td width="33.3333%">
56
+ <a href="https://flowbite-svelte.com/badges/">
57
+ <img alt="Tailwind CSS Badge" src="https://flowbite.s3.amazonaws.com/github/badge.jpg">
58
+ </a>
59
+ </td>
60
+ <td width="33.3333%">
61
+ <a href="https://flowbite-svelte.com/breadcrumbs/">
62
+ <img alt="Tailwind CSS Breadcrumbs" src="https://flowbite.s3.amazonaws.com/github/breadcrumbs.jpg">
63
+ </a>
64
+ </td>
65
+ <td width="33.3333%">
66
+ <a href="https://flowbite-svelte.com/button-groups/">
67
+ <img alt="Tailwind CSS Button Group" src="https://flowbite.s3.amazonaws.com/github/button-group.jpg">
68
+ </a>
69
+ </td>
70
+ </tr>
71
+ <tr>
72
+ <td width="33.3333%">Buttons</td>
73
+ <td width="33.3333%">Cards</td>
74
+ <td width="33.3333%">Carousel</td>
75
+
76
+ </tr>
77
+ <tr>
78
+ <td width="33.3333%">
79
+ <a href="https://flowbite-svelte.com/buttons/">
80
+ <img alt="Tailwind CSS Buttons" src="https://flowbite.s3.amazonaws.com/github/buttons.jpg">
81
+ </a>
82
+ </td>
83
+ <td width="33.3333%">
84
+ <a href="https://flowbite-svelte.com/cards/">
85
+ <img alt="Tailwind CSS Cards" src="https://flowbite.s3.amazonaws.com/github/cards.jpg">
86
+ </a>
87
+ </td>
88
+ <td width="33.3333%">
89
+ <a href="https://flowbite-svelte.com/carousels/">
90
+ <img alt="Tailwind CSS Carousel" src="https://flowbite.s3.amazonaws.com/github/carousel.jpg">
91
+ </a>
92
+ </td>
93
+ </tr>
94
+ <tr>
95
+ <td width="33.3333%">Dark mode</td>
96
+ <td width="33.3333%">Dropdown</td>
97
+ <td width="33.3333%">Footer</td>
98
+ </tr>
99
+ <tr>
100
+ <td width="33.3333%">
101
+ <a href="https://flowbite-svelte.com/darkmode/">
102
+ <img alt="Tailwind CSS Forms" src="https://flowbite.s3.amazonaws.com/github/forms.jpg">
103
+ </a>
104
+ </td>
105
+ <td width="33.3333%">
106
+ <a href="https://flowbite-svelte.com/dropdowns/">
107
+ <img alt="Tailwind CSS Dropdown" src="https://flowbite.s3.amazonaws.com/github/dropdown.jpg">
108
+ </a>
109
+ </td>
110
+ <td width="33.3333%">
111
+ <a href="https://flowbite-svelte.com/footer/">
112
+ <img alt="Tailwind CSS Footer" src="https://flowbite.s3.amazonaws.com/github/footer.jpg">
113
+ </a>
114
+ </td>
115
+ </tr>
116
+ <tr>
117
+ <td width="33.3333%">Forms</td>
118
+ <td width="33.3333%">Icons</td>
119
+ <td width="33.3333%">List group</td>
120
+ </tr>
121
+ <tr>
122
+ <td width="33.3333%">
123
+ <a href="https://flowbite-svelte.com/forms/">
124
+ <img alt="Tailwind CSS Forms" src="https://flowbite.s3.amazonaws.com/github/forms.jpg">
125
+ </a>
126
+ </td>
127
+ <td width="33.3333%">
128
+ <a href="https://flowbite-svelte.com/icons/">
129
+ <img alt="Icons" src="https://flowbite.s3.amazonaws.com/github/navbar.jpg">
130
+ </a>
131
+ </td>
132
+ <td width="33.3333%">
133
+ <a href="https://flowbite-svelte.com/list-group/">
134
+ <img alt="Tailwind CSS List group" src="https://flowbite.s3.amazonaws.com/github/list-group.jpg">
135
+ </a>
136
+ </td>
137
+ </tr>
138
+ <tr>
139
+ <td width="33.3333%">Modals</td>
140
+ <td width="33.3333%">Navbars</td>
141
+ <td width="33.3333%">Pagination</td>
142
+ </tr>
143
+ <tr>
144
+ <td width="33.3333%">
145
+ <a href="https://flowbite-svelte.com/modals/">
146
+ <img alt="Tailwind CSS Modal" src="https://flowbite.s3.amazonaws.com/github/modal.jpg">
147
+ </a>
148
+ </td>
149
+ <td width="33.3333%">
150
+ <a href="https://flowbite-svelte.com/navbars/">
151
+ <img alt="Tailwind CSS Navbar" src="https://flowbite.s3.amazonaws.com/github/navbar.jpg">
152
+ </a>
153
+ </td>
154
+ <td width="33.3333%">
155
+ <a href="https://flowbite-svelte.com/paginations/">
156
+ <img alt="Tailwind CSS Pagination" src="https://flowbite.s3.amazonaws.com/github/pagination.jpg">
157
+ </a>
158
+ </td>
159
+ </tr>
160
+ <tr>
161
+ <td width="33.3333%">Progress bar</td>
162
+ <td width="33.3333%">Ratings</td>
163
+ <td width="33.3333%">Sidebars</td>
164
+ </tr>
165
+ <tr>
166
+ <td width="33.3333%">
167
+ <a href="https://flowbite-svelte.com/progressbars/">
168
+ <img alt="Tailwind CSS Progress Bar" src="https://flowbite.s3.amazonaws.com/github/progress.jpg">
169
+ </a>
170
+ </td>
171
+ <td width="33.3333%">
172
+ <a href="https://flowbite-svelte.com/ratings/">
173
+ <img alt="Tailwind CSS Rating" src="https://flowbite.s3.amazonaws.com/github/rating.jpg">
174
+ </a>
175
+ </td>
176
+ <td width="33.3333%">
177
+ <a href="https://flowbite-svelte.com/sidebars/">
178
+ <img alt="Tailwind CSS Sidebar" src="https://flowbite.s3.amazonaws.com/github/sidebar.jpg">
179
+ </a>
180
+ </td>
181
+ </tr>
182
+ <tr>
183
+ <td width="33.3333%">Spinners</td>
184
+ <td width="33.3333%">Tables</td>
185
+ <td width="33.3333%">Tabs</td>
186
+ </tr>
187
+ <tr>
188
+ <td width="33.3333%">
189
+ <a href="https://flowbite-svelte.com/spinners/">
190
+ <img alt="Tailwind CSS Spinner" src="https://flowbite.s3.amazonaws.com/github/spinner.jpg">
191
+ </a>
192
+ </td>
193
+ <td width="33.3333%">
194
+ <a href="https://flowbite-svelte.com/tables/">
195
+ <img alt="Tailwind CSS Tables" src="https://flowbite.s3.amazonaws.com/github/tables.jpg">
196
+ </a>
197
+ </td>
198
+ <td width="33.3333%">
199
+ <a href="https://flowbite-svelte.com/tabs/">
200
+ <img alt="Tailwind CSS Tabs" src="https://flowbite.s3.amazonaws.com/github/tabs.jpg">
201
+ </a>
202
+ </td>
203
+ </tr>
204
+ <tr>
205
+ <td width="33.3333%">Timelines</td>
206
+ <td width="33.3333%">Toast</td>
207
+ <td width="33.3333%">Tooltips</td>
208
+ </tr>
209
+ <tr>
210
+ <td width="33.3333%">
211
+ <a href="https://flowbite-svelte.com/timelines/">
212
+ <img alt="Tailwind CSS Timeline" src="https://flowbite.s3.amazonaws.com/github/timeline.jpg">
213
+ </a>
214
+ </td>
215
+ <td width="33.3333%">
216
+ <a href="https://flowbite-svelte.com/toasts/">
217
+ <img alt="Tailwind CSS Toast" src="https://flowbite.s3.amazonaws.com/github/toast.jpg">
218
+ </a>
219
+ </td>
220
+ <td width="33.3333%">
221
+ <a href="https://flowbite-svelte.com/tooltips/">
222
+ <img alt="Tailwind CSS Tooltips" src="https://flowbite.s3.amazonaws.com/github/tooltips.jpg">
223
+ </a>
224
+ </td>
225
+ </tr>
226
+ <tr>
227
+ <td width="33.3333%">Input Field</td>
228
+ <td width="33.3333%">File Input</td>
229
+ <td width="33.3333%">Search Input</td>
230
+ </tr>
231
+ <tr>
232
+ <td width="33.3333%">
233
+ <a href="https://flowbite-svelte.com/forms/input/">
234
+ <img alt="Tailwind CSS Input Field" src="https://flowbite.s3.amazonaws.com/github/input-field.jpg">
235
+ </a>
236
+ </td>
237
+ <td width="33.3333%">
238
+ <a href="https://flowbite-svelte.com/forms/file-input/">
239
+ <img alt="Tailwind CSS File Input" src="https://flowbite.s3.amazonaws.com/github/file-input.jpg">
240
+ </a>
241
+ </td>
242
+ <td width="33.3333%">
243
+ <a href="https://flowbite-svelte.com/forms/search/">
244
+ <img alt="Tailwind CSS Search Input" src="https://flowbite.s3.amazonaws.com/github/search-input.jpg">
245
+ </a>
246
+ </td>
247
+ </tr>
248
+ <tr>
249
+ <td width="33.3333%">Select</td>
250
+ <td width="33.3333%">Textarea</td>
251
+ <td width="33.3333%">Checkbox</td>
252
+ </tr>
253
+ <tr>
254
+ <td width="33.3333%">
255
+ <a href="https://flowbite-svelte.com/forms/select/">
256
+ <img alt="Tailwind CSS Select" src="https://flowbite.s3.amazonaws.com/github/select.jpg">
257
+ </a>
258
+ </td>
259
+ <td width="33.3333%">
260
+ <a href="https://flowbite-svelte.com/forms/textarea/">
261
+ <img alt="Tailwind CSS Textarea" src="https://flowbite.s3.amazonaws.com/github/textarea.jpg">
262
+ </a>
263
+ </td>
264
+ <td width="33.3333%">
265
+ <a href="https://flowbite-svelte.com/forms/checkbox/">
266
+ <img alt="Tailwind CSS Checkbox" src="https://flowbite.s3.amazonaws.com/github/checkbox.jpg">
267
+ </a>
268
+ </td>
269
+ </tr>
270
+ <tr>
271
+ <td width="33.3333%">Radio</td>
272
+ <td width="33.3333%">Toggle</td>
273
+ <td width="33.3333%">Range Slider</td>
274
+ </tr>
275
+ <tr>
276
+ <td width="33.3333%">
277
+ <a href="https://flowbite-svelte.com/forms/radio/">
278
+ <img alt="Tailwind CSS Radio" src="https://flowbite.s3.amazonaws.com/github/radio.jpg">
279
+ </a>
280
+ </td>
281
+ <td width="33.3333%">
282
+ <a href="https://flowbite-svelte.com/forms/toggle/">
283
+ <img alt="Tailwind CSS Toggle" src="https://flowbite.s3.amazonaws.com/github/toggle.jpg">
284
+ </a>
285
+ </td>
286
+ <td width="33.3333%">
287
+ <a href="https://flowbite-svelte.com/forms/range/">
288
+ <img alt="Tailwind CSS Range Slider" src="https://flowbite.s3.amazonaws.com/github/range-slider.jpg">
289
+ </a>
290
+ </td>
291
+ </tr>
292
+ <tr>
293
+ <td width="33.3333%">Floating Label</td>
294
+ </tr>
295
+ <tr>
296
+ <td width="33.3333%">
297
+ <a href="https://flowbite-svelte.com/forms/floating-label/">
298
+ <img alt="Tailwind CSS Floating Label" src="https://flowbite.s3.amazonaws.com/github/floating-label.jpg">
299
+ </a>
300
+ </td>
301
+ </tr>
302
+ </table>
303
+
304
+ ## Community
305
+
306
+ If you need help or just want to discuss about the library join the community on Github:
307
+
308
+ ⌨️ [Discuss about Flowbite on GitHub](https://github.com/themesberg/flowbite/discussions)
309
+
310
+ For casual chatting with others using the library:
311
+
312
+ 💬 [Join the Flowbite Discord Server](https://discord.gg/4eeurUVvTy)
180
313
 
181
314
  ## Tests
182
315
 
@@ -192,4 +325,12 @@ npm run test
192
325
  npm run gen:props
193
326
  ```
194
327
 
195
- This will pull all props from components and replace files in `/src/routes/props` directory.
328
+ This will pull all props from components and replace files in `/src/routes/props` directory.
329
+
330
+ ## Contribute
331
+
332
+ Please read [How to contribute](https://github.com/themesberg/flowbite-svelte/blob/main/CONTRIBUTING.md).
333
+
334
+ ## Changelog
335
+
336
+ [Changelog](https://github.com/themesberg/flowbite-svelte/blob/main/CHANGELOG.md)
package/cards/Card.svelte CHANGED
@@ -10,40 +10,31 @@ export let header = '';
10
10
  export let divClass = 'max-w-sm bg-white rounded-lg border border-gray-200 shadow-md dark:bg-gray-800 dark:border-gray-700';
11
11
  let buttonClass;
12
12
  if (btnColor === 'blue') {
13
- buttonClass =
14
- 'inline-flex items-center py-2 px-3 text-sm font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800';
13
+ buttonClass = 'inline-flex items-center py-2 px-3 text-sm font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800';
15
14
  }
16
15
  else if (btnColor === 'gray') {
17
- buttonClass =
18
- 'inline-flex items-center py-2 px-3 text-sm font-medium text-center text-white bg-gray-700 rounded-lg hover:bg-gray-800 focus:ring-4 focus:ring-gray-300 dark:bg-gray-600 dark:hover:bg-gray-700 dark:focus:ring-gray-800';
16
+ buttonClass = 'inline-flex items-center py-2 px-3 text-sm font-medium text-center text-white bg-gray-700 rounded-lg hover:bg-gray-800 focus:ring-4 focus:ring-gray-300 dark:bg-gray-600 dark:hover:bg-gray-700 dark:focus:ring-gray-800';
19
17
  }
20
18
  else if (btnColor === 'red') {
21
- buttonClass =
22
- 'inline-flex items-center py-2 px-3 text-sm font-medium text-center text-white bg-red-700 rounded-lg hover:bg-red-800 focus:ring-4 focus:ring-red-300 dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-800';
19
+ buttonClass = 'inline-flex items-center py-2 px-3 text-sm font-medium text-center text-white bg-red-700 rounded-lg hover:bg-red-800 focus:ring-4 focus:ring-red-300 dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-800';
23
20
  }
24
21
  else if (btnColor === 'yellow') {
25
- buttonClass =
26
- 'inline-flex items-center py-2 px-3 text-sm font-medium text-center text-white bg-yellow-700 rounded-lg hover:bg-yellow-800 focus:ring-4 focus:ring-yellow-300 dark:bg-yellow-600 dark:hover:bg-yellow-700 dark:focus:ring-yellow-800';
22
+ buttonClass = 'inline-flex items-center py-2 px-3 text-sm font-medium text-center text-white bg-yellow-700 rounded-lg hover:bg-yellow-800 focus:ring-4 focus:ring-yellow-300 dark:bg-yellow-600 dark:hover:bg-yellow-700 dark:focus:ring-yellow-800';
27
23
  }
28
24
  else if (btnColor === 'green') {
29
- buttonClass =
30
- 'inline-flex items-center py-2 px-3 text-sm font-medium text-center text-white bg-green-700 rounded-lg hover:bg-green-800 focus:ring-4 focus:ring-green-300 dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-green-800';
25
+ buttonClass = 'inline-flex items-center py-2 px-3 text-sm font-medium text-center text-white bg-green-700 rounded-lg hover:bg-green-800 focus:ring-4 focus:ring-green-300 dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-green-800';
31
26
  }
32
27
  else if (btnColor === 'indigo') {
33
- buttonClass =
34
- 'inline-flex items-center py-2 px-3 text-sm font-medium text-center text-white bg-indigo-700 rounded-lg hover:bg-indigo-800 focus:ring-4 focus:ring-indigo-300 dark:bg-indigo-600 dark:hover:bg-indigo-700 dark:focus:ring-indigo-800';
28
+ buttonClass = 'inline-flex items-center py-2 px-3 text-sm font-medium text-center text-white bg-indigo-700 rounded-lg hover:bg-indigo-800 focus:ring-4 focus:ring-indigo-300 dark:bg-indigo-600 dark:hover:bg-indigo-700 dark:focus:ring-indigo-800';
35
29
  }
36
30
  else if (btnColor === 'purple') {
37
- buttonClass =
38
- 'inline-flex items-center py-2 px-3 text-sm font-medium text-center text-white bg-purple-700 rounded-lg hover:bg-purple-800 focus:ring-4 focus:ring-purple-300 dark:bg-purple-600 dark:hover:bg-purple-700 dark:focus:ring-purple-800';
31
+ buttonClass = 'inline-flex items-center py-2 px-3 text-sm font-medium text-center text-white bg-purple-700 rounded-lg hover:bg-purple-800 focus:ring-4 focus:ring-purple-300 dark:bg-purple-600 dark:hover:bg-purple-700 dark:focus:ring-purple-800';
39
32
  }
40
33
  else if (btnColor === 'pink') {
41
- buttonClass =
42
- 'inline-flex items-center py-2 px-3 text-sm font-medium text-center text-white bg-pink-700 rounded-lg hover:bg-pink-800 focus:ring-4 focus:ring-pink-300 dark:bg-pink-600 dark:hover:bg-pink-700 dark:focus:ring-pink-800';
34
+ buttonClass = 'inline-flex items-center py-2 px-3 text-sm font-medium text-center text-white bg-pink-700 rounded-lg hover:bg-pink-800 focus:ring-4 focus:ring-pink-300 dark:bg-pink-600 dark:hover:bg-pink-700 dark:focus:ring-pink-800';
43
35
  }
44
36
  else {
45
- buttonClass =
46
- 'inline-flex items-center py-2 px-3 text-sm font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800';
37
+ buttonClass = 'inline-flex items-center py-2 px-3 text-sm font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800';
47
38
  }
48
39
  </script>
49
40
 
@@ -77,17 +68,7 @@ else {
77
68
  {#if link && btnLabel}
78
69
  <a href={link} {rel} class={buttonClass}>
79
70
  {btnLabel}
80
- <svg
81
- class="ml-2 -mr-1 w-4 h-4"
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="M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z"
88
- clip-rule="evenodd"
89
- /></svg
90
- >
71
+ <svg class="ml-2 -mr-1 w-4 h-4" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z" clip-rule="evenodd" /></svg>
91
72
  </a>
92
73
  {/if}
93
74
  </div>
@@ -36,7 +36,7 @@ const closeDropdown = () => {
36
36
  dropdownIdStore.update((n) => (n = null));
37
37
  };
38
38
  export let items;
39
- export let dropdownClass = 'absolute -left-44 top-12 z-10 w-44 text-base list-none bg-white rounded divide-y divide-gray-100 shadow dark:bg-gray-700';
39
+ export let dropdownClass = 'absolute left-0 top-1 z-10 w-44 text-base list-none bg-white rounded divide-y divide-gray-100 shadow dark:bg-gray-700';
40
40
  export let headerClass = 'py-3 px-4 text-gray-900 dark:text-white';
41
41
  export let linkClass = 'block py-2 px-4 text-sm text-gray-700 hover:bg-gray-100 dark:hover:bg-gray-600 dark:text-gray-200 dark:hover:text-white';
42
42
  if (color === 'blue') {
@@ -1,19 +1,16 @@
1
- <script>export let legend = '';
2
- export let divClass = 'flex items-center mb-4';
1
+ <script>export let divClass = 'flex items-center mb-4';
3
2
  export let inputClass = 'w-4 h-4 border-gray-300 focus:ring-2 focus:ring-blue-300 dark:focus:ring-blue-600 dark:focus:bg-blue-600 dark:bg-gray-700 dark:border-gray-600';
4
3
  export let labelClass = 'block ml-2 text-sm font-medium text-gray-900 dark:text-gray-300';
5
4
  export let name = 'countries';
6
5
  export let options;
7
6
  </script>
8
7
 
9
- <fieldset>
10
- <legend class="sr-only">{legend}</legend>
11
- {#each options as option}
12
- <div class={divClass}>
13
- <input id={option.id} type="radio" {name} value={option.value} class={inputClass} aria-labelledby={option.id} aria-describedby={option.id} checked={option.checked} disabled={option.disabled} />
14
- <label for={option.id} class={labelClass}>
15
- {option.label}
16
- </label>
17
- </div>
18
- {/each}
19
- </fieldset>
8
+ {#each options as option}
9
+ <div class={divClass}>
10
+ <input id={option.id} type="radio" {name} value={option.value} class={inputClass} aria-labelledby={option.id} aria-describedby={option.id} checked={option.checked} disabled={option.disabled} />
11
+ <label for={option.id} class={labelClass}>
12
+ {@html option.label}
13
+ </label>
14
+ <slot name="helper" />
15
+ </div>
16
+ {/each}