playbook_ui_docs 14.16.0.pre.alpha.play1957inlinedatepickericonbugfix6872 → 14.16.0.pre.alpha.play1959tablekitstripedlogicoverridesbackground6893

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: 95f061cc4f605d8778c3d2e175801f3b33d6e5d2cfd31c2fbec0abb1c4071b5b
4
- data.tar.gz: ec582417447a457dcfd26f7fe058e48464f7b71eeabb0dc5ffeb97a678850c25
3
+ metadata.gz: d9c5fa78fcd4e3ad42d3012613fcef719787ff9e4a4d07f0448315a46e1971db
4
+ data.tar.gz: 21901266f0b8a6072198417751c24afa26d3cf3c51c94af938487d399a88bc1e
5
5
  SHA512:
6
- metadata.gz: 6c5b1216e6045b241f7ebb824bf96c15bd129f5841c2c448b0f07a3ab590c8f999632ac6baa9ffed6161959d9d38e247c979a7048a2c58b11ac739a9a46389c9
7
- data.tar.gz: c0985b3565ff50f9a4ea8ce582f3575d95c0ca1e5af30aa5f9db269577e5cf84d9ebcf4c2b6af56cac6c03b8bb757b8b432b8737c16f01e2693566e39aca1df6
6
+ metadata.gz: 0ed1cfcd62dee48aed41315a673818435214f0ba6f96dc595bd378a25402e9a538a42e8ae1e89baa3d1089259d210b17bd9d834f15c18309bd376dd33af76a16
7
+ data.tar.gz: b01eab8d74a19e6d02baf2375d2a89def62109e74e685b18c27d4bb86286c1ff8a212cf566368cb56d86dda68ea88d659bf87878cabd649c641d26326f0c5547
@@ -40,7 +40,6 @@ const AdvancedTablePagination = (props) => {
40
40
  <AdvancedTable
41
41
  columnDefinitions={columnDefinitions}
42
42
  pagination
43
- responsive="none"
44
43
  tableData={PAGINATION_MOCK_DATA}
45
44
  {...props}
46
45
  />
@@ -4,3 +4,14 @@
4
4
  inline: true,
5
5
  picker_id: "date-picker-inline"
6
6
  }) %>
7
+
8
+ <%= javascript_tag do %>
9
+ window.addEventListener("DOMContentLoaded", (event) => {
10
+ const fpInline = document.querySelector("#date-picker-inline")._flatpickr
11
+ <!-- Display the angle-down icon when a date has been selected -->
12
+ const showAngleDownHandler = () => {
13
+ document.querySelector('.inline-date-picker').classList.add('show-angle-down-icon')
14
+ }
15
+ fpInline.config.onChange.push(showAngleDownHandler)
16
+ })
17
+ <% end %>
@@ -3,12 +3,19 @@ import React from 'react'
3
3
  import DatePicker from '../_date_picker'
4
4
 
5
5
  const DatePickerInline = (props) => {
6
+ const showAngleDownHandler = (dateSelected) => {
7
+ if (dateSelected) {
8
+ document.querySelector('.inline-date-picker').classList.add('show-angle-down-icon')
9
+ }
10
+ }
11
+
6
12
  return (
7
13
  <div>
8
14
  <DatePicker
9
15
  className="inline-date-picker"
10
16
  hideIcon
11
17
  inLine
18
+ onChange={showAngleDownHandler}
12
19
  pickerId="date-picker-inline"
13
20
  {...props}
14
21
  />
@@ -1 +1 @@
1
- <%= pb_rails("rich_text_editor", props: {id: "default", value: "Add your text here. You can format your text, add links, quotes, and bullets."}) %>
1
+ <%= pb_rails("rich_text_editor", props: {input_options: { id: 'hidden_input_id', name: "hidden_input_name" }, value: "Add your text here. You can format your text, add links, quotes, and bullets."}) %>
@@ -0,0 +1,50 @@
1
+ import React from 'react'
2
+
3
+ import Table from '../../pb_table/_table'
4
+
5
+ const TableWithHeaderStyleBorderless = (props) => {
6
+ return (
7
+ <>
8
+ <Table
9
+ headerStyle="borderless"
10
+ size="sm"
11
+ {...props}
12
+ >
13
+ <thead>
14
+ <tr>
15
+ <th>{'Column 1'}</th>
16
+ <th>{'Column 2'}</th>
17
+ <th>{'Column 3'}</th>
18
+ <th>{'Column 4'}</th>
19
+ <th>{'Column 5'}</th>
20
+ </tr>
21
+ </thead>
22
+ <tbody>
23
+ <tr>
24
+ <td>{'Value 1'}</td>
25
+ <td>{'Value 2'}</td>
26
+ <td>{'Value 3'}</td>
27
+ <td>{'Value 4'}</td>
28
+ <td>{'Value 5'}</td>
29
+ </tr>
30
+ <tr>
31
+ <td>{'Value 1'}</td>
32
+ <td>{'Value 2'}</td>
33
+ <td>{'Value 3'}</td>
34
+ <td>{'Value 4'}</td>
35
+ <td>{'Value 5'}</td>
36
+ </tr>
37
+ <tr>
38
+ <td>{'Value 1'}</td>
39
+ <td>{'Value 2'}</td>
40
+ <td>{'Value 3'}</td>
41
+ <td>{'Value 4'}</td>
42
+ <td>{'Value 5'}</td>
43
+ </tr>
44
+ </tbody>
45
+ </Table>
46
+ </>
47
+ )
48
+ }
49
+
50
+ export default TableWithHeaderStyleBorderless
@@ -0,0 +1 @@
1
+ Customize your header by removing the header borders with the `headerStyle="borderless"` prop.
@@ -0,0 +1,59 @@
1
+ import React from 'react'
2
+
3
+ import Background from '../../pb_background/_background'
4
+ import Card from '../../pb_card/_card'
5
+ import Table from '../../pb_table/_table'
6
+
7
+ const TableWithHeaderStyleFloating = (props) => {
8
+ return (
9
+ <>
10
+ <Card background="light"
11
+ {...props}
12
+ >
13
+ <Table
14
+ headerStyle="floating"
15
+ size="sm"
16
+ {...props}
17
+ >
18
+ <Table.Head>
19
+ <Background backgroundColor="light"
20
+ tag="tr"
21
+ {...props}
22
+ >
23
+ <Table.Header>{'Column 1'}</Table.Header>
24
+ <Table.Header>{'Column 2'}</Table.Header>
25
+ <Table.Header>{'Column 3'}</Table.Header>
26
+ <Table.Header>{'Column 4'}</Table.Header>
27
+ <Table.Header>{'Column 5'}</Table.Header>
28
+ </Background>
29
+ </Table.Head>
30
+ <Table.Body>
31
+ <Table.Row>
32
+ <Table.Cell>{'Value 1'}</Table.Cell>
33
+ <Table.Cell>{'Value 2'}</Table.Cell>
34
+ <Table.Cell>{'Value 3'}</Table.Cell>
35
+ <Table.Cell>{'Value 4'}</Table.Cell>
36
+ <Table.Cell>{'Value 5'}</Table.Cell>
37
+ </Table.Row>
38
+ <Table.Row>
39
+ <Table.Cell>{'Value 1'}</Table.Cell>
40
+ <Table.Cell>{'Value 2'}</Table.Cell>
41
+ <Table.Cell>{'Value 3'}</Table.Cell>
42
+ <Table.Cell>{'Value 4'}</Table.Cell>
43
+ <Table.Cell>{'Value 5'}</Table.Cell>
44
+ </Table.Row>
45
+ <Table.Row>
46
+ <Table.Cell>{'Value 1'}</Table.Cell>
47
+ <Table.Cell>{'Value 2'}</Table.Cell>
48
+ <Table.Cell>{'Value 3'}</Table.Cell>
49
+ <Table.Cell>{'Value 4'}</Table.Cell>
50
+ <Table.Cell>{'Value 5'}</Table.Cell>
51
+ </Table.Row>
52
+ </Table.Body>
53
+ </Table>
54
+ </Card>
55
+ </>
56
+ )
57
+ }
58
+
59
+ export default TableWithHeaderStyleFloating
@@ -0,0 +1 @@
1
+ Further customize your header by using the [table with background kit](https://playbook.powerapp.cloud/kits/table/react#table-with-background-kit) logic to give your table header a custom background color. Use the `headerStyle="floating"` prop to visually nest the borderless table within a card or collapsible with a matching background color (the `backgroundColor` passed to Background kit should match the `backgroundColor` for the element in which it is nested).
@@ -75,3 +75,5 @@ examples:
75
75
  - table_with_collapsible_with_nested_table: Table with Collapsible with Nested Table
76
76
  - table_with_clickable_rows: Table with Clickable Rows
77
77
  - table_with_selectable_rows: Table with Selectable Rows
78
+ - table_with_header_style_borderless: Header Style Borderless
79
+ - table_with_header_style_floating: Header Style Floating
@@ -35,3 +35,5 @@ export { default as TableWithCollapsibleWithNestedRows } from './_table_with_col
35
35
  export { default as TableWithCollapsibleWithCustomClick } from './_table_with_collapsible_with_custom_click.jsx'
36
36
  export { default as TableWithSelectableRows } from './_table_with_selectable_rows.jsx'
37
37
  export { default as TableWithClickableRows } from './_table_with_clickable_rows.jsx'
38
+ export { default as TableWithHeaderStyleBorderless } from './_table_with_header_style_borderless.jsx'
39
+ export { default as TableWithHeaderStyleFloating } from './_table_with_header_style_floating.jsx'