playbook_ui 16.3.0.pre.alpha.play283714716 → 16.3.0.pre.alpha.play284214735
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/_button_mixins.scss +1 -6
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_default.html.erb +9 -18
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_default.jsx +5 -24
- data/app/pb_kits/playbook/pb_multi_level_select/_helper_functions.tsx +1 -1
- data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx +4 -2
- data/dist/chunks/_typeahead-oZo5DMVx.js +1 -0
- data/dist/chunks/vendor.js +1 -1
- data/dist/playbook-rails-react-bindings.js +1 -1
- data/dist/playbook-rails.js +1 -1
- data/dist/playbook.css +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +3 -3
- data/dist/chunks/_typeahead-QhswHQnq.js +0 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a6c968cf90d1de383e97877c72e6031bb5ecd84104d27959adcc57036fb3415b
|
|
4
|
+
data.tar.gz: f18f7076471dc7eb3b6b220c267bb39071ac36cf5ccc17bef6e94e3b96cc11c5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a4514506ebbfa43307f3cde9b73f213252d9ecdd9703a90877a715175e30f13235f97ad99f208e876a405ffa4048d1a1557e4cf0f714dacd0ea00379cd55fba1
|
|
7
|
+
data.tar.gz: 9c83ff2b3d78ccea736dcc216c733f9398f42bfca39e34e8964e6802a53cba10314f188837c2bc6bada4be3b14357220bcd2f7e6f07c2dbc8a39c42823f5b304
|
|
@@ -57,7 +57,7 @@ $pb_button_border_width: 0px;
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.loading-icon {
|
|
60
|
-
position:
|
|
60
|
+
position: absolute;
|
|
61
61
|
display: none;
|
|
62
62
|
}
|
|
63
63
|
.pb_button_content {
|
|
@@ -158,15 +158,10 @@ $pb_button_border_width: 0px;
|
|
|
158
158
|
// Loading =====================
|
|
159
159
|
@mixin pb_button_loading($loading: false) {
|
|
160
160
|
@if $loading == true {
|
|
161
|
-
display: inline-grid;
|
|
162
|
-
place-items: center;
|
|
163
|
-
|
|
164
161
|
.loading-icon {
|
|
165
|
-
grid-area: 1 / 1;
|
|
166
162
|
display: block;
|
|
167
163
|
}
|
|
168
164
|
.pb_button_content {
|
|
169
|
-
grid-area: 1 / 1;
|
|
170
165
|
visibility: hidden;
|
|
171
166
|
}
|
|
172
167
|
}
|
|
@@ -1,20 +1,11 @@
|
|
|
1
1
|
<%= pb_rails("button", props: { text: "Open Dialog", data: {"open-dialog": "dialog-1"} }) %>
|
|
2
2
|
|
|
3
|
-
<%= pb_rails("dialog", props: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
<% end %>
|
|
13
|
-
|
|
14
|
-
<%= pb_rails("dialog/dialog_footer") do %>
|
|
15
|
-
<%= pb_rails("flex", props: { spacing: "between", padding_x: "md", padding_bottom: "md", padding: "sm" }) do %>
|
|
16
|
-
<%= pb_rails("button", props: { loading: true, text: "Send My Issue" }) %>
|
|
17
|
-
<%= pb_rails("button", props: { text: "Back", variant: "link", data: {"close-dialog": "dialog-1"} }) %>
|
|
18
|
-
<% end %>
|
|
19
|
-
<% end %>
|
|
20
|
-
<% end %>
|
|
3
|
+
<%= pb_rails("dialog", props: {
|
|
4
|
+
id:"dialog-1",
|
|
5
|
+
size: "sm",
|
|
6
|
+
title: "Header Title is the Title Prop",
|
|
7
|
+
text: "Hello Body Text, Nice to meet ya.",
|
|
8
|
+
cancel_button: "Cancel Button",
|
|
9
|
+
confirm_button: "Okay",
|
|
10
|
+
confirm_button_id: "confirm-button-1"
|
|
11
|
+
}) %>
|
|
@@ -12,35 +12,16 @@ const DialogDefault = () => {
|
|
|
12
12
|
<>
|
|
13
13
|
<Button onClick={open}>{'Open Dialog'}</Button>
|
|
14
14
|
<Dialog
|
|
15
|
+
cancelButton="Cancel Button"
|
|
16
|
+
confirmButton="Okay"
|
|
15
17
|
onCancel={close}
|
|
16
18
|
onClose={close}
|
|
17
19
|
onConfirm={close}
|
|
18
20
|
opened={isOpen}
|
|
19
|
-
size="
|
|
21
|
+
size="sm"
|
|
22
|
+
text="Hello Body Text, Nice to meet ya."
|
|
20
23
|
title="Header Title is the Title Prop"
|
|
21
|
-
|
|
22
|
-
<Dialog.Body>
|
|
23
|
-
<Button
|
|
24
|
-
aria={{ label: 'Loading' }}
|
|
25
|
-
loading
|
|
26
|
-
text="Button Primary"
|
|
27
|
-
/>
|
|
28
|
-
<div style={{height: '800px', backgroundColor: 'lightgray'}} />
|
|
29
|
-
<Button
|
|
30
|
-
loading
|
|
31
|
-
text="Loading..."
|
|
32
|
-
/>
|
|
33
|
-
</Dialog.Body>
|
|
34
|
-
<Dialog.Footer>
|
|
35
|
-
<Button
|
|
36
|
-
loading
|
|
37
|
-
text="Send My Issue"
|
|
38
|
-
/>
|
|
39
|
-
<Button variant="link">
|
|
40
|
-
{"Back"}
|
|
41
|
-
</Button>
|
|
42
|
-
</Dialog.Footer>
|
|
43
|
-
</Dialog>
|
|
24
|
+
/>
|
|
44
25
|
</>
|
|
45
26
|
)
|
|
46
27
|
}
|
|
@@ -102,7 +102,7 @@ export const getDefaultCheckedItems = (
|
|
|
102
102
|
} else {
|
|
103
103
|
const parent = items.find(
|
|
104
104
|
(parentItem: { [key: string]: any }) =>
|
|
105
|
-
parentItem.id === item.
|
|
105
|
+
parentItem.id === item.parent_id
|
|
106
106
|
);
|
|
107
107
|
if (!parent || !parent.checked) {
|
|
108
108
|
checkedDefault.push(item);
|
|
@@ -198,9 +198,11 @@ const MultiLevelSelect = forwardRef<HTMLInputElement, MultiLevelSelectProps>(
|
|
|
198
198
|
disabled: isDisabled,
|
|
199
199
|
};
|
|
200
200
|
if (newItem.children && newItem.children.length > 0) {
|
|
201
|
+
const shouldCascade =
|
|
202
|
+
newItem.checked && !returnAllSelected && variant !== "single";
|
|
201
203
|
const children =
|
|
202
|
-
|
|
203
|
-
? modifyRecursive(
|
|
204
|
+
shouldCascade
|
|
205
|
+
? modifyRecursive(cloneDeep(newItem.children), true)
|
|
204
206
|
: item.children;
|
|
205
207
|
newItem.children = addCheckedAndParentProperty(
|
|
206
208
|
children,
|