playbook_ui 15.2.0.pre.alpha.PLAY2589advancedtableinlinerowloadingtoggleicon11644 → 15.2.0.pre.alpha.PLAY236711331

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 (121) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +0 -2
  3. data/app/pb_kits/playbook/pb_advanced_table/Components/TableHeaderCell.tsx +1 -3
  4. data/app/pb_kits/playbook/pb_advanced_table/SubKits/TableHeader.tsx +0 -3
  5. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +0 -3
  6. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.html.erb +2 -2
  7. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.test.jsx +0 -59
  8. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta.md +1 -3
  9. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_sort.html.erb +3 -3
  10. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_subrow_headers.html.erb +3 -3
  11. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail_rails.html.erb +2 -2
  12. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.md +1 -1
  13. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers_rails.html.erb +2 -2
  14. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_rails.html.erb +2 -2
  15. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_rails.md +1 -1
  16. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.jsx +0 -16
  17. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md +2 -11
  18. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling_rails.md +1 -1
  19. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling_react.md +1 -1
  20. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_rails.html.erb +2 -2
  21. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -3
  22. data/app/pb_kits/playbook/pb_advanced_table/index.js +1 -5
  23. data/app/pb_kits/playbook/pb_advanced_table/table_body.rb +6 -6
  24. data/app/pb_kits/playbook/pb_advanced_table/table_header.rb +6 -6
  25. data/app/pb_kits/playbook/pb_advanced_table/table_row.html.erb +2 -3
  26. data/app/pb_kits/playbook/pb_advanced_table/table_row.rb +5 -49
  27. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range_pattern.jsx +1 -1
  28. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss +1 -0
  29. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.tsx +3 -5
  30. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_description.md +0 -2
  31. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/fixed_confirmation_toast.rb +1 -4
  32. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/fixed_confirmation_toast.test.js +0 -10
  33. data/app/pb_kits/playbook/pb_pb_line_graph/docs/_description.md +1 -1
  34. data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.tsx +6 -25
  35. data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/Toolbar.tsx +2 -41
  36. data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/ToolbarDropdown.tsx +0 -1
  37. data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.tsx +20 -60
  38. data/app/pb_kits/playbook/pb_rich_text_editor/_tiptap_styles.scss +0 -36
  39. data/app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml +2 -8
  40. data/app/pb_kits/playbook/pb_rich_text_editor/docs/index.js +0 -6
  41. data/app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor.test.js +1 -127
  42. data/app/pb_kits/playbook/pb_typeahead/_typeahead.test.jsx +1 -35
  43. data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +2 -71
  44. data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +0 -2
  45. data/app/pb_kits/playbook/pb_typeahead/docs/index.js +0 -1
  46. data/app/pb_kits/playbook/tokens/_positioning.scss +0 -1
  47. data/app/pb_kits/playbook/utilities/_positioning.scss +1 -6
  48. data/app/pb_kits/playbook/utilities/globalProps.ts +1 -3
  49. data/dist/chunks/{_line_graph-D5MBnrO9.js → _line_graph-AKTV-rqw.js} +1 -1
  50. data/dist/chunks/_typeahead-DCInCM2E.js +6 -0
  51. data/dist/chunks/{_weekday_stacked-BQrF2byq.js → _weekday_stacked-ByJl1kOQ.js} +3 -3
  52. data/dist/chunks/vendor.js +1 -1
  53. data/dist/menu.yml +0 -6
  54. data/dist/playbook-doc.js +2 -2
  55. data/dist/playbook-rails-react-bindings.js +1 -1
  56. data/dist/playbook-rails.js +1 -1
  57. data/dist/playbook.css +1 -1
  58. data/lib/playbook/pb_forms_helper.rb +6 -7
  59. data/lib/playbook/version.rb +1 -1
  60. data/lib/playbook/z_index.rb +1 -1
  61. metadata +5 -64
  62. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_background_control_rails.html.erb +0 -39
  63. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_background_control_rails.md +0 -1
  64. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control_per_row_rails.html.erb +0 -51
  65. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control_per_row_rails.md +0 -1
  66. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control_rails.html.erb +0 -40
  67. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control_rails.md +0 -1
  68. data/app/pb_kits/playbook/pb_advanced_table/docs/_mock_data_inline_loading_empty_children.js +0 -42
  69. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_description.md +0 -3
  70. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_description.md +0 -3
  71. data/app/pb_kits/playbook/pb_pb_gauge_chart/_pb_gauge_chart.scss +0 -3
  72. data/app/pb_kits/playbook/pb_pb_gauge_chart/_pb_gauge_chart.tsx +0 -69
  73. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_description.md +0 -3
  74. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_color.html.erb +0 -12
  75. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_color.jsx +0 -24
  76. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_color.md +0 -5
  77. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_complex.html.erb +0 -45
  78. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_complex.jsx +0 -119
  79. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_complex.md +0 -1
  80. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_default.html.erb +0 -5
  81. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_default.jsx +0 -17
  82. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_disable_animation.html.erb +0 -12
  83. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_disable_animation.jsx +0 -24
  84. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_full_circle.html.erb +0 -23
  85. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_full_circle.jsx +0 -37
  86. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_height.html.erb +0 -40
  87. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_height.jsx +0 -56
  88. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_live_data.jsx +0 -64
  89. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_min_max.html.erb +0 -27
  90. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_min_max.jsx +0 -40
  91. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_min_max.md +0 -1
  92. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_sizing.html.erb +0 -19
  93. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_sizing.jsx +0 -65
  94. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_sizing.md +0 -3
  95. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_title.html.erb +0 -14
  96. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_title.jsx +0 -27
  97. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_units.html.erb +0 -39
  98. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_units.jsx +0 -58
  99. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_units.md +0 -1
  100. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/example.yml +0 -29
  101. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/index.js +0 -11
  102. data/app/pb_kits/playbook/pb_pb_gauge_chart/pbGaugeGraphTheme.ts +0 -91
  103. data/app/pb_kits/playbook/pb_pb_gauge_chart/pb_gauge_chart.html.erb +0 -1
  104. data/app/pb_kits/playbook/pb_pb_gauge_chart/pb_gauge_chart.rb +0 -25
  105. data/app/pb_kits/playbook/pb_pb_gauge_chart/pb_gauge_chart.test.jsx +0 -80
  106. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_attributes.jsx +0 -38
  107. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_attributes.md +0 -1
  108. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_focus.jsx +0 -34
  109. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_focus.md +0 -1
  110. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_inline.jsx +0 -37
  111. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_inline.md +0 -1
  112. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_simple.jsx +0 -37
  113. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_sticky.jsx +0 -38
  114. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_sticky.md +0 -1
  115. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_templates.jsx +0 -69
  116. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_templates.md +0 -1
  117. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default_options.html.erb +0 -36
  118. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default_options.md +0 -1
  119. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default_value.jsx +0 -41
  120. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default_value.md +0 -1
  121. data/dist/chunks/_typeahead-BjYBazGq.js +0 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 89693ba1bf07627064652227df87422a5b6126af238967ceb09282f01f6d7e49
4
- data.tar.gz: 667090ab12ab761b0bf84a8365bfb6d5dd31b5cdff7274583bfd620a864e4dee
3
+ metadata.gz: 0e2c8dffcd7defe26d6fefe13f404f679b53a467a26f19e6d0e642ea8ef8dd85
4
+ data.tar.gz: c4592d02d0338fd0b4f476c94bb2c600a0fcd3f3924ce3930758a0ee9b2e782b
5
5
  SHA512:
6
- metadata.gz: 7dd13b4e5110a7f0129d60c3fc5661b8523bbcb28f8ca42d18864acdba620fd361a03754ae7a1eebac3e26d4043e897c5313168e282fea640da11f7bf37900cf
7
- data.tar.gz: 7520b324d9a37fc5463adefa742e571d41c64089f3e989829a3de42bb27f930befbee03f1fbc3dda32eb63652acf21cf8213911a400ef1aa553b02b7bff7996b
6
+ metadata.gz: f1e1563932e3cfc9222f98c859687fcaf69fa43ce717bfa03e1706a0360f10591682d4bca57111b816f38d83d9c4e3fe6c1af65ccb7d02293b71de67067f8640
7
+ data.tar.gz: bc8206fe7856f1f43c18957aa6bfcd609d35b04930a1ab12d9570bc1a7b0be7fd9b0524612a03e488fa35e5923aa21a601f604474089fa1d1c1861cce8971f95
@@ -1,4 +1,3 @@
1
-
2
1
  @import 'pb_advanced_table/advanced_table';
3
2
  @import 'pb_avatar/avatar';
4
3
  @import 'pb_background/background';
@@ -71,7 +70,6 @@
71
70
  @import 'pb_passphrase/passphrase';
72
71
  @import 'pb_pb_bar_graph/pb_bar_graph';
73
72
  @import 'pb_pb_circle_chart/pb_circle_chart';
74
- @import 'pb_pb_gauge_chart/pb_gauge_chart';
75
73
  @import 'pb_pb_line_graph/pb_line_graph';
76
74
  @import 'pb_person/person';
77
75
  @import 'pb_person_contact/person_contact';
@@ -30,7 +30,6 @@ type TableHeaderCellProps = {
30
30
  headerChildren?: React.ReactNode | React.ReactNode[]
31
31
  isPinnedLeft?: boolean
32
32
  loading?: boolean
33
- persistToggleExpansionButton?: boolean
34
33
  sortIcon?: string | string[]
35
34
  table?: Table<GenericObject>
36
35
  } & GlobalProps
@@ -59,7 +58,6 @@ export const TableHeaderCell = ({
59
58
  selectableRows,
60
59
  hasAnySubRows,
61
60
  showActionsBar,
62
- persistToggleExpansionButton,
63
61
  stickyLeftColumn,
64
62
  inlineRowLoading,
65
63
  isActionBarVisible,
@@ -222,7 +220,7 @@ const isToggleExpansionEnabled =
222
220
  />
223
221
  )
224
222
  }
225
- {isToggleExpansionEnabled && ((hasAnySubRows) || (inlineRowLoading && persistToggleExpansionButton)) && !expandByDepth && (
223
+ {isToggleExpansionEnabled && hasAnySubRows && !expandByDepth && (
226
224
  <ToggleIconButton onClick={handleExpandOrCollapse} />
227
225
  )}
228
226
  {isToggleExpansionEnabled && hasAnySubRows && expandByDepth && (
@@ -39,7 +39,6 @@ export const TableHeader = ({
39
39
  hasAnySubRows,
40
40
  showActionsBar,
41
41
  selectableRows,
42
- persistToggleExpansionButton,
43
42
  responsive,
44
43
  headerRef,
45
44
  virtualizedRows,
@@ -93,7 +92,6 @@ export const TableHeader = ({
93
92
  isPinnedLeft={isPinnedLeft}
94
93
  key={`${header.id}-header`}
95
94
  loading={loading}
96
- persistToggleExpansionButton={persistToggleExpansionButton}
97
95
  sortIcon={sortIcon}
98
96
  table={table}
99
97
  />
@@ -138,7 +136,6 @@ export const TableHeader = ({
138
136
  isVirtualized
139
137
  key={`${header.id}-header-virtualized`}
140
138
  loading={loading}
141
- persistToggleExpansionButton={persistToggleExpansionButton}
142
139
  sortIcon={sortIcon}
143
140
  table={table}
144
141
  />
@@ -63,7 +63,6 @@ type AdvancedTableProps = {
63
63
  scrollBarNone?: boolean,
64
64
  selectableRows?: boolean,
65
65
  showActionsBar?: boolean,
66
- persistToggleExpansionButton?: boolean,
67
66
  sortControl?: GenericObject
68
67
  tableData: GenericObject[]
69
68
  tableOptions?: GenericObject
@@ -110,7 +109,6 @@ const AdvancedTable = (props: AdvancedTableProps) => {
110
109
  scrollBarNone= false,
111
110
  showActionsBar = true,
112
111
  selectableRows,
113
- persistToggleExpansionButton = false,
114
112
  sortControl,
115
113
  stickyLeftColumn,
116
114
  tableData,
@@ -351,7 +349,6 @@ const AdvancedTable = (props: AdvancedTableProps) => {
351
349
  loading={loading}
352
350
  onCustomSortClick={onCustomSortClick}
353
351
  onExpandByDepthClick={onExpandByDepthClick}
354
- persistToggleExpansionButton={persistToggleExpansionButton}
355
352
  pinnedRows={pinnedRows}
356
353
  responsive={responsive}
357
354
  rowStyling={rowStyling}
@@ -11,8 +11,8 @@
11
11
  <% if content.present? %>
12
12
  <% content.presence %>
13
13
  <% else %>
14
- <%= pb_rails("advanced_table/table_header", props: { table_id: object.id, column_definitions: object.column_definitions, enable_toggle_expansion: object.enable_toggle_expansion, responsive: object.responsive, loading: object.loading, selectable_rows: object.selectable_rows, show_actions_bar: object.show_actions_bar }) %>
15
- <%= pb_rails("advanced_table/table_body", props: { table_id: object.id, table_data: object.table_data, column_definitions: object.column_definitions, responsive: object.responsive, loading: object.loading, selectable_rows: object.selectable_rows, enable_toggle_expansion: object.enable_toggle_expansion, row_styling: object.row_styling }) %>
14
+ <%= pb_rails("advanced_table/table_header", props: { id: object.id, column_definitions: object.column_definitions, enable_toggle_expansion: object.enable_toggle_expansion, responsive: object.responsive, loading: object.loading, selectable_rows: object.selectable_rows, show_actions_bar: object.show_actions_bar }) %>
15
+ <%= pb_rails("advanced_table/table_body", props: { id: object.id, table_data: object.table_data, column_definitions: object.column_definitions, responsive: object.responsive, loading: object.loading, selectable_rows: object.selectable_rows, enable_toggle_expansion: object.enable_toggle_expansion, row_styling: object.row_styling }) %>
16
16
  <% end %>
17
17
  <% end %>
18
18
  <% end %>
@@ -108,48 +108,6 @@ const MOCK_DATA_WITH_ID = [
108
108
  },
109
109
  ]
110
110
 
111
- const MOCK_DATA_NO_SUBROWS = [
112
- {
113
- year: "2021",
114
- quarter: null,
115
- month: null,
116
- day: null,
117
- newEnrollments: "20",
118
- scheduledMeetings: "10",
119
- attendanceRate: "51%",
120
- completedClasses: "3",
121
- classCompletionRate: "33%",
122
- graduatedStudents: "19",
123
- children: [],
124
- },
125
- {
126
- year: "2022",
127
- quarter: null,
128
- month: null,
129
- day: null,
130
- newEnrollments: "25",
131
- scheduledMeetings: "17",
132
- attendanceRate: "75%",
133
- completedClasses: "5",
134
- classCompletionRate: "45%",
135
- graduatedStudents: "32",
136
- children: [],
137
- },
138
- {
139
- year: "2023",
140
- quarter: null,
141
- month: null,
142
- day: null,
143
- newEnrollments: "30",
144
- scheduledMeetings: "22",
145
- attendanceRate: "80%",
146
- completedClasses: "7",
147
- classCompletionRate: "55%",
148
- graduatedStudents: "45",
149
- children: [],
150
- },
151
- ]
152
-
153
111
  const columnDefinitions = [
154
112
  {
155
113
  accessor: "year",
@@ -551,23 +509,6 @@ test("inlineRowLoading prop renders inline loading if true", () => {
551
509
  expect(inlineLoading).toBeInTheDocument()
552
510
  })
553
511
 
554
- test("persistToggleExpansionButton prop shows header toggle when inlineRowLoading is true", () => {
555
- render(
556
- <AdvancedTable
557
- columnDefinitions={columnDefinitions}
558
- data={{ testid: testId }}
559
- enableToggleExpansion="all"
560
- inlineRowLoading
561
- persistToggleExpansionButton
562
- tableData={MOCK_DATA_NO_SUBROWS}
563
- />
564
- )
565
-
566
- const kit = screen.getByTestId(testId)
567
- const headerToggleButton = kit.querySelector(".gray-icon.toggle-all-icon")
568
- expect(headerToggleButton).toBeInTheDocument()
569
- })
570
-
571
512
  test("responsive prop functions as expected", () => {
572
513
  render(
573
514
  <AdvancedTable
@@ -2,9 +2,7 @@ The AdvancedTable kit accepts tree data and automatically renders expansion cont
2
2
 
3
3
  ### id
4
4
 
5
- A unique `id` is required to allow the table functionality to work properly. Without it, certain functions like the action bar, expand/collapse caching, or selectable rows will not be able to properly reference the correct table.
6
-
7
- You must also set `table_id` when using subcomponents like `table_header` or `table_body`.
5
+ A unique `id` is required to allow the table functionality to work properly. Without it, certain functions like the action bar will not be able to properly reference the correct table.
8
6
 
9
7
  ### table_data
10
8
 
@@ -51,7 +51,7 @@
51
51
  ]
52
52
  %>
53
53
 
54
- <%= pb_rails("advanced_table", props: { id: "sort", table_data: @table_data, column_definitions: column_definitions, id: "beta_sort" }) do %>
55
- <%= pb_rails("advanced_table/table_header", props: { table_id: "sort", column_definitions: column_definitions }) %>
56
- <%= pb_rails("advanced_table/table_body", props: { table_id: "sort", table_data: @table_data, column_definitions: column_definitions, enable_toggle_expansion: "all" }) %>
54
+ <%= pb_rails("advanced_table", props: { table_data: @table_data, column_definitions: column_definitions, id: "beta_sort" }) do %>
55
+ <%= pb_rails("advanced_table/table_header", props: { column_definitions: column_definitions }) %>
56
+ <%= pb_rails("advanced_table/table_body", props: { id: "beta_sort", table_data: @table_data, column_definitions: column_definitions, enable_toggle_expansion: "all" }) %>
57
57
  <% end %>
@@ -34,7 +34,7 @@
34
34
  subrow_headers = ["Quarter", "Month", "Day"]
35
35
  %>
36
36
 
37
- <%= pb_rails("advanced_table", props: { id: "subrow-headers", table_data: @table_data, column_definitions: column_definitions, id: "test_table" }) do %>
38
- <%= pb_rails("advanced_table/table_header", props: { table_id: "subrow-headers", column_definitions: column_definitions }) %>
39
- <%= pb_rails("advanced_table/table_body", props: { table_id: "subrow-headers", table_data: @table_data, column_definitions: column_definitions, subrow_headers: subrow_headers, enable_toggle_expansion: "all" }) %>
37
+ <%= pb_rails("advanced_table", props: { table_data: @table_data, column_definitions: column_definitions, id: "test_table" }) do %>
38
+ <%= pb_rails("advanced_table/table_header", props: { column_definitions: column_definitions }) %>
39
+ <%= pb_rails("advanced_table/table_body", props: { id: "test_table", table_data: @table_data, column_definitions: column_definitions, subrow_headers: subrow_headers, enable_toggle_expansion: "all" }) %>
40
40
  <% end %>
@@ -31,6 +31,6 @@
31
31
  ] %>
32
32
 
33
33
  <%= pb_rails("advanced_table", props: { id: "collapsible_trail", table_data: @table_data, column_definitions: column_definitions }) do %>
34
- <%= pb_rails("advanced_table/table_header", props: { table_id: "collapsible_trail", column_definitions: column_definitions }) %>
35
- <%= pb_rails("advanced_table/table_body", props: { table_id: "collapsible_trail", table_data: @table_data, column_definitions: column_definitions, collapsible_trail: false }) %>
34
+ <%= pb_rails("advanced_table/table_header", props: { column_definitions: column_definitions }) %>
35
+ <%= pb_rails("advanced_table/table_body", props: { table_data: @table_data, column_definitions: column_definitions, collapsible_trail: false }) %>
36
36
  <% end %>
@@ -1,4 +1,4 @@
1
- The `columnStyling` prop is an optional item that can be used within `columnDefinitions` as shown in the code snippet below. It is an object that has several optional key/value pairs, this doc example highlights the following:
1
+ The `columnStyling` prop is an optional item that can be used within `columnDefinitions` as shown in the code snippet below. It is an object that has 2 optional key/value pairs:
2
2
 
3
3
  1) `headerAlignment`: This will allow you to control alignment of header content which is set to right aligned by default. you can set this to `left`, `right` or `center`.
4
4
 
@@ -58,6 +58,6 @@
58
58
  ] %>
59
59
 
60
60
  <%= pb_rails("advanced_table", props: { id: "column-styling-multi", table_data: @table_data, column_definitions: column_definitions }) do %>
61
- <%= pb_rails("advanced_table/table_header", props: { table_id: "column-styling-multi", column_definitions: column_definitions }) %>
62
- <%= pb_rails("advanced_table/table_body", props: { table_id: "column-styling-multi", table_data: @table_data, column_definitions: column_definitions }) %>
61
+ <%= pb_rails("advanced_table/table_header", props: { column_definitions: column_definitions }) %>
62
+ <%= pb_rails("advanced_table/table_body", props: { table_data: @table_data, column_definitions: column_definitions }) %>
63
63
  <% end %>
@@ -33,6 +33,6 @@
33
33
  ] %>
34
34
 
35
35
  <%= pb_rails("advanced_table", props: { id: "column-styling", table_data: @table_data, column_definitions: column_definitions }) do %>
36
- <%= pb_rails("advanced_table/table_header", props: { table_id: "column-styling", column_definitions: column_definitions }) %>
37
- <%= pb_rails("advanced_table/table_body", props: { table_id: "column-styling", table_data: @table_data, column_definitions: column_definitions }) %>
36
+ <%= pb_rails("advanced_table/table_header", props: { column_definitions: column_definitions }) %>
37
+ <%= pb_rails("advanced_table/table_body", props: { table_data: @table_data, column_definitions: column_definitions }) %>
38
38
  <% end %>
@@ -1,4 +1,4 @@
1
- The `column_styling` prop is an optional item that can be used within `column_definitions` as shown in the code snippet below. It is an object that has several optional key/value pairs, this doc example highlights the following:
1
+ The `column_styling` prop is an optional item that can be used within `column_definitions` as shown in the code snippet below. It is an object that has 2 optional key/value pairs:
2
2
 
3
3
  1) `header_alignment`: This will allow you to control alignment of header content which is set to right aligned by default. you can set this to `left`, `right` or `center`.
4
4
 
@@ -1,8 +1,6 @@
1
1
  import React from "react"
2
2
  import AdvancedTable from '../../pb_advanced_table/_advanced_table'
3
- import Caption from '../../pb_caption/_caption'
4
3
  import { MOCK_DATA_INLINE_LOADING } from "./_mock_data_inline_loading"
5
- import { MOCK_DATA_INLINE_LOADING_EMPTY_CHILDREN } from "./_mock_data_inline_loading_empty_children"
6
4
 
7
5
  const AdvancedTableInlineRowLoading = (props) => {
8
6
  const columnDefinitions = [
@@ -43,30 +41,16 @@ const AdvancedTableInlineRowLoading = (props) => {
43
41
 
44
42
  return (
45
43
  <div>
46
- <Caption>Inline Row Loading</Caption>
47
44
  <AdvancedTable
48
45
  columnDefinitions={columnDefinitions}
49
46
  enableToggleExpansion="all"
50
47
  inlineRowLoading
51
- marginBottom="md"
52
48
  tableData={MOCK_DATA_INLINE_LOADING}
53
49
  {...props}
54
50
  >
55
51
  <AdvancedTable.Header />
56
52
  <AdvancedTable.Body subRowHeaders={subRowHeaders}/>
57
53
  </AdvancedTable>
58
- <Caption>Inline Row Loading with Persist Toggle Expansion Button</Caption>
59
- <AdvancedTable
60
- columnDefinitions={columnDefinitions}
61
- enableToggleExpansion="all"
62
- inlineRowLoading
63
- persistToggleExpansionButton
64
- tableData={MOCK_DATA_INLINE_LOADING_EMPTY_CHILDREN}
65
- {...props}
66
- >
67
- <AdvancedTable.Header />
68
- <AdvancedTable.Body subRowHeaders={subRowHeaders}/>
69
- </AdvancedTable>
70
54
  </div>
71
55
  )
72
56
  }
@@ -1,14 +1,5 @@
1
- ### inlineRowLoading
2
1
  As a default, the kit assumes that the initial dataset is complete, and it renders all expansion buttons/controls based on that data; if no children are present, no expansion controls are rendered. If, however, you want to change the initial dataset to omit some or all of its children (to improve load times of a complex dataset, perhaps), and you implement a querying logic that loads children only when its parent is expanded, then you must use the `inlineRowLoading` prop to ensure your expansion controls are rendered even though your child data is not yet loaded. You must also pass an empty `children` array to any node that will have children to ensure its parent maintains its ability to expand. If this prop is called AND your data contains empty `children` arrays, the kit will render expansion controls on any row with empty children, and then add an inline loading state within the expanded subrow until those child row(s) are returned to the page [by your query logic].
3
2
 
4
- In the first Advanced Table in this code example, 2021 has an empty children array. Toggle it open to see the inline loading state. Once the correct data loads, this state will be replaced with the correct data rows.
3
+ In this code example, 2021 has an empty children array. Toggle it open to see the inline loading state. Once the correct data loads, this state will be replaced with the correct data rows.
5
4
 
6
- This prop is set to `false` by default.
7
-
8
-
9
- ### persistToggleExpansion
10
- The `persistToggleExpansionButton` is a boolean prop that renders the toggle-all icon in the top left header cell for complex datasets with empty `children` arrays and advanced querying logic explained in the preceeding doc example. Your logic may require an additional query helper file to update data specifically from requerying via toggle all buttons.
11
-
12
- In the second Advanced Table in this code example, all 3 rows have empty children arrays. The toggle all button would not render (prior to an initial row expansion) without `persistToggleExpansionButton` in place.
13
-
14
- This prop is set to false by default and should only be used in conjunction with `inlineRowLoading`.
5
+ This prop is set to `false` by default.
@@ -1,4 +1,4 @@
1
- The `row_styling` prop can be used in conjunction with row ids to control certain styling options on individual rows. It is an object that has several optional key/value pairs, this doc example highlights the following:
1
+ The `row_styling` prop can be used in conjunction with row ids to control certain styling options on individual rows. Currently, `row_styling` gives you 3 optional controls:
2
2
 
3
3
  - `background_color` : use this to control the background color of the row
4
4
  - `font_color`: use this to control font color for each row if needed, for example if using a darker background color.
@@ -1,4 +1,4 @@
1
- The `rowStyling` prop can be used in conjunction with row ids to control certain styling options on individual rows. It is an object that has several optional key/value pairs, this doc example highlights the following:
1
+ The `rowStyling` prop can be used in conjunction with row ids to control certain styling options on individual rows. Currently, `rowStyling` gives you 3 optional controls:
2
2
 
3
3
  - `backgroundColor` : use this to control the background color of the row
4
4
  - `fontColor`: use this to control font color for each row if needed, for example if using a darker background color.
@@ -34,6 +34,6 @@
34
34
  %>
35
35
 
36
36
  <%= pb_rails("advanced_table", props: { id: "selectable_rows", table_data: @table_data_with_id, column_definitions: column_definitions, selectable_rows: true }) do %>
37
- <%= pb_rails("advanced_table/table_header", props: { table_id: "selectable_rows", column_definitions: column_definitions, selectable_rows: true }) %>
38
- <%= pb_rails("advanced_table/table_body", props: { table_id: "selectable_rows", table_data: @table_data_with_id, column_definitions: column_definitions, subrow_headers: subrow_headers, enable_toggle_expansion: "all", selectable_rows: true }) %>
37
+ <%= pb_rails("advanced_table/table_header", props: { id: "selectable_rows", column_definitions: column_definitions, selectable_rows: true }) %>
38
+ <%= pb_rails("advanced_table/table_body", props: { id: "selectable_rows", table_data: @table_data_with_id, column_definitions: column_definitions, subrow_headers: subrow_headers, enable_toggle_expansion: "all", selectable_rows: true }) %>
39
39
  <% end %>
@@ -21,11 +21,8 @@ examples:
21
21
  - advanced_table_selectable_rows_header_rails: Selectable Rows (No Actions Bar)
22
22
  - advanced_table_scrollbar_none: Advanced Table Scrollbar None
23
23
  - advanced_table_row_styling: Row Styling
24
- - advanced_table_padding_control_per_row_rails: Padding Control using Row Styling
25
24
  - advanced_table_column_styling_rails: Column Styling
26
25
  - advanced_table_column_styling_column_headers_rails: Column Styling with Multiple Headers
27
- - advanced_table_padding_control_rails: Padding Control using Column Styling
28
- - advanced_table_background_control_rails: Background Control using Column Styling
29
26
  - advanced_table_column_border_color_rails: Column Group Border Color
30
27
 
31
28
 
@@ -331,12 +331,8 @@ export default class PbAdvancedTable extends PbEnhancedElement {
331
331
  // Split the dataContent to get all ancestor IDs, check against ExpandedRows
332
332
  const ancestorIds = dataContent.split("-").slice(0, -1);
333
333
 
334
- // Get the table_id from the child row's parent to construct proper prefixed IDs
335
- const parentRowId = childRow.dataset.rowParent;
336
- const tableId = parentRowId ? parentRowId.split('_').slice(0, -1).join('_') : '';
337
-
338
334
  const prefixedAncestorIds = ancestorIds.map(
339
- (id) => `${tableId}_${id}`
335
+ (id) => `${childRow.id}_${id}`
340
336
  );
341
337
  const allAncestorsExpanded = prefixedAncestorIds.every((id) =>
342
338
  PbAdvancedTable.expandedRows.has(id)
@@ -3,8 +3,8 @@
3
3
  module Playbook
4
4
  module PbAdvancedTable
5
5
  class TableBody < Playbook::KitBase
6
- prop :table_id, type: Playbook::Props::String,
7
- default: ""
6
+ prop :id, type: Playbook::Props::String,
7
+ default: ""
8
8
  prop :table_data, type: Playbook::Props::Array,
9
9
  default: []
10
10
  prop :column_definitions, type: Playbook::Props::Array,
@@ -53,7 +53,7 @@ module Playbook
53
53
  subrow_data_attributes = {
54
54
  advanced_table_content: subrow_ancestor_ids.join("-"),
55
55
  row_depth: current_depth,
56
- row_parent: "#{table_id}_#{ancestor_ids.last}",
56
+ row_parent: "#{id}_#{ancestor_ids.last}",
57
57
  }
58
58
  # Subrow header if applicable
59
59
  output << pb_rails("advanced_table/table_subrow_header", props: { row: row, column_definitions: leaf_columns, depth: current_depth, subrow_header: subrow_headers[current_depth - 1], collapsible_trail: collapsible_trail, classname: "toggle-content", responsive: responsive, subrow_data_attributes: subrow_data_attributes, last_row: last_row, immediate_parent_row_id: immediate_parent_row_id }) if is_first_child_of_subrow && enable_toggle_expansion == "all"
@@ -69,7 +69,7 @@ module Playbook
69
69
  end
70
70
 
71
71
  # Additional class and data attributes needed for toggle logic
72
- output << pb_rails("advanced_table/table_row", props: { table_id: table_id, row: row, column_definitions: leaf_columns, depth: current_depth, collapsible_trail: collapsible_trail, classname: additional_classes, table_data_attributes: current_data_attributes, responsive: responsive, loading: loading, selectable_rows: selectable_rows, row_id: row[:id], enable_toggle_expansion: enable_toggle_expansion, row_styling: row_styling, last_row: last_row, immediate_parent_row_id: immediate_parent_row_id })
72
+ output << pb_rails("advanced_table/table_row", props: { id: id, row: row, column_definitions: leaf_columns, depth: current_depth, collapsible_trail: collapsible_trail, classname: additional_classes, table_data_attributes: current_data_attributes, responsive: responsive, loading: loading, selectable_rows: selectable_rows, row_id: row[:id], enable_toggle_expansion: enable_toggle_expansion, row_styling: row_styling, last_row: last_row, immediate_parent_row_id: immediate_parent_row_id })
73
73
 
74
74
  if row[:children].present?
75
75
  row[:children].each do |child_row|
@@ -78,9 +78,9 @@ module Playbook
78
78
  data_content = new_ancestor_ids.join("-") + "-#{child_row.object_id}"
79
79
 
80
80
  child_data_attributes = {
81
- top_parent: "#{table_id}_#{top_parent_id}",
81
+ top_parent: "#{id}_#{top_parent_id}",
82
82
  row_depth: current_depth + 1,
83
- row_parent: "#{table_id}_#{immediate_parent_id}",
83
+ row_parent: "#{id}_#{immediate_parent_id}",
84
84
  advanced_table_content: data_content,
85
85
  }
86
86
 
@@ -3,8 +3,8 @@
3
3
  module Playbook
4
4
  module PbAdvancedTable
5
5
  class TableHeader < Playbook::KitBase
6
- prop :table_id, type: Playbook::Props::String,
7
- default: ""
6
+ prop :id, type: Playbook::Props::String,
7
+ default: ""
8
8
  prop :column_definitions, type: Playbook::Props::Array,
9
9
  default: []
10
10
  prop :enable_toggle_expansion, type: Playbook::Props::Enum,
@@ -58,10 +58,10 @@ module Playbook
58
58
  classname: additional_classes.join(" "),
59
59
  }) do
60
60
  pb_rails("checkbox", props: {
61
- id: "#{table_id ? "#{table_id}-" : ''}select-all-rows",
61
+ id: "#{id ? "#{id}-" : ''}select-all-rows",
62
62
  indeterminate_main: true,
63
63
  indeterminate_main_labels: ["", ""],
64
- name: "#{table_id ? "#{table_id}-" : ''}select-all-rows",
64
+ name: "#{id ? "#{id}-" : ''}select-all-rows",
65
65
  })
66
66
  end
67
67
  end
@@ -71,10 +71,10 @@ module Playbook
71
71
  def render_select_all_checkbox
72
72
  if selectable_rows
73
73
  pb_rails("checkbox", props: {
74
- id: "#{table_id ? "#{table_id}-" : ''}select-all-rows",
74
+ id: "#{id ? "#{id}-" : ''}select-all-rows",
75
75
  indeterminate_main: true,
76
76
  indeterminate_main_labels: ["", ""],
77
- name: "#{table_id ? "#{table_id}-" : ''}select-all-rows",
77
+ name: "#{id ? "#{id}-" : ''}select-all-rows",
78
78
  data: {
79
79
  action: "click->pb-advanced-table#toggleAllRowSelection",
80
80
  },
@@ -12,8 +12,7 @@
12
12
  <% end %>
13
13
  <% object.column_definitions.each_with_index do |column, index| %>
14
14
  <% next unless column[:accessor].present? %>
15
- <% component_info = object.cell_component_info(column, index, bg_color, font_color) %>
16
- <%= pb_rails(component_info[:name], props: component_info[:props]) do %>
15
+ <%= pb_rails("table/table_cell", props: { html_options: { style: { "background-color": bg_color, color: font_color } }, classname:object.td_classname(column, index)}) do %>
17
16
  <%= pb_rails("flex", props:{ align: "center", justify: object.justify_for(column, index), classname: object.loading ? "loading-cell" : "" }) do %>
18
17
  <% if collapsible_trail && index.zero? %>
19
18
  <% (1..depth).each do |i| %>
@@ -34,7 +33,7 @@
34
33
  <% end %>
35
34
  <% if object.row[:children].present? %>
36
35
  <button
37
- id="<%= "#{object.table_id}_#{object.row.object_id}" %>"
36
+ id="<%= "#{object.id}_#{object.row.object_id}" %>"
38
37
  class="gray-icon expand-toggle-icon"
39
38
  data-advanced-table="true"
40
39
  style="color: <%= button_color %>"
@@ -3,8 +3,8 @@
3
3
  module Playbook
4
4
  module PbAdvancedTable
5
5
  class TableRow < Playbook::KitBase
6
- prop :table_id, type: Playbook::Props::String,
7
- default: ""
6
+ prop :id, type: Playbook::Props::String,
7
+ default: ""
8
8
  prop :column_definitions, type: Playbook::Props::Array,
9
9
  default: []
10
10
  prop :row
@@ -46,53 +46,9 @@ module Playbook
46
46
  classes = %w[id-cell]
47
47
  classes << "last-cell" if column[:is_last_in_group]
48
48
  classes << "pinned-left" if index.zero? && is_pinned_left && responsive == "scroll"
49
-
50
- row_style = row_styling.find { |style| style[:row_id].to_s == row_id.to_s }
51
- row_padding = row_style&.[](:cell_padding)
52
-
53
- if column[:accessor].present?
54
- orig_def = find_column_def_by_accessor(column_definitions, column[:accessor])
55
- column_padding = orig_def[:column_styling][:cell_padding] if orig_def && orig_def[:column_styling].is_a?(Hash) && orig_def[:column_styling][:cell_padding].present?
56
- end
57
-
58
- classes << "p_#{row_padding}" if row_padding.present?
59
- classes << "p_#{column_padding}" if column_padding.present?
60
-
61
49
  classes.join(" ")
62
50
  end
63
51
 
64
- def cell_background_color(column)
65
- return nil unless column[:accessor].present?
66
-
67
- orig_def = find_column_def_by_accessor(column_definitions, column[:accessor])
68
- if orig_def && orig_def[:column_styling].is_a?(Hash) && orig_def[:column_styling][:cell_background_color].present?
69
- bg_color = orig_def[:column_styling][:cell_background_color]
70
- if bg_color.respond_to?(:call)
71
- bg_color.call(row)
72
- else
73
- bg_color
74
- end
75
- end
76
- end
77
-
78
- def has_custom_background_color?(column)
79
- cell_background_color(column).present?
80
- end
81
-
82
- # Uses a regular table/table_cell component if there is no custom background color; if there is a cell_background_color uses a background component with tag "td"
83
- def cell_component_info(column, index, bg_color, font_color)
84
- if has_custom_background_color?(column)
85
- custom_bg_color = cell_background_color(column)
86
- component_name = "background"
87
- component_props = { background_color: custom_bg_color, tag: "td", classname: td_classname(column, index) }
88
- else
89
- component_name = "table/table_cell"
90
- component_props = { html_options: { style: { "background-color": bg_color, color: font_color } }, classname: td_classname(column, index) }
91
- end
92
-
93
- { name: component_name, props: component_props }
94
- end
95
-
96
52
  def depth_accessors
97
53
  column_definitions.flat_map do |column|
98
54
  column[:cellAccessors] if column.key?(:cellAccessors)
@@ -102,13 +58,13 @@ module Playbook
102
58
  # Selectable Rows No Subrows - checkboxes in their own first cell
103
59
  def render_checkbox_cell
104
60
  if selectable_rows
105
- prefix = table_id ? "#{table_id}-" : ""
61
+ prefix = id ? "#{id}-" : ""
106
62
  pb_rails("table/table_cell", props: {
107
63
  classname: "checkbox-cell",
108
64
  }) do
109
65
  pb_rails("checkbox", props: {
110
66
  id: "#{prefix}select-row-#{row_id || row.object_id}",
111
- indeterminate_parent: "#{table_id ? "#{table_id}-" : ''}select-all-rows",
67
+ indeterminate_parent: "#{id ? "#{id}-" : ''}select-all-rows",
112
68
  name: "#{prefix}select-row-#{row_id || row.object_id}",
113
69
  data: {
114
70
  row_id: row_id || row.object_id.to_s,
@@ -122,7 +78,7 @@ module Playbook
122
78
  # Selectable Rows w/ Subrows - checkboxes part of toggleable first cell
123
79
  def render_row_checkbox
124
80
  if selectable_rows
125
- prefix = table_id ? "#{table_id}-" : ""
81
+ prefix = id ? "#{id}-" : ""
126
82
  indeterminate_parent =
127
83
  if depth.zero?
128
84
  "#{prefix}select-all-rows"
@@ -23,7 +23,7 @@ const DatePickerRangePattern = (props) => {
23
23
 
24
24
  <DatePicker
25
25
  pickerId="end-date-picker"
26
- placeholder="Select an End Date"
26
+ placeholder="Select a End Date"
27
27
  syncEndWith="quickpick-for-range"
28
28
  {...props}
29
29
  />
@@ -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.