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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66327c9e420d8969f62d18ced60491926d275b8c93e7b6629df66d2945115c59
4
- data.tar.gz: 4f4b1c3a71fa5fa5bcf2031b9e62fc5b82f2755d0c18b7449ad085b7746dc3fe
3
+ metadata.gz: c7907cac22ab4a319dd70e7433325da9f079abbbf23808f11a98048070e86919
4
+ data.tar.gz: 8eadc10503563e32ef0502098d32fbda57590a6296ebace53df424b135293fcf
5
5
  SHA512:
6
- metadata.gz: 3bb0ff5bf96097f877f5d981302fa7337136dfdcbd8e1a99fd6579cf9c7621ebb9d38a89ca1d86187b79b52f341e93d98b75cca1fc43d3a7f1b8eafe2ba4acce
7
- data.tar.gz: 27d81a4968950de36f94278a86ccdebf2adf8bb6e15330573ac49719a36d0797f9bfb1622d0d9d1d65091198d541ad328510ed3fd5ef065079f01dc0613205c4
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;
@@ -110,6 +110,7 @@ const HomeAddressStreet = (props: HomeAddressStreetProps) => {
110
110
  <Hashtag
111
111
  classname="home-hashtag"
112
112
  dark={dark}
113
+ marginRight="xxs"
113
114
  newWindow={newWindow}
114
115
  text={homeId}
115
116
  type="home"
@@ -19,7 +19,7 @@ $selector: ".pb_nav_list";
19
19
  }
20
20
 
21
21
  [class*=pb_nav_list_title] {
22
- padding: 0 $space_md $space_sm;
22
+ padding: 0 $space_md $space_sm $space_sm;
23
23
  }
24
24
 
25
25
  // Normal Variant
@@ -95,6 +95,12 @@
95
95
  a {
96
96
  cursor: pointer;
97
97
  }
98
+ ol,
99
+ ul {
100
+ li {
101
+ margin-left: $space_sm;
102
+ }
103
+ }
98
104
  }
99
105
  trix-toolbar {
100
106
  .trix-button--icon {
@@ -17,7 +17,7 @@ module Playbook
17
17
  default: {}
18
18
 
19
19
  def classname
20
- generate_classname("pb_selectable_list_item_kit")
20
+ generate_classname("pb_item_kit")
21
21
  end
22
22
  end
23
23
  end
@@ -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
- const instance = new PbTable()
49
- instance.connect()
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' : null
69
- const addOnDarkModeCardCss = (shouldShowAddOn && dark) ? 'add-on-card-dark' : null
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' : null,
73
- error ? 'error' : null,
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
- @include flex_wrapper(column);
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.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playbook
4
- PREVIOUS_VERSION = "11.8.0"
5
- VERSION = "11.8.1"
4
+ PREVIOUS_VERSION = "11.8.1"
5
+ VERSION = "11.9.0"
6
6
  end
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.8.1
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-13 00:00:00.000000000 Z
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