Alex Perkins
7e584de137
elm-format (but why??)
2021-10-27 11:00:08 -04:00
Alex Perkins
e8f8f4dc38
add an attr for Enter keydown events
...
Note that there can only be one `on "keydown"` event on a DOM node
so any more complex event handlers will need to use a custom event
instead
```
onEnter : msg -> TextInput.Attribute msg
onEnter msg =
(\event ->
case event.key of
Just "Enter" ->
if noModifiers event then
Just msg
else
Nothing
_ ->
Nothing
)
|> considerKeyboardEvent
|> HtmlEvents.on "keydown"
|> TextInput.custom
```
2021-10-27 10:43:53 -04:00
Tessa Kelly
f93b4a71a2
Adds noMargin helper
2021-10-21 11:09:07 -07:00
Tessa Kelly
292f9cd357
Adds onReset attribute
2021-10-04 15:55:13 -07:00
Tessa Kelly
24bfce5d64
Generalize onBlur setting
2021-10-04 15:55:13 -07:00
Tessa Kelly
5bff274cb9
🎨 tidy up the attributes
2021-10-04 15:55:13 -07:00
Tessa Kelly
d752d10106
Remove transform. It was making things feel very misaligned :sweat-smile:
2021-10-04 15:55:13 -07:00
Tessa Kelly
837a44089e
Adds search input type
2021-10-04 15:55:13 -07:00
Tessa Kelly
83946a6b0e
💀 remove atomic design elements
2021-05-27 18:30:31 -07:00
Brian Hicks
433494f621
allow overriding the generated ID in a text input
2020-11-13 10:27:18 -06:00
Tessa Kelly
e431f736ce
Adds separate version field
2020-09-09 11:43:10 -07:00
Tessa Kelly
3ca51afde0
Rename from 'shortcuts' to 'support' -- not about providing shortcuts, about providing access
2020-06-19 14:45:32 -07:00
Tessa Kelly
a84f0b9665
Wire in keyboard shortcuts section to the examples
2020-06-19 14:35:53 -07:00
Tessa Kelly
87ff24e8f0
Remove namespacing
2020-06-19 14:16:10 -07:00
Tessa Kelly
68ea678d7c
Adds atomic design tags
2020-06-19 13:41:28 -07:00
Aaron VonderHaar
3df54540cb
Add TextInput.V6.css
2020-04-14 13:23:55 -07:00
Aaron VonderHaar
e7e933c02c
Cleanup styleguide debug controls for TextInput
2020-04-14 13:09:38 -07:00
Aaron VonderHaar
1a72a3e353
Add TextInput.V6.loading, TextInput.V6.disabled
2020-04-14 12:22:21 -07:00
Aaron VonderHaar
67a5603966
Add TextInput.V6.errorMessage
2020-04-14 11:47:17 -07:00
Aaron VonderHaar
9189cbeabd
Clean up TextInput styleguide example
2020-04-14 10:59:38 -07:00
Aaron VonderHaar
78fecace90
Update TextInput styleguide example
2020-04-14 09:00:25 -07:00
Aaron VonderHaar
a2d305b6e4
New attributes-style API for TextInput.V6
2020-04-13 17:01:33 -07:00
Aaron VonderHaar
fab0271d03
Create Nri.Ui.TextInput.V6 from V5
2020-04-13 14:36:39 -07:00
Aaron VonderHaar
9064a53677
Merge remote-tracking branch 'origin/master' into ink/email-inputs
2020-04-10 15:07:27 -07:00
Tessa Kelly
3d1d65b508
💀 remove Module example
2020-03-31 16:35:17 -07:00
Tessa Kelly
6d5184137f
Adds Example type annotations
2020-03-31 16:35:17 -07:00
Tessa Kelly
de82a5c4ab
Adds back in subscriptions
2020-03-31 16:35:17 -07:00
Tessa Kelly
dc9ed8ba7b
Uncomment all the states
2020-03-31 16:35:17 -07:00
Aaron VonderHaar
3cdf2cbcb0
Fix ARIA in examples
2020-03-31 13:26:35 -07:00
Aaron VonderHaar
f18656157c
Add TextInput.V5.email input type
2020-03-31 13:19:56 -07:00
Aaron VonderHaar
03c0845973
Update TextInput example to use Debug.Control
2020-03-31 13:04:36 -07:00
Tessa Kelly
5d1fb3c5ba
Change category modeling to allow presence in multiple categories
2020-03-23 17:48:53 -07:00
Tessa Kelly
2b87eb84df
🎨 Pull Category out into its own module
2020-03-23 17:33:42 -07:00
Gavin Panella
28d36c6f64
Revert "Merge pull request #461 from NoRedInk/puffins/prepare-for-merge"
...
This reverts commit 4373c78d82
, reversing
changes made to 6b78075f02
.
2020-03-06 20:00:34 +01:00
Stoeffel
873f0ef521
move files into subdirectory
2020-03-02 10:45:03 +01:00
Katie Hughes
043b4aa026
make sure module page shows correct version
2019-11-19 12:03:39 -08:00
Katie Hughes
4ed233a424
add an input type that handles floats
2019-11-19 12:03:39 -08:00
Tessa Kelly
6ab4a905ff
Fix duped ids
2019-11-08 12:31:38 -08:00
Tessa Kelly
b029a18b26
Adds password input
2019-08-05 12:27:29 -07:00
Tessa Kelly
570472b7a8
Adds V5 of the text input
2019-08-02 17:20:09 -07:00
Brian Hicks
6eba967567
replace Headings with Nri.Ui.Heading.V2
2019-07-23 09:58:23 -05:00
Tessa Kelly
2bd5ccb61f
filename -> name
2019-05-03 09:56:43 -07:00
Danielle Pham
d49b22e207
Add onBlur to TextInput V4
2019-01-07 15:35:47 -05:00
Luke Westby
c1ff19f0d0
Add Html.Styled versions for everything ( #139 )
...
* make html.styled versions of remaining widgets
* upgrade all the examples
* change license name
2018-10-23 09:55:30 -07:00
Jasper Woudenberg
56685a3019
Use new heading modules over standard h\d elements
...
The inclusion of reset.css file nuked the default browser styles for
headers. This change sees us using custom styled headers instead to
bring structure back to the styleguide pages.
2018-06-22 10:41:38 +01:00
Brooke
fe0466d3f4
use new elm-css for TextInput V3
2018-05-31 14:43:24 -07:00
Jasper Woudenberg
b7a6d9bf5a
Refer to right widget version in documentation
2018-05-29 10:52:39 -07:00
Brooke
745eda419e
styleguide shows writing textinput without label and in error
2018-05-29 10:52:39 -07:00
Brooke
22d856ceca
add Nri.Ui.TextInput.V2 with writing style (styling not perfect yet)
2018-05-29 10:52:39 -07:00
Brooke
35e1473ad4
add text input to styleguide app
2018-05-29 10:52:39 -07:00