playbook_ui 11.8.1 → 11.9.0
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_checkbox/_checkbox.scss +10 -0
- data/app/pb_kits/playbook/pb_checkbox/_checkbox.tsx +2 -2
- data/app/pb_kits/playbook/pb_filter/_filter.scss +0 -2
- data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.tsx +1 -0
- data/app/pb_kits/playbook/pb_nav/_vertical_nav.scss +1 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.scss +6 -0
- data/app/pb_kits/playbook/pb_selectable_list/selectable_list_item.rb +1 -1
- data/app/pb_kits/playbook/pb_table/_table.jsx +5 -3
- data/app/pb_kits/playbook/pb_text_input/_text_input.tsx +4 -4
- data/app/pb_kits/playbook/pb_timeline/_timeline.scss +1 -2
- data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_date.html.erb +23 -0
- data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_date.jsx +47 -0
- data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_date.md +1 -0
- data/lib/playbook/version.rb +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7907cac22ab4a319dd70e7433325da9f079abbbf23808f11a98048070e86919
|
4
|
+
data.tar.gz: 8eadc10503563e32ef0502098d32fbda57590a6296ebace53df424b135293fcf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6288cbbe9397dbdf6e68f938453e5cb5211e0b56afd13fac33641c5e366a4a4116695b0da162d5cb3066ebb5a5721914af339490bd37f5150f03a3811c75cd29
|
7
|
+
data.tar.gz: 9c4f76436d01fb6ffad7d3be1473be696360ba68d55b9e06d82861be97d1a5cfbe8e60767989c5689b67e2dce7a35a7c098ccce66c055cd8ff119a581d2a74fd
|
@@ -87,6 +87,11 @@ $transition: $transition_cubic;
|
|
87
87
|
border-color: $error_dark;
|
88
88
|
}
|
89
89
|
}
|
90
|
+
&.pb_checkbox_kit_error {
|
91
|
+
> .pb_checkbox_checkmark {
|
92
|
+
border-color: $error_dark;
|
93
|
+
}
|
94
|
+
}
|
90
95
|
}
|
91
96
|
|
92
97
|
&.error {
|
@@ -94,4 +99,9 @@ $transition: $transition_cubic;
|
|
94
99
|
border-color: $error;
|
95
100
|
}
|
96
101
|
}
|
102
|
+
&.pb_checkbox_kit_error {
|
103
|
+
> .pb_checkbox_checkmark {
|
104
|
+
border-color: $error;
|
105
|
+
}
|
106
|
+
}
|
97
107
|
}
|
@@ -45,7 +45,7 @@ const Checkbox = (props: CheckboxProps): JSX.Element => {
|
|
45
45
|
const ariaProps = buildAriaProps(aria)
|
46
46
|
const classes = classnames(
|
47
47
|
buildCss('pb_checkbox_kit', checked ? 'checked' : null, error ? 'error' : null, indeterminate? 'indeterminate' : null),
|
48
|
-
globalProps(props),
|
48
|
+
globalProps(props),
|
49
49
|
className
|
50
50
|
)
|
51
51
|
|
@@ -59,7 +59,7 @@ const Checkbox = (props: CheckboxProps): JSX.Element => {
|
|
59
59
|
const checkboxChildren = () => {
|
60
60
|
if (children)
|
61
61
|
return (children)
|
62
|
-
else
|
62
|
+
else
|
63
63
|
return (
|
64
64
|
<input
|
65
65
|
defaultChecked={checked}
|
@@ -73,7 +73,6 @@
|
|
73
73
|
}
|
74
74
|
|
75
75
|
.maskContainer::after {
|
76
|
-
background-image: linear-gradient(to right, rgba($card_light,.3) , rgba($card_light,1));
|
77
76
|
content: " ";
|
78
77
|
height: 48px;
|
79
78
|
padding-left: $space_xl;
|
@@ -82,7 +81,6 @@
|
|
82
81
|
}
|
83
82
|
|
84
83
|
.maskContainer::before {
|
85
|
-
background-image: linear-gradient(to right, rgba($card_light,.3) , rgba($card_light,1));
|
86
84
|
content: " ";
|
87
85
|
height: 48px;
|
88
86
|
padding-right: $space_sm;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/* @flow */
|
2
2
|
|
3
|
-
import React, { type Node } from 'react'
|
3
|
+
import React, { useEffect, type Node } from 'react'
|
4
4
|
import classnames from 'classnames'
|
5
5
|
import { buildAriaProps, buildDataProps } from '../utilities/props'
|
6
6
|
import { globalProps } from '../utilities/globalProps'
|
@@ -45,8 +45,10 @@ const Table = (props: TableProps) => {
|
|
45
45
|
const dataProps = buildDataProps(data)
|
46
46
|
const tableCollapseCss = responsive !== 'none' ? `table-collapse-${collapse}` : ''
|
47
47
|
|
48
|
-
|
49
|
-
|
48
|
+
useEffect(() => {
|
49
|
+
const instance = new PbTable()
|
50
|
+
instance.connect()
|
51
|
+
}, [])
|
50
52
|
|
51
53
|
return (
|
52
54
|
<table
|
@@ -65,12 +65,12 @@ const TextInput = (props: TextInputProps, ref: React.LegacyRef<HTMLInputElement>
|
|
65
65
|
const borderCss = `border_${borderToChange}_${borderToggle}`
|
66
66
|
|
67
67
|
const shouldShowAddOn = icon !== null
|
68
|
-
const addOnCss = shouldShowAddOn ? 'text_input_wrapper_add_on' :
|
69
|
-
const addOnDarkModeCardCss = (shouldShowAddOn && dark) ? 'add-on-card-dark' :
|
68
|
+
const addOnCss = shouldShowAddOn ? 'text_input_wrapper_add_on' : ""
|
69
|
+
const addOnDarkModeCardCss = (shouldShowAddOn && dark) ? 'add-on-card-dark' : ""
|
70
70
|
const css = classnames([
|
71
71
|
'pb_text_input_kit',
|
72
|
-
inline ? 'inline' :
|
73
|
-
error ? 'error' :
|
72
|
+
inline ? 'inline' : "",
|
73
|
+
error ? 'error' : "",
|
74
74
|
globalProps(props),
|
75
75
|
className,
|
76
76
|
])
|
@@ -110,9 +110,8 @@ $height_from_top: $icon_height/2 - $connector_width/2;
|
|
110
110
|
&[class*=_solid] {
|
111
111
|
flex-basis: 100%;
|
112
112
|
[class=pb_timeline_item_left_block] {
|
113
|
-
|
113
|
+
display: flex;
|
114
114
|
height: 55px;
|
115
|
-
justify-content: flex-end;
|
116
115
|
[class=pb_date_stacked_kit_center_sm] {
|
117
116
|
[class=pb_date_stacked_day_month] {
|
118
117
|
[class=pb_caption_kit_md] {
|
@@ -42,3 +42,26 @@
|
|
42
42
|
<% end %>
|
43
43
|
<% end %>
|
44
44
|
|
45
|
+
<br /><br /><br />
|
46
|
+
|
47
|
+
<%= pb_rails("timeline", props: {orientation: "vertical", show_date: true}) do %>
|
48
|
+
<%= pb_rails("timeline/item", props: {icon: "user", icon_color: "royal", line_style: "solid", date: Date.new(2018, 03, 20) }) do %>
|
49
|
+
<%= pb_rails("title_detail", props: {
|
50
|
+
title: "Jackson Heights",
|
51
|
+
detail: "37-27 74th Street"
|
52
|
+
}) %>
|
53
|
+
<% end %>
|
54
|
+
<%= pb_rails("timeline/item", props: {icon: "check", icon_color: "teal", line_style: "dotted" }) do %>
|
55
|
+
<%= pb_rails("title_detail", props: {
|
56
|
+
title: "Greenpoint",
|
57
|
+
detail: "81 Gate St Brooklyn"
|
58
|
+
}) %>
|
59
|
+
<% end %>
|
60
|
+
<%= pb_rails("timeline/item", props: {icon: "map-marker-alt", icon_color: "purple", date: Date.new(2018, 05, 20) }) do %>
|
61
|
+
<%= pb_rails("title_detail", props: {
|
62
|
+
title: "Society Hill",
|
63
|
+
detail: "72 E St Astoria"
|
64
|
+
}) %>
|
65
|
+
<% end %>
|
66
|
+
<% end %>
|
67
|
+
|
@@ -94,6 +94,53 @@ const TimelineWithDate = (props) => (
|
|
94
94
|
/>
|
95
95
|
</Timeline.Item>
|
96
96
|
</Timeline>
|
97
|
+
|
98
|
+
<br/>
|
99
|
+
<br/>
|
100
|
+
<br/>
|
101
|
+
|
102
|
+
<Timeline
|
103
|
+
orientation="vertical"
|
104
|
+
showDate
|
105
|
+
{...props}
|
106
|
+
>
|
107
|
+
<Timeline.Item
|
108
|
+
date={new Date('20 Mar 2018')}
|
109
|
+
icon="user"
|
110
|
+
iconColor="royal"
|
111
|
+
{...props}
|
112
|
+
>
|
113
|
+
<TitleDetail
|
114
|
+
detail="37-27 74th Street"
|
115
|
+
title="Jackson Heights"
|
116
|
+
{...props}
|
117
|
+
/>
|
118
|
+
</Timeline.Item>
|
119
|
+
<Timeline.Item
|
120
|
+
icon="check"
|
121
|
+
iconColor="teal"
|
122
|
+
lineStyle="dotted"
|
123
|
+
{...props}
|
124
|
+
>
|
125
|
+
<TitleDetail
|
126
|
+
detail="81 Gate St Brooklyn"
|
127
|
+
title="Greenpoint"
|
128
|
+
{...props}
|
129
|
+
/>
|
130
|
+
</Timeline.Item>
|
131
|
+
<Timeline.Item
|
132
|
+
date={new Date('20 May 2018')}
|
133
|
+
icon="map-marker-alt"
|
134
|
+
iconColor="purple"
|
135
|
+
{...props}
|
136
|
+
>
|
137
|
+
<TitleDetail
|
138
|
+
detail="72 E St Astoria"
|
139
|
+
title="Society Hill"
|
140
|
+
{...props}
|
141
|
+
/>
|
142
|
+
</Timeline.Item>
|
143
|
+
</Timeline>
|
97
144
|
</div>
|
98
145
|
)
|
99
146
|
|
@@ -0,0 +1 @@
|
|
1
|
+
Use the optional `showDate` prop to render the timeline kit with a visible date. If the date is from the current year, the year will not be displayed, however if date is NOT from the current year, the kit will display the year as well.
|
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.
|
4
|
+
version: 11.9.0
|
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: 2022-10-
|
12
|
+
date: 2022-10-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -1949,6 +1949,7 @@ files:
|
|
1949
1949
|
- app/pb_kits/playbook/pb_timeline/docs/_timeline_vertical.jsx
|
1950
1950
|
- app/pb_kits/playbook/pb_timeline/docs/_timeline_with_date.html.erb
|
1951
1951
|
- app/pb_kits/playbook/pb_timeline/docs/_timeline_with_date.jsx
|
1952
|
+
- app/pb_kits/playbook/pb_timeline/docs/_timeline_with_date.md
|
1952
1953
|
- app/pb_kits/playbook/pb_timeline/docs/example.yml
|
1953
1954
|
- app/pb_kits/playbook/pb_timeline/docs/index.js
|
1954
1955
|
- app/pb_kits/playbook/pb_timeline/item.html.erb
|