playbook_ui_docs 16.4.0.pre.alpha.PLAY2718containerfalseborderradiusresponsiveonly15164 → 16.4.0.pre.alpha.PLAY2864circleiconbuttonloadingalignrails15138

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 955221598614b89a5ea56915a4147b016ee929378a372502fb05ba1f677dbd45
4
- data.tar.gz: 5f0ecab16e7a07dfb66e3ec91397e33c0348123911a658506c8b318e2d0579fe
3
+ metadata.gz: 5f445aa174e5279062b03dd04f87872fea3d366d1d46bc7c5516408593336fdc
4
+ data.tar.gz: 723c15f2f7680a9424bc92c95e8c6af1386d1a880260b4096b62cb020138465d
5
5
  SHA512:
6
- metadata.gz: 864cb97ebc2cb3ca94fd2460eb755f929993e773e7867d7a7a78e8d943ba2798c80a0d3ba933583fde99c705d6bc467fcc7872774bbda20aa32a9c5b52928b70
7
- data.tar.gz: 99782531502ddde43861858ece6e9a911936d4554b6e40aae0357fe502ff900ec8de962e03c7a35a722dec5ababec18de3e6b6183a81a6d82b0ffefc489785b2
6
+ metadata.gz: 348b84bc7491f38e7cdb75822ec1c829fdce88f790d8102f294a918bb1e6d07b45a0b0b715b068db6b79ffc93ef3a1ea2743e15b294ddf00769566f0ab2027cb
7
+ data.tar.gz: 927be562b1b02541a7ea79d2143d30bb37797e8470846d628e0a9f1b808f07925147241d60b9eadd2d1bd4e45a5a6e60a926d7ccee3225041cac5e441b213d7c
@@ -30,34 +30,4 @@
30
30
  }
31
31
  ] %>
32
32
 
33
- <%= pb_rails("caption", props: { text: "Default Advanced Table Table Props Doc Example" }) %>
34
- <%= pb_rails("advanced_table", props: { id: "table_props_table", table_data: @table_data, column_definitions: column_definitions, table_props: { vertical_border: true, container: false }}) %>
35
-
36
- <%= pb_rails("caption", props: { text: "Advanced Table with just container: false" }) %>
37
- <%= pb_rails("advanced_table", props: { id: "table_props_table_2", table_data: @table_data, column_definitions: column_definitions, table_props: { container: false }}) %>
38
-
39
- <%= pb_rails("caption", props: { text: "Typical set up: Card and Flex around Filter, SectionSeparator, and AdvancedTable with container: false" }) %>
40
- <%= pb_rails("card", props: { padding: "none", margin_bottom: "xl" }) do %>
41
- <%= pb_rails("flex", props: { align: "stretch", orientation: "column", gap: "none" }) do %>
42
- <%= pb_rails("filter", props: {
43
- background: false,
44
- max_height: (@table_data.to_a.size < 10) ? "50vh" : "none",
45
- min_width: "xs",
46
- popover_props: { width: "350px" },
47
- id: "rails-table-props-filter-with-data",
48
- template: "single",
49
- results: @table_data.to_a.size,
50
- }) do %>
51
- <%= pb_form_with(scope: :example, method: :get, url: "", validate: true) do |form| %>
52
- <%= form.number_field :new_leads_eq, props: { label: "New Leads" } %>
53
- <%= form.text_field :conversion_rate_eq, props: { label: "Conversion Rate" } %>
54
- <%= form.actions do |action| %>
55
- <%= action.submit props: { text: "Filter" } %>
56
- <%= action.button props: { type: "reset", text: "Defaults", variant: "secondary" } %>
57
- <% end %>
58
- <% end %>
59
- <% end %>
60
- <%= pb_rails("section_separator") %>
61
- <%= pb_rails("advanced_table", props: { id: "rails_template_advanced_table", table_data: @table_data, column_definitions: column_definitions, table_props: { container: false } }) %>
62
- <% end %>
63
- <% end %>
33
+ <%= pb_rails("advanced_table", props: { id: "table_props_table", table_data: @table_data, column_definitions: column_definitions, table_props: { vertical_border: true, container: false }}) %>
@@ -1,13 +1,6 @@
1
1
  import React from "react"
2
2
  import AdvancedTable from '../../pb_advanced_table/_advanced_table'
3
3
  import MOCK_DATA from "./advanced_table_mock_data.json"
4
- import Button from "../../pb_button/_button"
5
- import Caption from "../../pb_caption/_caption"
6
- import Card from "../../pb_card/_card"
7
- import Filter from "../../pb_filter/_filter"
8
- import Flex from "../../pb_flex/_flex"
9
- import SectionSeparator from "../../pb_section_separator/_section_separator"
10
- import TextInput from "../../pb_text_input/_text_input"
11
4
 
12
5
  const AdvancedTableTableProps = (props) => {
13
6
  const columnDefinitions = [
@@ -47,100 +40,14 @@ const AdvancedTableTableProps = (props) => {
47
40
  verticalBorder: true
48
41
  }
49
42
 
50
- const filterPopoverProps = { width: "350px" }
51
-
52
- const filterForm = (closePopover) => (
53
- <form>
54
- <TextInput
55
- label="New Leads"
56
- name="new_leads_eq"
57
- placeholder="0"
58
- type="number"
59
- {...props}
60
- />
61
- <TextInput
62
- label="Conversion Rate"
63
- name="conversion_rate_eq"
64
- placeholder="e.g. 12%"
65
- {...props}
66
- />
67
- <Flex
68
- spacing="between"
69
- {...props}
70
- >
71
- <Button
72
- onClick={closePopover}
73
- text="Filter"
74
- {...props}
75
- />
76
- <Button
77
- text="Defaults"
78
- type="reset"
79
- variant="secondary"
80
- {...props}
81
- />
82
- </Flex>
83
- </form>
84
- )
85
-
86
43
  return (
87
44
  <div>
88
- <Caption
89
- text="Default Advanced Table Table Props Doc Example"
90
- />
91
45
  <AdvancedTable
92
46
  columnDefinitions={columnDefinitions}
93
- marginBottom="md"
94
47
  tableData={MOCK_DATA}
95
48
  tableProps={tableProps}
96
49
  {...props}
97
50
  />
98
- <Caption
99
- text="Advanced Table with just container: false"
100
- />
101
- <AdvancedTable
102
- columnDefinitions={columnDefinitions}
103
- marginBottom="md"
104
- tableData={MOCK_DATA}
105
- tableProps={{container: false}}
106
- {...props}
107
- />
108
-
109
- <Caption
110
- text="Typical set up: Card and Flex around Filter, SectionSeparator, and AdvancedTable with container: false"
111
- />
112
- <Card
113
- marginBottom="xl"
114
- padding="none"
115
- {...props}
116
- >
117
- <Flex
118
- align="stretch"
119
- gap="none"
120
- orientation="column"
121
- {...props}
122
- >
123
- <Filter
124
- background={false}
125
- id="react-table-props-filter-with-data"
126
- maxHeight={MOCK_DATA.length < 10 ? "50vh" : "none"}
127
- minWidth="xs"
128
- popoverProps={filterPopoverProps}
129
- results={MOCK_DATA.length}
130
- {...props}
131
- >
132
- {({ closePopover }) => filterForm(closePopover)}
133
- </Filter>
134
- <SectionSeparator {...props} />
135
- <AdvancedTable
136
- columnDefinitions={columnDefinitions}
137
- id="react_template_advanced_table"
138
- tableData={MOCK_DATA}
139
- tableProps={{container: false}}
140
- {...props}
141
- />
142
- </Flex>
143
- </Card>
144
51
  </div>
145
52
  )
146
53
  }
@@ -27,3 +27,28 @@
27
27
  icon: "user",
28
28
  loading: true
29
29
  }) %>
30
+
31
+
32
+ <%= pb_rails("button", props: { margin_top: "md", text: "Open Dialog to confirm PLAY-2837 fix still works", data: {"open-dialog": "dialog-1"} }) %>
33
+
34
+ <%= pb_rails("dialog", props: {
35
+ id:"dialog-1",
36
+ size: "md",
37
+ title: "Header Title is the Title Prop"
38
+ }) do %>
39
+ <%= pb_rails("dialog/dialog_body") do %>
40
+ <%= pb_rails("button", props: { aria: { label: "Loading" }, loading: true, margin_right: "lg", text: "Button Primary" }) %>
41
+ <%= pb_rails("circle_icon_button", props: { loading: true, icon: "plus" }) %>
42
+ <div style="height: 800px; background-color: lightgray;"></div>
43
+ <%= pb_rails("button", props: { loading: true, text: "Loading..." }) %>
44
+ <%= pb_rails("circle_icon_button", props: { loading: true, icon: "plus" }) %>
45
+ <% end %>
46
+
47
+ <%= pb_rails("dialog/dialog_footer") do %>
48
+ <%= pb_rails("flex", props: { spacing: "between", padding_x: "md", padding_bottom: "md", padding: "sm" }) do %>
49
+ <%= pb_rails("button", props: { loading: true, text: "Send My Issue" }) %>
50
+ <%= pb_rails("circle_icon_button", props: { loading: true, icon: "plus" }) %>
51
+ <%= pb_rails("button", props: { text: "Back", variant: "link", data: {"close-dialog": "dialog-1"} }) %>
52
+ <% end %>
53
+ <% end %>
54
+ <% end %>
@@ -1,43 +1,102 @@
1
- import React from 'react'
1
+ import React, { useState } from 'react'
2
2
 
3
3
  import CircleIconButton from '../_circle_icon_button'
4
+ import Dialog from '../../pb_dialog/_dialog'
5
+ import Button from '../../pb_button/_button'
4
6
 
5
- const CircleIconButtonLoading = (props) => (
6
- <div>
7
- <CircleIconButton
8
- icon="plus"
9
- loading
10
- variant="primary"
11
- {...props}
12
- />
13
-
14
- <br />
15
-
16
- <CircleIconButton
17
- icon="pen"
18
- loading
19
- variant="secondary"
20
- {...props}
21
- />
22
-
23
- <br />
24
-
25
- <CircleIconButton
26
- disabled
27
- icon="times"
28
- loading
29
- {...props}
30
- />
31
-
32
- <br />
33
-
34
- <CircleIconButton
35
- icon="user"
36
- loading
37
- variant="link"
38
- {...props}
39
- />
40
- </div>
41
- )
7
+ const CircleIconButtonLoading = (props) => {
8
+
9
+
10
+ const [isOpen, setIsOpen] = useState(false)
11
+ const close = () => setIsOpen(false)
12
+ const open = () => setIsOpen(true)
13
+
14
+ return (
15
+ <div>
16
+ <CircleIconButton
17
+ icon="plus"
18
+ loading
19
+ variant="primary"
20
+ {...props}
21
+ />
22
+
23
+ <br />
24
+
25
+ <CircleIconButton
26
+ icon="pen"
27
+ loading
28
+ variant="secondary"
29
+ {...props}
30
+ />
31
+
32
+ <br />
33
+
34
+ <CircleIconButton
35
+ disabled
36
+ icon="times"
37
+ loading
38
+ {...props}
39
+ />
40
+
41
+ <br />
42
+
43
+ <CircleIconButton
44
+ icon="user"
45
+ loading
46
+ variant="link"
47
+ {...props}
48
+ />
49
+ <>
50
+ <Button marginTop="md"
51
+ onClick={open}
52
+ >
53
+ {'Open Dialog to confirm PLAY-2837 fix still works for circle icon buttons'}
54
+ </Button>
55
+ <Dialog
56
+ onCancel={close}
57
+ onClose={close}
58
+ onConfirm={close}
59
+ opened={isOpen}
60
+ size="md"
61
+ title="Header Title is the Title Prop"
62
+ >
63
+ <Dialog.Body>
64
+ <Button
65
+ aria={{ label: 'Loading' }}
66
+ loading
67
+ text="Button Primary"
68
+ />
69
+ <CircleIconButton
70
+ icon="plus"
71
+ loading
72
+ />
73
+ <div style={{height: '800px', backgroundColor: 'lightgray'}} />
74
+ <Button
75
+ loading
76
+ text="Loading..."
77
+ />
78
+ <CircleIconButton
79
+ icon="plus"
80
+ loading
81
+ />
82
+ </Dialog.Body>
83
+ <Dialog.Footer>
84
+ <Button
85
+ loading
86
+ text="Send My Issue"
87
+ />
88
+ <CircleIconButton
89
+ icon="plus"
90
+ loading
91
+ />
92
+ <Button variant="link">
93
+ {"Back"}
94
+ </Button>
95
+ </Dialog.Footer>
96
+ </Dialog>
97
+ </>
98
+ </div>
99
+ )
100
+ }
42
101
 
43
102
  export default CircleIconButtonLoading
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: 16.4.0.pre.alpha.PLAY2718containerfalseborderradiusresponsiveonly15164
4
+ version: 16.4.0.pre.alpha.PLAY2864circleiconbuttonloadingalignrails15138
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: 2026-03-23 00:00:00.000000000 Z
12
+ date: 2026-03-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: playbook_ui