lightning_ui_kit 0.2.3 → 0.3.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7431b1a812f4483624e661e366110a3cc7af9fd12b4e2873fb4b6d656cf4be7e
|
4
|
+
data.tar.gz: 46ab39a97ff029efd41cb79922a1978142482ad664d633121828b923391d0ebb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 011ab820f18e2d3ee9dcc9e948abdaf007c23991de85994a61264a59fc66f6705445a81f5835b192d429620bf6348ea2e460337034c4bda4071c73466984c127
|
7
|
+
data.tar.gz: 84ba84cdaa5919f9c89daf627a852cb76be8faa3962180db4766853096d718e25e30a7902bd14394b3d7efc7b454c21dc4e97776a6ad164dad40d9347356ac4d
|
@@ -3,7 +3,12 @@
|
|
3
3
|
data-slot="field"
|
4
4
|
class="lui:grid lui:grid-cols-[1.125rem_1fr] lui:items-center lui:gap-x-4 lui:gap-y-1 lui:sm:grid-cols-[1rem_1fr] lui:*:data-[slot=control]:col-start-1 lui:*:data-[slot=control]:row-start-1 lui:*:data-[slot=control]:justify-self-center lui:*:data-[slot=label]:col-start-2 lui:*:data-[slot=label]:row-start-1 lui:*:data-[slot=label]:justify-self-start lui:*:data-[slot=description]:col-start-2 lui:*:data-[slot=description]:row-start-2 lui:has-data-[slot=description]:**:data-[slot=label]:font-medium"
|
5
5
|
>
|
6
|
-
|
6
|
+
<span
|
7
|
+
data-lui-checkbox-target="control"
|
8
|
+
data-slot="control"
|
9
|
+
class="lui:group lui:inline-flex lui:focus:outline-hidden" role="checkbox" aria-checked="false" tabindex="0"
|
10
|
+
data-action="click->lui-checkbox#toggle"
|
11
|
+
>
|
7
12
|
<span class="lui:relative lui:isolate lui:flex lui:size-[1.125rem] lui:items-center lui:justify-center
|
8
13
|
lui:rounded-[0.3125rem] lui:sm:size-4 lui:before:absolute lui:before:inset-0 lui:before:-z-10
|
9
14
|
lui:before:rounded-[calc(0.3125rem-1px)] lui:before:bg-white lui:before:shadow-sm
|
@@ -25,7 +30,7 @@
|
|
25
30
|
<path class="lui:opacity-0 lui:group-data-indeterminate:opacity-100" d="M3 7H11" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
|
26
31
|
</svg>
|
27
32
|
</span>
|
28
|
-
|
33
|
+
</span>
|
29
34
|
<% if @label %>
|
30
35
|
<label
|
31
36
|
data-slot="label"
|
@@ -11,17 +11,4 @@ class LightningUiKit::CheckboxComponent < LightningUiKit::BaseComponent
|
|
11
11
|
@disabled = disabled
|
12
12
|
@options = options
|
13
13
|
end
|
14
|
-
|
15
|
-
private
|
16
|
-
|
17
|
-
def control_data
|
18
|
-
data = {
|
19
|
-
slot: "control",
|
20
|
-
lui_checkbox_target: "control",
|
21
|
-
action: "click->lui-checkbox#toggle"
|
22
|
-
}
|
23
|
-
|
24
|
-
data[:checked] = true if !!@checked
|
25
|
-
data.merge(@options[:control_data] || {})
|
26
|
-
end
|
27
14
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lightning_ui_kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Koval
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|