Tessa Kelly
f478e8f3ab
Split out onInput helper and add map
2021-10-29 11:07:06 -07:00
Tessa Kelly
da651f51f4
Experiment with exposing value and inputType as attribute helpers
...
breaks the styleguide example a bit, since the attribute type doesn't line up. Needs fixing still
2021-10-29 11:07:06 -07:00
Tessa Kelly
3e943c05e9
Move writing styles into an attribute"
2021-10-29 11:05:06 -07:00
Tessa Kelly
970a396174
Avoid duplicative ids while still respecting the sepcified label
2021-10-29 11:05:06 -07:00
Tessa Kelly
3bcd97aebe
Oops accidentally deleted pw example
2021-10-29 11:05:06 -07:00
Tessa Kelly
c45bc7b5a0
Drop TextInput prefix for (hopefully) improved legibility
2021-10-29 11:05:06 -07:00
Tessa Kelly
f6eb1c19ad
Make css an optional list control
2021-10-29 11:05:06 -07:00
Tessa Kelly
cf60270ceb
Make onEnter part of the configuration
2021-10-29 11:05:06 -07:00
Tessa Kelly
03f8d45e53
Generalize viewExamples helper
2021-10-29 11:05:06 -07:00
Tessa Kelly
85f13b9e02
Use a list for the easily list-able attributes
2021-10-29 11:05:06 -07:00
Tessa Kelly
21d42e1bba
Switch to V7
2021-10-29 11:05:06 -07:00
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