Commit Graph

3958 Commits

Author SHA1 Message Date
Tessa Kelly
f478e8f3ab Split out onInput helper and add map 2021-10-29 11:07:06 -07:00
Tessa Kelly
23a3e0abbb Flatten InputTupe on to the Attribute 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
46c532c0b1 Update deprecated/forbidden 2021-10-29 11:07:02 -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
c7964eef4f Update custom API to match the other customs 2021-10-29 11:05:06 -07:00
Tessa Kelly
21d42e1bba Switch to V7 2021-10-29 11:05:06 -07:00
Tessa Kelly
f00b1a8e9b cp textinput v6 v7 2021-10-29 11:05:06 -07:00
Alex Perkins
eb12a713ac
Merge pull request #756 from NoRedInk/tessa/standardize-text-api
Tessa/standardize text api
2021-10-29 08:35:30 -04:00
Tessa
00db5c2d5e
Merge pull request #763 from NoRedInk/dansby/performance-icon
Update performance icon
2021-10-28 17:01:35 -07:00
Ben Dansby
b894116799 new performance icon 2021-10-28 14:11:33 -07:00
Juan Edi
bc815c7e04
Merge pull request #762 from NoRedInk/raven/security-upgrades
Raven/security upgrades
2021-10-28 17:00:50 -03:00
Juan Edi
02d3a88249 upgrade puppeteer 2021-10-28 16:53:36 -03:00
Juan Edi
2a30e1f990 upgrade axe-core
reincarnation of the changes in https://github.com/NoRedInk/noredink-ui/pull/700
2021-10-28 16:46:45 -03:00
Ben Dansby
67d5a0b639 blue too 2021-10-28 08:58:34 -07:00
Tessa Kelly
e932d809cd Use list for Tooltip example 2021-10-28 08:57:25 -07:00
Tessa Kelly
a2d63ea650 Use list for Modal example 2021-10-28 08:50:39 -07:00
Tessa Kelly
08f345a17c Convert Message example to use Debug.Controls.Extra.list 2021-10-28 08:49:00 -07:00
Tessa Kelly
60f148f17a Use list for Ballooon 2021-10-28 08:40:23 -07:00
Ben Dansby
c720f4f1c9 master of none 2021-10-28 06:06:49 -07:00
Ben Dansby
7d4961626f deep six bluedeep 2021-10-28 06:06:18 -07:00
Tessa Kelly
42946cd081 Fix Container.V1 compilation 2021-10-27 19:14:11 -07:00
Tessa Kelly
4e1e1e3579 Replace one off styles with debug control css option 2021-10-27 19:14:11 -07:00
Tessa Kelly
ccb7f01c52 Make noBreak setting a bit more clear 2021-10-27 19:14:11 -07:00
Tessa Kelly
eb506876f6 Allow customization of the content on the stylguide example 2021-10-27 19:14:11 -07:00
Tessa Kelly
49ac49087f Adds empty controls 2021-10-27 19:14:11 -07:00
Tessa Kelly
96da1442ed 💀 remove noWidow 2021-10-27 19:14:11 -07:00
Tessa Kelly
6a50cb6229 Adds plaintext and markdown helpers 2021-10-27 19:14:11 -07:00
Tessa Kelly
da7b06678d Adds nriDescription, testId, id, custom 2021-10-27 19:14:11 -07:00
Tessa Kelly
bac7afbfeb Use a singular view helper 2021-10-27 19:14:11 -07:00
Tessa Kelly
93ec041197 Extract and use general buildSettings helper 2021-10-27 19:14:11 -07:00
Tessa Kelly
0531a7b0df Use Attribute pattern wrapping a function 2021-10-27 19:14:11 -07:00
Tessa Kelly
f478bcc508 V5 -> V6 2021-10-27 19:14:11 -07:00
Tessa Kelly
0e8f94ccbc cp Text V5 to V6 2021-10-27 19:14:11 -07:00
Tessa
dbc7475633
Merge pull request #758 from NoRedInk/dansby/quiz-engine-breakpoint
700 -> 750
2021-10-27 15:14:30 -07:00
Ben Dansby
0fac14c695 700 -> 750 2021-10-27 14:57:11 -07:00
Alex Perkins
e156e68472
Merge pull request #757 from NoRedInk/kraken/bump-for-textinput-onEnter
bump for TextInput.onEnter
2021-10-27 16:09:43 -04:00
Alex Perkins
af9b4cc6d8 bump for TextInput.onEnter 2021-10-27 15:46:25 -04:00
Alex Perkins
a330d7f519
Merge pull request #755 from NoRedInk/kraken/add-naive-onEnter-handler-TextInput
add an attr for Enter keydown events
2021-10-27 15:33:52 -04:00
Tessa
09edd3f4e8
Merge pull request #754 from NoRedInk/dansby/shadow
Add shadows to tooltips and balloons
2021-10-27 10:26:00 -07:00
Alex Perkins
7e584de137 elm-format (but why??) 2021-10-27 11:00:08 -04:00
Alex Perkins
ebe6686275 add Gizra/elm-keyboard-event dependency back to styleguide 2021-10-27 10:55:25 -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