playbook_ui 14.18.0.pre.alpha.PLAY2037selectinlinecareterror7490 → 14.18.0.pre.alpha.PLAY2048phonenumberinputcountrysearch7456

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 (43) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +21 -304
  3. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +1 -5
  4. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.rb +1 -6
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +2 -3
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -2
  7. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_error.html.erb +2 -2
  8. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_error.html.erb +2 -5
  9. data/app/pb_kits/playbook/pb_filter/docs/example.yml +0 -1
  10. data/app/pb_kits/playbook/pb_form_group/_error_state_mixin.scss +18 -22
  11. data/app/pb_kits/playbook/pb_line_graph/docs/example.yml +0 -1
  12. data/app/pb_kits/playbook/pb_line_graph/docs/index.js +0 -1
  13. data/app/pb_kits/playbook/pb_popover/docs/example.yml +0 -1
  14. data/app/pb_kits/playbook/pb_popover/index.ts +1 -13
  15. data/app/pb_kits/playbook/pb_popover/popover.rb +0 -2
  16. data/app/pb_kits/playbook/pb_select/_select.scss +0 -10
  17. data/app/pb_kits/playbook/pb_select/docs/_select_error.html.erb +1 -1
  18. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_error.html.erb +1 -1
  19. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_error.html.erb +1 -5
  20. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_error_state.html.erb +1 -8
  21. data/dist/chunks/{_typeahead-D8CsVBZO.js → _typeahead-D4Ack5Pn.js} +1 -1
  22. data/dist/chunks/_weekday_stacked-DWOZhThL.js +45 -0
  23. data/dist/chunks/{lib-BmTAc7Nc.js → lib-96_ZmvAo.js} +1 -1
  24. data/dist/chunks/{pb_form_validation-BWjy4bFn.js → pb_form_validation-Vv2TqXVC.js} +1 -1
  25. data/dist/chunks/vendor.js +1 -1
  26. data/dist/playbook-doc.js +1 -1
  27. data/dist/playbook-rails-react-bindings.js +1 -1
  28. data/dist/playbook-rails.js +1 -1
  29. data/dist/playbook.css +1 -1
  30. data/lib/playbook/version.rb +1 -1
  31. metadata +6 -17
  32. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color.jsx +0 -80
  33. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color.md +0 -3
  34. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color_rails.html.erb +0 -58
  35. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color_rails.md +0 -3
  36. data/app/pb_kits/playbook/pb_filter/docs/_filter_within_turbo_frames.html.erb +0 -41
  37. data/app/pb_kits/playbook/pb_filter/docs/_filter_within_turbo_frames.md +0 -1
  38. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_pb_styles.jsx +0 -52
  39. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_pb_styles.md +0 -1
  40. data/app/pb_kits/playbook/pb_line_graph/lineGraphTheme.ts +0 -110
  41. data/app/pb_kits/playbook/pb_popover/docs/_popover_append_to.html.erb +0 -46
  42. data/app/pb_kits/playbook/pb_popover/docs/_popover_append_to.md +0 -1
  43. data/dist/chunks/_weekday_stacked-D3oLTSkH.js +0 -45
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "14.18.0"
5
- VERSION = "14.18.0.pre.alpha.PLAY2037selectinlinecareterror7490"
5
+ VERSION = "14.18.0.pre.alpha.PLAY2048phonenumberinputcountrysearch7456"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 14.18.0.pre.alpha.PLAY2037selectinlinecareterror7490
4
+ version: 14.18.0.pre.alpha.PLAY2048phonenumberinputcountrysearch7456
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2025-05-05 00:00:00.000000000 Z
12
+ date: 2025-04-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -294,10 +294,6 @@ files:
294
294
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.md
295
295
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail_rails.html.erb
296
296
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail_rails.md
297
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color.jsx
298
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color.md
299
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color_rails.html.erb
300
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color_rails.md
301
297
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.html.erb
302
298
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.jsx
303
299
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.md
@@ -1430,8 +1426,6 @@ files:
1430
1426
  - app/pb_kits/playbook/pb_filter/docs/_filter_popover_props_react.md
1431
1427
  - app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
1432
1428
  - app/pb_kits/playbook/pb_filter/docs/_filter_single.jsx
1433
- - app/pb_kits/playbook/pb_filter/docs/_filter_within_turbo_frames.html.erb
1434
- - app/pb_kits/playbook/pb_filter/docs/_filter_within_turbo_frames.md
1435
1429
  - app/pb_kits/playbook/pb_filter/docs/_sort_only.html.erb
1436
1430
  - app/pb_kits/playbook/pb_filter/docs/_sort_only.jsx
1437
1431
  - app/pb_kits/playbook/pb_filter/docs/example.yml
@@ -1943,13 +1937,10 @@ files:
1943
1937
  - app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.html.erb
1944
1938
  - app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.jsx
1945
1939
  - app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.md
1946
- - app/pb_kits/playbook/pb_line_graph/docs/_line_graph_pb_styles.jsx
1947
- - app/pb_kits/playbook/pb_line_graph/docs/_line_graph_pb_styles.md
1948
1940
  - app/pb_kits/playbook/pb_line_graph/docs/example.yml
1949
1941
  - app/pb_kits/playbook/pb_line_graph/docs/index.js
1950
1942
  - app/pb_kits/playbook/pb_line_graph/lineGraph.test.js
1951
1943
  - app/pb_kits/playbook/pb_line_graph/lineGraphSettings.js
1952
- - app/pb_kits/playbook/pb_line_graph/lineGraphTheme.ts
1953
1944
  - app/pb_kits/playbook/pb_line_graph/line_graph.html.erb
1954
1945
  - app/pb_kits/playbook/pb_line_graph/line_graph.rb
1955
1946
  - app/pb_kits/playbook/pb_link/_link.scss
@@ -2406,8 +2397,6 @@ files:
2406
2397
  - app/pb_kits/playbook/pb_popover/docs/_description.md
2407
2398
  - app/pb_kits/playbook/pb_popover/docs/_popover_actionable_content.html.erb
2408
2399
  - app/pb_kits/playbook/pb_popover/docs/_popover_actionable_content.jsx
2409
- - app/pb_kits/playbook/pb_popover/docs/_popover_append_to.html.erb
2410
- - app/pb_kits/playbook/pb_popover/docs/_popover_append_to.md
2411
2400
  - app/pb_kits/playbook/pb_popover/docs/_popover_close.html.erb
2412
2401
  - app/pb_kits/playbook/pb_popover/docs/_popover_close.jsx
2413
2402
  - app/pb_kits/playbook/pb_popover/docs/_popover_default.html.erb
@@ -3538,11 +3527,11 @@ files:
3538
3527
  - app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
3539
3528
  - app/pb_kits/playbook/utilities/text.ts
3540
3529
  - app/pb_kits/playbook/utilities/validEmojiChecker.ts
3541
- - dist/chunks/_typeahead-D8CsVBZO.js
3542
- - dist/chunks/_weekday_stacked-D3oLTSkH.js
3530
+ - dist/chunks/_typeahead-D4Ack5Pn.js
3531
+ - dist/chunks/_weekday_stacked-DWOZhThL.js
3543
3532
  - dist/chunks/lazysizes-B7xYodB-.js
3544
- - dist/chunks/lib-BmTAc7Nc.js
3545
- - dist/chunks/pb_form_validation-BWjy4bFn.js
3533
+ - dist/chunks/lib-96_ZmvAo.js
3534
+ - dist/chunks/pb_form_validation-Vv2TqXVC.js
3546
3535
  - dist/chunks/vendor.js
3547
3536
  - dist/menu.yml
3548
3537
  - dist/playbook-doc.js
@@ -1,80 +0,0 @@
1
- import React from "react"
2
- import AdvancedTable from '../../pb_advanced_table/_advanced_table'
3
- import MOCK_DATA from "./advanced_table_mock_data.json"
4
-
5
- const AdvancedTableColumnBorderColors = (props) => {
6
- const columnDefinitions = [
7
- {
8
- accessor: "year",
9
- label: "Year",
10
- cellAccessors: ["quarter", "month", "day"],
11
- },
12
- {
13
- label: "Enrollment Data",
14
- columns: [
15
- {
16
- label: "Enrollment Stats",
17
- columns: [
18
- {
19
- accessor: "newEnrollments",
20
- label: "New Enrollments",
21
- },
22
- {
23
- accessor: "scheduledMeetings",
24
- label: "Scheduled Meetings",
25
- },
26
- ],
27
- },
28
- ],
29
- },
30
- {
31
- label: "Performance Data",
32
- columns: [
33
- {
34
- label: "Completion Metrics",
35
- columns: [
36
- {
37
- accessor: "completedClasses",
38
- label: "Completed Classes",
39
- },
40
- {
41
- accessor: "classCompletionRate",
42
- label: "Class Completion Rate",
43
- },
44
- ],
45
- },
46
- {
47
- label: "Attendance",
48
- columns: [
49
- {
50
- accessor: "attendanceRate",
51
- label: "Attendance Rate",
52
- },
53
- {
54
- accessor: "scheduledMeetings",
55
- label: "Scheduled Meetings",
56
- },
57
- ],
58
- },
59
- ],
60
- },
61
- ];
62
-
63
- const tableProps = {
64
- verticalBorder: true
65
- }
66
-
67
- return (
68
- <>
69
- <AdvancedTable
70
- columnDefinitions={columnDefinitions}
71
- columnGroupBorderColor="text_lt_default"
72
- tableData={MOCK_DATA}
73
- tableProps={tableProps}
74
- {...props}
75
- />
76
- </>
77
- )
78
- }
79
-
80
- export default AdvancedTableColumnBorderColors
@@ -1,3 +0,0 @@
1
- The borders of column groups can be set to a different color using the `columnGroupBorderColor` prop. In order for these borders to be visible, this prop must be used with `tableProps` and `verticalBorder` set to true.
2
-
3
- The available colors for the border are Playbook's Text Colors, which can be found [here](https://playbook.powerapp.cloud/visual_guidelines/colors).
@@ -1,58 +0,0 @@
1
- <% column_definitions = [
2
- {
3
- accessor: "year",
4
- label: "Year",
5
- cellAccessors: ["quarter", "month", "day"],
6
- },
7
- {
8
- label: "Enrollment Data",
9
- columns: [
10
- {
11
- label: "Enrollment Stats",
12
- columns: [
13
- {
14
- accessor: "newEnrollments",
15
- label: "New Enrollments",
16
- },
17
- {
18
- accessor: "scheduledMeetings",
19
- label: "Scheduled Meetings",
20
- },
21
- ],
22
- },
23
- ],
24
- },
25
- {
26
- label: "Performance Data",
27
- columns: [
28
- {
29
- label: "Completion Metrics",
30
- columns: [
31
- {
32
- accessor: "completedClasses",
33
- label: "Completed Classes",
34
- },
35
- {
36
- accessor: "classCompletionRate",
37
- label: "Class Completion Rate",
38
- },
39
- ],
40
- },
41
- {
42
- label: "Attendance",
43
- columns: [
44
- {
45
- accessor: "attendanceRate",
46
- label: "Attendance Rate",
47
- },
48
- {
49
- accessor: "scheduledMeetings",
50
- label: "Scheduled Meetings",
51
- },
52
- ],
53
- },
54
- ],
55
- },
56
- ] %>
57
-
58
- <%= pb_rails("advanced_table", props: { id: "beta_table_with_muilti_headers", table_data: @table_data, column_definitions: column_definitions, column_group_border_color: "text_lt_default", table_props: { vertical_border: true } }) %>
@@ -1,3 +0,0 @@
1
- The borders of column groups can be set to a different color using the `column_group_border_color` prop. In order for these borders to be visible, this prop must be used with `table_props` and `vertical_border` set to true.
2
-
3
- The available colors for the border are Playbook's Text Colors, which can be found [here](https://playbook.powerapp.cloud/visual_guidelines/colors).
@@ -1,41 +0,0 @@
1
- <%=
2
- pb_rails("filter", props: {
3
- id: "filter_within_trubo_frames",
4
- position: "top",
5
- filters: [
6
- { name: "name", value: "John Wick" },
7
- { name: "city", value: "San Francisco"}
8
- ],
9
- sort_menu: [
10
- { item: "Popularity", link: "?q[sorts]=managers_popularity+asc", active: true, direction: "desc" },
11
- { item: "Mananger's Title", link: "?q[sorts]=managers_title+asc", active: false },
12
- { item: "Manager's Name", link: "?q[sorts]=managers_name+asc", active: false },
13
- ],
14
- template: "default",
15
- results: 1,
16
- popover_props: { append_to: "parent" },
17
- }) do
18
- %>
19
- <%
20
- example_collection = [
21
- OpenStruct.new(name: "USA", value: 1),
22
- OpenStruct.new(name: "Canada", value: 2),
23
- OpenStruct.new(name: "Brazil", value: 3),
24
- OpenStruct.new(name: "Philippines", value: 4),
25
- OpenStruct.new(name: "A galaxy far far away, like really far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far away...", value: 5)
26
- ]
27
- %>
28
- <%= pb_rails("form", props: { form_system_options: { scope: :example, method: :get } }) do |form| %>
29
- <%= form.text_field :example_text_field, props: { label: true } %>
30
- <%= form.collection_select :example_collection_select, example_collection, :value, :name, props: {max_width: "sm", label: true } %>
31
-
32
- <%= form.actions do |action| %>
33
- <%= action.submit props: {
34
- text: "Apply",
35
- data: {
36
- disable_with: "pb_rails('icon', props: { icon: 'spinner', spin: true, fixed_width: true })Searching...".html_safe
37
- },}%>
38
- <%= action.button props: { type: "reset", text: "Clear", variant: "secondary" } %>
39
- <% end %>
40
- <% end %>
41
- <% end %>
@@ -1 +0,0 @@
1
- By default, the filter popover attaches to the `<body>`. To attach it elsewhere, like inside a Turbo Frame, pass the `append_to` prop through `popover_props`. Set it to `"parent"` to place the tooltip inside its parent element, or pass any CSS selector (`#id` or `.class`) to specify a custom container.
@@ -1,52 +0,0 @@
1
- import React from 'react'
2
- import lineGraphTheme from '../lineGraphTheme'
3
- import Highcharts from "highcharts"
4
- import HighchartsReact from "highcharts-react-official"
5
-
6
- const data = [{
7
- name: 'Installation',
8
- data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175],
9
- }, {
10
- name: 'Manufacturing',
11
- data: [24916, 24064, 29742, 29851, 32490, 30282, 38121, 40434],
12
- }, {
13
- name: 'Sales & Distribution',
14
- data: [11744, 17722, 16005, 19771, 20185, 24377, 32147, 39387],
15
- }, {
16
- name: 'Project Development',
17
- data: [null, null, 7988, 12169, 15112, 22452, 34400, 34227],
18
- }, {
19
- name: 'Other',
20
- data: [12908, 5948, 8105, 11248, 8989, 11816, 18274, 18111],
21
- }]
22
-
23
- const categories = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
24
-
25
- const baseOptions = {
26
- series: data,
27
- title: { text: "Solar Employment Growth by Sector, 2010-2016" },
28
- subtitle: { text: "Source: thesolarfoundation.com" },
29
- xAxis: {
30
- categories: categories,
31
- },
32
- yAxis: {
33
- title: {
34
- text: "Number of Employees",
35
- },
36
- },
37
- }
38
-
39
- const LineGraphPbStyles = () => {
40
- const options = Highcharts.merge({}, lineGraphTheme, baseOptions)
41
-
42
- return(
43
- <div>
44
- <HighchartsReact
45
- highcharts={Highcharts}
46
- options={options}
47
- />
48
- </div>
49
- )
50
- }
51
-
52
- export default LineGraphPbStyles
@@ -1 +0,0 @@
1
- You don't need to use the Line Graph Kit to apply Playbook styles to your Highcharts line graph. Just import lineGraphTheme.ts and merge it with your graph options—Playbook’s styling will apply automatically.
@@ -1,110 +0,0 @@
1
- import colors from '../tokens/exports/_colors.module.scss'
2
- import typography from '../tokens/exports/_typography.module.scss'
3
-
4
- const lineGraphTheme = {
5
- title: {
6
- text: "",
7
- style: {
8
- color: colors.text_lt_default,
9
- fontFamily: typography.font_family_base,
10
- fontWeight: typography.bold,
11
- fontSize: typography.heading_3,
12
- },
13
- },
14
- subtitle: {
15
- text: "" ,
16
- style: {
17
- fontFamily: typography.font_family_base,
18
- color: colors.text_lt_light,
19
- fontWeight: typography.regular,
20
- fontSize: typography.text_base,
21
- },
22
- },
23
- chart: {
24
- type: "line",
25
- },
26
- tooltip: {
27
- backgroundColor: {
28
- linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
29
- stops: [
30
- [0, colors.bg_dark],
31
- [1, colors.bg_dark],
32
- ],
33
- },
34
- followPointer: true,
35
- shadow: false,
36
- borderWidth: 0,
37
- borderRadius: 10,
38
- style: {
39
- fontFamily: typography.font_family_base,
40
- color: colors.text_dk_default,
41
- fontWeight: typography.regular,
42
- fontSize: typography.text_smaller,
43
- },
44
- },
45
- plotOptions: {
46
- line: {
47
- dataLabels: {
48
- enabled: false,
49
- },
50
- },
51
- },
52
- credits: { enabled: false },
53
- legend: { enabled: false },
54
- colors: [
55
- colors.data_1,
56
- colors.data_2,
57
- colors.data_3,
58
- colors.data_4,
59
- colors.data_5,
60
- colors.data_6,
61
- colors.data_7,
62
- ],
63
- xAxis: {
64
- gridLineWidth: 0,
65
- lineColor: colors.border_light,
66
- tickColor: colors.border_light,
67
- labels: {
68
- style: {
69
- fontFamily: typography.font_family_base,
70
- color: colors.text_lt_lighter,
71
- fontWeight: typography.bold,
72
- fontSize: typography.text_smaller,
73
- },
74
- },
75
- title: {
76
- style: {
77
- color: colors.text_lt_default,
78
- fontFamily: typography.font_family_base,
79
- fontWeight: typography.regular,
80
- fontSize: typography.heading_4,
81
- },
82
- },
83
- },
84
- yAxis: {
85
- alternateGridColor: undefined as string | undefined,
86
- minorTickInterval: null as number | null,
87
- gridLineColor: colors.border_light,
88
- minorGridLineColor: colors.border_light,
89
- lineWidth: 0,
90
- tickWidth: 0,
91
- labels: {
92
- style: {
93
- fontFamily: typography.font_family_base,
94
- color: colors.text_lt_lighter,
95
- fontWeight: typography.bold,
96
- fontSize: typography.text_smaller,
97
- },
98
- },
99
- title: {
100
- style: {
101
- fontFamily: typography.font_family_base,
102
- color: colors.text_lt_lighter,
103
- fontWeight: typography.bold,
104
- fontSize: typography.text_smaller,
105
- },
106
- },
107
- },
108
- }
109
-
110
- export default lineGraphTheme;
@@ -1,46 +0,0 @@
1
- <%= pb_rails("flex", props: {
2
- dark: true,
3
- orientation: "row",
4
- vertical: "center",
5
- margin_bottom: "md"
6
- }) do %>
7
- <%= pb_rails("body", props: { text: "Click info for more details" }) %>
8
- &nbsp;
9
- <%= pb_rails("circle_icon_button", props: {
10
- variant: "secondary",
11
- icon: "info",
12
- id: "append-to-popover-1"
13
- }) %>
14
- <%= pb_rails("popover", props: {
15
- trigger_element_id: "append-to-popover-1",
16
- tooltip_id: "append-to-tooltip-1",
17
- offset: true,
18
- position: "top",
19
- append_to: "parent",
20
- }) do %>
21
- I'm a popover. I have been appended to my parent element.
22
- <% end %>
23
- <% end %>
24
-
25
- <%= pb_rails("flex", props: {
26
- dark: true,
27
- orientation: "row",
28
- vertical: "center"
29
- }) do %>
30
- <%= pb_rails("body", props: { text: "Click info for more details" }) %>
31
- &nbsp;
32
- <%= pb_rails("circle_icon_button", props: {
33
- variant: "secondary",
34
- icon: "info",
35
- id: "append-to-popover-2"
36
- }) %>
37
- <%= pb_rails("popover", props: {
38
- trigger_element_id: "append-to-popover-2",
39
- tooltip_id: "append-to-tooltip-2",
40
- offset: true,
41
- position: "top",
42
- append_to: ".kit-show-wrapper",
43
- }) do %>
44
- I'm a popover. I have been appended to the .kit-show-wrapper.
45
- <% end %>
46
- <% end %>
@@ -1 +0,0 @@
1
- By default, the popover tooltip attaches to the `<body>`. To attach it elsewhere, use the `append_to` prop. Set it to `"parent"` to place the tooltip inside its parent element, or pass any CSS selector (`#id` or `.class`) to specify a custom container.