Commit Graph

1122 Commits

Author SHA1 Message Date
Tessa Kelly
6a50cb6229 Adds plaintext and markdown helpers 2021-10-27 19:14:11 -07:00
Tessa Kelly
f478bcc508 V5 -> V6 2021-10-27 19:14:11 -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
Alex Perkins
15ef7f8d92
Merge pull request #750 from NoRedInk/tessa/remove-input-margin
Adds noMargin helper
2021-10-26 12:15:10 -04:00
Tessa Kelly
3dc8e3ebf2 💀 remove fullheight. it's not working, it requires changes to the container of Container, and it's only used one place in the monolith 2021-10-22 09:27:14 -07:00
Tessa Kelly
91feb06746 Begin making the example layout reusable
looks like something is actually wrong with the fullHeight helper
2021-10-21 17:32:14 -07:00
Tessa Kelly
57f014b8a0 Adds hover css example 2021-10-21 17:27:29 -07:00
Tessa Kelly
d096fa6b3a Adds fullheight to controls
since the container doesn't have a min height, the Container doesn't stretch in the example
2021-10-21 17:23:59 -07:00
Tessa Kelly
6dec2ee268 Adds paddingPx control settings 2021-10-21 17:20:29 -07:00
Tessa Kelly
850c422f1f Adds example markdown and plaintext 2021-10-21 16:53:08 -07:00
Tessa Kelly
86c8720f86 Display different content types 2021-10-21 15:36:55 -07:00
Tessa Kelly
f0e17d5b2d Switch to view pattern 2021-10-21 15:21:24 -07:00
Tessa Kelly
bc0aa218ef Adds plaintext, html, and markdown helpers 2021-10-21 15:06:41 -07:00
Tessa Kelly
c9b304b67b Update Component version 2021-10-21 14:47:50 -07:00
Ben Dansby
d90f7ca323 update example 2021-10-21 12:17:48 -07:00
Tessa Kelly
f93b4a71a2 Adds noMargin helper 2021-10-21 11:09:07 -07:00
Liz Krane
b4f54b84a1 Add googleG icon, formatting 2021-10-18 11:06:43 -07:00
Liz Krane
b7b731cd0c Add cleverC SVG 2021-10-18 10:57:46 -07:00
Tessa Kelly
cd3fc1abf0 Adds styleguide example 2021-10-13 10:44:03 -07:00
Mariano Abel Coca
07d83b1fa1 Rename open/close curlie to quotationMark 2021-10-12 13:00:04 -03:00
Tessa Kelly
1cc2ed0631 Adds to styleguide example app 2021-10-12 08:47:30 -07:00
Juan Edi
acffacaa6a
Merge pull request #734 from NoRedInk/tessa/add-search-input
Tessa/add search input
2021-10-11 09:48:33 -03:00
Tessa Kelly
86b26bc442 Adds search icon 2021-10-04 15:55:13 -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
35b4c3a7e7 Marginally improve the mobile styleguide 2021-10-04 15:40:18 -07:00
Ben Dansby
2b6ebef455
Merge pull request #735 from NoRedInk/dansby/mobile-modal
Dansby/mobile modal
2021-09-29 12:52:09 -07:00
Ben Dansby
663e48089a make style guide app display correctly on mobile 2021-09-28 19:59:53 -07:00
Tessa Kelly
aff7c2a71e Space out example a bit 2021-09-28 15:16:33 -07:00
Tessa Kelly
399ccb3ed0 Adds padding example 2021-09-28 15:15:41 -07:00
Tessa Kelly
2bd8dea4ba Paddings are only ever specified in px 2021-09-28 15:13:54 -07:00
Tessa Kelly
357100e564 Allow customization of the width 2021-09-28 15:09:32 -07:00
Tessa Kelly
33b0a5dc56 Expand use of Debug.Controls 2021-09-28 14:41:49 -07:00
Tessa Kelly
d6605a520b Add in debug controls 2021-09-28 14:26:37 -07:00
Tessa Kelly
9d8829f86a Adds Nri.Ui.Balloon.V1 (straight copy from monolith) 2021-09-28 14:21:09 -07:00
Ben Dansby
29b9f293d0
Merge pull request #727 from NoRedInk/dansby/input-padding
Input padding
2021-09-10 13:55:50 -07:00
Ben Dansby
90b939bae2 zero out premium example 2021-09-09 07:51:44 -07:00
Ben Dansby
7cc7a549d9 delete callout 2021-09-07 08:42:38 -07:00
Ben Dansby
d3696076c7 zero out radio button example margin 2021-09-04 08:49:10 -07:00
Ben Dansby
4cc157295b put radio buttons in proper category 2021-09-04 08:47:56 -07:00
Liz Krane
36280b73af Run elm-format --elm-version=0.19 2021-09-02 14:33:25 -07:00
Liz Krane
c720d333bc Update toggle button state on click 2021-09-02 13:05:50 -07:00
Liz Krane
a63bd36029 Add toggle button state to model, pass to toggleButtons 2021-09-02 11:35:18 -07:00
Tessa Kelly
9fcfdc7318 Change model to use a record so that we can add the toggle button state to it 2021-09-02 10:55:19 -07:00
Christoph Hermann
3327552e83
Merge pull request #720 from NoRedInk/zen/menu-v3
Menu.V3
2021-08-31 07:45:33 +02:00