flowbite-svelte 0.23.0 → 0.23.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +59 -37
  3. package/alerts/Alert.svelte +13 -1
  4. package/alerts/Alert.svelte.d.ts +8 -0
  5. package/buttongroups/ButtonGroupItem.svelte +24 -2
  6. package/buttongroups/ButtonGroupItem.svelte.d.ts +7 -0
  7. package/buttons/Button.svelte +5 -0
  8. package/buttons/Button.svelte.d.ts +5 -0
  9. package/dropdowns/DropdownItem.svelte +8 -0
  10. package/dropdowns/DropdownItem.svelte.d.ts +7 -0
  11. package/forms/Checkbox.svelte +9 -1
  12. package/forms/Checkbox.svelte.d.ts +9 -1
  13. package/forms/Dropzone.svelte +13 -1
  14. package/forms/Dropzone.svelte.d.ts +8 -0
  15. package/forms/Fileupload.svelte +11 -0
  16. package/forms/Fileupload.svelte.d.ts +12 -0
  17. package/forms/FloatingLabelInput.svelte +10 -1
  18. package/forms/FloatingLabelInput.svelte.d.ts +10 -1
  19. package/forms/Input.svelte +10 -0
  20. package/forms/Input.svelte.d.ts +10 -0
  21. package/forms/Radio.svelte +10 -1
  22. package/forms/Radio.svelte.d.ts +10 -1
  23. package/forms/Range.svelte +5 -0
  24. package/forms/Range.svelte.d.ts +6 -0
  25. package/forms/Search.svelte +18 -1
  26. package/forms/Search.svelte.d.ts +11 -0
  27. package/forms/SimpleSearch.svelte +11 -0
  28. package/forms/SimpleSearch.svelte.d.ts +11 -0
  29. package/forms/Textarea.svelte +20 -1
  30. package/forms/Textarea.svelte.d.ts +12 -0
  31. package/forms/Toggle.svelte.d.ts +1 -1
  32. package/index.d.ts +0 -2
  33. package/index.js +0 -2
  34. package/list-group/ListItem.svelte +20 -0
  35. package/list-group/ListItem.svelte.d.ts +9 -0
  36. package/navbar/NavDropdown.svelte +15 -1
  37. package/navbar/NavDropdown.svelte.d.ts +11 -0
  38. package/navbar/NavLi.svelte +15 -1
  39. package/navbar/NavLi.svelte.d.ts +11 -0
  40. package/package.json +1 -3
  41. package/paginations/Next.svelte +14 -1
  42. package/paginations/Next.svelte.d.ts +9 -0
  43. package/paginations/Pagination.svelte +69 -5
  44. package/paginations/Pagination.svelte.d.ts +9 -0
  45. package/paginations/Previous.svelte +14 -1
  46. package/paginations/Previous.svelte.d.ts +9 -0
  47. package/paginations/TableData.svelte +30 -2
  48. package/paginations/TableData.svelte.d.ts +9 -0
  49. package/sidebars/SidebarDropdownItem.svelte +14 -1
  50. package/sidebars/SidebarDropdownItem.svelte.d.ts +10 -0
  51. package/sidebars/SidebarItem.svelte +14 -1
  52. package/sidebars/SidebarItem.svelte.d.ts +10 -0
  53. package/tabs/DefaultTabs.svelte +9 -0
  54. package/tabs/DefaultTabs.svelte.d.ts +10 -0
  55. package/tabs/FullWidthTabs.svelte +26 -3
  56. package/tabs/FullWidthTabs.svelte.d.ts +10 -0
  57. package/tabs/IconTabs.svelte +19 -2
  58. package/tabs/IconTabs.svelte.d.ts +10 -0
  59. package/tabs/InteractiveTabHead.svelte +10 -1
  60. package/tabs/InteractiveTabHead.svelte.d.ts +10 -0
  61. package/tabs/InteractiveTabs.svelte +9 -0
  62. package/tabs/InteractiveTabs.svelte.d.ts +10 -0
  63. package/tabs/PillTabs.svelte +10 -1
  64. package/tabs/PillTabs.svelte.d.ts +10 -0
  65. package/tabs/UnderlineTabs.svelte +8 -0
  66. package/tabs/UnderlineTabs.svelte.d.ts +9 -0
  67. package/cards/EcommerceCard.svelte +0 -52
  68. package/cards/EcommerceCard.svelte.d.ts +0 -28
  69. package/cards/SignInCard.svelte +0 -63
  70. package/cards/SignInCard.svelte.d.ts +0 -22
package/CHANGELOG.md CHANGED
@@ -2,6 +2,29 @@
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.23.3](https://github.com/themesberg/flowbite-svelte/compare/v0.23.2...v0.23.3) (2022-08-05)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * remove EcommerceCard and SignInCard ([7e6b2b6](https://github.com/themesberg/flowbite-svelte/commit/7e6b2b689a86cb47df080908ef3217345361667a))
11
+ * SignInCard type update ([55c824a](https://github.com/themesberg/flowbite-svelte/commit/55c824aa08727eb3f07c12fc589158e7cc94fd5f))
12
+
13
+ ### [0.23.2](https://github.com/themesberg/flowbite-svelte/compare/v0.23.1...v0.23.2) (2022-08-04)
14
+
15
+
16
+ ### Features
17
+
18
+ * add events to NavLi and NavDropdown ([02e4032](https://github.com/themesberg/flowbite-svelte/commit/02e403211c93d8e81457e1006e21341f4deed352))
19
+
20
+ ### [0.23.1](https://github.com/themesberg/flowbite-svelte/compare/v0.23.0...v0.23.1) (2022-08-04)
21
+
22
+
23
+ ### Features
24
+
25
+ * add events to components ([d24e023](https://github.com/themesberg/flowbite-svelte/commit/d24e023ba671b9976e2c0df3529a66b15e251cea))
26
+ * add typography page ([52923fb](https://github.com/themesberg/flowbite-svelte/commit/52923fb66b55fed20c876ef7b9348fccadde04a3))
27
+
5
28
  ## [0.23.0](https://github.com/themesberg/flowbite-svelte/compare/v0.22.30...v0.23.0) (2022-08-04)
6
29
 
7
30
 
package/README.md CHANGED
@@ -42,17 +42,17 @@ For full documentation, visit [flowbite-svelte.com](https://flowbite-svelte.com/
42
42
  <tr>
43
43
  <td width="33.3333%">
44
44
  <a href="https://flowbite-svelte.com/accordions/">
45
- <img alt="Tailwind CSS Accordion" src="https://flowbite.s3.amazonaws.com/github/accordion.jpg">
45
+ <img alt="Accordion" src="https://flowbite.s3.amazonaws.com/github/accordion.jpg">
46
46
  </a>
47
47
  </td>
48
48
  <td width="33.3333%">
49
49
  <a href="https://flowbite-svelte.com/alerts/">
50
- <img alt="Tailwind CSS Alerts" src="https://flowbite.s3.amazonaws.com/github/alerts.jpg">
50
+ <img alt="Alerts" src="https://flowbite.s3.amazonaws.com/github/alerts.jpg">
51
51
  </a>
52
52
  </td>
53
53
  <td width="33.3333%">
54
54
  <a href="https://flowbite-svelte.com/avatar/">
55
- <img alt="Tailwind CSS Avatar" src="https://flowbite.s3.amazonaws.com/github/avatar.jpg">
55
+ <img alt="Avatar" src="https://flowbite.s3.amazonaws.com/github/avatar.jpg">
56
56
  </a>
57
57
  </td>
58
58
  </tr>
@@ -65,17 +65,17 @@ For full documentation, visit [flowbite-svelte.com](https://flowbite-svelte.com/
65
65
  <tr>
66
66
  <td width="33.3333%">
67
67
  <a href="https://flowbite-svelte.com/badges/">
68
- <img alt="Tailwind CSS Badge" src="https://flowbite.s3.amazonaws.com/github/badge.jpg">
68
+ <img alt="Badge" src="https://flowbite.s3.amazonaws.com/github/badge.jpg">
69
69
  </a>
70
70
  </td>
71
71
  <td width="33.3333%">
72
72
  <a href="https://flowbite-svelte.com/breadcrumbs/">
73
- <img alt="Tailwind CSS Breadcrumbs" src="https://flowbite.s3.amazonaws.com/github/breadcrumbs.jpg">
73
+ <img alt="Breadcrumbs" src="https://flowbite.s3.amazonaws.com/github/breadcrumbs.jpg">
74
74
  </a>
75
75
  </td>
76
76
  <td width="33.3333%">
77
77
  <a href="https://flowbite-svelte.com/button-groups/">
78
- <img alt="Tailwind CSS Button Group" src="https://flowbite.s3.amazonaws.com/github/button-group.jpg">
78
+ <img alt="Button Group" src="https://flowbite.s3.amazonaws.com/github/button-group.jpg">
79
79
  </a>
80
80
  </td>
81
81
  </tr>
@@ -88,17 +88,17 @@ For full documentation, visit [flowbite-svelte.com](https://flowbite-svelte.com/
88
88
  <tr>
89
89
  <td width="33.3333%">
90
90
  <a href="https://flowbite-svelte.com/buttons/">
91
- <img alt="Tailwind CSS Buttons" src="https://flowbite.s3.amazonaws.com/github/buttons.jpg">
91
+ <img alt="Buttons" src="https://flowbite.s3.amazonaws.com/github/buttons.jpg">
92
92
  </a>
93
93
  </td>
94
94
  <td width="33.3333%">
95
95
  <a href="https://flowbite-svelte.com/cards/">
96
- <img alt="Tailwind CSS Cards" src="https://flowbite.s3.amazonaws.com/github/cards.jpg">
96
+ <img alt="Cards" src="https://flowbite.s3.amazonaws.com/github/cards.jpg">
97
97
  </a>
98
98
  </td>
99
99
  <td width="33.3333%">
100
100
  <a href="https://flowbite-svelte.com/carousels/">
101
- <img alt="Tailwind CSS Carousel" src="https://flowbite.s3.amazonaws.com/github/carousel.jpg">
101
+ <img alt="Carousel" src="https://flowbite.s3.amazonaws.com/github/carousel.jpg">
102
102
  </a>
103
103
  </td>
104
104
  </tr>
@@ -110,17 +110,17 @@ For full documentation, visit [flowbite-svelte.com](https://flowbite-svelte.com/
110
110
  <tr>
111
111
  <td width="33.3333%">
112
112
  <a href="https://flowbite-svelte.com/darkmode/">
113
- <img alt="Tailwind CSS Forms" src="https://flowbite.s3.amazonaws.com/github/forms.jpg">
113
+ <img alt="Forms" src="https://flowbite.s3.amazonaws.com/github/forms.jpg">
114
114
  </a>
115
115
  </td>
116
116
  <td width="33.3333%">
117
117
  <a href="https://flowbite-svelte.com/dropdowns/">
118
- <img alt="Tailwind CSS Dropdown" src="https://flowbite.s3.amazonaws.com/github/dropdown.jpg">
118
+ <img alt="Dropdown" src="https://flowbite.s3.amazonaws.com/github/dropdown.jpg">
119
119
  </a>
120
120
  </td>
121
121
  <td width="33.3333%">
122
122
  <a href="https://flowbite-svelte.com/footer/">
123
- <img alt="Tailwind CSS Footer" src="https://flowbite.s3.amazonaws.com/github/footer.jpg">
123
+ <img alt="Footer" src="https://flowbite.s3.amazonaws.com/github/footer.jpg">
124
124
  </a>
125
125
  </td>
126
126
  </tr>
@@ -132,7 +132,7 @@ For full documentation, visit [flowbite-svelte.com](https://flowbite-svelte.com/
132
132
  <tr>
133
133
  <td width="33.3333%">
134
134
  <a href="https://flowbite-svelte.com/forms/">
135
- <img alt="Tailwind CSS Forms" src="https://flowbite.s3.amazonaws.com/github/forms.jpg">
135
+ <img alt="Forms" src="https://flowbite.s3.amazonaws.com/github/forms.jpg">
136
136
  </a>
137
137
  </td>
138
138
  <td width="33.3333%">
@@ -142,7 +142,7 @@ For full documentation, visit [flowbite-svelte.com](https://flowbite-svelte.com/
142
142
  </td>
143
143
  <td width="33.3333%">
144
144
  <a href="https://flowbite-svelte.com/list-group/">
145
- <img alt="Tailwind CSS List group" src="https://flowbite.s3.amazonaws.com/github/list-group.jpg">
145
+ <img alt="List group" src="https://flowbite.s3.amazonaws.com/github/list-group.jpg">
146
146
  </a>
147
147
  </td>
148
148
  </tr>
@@ -154,17 +154,17 @@ For full documentation, visit [flowbite-svelte.com](https://flowbite-svelte.com/
154
154
  <tr>
155
155
  <td width="33.3333%">
156
156
  <a href="https://flowbite-svelte.com/modals/">
157
- <img alt="Tailwind CSS Modal" src="https://flowbite.s3.amazonaws.com/github/modal.jpg">
157
+ <img alt="Modal" src="https://flowbite.s3.amazonaws.com/github/modal.jpg">
158
158
  </a>
159
159
  </td>
160
160
  <td width="33.3333%">
161
161
  <a href="https://flowbite-svelte.com/navbar/">
162
- <img alt="Tailwind CSS Navbar" src="https://flowbite.s3.amazonaws.com/github/navbar.jpg">
162
+ <img alt="Navbar" src="https://flowbite.s3.amazonaws.com/github/navbar.jpg">
163
163
  </a>
164
164
  </td>
165
165
  <td width="33.3333%">
166
166
  <a href="https://flowbite-svelte.com/paginations/">
167
- <img alt="Tailwind CSS Pagination" src="https://flowbite.s3.amazonaws.com/github/pagination.jpg">
167
+ <img alt="Pagination" src="https://flowbite.s3.amazonaws.com/github/pagination.jpg">
168
168
  </a>
169
169
  </td>
170
170
  </tr>
@@ -176,17 +176,17 @@ For full documentation, visit [flowbite-svelte.com](https://flowbite-svelte.com/
176
176
  <tr>
177
177
  <td width="33.3333%">
178
178
  <a href="https://flowbite-svelte.com/progressbars/">
179
- <img alt="Tailwind CSS Progress Bar" src="https://flowbite.s3.amazonaws.com/github/progress.jpg">
179
+ <img alt="Progress Bar" src="https://flowbite.s3.amazonaws.com/github/progress.jpg">
180
180
  </a>
181
181
  </td>
182
182
  <td width="33.3333%">
183
183
  <a href="https://flowbite-svelte.com/ratings/">
184
- <img alt="Tailwind CSS Rating" src="https://flowbite.s3.amazonaws.com/github/rating.jpg">
184
+ <img alt="Rating" src="https://flowbite.s3.amazonaws.com/github/rating.jpg">
185
185
  </a>
186
186
  </td>
187
187
  <td width="33.3333%">
188
188
  <a href="https://flowbite-svelte.com/sidebars/">
189
- <img alt="Tailwind CSS Sidebar" src="https://flowbite.s3.amazonaws.com/github/sidebar.jpg">
189
+ <img alt="Sidebar" src="https://flowbite.s3.amazonaws.com/github/sidebar.jpg">
190
190
  </a>
191
191
  </td>
192
192
  </tr>
@@ -198,17 +198,17 @@ For full documentation, visit [flowbite-svelte.com](https://flowbite-svelte.com/
198
198
  <tr>
199
199
  <td width="33.3333%">
200
200
  <a href="https://flowbite-svelte.com/spinners/">
201
- <img alt="Tailwind CSS Spinner" src="https://flowbite.s3.amazonaws.com/github/spinner.jpg">
201
+ <img alt="Spinner" src="https://flowbite.s3.amazonaws.com/github/spinner.jpg">
202
202
  </a>
203
203
  </td>
204
204
  <td width="33.3333%">
205
205
  <a href="https://flowbite-svelte.com/tables/">
206
- <img alt="Tailwind CSS Tables" src="https://flowbite.s3.amazonaws.com/github/tables.jpg">
206
+ <img alt="Tables" src="https://flowbite.s3.amazonaws.com/github/tables.jpg">
207
207
  </a>
208
208
  </td>
209
209
  <td width="33.3333%">
210
210
  <a href="https://flowbite-svelte.com/tabs/">
211
- <img alt="Tailwind CSS Tabs" src="https://flowbite.s3.amazonaws.com/github/tabs.jpg">
211
+ <img alt="Tabs" src="https://flowbite.s3.amazonaws.com/github/tabs.jpg">
212
212
  </a>
213
213
  </td>
214
214
  </tr>
@@ -220,17 +220,17 @@ For full documentation, visit [flowbite-svelte.com](https://flowbite-svelte.com/
220
220
  <tr>
221
221
  <td width="33.3333%">
222
222
  <a href="https://flowbite-svelte.com/timelines/">
223
- <img alt="Tailwind CSS Timeline" src="https://flowbite.s3.amazonaws.com/github/timeline.jpg">
223
+ <img alt="Timeline" src="https://flowbite.s3.amazonaws.com/github/timeline.jpg">
224
224
  </a>
225
225
  </td>
226
226
  <td width="33.3333%">
227
227
  <a href="https://flowbite-svelte.com/toasts/">
228
- <img alt="Tailwind CSS Toast" src="https://flowbite.s3.amazonaws.com/github/toast.jpg">
228
+ <img alt="Toast" src="https://flowbite.s3.amazonaws.com/github/toast.jpg">
229
229
  </a>
230
230
  </td>
231
231
  <td width="33.3333%">
232
232
  <a href="https://flowbite-svelte.com/tooltips/">
233
- <img alt="Tailwind CSS Tooltips" src="https://flowbite.s3.amazonaws.com/github/tooltips.jpg">
233
+ <img alt="Tooltips" src="https://flowbite.s3.amazonaws.com/github/tooltips.jpg">
234
234
  </a>
235
235
  </td>
236
236
  </tr>
@@ -242,17 +242,17 @@ For full documentation, visit [flowbite-svelte.com](https://flowbite-svelte.com/
242
242
  <tr>
243
243
  <td width="33.3333%">
244
244
  <a href="https://flowbite-svelte.com/forms/input/">
245
- <img alt="Tailwind CSS Input Field" src="https://flowbite.s3.amazonaws.com/github/input-field.jpg">
245
+ <img alt="Input Field" src="https://flowbite.s3.amazonaws.com/github/input-field.jpg">
246
246
  </a>
247
247
  </td>
248
248
  <td width="33.3333%">
249
249
  <a href="https://flowbite-svelte.com/forms/file-input/">
250
- <img alt="Tailwind CSS File Input" src="https://flowbite.s3.amazonaws.com/github/file-input.jpg">
250
+ <img alt="File Input" src="https://flowbite.s3.amazonaws.com/github/file-input.jpg">
251
251
  </a>
252
252
  </td>
253
253
  <td width="33.3333%">
254
254
  <a href="https://flowbite-svelte.com/forms/search/">
255
- <img alt="Tailwind CSS Search Input" src="https://flowbite.s3.amazonaws.com/github/search-input.jpg">
255
+ <img alt="Search Input" src="https://flowbite.s3.amazonaws.com/github/search-input.jpg">
256
256
  </a>
257
257
  </td>
258
258
  </tr>
@@ -264,17 +264,17 @@ For full documentation, visit [flowbite-svelte.com](https://flowbite-svelte.com/
264
264
  <tr>
265
265
  <td width="33.3333%">
266
266
  <a href="https://flowbite-svelte.com/forms/select/">
267
- <img alt="Tailwind CSS Select" src="https://flowbite.s3.amazonaws.com/github/select.jpg">
267
+ <img alt="Select" src="https://flowbite.s3.amazonaws.com/github/select.jpg">
268
268
  </a>
269
269
  </td>
270
270
  <td width="33.3333%">
271
271
  <a href="https://flowbite-svelte.com/forms/textarea/">
272
- <img alt="Tailwind CSS Textarea" src="https://flowbite.s3.amazonaws.com/github/textarea.jpg">
272
+ <img alt="Textarea" src="https://flowbite.s3.amazonaws.com/github/textarea.jpg">
273
273
  </a>
274
274
  </td>
275
275
  <td width="33.3333%">
276
276
  <a href="https://flowbite-svelte.com/forms/checkbox/">
277
- <img alt="Tailwind CSS Checkbox" src="https://flowbite.s3.amazonaws.com/github/checkbox.jpg">
277
+ <img alt="Checkbox" src="https://flowbite.s3.amazonaws.com/github/checkbox.jpg">
278
278
  </a>
279
279
  </td>
280
280
  </tr>
@@ -286,33 +286,55 @@ For full documentation, visit [flowbite-svelte.com](https://flowbite-svelte.com/
286
286
  <tr>
287
287
  <td width="33.3333%">
288
288
  <a href="https://flowbite-svelte.com/forms/radio/">
289
- <img alt="Tailwind CSS Radio" src="https://flowbite.s3.amazonaws.com/github/radio.jpg">
289
+ <img alt="Radio" src="https://flowbite.s3.amazonaws.com/github/radio.jpg">
290
290
  </a>
291
291
  </td>
292
292
  <td width="33.3333%">
293
293
  <a href="https://flowbite-svelte.com/forms/toggle/">
294
- <img alt="Tailwind CSS Toggle" src="https://flowbite.s3.amazonaws.com/github/toggle.jpg">
294
+ <img alt="Toggle" src="https://flowbite.s3.amazonaws.com/github/toggle.jpg">
295
295
  </a>
296
296
  </td>
297
297
  <td width="33.3333%">
298
298
  <a href="https://flowbite-svelte.com/forms/range/">
299
- <img alt="Tailwind CSS Range Slider" src="https://flowbite.s3.amazonaws.com/github/range-slider.jpg">
299
+ <img alt="Range Slider" src="https://flowbite.s3.amazonaws.com/github/range-slider.jpg">
300
300
  </a>
301
301
  </td>
302
302
  </tr>
303
303
  <tr>
304
304
  <td width="33.3333%">Floating Label</td>
305
305
  <td width="33.3333%">Datepicker</td>
306
+ <td width="33.3333%">Typography</td>
306
307
  </tr>
307
308
  <tr>
308
309
  <td width="33.3333%">
309
310
  <a href="https://flowbite-svelte.com/forms/floating-label/">
310
- <img alt="Tailwind CSS Floating Label" src="https://flowbite.s3.amazonaws.com/github/floating-label.jpg">
311
+ <img alt="Floating Label" src="https://flowbite.s3.amazonaws.com/github/floating-label.jpg">
311
312
  </a>
312
313
  </td>
313
314
  <td width="33.3333%">
314
315
  <a href="https://flowbite-svelte.com/datepicker/">
315
- <img alt="Tailwind CSS Datepicker" src="https://flowbite.s3.amazonaws.com/github/datepicker.jpg">
316
+ <img alt="Datepicker" src="https://flowbite.s3.amazonaws.com/github/datepicker.jpg">
317
+ </a>
318
+ </td>
319
+ <td width="33.3333%">
320
+ <a href="https://flowbite-svelte.com/typography/">
321
+ <img alt="Typography" src="https://flowbite.s3.amazonaws.com/github/typography.jpg">
322
+ </a>
323
+ </td>
324
+ </tr>
325
+ <tr>
326
+ <td width="33.3333%">Skeleton</td>
327
+ <td width="33.3333%">KBD(Keyboard)</td>
328
+ </tr>
329
+ <tr>
330
+ <td width="33.3333%">
331
+ <a href="https://flowbite-svelte.com/skeleton/">
332
+ <img alt="Skeleton" src="https://flowbite.s3.amazonaws.com/github/skeleton.jpg">
333
+ </a>
334
+ </td>
335
+ <td width="33.3333%">
336
+ <a href="https://flowbite-svelte.com/kbd/">
337
+ <img alt="Kbd, Keyboard" src="https://flowbite.s3.amazonaws.com/github/kbd.jpg">
316
338
  </a>
317
339
  </td>
318
340
  </tr>
@@ -64,7 +64,19 @@ $: divClass = classNames('flex flex-col p-4 mb-4 gap-2 text-sm', bgClasses[color
64
64
  </div>
65
65
 
66
66
  {#if dismissable}
67
- <CloseButton {color} on:click={handleHide} on:click={handleAlert} />
67
+ <CloseButton
68
+ {color}
69
+ on:click={handleHide}
70
+ on:click={handleAlert}
71
+ on:click
72
+ on:change
73
+ on:keydown
74
+ on:keyup
75
+ on:focus
76
+ on:blur
77
+ on:mouseenter
78
+ on:mouseleave
79
+ />
68
80
  {/if}
69
81
  </div>
70
82
  <slot name="extra" />
@@ -11,6 +11,14 @@ declare const __propDef: {
11
11
  accent?: boolean;
12
12
  };
13
13
  events: {
14
+ click: MouseEvent;
15
+ change: CustomEvent<any>;
16
+ keydown: CustomEvent<any>;
17
+ keyup: CustomEvent<any>;
18
+ focus: CustomEvent<any>;
19
+ blur: CustomEvent<any>;
20
+ mouseenter: CustomEvent<any>;
21
+ mouseleave: CustomEvent<any>;
14
22
  handleAlert: CustomEvent<any>;
15
23
  } & {
16
24
  [evt: string]: CustomEvent<any>;
@@ -10,9 +10,31 @@ if (outline) {
10
10
  </script>
11
11
 
12
12
  {#if href}
13
- <a {href} {...$$restProps} class={classNames(btnClass, $$props.class)} on:click><slot /></a>
13
+ <a
14
+ {href}
15
+ {...$$restProps}
16
+ class={classNames(btnClass, $$props.class)}
17
+ on:click
18
+ on:change
19
+ on:keydown
20
+ on:keyup
21
+ on:mouseenter
22
+ on:mouseleave><slot /></a
23
+ >
14
24
  {:else}
15
- <button {type} {...$$restProps} class={classNames(btnClass, $$props.class)} on:click>
25
+ <button
26
+ {type}
27
+ {...$$restProps}
28
+ class={classNames(btnClass, $$props.class)}
29
+ on:click
30
+ on:change
31
+ on:keydown
32
+ on:keyup
33
+ on:focus
34
+ on:blur
35
+ on:mouseenter
36
+ on:mouseleave
37
+ >
16
38
  <slot />
17
39
  </button>
18
40
  {/if}
@@ -11,6 +11,13 @@ declare const __propDef: {
11
11
  };
12
12
  events: {
13
13
  click: MouseEvent;
14
+ change: Event;
15
+ keydown: KeyboardEvent;
16
+ keyup: KeyboardEvent;
17
+ mouseenter: MouseEvent;
18
+ mouseleave: MouseEvent;
19
+ focus: FocusEvent;
20
+ blur: FocusEvent;
14
21
  } & {
15
22
  [evt: string]: CustomEvent<any>;
16
23
  };
@@ -76,6 +76,11 @@ $: gradientOutlineClass = classNames('inline-flex items-center justify-center',
76
76
  {...$$restProps}
77
77
  class={buttonClass}
78
78
  on:click
79
+ on:change
80
+ on:keydown
81
+ on:keyup
82
+ on:mouseenter
83
+ on:mouseleave
79
84
  >
80
85
  {#if outline && gradient}
81
86
  <!-- Trick to prentend outline without using border
@@ -12,6 +12,11 @@ declare const __propDef: {
12
12
  };
13
13
  events: {
14
14
  click: MouseEvent;
15
+ change: Event;
16
+ keydown: KeyboardEvent;
17
+ keyup: KeyboardEvent;
18
+ mouseenter: MouseEvent;
19
+ mouseleave: MouseEvent;
15
20
  } & {
16
21
  [evt: string]: CustomEvent<any>;
17
22
  };
@@ -11,6 +11,14 @@ const colors = {
11
11
  {...$$restProps}
12
12
  class={classNames(liClass, colors[color] ?? colors.default, $$props.class)}
13
13
  on:click|stopPropagation
14
+ on:click
15
+ on:change
16
+ on:keydown
17
+ on:keyup
18
+ on:focus
19
+ on:blur
20
+ on:mouseenter
21
+ on:mouseleave
14
22
  >
15
23
  <slot />
16
24
  </li>
@@ -7,6 +7,13 @@ declare const __propDef: {
7
7
  };
8
8
  events: {
9
9
  click: MouseEvent;
10
+ change: Event;
11
+ keydown: KeyboardEvent;
12
+ keyup: KeyboardEvent;
13
+ focus: FocusEvent;
14
+ blur: FocusEvent;
15
+ mouseenter: MouseEvent;
16
+ mouseleave: MouseEvent;
10
17
  } & {
11
18
  [evt: string]: CustomEvent<any>;
12
19
  };
@@ -36,8 +36,16 @@ $: {
36
36
  <input
37
37
  type="checkbox"
38
38
  bind:checked
39
+ on:keyup
40
+ on:keydown
41
+ on:keypress
42
+ on:focus
43
+ on:blur
39
44
  on:click
40
- on:change
45
+ on:mouseover
46
+ on:mouseenter
47
+ on:mouseleave
48
+ on:paste
41
49
  {value}
42
50
  {...$$restProps}
43
51
  class={inputClass(custom, color, true, background, $$slots.default || $$props.class)}
@@ -11,8 +11,16 @@ declare const __propDef: {
11
11
  checked?: boolean;
12
12
  };
13
13
  events: {
14
+ keyup: KeyboardEvent;
15
+ keydown: KeyboardEvent;
16
+ keypress: KeyboardEvent;
17
+ focus: FocusEvent;
18
+ blur: FocusEvent;
14
19
  click: MouseEvent;
15
- change: Event;
20
+ mouseover: MouseEvent;
21
+ mouseenter: MouseEvent;
22
+ mouseleave: MouseEvent;
23
+ paste: ClipboardEvent;
16
24
  } & {
17
25
  [evt: string]: CustomEvent<any>;
18
26
  };
@@ -9,6 +9,18 @@ export let innerDivClass = 'flex flex-col justify-center items-center pt-5 pb-6'
9
9
  <div class={innerDivClass}>
10
10
  <slot />
11
11
  </div>
12
- <input {...$$restProps} bind:value type="file" class="hidden" />
12
+ <input
13
+ {...$$restProps}
14
+ bind:value
15
+ type="file"
16
+ class="hidden"
17
+ on:click
18
+ on:change
19
+ on:focus
20
+ on:blur
21
+ on:mouseenter
22
+ on:mouseleave
23
+ on:mouseover
24
+ />
13
25
  </label>
14
26
  </div>
@@ -8,6 +8,14 @@ declare const __propDef: {
8
8
  innerDivClass?: string;
9
9
  };
10
10
  events: {
11
+ click: MouseEvent;
12
+ change: Event;
13
+ focus: FocusEvent;
14
+ blur: FocusEvent;
15
+ mouseenter: MouseEvent;
16
+ mouseleave: MouseEvent;
17
+ mouseover: MouseEvent;
18
+ } & {
11
19
  [evt: string]: CustomEvent<any>;
12
20
  };
13
21
  slots: {
@@ -6,6 +6,17 @@ export let inputClass = 'block w-full text-gray-900 bg-gray-50 rounded-lg border
6
6
 
7
7
  <input
8
8
  {...$$restProps}
9
+ on:change
10
+ on:keyup
11
+ on:keydown
12
+ on:keypress
13
+ on:focus
14
+ on:blur
15
+ on:click
16
+ on:mouseover
17
+ on:mouseenter
18
+ on:mouseleave
19
+ on:paste
9
20
  bind:value
10
21
  class={classNames(inputClass, {
11
22
  'mb-5 text-xs': size === 'xs',
@@ -7,6 +7,18 @@ declare const __propDef: {
7
7
  inputClass?: string;
8
8
  };
9
9
  events: {
10
+ change: Event;
11
+ keyup: KeyboardEvent;
12
+ keydown: KeyboardEvent;
13
+ keypress: KeyboardEvent;
14
+ focus: FocusEvent;
15
+ blur: FocusEvent;
16
+ click: MouseEvent;
17
+ mouseover: MouseEvent;
18
+ mouseenter: MouseEvent;
19
+ mouseleave: MouseEvent;
20
+ paste: ClipboardEvent;
21
+ } & {
10
22
  [evt: string]: CustomEvent<any>;
11
23
  };
12
24
  slots: {};
@@ -72,8 +72,17 @@ function setType(node) {
72
72
  {id}
73
73
  {...$$restProps}
74
74
  bind:value
75
- on:change
76
75
  on:blur
76
+ on:change
77
+ on:click
78
+ on:focus
79
+ on:keydown
80
+ on:keypress
81
+ on:keyup
82
+ on:mouseenter
83
+ on:mouseleave
84
+ on:mouseover
85
+ on:paste
77
86
  bind:this={ref}
78
87
  use:setType
79
88
  placeholder=" "
@@ -13,8 +13,17 @@ declare const __propDef: {
13
13
  ref?: HTMLElement;
14
14
  };
15
15
  events: {
16
- change: Event;
17
16
  blur: FocusEvent;
17
+ change: Event;
18
+ click: MouseEvent;
19
+ focus: FocusEvent;
20
+ keydown: KeyboardEvent;
21
+ keypress: KeyboardEvent;
22
+ keyup: KeyboardEvent;
23
+ mouseenter: MouseEvent;
24
+ mouseleave: MouseEvent;
25
+ mouseover: MouseEvent;
26
+ paste: ClipboardEvent;
18
27
  } & {
19
28
  [evt: string]: CustomEvent<any>;
20
29
  };
@@ -23,7 +23,17 @@ function setType(node) {
23
23
  {...$$restProps}
24
24
  bind:value
25
25
  bind:this={ref}
26
+ on:blur
26
27
  on:change
28
+ on:click
29
+ on:focus
30
+ on:keydown
31
+ on:keypress
32
+ on:keyup
33
+ on:mouseover
34
+ on:mouseenter
35
+ on:mouseleave
36
+ on:paste
27
37
  use:setType
28
38
  class={classNames(
29
39
  inputClass,
@@ -11,7 +11,17 @@ declare const __propDef: {
11
11
  ref?: HTMLElement;
12
12
  };
13
13
  events: {
14
+ blur: FocusEvent;
14
15
  change: Event;
16
+ click: MouseEvent;
17
+ focus: FocusEvent;
18
+ keydown: KeyboardEvent;
19
+ keypress: KeyboardEvent;
20
+ keyup: KeyboardEvent;
21
+ mouseover: MouseEvent;
22
+ mouseenter: MouseEvent;
23
+ mouseleave: MouseEvent;
24
+ paste: ClipboardEvent;
15
25
  } & {
16
26
  [evt: string]: CustomEvent<any>;
17
27
  };