playbook_ui_docs 16.4.0.pre.alpha.PLAY2864circleiconbuttonloadingalignrails15138 → 16.4.0.pre.alpha.play2838formcustomvalidationsconsistency15140

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: 5f445aa174e5279062b03dd04f87872fea3d366d1d46bc7c5516408593336fdc
4
- data.tar.gz: 723c15f2f7680a9424bc92c95e8c6af1386d1a880260b4096b62cb020138465d
3
+ metadata.gz: ea89601064dc057d0c600657f8007f8d6286aeed4b330071b59c7f13554423a6
4
+ data.tar.gz: b6ef98d802e2abc915bd805678199f1791f31cc9c7a0444ff1b781517436ae4d
5
5
  SHA512:
6
- metadata.gz: 348b84bc7491f38e7cdb75822ec1c829fdce88f790d8102f294a918bb1e6d07b45a0b0b715b068db6b79ffc93ef3a1ea2743e15b294ddf00769566f0ab2027cb
7
- data.tar.gz: 927be562b1b02541a7ea79d2143d30bb37797e8470846d628e0a9f1b808f07925147241d60b9eadd2d1bd4e45a5a6e60a926d7ccee3225041cac5e441b213d7c
6
+ metadata.gz: 5047c890181149a5fa62a9bf11bd3d2837a6a8ddc2defe79cd26edb91d0f5fc5ca6172b109100ddb828959993bd0368f215a899db8caa31cd749f7cc312fd709
7
+ data.tar.gz: fc37ce86e841a6b45a02e030fb14ccbfd71d12ecc20c381ebc0d958d1e8d350c83a0ad3b935775b066ceb92cb00af0ab18e83bdf31028e1b29b8677a582d28fb
@@ -27,28 +27,3 @@
27
27
  icon: "user",
28
28
  loading: true
29
29
  }) %>
30
-
31
-
32
- <%= pb_rails("button", props: { margin_top: "md", text: "Open Dialog to confirm PLAY-2837 fix still works", data: {"open-dialog": "dialog-1"} }) %>
33
-
34
- <%= pb_rails("dialog", props: {
35
- id:"dialog-1",
36
- size: "md",
37
- title: "Header Title is the Title Prop"
38
- }) do %>
39
- <%= pb_rails("dialog/dialog_body") do %>
40
- <%= pb_rails("button", props: { aria: { label: "Loading" }, loading: true, margin_right: "lg", text: "Button Primary" }) %>
41
- <%= pb_rails("circle_icon_button", props: { loading: true, icon: "plus" }) %>
42
- <div style="height: 800px; background-color: lightgray;"></div>
43
- <%= pb_rails("button", props: { loading: true, text: "Loading..." }) %>
44
- <%= pb_rails("circle_icon_button", props: { loading: true, icon: "plus" }) %>
45
- <% end %>
46
-
47
- <%= pb_rails("dialog/dialog_footer") do %>
48
- <%= pb_rails("flex", props: { spacing: "between", padding_x: "md", padding_bottom: "md", padding: "sm" }) do %>
49
- <%= pb_rails("button", props: { loading: true, text: "Send My Issue" }) %>
50
- <%= pb_rails("circle_icon_button", props: { loading: true, icon: "plus" }) %>
51
- <%= pb_rails("button", props: { text: "Back", variant: "link", data: {"close-dialog": "dialog-1"} }) %>
52
- <% end %>
53
- <% end %>
54
- <% end %>
@@ -1,102 +1,43 @@
1
- import React, { useState } from 'react'
1
+ import React from 'react'
2
2
 
3
3
  import CircleIconButton from '../_circle_icon_button'
4
- import Dialog from '../../pb_dialog/_dialog'
5
- import Button from '../../pb_button/_button'
6
4
 
7
- const CircleIconButtonLoading = (props) => {
8
-
9
-
10
- const [isOpen, setIsOpen] = useState(false)
11
- const close = () => setIsOpen(false)
12
- const open = () => setIsOpen(true)
13
-
14
- return (
15
- <div>
16
- <CircleIconButton
17
- icon="plus"
18
- loading
19
- variant="primary"
20
- {...props}
21
- />
22
-
23
- <br />
24
-
25
- <CircleIconButton
26
- icon="pen"
27
- loading
28
- variant="secondary"
29
- {...props}
30
- />
31
-
32
- <br />
33
-
34
- <CircleIconButton
35
- disabled
36
- icon="times"
37
- loading
38
- {...props}
39
- />
40
-
41
- <br />
42
-
43
- <CircleIconButton
44
- icon="user"
45
- loading
46
- variant="link"
47
- {...props}
48
- />
49
- <>
50
- <Button marginTop="md"
51
- onClick={open}
52
- >
53
- {'Open Dialog to confirm PLAY-2837 fix still works for circle icon buttons'}
54
- </Button>
55
- <Dialog
56
- onCancel={close}
57
- onClose={close}
58
- onConfirm={close}
59
- opened={isOpen}
60
- size="md"
61
- title="Header Title is the Title Prop"
62
- >
63
- <Dialog.Body>
64
- <Button
65
- aria={{ label: 'Loading' }}
66
- loading
67
- text="Button Primary"
68
- />
69
- <CircleIconButton
70
- icon="plus"
71
- loading
72
- />
73
- <div style={{height: '800px', backgroundColor: 'lightgray'}} />
74
- <Button
75
- loading
76
- text="Loading..."
77
- />
78
- <CircleIconButton
79
- icon="plus"
80
- loading
81
- />
82
- </Dialog.Body>
83
- <Dialog.Footer>
84
- <Button
85
- loading
86
- text="Send My Issue"
87
- />
88
- <CircleIconButton
89
- icon="plus"
90
- loading
91
- />
92
- <Button variant="link">
93
- {"Back"}
94
- </Button>
95
- </Dialog.Footer>
96
- </Dialog>
97
- </>
98
- </div>
99
- )
100
- }
5
+ const CircleIconButtonLoading = (props) => (
6
+ <div>
7
+ <CircleIconButton
8
+ icon="plus"
9
+ loading
10
+ variant="primary"
11
+ {...props}
12
+ />
13
+
14
+ <br />
15
+
16
+ <CircleIconButton
17
+ icon="pen"
18
+ loading
19
+ variant="secondary"
20
+ {...props}
21
+ />
22
+
23
+ <br />
24
+
25
+ <CircleIconButton
26
+ disabled
27
+ icon="times"
28
+ loading
29
+ {...props}
30
+ />
31
+
32
+ <br />
33
+
34
+ <CircleIconButton
35
+ icon="user"
36
+ loading
37
+ variant="link"
38
+ {...props}
39
+ />
40
+ </div>
41
+ )
101
42
 
102
43
  export default CircleIconButtonLoading
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui_docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 16.4.0.pre.alpha.PLAY2864circleiconbuttonloadingalignrails15138
4
+ version: 16.4.0.pre.alpha.play2838formcustomvalidationsconsistency15140
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX