playbook_ui 12.24.0.pre.alpha.play833boldoptionfortitle2and3719 → 12.24.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: 207c88e3b6102eafd7e925347e2d1b33e21368e8ce96986af6eba6e5f6239f42
4
- data.tar.gz: f0af5f4fb37004503436baa8cfea200c72da7900c60fec3a545a406ec0026d84
3
+ metadata.gz: f27b3e255fc8158201600b6221f2091e84ceb753c83d6d28a045ca256729ec05
4
+ data.tar.gz: d2af8d464afa9225d3a3647dc83c2a241f208849978b39312d49f45b74415937
5
5
  SHA512:
6
- metadata.gz: d5b06d9df01fa4fa6f6e2f6e40ff213f69e1bea05f85f386733b2891c54c4b7208a39ab58dfa1c5fc7d129829e42beb007041db42d84cf13865a0c84d405b265
7
- data.tar.gz: afe698e51e676bd751463a88347b7c4aeca2006f75f64815c3904521c68f1c1b40ae725876da4420db16e2ce7c34f14d9faafb29eb54e9446c69a7d2f71ed1ac
6
+ metadata.gz: '018df9baaa8a9b1bc628873a71a2c1a5dde29e228be173511078a8f934cab375c7992f7bdd1b8e50523d401bd3554fb5f491f2fe98daf811c27e88c5ed6534a4'
7
+ data.tar.gz: 30cf511832a2ce5021ed6658e76f89c5ecacd040538b67e169e41071eb6451969cc8e0fe71a6855e8a413ae1465837fd122ba26baa07a49788031c21e2c00744
@@ -18,7 +18,6 @@
18
18
  &[class*=_3] {
19
19
  @include pb_title_3;
20
20
  @include title_colors;
21
- @include pb_title_bold;
22
21
  }
23
22
 
24
23
  &[class*=_4] {
@@ -21,13 +21,13 @@ const Title = (props: TitleProps): React.ReactElement => {
21
21
  if (props.variant) deprecatedProps('Title', ['variant']) //variant prop is deprecated, use color instead
22
22
  const {
23
23
  aria = {},
24
+ bold = true,
24
25
  children,
25
26
  className,
26
27
  color,
27
28
  data = {},
28
29
  id,
29
30
  size = 3,
30
- bold = size === 3 ? false : true,
31
31
  tag = 'h3',
32
32
  text,
33
33
  variant = null,
@@ -35,7 +35,6 @@ const Title = (props: TitleProps): React.ReactElement => {
35
35
 
36
36
  const ariaProps: {[key: string]: string | number} = buildAriaProps(aria)
37
37
  const dataProps: {[key: string]: string | number} = buildDataProps(data)
38
-
39
38
  const getBold = bold ? '' : 'thin'
40
39
  const classes = classnames(
41
40
  buildCss('pb_title_kit', `size_${size}`, variant, color, getBold),
@@ -17,14 +17,7 @@ module Playbook
17
17
  values: [nil, "link"],
18
18
  default: nil,
19
19
  deprecated: true
20
-
21
- def initialize(props)
22
- props[:bold] = [1, 2, 4].include?(props[:size]) unless props.key?(:bold)
23
- props[:bold] = false if props[:size].nil? && !props.key?(:bold)
24
- super(props)
25
- end
26
-
27
- prop :bold, type: Playbook::Props::Boolean
20
+ prop :bold, type: Playbook::Props::Boolean, default: true
28
21
 
29
22
  def classname
30
23
  generate_classname("pb_title_kit", size, variant, color, is_bold)
@@ -12,7 +12,7 @@ test('returns namespaced class name', () => {
12
12
  )
13
13
 
14
14
  const kit = screen.getByTestId('primary-test')
15
- expect(kit).toHaveClass('pb_title_kit_size_3_thin')
15
+ expect(kit).toHaveClass('pb_title_kit_size_3')
16
16
  })
17
17
 
18
18
  test('with thin font weight', () => {
@@ -38,5 +38,5 @@ test('with colors', () => {
38
38
  )
39
39
 
40
40
  const kit = screen.getByTestId('primary-test')
41
- expect(kit).toHaveClass('pb_title_kit_size_3_success_thin')
41
+ expect(kit).toHaveClass('pb_title_kit_size_3_success')
42
42
  })
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playbook
4
- PREVIOUS_VERSION = "12.24.0"
5
- VERSION = "12.24.0.pre.alpha.play833boldoptionfortitle2and3719"
4
+ PREVIOUS_VERSION = "12.23.0"
5
+ VERSION = "12.24.0"
6
6
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.24.0.pre.alpha.play833boldoptionfortitle2and3719
4
+ version: 12.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
8
8
  - Power Devs
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-05-30 00:00:00.000000000 Z
12
+ date: 2023-05-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -2492,7 +2492,7 @@ homepage: http://playbook.powerapp.cloud
2492
2492
  licenses:
2493
2493
  - ISC
2494
2494
  metadata: {}
2495
- post_install_message:
2495
+ post_install_message:
2496
2496
  rdoc_options: []
2497
2497
  require_paths:
2498
2498
  - lib
@@ -2503,12 +2503,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
2503
2503
  version: '0'
2504
2504
  required_rubygems_version: !ruby/object:Gem::Requirement
2505
2505
  requirements:
2506
- - - ">"
2506
+ - - ">="
2507
2507
  - !ruby/object:Gem::Version
2508
- version: 1.3.1
2508
+ version: '0'
2509
2509
  requirements: []
2510
2510
  rubygems_version: 3.3.7
2511
- signing_key:
2511
+ signing_key:
2512
2512
  specification_version: 4
2513
2513
  summary: Playbook Design System
2514
2514
  test_files: []