playbook_ui 15.2.0.pre.alpha.toastfixes11417 → 15.2.0.pre.rc.0

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.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/Hooks/useTableState.ts +0 -7
  3. data/app/pb_kits/playbook/pb_button/_button.scss +0 -6
  4. data/app/pb_kits/playbook/pb_button/docs/_button_loading.html.erb +3 -7
  5. data/app/pb_kits/playbook/pb_button/docs/_button_loading.jsx +0 -29
  6. data/app/pb_kits/playbook/pb_date_picker/_date_picker.scss +0 -4
  7. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_stacked_alert.html.erb +16 -16
  8. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_stacked_alert.jsx +1 -2
  9. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_status.html.erb +31 -31
  10. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_status.jsx +3 -4
  11. data/app/pb_kits/playbook/pb_draggable/_draggable.scss +0 -8
  12. data/app/pb_kits/playbook/pb_dropdown/_dropdown.scss +29 -105
  13. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss +1 -0
  14. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.tsx +3 -5
  15. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_description.md +0 -2
  16. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/fixed_confirmation_toast.rb +1 -4
  17. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/fixed_confirmation_toast.test.js +0 -10
  18. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +1 -12
  19. data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.tsx +2 -2
  20. data/app/pb_kits/playbook/pb_icon_stat_value/_icon_stat_value.scss +21 -15
  21. data/app/pb_kits/playbook/pb_icon_stat_value/_icon_stat_value.tsx +5 -6
  22. data/app/pb_kits/playbook/pb_icon_stat_value/icon_stat_value.html.erb +0 -2
  23. data/app/pb_kits/playbook/pb_icon_stat_value/icon_stat_value.rb +3 -11
  24. data/app/pb_kits/playbook/pb_icon_stat_value/icon_stat_value.test.js +8 -9
  25. data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.scss +9 -36
  26. data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.tsx +22 -105
  27. data/app/pb_kits/playbook/pb_text_input/_text_input.scss +0 -3
  28. data/app/pb_kits/playbook/pb_text_input/_text_input.tsx +6 -14
  29. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_default.html.erb +4 -8
  30. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_default.jsx +0 -5
  31. data/app/pb_kits/playbook/pb_text_input/text_input.html.erb +1 -3
  32. data/app/pb_kits/playbook/pb_text_input/text_input.rb +0 -6
  33. data/app/pb_kits/playbook/pb_timeline/_timeline.scss +233 -250
  34. data/app/pb_kits/playbook/pb_timeline/_timeline.tsx +1 -1
  35. data/app/pb_kits/playbook/pb_timeline/timeline.test.js +2 -2
  36. data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +10 -10
  37. data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +1 -39
  38. data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +0 -2
  39. data/app/pb_kits/playbook/tokens/_positioning.scss +0 -1
  40. data/app/pb_kits/playbook/utilities/_hover.scss +2 -2
  41. data/app/pb_kits/playbook/utilities/_positioning.scss +1 -6
  42. data/app/pb_kits/playbook/utilities/globalProps.ts +3 -5
  43. data/dist/chunks/{_line_graph-BmLd7KGj.js → _line_graph-C9stNsP3.js} +1 -1
  44. data/dist/chunks/_typeahead-D3MtsWXG.js +6 -0
  45. data/dist/chunks/{_weekday_stacked-5TWRvQol.js → _weekday_stacked-Bvc7R5vH.js} +3 -3
  46. data/dist/chunks/vendor.js +1 -1
  47. data/dist/playbook-doc.js +2 -2
  48. data/dist/playbook-rails-react-bindings.js +1 -1
  49. data/dist/playbook-rails.js +1 -1
  50. data/dist/playbook.css +1 -1
  51. data/lib/playbook/hover.rb +1 -5
  52. data/lib/playbook/pb_forms_helper.rb +6 -7
  53. data/lib/playbook/version.rb +2 -2
  54. data/lib/playbook/z_index.rb +1 -1
  55. metadata +5 -6
  56. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_default.md +0 -1
  57. data/dist/chunks/_typeahead-BhGFKFka.js +0 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a0337b2677bd5411161752e4c3769bf2469a4ff1cc2a56368639e8785bfe761e
4
- data.tar.gz: 43b7e73766b95756079ca66703e3e19e314a1eadd4b48cb26c55cd5d17952630
3
+ metadata.gz: 13bfcc5673dfc00619bf8b3fb557c22f4c4609140237fc800757ed584a710a56
4
+ data.tar.gz: dc055c2848c96f663adddd3e1a3452e63431cf8d26505ca57d17886bcebf2a86
5
5
  SHA512:
6
- metadata.gz: 8d466e97f01e7202031caeb3d2b8546eb5fab2fa203aa685f20b59a30a33780144b76170ce45e83bc916f4b91f614ea8d3fe92c87d8ba3dc49433a5220ad607d
7
- data.tar.gz: aa36b922bcb388af5da9c9ae4dd4ae2d210f09cba2b5d4aa7ab5e97b7a63a2e7f55d26db46a7f5ac70490826e4248940bb3274dafa019f0c38fae2d16666ca62
6
+ metadata.gz: b51dd269610cb015f62bbdf1199adece46fa8591f488efe8edd2e6b18fdee4b4ac7b3653f136a435ef89d9f848fde895e9d3fb6ac2f3fc5d99ee5d04ceffaccf
7
+ data.tar.gz: 5d53c3805872480202c03694deea22babe4395cf31b946f26c1ef30c4737b682fa8c9ecae15282caee6c95b7f4ba4c33afaa6b91039290e9188465811233867e
@@ -203,13 +203,6 @@ export function useTableState({
203
203
  onRowPinningChange({ top: allPinned });
204
204
  }, [table, pinnedRows?.value?.top?.join(',')]);
205
205
 
206
- // Set pagination state when pagination is enabled
207
- useEffect(() => {
208
- if (pagination && paginationProps?.pageSize) {
209
- table.setPageSize(paginationProps.pageSize);
210
- }
211
- }, [pagination, paginationProps?.pageSize, table]);
212
-
213
206
  // Check if table has any sub-rows
214
207
  const hasAnySubRows = table.getRowModel().rows.some(row => row.subRows && row.subRows.length > 0);
215
208
  const selectedRowsLength = Object.keys(table.getState().rowSelection).length;
@@ -81,12 +81,6 @@ $pb_button_sizes: (
81
81
  // Loading state
82
82
  &.pb_button_loading {
83
83
  @include pb_button_loading(true);
84
- &.pb_button_size_sm {
85
- min-height: 30px;
86
- }
87
- &.pb_button_size_lg {
88
- min-height: 45px;
89
- }
90
84
  }
91
85
 
92
86
  // Disabled state
@@ -1,7 +1,3 @@
1
- <%= pb_rails("caption", props: { margin_y: "md", text: "Button variants with loading" }) %>
2
- <%= pb_rails("button", props: { aria: { label: "Loading" }, loading: true, margin_right: "lg" }) %>
3
- <%= pb_rails("button", props: { aria: { label: "Loading" }, variant: "secondary", loading: true, margin_right: "lg" }) %>
4
- <%= pb_rails("button", props: { aria: { label: "Loading" }, variant: "link", loading: true, margin_right: "lg" }) %>
5
- <%= pb_rails("caption", props: { margin_y: "md", text: "Button sizes with loading" }) %>
6
- <%= pb_rails("button", props: { aria: { label: "Loading" }, loading: true, size: "sm", margin_right: "lg" }) %>
7
- <%= pb_rails("button", props: { aria: { label: "Loading" }, loading: true, size: "lg", margin_right: "lg" }) %>
1
+ <%= pb_rails("button", props: { aria: { label: "Loading" }, text: "Button Primary", loading: true, margin_right: "lg" }) %>
2
+ <%= pb_rails("button", props: { aria: { label: "Loading" }, text: "Button Primary", variant: "secondary", loading: true, margin_right: "lg" }) %>
3
+ <%= pb_rails("button", props: { aria: { label: "Loading" }, text: "Button Primary", variant: "link", loading: true, margin_right: "lg" }) %>
@@ -1,13 +1,8 @@
1
1
  import React from 'react'
2
2
  import Button from "../../pb_button/_button"
3
- import Caption from "../../pb_caption/_caption"
4
3
 
5
4
  const ButtonLoading = (props) => (
6
5
  <div>
7
- <Caption
8
- marginY="md"
9
- text="Button variants with loading"
10
- />
11
6
  <Button
12
7
  aria={{ label: 'Loading' }}
13
8
  loading
@@ -36,30 +31,6 @@ const ButtonLoading = (props) => (
36
31
  variant="link"
37
32
  {...props}
38
33
  />
39
- <br/>
40
- <Caption
41
- marginY="md"
42
- text="Button sizes with loading"
43
- />
44
- <Button
45
- aria={{ label: 'Loading' }}
46
- loading
47
- marginRight='lg'
48
- size="sm"
49
- tabIndex={0}
50
- text="Small Button"
51
- {...props}
52
- />
53
- {' '}
54
- <Button
55
- aria={{ label: 'Loading' }}
56
- loading
57
- marginRight='lg'
58
- size="lg"
59
- tabIndex={0}
60
- text="Small Button"
61
- {...props}
62
- />
63
34
  </div>
64
35
  )
65
36
 
@@ -19,10 +19,6 @@
19
19
  @import "./sass_partials/calendar_input_icon";
20
20
  }
21
21
 
22
- label {
23
- display: block !important;
24
- }
25
-
26
22
  &:focus,
27
23
  :focus-within {
28
24
  div.cal_icon_wrapper,
@@ -3,12 +3,12 @@
3
3
  <%= pb_rails("button", props: { text: "Delete Status", data: {"open-dialog": "dialog-stacked-delete"}, margin_right: "md" }) %>
4
4
 
5
5
 
6
- <%= pb_rails("dialog", props: {
7
- id:"dialog-stacked-default",
6
+ <%= pb_rails("dialog", props: {
7
+ id:"dialog-stacked-default",
8
8
  status: "default",
9
- size: "sm",
10
- title: "Are you sure?",
11
- text: "Text explaining why there is an alert",
9
+ size: "sm",
10
+ title: "Are you sure?",
11
+ text: "Text explaining why there is an alert",
12
12
  }) do %>
13
13
  <%= pb_rails("dialog/dialog_footer") do %>
14
14
  <%= pb_rails("flex", props: { orientation: "column", padding_x:"md", padding: "sm" }) do %>
@@ -18,12 +18,12 @@
18
18
  <% end %>
19
19
  <% end %>
20
20
 
21
- <%= pb_rails("dialog", props: {
22
- id:"dialog-stacked-caution",
21
+ <%= pb_rails("dialog", props: {
22
+ id:"dialog-stacked-caution",
23
23
  status: "caution",
24
- size: "sm",
25
- title: "Are you sure?",
26
- text: "This is the action you will be taking",
24
+ size: "sm",
25
+ title: "Are you sure?",
26
+ text: "This is the action you will be taking",
27
27
  }) do %>
28
28
  <%= pb_rails("dialog/dialog_footer") do %>
29
29
  <%= pb_rails("flex", props: { orientation: "column", padding_x:"md", padding: "sm" }) do %>
@@ -33,16 +33,16 @@
33
33
  <% end %>
34
34
  <% end %>
35
35
 
36
- <%= pb_rails("dialog", props: {
37
- id:"dialog-stacked-delete",
36
+ <%= pb_rails("dialog", props: {
37
+ id:"dialog-stacked-delete",
38
38
  status: "delete",
39
- size: "sm",
40
- title: "Delete",
41
- text: "You are about to delete ...",
39
+ size: "sm",
40
+ title: "Delete",
41
+ text: "You are about to delete ...",
42
42
  }) do %>
43
43
  <%= pb_rails("dialog/dialog_footer") do %>
44
44
  <%= pb_rails("flex", props: { orientation: "column", padding_x:"md", padding: "sm" }) do %>
45
- <%= pb_rails("button", props: { text: "Yes, Action", variant: "danger", full_width: true }) %>
45
+ <%= pb_rails("button", props: { text: "Yes, Action", full_width: true }) %>
46
46
  <%= pb_rails("button", props: { text: "No, Cancel", variant: "secondary", full_width: true, margin_top: "sm", data: {"close-dialog": "dialog-stacked-delete" } }) %>
47
47
  <% end %>
48
48
  <% end %>
@@ -51,7 +51,7 @@ const DialogStackedAlert = () => {
51
51
  return (
52
52
  <div>
53
53
  <Flex
54
- rowGap="xs"
54
+ rowGap="xs"
55
55
  wrap
56
56
  >
57
57
  <Button
@@ -93,7 +93,6 @@ const DialogStackedAlert = () => {
93
93
  <Button
94
94
  fullWidth
95
95
  onClick={dialog.toggle}
96
- variant= {dialog.status == "delete" ? "danger" : "primary"}
97
96
  >
98
97
  {dialog.buttonOneText}
99
98
  </Button>
@@ -8,12 +8,12 @@
8
8
  <%= pb_rails("button", props: { text: "Success Status", data: {"open-dialog": "dialog-status-success"}, margin_right: "md" }) %>
9
9
  <% end %>
10
10
 
11
- <%= pb_rails("dialog", props: {
12
- id:"dialog-status-default",
11
+ <%= pb_rails("dialog", props: {
12
+ id:"dialog-status-default",
13
13
  status: "default",
14
- size: "status_size",
15
- title: "Are you sure?",
16
- text: "Text explaining why there is an alert",
14
+ size: "status_size",
15
+ title: "Are you sure?",
16
+ text: "Text explaining why there is an alert",
17
17
  }) do %>
18
18
  <%= pb_rails("dialog/dialog_footer") do %>
19
19
  <%= pb_rails("flex", props: { spacing:"between", padding_x:"md", padding_bottom:"md", padding: "sm" }) do %>
@@ -23,12 +23,12 @@
23
23
  <% end %>
24
24
  <% end %>
25
25
 
26
- <%= pb_rails("dialog", props: {
27
- id:"dialog-status-info",
26
+ <%= pb_rails("dialog", props: {
27
+ id:"dialog-status-info",
28
28
  status: "info",
29
- size: "status_size",
30
- title: "Information",
31
- text: "Text explaining why there is an alert",
29
+ size: "status_size",
30
+ title: "Information",
31
+ text: "Text explaining why there is an alert",
32
32
  }) do %>
33
33
  <%= pb_rails("dialog/dialog_footer") do %>
34
34
  <%= pb_rails("flex", props: { spacing:"between", padding_x:"md", padding_bottom:"md", padding: "sm" }) do %>
@@ -37,12 +37,12 @@
37
37
  <% end %>
38
38
  <% end %>
39
39
 
40
- <%= pb_rails("dialog", props: {
41
- id:"dialog-status-caution",
40
+ <%= pb_rails("dialog", props: {
41
+ id:"dialog-status-caution",
42
42
  status: "caution",
43
- size: "status_size",
44
- title: "Are you Sure?",
45
- text: "This is the action you will be taking",
43
+ size: "status_size",
44
+ title: "Are you Sure?",
45
+ text: "This is the action you will be taking",
46
46
  }) do %>
47
47
  <%= pb_rails("dialog/dialog_footer") do %>
48
48
  <%= pb_rails("flex", props: { spacing:"between", padding_x:"md", padding_bottom:"md", padding: "sm" }) do %>
@@ -52,27 +52,27 @@
52
52
  <% end %>
53
53
  <% end %>
54
54
 
55
- <%= pb_rails("dialog", props: {
56
- id:"dialog-status-delete",
55
+ <%= pb_rails("dialog", props: {
56
+ id:"dialog-status-delete",
57
57
  status: "delete",
58
- size: "status_size",
59
- title: "Delete",
60
- text: "You are about to delete ...",
58
+ size: "status_size",
59
+ title: "Delete",
60
+ text: "You are about to delete ...",
61
61
  }) do %>
62
62
  <%= pb_rails("dialog/dialog_footer") do %>
63
63
  <%= pb_rails("flex", props: { spacing:"between", padding_x:"md", padding_bottom:"md", padding: "sm" }) do %>
64
- <%= pb_rails("button", props: { text: "Yes, Delete", variant: "danger" }) %>
64
+ <%= pb_rails("button", props: { text: "Yes, Delete" }) %>
65
65
  <%= pb_rails("button", props: { text: "No, Cancel", variant: "secondary", data: {"close-dialog": "dialog-status-delete" } }) %>
66
66
  <% end %>
67
67
  <% end %>
68
68
  <% end %>
69
69
 
70
- <%= pb_rails("dialog", props: {
71
- id:"dialog-status-error",
70
+ <%= pb_rails("dialog", props: {
71
+ id:"dialog-status-error",
72
72
  status: "error",
73
- size: "status_size",
74
- title: "Error Message",
75
- text: "Text explaining the error",
73
+ size: "status_size",
74
+ title: "Error Message",
75
+ text: "Text explaining the error",
76
76
  }) do %>
77
77
  <%= pb_rails("dialog/dialog_footer") do %>
78
78
  <%= pb_rails("flex", props: { spacing:"between", padding_x:"md", padding_bottom:"md", padding: "sm" }) do %>
@@ -81,12 +81,12 @@
81
81
  <% end %>
82
82
  <% end %>
83
83
 
84
- <%= pb_rails("dialog", props: {
85
- id:"dialog-status-success",
84
+ <%= pb_rails("dialog", props: {
85
+ id:"dialog-status-success",
86
86
  status: "success",
87
- size: "status_size",
88
- title: "Success!",
89
- text: "Text explaining what is successful",
87
+ size: "status_size",
88
+ title: "Success!",
89
+ text: "Text explaining what is successful",
90
90
  }) do %>
91
91
  <%= pb_rails("dialog/dialog_footer") do %>
92
92
  <%= pb_rails("flex", props: { spacing:"between", padding_x:"md", padding_bottom:"md", padding: "sm" }) do %>
@@ -83,8 +83,8 @@ const DialogStatus = () => {
83
83
 
84
84
  return (
85
85
  <div>
86
- <Flex
87
- rowGap="xs"
86
+ <Flex
87
+ rowGap="xs"
88
88
  wrap
89
89
  >
90
90
  <Button
@@ -117,7 +117,7 @@ const DialogStatus = () => {
117
117
  >
118
118
  {"Success Status"}
119
119
  </Button>
120
- <Button
120
+ <Button
121
121
  marginRight="md"
122
122
  onClick={toggleErrorAlert}
123
123
  >
@@ -152,7 +152,6 @@ const DialogStatus = () => {
152
152
  <Button
153
153
  onClick={dialog.toggle}
154
154
  paddingRight="xl"
155
- variant={dialog.status == "delete" ? "danger" : "primary"}
156
155
  >
157
156
  {dialog.buttonOneText}
158
157
  </Button>
@@ -141,12 +141,4 @@
141
141
  }
142
142
  }
143
143
  }
144
-
145
- .pb_draggable_item:has(.pb_item_kit) {
146
- border-bottom: 1px solid $border_light;
147
- }
148
-
149
- .pb_draggable_item:has(.pb_item_kit):last-child {
150
- border-bottom: none;
151
- }
152
144
  }
@@ -10,15 +10,9 @@
10
10
  @import "./scss_partials/dropdown_animation";
11
11
  @import "dropdown_mixin";
12
12
 
13
- .pb_dropdown_default,
14
- .pb_dropdown_subtle,
15
- .pb_dropdown_default_separators_hidden,
16
- .pb_dropdown_subtle_separators_hidden {
13
+ [class*="pb_dropdown"] {
17
14
  .dropdown_wrapper {
18
- .dropdown_trigger_wrapper,
19
- .dropdown_trigger_wrapper_focus,
20
- .dropdown_trigger_wrapper_focus_select_only,
21
- .dropdown_trigger_wrapper_select_only {
15
+ [class*="dropdown_trigger_wrapper"] {
22
16
  @include pb_body;
23
17
  border: 1px solid $border_light;
24
18
  background-color: $white;
@@ -54,11 +48,11 @@
54
48
  transition: box-shadow 0.15s ease-in-out;
55
49
  }
56
50
 
57
- &.dropdown_trigger_wrapper_select_only {
51
+ &[class*="_select_only"] {
58
52
  box-shadow: inset 0 -11px 20px rgba($primary, 0.05);
59
53
  }
60
54
 
61
- &.dropdown_trigger_wrapper_focus {
55
+ &[class*="_focus"] {
62
56
  box-shadow: 0px 0px 0 1px $primary !important;
63
57
  transition: box-shadow 0.1s ease-in-out;
64
58
  }
@@ -75,12 +69,7 @@
75
69
  z-index: $z_1;
76
70
  width: 100%;
77
71
 
78
- .pb_dropdown_option,
79
- .pb_dropdown_option_list,
80
- .pb_dropdown_option_selected,
81
- .pb_dropdown_option_focused,
82
- .pb_dropdown_option_list_focused,
83
- .pb_dropdown_option_selected_focused {
72
+ [class*="pb_dropdown_option"] {
84
73
  padding-left: $space_sm;
85
74
  padding-right: $space_sm;
86
75
  padding-top: $space_xs;
@@ -90,14 +79,11 @@
90
79
  background-color: $bg_light;
91
80
  }
92
81
 
93
- &.pb_dropdown_option_focused,
94
- &.pb_dropdown_option_list_focused,
95
- &.pb_dropdown_option_selected_focused {
82
+ &[class*="_focused"] {
96
83
  background-color: $bg_light;
97
84
  }
98
85
 
99
- &.pb_dropdown_option_list,
100
- &.pb_dropdown_option_list_focused {
86
+ &[class*="_list"] {
101
87
  border-bottom: 1px solid $border_light;
102
88
 
103
89
  &:hover, &:focus {
@@ -106,8 +92,7 @@
106
92
  }
107
93
  }
108
94
  }
109
- &.pb_dropdown_option_selected,
110
- &.pb_dropdown_option_selected_focused {
95
+ &[class*="selected"] {
111
96
  background-color: $primary;
112
97
  color: $white;
113
98
  [class^="pb_body"],
@@ -156,66 +141,41 @@
156
141
  }
157
142
 
158
143
  &.error {
159
- .pb_body_kit_negative {
144
+ [class*=pb_body_kit] {
160
145
  margin-top: $space_xs / 2;
161
146
  }
162
147
 
163
- .dropdown_trigger_wrapper,
164
- .dropdown_trigger_wrapper_focus,
165
- .dropdown_trigger_wrapper_focus_select_only,
166
- .dropdown_trigger_wrapper_select_only {
148
+ [class*="dropdown_trigger_wrapper"] {
167
149
  border-color: $error;
168
150
  box-shadow: none !important;
169
151
  }
170
152
  }
171
153
  }
172
154
 
173
- &.pb_dropdown_default_separators_hidden,
174
- &.pb_dropdown_subtle_separators_hidden {
155
+ &[class*="separators_hidden"] {
175
156
  .dropdown_wrapper {
176
157
  .pb_dropdown_container {
177
158
 
178
- .pb_dropdown_option,
179
- .pb_dropdown_option_list,
180
- .pb_dropdown_option_selected,
181
- .pb_dropdown_option_focused,
182
- .pb_dropdown_option_list_focused,
183
- .pb_dropdown_option_selected_focused {
159
+ [class*="pb_dropdown_option"] {
184
160
  border: none;
185
161
  }
186
162
  }
187
163
  }
188
164
  }
189
165
 
190
- &.pb_dropdown_subtle,
191
- &.pb_dropdown_subtle_separators_hidden {
166
+ &[class*="subtle"] {
192
167
  .dropdown_wrapper {
193
168
  .pb_dropdown_container {
194
169
 
195
- .pb_dropdown_option:first-child,
196
- .pb_dropdown_option_list:first-child,
197
- .pb_dropdown_option_selected:first-child,
198
- .pb_dropdown_option_focused:first-child,
199
- .pb_dropdown_option_list_focused:first-child,
200
- .pb_dropdown_option_selected_focused:first-child {
170
+ [class*="pb_dropdown_option"]:first-child {
201
171
  margin-top: $space_xs;
202
172
  }
203
173
 
204
- .pb_dropdown_option:last-child,
205
- .pb_dropdown_option_list:last-child,
206
- .pb_dropdown_option_selected:last-child,
207
- .pb_dropdown_option_focused:last-child,
208
- .pb_dropdown_option_list_focused:last-child,
209
- .pb_dropdown_option_selected_focused:last-child {
174
+ [class*="pb_dropdown_option"]:last-child {
210
175
  margin-bottom: $space_xs;
211
176
  }
212
177
 
213
- .pb_dropdown_option,
214
- .pb_dropdown_option_list,
215
- .pb_dropdown_option_selected,
216
- .pb_dropdown_option_focused,
217
- .pb_dropdown_option_list_focused,
218
- .pb_dropdown_option_selected_focused {
178
+ [class*="pb_dropdown_option"] {
219
179
  margin: $space_xs;
220
180
  padding: $space_xs;
221
181
  border-radius: $border_radius_md;
@@ -233,44 +193,24 @@
233
193
  }
234
194
  }
235
195
 
236
- .pb_dropdown_option:last-child::after,
237
- .pb_dropdown_option_list:last-child::after,
238
- .pb_dropdown_option_selected:last-child::after,
239
- .pb_dropdown_option_focused:last-child::after,
240
- .pb_dropdown_option_list_focused:last-child::after,
241
- .pb_dropdown_option_selected_focused:last-child::after {
196
+ [class*="pb_dropdown_option"]:last-child::after {
242
197
  display: none;
243
198
  }
244
199
  }
245
200
  }
246
201
 
247
- &.pb_dropdown_subtle_separators_hidden {
202
+ &[class*="separators_hidden"] {
248
203
  .dropdown_wrapper {
249
204
  .pb_dropdown_container {
250
- .pb_dropdown_option:first-child,
251
- .pb_dropdown_option_list:first-child,
252
- .pb_dropdown_option_selected:first-child,
253
- .pb_dropdown_option_focused:first-child,
254
- .pb_dropdown_option_list_focused:first-child,
255
- .pb_dropdown_option_selected_focused:first-child {
205
+ [class*="pb_dropdown_option"]:first-child {
256
206
  margin-top: $space_xs;
257
207
  }
258
208
 
259
- .pb_dropdown_option:last-child,
260
- .pb_dropdown_option_list:last-child,
261
- .pb_dropdown_option_selected:last-child,
262
- .pb_dropdown_option_focused:last-child,
263
- .pb_dropdown_option_list_focused:last-child,
264
- .pb_dropdown_option_selected_focused:last-child {
209
+ [class*="pb_dropdown_option"]:last-child {
265
210
  margin-bottom: $space_xs;
266
211
  }
267
212
 
268
- .pb_dropdown_option,
269
- .pb_dropdown_option_list,
270
- .pb_dropdown_option_selected,
271
- .pb_dropdown_option_focused,
272
- .pb_dropdown_option_list_focused,
273
- .pb_dropdown_option_selected_focused {
213
+ [class*="pb_dropdown_option"] {
274
214
  padding: $space_xxs $space_xs;
275
215
  margin: $space_xxs $space_xs;
276
216
 
@@ -278,8 +218,7 @@
278
218
  height: 0px;
279
219
  }
280
220
 
281
- &.pb_dropdown_option_selected,
282
- &.pb_dropdown_option_selected_focused {
221
+ &[class*="selected"] {
283
222
  border-bottom: none;
284
223
  }
285
224
  }
@@ -290,10 +229,7 @@
290
229
 
291
230
  &.dark {
292
231
  .dropdown_wrapper {
293
- .dropdown_trigger_wrapper,
294
- .dropdown_trigger_wrapper_focus,
295
- .dropdown_trigger_wrapper_focus_select_only,
296
- .dropdown_trigger_wrapper_select_only {
232
+ [class*="dropdown_trigger_wrapper"] {
297
233
  @include pb_body_light_dark;
298
234
  background-color: rgba($white, 0.1) !important;
299
235
  background: none;
@@ -308,7 +244,7 @@
308
244
  [class^="pb_body"] {
309
245
  color: $white;
310
246
  }
311
- &.dropdown_trigger_wrapper_select_only {
247
+ &[class*="_select_only"] {
312
248
  box-shadow: inset 0 -11px 20px rgba($white, 0.05);
313
249
  }
314
250
  .dropdown_input {
@@ -318,10 +254,7 @@
318
254
  }
319
255
 
320
256
  &.error {
321
- .dropdown_trigger_wrapper,
322
- .dropdown_trigger_wrapper_focus,
323
- .dropdown_trigger_wrapper_focus_select_only,
324
- .dropdown_trigger_wrapper_select_only {
257
+ [class*="dropdown_trigger_wrapper"] {
325
258
  border-color: $error_dark;
326
259
  }
327
260
  }
@@ -335,28 +268,19 @@
335
268
  color: $white !important;
336
269
  }
337
270
 
338
- .pb_dropdown_option,
339
- .pb_dropdown_option_list,
340
- .pb_dropdown_option_selected,
341
- .pb_dropdown_option_focused,
342
- .pb_dropdown_option_list_focused,
343
- .pb_dropdown_option_selected_focused {
271
+ [class*="pb_dropdown_option"] {
344
272
  &:hover {
345
273
  background-color: $hover_dark;
346
274
  }
347
275
 
348
- &.pb_dropdown_option_focused,
349
- &.pb_dropdown_option_list_focused,
350
- &.pb_dropdown_option_selected_focused {
276
+ &[class*="_focused"] {
351
277
  background-color: $hover_dark;
352
278
  }
353
279
 
354
- &.pb_dropdown_option_list,
355
- &.pb_dropdown_option_list_focused {
280
+ &[class*="_list"] {
356
281
  border-color: rgba($white, 0.15);
357
282
  }
358
- &.pb_dropdown_option_selected,
359
- &.pb_dropdown_option_selected_focused {
283
+ &[class*="selected"] {
360
284
  background-color: $primary;
361
285
  border-bottom: rgba($white, 0.15);
362
286
  }
@@ -40,6 +40,7 @@ $confirmation_toast_colors: (
40
40
 
41
41
  &.positioned_toast {
42
42
  position: fixed;
43
+ z-index: $z_10 !important;
43
44
  display: flex;
44
45
  justify-content: space-around;
45
46
  max-width: max-content;
@@ -1,7 +1,7 @@
1
1
  import React, { useEffect, useState } from "react";
2
2
  import classnames from "classnames";
3
3
 
4
- import { globalProps, GlobalProps } from "../utilities/globalProps";
4
+ import { globalProps } from "../utilities/globalProps";
5
5
  import { buildHtmlProps } from "../utilities/props";
6
6
  import { VoidCallback } from "../types";
7
7
 
@@ -31,8 +31,7 @@ type FixedConfirmationToastProps = {
31
31
  status?: "success" | "error" | "neutral" | "tip";
32
32
  text?: string;
33
33
  vertical?: "top" | "bottom";
34
- zIndex?: number | string;
35
- } & GlobalProps
34
+ };
36
35
 
37
36
  const FixedConfirmationToast = (props: FixedConfirmationToastProps): React.ReactElement => {
38
37
  const [showToast, toggleToast] = useState(true);
@@ -51,7 +50,6 @@ const FixedConfirmationToast = (props: FixedConfirmationToastProps): React.React
51
50
  status = "neutral",
52
51
  text,
53
52
  vertical,
54
- zIndex = 'max',
55
53
  } = props;
56
54
 
57
55
  const returnedIcon = icon || iconMap[status]
@@ -61,7 +59,7 @@ const FixedConfirmationToast = (props: FixedConfirmationToastProps): React.React
61
59
  `pb_fixed_confirmation_toast_kit_${status}${multiLine ? '_multi_line' : ''}`,
62
60
  { [`positioned_toast ${vertical} ${horizontal}`]: vertical && horizontal },
63
61
  `${iconClass}`,
64
- globalProps(props, { zIndex }),
62
+ globalProps(props),
65
63
  className
66
64
  );
67
65
 
@@ -1,4 +1,2 @@
1
1
 
2
2
  Fixed Confirmation Toast is used as an alert. Success is used when a user successfully completes an action. Error is used when there is an error and the user cannot proceed. Neutral is used to display information to a user to complete a task.
3
-
4
- **NOTE**: z index for Fixed Confirmation Toast is set to 'max' by default which has the value of `999999`. the z Index global prop can be used to override this if you want to set it to a different value.