playbook_ui 14.12.0.pre.alpha.PBNTR720railscarddraggable5649 → 14.12.0.pre.alpha.PLAY1602lightboxoverlapnitrobug5655

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: bfb340a31e2bb74d3749938720b1a44b2217e841d785f287f45499b70d8f03e5
4
- data.tar.gz: 3cc515a9004e7a4558bd62bbda022c354e2fdfd15a9bd2541324a9d50287ae5c
3
+ metadata.gz: e4e36bc39d271fc8c5799f840523e24a02597aec41b0191a8aeca562b4ed325b
4
+ data.tar.gz: 3e057e647fb29b4c367d1508292b5ae7a9c923c0aaa02e771c24a33173375c84
5
5
  SHA512:
6
- metadata.gz: 93eab8412f7e086ffd7fa534aff415b0f648ec73e247a281cd1e2dc357144dc90bf2d63dc7c36c027769b2ee6e7d1355852cf5f36b159a3559f2a491315dc174
7
- data.tar.gz: 4a15e5855591a6a817a683f701958ccae8b6b10d1a9d825c9ebcff15c4e3b276b5eb08c12f7858f82ea6d8604fbdd0aee419dddffe02012b0992891767f46a16
6
+ metadata.gz: 9e4cd81b8cd28c013f41856ad9033d11f3cf2cf9e1c4db7cfbec611401dd9d8c3842a44c6a2be3f2030979f8bf52ebfdb236b3b8a4ca32ba928bd7b896cf93fe
7
+ data.tar.gz: c8d25c303eb65eef3ba5d59502429fbaf9d9220bbe798395fd48ed02dc90fa296cf78607294db601be3a0eae591236d46c15908544799c4c825308e2b630b0f0
@@ -1,24 +1,5 @@
1
- <% if object.draggable_item %>
2
- <%= pb_rails("draggable/draggable_item", props:{drag_id: object.drag_id}) do %>
3
- <%= pb_content_tag(object.tag) do %>
4
- <% if object.draggable_item %>
5
- <%= pb_rails("flex", props: { align: "center" }) do %>
6
- <% if object.drag_handle %>
7
- <span classname="card_draggable_handle">
8
- <%= pb_rails("icon", props: { icon: "grip-dots-vertical", padding_right: "xs" }) %>
9
- </span>
10
- <% end %>
11
- <div style="width: 100%">
12
- <%= content.presence %>
13
- </div>
14
- <% end %>
15
- <% end %>
16
- <% end %>
17
- <% end %>
18
- <% else %>
19
- <%= pb_content_tag(object.tag) do %>
20
- <%= content.presence %>
21
- <% end %>
1
+ <%= pb_content_tag(object.tag) do %>
2
+ <%= content.presence %>
22
3
  <% end %>
23
4
 
24
5
 
@@ -17,13 +17,6 @@ module Playbook
17
17
  prop :background, type: Playbook::Props::Enum,
18
18
  values: %w[white light dark product_1_background product_1_highlight product_2_background product_2_highlight product_3_background product_3_highlight product_4_background product_4_highlight product_5_background product_5_highlight product_6_background product_6_highlight product_7_background product_7_highlight product_8_background product_8_highlight product_9_background product_9_highlight product_10_background product_10_highlight windows siding doors solar roofing gutters insulation none success_subtle warning_subtle error_subtle info_subtle neutral_subtle],
19
19
  default: "none"
20
- prop :drag_id, type: Playbook::Props::String
21
- prop :draggable_item, type: Playbook::Props::Boolean,
22
- default: false
23
- prop :drag_handle, type: Playbook::Props::Boolean,
24
- default: true
25
- prop :items, type: Playbook::Props::Array,
26
- default: []
27
20
 
28
21
  def classname
29
22
  generate_classname("pb_card_kit",
@@ -7,7 +7,8 @@
7
7
  <%= pb_rails("draggable", props: {initial_items: initial_items}) do %>
8
8
  <%= pb_rails("draggable/draggable_container") do %>
9
9
  <% initial_items.each do |item| %>
10
- <%= pb_rails("card", props: {highlight: {position: "side", color:"primary"}, margin_bottom: "xs", padding: "xs", drag_id: item[:id], draggable_item: true }) do %>
10
+ <%= pb_rails("draggable/draggable_item", props:{drag_id: item[:id]}) do %>
11
+ <%= pb_rails("card", props: {highlight: {position: "side", color:"primary"}, margin_bottom: "xs", padding: "xs"}) do %>
11
12
  <%= pb_rails("flex", props:{align_items: "stretch", flex_direction:"column"}) do %>
12
13
  <%= pb_rails("flex", props:{gap: "xs"}) do %>
13
14
  <%= pb_rails("title", props: { text: item[:name], tag: "h4", size: 4 }) %>
@@ -31,6 +32,7 @@
31
32
  <% end %>
32
33
  <% end %>
33
34
  <% end %>
35
+ <% end %>
34
36
  <% end %>
35
37
  <% end %>
36
38
  <% end %>
@@ -1,7 +0,0 @@
1
- For a simplified version of the Draggable API for the Card kit, you can do the following:
2
-
3
- Use the `draggable` kit and manage state as shown.
4
-
5
- `draggable/draggable_container` kit creates the container within which the cards can be dragged and dropped.
6
-
7
- The Card kit is optimized to work with the draggable kit. To enable drag, use the `draggable_item` and `drag_id` props on the Card kit as shown. An additional optional boolean prop (set to true by default) of `drag_handle` is also available to show the drag handle icon.
@@ -2,6 +2,7 @@
2
2
  @import "../tokens/screen_sizes";
3
3
 
4
4
  $slides-margin: $space-md;
5
+ $lightbox-z-index-floor: 9999900;
5
6
 
6
7
  .carousel {
7
8
 
@@ -13,7 +14,7 @@ $slides-margin: $space-md;
13
14
  top: 0;
14
15
  left: 0;
15
16
  right: 0;
16
- z-index: 9999999;
17
+ z-index: $lightbox-z-index-floor + 99;
17
18
  align-items: center;
18
19
  transition: all .5s;
19
20
 
@@ -55,7 +56,7 @@ $slides-margin: $space-md;
55
56
  justify-content: space-between;
56
57
  flex-direction: column;
57
58
  background-color: black;
58
- z-index: 1;
59
+ z-index: $lightbox-z-index-floor + 1;
59
60
  overflow: hidden;
60
61
  }
61
62
 
@@ -63,7 +64,7 @@ $slides-margin: $space-md;
63
64
  display: flex;
64
65
  height: calc(100% - 120px);
65
66
  width: 100%;
66
- z-index: 1;
67
+ z-index: $lightbox-z-index-floor + 1;
67
68
 
68
69
  [class^="react-transform-wrapper"] {
69
70
  flex-shrink: 0;
@@ -87,7 +88,7 @@ $slides-margin: $space-md;
87
88
  .carousel-arrow-left {
88
89
  display: block;
89
90
  position: absolute;
90
- z-index: 4;
91
+ z-index: $lightbox-z-index-floor + 4;
91
92
  top: 50%;
92
93
  @media only screen and (max-width: $screen-xs-max) {
93
94
  display: none;
@@ -97,7 +98,7 @@ $slides-margin: $space-md;
97
98
  .carousel-arrow-right {
98
99
  display: block;
99
100
  position: absolute;
100
- z-index: 4;
101
+ z-index: $lightbox-z-index-floor + 4;
101
102
  top: 50%;
102
103
  right: 0;
103
104
  @media only screen and (max-width: $screen-xs-max) {
@@ -140,7 +141,7 @@ $slides-margin: $space-md;
140
141
  width: 100vw;
141
142
  padding: 3px;
142
143
  overflow: scroll;
143
- z-index: 20;
144
+ z-index: $lightbox-z-index-floor + 20;
144
145
  &.centered {
145
146
  justify-content: center;
146
147
  }