playbook_ui_docs 15.2.0.pre.alpha.testingtiptap11313 → 15.2.0.pre.alpha.toastfixes11417
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 +4 -4
- data/app/pb_kits/playbook/pb_button/docs/_button_loading.html.erb +7 -3
- data/app/pb_kits/playbook/pb_button/docs/_button_loading.jsx +29 -0
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_description.md +2 -0
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +1 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml +2 -8
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/index.js +0 -6
- data/dist/playbook-doc.js +2 -2
- metadata +2 -13
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_attributes.jsx +0 -38
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_attributes.md +0 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_focus.jsx +0 -34
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_focus.md +0 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_inline.jsx +0 -37
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_inline.md +0 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_simple.jsx +0 -37
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_sticky.jsx +0 -38
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_sticky.md +0 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_templates.jsx +0 -69
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_templates.md +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87a9d54deda4ba1e47c4b54432f4a1ef9d1ff6cbe6d03af8f0081139ba5fbc4f
|
4
|
+
data.tar.gz: 1b8daaa720a4e8b82fb5bb1c78f9394642a9033e7989e2e4bb2ae39a907e6a3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44495af5b0ab4efa07d6c57ffc439d58168303fd97e4006526d070f1a3b533ac8b0e6f98a62cdff8a630e56ea332a7b36e0ae8ec9858766a18335b2dbf9543fe
|
7
|
+
data.tar.gz: e1d879697b83014c1581e8bf68c93f8d28230c507daaa48c8d84c50cd82931a55d396e8dca3df9ddc91889e261f7324b204d6b0184c14126645e19c724aabe1f
|
@@ -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
|
|
@@ -1,2 +1,4 @@
|
|
1
1
|
|
2
2
|
Fixed Confirmation Toast is used as an alert. Success is used when a user successfully completes an action. Error is used when there is an error and the user cannot proceed. Neutral is used to display information to a user to complete a task.
|
3
|
+
|
4
|
+
**NOTE**: z index for Fixed Confirmation Toast is set to 'max' by default which has the value of `999999`. the z Index global prop can be used to override this if you want to set it to a different value.
|
@@ -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)." } } %>
|
@@ -7,7 +7,7 @@ examples:
|
|
7
7
|
- rich_text_editor_focus: Focus
|
8
8
|
- rich_text_editor_sticky: Sticky
|
9
9
|
- rich_text_editor_templates: Templates
|
10
|
-
|
10
|
+
- rich_text_editor_toolbar_bottom: Toolbar Bottom
|
11
11
|
- rich_text_editor_inline: Inline
|
12
12
|
- rich_text_editor_preview: Preview
|
13
13
|
|
@@ -17,17 +17,11 @@ examples:
|
|
17
17
|
- rich_text_editor_more_extensions: Advanced (Extra Extensions)
|
18
18
|
- rich_text_editor_toolbar_disabled: Advanced (Toolbar disabled)
|
19
19
|
- rich_text_editor_simple: Simple
|
20
|
-
- rich_text_editor_advanced_simple: Advanced (Simple)
|
21
20
|
- rich_text_editor_attributes: Attributes
|
22
|
-
- rich_text_editor_advanced_attributes: Advanced (Attributes)
|
23
21
|
- rich_text_editor_focus: Focus
|
24
|
-
- rich_text_editor_advanced_focus: Advanced (Focus)
|
25
22
|
- rich_text_editor_sticky: Sticky
|
26
|
-
- rich_text_editor_advanced_sticky: Advanced (Sticky)
|
27
23
|
- rich_text_editor_templates: Templates
|
28
|
-
-
|
29
|
-
# - rich_text_editor_toolbar_bottom: Toolbar Bottom
|
24
|
+
- rich_text_editor_toolbar_bottom: Toolbar Bottom
|
30
25
|
- rich_text_editor_inline: Inline
|
31
|
-
- rich_text_editor_advanced_inline: Advanced (Inline)
|
32
26
|
- rich_text_editor_preview: Preview
|
33
27
|
- rich_text_editor_advanced_preview: Advanced Preview
|
@@ -11,9 +11,3 @@ export { default as RichTextEditorAdvancedDefault } from './_rich_text_editor_ad
|
|
11
11
|
export { default as RichTextEditorMoreExtensions } from './_rich_text_editor_more_extensions.jsx'
|
12
12
|
export { default as RichTextEditorToolbarDisabled } from './_rich_text_editor_toolbar_disabled.jsx'
|
13
13
|
export { default as RichTextEditorAdvancedPreview } from './_rich_text_editor_advanced_preview.jsx'
|
14
|
-
export { default as RichTextEditorAdvancedSimple } from './_rich_text_editor_advanced_simple.jsx'
|
15
|
-
export { default as RichTextEditorAdvancedFocus } from './_rich_text_editor_advanced_focus.jsx'
|
16
|
-
export { default as RichTextEditorAdvancedTemplates } from './_rich_text_editor_advanced_templates.jsx'
|
17
|
-
export { default as RichTextEditorAdvancedAttributes } from './_rich_text_editor_advanced_attributes.jsx'
|
18
|
-
export { default as RichTextEditorAdvancedSticky } from './_rich_text_editor_advanced_sticky.jsx'
|
19
|
-
export { default as RichTextEditorAdvancedInline } from './_rich_text_editor_advanced_inline.jsx'
|