playbook_ui_docs 12.30.1.pre.alpha.PLAY906multilevelselectedidsprop917 → 12.30.1.pre.alpha.hovertesting914

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 28fa02afaade79bc679ffc4c72c34f0a300b0e6f8e1a537f38ea877379b6050d
4
- data.tar.gz: df08a3924b7358c54568eeb0226f3fbbafb611dfb5f63c6168c2b251a7e46f6e
3
+ metadata.gz: a2c84a0f873091b410667661f624c3442f12d15480ac3924edd26c5506fb94ee
4
+ data.tar.gz: 65413a134f6f67b7457d0c0bd9f7aac74b2f6941f6a51982f602b540826dfb36
5
5
  SHA512:
6
- metadata.gz: 77d58ee8f64a111a6b13fda285e05d6a768f6f46a6a60386b0bb8829e09f5ebd9f233dabda240b8fa4e14fb82d2131072a8a2ef8225477354f8d9a219cf7ee65
7
- data.tar.gz: 03abe7476d9abd96f78fb76309ff100e89ba7570e2e223d18e03930608c01560456e2f9b6e44582be59453a2e6c07e16f626a566aaeab39d30300fe57c80b059
6
+ metadata.gz: 40d33fed824218bbe468c471ebe203a98d58f5b3ab767c15b160733241901902180d9a1bff66e0bbf9766754604438f06657fe8a16dab106cb81712b2691f685
7
+ data.tar.gz: 642057447b511fc6ab2fd0950c4f3bf204ea25770d15027dde879b9ab99c9b44a83263f4beb57d74dfbda518629b60438f57b320240def03c97b24f98e6f5cb8
@@ -0,0 +1,130 @@
1
+ import React from "react"
2
+ import { Button } from "../../"
3
+
4
+ const ButtonHover = (props) => (
5
+ <div>
6
+ <div>
7
+ <Button
8
+ hover={{ background: "info" }}
9
+ marginRight='lg'
10
+ onClick={() => alert("button clicked!")}
11
+ tabIndex={0}
12
+ text='Color 1'
13
+ {...props}
14
+ />{" "}
15
+ <Button
16
+ hover={{ background: "success_subtle" }}
17
+ marginRight='lg'
18
+ onClick={() => alert("button clicked!")}
19
+ tabIndex={0}
20
+ text='Color 2'
21
+ variant='secondary'
22
+ {...props}
23
+ />{" "}
24
+ <Button
25
+ hover={{ background: "warning_subtle" }}
26
+ marginRight='lg'
27
+ onClick={() => alert("button clicked!")}
28
+ tabIndex={0}
29
+ text='Color 3'
30
+ variant='link'
31
+ {...props}
32
+ />
33
+ </div>
34
+ <div>
35
+ <Button
36
+ hover={{ shadow: "deep" }}
37
+ marginRight='lg'
38
+ marginTop='xl'
39
+ onClick={() => alert("button clicked!")}
40
+ tabIndex={0}
41
+ text='Shadow Deep'
42
+ {...props}
43
+ />{" "}
44
+ <Button
45
+ hover={{ shadow: "deeper" }}
46
+ marginRight='lg'
47
+ marginTop='xl'
48
+ onClick={() => alert("button clicked!")}
49
+ tabIndex={0}
50
+ text='Shadow Deeper'
51
+ variant='secondary'
52
+ {...props}
53
+ />{" "}
54
+ <Button
55
+ hover={{ shadow: "deepest" }}
56
+ marginRight='lg'
57
+ marginTop='xl'
58
+ onClick={() => alert("button clicked!")}
59
+ tabIndex={0}
60
+ text='Shadow Deepest'
61
+ variant='link'
62
+ {...props}
63
+ />
64
+ </div>
65
+ <div>
66
+ <Button
67
+ hover={{ scale: "sm" }}
68
+ marginRight='lg'
69
+ marginTop='xl'
70
+ onClick={() => alert("button clicked!")}
71
+ tabIndex={0}
72
+ text='Scale Small'
73
+ {...props}
74
+ />{" "}
75
+ <Button
76
+ hover={{ scale: "md" }}
77
+ marginRight='lg'
78
+ marginTop='xl'
79
+ onClick={() => alert("button clicked!")}
80
+ tabIndex={0}
81
+ text='Scale Medium'
82
+ variant='secondary'
83
+ {...props}
84
+ />{" "}
85
+ <Button
86
+ hover={{ scale: "lg" }}
87
+ marginRight='lg'
88
+ marginTop='xl'
89
+ onClick={() => alert("button clicked!")}
90
+ tabIndex={0}
91
+ text='Scale Large'
92
+ variant='link'
93
+ {...props}
94
+ />
95
+ </div>
96
+ <div>
97
+ <Button
98
+ hover={{ background: "error_subtle", shadow: "deep" }}
99
+ marginRight='lg'
100
+ marginTop='xl'
101
+ onClick={() => alert("button clicked!")}
102
+ tabIndex={0}
103
+ text='Multiple Attributes'
104
+ {...props}
105
+ />{" "}
106
+ <Button
107
+ hover={{ background: "info_subtle", shadow: "deeper" }}
108
+ marginRight='lg'
109
+ marginTop='xl'
110
+ onClick={() => alert("button clicked!")}
111
+ tabIndex={0}
112
+ text='Multiple Attributes'
113
+ variant='secondary'
114
+ {...props}
115
+ />{" "}
116
+ <Button
117
+ hover={{ background: "success_subtle", shadow: "deepest" }}
118
+ marginRight='lg'
119
+ marginTop='xl'
120
+ onClick={() => alert("button clicked!")}
121
+ tabIndex={0}
122
+ text='Multiple Attributes'
123
+ variant='link'
124
+ {...props}
125
+ />
126
+ </div>
127
+ </div>
128
+ )
129
+
130
+ export default ButtonHover
@@ -21,3 +21,4 @@ examples:
21
21
  - button_options: Button Additional Options (onClick)
22
22
  - button_size: Button Size
23
23
  - button_form: Button Form Attribute
24
+ - button_hover: Button Hover
@@ -8,3 +8,4 @@ export { default as ButtonAccessibility } from './_button_accessibility.jsx'
8
8
  export { default as ButtonOptions } from './_button_options.jsx'
9
9
  export { default as ButtonSize } from './_button_size.jsx'
10
10
  export { default as ButtonForm } from './_button_form.jsx'
11
+ export { default as ButtonHover } from './_button_hover.jsx'
@@ -1,43 +1,33 @@
1
- import React from 'react'
1
+ import React from "react"
2
2
 
3
- import Message from '../_message'
4
- import Image from '../../pb_image/_image'
3
+ import Message from "../_message"
4
+ import Image from "../../pb_image/_image"
5
5
 
6
6
  const MessageDefault = (props) => {
7
7
  return (
8
8
  <div>
9
9
  <Message
10
- avatarName="Mike Bishop"
11
- avatarStatus="online"
12
- avatarUrl="https://randomuser.me/api/portraits/men/50.jpg"
13
- label="Anna Black"
14
- message="How can we assist you today?"
15
- timestamp="20 seconds ago"
10
+ avatarName='Mike Bishop'
11
+ avatarStatus='online'
12
+ avatarUrl='https://randomuser.me/api/portraits/men/50.jpg'
13
+ borderRadius='rounded'
14
+ label='Anna Black'
15
+ message='How can we assist you today?'
16
+ timestamp='20 seconds ago'
16
17
  {...props}
17
18
  />
18
19
 
19
20
  <br />
20
21
  <br />
21
-
22
- <Message
23
- alignTimestamp="left"
24
- avatarName="Wade Winningham"
25
- avatarUrl="https://randomuser.me/api/portraits/men/14.jpg"
26
- label="Patrick Welch"
27
- message="We will escalate this issue to a Senior Support agent."
28
- timestamp="9 minutes ago"
29
- {...props}
30
- />
31
-
32
22
  <br />
33
23
  <br />
34
24
 
35
25
  <Message
36
- avatarName="Becca Jacobs"
37
- avatarUrl="https://randomuser.me/api/portraits/women/50.jpg"
38
- label="Lucille Sanchez"
39
- message="Application for Kate Smith is waiting for your approval"
40
- timestamp="2 days ago"
26
+ avatarName='Becca Jacobs'
27
+ avatarUrl='https://randomuser.me/api/portraits/women/50.jpg'
28
+ label='Lucille Sanchez'
29
+ message='Application for Kate Smith is waiting for your approval'
30
+ timestamp='2 days ago'
41
31
  {...props}
42
32
  />
43
33
 
@@ -45,10 +35,10 @@ const MessageDefault = (props) => {
45
35
  <br />
46
36
 
47
37
  <Message
48
- avatarName="Timothy Wenhold"
49
- label="Beverly Reyes"
50
- message="We are so sorry you had a bad experience!"
51
- timestamp="2 days ago"
38
+ avatarName='Timothy Wenhold'
39
+ label='Beverly Reyes'
40
+ message='We are so sorry you had a bad experience!'
41
+ timestamp='2 days ago'
52
42
  {...props}
53
43
  />
54
44
 
@@ -56,24 +46,23 @@ const MessageDefault = (props) => {
56
46
  <br />
57
47
 
58
48
  <Message
59
- label="Keith Craig"
60
- message="Please hold for one moment, I will check with my manager."
61
- timestamp="2 days ago"
49
+ label='Keith Craig'
50
+ message='Please hold for one moment, I will check with my manager.'
51
+ timestamp='2 days ago'
62
52
  {...props}
63
53
  />
64
54
 
65
55
  <br />
66
56
  <br />
67
57
 
68
- <Message
69
- label="Keith Craig"
70
- timestamp="2 days ago"
58
+ <Message label='Keith Craig'
59
+ timestamp='2 days ago'
71
60
  {...props}
72
61
  >
73
62
  <Image
74
- alt="picture of a misty forest"
75
- size="md"
76
- url="https://unsplash.it/500/400/?image=634"
63
+ alt='picture of a misty forest'
64
+ size='md'
65
+ url='https://unsplash.it/500/400/?image=634'
77
66
  />
78
67
  </Message>
79
68
 
@@ -81,18 +70,17 @@ const MessageDefault = (props) => {
81
70
  <br />
82
71
 
83
72
  <Message
84
- label="Keith Craig"
85
- message="Please hold for one moment, I will check with my manager."
86
- timestamp="2 days ago"
73
+ label='Keith Craig'
74
+ message='Please hold for one moment, I will check with my manager.'
75
+ timestamp='2 days ago'
87
76
  {...props}
88
77
  >
89
78
  <Image
90
- alt="picture of a misty forest"
91
- size="md"
92
- url="https://unsplash.it/500/400/?image=634"
79
+ alt='picture of a misty forest'
80
+ size='md'
81
+ url='https://unsplash.it/500/400/?image=634'
93
82
  />
94
83
  </Message>
95
-
96
84
  </div>
97
85
  )
98
86
  }
@@ -0,0 +1,41 @@
1
+ import React from "react"
2
+
3
+ import Message from "../_message"
4
+
5
+ const MessageHover = (props) => {
6
+ return (
7
+ <div>
8
+ <Message
9
+ avatarName='Mike Bishop'
10
+ avatarStatus='online'
11
+ avatarUrl='https://randomuser.me/api/portraits/men/50.jpg'
12
+ borderRadius='rounded'
13
+ hover={{ background: "success_subtle" }}
14
+ label='Anna Black'
15
+ message='How can we assist you today?'
16
+ padding="xs"
17
+ {...props}
18
+ />
19
+
20
+ <br />
21
+ <br />
22
+ <br />
23
+
24
+ <Message
25
+ avatarName='Becca Jacobs'
26
+ avatarUrl='https://randomuser.me/api/portraits/women/50.jpg'
27
+ borderRadius='rounded'
28
+ hover={{ shadow: "deepest" }}
29
+ label='Lucille Sanchez'
30
+ message='Application for Kate Smith is waiting for your approval'
31
+ padding="xs"
32
+ {...props}
33
+ />
34
+
35
+ <br />
36
+
37
+ </div>
38
+ )
39
+ }
40
+
41
+ export default MessageHover
@@ -8,4 +8,5 @@ examples:
8
8
  react:
9
9
  - message_default: Default
10
10
  - message_timestamp: With Timestamp Hover
11
+ - message_hover: Hover
11
12
 
@@ -1,2 +1,4 @@
1
1
  export { default as MessageDefault } from './_message_default.jsx'
2
2
  export { default as MessageTimestamp } from './_message_timestamp.jsx'
3
+ export { default as MessageHover } from './_message_hover.jsx'
4
+
@@ -2,11 +2,9 @@ examples:
2
2
  rails:
3
3
  - multi_level_select_default: Default
4
4
  - multi_level_select_return_all_selected: Return All Selected
5
- - multi_level_select_selected_ids: Selected Ids
6
5
  - multi_level_select_with_form: With Form
7
6
 
8
7
  react:
9
8
  - multi_level_select_default: Default
10
9
  - multi_level_select_return_all_selected: Return All Selected
11
- - multi_level_select_selected_ids: Selected Ids
12
10
 
@@ -1,3 +1,2 @@
1
1
  export { default as MultiLevelSelectDefault } from './_multi_level_select_default.jsx'
2
- export { default as MultiLevelSelectReturnAllSelected } from './_multi_level_select_return_all_selected.jsx'
3
- export { default as MultiLevelSelectSelectedIds } from "./_multi_level_select_selected_ids.jsx"
2
+ export { default as MultiLevelSelectReturnAllSelected } from './_multi_level_select_return_all_selected.jsx'