playbook_ui 11.20.0.pre.alpha.focus1 → 11.20.0.pre.alpha.railsdialog1
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_button/_button.scss +5 -0
- data/app/pb_kits/playbook/pb_button/_button_mixins.scss +2 -33
- data/app/pb_kits/playbook/pb_button/docs/_button_icon_options.html.erb +2 -2
- data/app/pb_kits/playbook/pb_button/docs/_button_icon_options.jsx +0 -2
- data/app/pb_kits/playbook/pb_button/docs/_button_link.html.erb +3 -3
- data/app/pb_kits/playbook/pb_button/docs/_button_link.jsx +0 -3
- data/app/pb_kits/playbook/pb_button/docs/_button_loading.html.erb +3 -3
- data/app/pb_kits/playbook/pb_button/docs/_button_loading.jsx +0 -3
- data/app/pb_kits/playbook/pb_button/docs/_button_size.html.erb +3 -3
- data/app/pb_kits/playbook/pb_button/docs/_button_size.jsx +0 -3
- data/app/pb_kits/playbook/pb_dialog/_dialog.scss +1 -0
- data/app/pb_kits/playbook/tokens/_colors.scss +1 -3
- data/lib/playbook/version.rb +1 -1
- metadata +2 -3
- data/app/pb_kits/playbook/tokens/_accessibility.scss +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 270f21bddaa2e5f8a2e2bfb4426ce26083f89c21fd219c068fc4e3f643589748
|
4
|
+
data.tar.gz: b8cc815cc03a09ef95173a42b1f7c52bb2f000d010923c3930be1fc45b1c767e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e6487ff9f39df73b1a3cf95cd6be02b82978be031a21f8b4c022daecee81e08ac01105facd9d92293be13de4fdd65f4c2fe3d7688736ee5de6dafca4be1e41c
|
7
|
+
data.tar.gz: 428c54f40b19703257dabe224279a0229769f89832985864d95411b6b8c0d9dee7806f5bfd19615285abf5f0598eada9af239bbf501fb8888ac5c56a80eeb00f
|
@@ -5,7 +5,6 @@
|
|
5
5
|
@import "../tokens/spacing";
|
6
6
|
@import "../tokens/transition";
|
7
7
|
@import "../tokens/typography";
|
8
|
-
@import "../tokens/accessibility";
|
9
8
|
|
10
9
|
$pb_button_size: 40px;
|
11
10
|
$pb_button_v_padding: 7px;
|
@@ -63,12 +62,11 @@ $pb_button_border_width: 0px;
|
|
63
62
|
margin-left: $space_xs;
|
64
63
|
}
|
65
64
|
|
66
|
-
&:hover {
|
65
|
+
&:hover, &:focus {
|
67
66
|
outline: none;
|
67
|
+
|
68
68
|
}
|
69
69
|
|
70
|
-
@include focus;
|
71
|
-
|
72
70
|
&:active {
|
73
71
|
outline: none;
|
74
72
|
border-width: $pb_button_border_width;
|
@@ -88,10 +86,6 @@ $pb_button_border_width: 0px;
|
|
88
86
|
&:hover {
|
89
87
|
@include pb_button_hover;
|
90
88
|
}
|
91
|
-
&:active {
|
92
|
-
transition: none;
|
93
|
-
@include pb_button_variant($primary_action);
|
94
|
-
}
|
95
89
|
}
|
96
90
|
}
|
97
91
|
|
@@ -103,10 +97,6 @@ $pb_button_border_width: 0px;
|
|
103
97
|
&:hover {
|
104
98
|
@include pb_button_hover(rgba($primary_action, $opacity_3));
|
105
99
|
}
|
106
|
-
&:active {
|
107
|
-
transition: none;
|
108
|
-
@include pb_button_variant(rgba($primary_action, 0.05), $primary_action);
|
109
|
-
}
|
110
100
|
}
|
111
101
|
}
|
112
102
|
|
@@ -117,11 +107,6 @@ $pb_button_border_width: 0px;
|
|
117
107
|
@media (hover:hover) {
|
118
108
|
&:hover {
|
119
109
|
@include pb_button_hover($transparent);
|
120
|
-
color: $text_lt_default;
|
121
|
-
}
|
122
|
-
&:active {
|
123
|
-
transition: none;
|
124
|
-
@include pb_button_variant($transparent, $primary_action);
|
125
110
|
}
|
126
111
|
}
|
127
112
|
}
|
@@ -131,9 +116,6 @@ $pb_button_border_width: 0px;
|
|
131
116
|
$disabled_color: rgba($charcoal, $opacity_5);
|
132
117
|
@include pb_button_variant(rgba($slate, $opacity_4), $disabled_color);
|
133
118
|
pointer-events: none;
|
134
|
-
&:focus {
|
135
|
-
outline: none;
|
136
|
-
}
|
137
119
|
}
|
138
120
|
|
139
121
|
// Block =======================
|
@@ -163,10 +145,6 @@ $pb_button_border_width: 0px;
|
|
163
145
|
&:hover {
|
164
146
|
@include pb_button_hover($bg: darken($primary_action, $pb_button_hover_darken));
|
165
147
|
}
|
166
|
-
&:active {
|
167
|
-
transition: none;
|
168
|
-
@include pb_button_variant($primary_action);
|
169
|
-
}
|
170
148
|
}
|
171
149
|
}
|
172
150
|
|
@@ -178,10 +156,6 @@ $pb_button_border_width: 0px;
|
|
178
156
|
&:hover {
|
179
157
|
@include pb_button_hover(rgba($primary_action, $opacity_2));
|
180
158
|
}
|
181
|
-
&:active {
|
182
|
-
transition: none;
|
183
|
-
@include pb_button_variant(rgba($white, 0.2), $white);
|
184
|
-
}
|
185
159
|
}
|
186
160
|
}
|
187
161
|
|
@@ -192,11 +166,6 @@ $pb_button_border_width: 0px;
|
|
192
166
|
@media (hover:hover) {
|
193
167
|
&:hover {
|
194
168
|
@include pb_button_hover($transparent);
|
195
|
-
color: rgba($white, $opacity_6)
|
196
|
-
}
|
197
|
-
&:active {
|
198
|
-
transition: none;
|
199
|
-
@include pb_button_variant($transparent, $white);
|
200
169
|
}
|
201
170
|
}
|
202
171
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
<%= pb_rails("button", props: { icon: "plus", text: "Icon on Left"
|
2
|
-
<%= pb_rails("button", props: { icon: "chevron-right", icon_right: true, text: "Icon on Right"
|
1
|
+
<%= pb_rails("button", props: { icon: "plus", text: "Icon on Left" }) %>
|
2
|
+
<%= pb_rails("button", props: { icon: "chevron-right", icon_right: true, text: "Icon on Right" }) %>
|
@@ -6,7 +6,6 @@ const ButtonIconOptions = (props) => (
|
|
6
6
|
<Button
|
7
7
|
fixedWidth
|
8
8
|
icon='plus'
|
9
|
-
marginRight='lg'
|
10
9
|
text="Icon on Left"
|
11
10
|
{...props}
|
12
11
|
/>
|
@@ -15,7 +14,6 @@ const ButtonIconOptions = (props) => (
|
|
15
14
|
fixedWidth
|
16
15
|
icon='chevron-right'
|
17
16
|
iconRight
|
18
|
-
marginRight='lg'
|
19
17
|
text="Icon on Right"
|
20
18
|
{...props}
|
21
19
|
/>
|
@@ -1,3 +1,3 @@
|
|
1
|
-
<%= pb_rails("button", props: { text: "A Tag Button", aria: { label: "Link to Google" }, tag: "a", link: "http://google.com"
|
2
|
-
<%= pb_rails("button", props: { text: "Open in new Window", aria: { label: "Link to Google in new window" }, new_window: true, link: "http://google.com"
|
3
|
-
<%= pb_rails("button", props: { text: "A Tag Button Disabled", aria: { label: "Disabled link to Google" }, disabled: true, link: "http://google.com"
|
1
|
+
<%= pb_rails("button", props: { text: "A Tag Button", aria: { label: "Link to Google" }, tag: "a", link: "http://google.com" }) %>
|
2
|
+
<%= pb_rails("button", props: { text: "Open in new Window", aria: { label: "Link to Google in new window" }, new_window: true, link: "http://google.com" }) %>
|
3
|
+
<%= pb_rails("button", props: { text: "A Tag Button Disabled", aria: { label: "Disabled link to Google" }, disabled: true, link: "http://google.com" }) %>
|
@@ -6,7 +6,6 @@ const ButtonLink = (props) => (
|
|
6
6
|
<Button
|
7
7
|
aria={{ label: 'Link to Google' }}
|
8
8
|
link="https://google.com"
|
9
|
-
marginRight='lg'
|
10
9
|
text="A Tag Button"
|
11
10
|
{...props}
|
12
11
|
/>
|
@@ -14,7 +13,6 @@ const ButtonLink = (props) => (
|
|
14
13
|
<Button
|
15
14
|
aria={{ label: 'Link to Google in new window' }}
|
16
15
|
link="https://google.com"
|
17
|
-
marginRight='lg'
|
18
16
|
newWindow
|
19
17
|
text="Open in New Window"
|
20
18
|
{...props}
|
@@ -24,7 +22,6 @@ const ButtonLink = (props) => (
|
|
24
22
|
aria={{ label: 'Disabled link to Google' }}
|
25
23
|
disabled
|
26
24
|
link="https://google.com"
|
27
|
-
marginRight='lg'
|
28
25
|
text="A Tag Button Disabled"
|
29
26
|
{...props}
|
30
27
|
/>
|
@@ -1,3 +1,3 @@
|
|
1
|
-
<%= pb_rails("button", props: { aria: { label: "Loading" }, text: "Button Primary", loading: true
|
2
|
-
<%= pb_rails("button", props: { aria: { label: "Loading" }, text: "Button Primary", variant: "secondary", loading: true
|
3
|
-
<%= pb_rails("button", props: { aria: { label: "Loading" }, text: "Button Primary", variant: "link", loading: true
|
1
|
+
<%= pb_rails("button", props: { aria: { label: "Loading" }, text: "Button Primary", loading: true }) %>
|
2
|
+
<%= pb_rails("button", props: { aria: { label: "Loading" }, text: "Button Primary", variant: "secondary", loading: true }) %>
|
3
|
+
<%= pb_rails("button", props: { aria: { label: "Loading" }, text: "Button Primary", variant: "link", loading: true }) %>
|
@@ -6,7 +6,6 @@ const ButtonLoading = (props) => (
|
|
6
6
|
<Button
|
7
7
|
aria={{ label: 'Loading' }}
|
8
8
|
loading
|
9
|
-
marginRight='lg'
|
10
9
|
text="Button Primary"
|
11
10
|
{...props}
|
12
11
|
/>
|
@@ -14,7 +13,6 @@ const ButtonLoading = (props) => (
|
|
14
13
|
<Button
|
15
14
|
aria={{ label: 'Loading' }}
|
16
15
|
loading
|
17
|
-
marginRight='lg'
|
18
16
|
text="Button Secondary"
|
19
17
|
variant="secondary"
|
20
18
|
{...props}
|
@@ -23,7 +21,6 @@ const ButtonLoading = (props) => (
|
|
23
21
|
<Button
|
24
22
|
aria={{ label: 'Loading' }}
|
25
23
|
loading
|
26
|
-
marginRight='lg'
|
27
24
|
text="A Tag Button Disabled"
|
28
25
|
variant="link"
|
29
26
|
{...props}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
<%= pb_rails("button", props: { text: "Button sm size", size: "sm"
|
2
|
-
<%= pb_rails("button", props: { text: "Button md size", size: "md"
|
3
|
-
<%= pb_rails("button", props: { text: "Button lg size", size: "lg"
|
1
|
+
<%= pb_rails("button", props: { text: "Button sm size", size: "sm" }) %>
|
2
|
+
<%= pb_rails("button", props: { text: "Button md size", size: "md" }) %>
|
3
|
+
<%= pb_rails("button", props: { text: "Button lg size", size: "lg" }) %>
|
@@ -4,21 +4,18 @@ import { Button } from '../../'
|
|
4
4
|
const ButtonSize = (props) => (
|
5
5
|
<div>
|
6
6
|
<Button
|
7
|
-
marginRight='lg'
|
8
7
|
size="sm"
|
9
8
|
text="Button sm size"
|
10
9
|
{...props}
|
11
10
|
/>
|
12
11
|
{' '}
|
13
12
|
<Button
|
14
|
-
marginRight='lg'
|
15
13
|
size="md"
|
16
14
|
text="Button md size"
|
17
15
|
{...props}
|
18
16
|
/>
|
19
17
|
{' '}
|
20
18
|
<Button
|
21
|
-
marginRight='lg'
|
22
19
|
size="lg"
|
23
20
|
text="Button lg size"
|
24
21
|
{...props}
|
@@ -316,6 +316,7 @@
|
|
316
316
|
// fixes for stylesheets in nitro that were conflicting with our kit. DO NOT REMOVE.
|
317
317
|
//conflicts were only apparent in nitro, not in playbook local env
|
318
318
|
.pb_dialog_rails {
|
319
|
+
position: fixed !important;
|
319
320
|
top: 0 !important;
|
320
321
|
padding: unset !important;
|
321
322
|
margin: auto;
|
@@ -94,13 +94,11 @@ $hover_colors: (
|
|
94
94
|
);
|
95
95
|
|
96
96
|
/* Focus colors -----------------------*/
|
97
|
-
$focus_color: $primary;
|
98
97
|
$focus_input_light: rgba($active_light, $opacity_5);
|
99
98
|
$focus_input_dark: rgba(#144075, $opacity_5);
|
100
99
|
$focus_input_colors: (
|
101
100
|
focus_input_light: $focus_input_light,
|
102
|
-
focus_input_dark: $focus_input_dark
|
103
|
-
focus_color: $focus_color
|
101
|
+
focus_input_dark: $focus_input_dark
|
104
102
|
);
|
105
103
|
|
106
104
|
/* Border colors ----------------------*/
|
data/lib/playbook/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: playbook_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 11.20.0.pre.alpha.
|
4
|
+
version: 11.20.0.pre.alpha.railsdialog1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Power UX
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-01-
|
12
|
+
date: 2023-01-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -2235,7 +2235,6 @@ files:
|
|
2235
2235
|
- app/pb_kits/playbook/playbook-doc.js
|
2236
2236
|
- app/pb_kits/playbook/playbook-rails-react-bindings.js
|
2237
2237
|
- app/pb_kits/playbook/playbook-rails.js
|
2238
|
-
- app/pb_kits/playbook/tokens/_accessibility.scss
|
2239
2238
|
- app/pb_kits/playbook/tokens/_animation-curves.scss
|
2240
2239
|
- app/pb_kits/playbook/tokens/_border_radius.scss
|
2241
2240
|
- app/pb_kits/playbook/tokens/_colors.scss
|