playbook_ui_docs 14.23.0.pre.alpha.play23129273 → 14.23.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 (131) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +6 -14
  3. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +0 -5
  4. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_colors.jsx +15 -33
  5. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.jsx +72 -0
  6. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.md +6 -0
  7. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_default.jsx +15 -33
  8. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.jsx +22 -52
  9. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_horizontal.jsx +16 -12
  10. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend.jsx +15 -31
  11. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_non_clickable.jsx +16 -39
  12. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.jsx +38 -86
  13. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.md +1 -1
  14. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_negative_numbers.jsx +15 -32
  15. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_pb_styles.jsx +64 -0
  16. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_pb_styles.md +1 -0
  17. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.jsx +22 -72
  18. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.md +1 -1
  19. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.jsx +15 -31
  20. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_stacked.jsx +16 -37
  21. data/app/pb_kits/playbook/pb_bar_graph/docs/_description.md +3 -1
  22. data/app/pb_kits/playbook/pb_bar_graph/docs/example.yml +3 -1
  23. data/app/pb_kits/playbook/pb_bar_graph/docs/index.js +2 -0
  24. data/app/pb_kits/playbook/pb_body/docs/_body_truncate.jsx +3 -3
  25. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_indeterminate.html.erb +1 -1
  26. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_indeterminate_rails.md +1 -2
  27. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.jsx +26 -71
  28. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors.jsx +16 -29
  29. data/app/pb_kits/playbook/pb_circle_chart/docs/{_circle_chart_colors_rails.md → _circle_chart_colors.md} +1 -1
  30. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.jsx +16 -28
  31. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_custom_tooltip.md +2 -4
  32. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_default.jsx +15 -23
  33. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_inner_sizes.jsx +51 -81
  34. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.jsx +75 -103
  35. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_legend_position.md +7 -4
  36. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_live_data.jsx +13 -19
  37. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_pb_styles.jsx +38 -0
  38. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_pb_styles.md +1 -0
  39. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_rounded.jsx +17 -30
  40. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_labels.jsx +20 -34
  41. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_legend_kit.jsx +20 -29
  42. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_with_title.jsx +20 -28
  43. data/app/pb_kits/playbook/pb_circle_chart/docs/example.yml +1 -0
  44. data/app/pb_kits/playbook/pb_circle_chart/docs/index.js +1 -0
  45. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_radio_options.jsx +0 -1
  46. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_radio_options_react.md +1 -1
  47. data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +2 -3
  48. data/app/pb_kits/playbook/pb_dropdown/docs/index.js +1 -2
  49. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors.jsx +15 -32
  50. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex.jsx +9 -35
  51. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_default.jsx +14 -26
  52. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_disable_animation.jsx +15 -32
  53. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_full_circle.jsx +17 -45
  54. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_height.jsx +22 -59
  55. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_live_data.jsx +9 -40
  56. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.jsx +18 -50
  57. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_pb_styles.jsx +30 -0
  58. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_pb_styles.md +1 -0
  59. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.jsx +18 -31
  60. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_title.jsx +17 -34
  61. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units.jsx +23 -64
  62. data/app/pb_kits/playbook/pb_gauge/docs/example.yml +1 -0
  63. data/app/pb_kits/playbook/pb_gauge/docs/index.js +1 -0
  64. data/app/pb_kits/playbook/pb_line_graph/docs/_description.md +3 -1
  65. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors.jsx +17 -36
  66. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_default.jsx +16 -31
  67. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx +31 -63
  68. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend.jsx +16 -35
  69. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_nonclickable.jsx +16 -41
  70. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.jsx +62 -107
  71. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.md +7 -4
  72. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_pb_styles.jsx +52 -0
  73. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_pb_styles.md +1 -0
  74. data/app/pb_kits/playbook/pb_line_graph/docs/example.yml +1 -0
  75. data/app/pb_kits/playbook/pb_line_graph/docs/index.js +1 -0
  76. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_default_rails.md +1 -3
  77. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_default_react.md +1 -3
  78. data/app/pb_kits/playbook/pb_phone_number_input/docs/example.yml +0 -2
  79. data/app/pb_kits/playbook/pb_phone_number_input/docs/index.js +0 -1
  80. data/app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.html.erb +0 -1
  81. data/app/pb_kits/playbook/pb_title/docs/_title_truncate.jsx +3 -3
  82. data/app/pb_kits/playbook/pb_tooltip/docs/example.yml +0 -1
  83. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_continuous.jsx +69 -0
  84. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_default.jsx +71 -0
  85. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_multi_beacon.jsx +110 -0
  86. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_no_beacon.jsx +76 -0
  87. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_no_overlay.jsx +76 -0
  88. data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx +76 -0
  89. data/app/pb_kits/playbook/pb_walkthrough/docs/example.yml +10 -0
  90. data/app/pb_kits/playbook/pb_walkthrough/docs/index.js +6 -0
  91. data/dist/playbook-doc.js +2 -2
  92. metadata +28 -42
  93. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_custom_sort.jsx +0 -65
  94. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_custom_sort.md +0 -5
  95. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling.html.erb +0 -46
  96. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling_rails.md +0 -7
  97. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_per_column.jsx +0 -55
  98. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_per_column.md +0 -6
  99. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_per_column_for_multi_column.jsx +0 -80
  100. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_per_column_for_multi_column.md +0 -1
  101. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header.jsx +0 -69
  102. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header.md +0 -1
  103. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_multi_header.jsx +0 -107
  104. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_multi_header.md +0 -1
  105. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_rails.html.erb +0 -51
  106. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_rails.md +0 -1
  107. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_height.md +0 -3
  108. data/app/pb_kits/playbook/pb_body/docs/_body_truncate_react.md +0 -4
  109. data/app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_colors_react.md +0 -2
  110. data/app/pb_kits/playbook/pb_circle_chart/docs/_description.md +0 -1
  111. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_active_style_options.jsx +0 -90
  112. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_active_style_options_react.md +0 -4
  113. data/app/pb_kits/playbook/pb_gauge/docs/_description.md +0 -1
  114. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_colors_react.md +0 -2
  115. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex_react.md +0 -1
  116. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units_react.md +0 -1
  117. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_colors_react.md +0 -3
  118. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.md +0 -3
  119. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_strict_mode.html.erb +0 -10
  120. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_strict_mode.jsx +0 -26
  121. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_strict_mode.md +0 -3
  122. data/app/pb_kits/playbook/pb_title/docs/_title_truncate_react.md +0 -4
  123. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_click_open.html.erb +0 -14
  124. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_click_open_rails.md +0 -1
  125. /data/app/pb_kits/playbook/pb_advanced_table/docs/{_advanced_table_row_styling_react.md → _advanced_table_row_styling.md} +0 -0
  126. /data/app/pb_kits/playbook/pb_body/docs/{_body_truncate_rails.md → _body_truncate.md} +0 -0
  127. /data/app/pb_kits/playbook/pb_gauge/docs/{_gauge_colors_rails.md → _gauge_colors.md} +0 -0
  128. /data/app/pb_kits/playbook/pb_gauge/docs/{_gauge_complex_rails.md → _gauge_complex.md} +0 -0
  129. /data/app/pb_kits/playbook/pb_line_graph/docs/{_line_graph_colors_rails.md → _line_graph_colors.md} +0 -0
  130. /data/app/pb_kits/playbook/pb_title/docs/{_title_truncate_rails.md → _title_truncate.md} +0 -0
  131. /data/app/pb_kits/playbook/pb_tooltip/docs/{_tooltip_click_open_react.md → _tooltip_click_open.md} +0 -0
@@ -1,107 +0,0 @@
1
- import React from "react"
2
- import AdvancedTable from '../../pb_advanced_table/_advanced_table'
3
- import Icon from "../../pb_icon/_icon"
4
- import Flex from "../../pb_flex/_flex"
5
- import Caption from "../../pb_caption/_caption"
6
- import Tooltip from "../../pb_tooltip/_tooltip"
7
- import MOCK_DATA from "./advanced_table_mock_data.json"
8
-
9
- const AdvancedTableWithCustomHeaderMultiHeader = (props) => {
10
-
11
- const columnDefinitions = [
12
- {
13
- accessor: "year",
14
- label: "Year",
15
- id: "year",
16
- cellAccessors: ["quarter", "month", "day"],
17
- },
18
- {
19
- label: "Enrollment Data",
20
- id: "enrollmentData",
21
- header: () => (
22
- <Flex alignItems="center"
23
- justifyContent="center"
24
- >
25
- <Caption marginRight="xs">Enrollments Data</Caption>
26
- <Tooltip placement="top"
27
- text="Whoa. I'm a Tooltip"
28
- zIndex={10}
29
- >
30
- <Icon cursor="pointer"
31
- icon="info"
32
- size="xs"
33
- />
34
- </Tooltip>
35
- </Flex>
36
- ),
37
- columns: [
38
- {
39
- label: "Enrollment Stats",
40
- id: "enrollmentStats",
41
- columns: [
42
- {
43
- accessor: "newEnrollments",
44
- id: "newEnrollments",
45
- label: "New Enrollments",
46
- },
47
- {
48
- accessor: "scheduledMeetings",
49
- id: "scheduledMeetings",
50
- label: "Scheduled Meetings",
51
- },
52
- ],
53
- },
54
- ],
55
- },
56
- {
57
- label: "Performance Data",
58
- id: "performanceData",
59
- columns: [
60
- {
61
- label: "Completion Metrics",
62
- id: "completionMetrics",
63
- columns: [
64
- {
65
- accessor: "completedClasses",
66
- label: "Completed Classes",
67
- id: "completedClasses",
68
- },
69
- {
70
- accessor: "classCompletionRate",
71
- label: "Class Completion Rate",
72
- id: "classCompletionRate",
73
- },
74
- ],
75
- },
76
- {
77
- label: "Attendance",
78
- id: "attendance",
79
- columns: [
80
- {
81
- accessor: "attendanceRate",
82
- label: "Attendance Rate",
83
- id: "attendanceRate",
84
- },
85
- {
86
- accessor: "scheduledMeetings",
87
- label: "Scheduled Meetings",
88
- id: "scheduledMeetings",
89
- },
90
- ],
91
- },
92
- ],
93
- },
94
- ];
95
-
96
- return (
97
- <div>
98
- <AdvancedTable
99
- columnDefinitions={columnDefinitions}
100
- tableData={MOCK_DATA}
101
- {...props}
102
- />
103
- </div>
104
- )
105
- }
106
-
107
- export default AdvancedTableWithCustomHeaderMultiHeader;
@@ -1 +0,0 @@
1
- The optional `header` key/value pair within `columnDefinitions` can also be used with multi headers as seen here.
@@ -1,51 +0,0 @@
1
- <%
2
- column_definitions = [
3
- {
4
- accessor: "year",
5
- label: "Year",
6
- cellAccessors: ["quarter", "month", "day"],
7
- },
8
- {
9
- accessor: "newEnrollments",
10
- label: "New Enrollments",
11
- header: ->(cell, label) {
12
- capture do
13
- pb_rails("flex", props: { align_items: "center", justify_content: "center" }) do
14
- pb_rails("caption", props: { margin_right: "xs", text: "New Enrollments" }) +
15
- pb_rails("icon", props: { id: "tooltip-interact", icon: "info", size: "xs" }) +
16
- pb_rails("tooltip", props: {
17
- trigger_element_id: "tooltip-interact",
18
- tooltip_id: "example-custom-tooltip",
19
- position: "top",
20
- z_index: "10"
21
- }) do
22
- "Whoa. I'm a Tooltip"
23
- end
24
- end
25
- end
26
- }
27
- },
28
- {
29
- accessor: "scheduledMeetings",
30
- label: "Scheduled Meetings",
31
- },
32
- {
33
- accessor: "attendanceRate",
34
- label: "Attendance Rate",
35
- },
36
- {
37
- accessor: "completedClasses",
38
- label: "Completed Classes",
39
- },
40
- {
41
- accessor: "classCompletionRate",
42
- label: "Class Completion Rate",
43
- },
44
- {
45
- accessor: "graduatedStudents",
46
- label: "Graduated Students",
47
- }
48
- ]
49
- %>
50
-
51
- <%= pb_rails("advanced_table", props: { id: "custom_header_table", table_data: @table_data, column_definitions: column_definitions }) %>
@@ -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,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,4 +0,0 @@
1
- ##### Prop
2
- `truncate` | **Type**: Enum | **Values**: 1 | 2 | 3 | 4 | 5
3
-
4
- The `truncate` prop truncates overflowing text up to a maximum of five rows and adds an ellipsis at the end.
@@ -1,2 +0,0 @@
1
- Custom data colors allow for color customization to match the needs of business requirements.
2
- Import the colors from Playbook's tokens, then set custom colors in the plotOptions.pie.colors array using the desired color variables. Hex colors are also available `eg: #CA0095`.
@@ -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 circleChartTheme.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,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,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,4 +0,0 @@
1
- ##### Prop
2
- `truncate` | **Type**: Enum | **Values**: 1 | 2 | 3 | 4 | 5
3
-
4
- The `truncate` prop truncates overflowing text up to a maximum of five rows and adds an ellipsis at the end.
@@ -1,14 +0,0 @@
1
- <%= pb_rails("button", props: {
2
- text: "Click to Open",
3
- id: "click-tooltip-trigger-1",
4
- variant: "primary"
5
- }) %>
6
-
7
- <%= pb_rails("tooltip", props: {
8
- trigger_element_selector: "#click-tooltip-trigger-1",
9
- tooltip_id: "click-tooltip-1",
10
- position: "top",
11
- use_click_to_open: true
12
- }) do %>
13
- Tooltip opened by click! Click trigger again to close.
14
- <% end %>
@@ -1 +0,0 @@
1
- Set the prop `use_click_to_open` as `true` so that the tooltip will only appear when an item is clicked rather than hovered over.