Sha256: f862fa7f88e07cfd65805145e46b3ea577bd1acfbda2bfa2174cbcd4d6032d23

Contents?: true

Size: 633 Bytes

Versions: 47

Compression:

Stored size: 633 Bytes

Contents

<%= render component_tag(x: {
  data: x_data("appColorPickerButton", {selected: selected}),
  "@dropdown:mount": "onDropdownMount"
}) do %> 
  <div x-effect="$dispatch('color-picker:change', {color: selectedColor})">
    <%= render button do |btn| %>
      <% btn.with_icon do %>
        <%= icon %>
      <% end %>

      <% btn.with_dropdown do %>
        <div
          @color-picker:select="selectedColor = $event.detail.selectedColor;"
          x-cloak>
          <div data-role="color-picker">
            <%= picker %>
          </div>
        </div>
      <% end %>

      <%= button_text %>
    <% end %>
  </div>
<% end %>

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
coveragebook_components-0.8.0.beta.3 app/components/coco/app/elements/color_picker_button/color_picker_button.html.erb
coveragebook_components-0.8.0.beta.2 app/components/coco/app/elements/color_picker_button/color_picker_button.html.erb
coveragebook_components-0.8.0.beta.1 app/components/coco/app/elements/color_picker_button/color_picker_button.html.erb
coveragebook_components-0.7.10 app/components/coco/app/elements/color_picker_button/color_picker_button.html.erb
coveragebook_components-0.7.9 app/components/coco/app/elements/color_picker_button/color_picker_button.html.erb
coveragebook_components-0.7.8 app/components/coco/app/elements/color_picker_button/color_picker_button.html.erb
coveragebook_components-0.7.7 app/components/coco/app/elements/color_picker_button/color_picker_button.html.erb
coveragebook_components-0.7.6 app/components/coco/app/elements/color_picker_button/color_picker_button.html.erb
coveragebook_components-0.7.5 app/components/coco/app/elements/color_picker_button/color_picker_button.html.erb
coveragebook_components-0.7.4 app/components/coco/app/elements/color_picker_button/color_picker_button.html.erb
coveragebook_components-0.7.3 app/components/coco/app/elements/color_picker_button/color_picker_button.html.erb
coveragebook_components-0.7.2 app/components/coco/app/elements/color_picker_button/color_picker_button.html.erb
coveragebook_components-0.7.1 app/components/coco/app/elements/color_picker_button/color_picker_button.html.erb
coveragebook_components-0.7.0 app/components/coco/app/elements/color_picker_button/color_picker_button.html.erb
coveragebook_components-0.6.5 app/components/coco/app/elements/color_picker_button/color_picker_button.html.erb
coveragebook_components-0.6.4 app/components/coco/app/elements/color_picker_button/color_picker_button.html.erb
coveragebook_components-0.6.3 app/components/coco/app/elements/color_picker_button/color_picker_button.html.erb
coveragebook_components-0.6.2 app/components/coco/app/elements/color_picker_button/color_picker_button.html.erb
coveragebook_components-0.6.1 app/components/coco/app/elements/color_picker_button/color_picker_button.html.erb
coveragebook_components-0.6.0 app/components/coco/app/elements/color_picker_button/color_picker_button.html.erb