playbook_ui_docs 14.18.0.pre.alpha.play1736highchartslinegraphdefaultrebuild7437 → 14.18.0.pre.alpha.play1736highchartslinegraphdefaultrebuild7444

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: 2219c85e9c6483fc807756f2478b01bc913db748714d5861cb82f016a2267296
4
- data.tar.gz: 2eabbfddfb69277b7d6124093d5cd09929b2d20d1f902b540714aae7ca83add9
3
+ metadata.gz: ec643d2624339f66649e5f5a01a0816ec2c4a0b9dd2b09c896a567ecdf11f05b
4
+ data.tar.gz: f4874152eb784200523b4a72d9e5633e85c0c735cc6ffd7fa1f8c73c88eb256c
5
5
  SHA512:
6
- metadata.gz: a12b93f59b43cc2aa3d945256a739d3c5404e55cddfd1d3ef7da91af04c5ce9f5dc682c8ca4b5434a8fd0284bc6c3c6d45819927343e8fd2b5e709e89d5ee19f
7
- data.tar.gz: 8e7bbe456570bc4411a0c9485240a900c08154e7d97329f15159ed511ca00f96f15c519f15f97765bbb6ffd546f330fcb7ba6dae6b9cb98c618afa9817065418
6
+ metadata.gz: 2b687fb1576d9089b98d07fc45e426a154633bbc2199c36dff4de8c9fedbb99e30baddc85def6c7fc0052d656f04c76df88821ac3cb76b176ba86120823bf401
7
+ data.tar.gz: 24b0dcf09a44adf5f87f49f6d26d214ac0e80483ff30899704209ef0a26ba0fec8dcf3e4db119f4ed803d069f23c91dfbf887d08d1890df36d6d1f2ae12f35d6
@@ -0,0 +1,43 @@
1
+ <% data_shadow = [
2
+ { id: "51", text: "Task 1" },
3
+ { id: "52", text: "Task 2" },
4
+ { id: "53", text: "Task 3" }
5
+ ] %>
6
+
7
+ <% data_outline = [
8
+ { id: "61", text: "Task 1" },
9
+ { id: "62", text: "Task 2" },
10
+ { id: "63", text: "Task 3" }
11
+ ] %>
12
+
13
+ <%= pb_rails("flex", props: { justify: "around" }) do %>
14
+ <%= pb_rails("flex/flex_item", props: { margin_right: "xl" }) do %>
15
+ <%= pb_rails("draggable", props: { drop_zone_type: "shadow", initial_items: data_shadow }) do %>
16
+ <%= pb_rails("caption", props: { margin_bottom: "xs", text: "Shadow", text_align: "center" }) %>
17
+ <%= pb_rails("draggable/draggable_container", props: { html_options: { style: { width: "200px" } } }) do %>
18
+ <% data_shadow.each do |item| %>
19
+ <%= pb_rails("card", props: { drag_id: item[:id], draggable_item: true, margin_bottom: "xs", padding: "xs", padding_right: "xl" }) do %>
20
+ <%= pb_rails("flex", props: { align_items: "stretch", flex_direction: "column" }) do %>
21
+ <%= pb_rails("body", props: { text: item[:text] }) %>
22
+ <% end %>
23
+ <% end %>
24
+ <% end %>
25
+ <% end %>
26
+ <% end %>
27
+ <% end %>
28
+
29
+ <%= pb_rails("flex/flex_item", props: { margin_right: "xl" }) do %>
30
+ <%= pb_rails("draggable", props: { drop_zone_type: "outline", initial_items: data_outline }) do %>
31
+ <%= pb_rails("caption", props: { margin_bottom: "xs", text: "Outline", text_align: "center" }) %>
32
+ <%= pb_rails("draggable/draggable_container", props: { html_options: { style: { width: "200px" } } }) do %>
33
+ <% data_outline.each do |item| %>
34
+ <%= pb_rails("card", props: { drag_id: item[:id], draggable_item: true, margin_bottom: "xs", padding: "xs", padding_right: "xl" }) do %>
35
+ <%= pb_rails("flex", props: { align_items: "stretch", flex_direction: "column" }) do %>
36
+ <%= pb_rails("body", props: { text: item[:text] }) %>
37
+ <% end %>
38
+ <% end %>
39
+ <% end %>
40
+ <% end %>
41
+ <% end %>
42
+ <% end %>
43
+ <% end %>
@@ -0,0 +1,55 @@
1
+ <% initial_items = [
2
+ {
3
+ id: "141",
4
+ url: "https://unsplash.it/500/400/?image=633",
5
+ },
6
+ {
7
+ id: "142",
8
+ url: "https://unsplash.it/500/400/?image=634",
9
+ },
10
+ {
11
+ id: "143",
12
+ url: "https://unsplash.it/500/400/?image=637",
13
+ },
14
+ ] %>
15
+
16
+ <% next_init_items = [
17
+ {
18
+ id: "151",
19
+ url: "https://unsplash.it/500/400/?image=633",
20
+ },
21
+ {
22
+ id: "152",
23
+ url: "https://unsplash.it/500/400/?image=634",
24
+ },
25
+ {
26
+ id: "153",
27
+ url: "https://unsplash.it/500/400/?image=637",
28
+ },
29
+ ] %>
30
+
31
+ <%= pb_rails("draggable", props: {initial_items: initial_items, drop_zone_type: "shadow", drop_zone_color: "primary"}) do %>
32
+ <%= pb_rails("draggable/draggable_container") do %>
33
+ <%= pb_rails("flex", props: { gap: "sm" }) do %>
34
+ <% initial_items.each do |item| %>
35
+ <%= pb_rails("draggable/draggable_item", props:{drag_id: item[:id]}) do %>
36
+ <%= pb_rails("image", props: { alt: item[:id], size: "md", url: item[:url] }) %>
37
+ <% end %>
38
+ <% end %>
39
+ <% end %>
40
+ <% end %>
41
+ <% end %>
42
+
43
+ <br/>
44
+
45
+ <%= pb_rails("draggable", props: {initial_items: next_init_items, drop_zone_type: "outline", drop_zone_color: "purple"}) do %>
46
+ <%= pb_rails("draggable/draggable_container") do %>
47
+ <%= pb_rails("flex", props: { gap: "sm" }) do %>
48
+ <% initial_items.each do |item| %>
49
+ <%= pb_rails("draggable/draggable_item", props:{drag_id: item[:id]}) do %>
50
+ <%= pb_rails("image", props: { alt: item[:id], size: "md", url: item[:url] }) %>
51
+ <% end %>
52
+ <% end %>
53
+ <% end %>
54
+ <% end %>
55
+ <% end %>
@@ -0,0 +1 @@
1
+ The default `color` for Draggable kit drop zones is "neutral", with "primary" or "purple" as additional options.
@@ -17,5 +17,6 @@ examples:
17
17
  - draggable_with_cards: Draggable with Cards
18
18
  - draggable_with_table: Draggable with Table
19
19
  - draggable_multiple_containers: Dragging Across Multiple Containers
20
+ - draggable_drop_zones: Draggable Drop Zones
21
+ - draggable_drop_zones_colors: Draggable Drop Zones Colors
20
22
  - draggable_event_listeners: Draggable Event Listeners
21
-
@@ -0,0 +1 @@
1
+ You don't need to use the Line Graph Kit to apply Playbook styles to your Highcharts line graph. Just import lineGraphTheme.ts and merge it with your graph options—Playbook’s styling will apply automatically.
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: 14.18.0.pre.alpha.play1736highchartslinegraphdefaultrebuild7437
4
+ version: 14.18.0.pre.alpha.play1736highchartslinegraphdefaultrebuild7444
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -737,12 +737,15 @@ files:
737
737
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_default.jsx
738
738
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.md
739
739
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_default_react.md
740
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones.html.erb
740
741
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones.jsx
741
- - app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones.md
742
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors.html.erb
742
743
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors.jsx
743
- - app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors.md
744
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors_rails.md
745
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors_react.md
744
746
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_line.jsx
745
747
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_line.md
748
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_react.md
746
749
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_event_listeners.html.erb
747
750
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_event_listeners.md
748
751
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.html.erb
@@ -1249,6 +1252,7 @@ files:
1249
1252
  - app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.jsx
1250
1253
  - app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.md
1251
1254
  - app/pb_kits/playbook/pb_line_graph/docs/_line_graph_pb_styles.jsx
1255
+ - app/pb_kits/playbook/pb_line_graph/docs/_line_graph_pb_styles.md
1252
1256
  - app/pb_kits/playbook/pb_line_graph/docs/example.yml
1253
1257
  - app/pb_kits/playbook/pb_line_graph/docs/index.js
1254
1258
  - app/pb_kits/playbook/pb_link/docs/_link_color.html.erb