playbook_ui 13.34.0 → 13.34.1.pre.alpha.play1407statvaluekitinconsistencies3388

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7f2cb628a1802af0ae043163aec1b56821b21a2d91c1c17cc00154f2abc14e7e
4
- data.tar.gz: cbbe7f33a75536e453823c0ca0a4645602165848eddc1d482a1b57c5236780cb
3
+ metadata.gz: 4696ad3a7d577ec515cef7040a725588c021d717703d1ec6252a07a6cd39041b
4
+ data.tar.gz: d8bc4a8a096d9191d640c0754ae6c3233cc64f6feed80851d095ee081ed40c4a
5
5
  SHA512:
6
- metadata.gz: ab5b25504dd6804769c95fad71a87a158bcb6f4832a4847a279b3eec324ff6376fb60a2148d5eb9a1be3ef5fab9fc27e81c676df6b32b76e40c4e74ee6bf1477
7
- data.tar.gz: 7d5c990c0b0302c5844182adccaafd191a9f216d862d28843c4a4976be04483d6e5bb88995d19264a6707319aede8b05c11f2e78c3e7ee9e6b17220b7b300b05
6
+ metadata.gz: 12be78c7413d7aaeb61a4d19fa185efd3b667da549d9d4a2d4413afa4e4f292fba1c93f913b58c786fad8f20ac8aa333c1eccac9fdf2482e4d7f3859f2955194
7
+ data.tar.gz: e1542d50c4532207aa7a91e43ae37049f0cb480f38fab15d8f22e7a17df0e110340849aa921456954e2f4c11917980388782f55c30111b9dc448cdc3c333244b
@@ -8,7 +8,7 @@ $icon_colors: map-merge($merge_kits3, $data_colors);
8
8
 
9
9
  .pb_custom_icon, .pb_icon_kit {
10
10
  @each $color_name, $color_value in $icon_colors {
11
- &[class*="#{$color_name}"] {
11
+ &[class*="color_#{$color_name}"]{
12
12
  color: $color_value;
13
13
  }
14
14
  }
@@ -24,7 +24,8 @@ type IconCircleProps = {
24
24
  | "red"
25
25
  | "yellow"
26
26
  | "orange"
27
- | "green",
27
+ | "green"
28
+ | "lighter",
28
29
  }
29
30
 
30
31
  const IconCircle = (props: IconCircleProps) => {
@@ -10,8 +10,8 @@ module Playbook
10
10
  values: %w[xxs xs sm md base lg xl],
11
11
  default: "md"
12
12
  prop :variant, type: Playbook::Props::Enum,
13
- values: %w[default royal blue orange purple teal red yellow green orange],
14
- default: "default"
13
+ values: %w[default royal blue orange purple teal red yellow green orange lighter],
14
+ default: "lighter"
15
15
 
16
16
  def classname
17
17
  generate_classname("pb_icon_circle_kit", "size_#{size}", variant)
@@ -50,15 +50,4 @@
50
50
  margin-right: $space-sm;
51
51
  }
52
52
  }
53
- [class^=pb_title_kit_1] + [class^=pb_body_kit] {
54
- font-size: 36px;
55
- }
56
-
57
- [class^=pb_title_kit_2] + [class^=pb_body_kit] {
58
- font-size: 24px
59
- }
60
-
61
- [class^=pb_title_kit_3] + [class^=pb_body_kit] {
62
- font-size: 20px;
63
- }
64
53
  }
@@ -32,7 +32,8 @@ type IconStatValueProps = {
32
32
  | "red"
33
33
  | "yellow"
34
34
  | "orange"
35
- | "green",
35
+ | "green"
36
+ | "lighter",
36
37
  }
37
38
 
38
39
  const IconStatValue = (props: IconStatValueProps): React.ReactElement => {
@@ -49,7 +50,7 @@ const IconStatValue = (props: IconStatValueProps): React.ReactElement => {
49
50
  text = '',
50
51
  unit = '',
51
52
  value = 0,
52
- variant = 'default',
53
+ variant = 'lighter',
53
54
  } = props
54
55
  const ariaProps = buildAriaProps(aria)
55
56
  const dataProps = buildDataProps(data)
@@ -47,6 +47,7 @@
47
47
  value: 19.18,
48
48
  variant:"green"
49
49
  }) %>
50
+ <br>
50
51
  <%= pb_rails("icon_stat_value", props: { icon: "globe",
51
52
  text: "Uranus",
52
53
  unit: "AU",
@@ -9,8 +9,8 @@ module Playbook
9
9
  values: %w[sm md lg],
10
10
  default: "sm"
11
11
  prop :variant, type: Playbook::Props::Enum,
12
- values: %w[default royal blue purple teal red yellow green orange],
13
- default: "default"
12
+ values: %w[default royal blue purple teal red yellow green orange lighter],
13
+ default: "lighter"
14
14
 
15
15
  prop :orientation, type: Playbook::Props::Enum,
16
16
  values: %w[vertical horizontal],
@@ -18,7 +18,7 @@ describe("IconStatValue Kit", () => {
18
18
  )
19
19
 
20
20
  const kit = screen.getByTestId(testId)
21
- expect(kit).toHaveClass("pb_icon_stat_value_kit_horizontal_sm_default")
21
+ expect(kit).toHaveClass("pb_icon_stat_value_kit_horizontal_sm_lighter")
22
22
  })
23
23
 
24
24
  test("renders icon", () => {
@@ -101,7 +101,7 @@ describe("IconStatValue Kit", () => {
101
101
  )
102
102
 
103
103
  const kit = screen.getByTestId(testId)
104
- expect(kit).toHaveClass(`pb_icon_stat_value_kit_horizontal_${sizeProp}_default`)
104
+ expect(kit).toHaveClass(`pb_icon_stat_value_kit_horizontal_${sizeProp}_lighter`)
105
105
 
106
106
  cleanup()
107
107
  })
@@ -115,7 +115,8 @@ describe("IconStatValue Kit", () => {
115
115
  "teal",
116
116
  "red",
117
117
  "yellow",
118
- "green"].forEach(
118
+ "green",
119
+ "lighter"].forEach(
119
120
  (colorProp) => {
120
121
  render(
121
122
  <IconStatValue
@@ -148,7 +149,7 @@ describe("IconStatValue Kit", () => {
148
149
  )
149
150
 
150
151
  const kit = screen.getByTestId(testId)
151
- expect(kit).toHaveClass("pb_icon_stat_value_kit_vertical_sm_default")
152
+ expect(kit).toHaveClass("pb_icon_stat_value_kit_vertical_sm_lighter")
152
153
  })
153
154
 
154
155
  })
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playbook
4
- PREVIOUS_VERSION = "13.33.1"
5
- VERSION = "13.34.0"
4
+ PREVIOUS_VERSION = "13.34.1"
5
+ VERSION = "13.34.1.pre.alpha.play1407statvaluekitinconsistencies3388"
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: 13.34.0
4
+ version: 13.34.1.pre.alpha.play1407statvaluekitinconsistencies3388
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: 2024-07-26 00:00:00.000000000 Z
12
+ date: 2024-08-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -3069,7 +3069,7 @@ homepage: https://playbook.powerapp.cloud/
3069
3069
  licenses:
3070
3070
  - ISC
3071
3071
  metadata: {}
3072
- post_install_message:
3072
+ post_install_message:
3073
3073
  rdoc_options: []
3074
3074
  require_paths:
3075
3075
  - lib
@@ -3085,7 +3085,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
3085
3085
  version: '0'
3086
3086
  requirements: []
3087
3087
  rubygems_version: 3.5.3
3088
- signing_key:
3088
+ signing_key:
3089
3089
  specification_version: 4
3090
3090
  summary: Playbook Design System
3091
3091
  test_files: []