flowbite-svelte 0.22.29 → 0.23.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 +35 -0
- package/README.md +64 -36
- package/buttongroups/ButtonGroupItem.svelte +26 -2
- package/buttongroups/ButtonGroupItem.svelte.d.ts +7 -0
- package/buttons/Button.svelte +6 -0
- package/buttons/Button.svelte.d.ts +5 -0
- package/datepicker/Calender.svelte +12 -0
- package/datepicker/Calender.svelte.d.ts +19 -0
- package/datepicker/Datepicker.svelte +71 -0
- package/datepicker/Datepicker.svelte.d.ts +25 -0
- package/dropdowns/DropdownItem.svelte +8 -0
- package/dropdowns/DropdownItem.svelte.d.ts +7 -0
- package/forms/Checkbox.svelte +9 -1
- package/forms/Checkbox.svelte.d.ts +9 -1
- package/forms/Fileupload.svelte +11 -0
- package/forms/Fileupload.svelte.d.ts +12 -0
- package/forms/FloatingLabelInput.svelte +9 -0
- package/forms/FloatingLabelInput.svelte.d.ts +9 -0
- package/forms/Input.svelte +10 -0
- package/forms/Input.svelte.d.ts +10 -0
- package/forms/Radio.svelte +10 -1
- package/forms/Radio.svelte.d.ts +10 -1
- package/forms/Range.svelte +5 -0
- package/forms/Range.svelte.d.ts +6 -0
- package/forms/Search.svelte +18 -1
- package/forms/Search.svelte.d.ts +11 -0
- package/forms/Textarea.svelte +20 -1
- package/forms/Textarea.svelte.d.ts +12 -0
- package/forms/Toggle.svelte.d.ts +1 -1
- package/index.d.ts +1 -0
- package/index.js +2 -0
- package/package.json +3 -1
- package/sidebars/SidebarDropdownItem.svelte +14 -1
- package/sidebars/SidebarDropdownItem.svelte.d.ts +9 -0
- package/sidebars/SidebarItem.svelte +14 -1
- package/sidebars/SidebarItem.svelte.d.ts +9 -0
- package/tabs/DefaultTabs.svelte +9 -0
- package/tabs/DefaultTabs.svelte.d.ts +9 -0
- package/tabs/FullWidthTabs.svelte +26 -3
- package/tabs/FullWidthTabs.svelte.d.ts +9 -0
- package/tabs/IconTabs.svelte +19 -2
- package/tabs/IconTabs.svelte.d.ts +9 -0
- package/tabs/InteractiveTabHead.svelte +10 -1
- package/tabs/InteractiveTabHead.svelte.d.ts +9 -0
- package/tabs/InteractiveTabs.svelte +9 -0
- package/tabs/InteractiveTabs.svelte.d.ts +9 -0
- package/tabs/PillTabs.svelte +10 -1
- package/tabs/PillTabs.svelte.d.ts +9 -0
- package/tabs/UnderlineTabs.svelte +9 -0
- package/tabs/UnderlineTabs.svelte.d.ts +9 -0
- package/tooltips/Tooltip.svelte +46 -40
- package/tooltips/Tooltip.svelte.d.ts +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,41 @@
|
|
|
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.1](https://github.com/themesberg/flowbite-svelte/compare/v0.23.0...v0.23.1) (2022-08-04)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* add events to components ([d24e023](https://github.com/themesberg/flowbite-svelte/commit/d24e023ba671b9976e2c0df3529a66b15e251cea))
|
|
11
|
+
* add typography page ([52923fb](https://github.com/themesberg/flowbite-svelte/commit/52923fb66b55fed20c876ef7b9348fccadde04a3))
|
|
12
|
+
|
|
13
|
+
## [0.23.0](https://github.com/themesberg/flowbite-svelte/compare/v0.22.30...v0.23.0) (2022-08-04)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### ⚠ BREAKING CHANGES
|
|
17
|
+
|
|
18
|
+
* add datepicker
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* add datepicker ([a8b70e6](https://github.com/themesberg/flowbite-svelte/commit/a8b70e67b61e4e038520cc66238861e368716e60))
|
|
23
|
+
* add datepicker ([32f8889](https://github.com/themesberg/flowbite-svelte/commit/32f88899256bed9effe6b23b4d24cd8380ce2aff))
|
|
24
|
+
* add datepicker examples ([590ec66](https://github.com/themesberg/flowbite-svelte/commit/590ec660f27e43b18c588d44c0899aa16a3fc870))
|
|
25
|
+
* add datepicker examples ([68e2462](https://github.com/themesberg/flowbite-svelte/commit/68e2462567838816ef116c3ed5b389e8de52f643))
|
|
26
|
+
* working on datepicker ([4fedccf](https://github.com/themesberg/flowbite-svelte/commit/4fedccfc3f04308b53712cc87849098a7e502d2a))
|
|
27
|
+
|
|
28
|
+
### [0.22.30](https://github.com/themesberg/flowbite-svelte/compare/v0.22.29...v0.22.30) (2022-08-03)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
* add Tooltip custom CSS ([1466d16](https://github.com/themesberg/flowbite-svelte/commit/1466d16fff312ccdb22e1c282f49b7b156121d57))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Bug Fixes
|
|
37
|
+
|
|
38
|
+
* revert Tooltip component ([9cedc68](https://github.com/themesberg/flowbite-svelte/commit/9cedc68014a7114c0e15691c26081bb9f5af88af))
|
|
39
|
+
|
|
5
40
|
### [0.22.29](https://github.com/themesberg/flowbite-svelte/compare/v0.22.28...v0.22.29) (2022-08-02)
|
|
6
41
|
|
|
7
42
|
|
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="
|
|
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="
|
|
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="
|
|
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="
|
|
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="
|
|
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="
|
|
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="
|
|
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="
|
|
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="
|
|
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="
|
|
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="
|
|
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="
|
|
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="
|
|
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="
|
|
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="
|
|
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="
|
|
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="
|
|
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="
|
|
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="
|
|
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="
|
|
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="
|
|
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="
|
|
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="
|
|
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="
|
|
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="
|
|
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="
|
|
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="
|
|
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="
|
|
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="
|
|
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="
|
|
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="
|
|
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="
|
|
277
|
+
<img alt="Checkbox" src="https://flowbite.s3.amazonaws.com/github/checkbox.jpg">
|
|
278
278
|
</a>
|
|
279
279
|
</td>
|
|
280
280
|
</tr>
|
|
@@ -286,27 +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="
|
|
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="
|
|
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="
|
|
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
|
+
<td width="33.3333%">Datepicker</td>
|
|
306
|
+
<td width="33.3333%">Typography</td>
|
|
305
307
|
</tr>
|
|
306
308
|
<tr>
|
|
307
309
|
<td width="33.3333%">
|
|
308
310
|
<a href="https://flowbite-svelte.com/forms/floating-label/">
|
|
309
|
-
<img alt="
|
|
311
|
+
<img alt="Floating Label" src="https://flowbite.s3.amazonaws.com/github/floating-label.jpg">
|
|
312
|
+
</a>
|
|
313
|
+
</td>
|
|
314
|
+
<td width="33.3333%">
|
|
315
|
+
<a href="https://flowbite-svelte.com/datepicker/">
|
|
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">
|
|
310
338
|
</a>
|
|
311
339
|
</td>
|
|
312
340
|
</tr>
|
|
@@ -10,9 +10,33 @@ if (outline) {
|
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
12
|
{#if href}
|
|
13
|
-
<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
|
|
23
|
+
on:mouseenter><slot /></a
|
|
24
|
+
>
|
|
14
25
|
{:else}
|
|
15
|
-
<button
|
|
26
|
+
<button
|
|
27
|
+
{type}
|
|
28
|
+
{...$$restProps}
|
|
29
|
+
class={classNames(btnClass, $$props.class)}
|
|
30
|
+
on:click
|
|
31
|
+
on:change
|
|
32
|
+
on:keydown
|
|
33
|
+
on:keyup
|
|
34
|
+
on:focus
|
|
35
|
+
on:blur
|
|
36
|
+
on:mouseenter
|
|
37
|
+
on:mouseleave
|
|
38
|
+
on:mouseenter
|
|
39
|
+
>
|
|
16
40
|
<slot />
|
|
17
41
|
</button>
|
|
18
42
|
{/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
|
};
|
package/buttons/Button.svelte
CHANGED
|
@@ -76,6 +76,12 @@ $: 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
|
|
84
|
+
on:mouseenter
|
|
79
85
|
>
|
|
80
86
|
{#if outline && gradient}
|
|
81
87
|
<!-- Trick to prentend outline without using border
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg
|
|
2
|
+
aria-hidden="true"
|
|
3
|
+
class="w-5 h-5 text-gray-500 dark:text-gray-400"
|
|
4
|
+
fill="currentColor"
|
|
5
|
+
viewBox="0 0 20 20"
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
><path
|
|
8
|
+
fill-rule="evenodd"
|
|
9
|
+
d="M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z"
|
|
10
|
+
clip-rule="evenodd"
|
|
11
|
+
/></svg
|
|
12
|
+
>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} CalenderProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} CalenderEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} CalenderSlots */
|
|
4
|
+
export default class Calender extends SvelteComponentTyped<{}, {
|
|
5
|
+
[evt: string]: CustomEvent<any>;
|
|
6
|
+
}, {}> {
|
|
7
|
+
}
|
|
8
|
+
export type CalenderProps = typeof __propDef.props;
|
|
9
|
+
export type CalenderEvents = typeof __propDef.events;
|
|
10
|
+
export type CalenderSlots = typeof __propDef.slots;
|
|
11
|
+
import { SvelteComponentTyped } from "svelte";
|
|
12
|
+
declare const __propDef: {
|
|
13
|
+
props: {};
|
|
14
|
+
events: {
|
|
15
|
+
[evt: string]: CustomEvent<any>;
|
|
16
|
+
};
|
|
17
|
+
slots: {};
|
|
18
|
+
};
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
<script>// import { onMount } from 'svelte';
|
|
2
|
+
import Calendar from './Calender.svelte';
|
|
3
|
+
export let range = false;
|
|
4
|
+
// autoHide not working
|
|
5
|
+
// export let autoHide: boolean = false;
|
|
6
|
+
export let datepickerButtons = false;
|
|
7
|
+
export let datepickerFormat = 'mm/dd/yyyy';
|
|
8
|
+
export let datepickerOrientation = 'bottom';
|
|
9
|
+
export let datepickerTitle = 'Flowbite datepicker';
|
|
10
|
+
export let attribute = '';
|
|
11
|
+
export let inputClass = 'bg-gray-50 border border-gray-300 text-gray-900 sm:text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full pl-10 p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500';
|
|
12
|
+
$: setAttribute = (node, params) => {
|
|
13
|
+
node.setAttribute(params, '');
|
|
14
|
+
};
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<svelte:head>
|
|
18
|
+
<link rel="stylesheet" href="https://unpkg.com/flowbite@1.5.1/dist/flowbite.min.css" />
|
|
19
|
+
<script src="https://unpkg.com/flowbite@1.5.1/dist/datepicker.js"></script>
|
|
20
|
+
</svelte:head>
|
|
21
|
+
|
|
22
|
+
{#if range}
|
|
23
|
+
<div date-rangepicker class="flex items-center">
|
|
24
|
+
<div class="relative">
|
|
25
|
+
<div class="flex absolute inset-y-0 left-0 items-center pl-3 pointer-events-none">
|
|
26
|
+
<Calendar />
|
|
27
|
+
</div>
|
|
28
|
+
<input name="start" type="text" class={inputClass} placeholder="Select date start" />
|
|
29
|
+
</div>
|
|
30
|
+
<span class="mx-4 text-gray-500">to</span>
|
|
31
|
+
<div class="relative">
|
|
32
|
+
<div class="flex absolute inset-y-0 left-0 items-center pl-3 pointer-events-none">
|
|
33
|
+
<Calendar />
|
|
34
|
+
</div>
|
|
35
|
+
<input name="end" type="text" class={inputClass} placeholder="Select date end" />
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
{:else}
|
|
39
|
+
<div class="relative">
|
|
40
|
+
<div class="flex absolute inset-y-0 left-0 items-center pl-3 pointer-events-none">
|
|
41
|
+
<Calendar />
|
|
42
|
+
</div>
|
|
43
|
+
{#if datepickerButtons}
|
|
44
|
+
<input
|
|
45
|
+
{...$$restProps}
|
|
46
|
+
datepicker
|
|
47
|
+
datepicker-buttons
|
|
48
|
+
datepicker-format={datepickerFormat}
|
|
49
|
+
datepicker-orientation={datepickerOrientation}
|
|
50
|
+
datepicker-title={datepickerTitle}
|
|
51
|
+
use:setAttribute={attribute}
|
|
52
|
+
type="text"
|
|
53
|
+
class={inputClass}
|
|
54
|
+
placeholder="Select date"
|
|
55
|
+
/>
|
|
56
|
+
{:else}
|
|
57
|
+
<input
|
|
58
|
+
{...$$restProps}
|
|
59
|
+
datepicker
|
|
60
|
+
datepicker-format={datepickerFormat}
|
|
61
|
+
datepicker-orientation={datepickerOrientation}
|
|
62
|
+
datepicker-title={datepickerTitle}
|
|
63
|
+
use:setAttribute={attribute}
|
|
64
|
+
type="text"
|
|
65
|
+
class={inputClass}
|
|
66
|
+
placeholder="Select date"
|
|
67
|
+
/>
|
|
68
|
+
{/if}
|
|
69
|
+
<slot />
|
|
70
|
+
</div>
|
|
71
|
+
{/if}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
range?: boolean;
|
|
6
|
+
datepickerButtons?: boolean;
|
|
7
|
+
datepickerFormat?: string;
|
|
8
|
+
datepickerOrientation?: string;
|
|
9
|
+
datepickerTitle?: string;
|
|
10
|
+
attribute?: string;
|
|
11
|
+
inputClass?: string;
|
|
12
|
+
};
|
|
13
|
+
events: {
|
|
14
|
+
[evt: string]: CustomEvent<any>;
|
|
15
|
+
};
|
|
16
|
+
slots: {
|
|
17
|
+
default: {};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export declare type DatepickerProps = typeof __propDef.props;
|
|
21
|
+
export declare type DatepickerEvents = typeof __propDef.events;
|
|
22
|
+
export declare type DatepickerSlots = typeof __propDef.slots;
|
|
23
|
+
export default class Datepicker extends SvelteComponentTyped<DatepickerProps, DatepickerEvents, DatepickerSlots> {
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
@@ -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:change
|
|
15
|
+
on:keydown
|
|
16
|
+
on:keyup
|
|
17
|
+
on:focus
|
|
18
|
+
on:blur
|
|
19
|
+
on:mouseenter
|
|
20
|
+
on:mouseleave
|
|
21
|
+
on:mouseenter
|
|
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
|
};
|
package/forms/Checkbox.svelte
CHANGED
|
@@ -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:
|
|
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
|
-
|
|
20
|
+
mouseover: MouseEvent;
|
|
21
|
+
mouseenter: MouseEvent;
|
|
22
|
+
mouseleave: MouseEvent;
|
|
23
|
+
paste: ClipboardEvent;
|
|
16
24
|
} & {
|
|
17
25
|
[evt: string]: CustomEvent<any>;
|
|
18
26
|
};
|
package/forms/Fileupload.svelte
CHANGED
|
@@ -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: {};
|