diff --git a/gem/lib/ruby_ui/native_select/native_select_icon.rb b/gem/lib/ruby_ui/native_select/native_select_icon.rb index 1169df8a..60120f17 100644 --- a/gem/lib/ruby_ui/native_select/native_select_icon.rb +++ b/gem/lib/ruby_ui/native_select/native_select_icon.rb @@ -17,7 +17,7 @@ def view_template(&block) def icon svg( xmlns: "http://www.w3.org/2000/svg", - viewbox: "0 0 24 24", + viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", stroke_width: "2", diff --git a/mcp/data/registry.json b/mcp/data/registry.json index 0c83744e..cdf9b1e7 100644 --- a/mcp/data/registry.json +++ b/mcp/data/registry.json @@ -1898,7 +1898,7 @@ }, { "path": "native_select_icon.rb", - "content": "# frozen_string_literal: true\n\nmodule RubyUI\n class NativeSelectIcon < Base\n def view_template(&block)\n span(**attrs) do\n if block\n block.call\n else\n icon\n end\n end\n end\n\n private\n\n def icon\n svg(\n xmlns: \"http://www.w3.org/2000/svg\",\n viewbox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n stroke_width: \"2\",\n stroke_linecap: \"round\",\n stroke_linejoin: \"round\",\n class: \"size-4\",\n aria_hidden: \"true\"\n ) do |s|\n s.path(d: \"m6 9 6 6 6-6\")\n end\n end\n\n def default_attrs\n {\n class: \"text-muted-foreground pointer-events-none absolute top-1/2 right-2.5 -translate-y-1/2 select-none\"\n }\n end\n end\nend\n" + "content": "# frozen_string_literal: true\n\nmodule RubyUI\n class NativeSelectIcon < Base\n def view_template(&block)\n span(**attrs) do\n if block\n block.call\n else\n icon\n end\n end\n end\n\n private\n\n def icon\n svg(\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n stroke_width: \"2\",\n stroke_linecap: \"round\",\n stroke_linejoin: \"round\",\n class: \"size-4\",\n aria_hidden: \"true\"\n ) do |s|\n s.path(d: \"m6 9 6 6 6-6\")\n end\n end\n\n def default_attrs\n {\n class: \"text-muted-foreground pointer-events-none absolute top-1/2 right-2.5 -translate-y-1/2 select-none\"\n }\n end\n end\nend\n" }, { "path": "native_select_option.rb",