playbook_ui_docs 15.5.0.pre.alpha.draggableask12772 → 15.5.0.pre.alpha.draggablefix12557

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: '095b1b2984a1947e7b03377fc0ec01fc484c2978179a4399b8e71f499c0bd81e'
4
- data.tar.gz: 135c970d11f172f60dae9554d9f081108bd092205457e1275a08cbe87d38605f
3
+ metadata.gz: d8120ff5dc98536fe7b4203a0dcc1e2e77d2708fa81578ab3a382dfbf6e29f8c
4
+ data.tar.gz: e4caecaf7b84d330c2059a1e9f55772cbb863edaa29261fda712555b57bcf3d8
5
5
  SHA512:
6
- metadata.gz: 2039d628a4c3458fae323d44734ce6369cba4a7975fee3d7dec0219e4525a3797ab5a1bfd954bae6dec098c142bf9e2589c21cbd0f40138fbbe6fbfcd86cde77
7
- data.tar.gz: f8fd95bdcea5637938e08bd565b0a9aac162956f74a9a4eb32498b0ad7ece63a66b4ed19c6300078c37760aa54f718f91dd48e5466dc5f8bfa10282a501bbaee
6
+ metadata.gz: 3c87f8474a38971363870ac0baba4f19d1c25c036c3312f592738dd06a20b292ffc626e7b1f12051f28414b2b62fd2739a72fb4637c7774c9f8665fcb6beb6cd
7
+ data.tar.gz: 4cb1b707b3698a37c05e45e480c478009ae55ff0e19c02c0cf730fcc260c3733cb2b0f5793f4199cbcddb577298914bd4dafdd0e4592f6583ecd170cdedba745
@@ -30,4 +30,4 @@
30
30
  }
31
31
  ] %>
32
32
 
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 }}) %>
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,24 +1,3 @@
1
- <%
2
- options = [
3
- {
4
- label: "United States",
5
- value: "unitedStates",
6
- id: "us"
7
- },
8
- {
9
- label: "United Kingdom",
10
- value: "unitedKingdom",
11
- id: "gb"
12
- },
13
- {
14
- label: "Pakistan",
15
- value: "pakistan",
16
- id: "pk"
17
- }
18
- ]
19
- %>
20
-
21
-
22
1
  <%= pb_rails("button", props: { text: "Open Complex Dialog", data:{"open-dialog": "dialog-complex"} }) %>
23
2
 
24
3
  <%= pb_rails("dialog", props: { id:"dialog-complex", size: "lg", full_height: true }) do %>
@@ -31,16 +10,6 @@
31
10
  <%= pb_rails("rich_text_editor", props: {id: "default", value: "Add your text here"}) %>
32
11
  <%= pb_rails("caption", props: { text: "Type in a word or term too help find tickets later. ex. training, phone setup, hr", margin_bottom: "xs", margin_top: "sm" }) %>
33
12
  <%= pb_rails("typeahead", props: { placeholder: "Tags.."}) %>
34
- <%= pb_rails("dropdown", props: {options: options, autocomplete: true}) %>
35
- <%= pb_rails("typeahead", props: {
36
- id: "typeahead-default",
37
- placeholder: "Select one...",
38
- options: options,
39
- name: :foo,
40
- margin_top: "sm",
41
- is_multi: false
42
- })
43
- %>
44
13
 
45
14
  <% end %>
46
15
  <%= pb_rails("dialog/dialog_footer", props: {cancel_button: "Back", confirm_button: "Send my Issue", confirm_button_id:"confirm-complex", id: "dialog-complex"}) %>
@@ -83,7 +83,6 @@ const DraggableMultipleContainersDropzone = (props) => {
83
83
  return (
84
84
  <DraggableProvider
85
85
  dropZone={{type: "outline"}}
86
- enableCrossContainerPreview
87
86
  initialItems={data}
88
87
  onDragEnd={(draggedItemId, finalContainer, originalContainer, itemAbove, itemBelow) => {
89
88
  console.log(`Dragged Item ID: ${draggedItemId}`);
@@ -1,16 +1,16 @@
1
1
  examples:
2
2
  react:
3
3
  - draggable_default: Default
4
+ - draggable_multiple_containers_dropzone: Dragging Across Multiple Containers with Dropzones
4
5
  - draggable_with_list: Draggable with List Kit
5
6
  - draggable_with_selectable_list: Draggable with SelectableList Kit
6
7
  - draggable_with_cards: Draggable with Cards
7
8
  - draggable_with_table: Draggable with Table
9
+ - draggable_multiple_containers: Dragging Across Multiple Containers
8
10
  - draggable_drop_zones: Draggable Drop Zones
9
11
  - draggable_drop_zones_colors: Draggable Drop Zones Colors
10
12
  - draggable_drop_zones_line: Draggable Drop Zones Line
11
13
  - draggable_event_listeners: Draggable Event Listeners
12
- - draggable_multiple_containers: Dragging Across Multiple Containers
13
- - draggable_multiple_containers_dropzone: Dragging Across Multiple Containers with Dropzones
14
14
 
15
15
  rails:
16
16
  - draggable_default: Default
@@ -18,8 +18,8 @@ examples:
18
18
  - draggable_with_selectable_list: Draggable with SelectableList Kit
19
19
  - draggable_with_cards: Draggable with Cards
20
20
  - draggable_with_table: Draggable with Table
21
+ - draggable_multiple_containers: Dragging Across Multiple Containers
21
22
  - draggable_drop_zones: Draggable Drop Zones
22
23
  - draggable_drop_zones_colors: Draggable Drop Zones Colors
23
24
  - draggable_drop_zones_line: Draggable Drop Zones Line
24
25
  - draggable_event_listeners: Draggable Event Listeners
25
- - draggable_multiple_containers: Dragging Across Multiple Containers
@@ -8,4 +8,4 @@
8
8
  state: "PA",
9
9
  zipcode: "19382",
10
10
  territory: "PHL",
11
- }) %>
11
+ }) %>
@@ -10,7 +10,6 @@ examples:
10
10
  - multiple_users_default: Default
11
11
  - multiple_users_reverse: Reverse
12
12
  - multiple_users_size: Size
13
- - multiple_users_with_tooltip: With Tooltip
14
13
 
15
14
  swift:
16
15
  - multiple_users_default_swift: Default
@@ -1,4 +1,3 @@
1
1
  export { default as MultipleUsersDefault } from './_multiple_users_default.jsx'
2
2
  export { default as MultipleUsersReverse } from './_multiple_users_reverse.jsx'
3
3
  export { default as MultipleUsersSize } from './_multiple_users_size.jsx'
4
- export { default as MultipleUsersWithTooltip } from './_multiple_users_with_tooltip.jsx'
@@ -5,7 +5,6 @@ examples:
5
5
  - typeahead_default_options: With Default Options
6
6
  - typeahead_with_context: With Context
7
7
  - typeahead_with_pills: With Pills
8
- - typeahead_input_display: Input Display
9
8
  - typeahead_without_pills: Without Pills (Single Select)
10
9
  - typeahead_with_pills_async: With Pills (Async Data)
11
10
  - typeahead_with_pills_async_users: With Pills (Async Data w/ Users)
@@ -27,7 +26,6 @@ examples:
27
26
  - typeahead_react_hook: React Hook
28
27
  - typeahead_with_highlight: With Highlight
29
28
  - typeahead_with_pills: With Pills
30
- - typeahead_input_display: Input Display
31
29
  - typeahead_with_pills_async: With Pills (Async Data)
32
30
  - typeahead_with_pills_async_users: With Pills (Async Data w/ Users)
33
31
  - typeahead_with_pills_async_custom_options: With Pills (Async Data w/ Custom Options)
@@ -17,5 +17,4 @@ export { default as TypeaheadReactHook } from './_typeahead_react_hook.jsx'
17
17
  export { default as TypeaheadDisabled } from './_typeahead_disabled.jsx'
18
18
  export { default as TypeaheadPreserveInput } from './_typeahead_preserve_input.jsx'
19
19
  export { default as TypeaheadDefaultValue } from './_typeahead_default_value.jsx'
20
- export { default as TypeaheadCustomOptions } from './_typeahead_custom_options.jsx'
21
- export { default as TypeaheadInputDisplay } from './_typeahead_input_display.jsx'
20
+ export { default as TypeaheadCustomOptions } from './_typeahead_custom_options.jsx'
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: 15.5.0.pre.alpha.draggableask12772
4
+ version: 15.5.0.pre.alpha.draggablefix12557
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: 2025-12-03 00:00:00.000000000 Z
12
+ date: 2025-11-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: playbook_ui
@@ -856,7 +856,6 @@ files:
856
856
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.html.erb
857
857
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.jsx
858
858
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_dropzone.jsx
859
- - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_dropzone.md
860
859
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_rails.md
861
860
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_react.md
862
861
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards.html.erb
@@ -1526,8 +1525,6 @@ files:
1526
1525
  - app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_size.jsx
1527
1526
  - app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_size.md
1528
1527
  - app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_size_swift.md
1529
- - app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_with_tooltip.jsx
1530
- - app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_with_tooltip.md
1531
1528
  - app/pb_kits/playbook/pb_multiple_users/docs/example.yml
1532
1529
  - app/pb_kits/playbook/pb_multiple_users/docs/index.js
1533
1530
  - app/pb_kits/playbook/pb_multiple_users_stacked/docs/_description.md
@@ -2578,9 +2575,6 @@ files:
2578
2575
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_error_state.md
2579
2576
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_inline.html.erb
2580
2577
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_inline.jsx
2581
- - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_input_display.html.erb
2582
- - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_input_display.jsx
2583
- - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_input_display.md
2584
2578
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_margin_bottom.html.erb
2585
2579
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_margin_bottom.jsx
2586
2580
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_multi_kit.html.erb
@@ -1,22 +0,0 @@
1
- The multiple container functionality also supports customized dropzone styling as shown here.
2
-
3
- In addition to this, the `enableCrossContainerPreview` prop can be used on the `DraggableProvider` as shown here to enable dropzone preview for cross-container dragging.
4
-
5
- With `enableCrossContainerPreview`, the `onDrop` and `onDragEnd` event listeners will also provide several arguments to allow developers more context from the drag event.
6
-
7
- The `onDrop` callback is triggered when an item is successfully dropped into a container. It provides the following arguments:
8
-
9
- - `draggedItemId` - The ID of the item that was dragged
10
- - `droppedContainer` - The container where the item was dropped
11
- - `originalContainer` - The container where the drag started
12
- - `item` - The complete item object with all properties (including the updated container)
13
- - `itemAbove` - The item directly above the dropped item in the final position (null if at the top)
14
- - `itemBelow` - The item directly below the dropped item in the final position (null if at the bottom)
15
-
16
- The `onDragEnd` callback is triggered when a drag operation ends, whether it was dropped or cancelled. It provides the following arguments:
17
-
18
- - `draggedItemId` - The ID of the item that was dragged
19
- - `finalContainer` - The container where the item ended up (could be same as original if drag was cancelled)
20
- - `originalContainer` - The container where the drag started
21
- - `itemAbove` - The item directly above the dragged item in the final position (null if at the top)
22
- - `itemBelow` - The item directly below the dragged item in the final position (null if at the bottom)
@@ -1,42 +0,0 @@
1
- import React from 'react'
2
- import MultipleUsers from '../../pb_multiple_users/_multiple_users'
3
-
4
- const MultipleUsersWithTooltip = (props) => {
5
- return (
6
- <div>
7
- <MultipleUsers
8
- users={[
9
- {
10
- name: 'Patrick Welch',
11
- imageUrl: 'https://randomuser.me/api/portraits/men/9.jpg',
12
- tooltip: "Patrick Welch - Online"
13
- },
14
- {
15
- name: 'Lucille Sanchez',
16
- imageUrl: 'https://randomuser.me/api/portraits/women/6.jpg',
17
- tooltip: "Lucille Sanchez - Offline"
18
- },
19
- {
20
- name: 'Beverly Reyes',
21
- imageUrl: 'https://randomuser.me/api/portraits/women/74.jpg',
22
- tooltip: "Beverly Reyes - Online"
23
- },
24
- {
25
- name: 'Keith Craig',
26
- imageUrl: 'https://randomuser.me/api/portraits/men/40.jpg',
27
- tooltip: "Keith Craig - Away"
28
- },
29
- {
30
- name: 'Alicia Cooper',
31
- imageUrl: 'https://randomuser.me/api/portraits/women/46.jpg',
32
- tooltip: "Alicia Cooper - Busy"
33
- },
34
- ]}
35
- withTooltip
36
- {...props}
37
- />
38
- </div>
39
- )
40
- }
41
- ``
42
- export default MultipleUsersWithTooltip
@@ -1 +0,0 @@
1
- Use the `withTooltip` boolean prop to enable setting user-specific tooltip content via the `tooltip` property in the users array.
@@ -1,30 +0,0 @@
1
- <%
2
- options = [
3
- { label: 'Orange', value: '#FFA500' },
4
- { label: 'Red', value: '#FF0000' },
5
- { label: 'Green', value: '#00FF00' },
6
- { label: 'Blue', value: '#0000FF' },
7
- { label: 'Yellow', value: '#FFFF00' },
8
- { label: 'Purple', value: '#800080' },
9
- { label: 'Cyan', value: '#00FFFF' },
10
- { label: 'Magenta', value: '#FF00FF' }
11
- ]
12
- %>
13
-
14
- <%= pb_rails("typeahead", props: {
15
- id: "typeahead-input-display-none",
16
- label: "With Input Display None",
17
- options: options,
18
- name: :foo,
19
- input_display: "none",
20
- })
21
- %>
22
- <br/>
23
- <%= pb_rails("typeahead", props: {
24
- id: "typeahead-input-display-pills",
25
- label: "With Input Display Pills (Default)",
26
- options: options,
27
- name: :foo,
28
- pills: true,
29
- })
30
- %>
@@ -1,37 +0,0 @@
1
- import React from 'react'
2
-
3
- import Typeahead from '../_typeahead'
4
-
5
- const options = [
6
- { label: 'Orange', value: '#FFA500' },
7
- { label: 'Red', value: '#FF0000' },
8
- { label: 'Green', value: '#00FF00' },
9
- { label: 'Blue', value: '#0000FF' },
10
- { label: 'Yellow', value: '#FFFF00' },
11
- { label: 'Purple', value: '#800080' },
12
- { label: 'Cyan', value: '#00FFFF' },
13
- { label: 'Magenta', value: '#FF00FF' }
14
- ]
15
-
16
- const TypeaheadInputDisplay = (props) => {
17
- return (
18
- <>
19
- <Typeahead
20
- inputDisplay="none"
21
- isMulti
22
- label="With Input Display None"
23
- options={options}
24
- {...props}
25
- />
26
- <br/>
27
- <Typeahead
28
- isMulti
29
- label="With Input Display Pills (Default)"
30
- options={options}
31
- {...props}
32
- />
33
- </>
34
- )
35
- }
36
-
37
- export default TypeaheadInputDisplay
@@ -1,3 +0,0 @@
1
- Use the `inputDisplay`/`input_display` prop to optionally display only the count in the display as opposed to multiple pills. This prop is set to 'pills' by default.
2
-
3
- **NOTE**: `inputDisplay`/`input_display` should only be used with typeaheads that allow multi selection.