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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8268fd29b4cb73ceb2b1795a9edbb7d0775c8eb2fac019ea89c04fd2e2866653
4
- data.tar.gz: eeaa290965d1ee98aa32555672688a89f98f3fa4b410542cd260c8f5dc7c1042
3
+ metadata.gz: a6c968cf90d1de383e97877c72e6031bb5ecd84104d27959adcc57036fb3415b
4
+ data.tar.gz: f18f7076471dc7eb3b6b220c267bb39071ac36cf5ccc17bef6e94e3b96cc11c5
5
5
  SHA512:
6
- metadata.gz: 8b5074ed6659ec809ada0af5455c4a93fa2ddb889e314eb9f5f94eb2a8a6989d5c046ebadf5f60527f0be5a78178243cbcefa3e76251de23c06413d1df1c4bea
7
- data.tar.gz: 6f1716a0201cbf67b4a87d123f32efa30bef8116709f7dad382c12affe58734301cc2756c3a833e8162c7150869344e9c80a84c51cc942f4959f5f4036eaf31e
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: static;
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
- id:"dialog-1",
5
- size: "md",
6
- title: "Header Title is the Title Prop"
7
- }) do %>
8
- <%= pb_rails("dialog/dialog_body") do %>
9
- <%= pb_rails("button", props: { aria: { label: "Loading" }, loading: true, margin_right: "lg", text: "Button Primary" }) %>
10
- <div style="height: 800px; background-color: lightgray;"></div>
11
- <%= pb_rails("button", props: { loading: true, text: "Loading..." }) %>
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="md"
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.parentId
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
- item.checked && !returnAllSelected
203
- ? modifyRecursive(item.children, true)
204
+ shouldCascade
205
+ ? modifyRecursive(cloneDeep(newItem.children), true)
204
206
  : item.children;
205
207
  newItem.children = addCheckedAndParentProperty(
206
208
  children,