playbook_ui 14.23.0.pre.alpha.PLAY2146dropdownactivestylesreact9141 → 14.23.0.pre.alpha.PLAY2148selectclassnamessinglespacesfix9144

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.
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "14.23.0"
5
- VERSION = "14.23.0.pre.alpha.PLAY2146dropdownactivestylesreact9141"
5
+ VERSION = "14.23.0.pre.alpha.PLAY2148selectclassnamessinglespacesfix9144"
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: 14.23.0.pre.alpha.PLAY2146dropdownactivestylesreact9141
4
+ version: 14.23.0.pre.alpha.PLAY2148selectclassnamessinglespacesfix9144
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: 2025-07-21 00:00:00.000000000 Z
12
+ date: 2025-07-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -1352,7 +1352,6 @@ files:
1352
1352
  - app/pb_kits/playbook/pb_drawer/index.js
1353
1353
  - app/pb_kits/playbook/pb_dropdown/_dropdown.scss
1354
1354
  - app/pb_kits/playbook/pb_dropdown/_dropdown.tsx
1355
- - app/pb_kits/playbook/pb_dropdown/_dropdown_mixin.scss
1356
1355
  - app/pb_kits/playbook/pb_dropdown/context/index.tsx
1357
1356
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_blank_selection.html.erb
1358
1357
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_blank_selection.jsx
@@ -1396,8 +1395,6 @@ files:
1396
1395
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_with_subcomponents.html.erb
1397
1396
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_with_subcomponents.jsx
1398
1397
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_with_subcomponents.md
1399
- - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_active_style_options.jsx
1400
- - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_active_style_options_react.md
1401
1398
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display.jsx
1402
1399
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display.md
1403
1400
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display_rails.html.erb
@@ -3636,7 +3633,7 @@ files:
3636
3633
  - app/pb_kits/playbook/utilities/validEmojiChecker.ts
3637
3634
  - dist/chunks/_line_graph-BfCo79KE.js
3638
3635
  - dist/chunks/_typeahead-Db4YQA5c.js
3639
- - dist/chunks/_weekday_stacked-DVbweLBJ.js
3636
+ - dist/chunks/_weekday_stacked-DfH_cGOX.js
3640
3637
  - dist/chunks/lazysizes-B7xYodB-.js
3641
3638
  - dist/chunks/lib-DnQyMxO1.js
3642
3639
  - dist/chunks/pb_form_validation-kl-4Jv4t.js
@@ -1,36 +0,0 @@
1
- @import "../tokens/colors";
2
-
3
- // activeStyle fontColor sass map to go through text colors + set of custom colors
4
- $custom-font-colors: (
5
- primary: $primary
6
- );
7
-
8
- $merged-font-colors: map-merge($text_colors, $custom-font-colors);
9
-
10
- $font-colors: ();
11
-
12
- @each $key, $val in $merged-font-colors {
13
- $font-colors: map-merge($font-colors, ($key: $val));
14
- }
15
-
16
- @mixin apply-font-color($color) {
17
- color: $color;
18
-
19
- [class^="pb_body"],
20
- [class^="pb_title_kit"],
21
- a {
22
- color: $color !important;
23
- }
24
- }
25
-
26
- // activeStyle backgroundColor map (set of custom colors)
27
- $custom-background-colors: (
28
- "bg_light": $bg_light,
29
- "white": $white,
30
- );
31
-
32
- $background-colors: ();
33
-
34
- @each $key, $val in $custom-background-colors {
35
- $background-colors: map-merge($background-colors, ($key: $val));
36
- }
@@ -1,90 +0,0 @@
1
- import React from 'react'
2
- import Dropdown from '../_dropdown'
3
-
4
- const DropdownCustomActiveStyleOptions = (props) => {
5
-
6
-
7
- const options = [
8
- {
9
- label: "United States",
10
- value: "unitedStates",
11
- id: "us"
12
- },
13
- {
14
- label: "Canada",
15
- value: "canada",
16
- id: "ca"
17
- },
18
- {
19
- label: "Pakistan",
20
- value: "pakistan",
21
- id: "pk"
22
- }
23
- ];
24
-
25
-
26
- return (
27
- <div>
28
- <Dropdown
29
- activeStyle={{
30
- backgroundColor: "bg_light",
31
- fontColor: "primary",
32
- }}
33
- label="Background Color: bg_light; Font Color: primary"
34
- marginBottom="sm"
35
- options={options}
36
- {...props}
37
- >
38
- <Dropdown.Trigger/>
39
- <Dropdown.Container>
40
- {options.map((option) => (
41
- <Dropdown.Option key={option.id}
42
- option={option}
43
- />
44
- ))}
45
- </Dropdown.Container>
46
- </Dropdown>
47
- <Dropdown
48
- activeStyle={{
49
- backgroundColor: "white",
50
- fontColor: "primary",
51
- }}
52
- label="Background Color: white; Font Color: primary"
53
- marginBottom="sm"
54
- options={options}
55
- {...props}
56
- />
57
- <Dropdown
58
- activeStyle={{
59
- backgroundColor: "bg_light",
60
- fontColor: "text_lt_default",
61
- }}
62
- autocomplete
63
- label="Background Color: bg_light; Font Color: text_lt_default"
64
- marginBottom="sm"
65
- options={options}
66
- {...props}
67
- />
68
- <Dropdown
69
- activeStyle={{
70
- fontColor: "text_lt_lighter",
71
- }}
72
- label="Font Color: text_lt_lighter"
73
- marginBottom="sm"
74
- options={options}
75
- {...props}
76
- >
77
- <Dropdown.Trigger/>
78
- <Dropdown.Container>
79
- {options.map((option) => (
80
- <Dropdown.Option key={option.id}
81
- option={option}
82
- />
83
- ))}
84
- </Dropdown.Container>
85
- </Dropdown>
86
- </div>
87
- )
88
- }
89
-
90
- export default DropdownCustomActiveStyleOptions
@@ -1,4 +0,0 @@
1
- The `activeStyle` prop can be used to customize the appearance of the dropdown selection indicator. It accepts an object with the following keys: `backgroundColor` sets the background color of the selected item (and its hover state); `fontColor` sets the font color of the selected item.
2
-
3
- `backgroundColor` **Type**: String | **Values**: bg_light | white | **Default**: (no selection) is primary
4
- `fontColor` **Type**: String | **Values**: primary | all [Playbook Text Colors](https://playbook.powerapp.cloud/visual_guidelines/colors) | **Default**: (no selection) is white