playbook_ui_docs 16.7.0.pre.alpha.tablewidths16409 → 16.7.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.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.jsx +0 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.md +0 -10
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_grouped_headers_composition.jsx +1 -15
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_infinite_scroll.jsx +2 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.jsx +2 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows.jsx +2 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/_mock_data_inline_loading.js +200 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_mock_data_inline_loading_empty_children.js +42 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_playground.json +5807 -150
- data/app/pb_kits/playbook/pb_advanced_table/docs/_playground.overrides.json +30 -5
- data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_column_definitions_styling.json +1 -6
- data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_grouped_headers_composition_mock_data.json +98 -0
- data/app/pb_kits/playbook/pb_bread_crumbs/docs/_bread_crumbs_default.jsx +5 -5
- data/app/pb_kits/playbook/pb_date/docs/_playground.json +17 -13
- data/app/pb_kits/playbook/pb_date/docs/_playground.overrides.json +16 -13
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_inline.html.erb +2 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_inline.jsx +2 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_playground.json +42 -136
- data/app/pb_kits/playbook/pb_date_picker/docs/_playground.overrides.json +45 -113
- data/app/pb_kits/playbook/pb_date_range_inline/docs/_playground.json +6 -48
- data/app/pb_kits/playbook/pb_date_range_stacked/docs/_playground.json +5 -28
- data/app/pb_kits/playbook/pb_date_stacked/docs/_playground.json +1 -1
- data/app/pb_kits/playbook/pb_date_stacked/docs/_playground.overrides.json +1 -1
- data/app/pb_kits/playbook/pb_date_time/docs/_playground.json +3 -16
- data/app/pb_kits/playbook/pb_date_time/docs/_playground.overrides.json +3 -16
- data/app/pb_kits/playbook/pb_date_time_stacked/docs/_playground.json +15 -11
- data/app/pb_kits/playbook/pb_date_time_stacked/docs/_playground.overrides.json +15 -11
- data/app/pb_kits/playbook/pb_date_year_stacked/docs/_playground.json +4 -4
- data/app/pb_kits/playbook/pb_date_year_stacked/docs/_playground.overrides.json +4 -4
- data/app/pb_kits/playbook/pb_detail/docs/_playground.json +18 -12
- data/app/pb_kits/playbook/pb_detail/docs/_playground.overrides.json +12 -13
- data/app/pb_kits/playbook/pb_dialog/docs/_playground.json +42 -108
- data/app/pb_kits/playbook/pb_dialog/docs/_playground.overrides.json +40 -88
- data/app/pb_kits/playbook/pb_distribution_bar/docs/_playground.json +7 -65
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_constrain_height.jsx +0 -18
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_constrain_height_rails.html.erb +0 -11
- data/app/pb_kits/playbook/pb_dropdown/docs/_playground.json +21 -318
- data/app/pb_kits/playbook/pb_dropdown/docs/_playground.overrides.json +19 -192
- data/app/pb_kits/playbook/pb_empty_state/docs/_playground.json +12 -77
- data/app/pb_kits/playbook/pb_file_upload/docs/_playground.json +13 -98
- data/app/pb_kits/playbook/pb_link/docs/_playground.json +40 -81
- data/app/pb_kits/playbook/pb_link/docs/_playground.overrides.json +30 -88
- data/app/pb_kits/playbook/pb_pagination/docs/_pagination_external_control.jsx +1 -22
- data/app/pb_kits/playbook/pb_pagination/docs/_pagination_page_change.jsx +2 -22
- data/app/pb_kits/playbook/pb_pagination/docs/data.js +23 -0
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_playground.json +2 -4
- data/app/pb_kits/playbook/pb_phone_number_input/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_phone_number_input/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_templates.jsx +1 -76
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/templates.js +75 -0
- data/app/pb_kits/playbook/pb_title/docs/_playground.json +23 -72
- data/app/pb_kits/playbook/pb_title/docs/_playground.overrides.json +16 -80
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_react_hook.jsx +2 -2
- metadata +7 -15
- data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_mock_data_inline_loading_empty_children.json +0 -41
- data/app/pb_kits/playbook/pb_date_range_inline/docs/_playground.overrides.json +0 -57
- data/app/pb_kits/playbook/pb_date_range_stacked/docs/_playground.overrides.json +0 -38
- data/app/pb_kits/playbook/pb_distribution_bar/docs/_playground.overrides.json +0 -45
- data/app/pb_kits/playbook/pb_empty_state/docs/_playground.overrides.json +0 -79
- data/app/pb_kits/playbook/pb_file_upload/docs/_playground.overrides.json +0 -99
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_show_placeholder.html.erb +0 -5
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_show_placeholder.jsx +0 -14
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_show_placeholder.md +0 -3
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_rails_default.html.erb +0 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_rails_default.md +0 -12
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_rails_simple.html.erb +0 -9
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_rails_simple.md +0 -8
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"defaults": {
|
|
3
|
-
"accept": {},
|
|
4
|
-
"dark": false
|
|
5
|
-
},
|
|
6
|
-
"hiddenProps": [
|
|
7
|
-
"fileRejections",
|
|
8
|
-
"getInputProps",
|
|
9
|
-
"getRootProps",
|
|
10
|
-
"isDragActive",
|
|
11
|
-
"onFilesAccepted",
|
|
12
|
-
"onFilesRejected"
|
|
13
|
-
],
|
|
14
|
-
"groups": [
|
|
15
|
-
{
|
|
16
|
-
"name": "Guidance",
|
|
17
|
-
"props": ["customMessage", "accept", "acceptedFilesDescription", "maxSize"]
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"name": "State",
|
|
21
|
-
"props": ["error", "dark"]
|
|
22
|
-
}
|
|
23
|
-
],
|
|
24
|
-
"presets": [
|
|
25
|
-
{
|
|
26
|
-
"name": "Default",
|
|
27
|
-
"props": {}
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"name": "Accepted Types",
|
|
31
|
-
"props": {
|
|
32
|
-
"accept": {
|
|
33
|
-
"image/svg+xml": [".svg", ".xml"]
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"name": "Custom Description",
|
|
39
|
-
"props": {
|
|
40
|
-
"accept": {
|
|
41
|
-
"application/pdf": [".pdf"],
|
|
42
|
-
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": [".xlsx"]
|
|
43
|
-
},
|
|
44
|
-
"acceptedFilesDescription": "Adobe (.pdf) and Microsoft (.xlsx)"
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"name": "Custom Message",
|
|
49
|
-
"props": {
|
|
50
|
-
"customMessage": "Playbook is awesome!"
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"name": "Max File Size",
|
|
55
|
-
"props": {
|
|
56
|
-
"accept": {
|
|
57
|
-
"application/pdf": [".pdf"]
|
|
58
|
-
},
|
|
59
|
-
"maxSize": 1000000
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"name": "Error State",
|
|
64
|
-
"props": {
|
|
65
|
-
"error": "Please upload a valid file"
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
],
|
|
69
|
-
"conditionals": {
|
|
70
|
-
"acceptedFilesDescription": { "requires": "accept" }
|
|
71
|
-
},
|
|
72
|
-
"hints": {
|
|
73
|
-
"accepted_types_info": {
|
|
74
|
-
"presetName": "Accepted Types",
|
|
75
|
-
"message": "Use MIME-type keys with extension arrays for accept, for example { image/svg+xml: ['.svg', '.xml'] }.",
|
|
76
|
-
"type": "info"
|
|
77
|
-
},
|
|
78
|
-
"custom_description_info": {
|
|
79
|
-
"presetName": "Custom Description",
|
|
80
|
-
"message": "acceptedFilesDescription only changes the helper copy. File validation still comes from the accept object.",
|
|
81
|
-
"type": "info"
|
|
82
|
-
},
|
|
83
|
-
"custom_message_info": {
|
|
84
|
-
"presetName": "Custom Message",
|
|
85
|
-
"message": "customMessage replaces the built-in guidance, including accepted types and max file size text.",
|
|
86
|
-
"type": "info"
|
|
87
|
-
},
|
|
88
|
-
"max_size_info": {
|
|
89
|
-
"presetName": "Max File Size",
|
|
90
|
-
"message": "maxSize is measured in bytes. In app code, pair it with onFilesRejected to surface rejection details.",
|
|
91
|
-
"type": "warning"
|
|
92
|
-
},
|
|
93
|
-
"error_state_info": {
|
|
94
|
-
"presetName": "Error State",
|
|
95
|
-
"message": "Use the error prop for validation or server feedback below the dropzone.",
|
|
96
|
-
"type": "info"
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_show_placeholder.jsx
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import PhoneNumberInput from '../../pb_phone_number_input/_phone_number_input'
|
|
3
|
-
|
|
4
|
-
const PhoneNumberInputShowPlaceholder = (props) => (
|
|
5
|
-
<>
|
|
6
|
-
<PhoneNumberInput
|
|
7
|
-
id='phone_number_input_show_placeholder'
|
|
8
|
-
label='Phone Number'
|
|
9
|
-
showPlaceholder
|
|
10
|
-
{...props} />
|
|
11
|
-
</>
|
|
12
|
-
)
|
|
13
|
-
|
|
14
|
-
export default PhoneNumberInputShowPlaceholder
|
data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_show_placeholder.md
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
The `showPlaceholder`/`show_placeholder` prop enables the country-specific example placeholder in the phone input.
|
|
2
|
-
|
|
3
|
-
By default, the Phone Number Input does not show a placeholder. When enabled, the placeholder appears while the field is empty and unfocused, hides on focus, and returns on blur if no value is entered.
|
|
@@ -1 +0,0 @@
|
|
|
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." }) %>
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
The Rails rich text editor is a TipTap surface with no React. The UI (toolbar, block-style menu, formatting actions) is rendered with Playbook Rails kits (`pb_rails`). The editor document is a vanilla TipTap `Editor` instance; HTML is synced to a hidden `<input>` so standard Rails forms can submit the value.
|
|
2
|
-
|
|
3
|
-
### How TipTap is loaded (Rails)
|
|
4
|
-
|
|
5
|
-
- The kit’s module script (`rich_text_editor_rails.js`) uses `import()` with **full URLs** on [esm.sh](https://esm.sh) (e.g. `@tiptap/core@2.8.0`). esm.sh resolves dependencies server-side, so **no `<script type="importmap">`** is required—this avoids conflicts when the host page already has an import map (e.g. Vite in dev, or another app map) because Firefox only applies one native map.
|
|
6
|
-
- You do not need TipTap in your app’s npm dependencies or Gemfile for this kit; the browser loads modules from esm.sh when the page runs.
|
|
7
|
-
- Ensure **CSP** allows loading scripts from `https://esm.sh` (and esm.sh’s redirected module URLs) if you use a strict `script-src` / `connect-src`.
|
|
8
|
-
|
|
9
|
-
### Relation to the React implementation
|
|
10
|
-
|
|
11
|
-
- Same core: both use TipTap v2 on top of ProseMirror; styling lives in Playbook SCSS (`_tiptap_styles.scss`) so the editor chrome lines up between platforms.
|
|
12
|
-
- Different shell: Rails uses ERB + Playbook Rails components + inline module script. React uses `RichTextEditor` / `_tiptap_editor.tsx` and TipTap wired through the bundled Playbook React package—see Advanced Default for that stack and when you need TipTap installed in your JavaScript bundle.
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
### Simple toolbar (`simple: true`)
|
|
2
|
-
|
|
3
|
-
Pass **`simple: true`** for a compact toolbar: **Bold**, **Italic**, **Undo**, and **Redo** (same history controls as the full toolbar—plain buttons, not popovers).
|
|
4
|
-
|
|
5
|
-
- No block-style dropdown (no “Paragraph” / headings / lists in the menu).
|
|
6
|
-
- No **`pb_popover`** on the toolbar—useful in **native `<dialog>`** modals, turbo-loaded panels, or other tight layouts where the full block menu is awkward to position.
|
|
7
|
-
|
|
8
|
-
The underlying TipTap document still accepts the same HTML as the default Rails editor; `simple` only changes which **toolbar controls** are shown.
|