bullet_train-themes-tailwind_css 1.0.13 → 1.0.14
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 904e5766002601b5ff740ed4b1faf4e1c9db7f7b63ece2bbe36d66db1068d99e
|
4
|
+
data.tar.gz: b158457d3283dc0d1653295adfed38cb600e22d7080e67b809f4f374948cd770
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07c6c6393133deb6384491c82e24be41b65e4298e8409427cda244140e33044f6790fed169110292213a1d56ee2c5e134842d0ebd7619fc1ef3fba9b8b11cd24
|
7
|
+
data.tar.gz: 1fbb9f2f832201d65e2b01832df0e8b96cfb0f6067a192307af5daadd3fb6fe4ae5642a76ef0b19943ebe88527b233408c93f0dfeafaccd3d5bb250290d254cb
|
@@ -10,21 +10,27 @@ multiple ||= false
|
|
10
10
|
other_options ||= {}
|
11
11
|
options ||= options_for(form, method)
|
12
12
|
value = form.object.send(method)
|
13
|
+
|
14
|
+
color_selected_classes = "ring-2 ring-offset-2"
|
13
15
|
%>
|
14
16
|
|
15
17
|
<% content = render 'shared/fields/field', form: form, method: method, options: html_options, other_options: other_options do %>
|
16
18
|
<% content_for :field do %>
|
17
|
-
<div class="space-x-1"
|
19
|
+
<div class="space-x-1"
|
20
|
+
data-controller="<%= stimulus_controller %>"
|
21
|
+
data-<%= stimulus_controller %>-initial-color-value="<%= value %>"
|
22
|
+
data-<%= stimulus_controller %>-color-selected-class="<%= color_selected_classes %>"
|
23
|
+
>
|
18
24
|
<%= form.hidden_field method, value: value, data: {"#{stimulus_controller}-target": "colorPickerValue"} %>
|
19
25
|
<div class="inline space-x-1" data-<%= stimulus_controller %>-target="colorOptions">
|
20
26
|
<% options[:color_picker_options].each do |color| %>
|
21
27
|
<label class="btn-toggle btn-color-picker">
|
22
|
-
<button type="button" class="button-color mb-1.5 dark:ring-offset-darkPrimary-700 <%= color == value ?
|
28
|
+
<button type="button" class="button-color mb-1.5 dark:ring-offset-darkPrimary-700 <%= color == value ? color_selected_classes : '' %>" style="background-color: <%= color %>; --tw-ring-color: <%= color %>" data-action="<%= stimulus_controller %>#pickColor" data-<%= stimulus_controller %>-target="colorButton" data-color="<%= color %>"> </button>
|
23
29
|
</label>
|
24
30
|
<% end %>
|
25
31
|
</div>
|
26
32
|
<label class="btn-toggle btn-color-picker">
|
27
|
-
<button type="button" class="button-color mr-1 dark:ring-offset-darkPrimary-700 <%= value.blank? || options.include?(value) ? 'hidden' :
|
33
|
+
<button type="button" class="button-color mr-1 dark:ring-offset-darkPrimary-700 <%= value.blank? || options.include?(value) ? 'hidden' : color_selected_classes %>" data-action="<%= stimulus_controller %>#pickColor" data-<%= stimulus_controller %>-target="userSelectedColor colorButton" data-color="<%= value %>" style="background-color: <%= value %>; --tw-ring-color: <%= value %>"> </button>
|
28
34
|
</label>
|
29
35
|
<span class="relative">
|
30
36
|
<input type="text" disabled="disabled" class="rounded-md shadow-sm font-light font-mono text-sm focus:ring-blue focus:border-blue border-gray-300 w-48 dark:bg-darkPrimary-800 dark:border-darkPrimary-900" value="<%= value %>" data-<%= stimulus_controller %>-target="colorInput"/>
|
@@ -32,9 +38,14 @@ value = form.object.send(method)
|
|
32
38
|
<button type="button" class="py-2 px-1 border border-transparent inline-flex items-center whitespace-nowrap rounded-md text-lg" data-action="<%= stimulus_controller %>#pickRandomColor">
|
33
39
|
<i class="leading-5 ti ti-reload dark:text-blue-500"></i>
|
34
40
|
</button>
|
35
|
-
<button type="button" class="py-2 px-1 border border-transparent inline-flex items-center whitespace-nowrap rounded-md btn-pickr text-lg"
|
41
|
+
<button type="button" class="py-2 px-1 border border-transparent inline-flex items-center whitespace-nowrap rounded-md btn-pickr text-lg"
|
42
|
+
data-<%= stimulus_controller %>-target="togglePickerButton" data-action="<%= stimulus_controller %>#togglePickr">
|
36
43
|
<i class="leading-5 ti ti-pencil dark:text-blue-500"></i>
|
37
44
|
</button>
|
45
|
+
<span
|
46
|
+
data-<%= stimulus_controller %>-target="pickerContainer"
|
47
|
+
data-action="keydown-><%= stimulus_controller %>#handleKeydown"
|
48
|
+
></span>
|
38
49
|
<button type="button" class="py-2 px-1 pr-3.5 border border-transparent inline-flex items-center whitespace-nowrap rounded-md text-lg" data-action="<%= stimulus_controller %>#unpickColor">
|
39
50
|
<i class="leading-5 ti ti-trash dark:text-blue-500"></i>
|
40
51
|
</button>
|
@@ -30,8 +30,9 @@ other_options ||= {}
|
|
30
30
|
<i class="leading-none mr-2 text-base ti ti-upload dark:text-white"></i>
|
31
31
|
<span class="dark:text-white">Upload New Document</span>
|
32
32
|
</div>
|
33
|
-
<div class="mt-2 hidden
|
34
|
-
<div data-fields--file-field-target="progressBar" aria-valuemax="100" aria-valuemin="0" aria-valuenow="0" class="
|
33
|
+
<div class="mt-2 hidden overflow-hidden text-xs rounded bg-gray-100 shadow-inner relative">
|
34
|
+
<div data-fields--file-field-target="progressBar" aria-valuemax="100" aria-valuemin="0" aria-valuenow="0" class="absolute top-0 left-0 whitespace-nowrap overflow-hidden animate-pulse bg-primary-500 dark:bg-darkPrimary-800 rounded" role="progressbar" style="width: 0%;"> </div>
|
35
|
+
<div class="text-black text-center" data-fields--file-field-target="progressLabel">0%</div>
|
35
36
|
</div>
|
36
37
|
</div>
|
37
38
|
</div>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bullet_train-themes-tailwind_css
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Culver
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-07-
|
11
|
+
date: 2022-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: standard
|