playbook_ui_docs 14.1.0.pre.alpha.PBNTR449rtepreviewerrails3605 → 14.1.0.pre.alpha.PBNTR455ganttchartPOC3569
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_badge/docs/_badge_notification.html.erb +0 -13
- data/app/pb_kits/playbook/pb_badge/docs/_badge_notification.jsx +12 -31
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_default.jsx +5 -1
- data/app/pb_kits/playbook/pb_dialog/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_dialog/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +0 -1
- data/app/pb_kits/playbook/pb_form_pill/docs/example.yml +2 -2
- data/app/pb_kits/playbook/pb_pagination/docs/example.yml +1 -3
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_preview.html.erb +11 -21
- data/dist/playbook-doc.js +1 -1
- metadata +3 -10
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_loading.jsx +0 -46
- data/app/pb_kits/playbook/pb_pagination/docs/_pagination_default.jsx +0 -19
- data/app/pb_kits/playbook/pb_pagination/docs/_pagination_default_react.md +0 -1
- data/app/pb_kits/playbook/pb_pagination/docs/_pagination_page_change.jsx +0 -62
- data/app/pb_kits/playbook/pb_pagination/docs/_pagination_page_change_react.md +0 -1
- data/app/pb_kits/playbook/pb_pagination/docs/data.js +0 -23
- data/app/pb_kits/playbook/pb_pagination/docs/index.js +0 -2
- /data/app/pb_kits/playbook/pb_pagination/docs/{_pagination_default_rails.md → _pagination_default.md} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73e123e1be8432b282e1f772a66dbe6eb017eaffe60858e16d6d4d41a97d0061
|
4
|
+
data.tar.gz: 4db0c1287eb444d4a2786c700d1c78ad39e53c03b874441f389c85c8766f2e16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e04a2b37567e68d256298158e40374d8fe41f8c17b03dc37bc495695eb15047a46dadcda888ad59941838cd0e670eac0c125deee73dcf2bb90159df2a46672f
|
7
|
+
data.tar.gz: c7539a4eb752013c5f3274f15338cb642eb954b482486dd86498d27dd74540a60f51079582624719e025474753bd5235f0ed3aa60d908ab882d700618d9e61f0
|
@@ -10,16 +10,3 @@
|
|
10
10
|
variant: "notification"
|
11
11
|
}) %>
|
12
12
|
</div>
|
13
|
-
|
14
|
-
<div>
|
15
|
-
<%= pb_rails("badge", props: {
|
16
|
-
text: "1",
|
17
|
-
variant: "notification_error",
|
18
|
-
rounded: true
|
19
|
-
}) %>
|
20
|
-
|
21
|
-
<%= pb_rails("badge", props: {
|
22
|
-
text: "4",
|
23
|
-
variant: "notification_error"
|
24
|
-
}) %>
|
25
|
-
</div>
|
@@ -4,39 +4,20 @@ import Badge from '../_badge'
|
|
4
4
|
const BadgeNotification = (props) => {
|
5
5
|
return (
|
6
6
|
<>
|
7
|
-
<
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
/>
|
7
|
+
<Badge
|
8
|
+
rounded
|
9
|
+
text="1"
|
10
|
+
variant="notification"
|
11
|
+
{...props}
|
12
|
+
/>
|
14
13
|
|
15
|
-
|
14
|
+
|
16
15
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
</div>
|
23
|
-
|
24
|
-
<div>
|
25
|
-
<Badge
|
26
|
-
rounded
|
27
|
-
text="1"
|
28
|
-
variant="notificationError"
|
29
|
-
{...props}
|
30
|
-
/>
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
<Badge
|
35
|
-
text="4"
|
36
|
-
variant="notificationError"
|
37
|
-
{...props}
|
38
|
-
/>
|
39
|
-
</div>
|
16
|
+
<Badge
|
17
|
+
text="4"
|
18
|
+
variant="notification"
|
19
|
+
{...props}
|
20
|
+
/>
|
40
21
|
</>
|
41
22
|
)
|
42
23
|
}
|
@@ -5,17 +5,21 @@ const DialogDefault = () => {
|
|
5
5
|
const [isOpen, setIsOpen] = useState(false)
|
6
6
|
const close = () => setIsOpen(false)
|
7
7
|
const open = () => setIsOpen(true)
|
8
|
+
const [isLoading, setIsLoading] = useState(false)
|
8
9
|
|
9
10
|
return (
|
10
11
|
<>
|
11
12
|
<Button onClick={open}>{'Open Dialog'}</Button>
|
12
13
|
<Dialog
|
13
14
|
cancelButton="Cancel Button"
|
15
|
+
className="wrapper"
|
14
16
|
confirmButton="Okay"
|
17
|
+
loading={isLoading}
|
15
18
|
onCancel={close}
|
16
19
|
onClose={close}
|
17
|
-
onConfirm={
|
20
|
+
onConfirm={() => setIsLoading(!isLoading)}
|
18
21
|
opened={isOpen}
|
22
|
+
portalClassName="portal"
|
19
23
|
size="sm"
|
20
24
|
text="Hello Body Text, Nice to meet ya."
|
21
25
|
title="Header Title is the Title Prop"
|
@@ -8,4 +8,3 @@ export { default as DialogStatus } from './_dialog_status.jsx'
|
|
8
8
|
export { default as DialogStackedAlert } from './_dialog_stacked_alert.jsx'
|
9
9
|
export { default as DialogFullHeight } from './_dialog_full_height.jsx'
|
10
10
|
export { default as DialogFullHeightPlacement } from './_dialog_full_height_placement.jsx'
|
11
|
-
export { default as DialogLoading } from './_dialog_loading.jsx'
|
@@ -35,7 +35,6 @@
|
|
35
35
|
<%= form.collection_select :example_collection_select, example_collection, :value, :name, props: { label: true, blank_selection: "Select One...", required: true } %>
|
36
36
|
<%= form.check_box :example_checkbox, props: { text: "Example Checkbox", label: true, required: true } %>
|
37
37
|
<%= form.date_picker :example_date_picker_2, props: { label: true, required: true } %>
|
38
|
-
<%= form.star_rating_field :example_star_rating, props: { variant: "interactive", label: true, required: true } %>
|
39
38
|
|
40
39
|
<%= form.actions do |action| %>
|
41
40
|
<%= action.submit %>
|
@@ -5,11 +5,11 @@ examples:
|
|
5
5
|
- form_pill_size: Form Pill Size
|
6
6
|
- form_pill_tag: Form Pill Tag
|
7
7
|
- form_pill_example: Example
|
8
|
-
- form_pill_icon: Form Pill Icon
|
8
|
+
# - form_pill_icon: Form Pill Icon
|
9
9
|
|
10
10
|
react:
|
11
11
|
- form_pill_user: Form Pill User
|
12
12
|
- form_pill_size: Form Pill Size
|
13
13
|
- form_pill_tag: Form Pill Tag
|
14
14
|
- form_pill_example: Example
|
15
|
-
- form_pill_icon: Form Pill Icon
|
15
|
+
# - form_pill_icon: Form Pill Icon
|
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
<%= pb_rails("rich_text_editor", props: { id: "content-preview-editor" }) %>
|
3
3
|
<div id="card-obfuscation" style="display:none">
|
4
|
-
<%= pb_rails("card", props: { margin_top: "md"
|
4
|
+
<%= pb_rails("card", props: { margin_top: "md" }) do %>
|
5
5
|
<div id="content-preview" class="trix-content">
|
6
6
|
</div>
|
7
7
|
<% end %>
|
@@ -11,25 +11,15 @@
|
|
11
11
|
<% end %>
|
12
12
|
|
13
13
|
<script>
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
14
|
+
// Button event handler
|
15
|
+
const button = document.getElementById('preview-button');
|
16
|
+
button.addEventListener('click', function() {
|
17
|
+
const content = document.getElementById('content-preview-editor');
|
18
|
+
const previewArea = document.getElementById('content-preview');
|
19
|
+
const cardDiv = document.getElementById('card-obfuscation');
|
18
20
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
const editorContent = inputElement?.value || ''
|
24
|
-
const previewArea = document.getElementById('content-preview')
|
25
|
-
const cardDiv = document.getElementById('card-obfuscation')
|
26
|
-
|
27
|
-
if (previewArea && cardDiv) {
|
28
|
-
previewArea.innerHTML = editorContent
|
29
|
-
cardDiv.style.display = 'block'
|
30
|
-
}
|
31
|
-
}
|
32
|
-
|
33
|
-
document.getElementById('preview-button')?.addEventListener('click', handleButtonClick)
|
34
|
-
})
|
21
|
+
previewArea.innerHTML = content.value;
|
22
|
+
cardDiv.classList.add('mt_md');
|
23
|
+
cardDiv.style.display = 'block';
|
24
|
+
});
|
35
25
|
</script>
|