atomic_view 0.0.4 → 0.0.5
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: eaafaa41e3a0b53cf8ae4eac7c98f343be2519ea929e28f4e079960c69dc0fc7
|
4
|
+
data.tar.gz: 70cfe91fd26d2f3182c43a82bee14fd581599f68e9ce2b820e6355bda505a1d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d5b1b714b8b4cb7aa12617e5d3f936d9045f49a0bff8b88086135c797dac8ae96aee906f6bf35a3116f25be50729e5977e6f8f85ee31f34b345a06e9263f2be
|
7
|
+
data.tar.gz: 103431e0fe4955979c381a53bf2b6503f3d1b65c8ac4704a118422ed1197ab51b57ce89b58772f74a2db6d2aac20706520696174d8e96da8f68708d04349d9ae
|
@@ -3,7 +3,7 @@ module AtomicView
|
|
3
3
|
class CollectionSelectComponent < ViewComponent::Form::CollectionSelectComponent
|
4
4
|
def html_class
|
5
5
|
class_names(
|
6
|
-
*%W[block w-full h-9 min-w-0 flex-1 rounded-
|
6
|
+
*%W[block w-full h-9 min-w-0 flex-1 rounded-md border-0 py-1 text-sm shadow-xs ring-1],
|
7
7
|
"disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-zinc-500 disabled:ring-zinc-200",
|
8
8
|
"bg-transparent dark:bg-white/5 text-zinc-950 ring-zinc-950/10 dark:ring-white/10 placeholder:text-zinc-500 dark:text-white focus:ring-neutral-700 focus:border-zinc-950/20 dark:focus:ring-white/20",
|
9
9
|
"text-red-900 ring-red-300 placeholder:text-red-300 focus:ring-red-500" => method_errors?
|
@@ -10,20 +10,20 @@ module AtomicView
|
|
10
10
|
|
11
11
|
def html_class
|
12
12
|
class_names(
|
13
|
-
|
13
|
+
"block w-full appearance-none h-9 min-w-0 z-10 flex-1 rounded-lg border-1 py-1 text-base shadow-xs ring-1",
|
14
14
|
"disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-zinc-500 disabled:ring-zinc-200",
|
15
15
|
"bg-transparent dark:bg-white/5 text-zinc-950 ring-zinc-950/10 dark:ring-white/10 placeholder:text-zinc-500 dark:text-white focus:ring-neutral-700 focus:border-zinc-950/20 dark:focus:ring-white/20",
|
16
16
|
"pl-10" => left_section? && !(left_section_addon? || left_section_interaction?),
|
17
17
|
"pr-10" => right_section? && !(right_section_addon? || right_section_interaction?),
|
18
|
-
"shadow-none rounded-
|
19
|
-
"shadow-none rounded-
|
18
|
+
"shadow-none rounded-none rounded-r-lg" => left_section_addon? || left_section_interaction?,
|
19
|
+
"shadow-none rounded-none rounded-l-lg" => right_section_addon? || right_section_interaction?,
|
20
20
|
"text-red-900 ring-red-300 placeholder:text-red-300 focus:ring-red-500" => method_errors?
|
21
21
|
)
|
22
22
|
end
|
23
23
|
|
24
24
|
def container_html_class
|
25
25
|
class_names(
|
26
|
-
"relative rounded-
|
26
|
+
"relative rounded-lg shadow-xs",
|
27
27
|
{"flex" => left_section_addon? || left_section_interaction? || right_section_addon? || right_section_interaction?},
|
28
28
|
options[:container_class]
|
29
29
|
)
|
data/lib/atomic_view/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: atomic_view
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel Warrington
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: zeitwerk
|
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
164
|
- !ruby/object:Gem::Version
|
165
165
|
version: '0'
|
166
166
|
requirements: []
|
167
|
-
rubygems_version: 3.5.
|
167
|
+
rubygems_version: 3.5.22
|
168
168
|
signing_key:
|
169
169
|
specification_version: 4
|
170
170
|
summary: Component library built for Ruby on Rails with first-class support for ActionView
|