playbook_ui 14.11.0.pre.rc.0 → 14.11.0.pre.rc.1
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_circle_icon_button/_circle_icon_button.tsx +3 -0
- data/app/pb_kits/playbook/pb_circle_icon_button/circle_icon_button.html.erb +1 -1
- data/app/pb_kits/playbook/pb_circle_icon_button/circle_icon_button.rb +1 -0
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_link.html.erb +8 -0
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_link.jsx +9 -0
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_link.md +1 -0
- data/dist/chunks/{_typeahead-C63YYbKQ.js → _typeahead-mTf7E4Jf.js} +1 -1
- data/dist/chunks/{_weekday_stacked-Df46UIol.js → _weekday_stacked-BTD8fZBg.js} +1 -1
- data/dist/chunks/vendor.js +1 -1
- data/dist/playbook-doc.js +1 -1
- data/dist/playbook-rails-react-bindings.js +1 -1
- data/dist/playbook-rails.js +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7485c2964f0df7dc702e1fd9895ad2a789c9762eca2242fc2a4286d70e53939
|
4
|
+
data.tar.gz: 42e1c868c9a1d45c49227ba8c4ec19b5dbcf5c402a9173b0f5f8bc10a327a65b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9ae09094c9913b5b9252520dde467243225d106e0bc72ba6c0b089244c326497b0d5dc85ab24012258b52a79ff80413778094610583181c36057f68fd6b1363
|
7
|
+
data.tar.gz: 7672ee2433fddd32528fedeb274285b8da1276aad6e442b092d238924fe44880d7110dfdf59302b73e29434d44a36476d6d92142001682cab96333b77f92e8ca
|
@@ -20,6 +20,7 @@ type CircleIconButtonProps = {
|
|
20
20
|
onClick?: React.MouseEventHandler<HTMLElement>,
|
21
21
|
newWindow?: boolean,
|
22
22
|
type?: 'button' | 'submit' | 'reset' | undefined,
|
23
|
+
target?: string
|
23
24
|
variant?: 'primary' | 'secondary' | 'link',
|
24
25
|
}
|
25
26
|
|
@@ -36,6 +37,7 @@ const CircleIconButton = (props: CircleIconButtonProps): React.ReactElement => {
|
|
36
37
|
loading = false,
|
37
38
|
onClick = noop,
|
38
39
|
type,
|
40
|
+
target,
|
39
41
|
link,
|
40
42
|
newWindow,
|
41
43
|
variant,
|
@@ -66,6 +68,7 @@ const CircleIconButton = (props: CircleIconButtonProps): React.ReactElement => {
|
|
66
68
|
loading={loading}
|
67
69
|
newWindow={newWindow}
|
68
70
|
onClick={onClick}
|
71
|
+
target={target}
|
69
72
|
text={null}
|
70
73
|
variant={variant}
|
71
74
|
>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<%= pb_content_tag do %>
|
2
|
-
<%= pb_rails("button", props: {type: object.type, loading: object.loading, link: object.link, new_window:object.new_window, variant: object.variant, disabled: object.disabled, dark: object.dark}) do %>
|
2
|
+
<%= pb_rails("button", props: {type: object.type, loading: object.loading, link: object.link, new_window:object.new_window, variant: object.variant, target: object.target, disabled: object.disabled, dark: object.dark}) do %>
|
3
3
|
<%= pb_rails("icon", props: {icon: object.icon, fixed_width: true, dark: object.dark}) %>
|
4
4
|
<% end %>
|
5
5
|
<% end %>
|
@@ -10,3 +10,11 @@
|
|
10
10
|
link: "https://google.com",
|
11
11
|
new_window: true
|
12
12
|
}) %>
|
13
|
+
<br/>
|
14
|
+
<%= pb_rails("circle_icon_button", props: {
|
15
|
+
icon: "info",
|
16
|
+
variant: "secondary",
|
17
|
+
aria: { label: "Link to Playbook in new window" },
|
18
|
+
link: "https://playbook.powerapp.cloud/",
|
19
|
+
target: "child"
|
20
|
+
}) %>
|
@@ -21,6 +21,15 @@ const CircleIconButtonLink = (props) => (
|
|
21
21
|
{...props}
|
22
22
|
/>
|
23
23
|
|
24
|
+
<br/>
|
25
|
+
|
26
|
+
<CircleIconButton
|
27
|
+
aria={{ label: "Link to Playbook in new window" }}
|
28
|
+
icon="info"
|
29
|
+
link="https://playbook.powerapp.cloud/"
|
30
|
+
target="child"
|
31
|
+
variant="secondary"
|
32
|
+
/>
|
24
33
|
</div>
|
25
34
|
)
|
26
35
|
|
@@ -0,0 +1 @@
|
|
1
|
+
The `link` prop accepts a string that is used as an href value and causes the button to act as a link. The default behavior of a link is to open in the current window. You can optionally alter the link behavior by adding the `newWindow` prop (boolean), which will open the link in a new window, or by calling the `target` prop, which accepts `_self`, `_blank`, `_parent`, `_top`, `child`, or any string, allowing you to specify any link target.
|