Skip to content

Commit 4657a76

Browse files
committed
v1.7.1
1 parent 1771742 commit 4657a76

File tree

6 files changed

+56
-2
lines changed

6 files changed

+56
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## 1.7.1
4+
5+
### Patch Changes
6+
7+
- fix: #1642
8+
feat: both the checkbox and its children are inside the label, making the text clickable
9+
310
## 1.7.0
411

512
### Minor Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flowbite-svelte",
3-
"version": "1.7.0",
3+
"version": "1.7.1",
44
"description": "Flowbite components for Svelte",
55
"main": "dist/index.js",
66
"author": {

src/routes/docs/components/stepper.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ Use this example to show the number of steps inside a timeline component using i
225225
```
226226

227227
## Stepper with form
228+
228229
Use this example to show the stepper component next to a form layout and change the content based on which currently step your are completing.
229230

230231
```svelte example

src/routes/docs/forms/phone-input.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ The PhoneInput component provides customizable styling through six distinct clas
310310
import { PhoneInput } from "flowbite-svelte";
311311
</script>
312312
313-
<PhoneInput aria-describedby="helper-text-explanation" id="phone-input" placeholder="123-456-7890" required classes={{ defaultInput: "border-blue-500", defaultDiv:"ps-4"}}/>
313+
<PhoneInput aria-describedby="helper-text-explanation" id="phone-input" placeholder="123-456-7890" required classes={{ defaultInput: "border-blue-500", defaultDiv: "ps-4" }} />
314314
```
315315

316316
## See also

static/llm/components/stepper.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,40 @@ Use this example to show the number of steps inside a timeline component using i
211211
/>
212212
```
213213

214+
## Stepper with form
215+
216+
Use this example to show the stepper component next to a form layout and change the content based on which currently step your are completing.
217+
218+
```svelte
219+
<script lang="ts">
220+
import { ProgressStepper, Label, Input, Button } from "flowbite-svelte";
221+
</script>
222+
223+
<ProgressStepper steps={[{ status: "completed" }, { status: "current" }, { status: "pending" }]} classes={{ progressstepper: "mb-8" }} />
224+
<form action="#">
225+
<h3 class="mb-4 text-lg leading-none font-medium text-gray-900 dark:text-white">Invoice details</h3>
226+
<div class="mb-4 grid gap-4 sm:grid-cols-2">
227+
<div>
228+
<Label for="username" class="mb-2">Username</Label>
229+
<Input type="text" name="username" id="username" placeholder="username.example" required />
230+
</div>
231+
<div>
232+
<Label for="email" class="mb-2 block text-sm font-medium text-gray-900 dark:text-white">Email</Label>
233+
<Input type="email" name="email" id="email" placeholder="[email protected]" required />
234+
</div>
235+
<div>
236+
<Label for="password" class="mb-2 block text-sm font-medium text-gray-900 dark:text-white">Password</Label>
237+
<Input type="password" name="password" id="password" placeholder="•••••••••" required />
238+
</div>
239+
<div>
240+
<Label for="confirm-password" class="mb-2 block text-sm font-medium text-gray-900 dark:text-white">Confirm password</Label>
241+
<Input type="password" name="confirm-password" id="confirm-password" placeholder="•••••••••" required />
242+
</div>
243+
</div>
244+
<Button type="submit">Next Step: Payment Info</Button>
245+
</form>
246+
```
247+
214248
## Component data
215249

216250
### BreadcrumbStepper

static/llm/forms/phone-input.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,18 @@ Use this example to verify a phone number via SMS or phone call using a dropdown
287287
</form>
288288
```
289289

290+
## Classes
291+
292+
The PhoneInput component provides customizable styling through six distinct class slots: `defaultDiv` for the icon container positioning, `phonesvg` for the phone icon styling, `defaultInput` for the standard input field appearance, `floatingSpan` for floating label positioning, `floatingInput` for the floating variant input styling, and `labelFloating` for animated label transitions. Each class can be overridden using the classes prop to customize the component's appearance.
293+
294+
```svelte
295+
<script>
296+
import { PhoneInput } from "flowbite-svelte";
297+
</script>
298+
299+
<PhoneInput aria-describedby="helper-text-explanation" id="phone-input" placeholder="123-456-7890" required classes={{ defaultInput: "border-blue-500", defaultDiv: "ps-4" }} />
300+
```
301+
290302
## See also
291303

292304
- [Input field](https://flowbite-svelte.com/llm/forms/input-field.md)

0 commit comments

Comments
 (0)