Skip to content

Commit 9efe525

Browse files
SimpleProgrammingAUSamuel Jandatheetrain
authored andcommitted
feat!: TextInput v11 Styles (#1889)
* Initial commit * Fixes [FluidForm] TextInput error icon is misplaced #1667 * Contributes to [TextInput] helperText enhancements #1633 * Adopts Standardize props and events #1621 * Added slots for Standardize props and events #1621 * Added pointer events, updated skeleton TextInput v11 #1888 * Address a bug in the word counter regex * Update src/TextInput/TextInput.svelte Correcting type attribute definition for HTML attributes Co-authored-by: Enrico Sacchetti <[email protected]> * Update src/TextInput/TextInput.svelte Correcting type attribute definition for HTML attributes Co-authored-by: Enrico Sacchetti <[email protected]> * Update src/TextInput/TextInput.svelte Explicitly define default value for `size` Co-authored-by: Enrico Sacchetti <[email protected]> * Adopted suggested changes * Updated `TextInput.test`; added forgotten files from previous --------- Co-authored-by: Samuel Janda <[email protected]> Co-authored-by: Enrico Sacchetti <[email protected]>
1 parent 68c19f5 commit 9efe525

9 files changed

+806
-488
lines changed

COMPONENT_INDEX.md

+405-257
Large diffs are not rendered by default.

docs/package-lock.json

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/src/COMPONENT_API.json

+151-81
Large diffs are not rendered by default.

docs/src/pages/components/TextInput.svx

+15-11
Original file line numberDiff line numberDiff line change
@@ -9,47 +9,51 @@ components: ["TextInput", "TextInputSkeleton"]
99

1010
## Default
1111

12-
<TextInput labelText="User name" placeholder="Enter user name..." />
12+
<TextInput labelText="Username" placeholder="Enter username..." />
1313

1414
## With helper text
1515

16-
<TextInput labelText="User name" helperText="Your user name is associated with your email" placeholder="Enter user name..." />
16+
<TextInput labelText="Username" helperText="Your username is associated with your email" placeholder="Enter username..." />
1717

1818
## Hidden label
1919

20-
<TextInput hideLabel labelText="User name" placeholder="Enter user name..." />
20+
<TextInput hideLabel labelText="Username" placeholder="Enter username..." />
2121

2222
## Light variant
2323

24-
<TextInput light labelText="User name" placeholder="Enter user name..." />
24+
<TextInput light labelText="Username" placeholder="Enter username..." />
2525

2626
## Inline variant
2727

28-
<TextInput inline labelText="User name" placeholder="Enter user name..." />
28+
<TextInput inline labelText="Username" placeholder="Enter username..." />
2929

3030
## Read-only variant
3131

32-
<TextInput readonly labelText="User name" value="IBM" />
32+
<TextInput readonly labelText="Username" value="IBM" />
3333

3434
## Large size
3535

36-
<TextInput size="lg" labelText="User name" placeholder="Enter user name..." />
36+
<TextInput size="lg" labelText="Username" placeholder="Enter username..." />
3737

3838
## Small size
3939

40-
<TextInput size="sm" labelText="User name" placeholder="Enter user name..." />
40+
<TextInput size="sm" labelText="Username" placeholder="Enter username..." />
41+
42+
## Character Counter
43+
44+
<TextInput labelText="Username" placeholder="Enter username..." maxCount={32} counter />
4145

4246
## Invalid state
4347

44-
<TextInput invalid invalidText="User name is already taken. Please try another." labelText="User name" placeholder="Enter user name..." />
48+
<TextInput invalid invalidText="Username is already taken. Please try another." labelText="Username" placeholder="Enter username..." />
4549

4650
## Warning state
4751

48-
<TextInput warn warnText="Your user name is different from your log in ID." labelText="User name" placeholder="Enter user name..." />
52+
<TextInput warn warnText="Your username is different from your log in ID." labelText="Username" placeholder="Enter username..." />
4953

5054
## Disabled state
5155

52-
<TextInput disabled labelText="User name" placeholder="Enter user name..." />
56+
<TextInput disabled labelText="Username" placeholder="Enter username..." />
5357

5458
## Skeleton
5559

0 commit comments

Comments
 (0)