playbook_ui_docs 14.12.0.pre.alpha.PLAY18565866 → 14.12.0.pre.alpha.advancedtablealignmentfixes5693

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 (36) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/docs/{_advanced_table_loading_react.md → _advanced_table_loading.md} +2 -2
  3. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -1
  4. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.jsx +3 -9
  5. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_circle_icon_component_overlay.jsx +2 -6
  6. data/app/pb_kits/playbook/pb_date/docs/_date_default.jsx +1 -2
  7. data/app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx +5 -13
  8. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_breakpoints.jsx +36 -71
  9. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_menu.jsx +6 -6
  10. data/app/pb_kits/playbook/pb_drawer/docs/example.yml +0 -1
  11. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/example.yml +0 -1
  12. data/app/pb_kits/playbook/pb_home_address_street/docs/example.yml +0 -2
  13. data/app/pb_kits/playbook/pb_home_address_street/docs/index.js +0 -1
  14. data/app/pb_kits/playbook/pb_table/docs/_table_with_background_kit.html.erb +9 -6
  15. data/app/pb_kits/playbook/pb_table/docs/_table_with_background_kit.jsx +9 -6
  16. data/app/pb_kits/playbook/pb_user/docs/example.yml +0 -2
  17. data/app/pb_kits/playbook/pb_user/docs/index.js +0 -1
  18. data/dist/playbook-doc.js +1 -1
  19. metadata +4 -20
  20. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading.html.erb +0 -33
  21. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading_rails.md +0 -1
  22. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_default.jsx +0 -21
  23. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_from.jsx +0 -45
  24. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_from.md +0 -1
  25. data/app/pb_kits/playbook/pb_copy_button/docs/example.yml +0 -8
  26. data/app/pb_kits/playbook/pb_copy_button/docs/index.js +0 -2
  27. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_auto_close.html.erb +0 -58
  28. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_auto_close_rails.md +0 -3
  29. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_formatting.html.erb +0 -11
  30. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_formatting.jsx +0 -22
  31. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_formatting_rails.md +0 -1
  32. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_formatting_react.md +0 -1
  33. data/app/pb_kits/playbook/pb_user/docs/_user_light_weight.html.erb +0 -42
  34. data/app/pb_kits/playbook/pb_user/docs/_user_light_weight.jsx +0 -59
  35. data/app/pb_kits/playbook/pb_user/docs/_user_light_weight.md +0 -2
  36. /data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/{_fixed_confirmation_toast_auto_close_react.md → _fixed_confirmation_toast_auto_close.md} +0 -0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui_docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 14.12.0.pre.alpha.PLAY18565866
4
+ version: 14.12.0.pre.alpha.advancedtablealignmentfixes5693
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-02-03 00:00:00.000000000 Z
12
+ date: 2025-01-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: playbook_ui
@@ -59,10 +59,8 @@ files:
59
59
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_expanded_control.md
60
60
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.jsx
61
61
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
62
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading.html.erb
63
62
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading.jsx
64
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading_rails.md
65
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading_react.md
63
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading.md
66
64
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_no_subrows.jsx
67
65
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination.jsx
68
66
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination.md
@@ -436,11 +434,6 @@ files:
436
434
  - app/pb_kits/playbook/pb_contact/docs/_description.md
437
435
  - app/pb_kits/playbook/pb_contact/docs/example.yml
438
436
  - app/pb_kits/playbook/pb_contact/docs/index.js
439
- - app/pb_kits/playbook/pb_copy_button/docs/_copy_button_default.jsx
440
- - app/pb_kits/playbook/pb_copy_button/docs/_copy_button_from.jsx
441
- - app/pb_kits/playbook/pb_copy_button/docs/_copy_button_from.md
442
- - app/pb_kits/playbook/pb_copy_button/docs/example.yml
443
- - app/pb_kits/playbook/pb_copy_button/docs/index.js
444
437
  - app/pb_kits/playbook/pb_currency/docs/_currency_abbreviated.html.erb
445
438
  - app/pb_kits/playbook/pb_currency/docs/_currency_abbreviated.jsx
446
439
  - app/pb_kits/playbook/pb_currency/docs/_currency_alignment.html.erb
@@ -811,10 +804,8 @@ files:
811
804
  - app/pb_kits/playbook/pb_filter/docs/example.yml
812
805
  - app/pb_kits/playbook/pb_filter/docs/index.js
813
806
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_description.md
814
- - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_auto_close.html.erb
815
807
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_auto_close.jsx
816
- - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_auto_close_rails.md
817
- - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_auto_close_react.md
808
+ - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_auto_close.md
818
809
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_children.html.erb
819
810
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_children.jsx
820
811
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_children.md
@@ -974,10 +965,6 @@ files:
974
965
  - app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_emphasis.jsx
975
966
  - app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_emphasis.md
976
967
  - app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_emphasis_swift.md
977
- - app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_formatting.html.erb
978
- - app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_formatting.jsx
979
- - app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_formatting_rails.md
980
- - app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_formatting_react.md
981
968
  - app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_link.html.erb
982
969
  - app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_link.jsx
983
970
  - app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_link.md
@@ -2114,9 +2101,6 @@ files:
2114
2101
  - app/pb_kits/playbook/pb_user/docs/_user_default.html.erb
2115
2102
  - app/pb_kits/playbook/pb_user/docs/_user_default.jsx
2116
2103
  - app/pb_kits/playbook/pb_user/docs/_user_horizontal_swift.md
2117
- - app/pb_kits/playbook/pb_user/docs/_user_light_weight.html.erb
2118
- - app/pb_kits/playbook/pb_user/docs/_user_light_weight.jsx
2119
- - app/pb_kits/playbook/pb_user/docs/_user_light_weight.md
2120
2104
  - app/pb_kits/playbook/pb_user/docs/_user_presence_indicator_swift.md
2121
2105
  - app/pb_kits/playbook/pb_user/docs/_user_props_table.md
2122
2106
  - app/pb_kits/playbook/pb_user/docs/_user_size.html.erb
@@ -1,33 +0,0 @@
1
- <% column_definitions = [
2
- {
3
- accessor: "year",
4
- label: "Year",
5
- cellAccessors: ["quarter", "month", "day"],
6
- },
7
- {
8
- accessor: "newEnrollments",
9
- label: "New Enrollments",
10
- },
11
- {
12
- accessor: "scheduledMeetings",
13
- label: "Scheduled Meetings",
14
- },
15
- {
16
- accessor: "attendanceRate",
17
- label: "Attendance Rate",
18
- },
19
- {
20
- accessor: "completedClasses",
21
- label: "Completed Classes",
22
- },
23
- {
24
- accessor: "classCompletionRate",
25
- label: "Class Completion Rate",
26
- },
27
- {
28
- accessor: "graduatedStudents",
29
- label: "Graduated Students",
30
- }
31
- ] %>
32
-
33
- <%= pb_rails("advanced_table", props: { id: "beta_table", table_data: @table_data, column_definitions: column_definitions, loading: true }) %>
@@ -1 +0,0 @@
1
- The optional `loading` prop takes a boolean value that can be managed using state. If loading is true, the table will display the loading skeleton and once loading is false, the table will render with the data provided.
@@ -1,21 +0,0 @@
1
- import React from 'react'
2
- import { CopyButton, Textarea } from 'playbook-ui'
3
-
4
- const CopyButtonDefault = (props) => (
5
- <div>
6
- <CopyButton
7
- {...props}
8
- text="Copy Text"
9
- tooltipPlacement="right"
10
- tooltipText="Text copied!"
11
- value="Playbook makes it easy to support bleeding edge, or legacy systems. Use Playbook’s 200+ components and end-to-end design language to create simple, intuitive and beautiful experiences with ease."
12
- />
13
-
14
- <Textarea
15
- {...props}
16
- placeholder="Copy and paste here"
17
- />
18
- </div>
19
- )
20
-
21
- export default CopyButtonDefault
@@ -1,45 +0,0 @@
1
- import React, { useState } from 'react'
2
- import { CopyButton, Body, TextInput, Textarea } from 'playbook-ui'
3
-
4
- const CopyButtonFrom = (props) => {
5
- const [text, setText] = useState("Copy this text input text")
6
-
7
- const handleChange = (event) => {
8
- setText(event.target.value);
9
- }
10
-
11
- return (<div>
12
- <Body id="body">Copy this body text!</Body>
13
- <CopyButton
14
- {...props}
15
- from="body"
16
- marginBottom="sm"
17
- text="Copy Body text"
18
- tooltipPlacement="right"
19
- tooltipText="Body text copied!"
20
- />
21
-
22
- <TextInput
23
- {...props}
24
- id="textinput"
25
- onChange={handleChange}
26
- value={text}
27
- />
28
- <CopyButton
29
- {...props}
30
- from="textinput"
31
- marginBottom="sm"
32
- text="Copy Text Input"
33
- tooltipPlacement="right"
34
- tooltipText="Text input copied!"
35
- />
36
-
37
- <Textarea
38
- {...props}
39
- placeholder="Copy and paste here"
40
- />
41
- </div>
42
- )
43
- }
44
-
45
- export default CopyButtonFrom
@@ -1 +0,0 @@
1
- Provide an element's ID as the `from` parameter, and its text will be copied. If the element is an input, its `value` will be copied; otherwise, the `innerText` will be used. Additionally, if a `value` prop is provided, it will override the content from the `from` element and be copied instead.
@@ -1,8 +0,0 @@
1
- examples:
2
-
3
-
4
- react:
5
- - copy_button_default: Default
6
- - copy_button_from: Copy From
7
-
8
-
@@ -1,2 +0,0 @@
1
- export { default as CopyButtonDefault } from './_copy_button_default.jsx'
2
- export { default as CopyButtonFrom } from './_copy_button_from.jsx'
@@ -1,58 +0,0 @@
1
- <%= pb_rails("button", props: { text: "Show Auto Close Toast", variant: "secondary", data: { toast: "#toast-auto-close" } }) %>
2
- <%= pb_rails("button", props: { text: "Show Closeable Auto Close Toast", variant: "secondary", data: { toast: "#toast-auto-close-closeable" } }) %>
3
-
4
- <%= pb_rails("fixed_confirmation_toast", props: {
5
- auto_close: 3000,
6
- classname: "toast-to-hide",
7
- id: "toast-auto-close",
8
- text: "I will disappear in 3 seconds.",
9
- status: "tip",
10
- vertical: "top",
11
- horizontal: "center"
12
- }) %>
13
-
14
- <%= pb_rails("fixed_confirmation_toast", props: {
15
- auto_close: 10000,
16
- closeable: true,
17
- id: "toast-auto-close-closeable",
18
- text: "I will disappear in 10 seconds.",
19
- status: "tip",
20
- vertical: "top",
21
- horizontal: "center"
22
- }) %>
23
-
24
- <script>
25
- document.addEventListener('DOMContentLoaded', () => {
26
- // Initialize toast elements and buttons
27
- const toasts = {
28
- '#toast-auto-close': document.querySelector("#toast-auto-close"),
29
- '#toast-auto-close-closeable': document.querySelector("#toast-auto-close-closeable")
30
- }
31
-
32
- const buttons = {
33
- '#toast-auto-close': document.querySelector("button[data-toast='#toast-auto-close']"),
34
- '#toast-auto-close-closeable': document.querySelector("button[data-toast='#toast-auto-close-closeable']")
35
- }
36
-
37
- // Store original toasts and remove them from DOM
38
- const originalToasts = {}
39
- Object.entries(toasts).forEach(([id, toast]) => {
40
- if (toast) {
41
- originalToasts[id] = toast.cloneNode(true)
42
- toast.remove()
43
- }
44
- })
45
-
46
- // Set up button click handlers
47
- Object.keys(buttons).forEach((toastId) => {
48
- const button = buttons[toastId]
49
- if (button) {
50
- button.onclick = () => {
51
- const newToast = originalToasts[toastId].cloneNode(true)
52
- newToast.style.display = "flex"
53
- document.body.appendChild(newToast)
54
- }
55
- }
56
- })
57
- })
58
- </script>
@@ -1,3 +0,0 @@
1
- Auto close is used when you want the confirmation toast to close automatically after a certain time. `auto_close` property will be a delay number in ms.
2
-
3
- The script tag in this code snippet is for demonstration purposes only. It clones the toasts in order to have it appear with a button click prompt and not upon initial page load. In a typical production environment the event triggering a fixed confirmation toast to appear would be handled by a controller or a separate javascript file.
@@ -1,11 +0,0 @@
1
- <%= pb_rails("home_address_street", props: {
2
- address: "70 pRoSpEcT ave",
3
- address_cont: "Apt M18",
4
- city: "West Chester",
5
- home_id: 8250263,
6
- home_url: "https://powerhrg.com/",
7
- preserve_case: true,
8
- state: "pa",
9
- zipcode: "19382",
10
- territory: "PHL",
11
- }) %>
@@ -1,22 +0,0 @@
1
- import React from 'react'
2
-
3
- import HomeAddressStreet from '../_home_address_street'
4
-
5
- const HomeAddressStreetFormatting = (props) => {
6
- return (
7
- <HomeAddressStreet
8
- address="70 pRoSpEcT ave"
9
- addressCont="Apt M18"
10
- city="West Chester"
11
- homeId="8250263"
12
- homeUrl="https://powerhrg.com/"
13
- preserveCase
14
- state="pa"
15
- territory="PHL"
16
- zipcode="19382"
17
- {...props}
18
- />
19
- )
20
- }
21
-
22
- export default HomeAddressStreetFormatting
@@ -1 +0,0 @@
1
- The `state` prop will always capitalize the state name, even if the data entered is in lowercase. For example, when `state="pa"` is passed, it will be rendered as "PA". When you pass `preserve_case: true`, the street address will be rendered exactly as entered, without automatic title capitalization.
@@ -1 +0,0 @@
1
- The `state` prop will always capitalize the state name, even if the data entered is in lowercase. For example, when `state="pa"` is passed, it will be rendered as "PA". When you pass `preserveCase`, the street address will be rendered exactly as entered, without automatic title capitalization.
@@ -1,42 +0,0 @@
1
- <div class="pb--doc-demo-row">
2
- <div>
3
- <%= pb_rails("user", props: {
4
- name: "Anna Black",
5
- title: "Remodeling Consultant",
6
- orientation: "vertical",
7
- align: "center",
8
- size: "lg",
9
- avatar_url: "https://randomuser.me/api/portraits/women/44.jpg",
10
- bold: false
11
- }) %>
12
- </div>
13
- <div>
14
- <%= pb_rails("user", props: {
15
- name: "Anna Black",
16
- title: "Remodeling Consultant",
17
- orientation: "horizontal",
18
- align: "left",
19
- avatar_url: "https://randomuser.me/api/portraits/women/44.jpg",
20
- bold: false
21
- }) %>
22
- </div>
23
- <div>
24
- <%= pb_rails("user", props: {
25
- name: "Anna Black",
26
- orientation: "horizontal",
27
- align: "left",
28
- avatar_url: "https://randomuser.me/api/portraits/women/44.jpg",
29
- bold: false
30
- }) %>
31
-
32
- <br>
33
-
34
- <%= pb_rails("user", props: {
35
- name: "Anna Black",
36
- orientation: "horizontal",
37
- align: "left",
38
- avatar: true,
39
- bold: false
40
- }) %>
41
- </div>
42
- </div>
@@ -1,59 +0,0 @@
1
- import React from 'react'
2
- import { User } from 'playbook-ui'
3
-
4
- const UserLightWeight = (props) => {
5
- return (
6
- <div className="pb--doc-demo-row">
7
-
8
- <div>
9
- <User
10
- align="center"
11
- avatarUrl="https://randomuser.me/api/portraits/women/44.jpg"
12
- bold={false}
13
- name="Anna Black"
14
- orientation="vertical"
15
- size="lg"
16
- title="Remodeling Consultant"
17
- {...props}
18
- />
19
- </div>
20
-
21
- <div>
22
- <User
23
- align="left"
24
- avatarUrl="https://randomuser.me/api/portraits/women/44.jpg"
25
- bold={false}
26
- name="Anna Black"
27
- orientation="horizontal"
28
- title="Remodeling Consultant"
29
- {...props}
30
- />
31
- </div>
32
-
33
- <div>
34
- <User
35
- align="left"
36
- avatarUrl="https://randomuser.me/api/portraits/women/44.jpg"
37
- bold={false}
38
- name="Anna Black"
39
- orientation="horizontal"
40
- {...props}
41
- />
42
-
43
- <br />
44
-
45
- <User
46
- align="left"
47
- avatar
48
- bold={false}
49
- name="Anna Black"
50
- orientation="horizontal"
51
- {...props}
52
- />
53
- </div>
54
-
55
- </div>
56
- )
57
- }
58
-
59
- export default UserLightWeight
@@ -1,2 +0,0 @@
1
- ##### Prop
2
- Name will use `font-weight: 700` by default, if you want a lighter font weight, use the `bold` prop set to `false`. Name will then use `font-weight: 300`.