playbook_ui_docs 14.25.0.pre.alpha.testingcss10064 → 14.25.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 (53) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -2
  3. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -3
  4. data/app/pb_kits/playbook/pb_card/docs/_card_header.html.erb +1 -1
  5. data/app/pb_kits/playbook/pb_circle_icon_button/docs/example.yml +0 -1
  6. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_loading.html.erb +2 -16
  7. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_behavior.html.erb +8 -0
  8. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_behavior.jsx +41 -0
  9. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_borders.html.erb +33 -0
  10. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_borders.jsx +78 -0
  11. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_breakpoints.html.erb +3 -0
  12. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_breakpoints.jsx +26 -0
  13. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_default.html.erb +20 -0
  14. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_default.jsx +59 -0
  15. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_menu.html.erb +24 -0
  16. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_menu.jsx +61 -0
  17. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_menu.md +24 -0
  18. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.html.erb +21 -0
  19. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.jsx +54 -0
  20. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.md +1 -0
  21. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_sizes.html.erb +49 -0
  22. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_sizes.jsx +99 -0
  23. data/app/pb_kits/playbook/pb_drawer/docs/example.yml +20 -0
  24. data/app/pb_kits/playbook/pb_drawer/docs/index.js +7 -0
  25. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_props_swift.md +2 -3
  26. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/example.yml +0 -2
  27. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/index.js +0 -1
  28. data/app/pb_kits/playbook/pb_flex/docs/_flex_gap.html.erb +1 -12
  29. data/app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx +1 -26
  30. data/app/pb_kits/playbook/pb_flex/docs/_flex_gap.md +9 -0
  31. data/app/pb_kits/playbook/pb_map/docs/_map_default.jsx +1 -1
  32. data/app/pb_kits/playbook/pb_map/docs/_map_with_custom_button.jsx +1 -1
  33. data/app/pb_kits/playbook/pb_map/docs/_map_with_plugin.jsx +1 -1
  34. data/app/pb_kits/playbook/pb_pagination/docs/example.yml +0 -1
  35. data/app/pb_kits/playbook/pb_pagination/docs/index.js +0 -1
  36. data/app/pb_kits/playbook/pb_radio/docs/_radio_react_hook.jsx +3 -0
  37. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_color.jsx +1 -3
  38. data/app/pb_kits/playbook/pb_user/docs/_user_props_table.md +7 -14
  39. data/dist/playbook-doc.js +2 -2
  40. metadata +21 -15
  41. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control.jsx +0 -60
  42. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control.md +0 -3
  43. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control_per_row.jsx +0 -57
  44. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control_per_row.md +0 -1
  45. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_input_options.html.erb +0 -24
  46. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_input_options.md +0 -3
  47. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_no_icon.html.erb +0 -22
  48. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_no_icon.jsx +0 -43
  49. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_no_icon.md +0 -1
  50. data/app/pb_kits/playbook/pb_flex/docs/_flex_gap_rails.md +0 -11
  51. data/app/pb_kits/playbook/pb_flex/docs/_flex_gap_react.md +0 -11
  52. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_external_control.jsx +0 -112
  53. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_external_control_react.md +0 -3
@@ -0,0 +1,99 @@
1
+ import React, { useState } from "react";
2
+
3
+ import Button from '../../pb_button/_button'
4
+ import Drawer from '../../pb_drawer/_drawer'
5
+ import Flex from '../../pb_flex/_flex'
6
+
7
+ const DrawerSizes = () => {
8
+ // Individual state variables for each drawer size
9
+ const [openedXsDrawer, setOpenedXsDrawer] = useState(false);
10
+ const [openedSmDrawer, setOpenedSmDrawer] = useState(false);
11
+ const [openedMdDrawer, setOpenedMdDrawer] = useState(false);
12
+ const [openedLgDrawer, setOpenedLgDrawer] = useState(false);
13
+ const [openedXlDrawer, setOpenedXlDrawer] = useState(false);
14
+
15
+ // Toggle functions for each drawer
16
+ const toggleXsDrawer = () => setOpenedXsDrawer(!openedXsDrawer);
17
+ const toggleSmDrawer = () => setOpenedSmDrawer(!openedSmDrawer);
18
+ const toggleMdDrawer = () => setOpenedMdDrawer(!openedMdDrawer);
19
+ const toggleLgDrawer = () => setOpenedLgDrawer(!openedLgDrawer);
20
+ const toggleXlDrawer = () => setOpenedXlDrawer(!openedXlDrawer);
21
+
22
+ return (
23
+ <>
24
+ <Flex wrap>
25
+ <Button
26
+ marginRight="md"
27
+ onClick={toggleXsDrawer}
28
+ >
29
+ XS Drawer
30
+ </Button>
31
+ <Button marginRight="md"
32
+ onClick={toggleSmDrawer}
33
+ >
34
+ SM Drawer
35
+ </Button>
36
+ <Button marginRight="md"
37
+ onClick={toggleMdDrawer}
38
+ >
39
+ MD Drawer
40
+ </Button>
41
+ <Button marginRight="md"
42
+ onClick={toggleLgDrawer}
43
+ >
44
+ LG Drawer
45
+ </Button>
46
+ <Button marginRight="md"
47
+ onClick={toggleXlDrawer}
48
+ >
49
+ XL Drawer
50
+ </Button>
51
+ </Flex>
52
+
53
+ {/* Drawers for each size */}
54
+ <Drawer
55
+ onClose={toggleXsDrawer}
56
+ opened={openedXsDrawer}
57
+ placement="right"
58
+ size="xs"
59
+ >
60
+ XS
61
+ </Drawer>
62
+
63
+ <Drawer
64
+ onClose={toggleSmDrawer}
65
+ opened={openedSmDrawer}
66
+ size="sm"
67
+ >
68
+ This is an SM Drawer
69
+ </Drawer>
70
+
71
+ <Drawer
72
+ onClose={toggleMdDrawer}
73
+ opened={openedMdDrawer}
74
+ placement="right"
75
+ >
76
+ This is an MD Drawer
77
+ </Drawer>
78
+
79
+ <Drawer
80
+ onClose={toggleLgDrawer}
81
+ opened={openedLgDrawer}
82
+ size="lg"
83
+ >
84
+ This is an LG Drawer
85
+ </Drawer>
86
+
87
+ <Drawer
88
+ onClose={toggleXlDrawer}
89
+ opened={openedXlDrawer}
90
+ placement="right"
91
+ size="xl"
92
+ >
93
+ This is an XL Drawer
94
+ </Drawer>
95
+ </>
96
+ );
97
+ };
98
+
99
+ export default DrawerSizes;
@@ -0,0 +1,20 @@
1
+ examples:
2
+
3
+ rails:
4
+ - drawer_default: Default
5
+ - drawer_behavior: Push Behavior
6
+ - drawer_menu: Within Element
7
+ - drawer_sizes: Sizes
8
+ - drawer_overlay: Overlay
9
+ - drawer_breakpoints: Breakpoints
10
+ - drawer_borders: Borders
11
+
12
+
13
+ react:
14
+ - drawer_default: Default
15
+ - drawer_behavior: Push Behavior
16
+ - drawer_menu: Within Element
17
+ - drawer_sizes: Sizes
18
+ - drawer_overlay: Overlay
19
+ - drawer_breakpoints: Breakpoints
20
+ - drawer_borders: Borders
@@ -0,0 +1,7 @@
1
+ export { default as DrawerDefault } from './_drawer_default.jsx'
2
+ export { default as DrawerSizes } from './_drawer_sizes.jsx'
3
+ export { default as DrawerOverlay } from './_drawer_overlay.jsx'
4
+ export { default as DrawerBorders } from './_drawer_borders.jsx'
5
+ export { default as DrawerBreakpoints } from './_drawer_breakpoints.jsx'
6
+ export { default as DrawerMenu } from './_drawer_menu.jsx'
7
+ export { default as DrawerBehavior } from './_drawer_behavior.jsx'
@@ -2,8 +2,7 @@
2
2
  | Name | Type | Description | Default | Values |
3
3
  | --- | ----------- | --------- | --------- | --------- |
4
4
  | **text** | `String` |`Value for the toast message` | `nil` | |
5
- | **font** | `PBFont` |`Value for the toast message font style` | `.title4` | |
6
- | **animatedIcon** | `AnyView` |`Value for the option to use an animated icon` | `nil` | |
7
- | **variant** | `Variant` | `Determines the type pf toast message being displayed` | `.custom()` | `error` `success` `neutral` `custom()` |
5
+ | **variant** | `Variant` | `Determines the type pf toast message being displayed` | `.custom()` | `error`, `success`,
6
+ `neutral`, `custom()` |
8
7
  | **actionView** | `dismissAction` | Dismisses the toast message | `.default` | `default` `custom()` `withTimer()` |
9
8
  | **dismissAction** | `(() -> Void)` | `Triggers the dismiss action` | | |
@@ -8,7 +8,6 @@ examples:
8
8
  - fixed_confirmation_toast_auto_close: Click to Show Auto Close
9
9
  - fixed_confirmation_toast_children: Children
10
10
  - fixed_confirmation_toast_custom_icon: Custom Icon
11
- - fixed_confirmation_toast_no_icon: No Icon
12
11
 
13
12
  react:
14
13
  - fixed_confirmation_toast_default: Default
@@ -18,7 +17,6 @@ examples:
18
17
  - fixed_confirmation_toast_auto_close: Click to Show Auto Close
19
18
  - fixed_confirmation_toast_children: Children
20
19
  - fixed_confirmation_toast_custom_icon: Custom Icon
21
- - fixed_confirmation_toast_no_icon: No Icon
22
20
 
23
21
  swift:
24
22
  - fixed_confirmation_toast_default_swift: Default
@@ -5,4 +5,3 @@ export { default as FixedConfirmationToastPositions } from './_fixed_confirmatio
5
5
  export { default as FixedConfirmationToastAutoClose } from './_fixed_confirmation_toast_auto_close.jsx'
6
6
  export { default as FixedConfirmationToastChildren } from './_fixed_confirmation_toast_children.jsx'
7
7
  export { default as FixedConfirmationToastCustomIcon } from './_fixed_confirmation_toast_custom_icon.jsx'
8
- export { default as FixedConfirmationToastNoIcon } from './_fixed_confirmation_toast_no_icon.jsx'
@@ -1,4 +1,4 @@
1
- <%= pb_rails("title", props: {size: 4, text: "Gap"}) %>
1
+ <%= pb_rails("title", props: {size: 4, text: "Row"}) %>
2
2
  <br/>
3
3
  <div class="flex-doc-example">
4
4
  <%= pb_rails("flex", props:{ gap: "xxs", wrap:true}) do %>
@@ -31,14 +31,3 @@
31
31
  <%= pb_rails("flex/flex_item") do %>4<% end %>
32
32
  <% end %>
33
33
  </div>
34
-
35
- <br/><br/>
36
- <%= pb_rails("title", props: {size: 4, text: "Responsive"}) %>
37
- <br/>
38
- <div class="flex-doc-example">
39
- <%= pb_rails("flex", props: { gap: { xs: "none", sm: "sm", md: "md", lg: "lg", xl: "xl" }, wrap: true }) do %>
40
- <% 40.times do |i| %>
41
- <%= pb_rails("flex/flex_item") do %> <%=i%> <% end %>
42
- <% end %>
43
- <% end %>
44
- </div>
@@ -1,7 +1,6 @@
1
1
  import React from 'react'
2
2
  import Flex from '../../pb_flex/_flex'
3
3
  import FlexItem from '../../pb_flex/_flex_item'
4
- import Title from '../../pb_title/_title'
5
4
 
6
5
  const FlexGap = (props) => {
7
6
  const count = () => {
@@ -14,8 +13,6 @@ const FlexGap = (props) => {
14
13
 
15
14
  return (
16
15
  <>
17
- <Title size={4}>Gap</Title>
18
- <br />
19
16
  <div className="flex-doc-example">
20
17
  <Flex
21
18
  gap="xxs"
@@ -30,10 +27,8 @@ const FlexGap = (props) => {
30
27
  </Flex>
31
28
  </div>
32
29
 
33
- <br /><br />
34
-
35
- <Title size={4}>Column Gap</Title>
36
30
  <br />
31
+
37
32
  <div className="flex-doc-example">
38
33
  <Flex
39
34
  columnGap="lg"
@@ -53,9 +48,6 @@ const FlexGap = (props) => {
53
48
  </FlexItem>
54
49
  </Flex>
55
50
  </div>
56
- <br /><br />
57
-
58
- <Title size={4}>Row Gap</Title>
59
51
  <br />
60
52
  <div className="flex-doc-example">
61
53
  <Flex
@@ -77,23 +69,6 @@ const FlexGap = (props) => {
77
69
  </FlexItem>
78
70
  </Flex>
79
71
  </div>
80
-
81
- <br /><br />
82
- <Title size={4}>Responsive</Title>
83
- <br />
84
- <div className="flex-doc-example">
85
- <Flex
86
- gap={{ xs: "none", sm: "sm", md: "md", lg: "lg", xl: "xl" }}
87
- wrap
88
- {...props}
89
- >
90
- {count().map((v, key) => (
91
- <FlexItem key={key}>
92
- {v}
93
- </FlexItem>
94
- ))}
95
- </Flex>
96
- </div>
97
72
  </>
98
73
  )
99
74
  }
@@ -0,0 +1,9 @@
1
+ ##### Prop
2
+
3
+ * `gap` | `row_gap` | `rowGap` | `column_gap` | `columnGap` | **Type**: String | **Values**: xxs | xs | sm | md | lg | xl | none
4
+
5
+ - Setting the gap prop sets the row_gap || rowGap and the column_gap || columnGap props to the same size and creates equal space within a flex container.
6
+
7
+ - Setting the row_gap || rowGap prop creates space between rows in a flex container.
8
+
9
+ - Setting the column_gap || columnGap prop creates space between columns in a flex container.
@@ -26,7 +26,7 @@ const MapDefault = (props) => {
26
26
  new maplibregl.Marker({
27
27
  color: mapTheme.marker,
28
28
  }).setLngLat(defaultPosition)
29
- .setPopup(new maplibregl.Popup({closeButton: false}).setHTML(`<h4 class="pb_title_kit pb_title_4">Hello World!</h4>`)) // add popup
29
+ .setPopup(new maplibregl.Popup({closeButton: false}).setHTML(`<h4 class="pb_title_kit_size_4">Hello World!</h4>`)) // add popup
30
30
  .addTo(map);
31
31
 
32
32
  // disable map zoom when using scroll
@@ -29,7 +29,7 @@ const MapWithCustomButton = (props) => {
29
29
  new maplibregl.Marker({
30
30
  color: mapTheme.marker,
31
31
  }).setLngLat(defaultPosition)
32
- .setPopup(new maplibregl.Popup({closeButton: false}).setHTML(`<h4 class="pb_title_kit pb_title_4">Hello World!</h4>`)) // add popup
32
+ .setPopup(new maplibregl.Popup({closeButton: false}).setHTML(`<h4 class="pb_title_kit_size_4">Hello World!</h4>`)) // add popup
33
33
  .addTo(map);
34
34
 
35
35
  // disable map zoom when using scroll
@@ -26,7 +26,7 @@ const MapWithPlugin = (props) => {
26
26
  new maplibregl.Marker({
27
27
  color: mapTheme.marker,
28
28
  }).setLngLat(defaultPosition)
29
- .setPopup(new maplibregl.Popup({closeButton: false}).setHTML(`<h4 class="pb_title_kit pb_title_4">Hello World!</h4>`)) // add popup
29
+ .setPopup(new maplibregl.Popup({className: 'map_popup', closeButton: false}).setHTML(`<h4 class="pb_title_kit_size_4">Hello World!</h4>`)) // add popup
30
30
  .addTo(map);
31
31
 
32
32
  //add maplibre default zoom controls
@@ -6,4 +6,3 @@ examples:
6
6
  react:
7
7
  - pagination_default: Default
8
8
  - pagination_page_change: Page Change
9
- - pagination_external_control: External Control
@@ -1,3 +1,2 @@
1
1
  export { default as PaginationDefault } from './_pagination_default.jsx'
2
2
  export { default as PaginationPageChange } from './_pagination_page_change.jsx'
3
- export { default as PaginationExternalControl } from './_pagination_external_control.jsx'
@@ -19,6 +19,7 @@ const RadioReactHook = () => {
19
19
  paddingRight="lg"
20
20
  >
21
21
  <Radio
22
+ alignment="left"
22
23
  label="Small"
23
24
  marginBottom='sm'
24
25
  name="size"
@@ -27,6 +28,7 @@ const RadioReactHook = () => {
27
28
  />
28
29
  <br />
29
30
  <Radio
31
+ alignment="left"
30
32
  label="Medium"
31
33
  marginBottom='sm'
32
34
  name="size"
@@ -35,6 +37,7 @@ const RadioReactHook = () => {
35
37
  />
36
38
  <br />
37
39
  <Radio
40
+ alignment="left"
38
41
  label="Large"
39
42
  marginBottom='sm'
40
43
  name="size"
@@ -5,9 +5,7 @@ import Detail from '../../pb_detail/_detail'
5
5
  import Icon from '../../pb_icon/_icon'
6
6
 
7
7
  const children = (
8
- <Flex alignItems="center"
9
- padding="xs"
10
- >
8
+ <Flex padding="xs">
11
9
  <Icon color="primary"
12
10
  icon="arrow-down"
13
11
  />
@@ -1,18 +1,11 @@
1
1
  ### Props
2
2
  | Name | Type | Description | Default | Values |
3
3
  | --- | ----------- | --------- | --------- | --------- |
4
- | **name** | `String` | Sets the User's name | `""` | |
5
- | **nameFont** | `Typography` | Font styling for the user's name | `.init(font: .title4, variant: .bold)` | |
6
- | **image** | `Image?` | Sets image for the avatar | `nil` | |
7
- | **orientation** | `Orientation` | Changes the orientation of the User | `.horizontal` | `.horizontal` `.vertical` |
8
- | **size** | `Size` | Changes the size of the User | `.medium` | `.xxSmall` `.xSmall` `.small` `.medium` `.large` `.xLarge` |
9
- | **territory** | `String?` | Adds the User's territory | `nil` | |
10
- | **title** | `String?` | Adds a title | `nil` | |
11
- | **subtitle** | `AnyView?` | Adds a subtitle view | `nil` | |
12
- | **status** | `PBOnlineStatus.Status?` | An indicator for the current status of the user | `nil` | `.online` `.away` `.offline` |
4
+ | **name** | `String` | Sets the User's name | | |
13
5
  | **displayAvatar** | `Bool` | Displays the User's avatar | `true` | `true` `false` |
14
- | **territoryTitleFont** | `PBFont` | Font for territory and title text | `.subcaption` | `.title1` `.body` `.caption` `.subcaption` `.badgeText` `.title4` |
15
- | **isActive** | `Bool` | Sets whether the user is active | `true` | `true` `false` |
16
- | **hasInactiveBadge** | `Bool` | Shows inactive badge when user is not active | `false` | `true` `false` |
17
- | **spacing** | `CGFloat` | Controls spacing between elements | `Spacing.small` | `.none` `.xxSmall` `.xSmall` `.small` `.medium` `.large` `.xLarge` |
18
-
6
+ | **image** | `Image` | Sets image for the avatar | | |
7
+ | **orientation** | `Orientation` | Changes the orientation of the User | `.horizontal` | `.horizontal` `.verticle` |
8
+ | **size** | `UserAvatarSize` | Changes the size of the User | `.medium` | `.small` `.medium` `.large` |
9
+ | **territory** | `String` | Adds the User's territory | | |
10
+ | **title** | `String` | Adds a title | | |
11
+ | **status** | `PBAvatar.PresenceStatus?` | An idicator for the current status of the user | `.none` | `.online` `.away` `.offline` |