playbook_ui 14.0.0.pre.alpha.play1447alphatest3462 → 14.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/Components/TableHeaderCell.tsx +2 -5
  3. data/app/pb_kits/playbook/pb_advanced_table/SubKits/TableBody.tsx +20 -24
  4. data/app/pb_kits/playbook/pb_advanced_table/SubKits/TableHeader.tsx +12 -17
  5. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +1 -86
  6. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +1 -5
  7. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.test.jsx +0 -30
  8. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -1
  9. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -2
  10. data/app/pb_kits/playbook/pb_avatar/_avatar.scss +30 -0
  11. data/app/pb_kits/playbook/pb_avatar/_avatar.tsx +1 -19
  12. data/app/pb_kits/playbook/pb_avatar/avatar.rb +1 -44
  13. data/app/pb_kits/playbook/pb_avatar/avatar.test.js +0 -17
  14. data/app/pb_kits/playbook/pb_date_picker/docs/_description.md +1 -3
  15. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss +1 -1
  16. data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +0 -1
  17. data/app/pb_kits/playbook/pb_icon/_icon.tsx +0 -3
  18. data/app/pb_kits/playbook/pb_icon/icon.rb +0 -2
  19. data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.tsx +1 -2
  20. data/app/pb_kits/playbook/pb_icon_circle/icon_circle.rb +2 -2
  21. data/app/pb_kits/playbook/pb_icon_stat_value/_icon_stat_value.scss +11 -0
  22. data/app/pb_kits/playbook/pb_icon_stat_value/_icon_stat_value.tsx +2 -3
  23. data/app/pb_kits/playbook/pb_icon_stat_value/docs/_icon_stat_value_color.html.erb +0 -1
  24. data/app/pb_kits/playbook/pb_icon_stat_value/icon_stat_value.rb +2 -2
  25. data/app/pb_kits/playbook/pb_icon_stat_value/icon_stat_value.test.js +4 -5
  26. data/app/pb_kits/playbook/pb_map/docs/_map_default.md +2 -2
  27. data/app/pb_kits/playbook/pb_nav/_horizontal_nav.scss +1 -1
  28. data/app/pb_kits/playbook/pb_online_status/_online_status.scss +5 -52
  29. data/app/pb_kits/playbook/pb_online_status/_online_status.tsx +1 -6
  30. data/app/pb_kits/playbook/pb_online_status/_online_status_mixins.scss +32 -0
  31. data/app/pb_kits/playbook/pb_online_status/docs/example.yml +2 -6
  32. data/app/pb_kits/playbook/pb_online_status/docs/index.js +0 -2
  33. data/app/pb_kits/playbook/pb_online_status/online_status.rb +1 -11
  34. data/app/pb_kits/playbook/pb_overlay/docs/example.yml +2 -4
  35. data/app/pb_kits/playbook/pb_overlay/docs/index.js +0 -1
  36. data/app/pb_kits/playbook/pb_star_rating/_star_rating.scss +6 -83
  37. data/app/pb_kits/playbook/pb_star_rating/docs/example.yml +1 -3
  38. data/app/pb_kits/playbook/pb_star_rating/index.js +4 -73
  39. data/app/pb_kits/playbook/pb_star_rating/star_rating.html.erb +1 -1
  40. data/app/pb_kits/playbook/pb_star_rating/star_rating.rb +2 -2
  41. data/app/pb_kits/playbook/pb_star_rating/stars/utils.tsx +1 -5
  42. data/app/pb_kits/playbook/pb_star_rating/subcomponents/_star_rating_interactive.tsx +21 -50
  43. data/app/pb_kits/playbook/pb_table/_table.tsx +1 -1
  44. data/app/pb_kits/playbook/pb_table/index.ts +4 -4
  45. data/app/pb_kits/playbook/pb_table/subcomponents/_table_body.tsx +1 -1
  46. data/app/pb_kits/playbook/pb_table/subcomponents/_table_cell.tsx +1 -1
  47. data/app/pb_kits/playbook/pb_table/subcomponents/_table_head.tsx +1 -1
  48. data/app/pb_kits/playbook/pb_table/subcomponents/_table_header.tsx +1 -1
  49. data/app/pb_kits/playbook/pb_table/subcomponents/_table_row.tsx +1 -1
  50. data/app/pb_kits/playbook/pb_table/table.test.js +0 -2
  51. data/app/pb_kits/playbook/pb_text_input/_text_input.tsx +1 -1
  52. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_default.jsx +1 -1
  53. data/app/pb_kits/playbook/pb_textarea/_textarea.tsx +27 -45
  54. data/app/pb_kits/playbook/pb_textarea/index.ts +3 -3
  55. data/app/pb_kits/playbook/pb_time/_time.tsx +3 -3
  56. data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.tsx +1 -1
  57. data/app/pb_kits/playbook/pb_timeline/_item.tsx +1 -1
  58. data/app/pb_kits/playbook/pb_timeline/_timeline.tsx +1 -1
  59. data/app/pb_kits/playbook/pb_title_detail/_title_detail.tsx +10 -10
  60. data/app/pb_kits/playbook/pb_toggle/_toggle.tsx +1 -1
  61. data/app/pb_kits/playbook/pb_tooltip/_tooltip.tsx +2 -2
  62. data/app/pb_kits/playbook/pb_treemap_chart/_treemap_chart.tsx +2 -1
  63. data/app/pb_kits/playbook/pb_treemap_chart/treemapChart.test.js +0 -2
  64. data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +2 -2
  65. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_multi_kit.html.erb +1 -1
  66. data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +0 -1
  67. data/app/pb_kits/playbook/pb_user/_user.tsx +1 -1
  68. data/app/pb_kits/playbook/pb_user_badge/_user_badge.tsx +6 -6
  69. data/app/pb_kits/playbook/pb_user_badge/badges/million-dollar.tsx +235 -236
  70. data/app/pb_kits/playbook/pb_user_badge/badges/veteran.tsx +1 -1
  71. data/app/pb_kits/playbook/pb_walkthrough/_walkthrough.tsx +63 -68
  72. data/app/pb_kits/playbook/pb_weekday_stacked/_weekday_stacked.tsx +1 -1
  73. data/app/pb_kits/playbook/utilities/_positioning.scss +15 -26
  74. data/dist/chunks/{_typeahead-D6PRvP-1.js → _typeahead-COUJ88EA.js} +2 -2
  75. data/dist/chunks/{_weekday_stacked-Dzgi_IL5.js → _weekday_stacked-BAkwel5p.js} +2 -2
  76. data/dist/chunks/{lib-BE0Z3F7x.js → lib-Bf_E03gc.js} +1 -1
  77. data/dist/chunks/{pb_form_validation-TzZQ0Flx.js → pb_form_validation-D0dhqeN2.js} +1 -1
  78. data/dist/chunks/vendor.js +1 -1
  79. data/dist/playbook-doc.js +1 -1
  80. data/dist/playbook-rails-react-bindings.js +1 -1
  81. data/dist/playbook-rails.js +1 -1
  82. data/dist/playbook.css +1 -1
  83. data/lib/playbook/version.rb +2 -2
  84. metadata +10 -19
  85. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.jsx +0 -67
  86. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.md +0 -1
  87. data/app/pb_kits/playbook/pb_online_status/docs/_online_status_no_border.html.erb +0 -1
  88. data/app/pb_kits/playbook/pb_online_status/docs/_online_status_no_border.jsx +0 -14
  89. data/app/pb_kits/playbook/pb_online_status/docs/_online_status_size.html.erb +0 -3
  90. data/app/pb_kits/playbook/pb_online_status/docs/_online_status_size.jsx +0 -25
  91. data/app/pb_kits/playbook/pb_online_status/online_status.test.js +0 -31
  92. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_toggle.html.erb +0 -61
  93. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_toggle.jsx +0 -70
  94. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_toggle.md +0 -1
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playbook
4
- PREVIOUS_VERSION = "14.0.0"
5
- VERSION = "14.0.0.pre.alpha.play1447alphatest3462"
4
+ PREVIOUS_VERSION = "13.34.1"
5
+ VERSION = "14.0.0"
6
6
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 14.0.0.pre.alpha.play1447alphatest3462
4
+ version: 14.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
8
8
  - Power Devs
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-08-13 00:00:00.000000000 Z
12
+ date: 2024-08-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -276,8 +276,6 @@ files:
276
276
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
277
277
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading.jsx
278
278
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading.md
279
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.jsx
280
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.md
281
279
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort.jsx
282
280
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort.md
283
281
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_control.jsx
@@ -1897,18 +1895,14 @@ files:
1897
1895
  - app/pb_kits/playbook/pb_nav/navTypes.ts
1898
1896
  - app/pb_kits/playbook/pb_online_status/_online_status.scss
1899
1897
  - app/pb_kits/playbook/pb_online_status/_online_status.tsx
1898
+ - app/pb_kits/playbook/pb_online_status/_online_status_mixins.scss
1900
1899
  - app/pb_kits/playbook/pb_online_status/docs/_description.md
1901
1900
  - app/pb_kits/playbook/pb_online_status/docs/_online_status_default.html.erb
1902
1901
  - app/pb_kits/playbook/pb_online_status/docs/_online_status_default.jsx
1903
- - app/pb_kits/playbook/pb_online_status/docs/_online_status_no_border.html.erb
1904
- - app/pb_kits/playbook/pb_online_status/docs/_online_status_no_border.jsx
1905
- - app/pb_kits/playbook/pb_online_status/docs/_online_status_size.html.erb
1906
- - app/pb_kits/playbook/pb_online_status/docs/_online_status_size.jsx
1907
1902
  - app/pb_kits/playbook/pb_online_status/docs/example.yml
1908
1903
  - app/pb_kits/playbook/pb_online_status/docs/index.js
1909
1904
  - app/pb_kits/playbook/pb_online_status/online_status.html.erb
1910
1905
  - app/pb_kits/playbook/pb_online_status/online_status.rb
1911
- - app/pb_kits/playbook/pb_online_status/online_status.test.js
1912
1906
  - app/pb_kits/playbook/pb_overlay/_overlay.scss
1913
1907
  - app/pb_kits/playbook/pb_overlay/_overlay.tsx
1914
1908
  - app/pb_kits/playbook/pb_overlay/docs/_overlay_default.html.erb
@@ -1917,9 +1911,6 @@ files:
1917
1911
  - app/pb_kits/playbook/pb_overlay/docs/_overlay_multi_directional.html.erb
1918
1912
  - app/pb_kits/playbook/pb_overlay/docs/_overlay_multi_directional.jsx
1919
1913
  - app/pb_kits/playbook/pb_overlay/docs/_overlay_multi_directional.md
1920
- - app/pb_kits/playbook/pb_overlay/docs/_overlay_toggle.html.erb
1921
- - app/pb_kits/playbook/pb_overlay/docs/_overlay_toggle.jsx
1922
- - app/pb_kits/playbook/pb_overlay/docs/_overlay_toggle.md
1923
1914
  - app/pb_kits/playbook/pb_overlay/docs/example.yml
1924
1915
  - app/pb_kits/playbook/pb_overlay/docs/index.js
1925
1916
  - app/pb_kits/playbook/pb_overlay/overlay.html.erb
@@ -3000,11 +2991,11 @@ files:
3000
2991
  - app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
3001
2992
  - app/pb_kits/playbook/utilities/text.ts
3002
2993
  - app/pb_kits/playbook/utilities/validEmojiChecker.ts
3003
- - dist/chunks/_typeahead-D6PRvP-1.js
3004
- - dist/chunks/_weekday_stacked-Dzgi_IL5.js
2994
+ - dist/chunks/_typeahead-COUJ88EA.js
2995
+ - dist/chunks/_weekday_stacked-BAkwel5p.js
3005
2996
  - dist/chunks/lazysizes-B7xYodB-.js
3006
- - dist/chunks/lib-BE0Z3F7x.js
3007
- - dist/chunks/pb_form_validation-TzZQ0Flx.js
2997
+ - dist/chunks/lib-Bf_E03gc.js
2998
+ - dist/chunks/pb_form_validation-D0dhqeN2.js
3008
2999
  - dist/chunks/vendor.js
3009
3000
  - dist/menu.yml
3010
3001
  - dist/playbook-doc.js
@@ -3086,7 +3077,7 @@ homepage: https://playbook.powerapp.cloud/
3086
3077
  licenses:
3087
3078
  - ISC
3088
3079
  metadata: {}
3089
- post_install_message:
3080
+ post_install_message:
3090
3081
  rdoc_options: []
3091
3082
  require_paths:
3092
3083
  - lib
@@ -3102,7 +3093,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
3102
3093
  version: '0'
3103
3094
  requirements: []
3104
3095
  rubygems_version: 3.5.3
3105
- signing_key:
3096
+ signing_key:
3106
3097
  specification_version: 4
3107
3098
  summary: Playbook Design System
3108
3099
  test_files: []
@@ -1,67 +0,0 @@
1
- import React from "react"
2
- import { AdvancedTable } from "playbook-ui"
3
- import Title from '../../pb_title/_title'
4
- import MOCK_DATA from "./advanced_table_mock_data.json"
5
-
6
- const AdvancedTableResponsive = (props) => {
7
- const columnDefinitions = [
8
- {
9
- accessor: "year",
10
- label: "Year",
11
- cellAccessors: ["quarter", "month", "day"],
12
- },
13
- {
14
- accessor: "newEnrollments",
15
- label: "New Enrollments",
16
- },
17
- {
18
- accessor: "scheduledMeetings",
19
- label: "Scheduled Meetings",
20
- },
21
- {
22
- accessor: "attendanceRate",
23
- label: "Attendance Rate",
24
- },
25
- {
26
- accessor: "completedClasses",
27
- label: "Completed Classes",
28
- },
29
- {
30
- accessor: "classCompletionRate",
31
- label: "Class Completion Rate",
32
- },
33
- {
34
- accessor: "graduatedStudents",
35
- label: "Graduated Students",
36
- },
37
- ]
38
-
39
- return (
40
- <div>
41
- <Title
42
- size={4}
43
- text="Not Responsive"
44
- {...props}
45
- />
46
- <AdvancedTable
47
- columnDefinitions={columnDefinitions}
48
- responsive="none"
49
- tableData={MOCK_DATA}
50
- {...props}
51
- />
52
- <Title
53
- paddingTop="sm"
54
- size={4}
55
- text="Responsive as Default"
56
- {...props}
57
- />
58
- <AdvancedTable
59
- columnDefinitions={columnDefinitions}
60
- tableData={MOCK_DATA}
61
- {...props}
62
- />
63
- </div>
64
- )
65
- }
66
-
67
- export default AdvancedTableResponsive
@@ -1 +0,0 @@
1
- The `responsive` prop can be set to "scroll" or "none", and is set to "scroll" by default to make Advanced Tables responsive. To disable, set `responsive="none"`.
@@ -1 +0,0 @@
1
- <%= pb_rails("online_status", props: { no_border: true }) %>
@@ -1,14 +0,0 @@
1
- import React from 'react'
2
-
3
- import OnlineStatus from '../_online_status'
4
-
5
- const OnlineStatusNoBorder = (props) => (
6
- <>
7
- <OnlineStatus
8
- noBorder
9
- {...props}
10
- />
11
- </>
12
- )
13
-
14
- export default OnlineStatusNoBorder
@@ -1,3 +0,0 @@
1
- <%= pb_rails("online_status", props: { size: "sm", margin_y: "xs" }) %>
2
- <%= pb_rails("online_status", props: { size: "md", margin_y: "xs" }) %>
3
- <%= pb_rails("online_status", props: { size: "lg", margin_y: "xs" }) %>
@@ -1,25 +0,0 @@
1
- import React from 'react'
2
-
3
- import OnlineStatus from '../_online_status'
4
-
5
- const OnlineStatusSize = (props) => (
6
- <>
7
- <OnlineStatus
8
- marginY="xs"
9
- size="sm"
10
- {...props}
11
- />
12
- <OnlineStatus
13
- marginY="xs"
14
- size="md"
15
- {...props}
16
- />
17
- <OnlineStatus
18
- marginY="xs"
19
- size="lg"
20
- {...props}
21
- />
22
- </>
23
- )
24
-
25
- export default OnlineStatusSize
@@ -1,31 +0,0 @@
1
- import React from 'react'
2
- import { render, screen } from '../utilities/test-utils'
3
-
4
- import OnlineStatus from './_online_status'
5
-
6
- const testId = 'online-status'
7
-
8
- test('renders online status with defaults', () => {
9
- render(
10
- <OnlineStatus data={{ testid: testId }} />
11
- )
12
-
13
- const kit = screen.getByTestId(testId)
14
- expect(kit).toHaveClass('pb_online_status_kit_offline_size_sm')
15
- })
16
-
17
- test('renders online status with props', () => {
18
- render(
19
- <OnlineStatus
20
- className="additional_class"
21
- dark
22
- data={{ testid: testId }}
23
- noBorder
24
- size="lg"
25
- status="online"
26
- />
27
- )
28
-
29
- const kit = screen.getByTestId(testId)
30
- expect(kit).toHaveClass('pb_online_status_kit_online_no_border_size_lg dark additional_class')
31
- })
@@ -1,61 +0,0 @@
1
- <div id="outer-container">
2
- <%= pb_rails("overlay", props: { id: "overlay-container", overflow: "hidden" }) do %>
3
- <div id="underlying-table">
4
- <%= pb_rails("table", props: { size: "sm" }) do %>
5
- <thead>
6
- <tr>
7
- <th>Column 1</th>
8
- <th>Column 2</th>
9
- <th>Column 3</th>
10
- <th>Column 4</th>
11
- <th>Column 5</th>
12
- </tr>
13
- </thead>
14
- <tbody>
15
- <% 7.times do %>
16
- <tr>
17
- <td>Value 1</td>
18
- <td>Value 2</td>
19
- <td>Value 3</td>
20
- <td>Value 4</td>
21
- <td>Value 5</td>
22
- </tr>
23
- <% end %>
24
- </tbody>
25
- <% end %>
26
- </div>
27
- <% end %>
28
- <%= pb_rails("button", props: { text: "Show More", id: "show-more-button", variant: "link", full_width: true, icon: "chevron-down", icon_right: true }) %>
29
- <%= pb_rails("button", props: { text: "Show Less", id: "show-less-button", variant: "link", full_width: true, icon: "chevron-up", icon_right: true }) %>
30
- </div>
31
-
32
- <script type="text/javascript">
33
- document.addEventListener("DOMContentLoaded", () => {
34
- const showMoreButton = document.getElementById("show-more-button");
35
- const showLessButton = document.getElementById("show-less-button");
36
- const overlayContainer = document.getElementById("overlay-container");
37
- const underlyingTable = document.getElementById("underlying-table");
38
- const outerContainer = document.getElementById("outer-container");
39
-
40
- showLessButton.style.display = "none";
41
- underlyingTable.style.height = "200px";
42
-
43
- const showMore = () => {
44
- outerContainer.appendChild(underlyingTable);
45
- outerContainer.appendChild(showLessButton);
46
- showMoreButton.style.display = "none";
47
- showLessButton.style.display = "flex";
48
- underlyingTable.style.height = "auto";
49
- };
50
-
51
- const showLess = () => {
52
- overlayContainer.appendChild(underlyingTable);
53
- showMoreButton.style.display = "flex";
54
- showLessButton.style.display = "none";
55
- underlyingTable.style.height = "200px";
56
- };
57
-
58
- showMoreButton.addEventListener("click", showMore);
59
- showLessButton.addEventListener("click", showLess);
60
- });
61
- </script>
@@ -1,70 +0,0 @@
1
- /* eslint-disable react/no-multi-comp */
2
- import React, { useState } from "react";
3
- import { Overlay, Table, Button } from "playbook-ui";
4
-
5
- const TableExample = () => {
6
- return (
7
- <Table size="sm">
8
- <thead>
9
- <tr>
10
- <th>{"Column 1"}</th>
11
- <th>{"Column 2"}</th>
12
- <th>{"Column 3"}</th>
13
- <th>{"Column 4"}</th>
14
- <th>{"Column 5"}</th>
15
- </tr>
16
- </thead>
17
- <tbody>
18
- {Array.from({ length: 7 }, (_, index) => (
19
- <tr key={index}>
20
- {Array.from({ length: 5 }, (_, columnIndex) => (
21
- <td key={columnIndex}>{`Value ${columnIndex + 1}`}</td>
22
- ))}
23
- </tr>
24
- ))}
25
- </tbody>
26
- </Table>
27
- );
28
- };
29
-
30
- const OverlayToggle = () => {
31
- const [showOverlay, setShowOverlay] = useState(true);
32
-
33
- return (
34
- <>
35
- {showOverlay ? (
36
- <>
37
- <Overlay overflow="hidden">
38
- <div style={{ height: 200 }}>
39
- <TableExample />
40
- </div>
41
- </Overlay>
42
- <Button
43
- fullWidth
44
- icon="chevron-down"
45
- iconRight
46
- key="chevron-down"
47
- onClick={() => setShowOverlay(false)}
48
- text="Show More"
49
- variant="link"
50
- />
51
- </>
52
- ) : (
53
- <>
54
- <TableExample />
55
- <Button
56
- fullWidth
57
- icon="chevron-up"
58
- iconRight
59
- key="chevron-up"
60
- onClick={() => setShowOverlay(true)}
61
- text="Show Less"
62
- variant="link"
63
- />
64
- </>
65
- )}
66
- </>
67
- );
68
- };
69
-
70
- export default OverlayToggle;
@@ -1 +0,0 @@
1
- To toggle an overlay, add a button with an event handler. Remove the overlay container to reveal the underlying content. Re-wrap the overlay container to add the overlay back.