playbook_ui_docs 14.12.0.pre.alpha.playrailsinputmaskissue5933 → 14.12.0.pre.alpha.testingwithfas5686

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_fixed_confirmation_toast/docs/example.yml +0 -1
  9. data/app/pb_kits/playbook/pb_link/docs/example.yml +3 -5
  10. data/app/pb_kits/playbook/pb_link/docs/index.js +1 -2
  11. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tooltip.html.erb +6 -6
  12. data/app/pb_kits/playbook/pb_table/docs/_table_with_background_kit.html.erb +9 -6
  13. data/app/pb_kits/playbook/pb_table/docs/_table_with_background_kit.jsx +9 -6
  14. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_mask.html.erb +1 -1
  15. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_default.html.erb +1 -1
  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.html.erb +0 -2
  23. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_default.jsx +0 -21
  24. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_from.html.erb +0 -5
  25. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_from.jsx +0 -45
  26. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_from.md +0 -1
  27. data/app/pb_kits/playbook/pb_copy_button/docs/example.yml +0 -8
  28. data/app/pb_kits/playbook/pb_copy_button/docs/index.js +0 -2
  29. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_auto_close.html.erb +0 -58
  30. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_auto_close_rails.md +0 -3
  31. data/app/pb_kits/playbook/pb_link/docs/_link_target.html.erb +0 -15
  32. data/app/pb_kits/playbook/pb_link/docs/_link_target.jsx +0 -29
  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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f908bd0d1de0fe7dca32f1b6fc1848d56107d767f448124013f252f62d75d45f
4
- data.tar.gz: 29b73fd029f016c79443cd460da907026966e98bcb22819d97eedd81f29963d3
3
+ metadata.gz: 765771da82fefe534b990d390342e95564f4df2768177a9c56e663b762892fbe
4
+ data.tar.gz: 9ddcbfc684ea7869fb802ed3bfff266b2c29fc0d5b10f9734b2993a781071471
5
5
  SHA512:
6
- metadata.gz: 3832640ddd6a9715af4f794b08c4617535bb1e4e94cc66eb4f1a4a625d8060e9a4aa18a05adc7048e127f60ac6b3a4d7ca55063800031e7abfb45360db830978
7
- data.tar.gz: 876ce30a16542f07d13e63da24a3181c1360537480cb771feb80aadefca80d752d5861f4e66ee6a91039e1246db3c2553a59a06e6f5eed880a8762902683b1ed
6
+ metadata.gz: 1c1dcab5e336f78152fe5c5b6a4c8078b3c824d1ed0f722a0d917d342d413c6163503257c8a8b2e716f67b0f87bd05a2b6501234ee0b2c7bef1018d41accb28b
7
+ data.tar.gz: 51ad54e693c2d66091693a9dc2378171ea2a2a298913721660bacda90c960622d66bac2c9136d04aaf81182b9b1b8bae1e31c60f33e6311ec1786d5018dcc13f
@@ -1,3 +1,3 @@
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
+ 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.
2
2
 
3
- By default, the inital row count of the loading skeleton is set to 10. If you want more control over this initial row count, the optional `initialLoadingRowsCount` prop can be used to pass in a number. __NOTE__: This is only for the first render of the table, subsequent loading skeleton row count logic is handled within the kit itself.
3
+ By default, the inital row count of the loading skeleton is set to 10. If you want more control over this initial row count, the optional `initialLoadingRowCount` prop can be used to pass in a number. __NOTE__: This is only for the first render of the table, subsequent loading skeleton row count logic is handled within the kit itself.
@@ -1,7 +1,6 @@
1
1
  examples:
2
2
  rails:
3
3
  - advanced_table_beta: Default (Required Props)
4
- - advanced_table_loading: Loading State
5
4
  - advanced_table_beta_subrow_headers: SubRow Headers
6
5
  - advanced_table_collapsible_trail_rails: Collapsible Trail
7
6
  - advanced_table_table_props: Table Props
@@ -1,19 +1,18 @@
1
1
  import React from "react";
2
2
  import { Avatar } from 'playbook-ui'
3
3
 
4
- const AvatarBadgeComponentOverlay = (props) => {
4
+ const AvatarBadgeComponentOverlay = () => {
5
5
  return (
6
6
  <div>
7
7
  <Avatar
8
8
  componentOverlay={{
9
9
  component: "badge",
10
10
  placement: "bottom-right",
11
- text: "12",
11
+ text: "12"
12
12
  }}
13
13
  imageUrl="https://randomuser.me/api/portraits/men/44.jpg"
14
14
  marginBottom="sm"
15
15
  size="sm"
16
- {...props}
17
16
  />
18
17
 
19
18
  <Avatar
@@ -25,8 +24,6 @@ const AvatarBadgeComponentOverlay = (props) => {
25
24
  imageUrl="https://randomuser.me/api/portraits/men/44.jpg"
26
25
  marginBottom="sm"
27
26
  size="md"
28
- {...props}
29
-
30
27
  />
31
28
 
32
29
  <Avatar
@@ -39,8 +36,6 @@ const AvatarBadgeComponentOverlay = (props) => {
39
36
  imageUrl="https://randomuser.me/api/portraits/men/44.jpg"
40
37
  marginBottom="sm"
41
38
  size="lg"
42
- {...props}
43
-
44
39
  />
45
40
 
46
41
  <Avatar
@@ -53,8 +48,7 @@ const AvatarBadgeComponentOverlay = (props) => {
53
48
  imageUrl="https://randomuser.me/api/portraits/men/44.jpg"
54
49
  marginBottom="sm"
55
50
  size="xl"
56
- {...props}
57
- />
51
+ />
58
52
  </div>
59
53
  )
60
54
  }
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { Avatar } from 'playbook-ui'
3
3
 
4
- const AvatarCircleIconComponentOverlay = (props) => {
4
+ const AvatarCircleIconComponentOverlay = () => {
5
5
  return (
6
6
  <div>
7
7
  <Avatar
@@ -14,7 +14,6 @@ const AvatarCircleIconComponentOverlay = (props) => {
14
14
  imageUrl="https://randomuser.me/api/portraits/men/44.jpg"
15
15
  marginBottom="sm"
16
16
  size="sm"
17
- {...props}
18
17
  />
19
18
 
20
19
  <Avatar
@@ -27,7 +26,6 @@ const AvatarCircleIconComponentOverlay = (props) => {
27
26
  imageUrl="https://randomuser.me/api/portraits/men/44.jpg"
28
27
  marginBottom="sm"
29
28
  size="md"
30
- {...props}
31
29
  />
32
30
 
33
31
  <Avatar
@@ -40,7 +38,6 @@ const AvatarCircleIconComponentOverlay = (props) => {
40
38
  imageUrl="https://randomuser.me/api/portraits/men/44.jpg"
41
39
  marginBottom="sm"
42
40
  size="lg"
43
- {...props}
44
41
  />
45
42
 
46
43
  <Avatar
@@ -53,8 +50,7 @@ const AvatarCircleIconComponentOverlay = (props) => {
53
50
  imageUrl="https://randomuser.me/api/portraits/men/44.jpg"
54
51
  marginBottom="sm"
55
52
  size="xl"
56
- {...props}
57
- />
53
+ />
58
54
  </div>
59
55
  )
60
56
  }
@@ -18,7 +18,7 @@ const DateDefault = (props) => {
18
18
  value={"2012-08-03"}
19
19
  {...props}
20
20
  />
21
- <Caption {...props}>{"(Hyphenated Date)"}</Caption>
21
+ <Caption>{"(Hyphenated Date)"}</Caption>
22
22
  </div>
23
23
 
24
24
  <br />
@@ -56,7 +56,6 @@ const DateDefault = (props) => {
56
56
  <Title
57
57
  size={4}
58
58
  text={"(Hyphenated Date)"}
59
- {...props}
60
59
  />
61
60
  </div>
62
61
 
@@ -4,8 +4,7 @@ import { Caption, Date as FormattedDate, Title } from 'playbook-ui'
4
4
  const DateUnstyled = (props) => {
5
5
  return (
6
6
  <>
7
- <Caption {...props}
8
- size="xs"
7
+ <Caption size="xs"
9
8
  text="Basic unstyled example"
10
9
  />
11
10
  <FormattedDate
@@ -16,14 +15,10 @@ const DateUnstyled = (props) => {
16
15
 
17
16
  <br />
18
17
 
19
- <Caption {...props}
20
-
21
- size="xs"
18
+ <Caption size="xs"
22
19
  text="Example with wrapping typography kit"
23
20
  />
24
- <Title {...props}
25
- size={1}
26
- >
21
+ <Title size={1}>
27
22
  <FormattedDate
28
23
  unstyled
29
24
  value={new Date('25 Dec 1995')}
@@ -33,13 +28,10 @@ const DateUnstyled = (props) => {
33
28
 
34
29
  <br />
35
30
 
36
- <Caption {...props}
37
- size="xs"
31
+ <Caption size="xs"
38
32
  text="Example with icon + subcaption"
39
33
  />
40
- <Caption {...props}
41
- size="xs"
42
- >
34
+ <Caption size="xs">
43
35
  <FormattedDate
44
36
  showDayOfWeek
45
37
  showIcon
@@ -5,7 +5,6 @@ examples:
5
5
  - fixed_confirmation_toast_multi_line: Multi Line
6
6
  - fixed_confirmation_toast_close: Click to Close
7
7
  - fixed_confirmation_toast_positions: Click to Show Positions
8
- - fixed_confirmation_toast_auto_close: Click to Show Auto Close
9
8
  - fixed_confirmation_toast_children: Children
10
9
  - fixed_confirmation_toast_custom_icon: Custom Icon
11
10
 
@@ -1,18 +1,16 @@
1
1
  examples:
2
-
2
+
3
3
  rails:
4
4
  - link_color: Color
5
5
  - link_underline: Underline
6
6
  - link_icon: Icon
7
7
  - link_disabled: Disabled
8
8
  - link_tag: Tag
9
- - link_target: Target
10
-
11
-
9
+
10
+
12
11
  react:
13
12
  - link_color: Color
14
13
  - link_underline: Underline
15
14
  - link_icon: Icon
16
15
  - link_disabled: Disabled
17
16
  - link_tag: Tag
18
- - link_target: Target
@@ -2,5 +2,4 @@ export { default as LinkColor } from './_link_color.jsx'
2
2
  export { default as LinkUnderline } from './_link_underline.jsx'
3
3
  export { default as LinkIcon } from './_link_icon.jsx'
4
4
  export { default as LinkDisabled } from './_link_disabled.jsx'
5
- export { default as LinkTag } from './_link_tag.jsx'
6
- export { default as LinkTarget } from './_link_target.jsx'
5
+ export { default as LinkTag } from './_link_tag.jsx'
@@ -2,7 +2,7 @@
2
2
  <%= pb_rails("progress_step/progress_step_item", props: {status: "complete", classname: "tooltip-trigger-1", tooltip: "Tooltip for step 1", tooltip_position: "right", step_direction: "horizontal" }) do %>
3
3
  step 1
4
4
  <% end %>
5
- <%= pb_rails("progress_step/progress_step_item", props: {status: "complete", classname: "tooltip-trigger-2", tooltip: "Tooltip for step 2", tooltip_position: "left", step_direction: "horizontal" }) do %>
5
+ <%= pb_rails("progress_step/progress_step_item", props: {status: "complete", classname: "tooltip-trigger-2", tooltip: "Tooltip for step 2", step_direction: "horizontal" }) do %>
6
6
  step 2
7
7
  <% end %>
8
8
  <%= pb_rails("progress_step/progress_step_item", props: {status: "active", classname: "tooltip-trigger-3", tooltip: "Tooltip for step 3", tooltip_position: "left", step_direction: "horizontal" }) do %>
@@ -11,7 +11,7 @@
11
11
  <%= pb_rails("progress_step/progress_step_item", props: {status: "inactive", classname: "tooltip-trigger-4", tooltip: "Tooltip for step 4", tooltip_position: "bottom" }) do %>
12
12
  step 4
13
13
  <% end %>
14
- <%= pb_rails("progress_step/progress_step_item", props: {status: "inactive", classname: "tooltip-trigger-5", tooltip: "Tooltip for step 5", tooltip_position: "left" }) do %>
14
+ <%= pb_rails("progress_step/progress_step_item", props: {status: "inactive", classname: "tooltip-trigger-5", tooltip: "Tooltip for step 5" }) do %>
15
15
  step 5
16
16
  <% end %>
17
17
  <% end %>
@@ -19,7 +19,7 @@
19
19
  <br /><br />
20
20
 
21
21
  <%= pb_rails("progress_step", props: {orientation: "vertical"}) do %>
22
- <%= pb_rails("progress_step/progress_step_item", props: {status: "complete", classname: "tooltip-trigger-6", tooltip: "Tooltip step 1", step_direction: "vertical", tooltip_position: "left" }) do %>
22
+ <%= pb_rails("progress_step/progress_step_item", props: {status: "complete", classname: "tooltip-trigger-6", tooltip: "Tooltip step 1", step_direction: "vertical" }) do %>
23
23
  <% end %>
24
24
  <%= pb_rails("progress_step/progress_step_item", props: {status: "active", classname: "tooltip-trigger-7", tooltip: "Tooltip step 2", tooltip_position: "left"}) do %>
25
25
  <% end %>
@@ -31,10 +31,10 @@
31
31
 
32
32
  <br /><br>
33
33
  <%= pb_rails("progress_step",props:{ variant:"tracker", icon:true}) do %>
34
- <%= pb_rails("progress_step/progress_step_item", props: {status: "complete", classname: "tooltip-trigger-10", tooltip: "The order has been received", step_direction: "horizontal" , tooltip_position: "right" }) do %>
34
+ <%= pb_rails("progress_step/progress_step_item", props: {status: "complete", classname: "tooltip-trigger-10", tooltip: "The order has been received", step_direction: "horizontal" , tooltip_position: "right" }) do %>
35
35
  <%= pb_rails("caption", props:{text: "Ordered"})%>
36
36
  <% end %>
37
- <%= pb_rails("progress_step/progress_step_item", props: {status: "active", classname: "tooltip-trigger-11", tooltip:"Item(s) have been shipped", tooltip_position: "right" }) do %>
37
+ <%= pb_rails("progress_step/progress_step_item", props: {status: "active", classname: "tooltip-trigger-11", tooltip:"Item(s) have been shipped" }) do %>
38
38
  <%= pb_rails("caption", props:{text: "Shipped"})%>
39
39
  <% end %>
40
40
  <%= pb_rails("progress_step/progress_step_item", props: {status: "inactive", classname: "tooltip-trigger-12", tooltip:"This step has not been reached", tooltip_position: "left" }) do %>
@@ -50,7 +50,7 @@
50
50
  <%= pb_rails("progress_step/progress_step_item", props: {status: "active", icon: "exclamation-triangle", classname: "tooltip-trigger-14", tooltip: "More details needed before shipment", tooltip_position: "bottom" }) do %>
51
51
  <%= pb_rails("caption", props:{text: "Shipped"})%>
52
52
  <% end %>
53
- <%= pb_rails("progress_step/progress_step_item", props: {status: "inactive", classname: "tooltip-trigger-15", tooltip: "This step is inactive", tooltip_position: "bottom"}) do %>
53
+ <%= pb_rails("progress_step/progress_step_item", props: {status: "inactive", classname: "tooltip-trigger-15", tooltip: "This step is inactive"}) do %>
54
54
  <%= pb_rails("caption", props:{text: "Out for Delivery"})%>
55
55
  <% end %>
56
56
  <%= pb_rails("progress_step/progress_step_item", props: {status: "inactive", classname: "tooltip-trigger-16", tooltip: "Estimated delivery: Jun 27", tooltip_position: "left"}) do %>
@@ -39,17 +39,20 @@
39
39
  </tr>
40
40
  </tbody>
41
41
  <% end %>
42
+
42
43
  <%= pb_rails("table", props: { size: "sm", margin_bottom: "lg" }) do %>
43
44
  <colgroup>
44
45
  <%= pb_rails("background", props: { background_color: "error_subtle", tag: "col" }) %>
45
- <%= pb_rails("background", props: { background_color: "info_subtle", tag: "col" }) %>
46
+ <%= pb_rails("background", props: { background_color: "card_light", tag: "col" }) %>
46
47
  <%= pb_rails("background", props: { background_color: "warning_subtle", tag: "col" }) %>
47
48
  </colgroup>
48
- <thead>
49
- <th>Column 1</th>
50
- <th>Column 2</th>
51
- <th>Column 3</th>
52
- </thead>
49
+ <%= pb_rails("background", props: { background_color: "card_light", tag: "thead" }) do %>
50
+ <tr>
51
+ <th>Column 1</th>
52
+ <th>Column 2</th>
53
+ <th>Column 3</th>
54
+ </tr>
55
+ <% end %>
53
56
  <tbody>
54
57
  <tr>
55
58
  <td>Value 1</td>
@@ -68,7 +68,7 @@ const TableWithBackgroundKit = (props) => {
68
68
  tag='col'
69
69
  />
70
70
  <Background
71
- backgroundColor="info_subtle"
71
+ backgroundColor="card_light"
72
72
  tag='col'
73
73
  />
74
74
  <Background
@@ -76,13 +76,16 @@ const TableWithBackgroundKit = (props) => {
76
76
  tag='col'
77
77
  />
78
78
  </colgroup>
79
- <thead>
79
+ <Background
80
+ backgroundColor="card_light"
81
+ tag='thead'
82
+ >
80
83
  <tr>
81
- <th>{'Column 1'}</th>
82
- <th>{'Column 2'}</th>
83
- <th>{'Column 3'}</th>
84
+ <th>{'Column 1'}</th>
85
+ <th>{'Column 2'}</th>
86
+ <th>{'Column 3'}</th>
84
87
  </tr>
85
- </thead>
88
+ </Background>
86
89
  <tbody>
87
90
  <tr>
88
91
  <td>{'Value 1'}</td>
@@ -38,7 +38,7 @@
38
38
  margin_bottom: "md",
39
39
  name: "currency_name",
40
40
  id: "example-currency",
41
- value: "$99.99",
41
+ placeholder: "$0.00",
42
42
  }) %>
43
43
 
44
44
  <style>
@@ -43,4 +43,4 @@
43
43
  Whoa. I'm a tooltip.
44
44
  <% end %>
45
45
  <% end %>
46
- <% end %>
46
+ <% end %>
@@ -2,7 +2,6 @@ examples:
2
2
 
3
3
  rails:
4
4
  - user_default: Default
5
- - user_light_weight: Light Weight
6
5
  - user_with_territory: With Territory
7
6
  - user_text_only: Text Only
8
7
  - user_size: Horizontal Size
@@ -12,7 +11,6 @@ examples:
12
11
 
13
12
  react:
14
13
  - user_default: Default
15
- - user_light_weight: Light Weight
16
14
  - user_with_territory: With Territory
17
15
  - user_text_only: Text Only
18
16
  - user_size: Horizontal Size
@@ -1,5 +1,4 @@
1
1
  export { default as UserDefault } from './_user_default.jsx'
2
- export { default as UserLightWeight } from './_user_light_weight.jsx'
3
2
  export { default as UserWithTerritory } from './_user_with_territory.jsx'
4
3
  export { default as UserTextOnly } from './_user_text_only.jsx'
5
4
  export { default as UserSize } from './_user_size.jsx'