playbook_ui 12.30.1.pre.alpha.hovertesting914 → 12.30.1.pre.alpha.play846responsivespacingglobalpropsneedsdefault924
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 +4 -4
- data/app/pb_kits/playbook/_playbook.scss +0 -2
- data/app/pb_kits/playbook/pb_button/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_button/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_card/_card.scss +3 -0
- data/app/pb_kits/playbook/pb_card/_card.tsx +5 -6
- data/app/pb_kits/playbook/pb_card/card.html.erb +1 -3
- data/app/pb_kits/playbook/pb_card/card.rb +0 -96
- data/app/pb_kits/playbook/pb_card/card_body.rb +93 -1
- data/app/pb_kits/playbook/pb_collapsible/_collapsible.scss +11 -0
- data/app/pb_kits/playbook/pb_collapsible/_collapsible.tsx +1 -3
- data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleContent.tsx +1 -3
- data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleMain.tsx +1 -3
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_dialog/_dialog.scss +12 -0
- data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.tsx +2 -2
- data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.tsx +1 -4
- data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_header.tsx +1 -2
- data/app/pb_kits/playbook/pb_message/docs/_message_default.jsx +45 -33
- data/app/pb_kits/playbook/pb_message/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_message/docs/index.js +0 -2
- data/app/pb_kits/playbook/utilities/_colors.scss +0 -3
- data/app/pb_kits/playbook/utilities/globalProps.ts +2 -22
- data/dist/playbook-rails.js +6 -6
- data/lib/playbook/version.rb +1 -1
- metadata +2 -8
- data/app/pb_kits/playbook/pb_button/docs/_button_hover.jsx +0 -130
- data/app/pb_kits/playbook/pb_message/docs/_message_hover.jsx +0 -41
- data/app/pb_kits/playbook/tokens/_scale.scss +0 -9
- data/app/pb_kits/playbook/tokens/exports/_scale.scss +0 -13
- data/app/pb_kits/playbook/utilities/_border_radius.scss +0 -31
- data/app/pb_kits/playbook/utilities/_hover.scss +0 -47
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: 12.30.1.pre.alpha.
|
4
|
+
version: 12.30.1.pre.alpha.play846responsivespacingglobalpropsneedsdefault924
|
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-07-
|
12
|
+
date: 2023-07-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -427,7 +427,6 @@ files:
|
|
427
427
|
- app/pb_kits/playbook/pb_button/docs/_button_full_width.html.erb
|
428
428
|
- app/pb_kits/playbook/pb_button/docs/_button_full_width.jsx
|
429
429
|
- app/pb_kits/playbook/pb_button/docs/_button_full_width.md
|
430
|
-
- app/pb_kits/playbook/pb_button/docs/_button_hover.jsx
|
431
430
|
- app/pb_kits/playbook/pb_button/docs/_button_icon_options.html.erb
|
432
431
|
- app/pb_kits/playbook/pb_button/docs/_button_icon_options.jsx
|
433
432
|
- app/pb_kits/playbook/pb_button/docs/_button_icon_options.md
|
@@ -1437,7 +1436,6 @@ files:
|
|
1437
1436
|
- app/pb_kits/playbook/pb_message/docs/_message_default.html.erb
|
1438
1437
|
- app/pb_kits/playbook/pb_message/docs/_message_default.jsx
|
1439
1438
|
- app/pb_kits/playbook/pb_message/docs/_message_default.md
|
1440
|
-
- app/pb_kits/playbook/pb_message/docs/_message_hover.jsx
|
1441
1439
|
- app/pb_kits/playbook/pb_message/docs/_message_timestamp.html.erb
|
1442
1440
|
- app/pb_kits/playbook/pb_message/docs/_message_timestamp.jsx
|
1443
1441
|
- app/pb_kits/playbook/pb_message/docs/example.yml
|
@@ -2400,7 +2398,6 @@ files:
|
|
2400
2398
|
- app/pb_kits/playbook/tokens/_line_height.scss
|
2401
2399
|
- app/pb_kits/playbook/tokens/_opacity.scss
|
2402
2400
|
- app/pb_kits/playbook/tokens/_positioning.scss
|
2403
|
-
- app/pb_kits/playbook/tokens/_scale.scss
|
2404
2401
|
- app/pb_kits/playbook/tokens/_screen_sizes.scss
|
2405
2402
|
- app/pb_kits/playbook/tokens/_shadows.scss
|
2406
2403
|
- app/pb_kits/playbook/tokens/_spacing.scss
|
@@ -2412,20 +2409,17 @@ files:
|
|
2412
2409
|
- app/pb_kits/playbook/tokens/exports/_line_height.scss
|
2413
2410
|
- app/pb_kits/playbook/tokens/exports/_opacity.scss
|
2414
2411
|
- app/pb_kits/playbook/tokens/exports/_positioning.scss
|
2415
|
-
- app/pb_kits/playbook/tokens/exports/_scale.scss
|
2416
2412
|
- app/pb_kits/playbook/tokens/exports/_screen_sizes.scss
|
2417
2413
|
- app/pb_kits/playbook/tokens/exports/_shadows.scss
|
2418
2414
|
- app/pb_kits/playbook/tokens/exports/_spacing.scss
|
2419
2415
|
- app/pb_kits/playbook/tokens/exports/_typography.scss
|
2420
2416
|
- app/pb_kits/playbook/tokens/index.scss
|
2421
2417
|
- app/pb_kits/playbook/utilities/_background_colors.scss
|
2422
|
-
- app/pb_kits/playbook/utilities/_border_radius.scss
|
2423
2418
|
- app/pb_kits/playbook/utilities/_colors.scss
|
2424
2419
|
- app/pb_kits/playbook/utilities/_cursor.scss
|
2425
2420
|
- app/pb_kits/playbook/utilities/_display.scss
|
2426
2421
|
- app/pb_kits/playbook/utilities/_flexbox.scss
|
2427
2422
|
- app/pb_kits/playbook/utilities/_focus.scss
|
2428
|
-
- app/pb_kits/playbook/utilities/_hover.scss
|
2429
2423
|
- app/pb_kits/playbook/utilities/_line_height.scss
|
2430
2424
|
- app/pb_kits/playbook/utilities/_max_width.scss
|
2431
2425
|
- app/pb_kits/playbook/utilities/_mixins.scss
|
@@ -1,130 +0,0 @@
|
|
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
|
@@ -1,41 +0,0 @@
|
|
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
|
@@ -1,31 +0,0 @@
|
|
1
|
-
@import "../tokens/exports/border_radius";
|
2
|
-
|
3
|
-
$transition-speed: 0.2s;
|
4
|
-
|
5
|
-
.border_radius {
|
6
|
-
@mixin border-example {
|
7
|
-
transition: background-color $transition-speed ease, height $transition-speed ease;
|
8
|
-
}
|
9
|
-
|
10
|
-
&_rounded {
|
11
|
-
border-radius: $border_radius_rounded;
|
12
|
-
}
|
13
|
-
&_xl {
|
14
|
-
border-radius: $border_radius_xl;
|
15
|
-
}
|
16
|
-
&_lg {
|
17
|
-
border-radius: $border_radius_lg;
|
18
|
-
}
|
19
|
-
&_md {
|
20
|
-
border-radius: $border_radius_md;
|
21
|
-
}
|
22
|
-
&_sm {
|
23
|
-
border-radius: $border_radius_sm;
|
24
|
-
}
|
25
|
-
&_xs {
|
26
|
-
border-radius: $border_radius_xs;
|
27
|
-
}
|
28
|
-
&_none {
|
29
|
-
border-radius: $border_radius_none;
|
30
|
-
}
|
31
|
-
}
|
@@ -1,47 +0,0 @@
|
|
1
|
-
@import "../tokens/exports/scale";
|
2
|
-
|
3
|
-
@mixin hover-color-classes($colors-list) {
|
4
|
-
@each $name, $color in $colors-list {
|
5
|
-
.bg-hover-#{$name}:hover {
|
6
|
-
background-color: $color !important;
|
7
|
-
transition: background-color $transition-speed ease;
|
8
|
-
}
|
9
|
-
}
|
10
|
-
}
|
11
|
-
|
12
|
-
@mixin hover-shadow-classes($shadows-list) {
|
13
|
-
@each $name, $shadow in $shadows-list {
|
14
|
-
.hover_#{$name}:hover {
|
15
|
-
box-shadow: $shadow;
|
16
|
-
transition: box-shadow $transition-speed ease;
|
17
|
-
}
|
18
|
-
}
|
19
|
-
}
|
20
|
-
|
21
|
-
@mixin hover-scale-classes($scales-list) {
|
22
|
-
@each $name, $scale in $scales-list {
|
23
|
-
.hover_#{$name}:hover {
|
24
|
-
transform: $scale;
|
25
|
-
transition: transform $transition-speed ease;
|
26
|
-
}
|
27
|
-
}
|
28
|
-
}
|
29
|
-
|
30
|
-
|
31
|
-
@include hover-scale-classes($scales);
|
32
|
-
@include hover-shadow-classes($box_shadows);
|
33
|
-
@include hover-color-classes($product_colors);
|
34
|
-
@include hover-color-classes($status_colors);
|
35
|
-
@include hover-color-classes($data_colors);
|
36
|
-
@include hover-color-classes($shadow_colors);
|
37
|
-
@include hover-color-classes($colors);
|
38
|
-
@include hover-color-classes($interface_colors);
|
39
|
-
@include hover-color-classes($main_colors);
|
40
|
-
@include hover-color-classes($background_colors);
|
41
|
-
@include hover-color-classes($card_colors);
|
42
|
-
@include hover-color-classes($active_colors);
|
43
|
-
@include hover-color-classes($action_colors);
|
44
|
-
@include hover-color-classes($hover_colors);
|
45
|
-
@include hover-color-classes($border_colors);
|
46
|
-
@include hover-color-classes($text_colors);
|
47
|
-
@include hover-color-classes($category_colors);
|