playbook_ui 14.23.0.pre.alpha.PLAY2283multiheaderverticalbordersdoc9335 → 14.23.0.pre.alpha.PLAY2303optD9000

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 (143) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +1 -0
  3. data/app/pb_kits/playbook/pb_advanced_table/Components/CustomCell.tsx +6 -7
  4. data/app/pb_kits/playbook/pb_advanced_table/Components/SortIconButton.tsx +25 -24
  5. data/app/pb_kits/playbook/pb_advanced_table/Components/TableActionBar.tsx +10 -10
  6. data/app/pb_kits/playbook/pb_advanced_table/Components/TableHeaderCell.tsx +12 -11
  7. data/app/pb_kits/playbook/pb_advanced_table/Hooks/useTableState.ts +4 -7
  8. data/app/pb_kits/playbook/pb_advanced_table/SubKits/TableHeader.tsx +1 -1
  9. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +2 -78
  10. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +7 -13
  11. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.html.erb +2 -2
  12. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.rb +2 -14
  13. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.test.jsx +0 -34
  14. data/app/pb_kits/playbook/pb_advanced_table/advanced_table_action_bar.js +0 -16
  15. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_header_rails.html.erb +1 -1
  16. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_rails.html.erb +1 -1
  17. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header.md +1 -1
  18. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -7
  19. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +0 -4
  20. data/app/pb_kits/playbook/pb_advanced_table/flat_advanced_table.js +11 -4
  21. data/app/pb_kits/playbook/pb_advanced_table/index.js +125 -108
  22. data/app/pb_kits/playbook/pb_advanced_table/scss_partials/advanced_table_sticky_mixin.scss +1 -7
  23. data/app/pb_kits/playbook/pb_advanced_table/table_body.rb +4 -7
  24. data/app/pb_kits/playbook/pb_advanced_table/table_header.html.erb +1 -5
  25. data/app/pb_kits/playbook/pb_advanced_table/table_header.rb +4 -46
  26. data/app/pb_kits/playbook/pb_advanced_table/table_row.html.erb +4 -13
  27. data/app/pb_kits/playbook/pb_advanced_table/table_row.rb +5 -24
  28. data/app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb +1 -1
  29. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.md +1 -1
  30. data/app/pb_kits/playbook/pb_checkbox/checkbox.rb +1 -12
  31. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_indeterminate.html.erb +1 -1
  32. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_indeterminate_rails.md +1 -2
  33. data/app/pb_kits/playbook/pb_checkbox/index.js +26 -218
  34. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.md +1 -1
  35. data/app/pb_kits/playbook/pb_dropdown/_dropdown.scss +1 -17
  36. data/app/pb_kits/playbook/pb_dropdown/_dropdown.tsx +0 -6
  37. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_radio_options.jsx +0 -1
  38. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_radio_options_react.md +1 -1
  39. data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +2 -3
  40. data/app/pb_kits/playbook/pb_dropdown/docs/index.js +1 -2
  41. data/app/pb_kits/playbook/pb_dropdown/dropdown.test.jsx +0 -24
  42. data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownOption.tsx +1 -11
  43. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors.jsx +15 -32
  44. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex.jsx +9 -35
  45. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_default.jsx +14 -26
  46. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_disable_animation.jsx +15 -32
  47. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_full_circle.jsx +17 -45
  48. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_height.jsx +22 -59
  49. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_live_data.jsx +9 -40
  50. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.jsx +18 -50
  51. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_pb_styles.jsx +30 -0
  52. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_pb_styles.md +1 -0
  53. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.jsx +18 -31
  54. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_title.jsx +17 -34
  55. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units.jsx +23 -64
  56. data/app/pb_kits/playbook/pb_gauge/docs/example.yml +1 -0
  57. data/app/pb_kits/playbook/pb_gauge/docs/index.js +1 -0
  58. data/app/pb_kits/playbook/pb_gauge/gaugeTheme.ts +1 -7
  59. data/app/pb_kits/playbook/pb_line_graph/docs/_description.md +3 -1
  60. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.jsx +17 -36
  61. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_default.jsx +16 -31
  62. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx +31 -63
  63. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend.jsx +16 -35
  64. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_nonclickable.jsx +16 -41
  65. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.jsx +62 -107
  66. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.md +7 -4
  67. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_pb_styles.jsx +52 -0
  68. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_pb_styles.md +1 -0
  69. data/app/pb_kits/playbook/pb_line_graph/docs/example.yml +1 -0
  70. data/app/pb_kits/playbook/pb_line_graph/docs/index.js +1 -0
  71. data/app/pb_kits/playbook/pb_line_graph/lineGraphTheme.ts +1 -16
  72. data/app/pb_kits/playbook/pb_multi_level_select/_helper_functions.tsx +9 -18
  73. data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx +1 -3
  74. data/app/pb_kits/playbook/pb_multi_level_select/docs/index.js +1 -1
  75. data/app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb +0 -3
  76. data/app/pb_kits/playbook/pb_pagination/_pagination.tsx +0 -4
  77. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_default_rails.md +1 -3
  78. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_default_react.md +1 -3
  79. data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.tsx +0 -3
  80. data/app/pb_kits/playbook/pb_phone_number_input/docs/example.yml +0 -2
  81. data/app/pb_kits/playbook/pb_phone_number_input/docs/index.js +0 -1
  82. data/app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb +0 -3
  83. data/app/pb_kits/playbook/pb_select/select.rb +2 -4
  84. data/app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.html.erb +0 -1
  85. data/app/pb_kits/playbook/pb_walkthrough/_walkthrough.scss +0 -0
  86. data/app/pb_kits/playbook/pb_walkthrough/_walkthrough.tsx +202 -0
  87. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_continuous.jsx +69 -0
  88. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_default.jsx +71 -0
  89. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_multi_beacon.jsx +110 -0
  90. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_no_beacon.jsx +76 -0
  91. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_no_overlay.jsx +76 -0
  92. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx +76 -0
  93. data/app/pb_kits/playbook/pb_walkthrough/docs/example.yml +10 -0
  94. data/app/pb_kits/playbook/pb_walkthrough/docs/index.js +6 -0
  95. data/app/pb_kits/playbook/pb_walkthrough/walkthrough.test.jsx +34 -0
  96. data/dist/chunks/_circle_chart-BZmlhBs2.js +1 -0
  97. data/dist/chunks/_typeahead-B1tu_vWi.js +22 -0
  98. data/dist/chunks/_weekday_stacked-CKk0dR5s.js +45 -0
  99. data/dist/chunks/lib-DYpq0k8j.js +29 -0
  100. data/dist/chunks/{pb_form_validation-D3b0JKHH.js → pb_form_validation-BUOKwfvW.js} +1 -1
  101. data/dist/chunks/vendor.js +1 -1
  102. data/dist/menu.yml +10 -3
  103. data/dist/playbook-doc.js +2 -2
  104. data/dist/playbook-rails-react-bindings.js +1 -1
  105. data/dist/playbook-rails.js +1 -1
  106. data/dist/playbook.css +1 -1
  107. data/lib/playbook/version.rb +1 -1
  108. metadata +26 -38
  109. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_vertical_border.html.erb +0 -43
  110. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_vertical_border.jsx +0 -64
  111. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling.html.erb +0 -46
  112. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling_rails.md +0 -7
  113. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_per_column.jsx +0 -55
  114. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_per_column.md +0 -6
  115. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_per_column_for_multi_column.jsx +0 -80
  116. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_per_column_for_multi_column.md +0 -1
  117. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_multi_header.jsx +0 -107
  118. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_multi_header.md +0 -1
  119. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_rails.html.erb +0 -51
  120. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_rails.md +0 -1
  121. data/app/pb_kits/playbook/pb_dropdown/_dropdown_mixin.scss +0 -36
  122. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_active_style_options.jsx +0 -90
  123. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_active_style_options_react.md +0 -4
  124. data/app/pb_kits/playbook/pb_gauge/docs/_description.md +0 -1
  125. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors_react.md +0 -2
  126. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex_react.md +0 -1
  127. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units_react.md +0 -1
  128. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors_react.md +0 -3
  129. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.md +0 -3
  130. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_show_checked_children.html.erb +0 -75
  131. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_show_checked_children.jsx +0 -94
  132. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_show_checked_children.md +0 -3
  133. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_strict_mode.html.erb +0 -10
  134. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_strict_mode.jsx +0 -26
  135. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_strict_mode.md +0 -3
  136. data/dist/chunks/_line_graph-D7DgMqnT.js +0 -1
  137. data/dist/chunks/_typeahead-BzYZCpJO.js +0 -6
  138. data/dist/chunks/_weekday_stacked-CCn-qLh_.js +0 -37
  139. data/dist/chunks/lib-CY5ZPzic.js +0 -29
  140. /data/app/pb_kits/playbook/pb_advanced_table/docs/{_advanced_table_row_styling_react.md → _advanced_table_row_styling.md} +0 -0
  141. /data/app/pb_kits/playbook/pb_gauge/docs/{_gauge_colors_rails.md → _gauge_colors.md} +0 -0
  142. /data/app/pb_kits/playbook/pb_gauge/docs/{_gauge_complex_rails.md → _gauge_complex.md} +0 -0
  143. /data/app/pb_kits/playbook/pb_line_graph/docs/{_line_graph_colors_rails.md → _line_graph_colors.md} +0 -0
@@ -1 +0,0 @@
1
- The optional `header` item can be used within `column_definitions` to render a custom header. This example shows an Icon and Tooltip being used but other kits can be used as well.
@@ -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
@@ -1 +0,0 @@
1
- **Important Note for the React Kit**: In order to leverage this kit, you must install `highcharts` and `highcharts-react-official` into your project as shown below. To then apply Playbook styles to your Highchart, import gaugeTheme.ts from playbook-ui and merge it with your Highchart options. Then, pass the merged value to the options prop. Playbook’s styling will be applied automatically. See the examples in the documentation below.
@@ -1,2 +0,0 @@
1
- Custom data colors allow for color customization to match the needs of business requirements.
2
- Pass the prop `plotOptions.solidgauge.borderColor` with a Playbook token like `colors.` + `data_1 | data_2 | data_3 | data_4 | data_5 | data_6 | data_7 | data_8`. Hex colors are also available `eg: #CA0095`
@@ -1 +0,0 @@
1
- We are able to wrap the Highcharts Gauge kit within Playbook kits (such as Flex and Card components).
@@ -1 +0,0 @@
1
- Use custom CSS with classes or inline styles (as shown in these docs) to customize the appearance of prefix and suffix units.
@@ -1,3 +0,0 @@
1
-
2
- Custom data colors allow for color customization to match the needs of business requirements.
3
- Import the colors from Playbook's tokens, then set custom colors in the colors array using the desired color variables. Hex colors are also available `eg: #CA0095`.
@@ -1,3 +0,0 @@
1
- By default, Highcharts have a height of 400px, but this can be customized. You can override the default by specifying either a percentage or a fixed pixel value.
2
-
3
- Using a percentage maintains a consistent aspect ratio across different responsive sizes. For example, setting the height to 50% makes the chart’s height half of its width.
@@ -1,75 +0,0 @@
1
- <% treeData = [{
2
- label: "Power Home Remodeling",
3
- value: "powerHomeRemodeling",
4
- id: "100",
5
- expanded: true,
6
- children: [
7
- {
8
- label: "People",
9
- value: "people",
10
- id: "101",
11
- children: [
12
- {
13
- label: "Talent Acquisition",
14
- value: "talentAcquisition",
15
- id: "102",
16
- },
17
- {
18
- label: "Business Affairs",
19
- value: "businessAffairs",
20
- id: "103",
21
- children: [
22
- {
23
- label: "Initiatives",
24
- value: "initiatives",
25
- id: "104",
26
- },
27
- {
28
- label: "Learning & Development",
29
- value: "learningAndDevelopment",
30
- id: "105",
31
- },
32
- ],
33
- },
34
- {
35
- label: "People Experience",
36
- value: "peopleExperience",
37
- id: "106",
38
- },
39
- ],
40
- },
41
- {
42
- label: "Contact Center",
43
- value: "contactCenter",
44
- id: "107",
45
- children: [
46
- {
47
- label: "Appointment Management",
48
- value: "appointmentManagement",
49
- id: "108",
50
- },
51
- {
52
- label: "Customer Service",
53
- value: "customerService",
54
- id: "109",
55
- },
56
- {
57
- label: "Energy",
58
- value: "energy",
59
- id: "110",
60
- },
61
- ],
62
- },
63
- ],
64
- }] %>
65
-
66
- <% # Pre-selected node IDs to demonstrate the functionality %>
67
- <% preSelectedIds = ["102", "104", "109"] %>
68
-
69
- <%= pb_rails("multi_level_select", props: {
70
- id: "multi-level-select-show-checked-children-rails",
71
- name: "my_array",
72
- tree_data: treeData,
73
- selected_ids: preSelectedIds,
74
- show_checked_children: false
75
- }) %>
@@ -1,94 +0,0 @@
1
- import React from "react";
2
- import MultiLevelSelect from "../_multi_level_select";
3
-
4
- const treeData = [
5
- {
6
- label: "Power Home Remodeling",
7
- value: "powerHomeRemodeling",
8
- id: "powerhome1",
9
- expanded: true,
10
- children: [
11
- {
12
- label: "People",
13
- value: "people",
14
- id: "people1",
15
- children: [
16
- {
17
- label: "Talent Acquisition",
18
- value: "talentAcquisition",
19
- id: "talent1",
20
- },
21
- {
22
- label: "Business Affairs",
23
- value: "businessAffairs",
24
- id: "business1",
25
- children: [
26
- {
27
- label: "Initiatives",
28
- value: "initiatives",
29
- id: "initiative1",
30
- },
31
- {
32
- label: "Learning & Development",
33
- value: "learningAndDevelopment",
34
- id: "development1",
35
- },
36
- ],
37
- },
38
- {
39
- label: "People Experience",
40
- value: "peopleExperience",
41
- id: "experience1",
42
- },
43
- ],
44
- },
45
- {
46
- label: "Contact Center",
47
- value: "contactCenter",
48
- id: "contact1",
49
- children: [
50
- {
51
- label: "Appointment Management",
52
- value: "appointmentManagement",
53
- id: "appointment1",
54
- },
55
- {
56
- label: "Customer Service",
57
- value: "customerService",
58
- id: "customer1",
59
- },
60
- {
61
- label: "Energy",
62
- value: "energy",
63
- id: "energy1",
64
- },
65
- ],
66
- },
67
- ],
68
- },
69
- ];
70
-
71
- // Pre-selected node IDs to demonstrate the functionality
72
- const preSelectedIds = ["talent1", "initiative1", "customer1"];
73
-
74
- const MultiLevelSelectShowCheckedChildren = (props) => {
75
- return (
76
- <div>
77
- <MultiLevelSelect
78
- id='multiselect-checked-children'
79
- onSelect={(selectedNodes) =>
80
- console.log(
81
- "Selected Items",
82
- selectedNodes
83
- )
84
- }
85
- selectedIds={preSelectedIds}
86
- showCheckedChildren={false}
87
- treeData={treeData}
88
- {...props}
89
- />
90
- </div>
91
- )
92
- };
93
-
94
- export default MultiLevelSelectShowCheckedChildren;
@@ -1,3 +0,0 @@
1
- If you wish to control the auto-expansion of nodes with selected descendants in your multi-level select, you can utilize `showCheckedChildren/show_checked_children`. This prop (set to 'true' by default) controls whether items will be expanded on first render. When set to true, a node with selected descendants will automatically render as expanded so the selected nodes are visible. If you do NOT wish for this to be the case, you can set this prop to false.
2
-
3
- The prop will still honor any `expanded` attribute set up within your tree data.
@@ -1,10 +0,0 @@
1
- <%= pb_rails("phone_number_input", props: {
2
- strict_mode: true,
3
- }) %>
4
-
5
- <%= pb_rails("body", props: { text: "With format_as_you_type" }) %>
6
-
7
- <%= pb_rails("phone_number_input", props: {
8
- strict_mode: true,
9
- format_as_you_type: true,
10
- }) %>
@@ -1,26 +0,0 @@
1
- import React from "react";
2
-
3
- import Body from '../../pb_body/_body'
4
- import PhoneNumberInput from '../../pb_phone_number_input/_phone_number_input'
5
-
6
- const PhoneNumberInputStrictMode = (props) => {
7
-
8
- return (
9
- <>
10
- <PhoneNumberInput
11
- id="strict"
12
- strictMode
13
- {...props}
14
- />
15
- <Body>With formatAsYouType</Body>
16
- <PhoneNumberInput
17
- formatAsYouType
18
- id="strict"
19
- strictMode
20
- {...props}
21
- />
22
- </>
23
- );
24
- };
25
-
26
- export default PhoneNumberInputStrictMode;
@@ -1,3 +0,0 @@
1
- Ignore any irrelevant characters and cap the length at the maximum valid number length.
2
-
3
- This can be combined with `format_as_you_type` / `formatAsYouType`.
@@ -1 +0,0 @@
1
- import{jsx,Fragment,jsxs}from"react/jsx-runtime";import{useState,useEffect}from"react";import{b as buildAriaProps,c as buildDataProps,d as buildHtmlProps,H as HighchartsReact,e as Highcharts,f as classnames,g as globalProps,h as HighchartsMore,S as SolidGauge,i as buildCss}from"./_typeahead-BzYZCpJO.js";import{c as colors,h as highchartsTheme,m as merge,a as highchartsDarkTheme,t as typography}from"./lib-CY5ZPzic.js";const mapColors=array=>{const regex=/(data)\-[1-8]/;const newArray=array.map((item=>regex.test(item)?`${colors[`data_${item[item.length-1]}`]}`:item));return newArray};const BarGraph=({aria:aria={},data:data={},align:align="center",axisTitle:axisTitle,dark:dark=false,chartData:chartData,className:className="pb_bar_graph",colors:colors2,htmlOptions:htmlOptions={},customOptions:customOptions={},axisFormat:axisFormat,id:id,pointStart:pointStart,stacking:stacking,subTitle:subTitle,type:type="column",title:title="Title",xAxisCategories:xAxisCategories,yAxisMin:yAxisMin,yAxisMax:yAxisMax,legend:legend=false,toggleLegendClick:toggleLegendClick=true,height:height,layout:layout="horizontal",verticalAlign:verticalAlign="bottom",x:x=0,y:y=0,...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const setupTheme=()=>{dark?Highcharts.setOptions(highchartsDarkTheme):Highcharts.setOptions(highchartsTheme)};setupTheme();const staticOptions={title:{text:title},chart:{height:height,type:type},subtitle:{text:subTitle},yAxis:[{labels:{format:typeof axisFormat==="string"?axisFormat:axisFormat&&axisFormat[0]?axisFormat[0].format:""},min:yAxisMin,max:yAxisMax,opposite:false,title:{text:Array.isArray(axisTitle)?axisTitle.length>0?axisTitle[0].name:null:axisTitle},plotLines:typeof yAxisMin!=="undefined"&&yAxisMin!==null?[]:[{value:0,zIndex:10,color:"#E4E8F0"}]}],xAxis:{categories:xAxisCategories},legend:{enabled:legend,align:align,verticalAlign:verticalAlign,layout:layout,x:x,y:y},colors:colors2!==void 0&&colors2.length>0?mapColors(colors2):highchartsTheme.colors,plotOptions:{series:{stacking:stacking,pointStart:pointStart,borderWidth:stacking?0:"",events:{},dataLabels:{enabled:false}}},series:chartData,credits:false};if(Array.isArray(axisTitle)&&axisTitle.length>1&&axisTitle[1].name){staticOptions.yAxis.push({labels:{format:typeof axisFormat==="string"?axisFormat:axisFormat[1].format},min:yAxisMin,max:yAxisMax,opposite:true,title:{text:axisTitle[1].name},plotLines:typeof yAxisMin!=="undefined"&&yAxisMin!==null?[]:[{value:0,zIndex:10,color:"#E4E8F0"}]})}if(!toggleLegendClick){staticOptions.plotOptions.series.events={legendItemClick:()=>false}}const filteredProps={...props};delete filteredProps.verticalAlign;const[options,setOptions]=useState({});useEffect((()=>{setOptions(merge(staticOptions,customOptions))}),[chartData]);return jsx(HighchartsReact,{containerProps:{className:classnames(globalProps(filteredProps),className),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts,options:options})};const alignBlockElement=event=>{const itemToMove=document.querySelector(`#wrapper-circle-chart-${event.target.renderTo.id} .pb-circle-chart-block`);const chartContainer=document.querySelector(`#${event.target.renderTo.id}`);if(itemToMove!==null&&chartContainer!==null){itemToMove.style.height=`${event.target.chartHeight}px`;itemToMove.style.width=`${event.target.chartWidth}px`;if(chartContainer.firstChild!==null){chartContainer.firstChild.before(itemToMove)}}};const CircleChart=({align:align="center",aria:aria={},rounded:rounded=false,borderColor:borderColor=(rounded?null:""),borderWidth:borderWidth=(rounded?20:null),chartData:chartData,children:children,className:className,colors:colors2=[],customOptions:customOptions={},dark:dark=false,data:data={},dataLabelHtml:dataLabelHtml="<div>{point.name}</div>",dataLabels:dataLabels=false,height:height,htmlOptions:htmlOptions={},id:id,innerSize:innerSize="md",legend:legend=false,maxPointSize:maxPointSize=null,minPointSize:minPointSize=null,startAngle:startAngle=null,style:style="pie",title:title,tooltipHtml:tooltipHtml,useHtml:useHtml=false,zMin:zMin=null,layout:layout="horizontal",verticalAlign:verticalAlign="bottom",x:x=0,y:y=0,...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);HighchartsMore(Highcharts);const setupTheme=()=>{dark?Highcharts.setOptions(highchartsDarkTheme):Highcharts.setOptions(highchartsTheme)};setupTheme();Highcharts.setOptions({tooltip:{headerFormat:null,pointFormat:tooltipHtml?tooltipHtml:'<span style="font-weight: bold; color:{point.color};">●</span>{point.name}: <b>{point.y}</b>',useHTML:useHtml}});const innerSizes={sm:"35%",md:"50%",lg:"85%",none:"0%"};const innerSizeFormat=size=>innerSizes[size];const filteredProps={...props};delete filteredProps.verticalAlign;const[options,setOptions]=useState({});useEffect((()=>{const formattedChartData=chartData.map((obj=>{obj.y=obj.value;delete obj.value;return obj}));const staticOptions={title:{text:title},chart:{height:height,type:style,events:{render:event=>alignBlockElement(event),redraw:event=>alignBlockElement(event)}},legend:{align:align,verticalAlign:verticalAlign,layout:layout,x:x,y:y},plotOptions:{pie:{colors:colors2.length>0?mapColors(colors2):highchartsTheme.colors,dataLabels:{enabled:dataLabels,connectorShape:"straight",connectorWidth:3,format:dataLabelHtml},showInLegend:legend}},series:[{minPointSize:minPointSize,maxPointSize:maxPointSize,innerSize:borderWidth==20?"100%":innerSizeFormat(innerSize),data:formattedChartData,zMin:zMin,startAngle:startAngle,borderWidth:borderWidth,borderColor:borderColor}],credits:false};setOptions(merge(staticOptions,customOptions))}),[chartData]);return jsx(Fragment,{children:children?jsxs("div",{id:`wrapper-circle-chart-${id}`,children:[jsx(HighchartsReact,{containerProps:{className:classnames("pb_circle_chart",globalProps(filteredProps)),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts,options:options}),jsx("div",{className:"pb-circle-chart-block",children:children})]}):jsx(HighchartsReact,{containerProps:{className:classnames("pb_circle_chart",globalProps(filteredProps)),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts,options:options})})};const Gauge=({aria:aria={},chartData:chartData,customOptions:customOptions={},dark:dark=false,data:data={},disableAnimation:disableAnimation=false,fullCircle:fullCircle=false,height:height=null,htmlOptions:htmlOptions={},id:id,max:max=100,min:min=0,prefix:prefix="",showLabels:showLabels=false,style:style="solidgauge",suffix:suffix="",title:title="",tooltipHtml:tooltipHtml='<span style="font-weight: bold; color:{point.color};">●</span>{point.name}: <b>{point.y}</b>',colors:colors$1=[],minorTickInterval:minorTickInterval=null,circumference:circumference=(fullCircle?[0,360]:[-100,100]),...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);HighchartsMore(Highcharts);SolidGauge(Highcharts);const setupTheme=()=>{dark?Highcharts.setOptions(highchartsDarkTheme):Highcharts.setOptions(highchartsTheme)};setupTheme();Highcharts.setOptions({tooltip:{pointFormat:tooltipHtml,followPointer:true}});const css=buildCss({pb_gauge_kit:true});const[options,setOptions]=useState({});useEffect((()=>{const formattedChartData=chartData.map((obj=>{obj.y=obj.value;delete obj.value;return obj}));const staticOptions={chart:{events:{load(){setTimeout(this.reflow.bind(this),0)}},type:style,height:height},title:{text:title},yAxis:{min:min,max:max,lineWidth:0,tickWidth:0,minorTickInterval:minorTickInterval,tickAmount:2,tickPositions:[min,max],labels:{y:26,enabled:showLabels}},credits:false,series:[{data:formattedChartData}],pane:{center:["50%","50%"],size:"90%",startAngle:circumference[0],endAngle:circumference[1],background:{borderWidth:20,innerRadius:"90%",outerRadius:"90%",shape:"arc",className:"gauge-pane"}},colors:colors$1!==void 0&&colors$1.length>0?mapColors(colors$1):highchartsTheme.colors,plotOptions:{series:{animation:!disableAnimation},solidgauge:{borderColor:colors$1!==void 0&&colors$1.length===1?mapColors(colors$1).join():highchartsTheme.colors[0],borderWidth:20,radius:90,innerRadius:"90%",dataLabels:{borderWidth:0,color:colors.text_lt_default,enabled:true,format:`<span class="prefix${dark?" dark":""}">${prefix}</span><span class="fix${dark?" dark":""}">{y:,f}</span><span class="suffix${dark?" dark":""}">${suffix}</span>`,style:{fontFamily:typography.font_family_base,fontWeight:typography.regular,fontSize:typography.heading_2},y:-26}}}};setOptions(merge(staticOptions,customOptions));if(document.querySelector(".prefix")){document.querySelectorAll(".prefix").forEach((prefix2=>{prefix2.setAttribute("y","28")}));document.querySelectorAll(".fix").forEach((fix=>fix.setAttribute("y","38")))}}),[chartData]);return jsx(HighchartsReact,{containerProps:{className:classnames(css,globalProps(props)),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts,options:options})};const LineGraph=({aria:aria={},data:data={},align:align="center",className:className="pb_bar_graph",customOptions:customOptions={},dark:dark=false,gradient:gradient=false,type:type="line",htmlOptions:htmlOptions={},id:id,legend:legend=false,toggleLegendClick:toggleLegendClick=true,layout:layout="horizontal",verticalAlign:verticalAlign="bottom",x:x=0,y:y=0,axisTitle:axisTitle,xAxisCategories:xAxisCategories,yAxisMin:yAxisMin,yAxisMax:yAxisMax,chartData:chartData,pointStart:pointStart,subTitle:subTitle,title:title,height:height,colors:colors2=[],...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const setupTheme=()=>{dark?Highcharts.setOptions(highchartsDarkTheme):Highcharts.setOptions(highchartsTheme)};setupTheme();const staticOptions={title:{text:title},chart:{height:height,type:type},subtitle:{text:subTitle},yAxis:{min:yAxisMin,max:yAxisMax,title:{text:axisTitle}},xAxis:{categories:xAxisCategories},legend:{enabled:legend,align:align,verticalAlign:verticalAlign,layout:layout,x:x,y:y},colors:colors2!==void 0&&colors2.length>0?mapColors(colors2):highchartsTheme.colors,plotOptions:{series:{pointStart:pointStart,events:{},dataLabels:{enabled:false}}},series:chartData,credits:false};if(!toggleLegendClick){staticOptions.plotOptions.series.events={legendItemClick:()=>false}}const filteredProps={...props};delete filteredProps.verticalAlign;const[options,setOptions]=useState({});useEffect((()=>{setOptions(merge(staticOptions,customOptions))}),[chartData]);return jsx(HighchartsReact,{containerProps:{className:classnames(globalProps(filteredProps),className),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts,options:options})};export{BarGraph as B,CircleChart as C,Gauge as G,LineGraph as L};