playbook_ui_docs 15.2.0.pre.alpha.PLAY1978bugiconauto11317 → 15.2.0.pre.alpha.PLAY1978bugiconauto11421
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: be85d8274a6b3b64fb2e17d75a24049ca48e3424d431a85cfb201594bfa01b63
         | 
| 4 | 
            +
              data.tar.gz: 2ab084dde21e7ad5a8fe3cbcb77d5be15db255b6cab76d4f720ee040abd2acc0
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: '0168915938750783acf5e35a4a422c9e0ad96ba9e823486ce1779754374d22c74db49b7aaaac3007f2344bdb39d54a4374204939f6d757c128e2976f2bf83b8c'
         | 
| 7 | 
            +
              data.tar.gz: 0cf7d7596c06dd8710db152702a3ae5e53611ec884188562afa1b14cd1c0f5a7876bebad678f788175c9c6bc989fb37fd6c34cb38b948427d0a3fe66d4b33e85
         | 
| @@ -1,3 +1,7 @@ | |
| 1 | 
            -
            <%= pb_rails(" | 
| 2 | 
            -
            <%= pb_rails("button", props: { aria: { label: "Loading" },  | 
| 3 | 
            -
            <%= pb_rails("button", props: { aria: { label: "Loading" },  | 
| 1 | 
            +
            <%= pb_rails("caption", props: { margin_y: "md", text: "Button variants with loading" }) %>
         | 
| 2 | 
            +
            <%= pb_rails("button", props: { aria: { label: "Loading" }, loading: true, margin_right: "lg" }) %>
         | 
| 3 | 
            +
            <%= pb_rails("button", props: { aria: { label: "Loading" }, variant: "secondary", loading: true, margin_right: "lg" }) %>
         | 
| 4 | 
            +
            <%= pb_rails("button", props: { aria: { label: "Loading" }, variant: "link", loading: true, margin_right: "lg" }) %>
         | 
| 5 | 
            +
            <%= pb_rails("caption", props: { margin_y: "md", text: "Button sizes with loading" }) %>
         | 
| 6 | 
            +
            <%= pb_rails("button", props: { aria: { label: "Loading" }, loading: true, size: "sm", margin_right: "lg" }) %>
         | 
| 7 | 
            +
            <%= pb_rails("button", props: { aria: { label: "Loading" }, loading: true, size: "lg", margin_right: "lg" }) %>
         | 
| @@ -1,8 +1,13 @@ | |
| 1 1 | 
             
            import React from 'react'
         | 
| 2 2 | 
             
            import Button from "../../pb_button/_button"
         | 
| 3 | 
            +
            import Caption from "../../pb_caption/_caption"
         | 
| 3 4 |  | 
| 4 5 | 
             
            const ButtonLoading = (props) => (
         | 
| 5 6 | 
             
              <div>
         | 
| 7 | 
            +
                <Caption 
         | 
| 8 | 
            +
                    marginY="md" 
         | 
| 9 | 
            +
                    text="Button variants with loading" 
         | 
| 10 | 
            +
                />
         | 
| 6 11 | 
             
                <Button
         | 
| 7 12 | 
             
                    aria={{ label: 'Loading' }}
         | 
| 8 13 | 
             
                    loading
         | 
| @@ -31,6 +36,30 @@ const ButtonLoading = (props) => ( | |
| 31 36 | 
             
                    variant="link"
         | 
| 32 37 | 
             
                    {...props}
         | 
| 33 38 | 
             
                />
         | 
| 39 | 
            +
                <br/>
         | 
| 40 | 
            +
                <Caption 
         | 
| 41 | 
            +
                    marginY="md" 
         | 
| 42 | 
            +
                    text="Button sizes with loading" 
         | 
| 43 | 
            +
                />
         | 
| 44 | 
            +
                <Button
         | 
| 45 | 
            +
                    aria={{ label: 'Loading' }}
         | 
| 46 | 
            +
                    loading
         | 
| 47 | 
            +
                    marginRight='lg'
         | 
| 48 | 
            +
                    size="sm"
         | 
| 49 | 
            +
                    tabIndex={0}
         | 
| 50 | 
            +
                    text="Small Button"
         | 
| 51 | 
            +
                    {...props}
         | 
| 52 | 
            +
                />
         | 
| 53 | 
            +
                {' '}
         | 
| 54 | 
            +
                <Button
         | 
| 55 | 
            +
                    aria={{ label: 'Loading' }}
         | 
| 56 | 
            +
                    loading
         | 
| 57 | 
            +
                    marginRight='lg'
         | 
| 58 | 
            +
                    size="lg"
         | 
| 59 | 
            +
                    tabIndex={0}
         | 
| 60 | 
            +
                    text="Small Button"
         | 
| 61 | 
            +
                    {...props}
         | 
| 62 | 
            +
                />
         | 
| 34 63 | 
             
              </div>
         | 
| 35 64 | 
             
            )
         | 
| 36 65 |  | 
| @@ -101,7 +101,7 @@ | |
| 101 101 | 
             
              <%= form.typeahead :example_typeahead_validation_react, props: { options: example_typeahead_options, pills: true, label: "Example Typeahead (React Rendered)", placeholder: "Search for a user", required: true, validation: { message: "Please select a color." } } %>
         | 
| 102 102 | 
             
              <%= form.typeahead :example_typeahead_validation_react_2, props: { options: example_typeahead_options, pills: true, label: "Example Typeahead 2 (React Rendered)", placeholder: "Search for a user", required: true } %>
         | 
| 103 103 | 
             
              <%= form.text_field :example_text_field_validation, props: { label: true, required: true } %>
         | 
| 104 | 
            -
              <%= form.phone_number_field :example_phone_number_field_validation, props: { label: "Example phone field", hidden_inputs: true } %>
         | 
| 104 | 
            +
              <%= form.phone_number_field :example_phone_number_field_validation, props: { label: "Example phone field", hidden_inputs: true, required: true } %>
         | 
| 105 105 | 
             
              <%= form.email_field :example_email_field_validation, props: { label: true, required: true } %>
         | 
| 106 106 | 
             
              <%= form.number_field :example_number_field_validation, props: { label: true, required: true } %>
         | 
| 107 107 | 
             
              <%= form.search_field :example_project_number_validation, props: { label: true, required: true, validation: { pattern: "[0-9]{2}-[0-9]{5}", message: "Please enter a valid project number (example: 33-12345)." } } %>
         |