keystone_ui 0.12.0 → 0.12.1
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: 07ebe3c8dc5677b0bf7a2a4a0a41fc1c32e14add49dc5c2f5553da430fa7ed76
|
|
4
|
+
data.tar.gz: 93ff7e18143f614975b886f7cd5c530ceabf171cbca2a309a5f79040d2d8b6a6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8ba1385d0c2646d2cc05c30b9d90a2c69ef8d90cd22e288213961adc4fe2fd27913e8fa1945d190b3a705b951a35a7fec9c2a9241769bf8581df6eee0712ee10
|
|
7
|
+
data.tar.gz: c2a7fcad43b6cdc7210d80a9e1155ce01dd6a4c12d682d206467273329b989e1346d26eb1004b8764933c54c88779d5198a6a4a0778898eddc493834a112118f
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<label class="block cursor-pointer">
|
|
1
|
+
<label class="inline-block cursor-pointer">
|
|
2
2
|
<input type="radio" name="<%= name %>" value="<%= value %>" <%= "checked" if checked? %> class="peer sr-only">
|
|
3
3
|
<span class="<%= classes %>">
|
|
4
4
|
<span class="<%= label_classes %>"><%= label %></span>
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
module Keystone
|
|
4
4
|
module Ui
|
|
5
5
|
class RadioCardComponent < ViewComponent::Base
|
|
6
|
-
BASE_CLASSES = "
|
|
7
|
-
HIGHLIGHT_CLASSES = "border-
|
|
8
|
-
LABEL_CLASSES = "block font-medium text-
|
|
9
|
-
HINT_CLASSES = "block mt-1 text-sm text-surface-500"
|
|
6
|
+
BASE_CLASSES = "inline-flex flex-col px-4 py-3 rounded-lg border-2 cursor-pointer transition"
|
|
7
|
+
HIGHLIGHT_CLASSES = "border-gray-200 dark:border-zinc-700 peer-checked:border-accent-500 peer-checked:bg-accent-50 dark:peer-checked:bg-zinc-800"
|
|
8
|
+
LABEL_CLASSES = "block font-medium text-gray-900 dark:text-gray-100"
|
|
9
|
+
HINT_CLASSES = "block mt-1 text-sm text-surface-500 dark:text-gray-400"
|
|
10
10
|
|
|
11
11
|
attr_reader :name, :value, :label, :hint
|
|
12
12
|
|
data/lib/keystone_ui/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: keystone_ui
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.12.
|
|
4
|
+
version: 0.12.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tyler Schneider
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-09-
|
|
11
|
+
date: 2026-09-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: keystone_ui-styles
|