Skip to content
This repository was archived by the owner on Jun 18, 2026. It is now read-only.

Commit efedfd0

Browse files
committed
chore: rename PhlexUI references to ruby_ui
1 parent cede176 commit efedfd0

11 files changed

Lines changed: 36 additions & 36 deletions

File tree

app/components/docs/tailwind_config.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def tailwind_config
2121
const execSync = require('child_process').execSync;
2222
2323
// Import ruby_ui gem path (To make sure Tailwind loads classes used by ruby_ui gem)
24-
const outputRUBYUI = execSync('bundle show phlex_ui', { encoding: 'utf-8' });
24+
const outputRUBYUI = execSync('bundle show ruby_ui', { encoding: 'utf-8' });
2525
const ruby_ui_path = outputRUBYUI.trim() + '/**/*.rb';
2626
2727
const defaultTheme = require('tailwindcss/defaultTheme')

app/components/shared/menu.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def view_template
1212
main_link("Docs", docs_introduction_path)
1313
main_link("Components", docs_components_path)
1414
main_link("Themes", theme_path("default"))
15-
main_link("Github", "https://github.com/PhlexUI/phlex_ui")
15+
main_link("Github", "https://github.com/ruby-ui/ruby_ui")
1616
main_link("Discord", ENV["DISCORD_INVITE_LINK"])
1717
main_link("Discord", ENV["DISCORD_INVITE_LINK"])
1818
end

app/components/shared/navbar.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def search_button
8282
end
8383
end
8484
end
85-
CommandDialogContent(class: "overflow-hidden p-0 shadow-2xl top-[10%] translate-y-0") do
85+
CommandDialogContent(class: "overflow-hidden p-0 shadow-2xl") do
8686
Command(class: "flex h-full w-full flex-col overflow-hidden") do
8787
CommandInput(placeholder: "Search documentation...", class: "border-none focus:ring-0")
8888
CommandEmpty { "No results found." }
@@ -106,7 +106,7 @@ def search_button
106106
end
107107

108108
def github_link
109-
Link(href: "https://github.com/PhlexUI/phlex_ui", variant: :ghost, icon: true) do
109+
Link(href: "https://github.com/ruby-ui/ruby_ui", variant: :ghost, icon: true) do
110110
github_icon
111111
end
112112
end

app/components/themes/grid/command.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,16 @@ def view_template
5151

5252
def components
5353
[
54-
::Docs::ComponentStruct.new(name: "CommandController", source: "https://github.com/PhlexUI/phlex_ui_stimulus_pro/blob/main/controllers/command_controller.js", built_using: :stimulus),
55-
::Docs::ComponentStruct.new(name: "CommandDialog", source: "https://github.com/PhlexUI/phlex_ui_pro/blob/main/lib/phlex_ui_pro/command/dialog.rb", built_using: :phlex),
56-
::Docs::ComponentStruct.new(name: "CommandDialogTrigger", source: "https://github.com/PhlexUI/phlex_ui_pro/blob/main/lib/phlex_ui_pro/command/dialog_trigger.rb", built_using: :phlex),
57-
::Docs::ComponentStruct.new(name: "CommandDialogContent", source: "https://github.com/PhlexUI/phlex_ui_pro/blob/main/lib/phlex_ui_pro/command/dialog_content.rb", built_using: :phlex),
58-
::Docs::ComponentStruct.new(name: "Command", source: "https://github.com/PhlexUI/phlex_ui_pro/blob/main/lib/phlex_ui_pro/command.rb", built_using: :phlex),
59-
::Docs::ComponentStruct.new(name: "CommandInput", source: "https://github.com/PhlexUI/phlex_ui_pro/blob/main/lib/phlex_ui_pro/command/input.rb", built_using: :phlex),
60-
::Docs::ComponentStruct.new(name: "CommandEmpty", source: "https://github.com/PhlexUI/phlex_ui_pro/blob/main/lib/phlex_ui_pro/command/empty.rb", built_using: :phlex),
61-
::Docs::ComponentStruct.new(name: "CommandList", source: "https://github.com/PhlexUI/phlex_ui_pro/blob/main/lib/phlex_ui_pro/command/list.rb", built_using: :phlex),
62-
::Docs::ComponentStruct.new(name: "CommandGroup", source: "https://github.com/PhlexUI/phlex_ui_pro/blob/main/lib/phlex_ui_pro/command/group.rb", built_using: :phlex),
63-
::Docs::ComponentStruct.new(name: "CommandItem", source: "https://github.com/PhlexUI/phlex_ui_pro/blob/main/lib/phlex_ui_pro/command/item.rb", built_using: :phlex)
54+
::Docs::ComponentStruct.new(name: "CommandController", source: "https://github.com/ruby-ui/ruby_ui_stimulus_pro/blob/main/controllers/command_controller.js", built_using: :stimulus),
55+
::Docs::ComponentStruct.new(name: "CommandDialog", source: "https://github.com/ruby-ui/ruby_ui_pro/blob/main/lib/ruby_ui_pro/command/dialog.rb", built_using: :phlex),
56+
::Docs::ComponentStruct.new(name: "CommandDialogTrigger", source: "https://github.com/ruby-ui/ruby_ui_pro/blob/main/lib/ruby_ui_pro/command/dialog_trigger.rb", built_using: :phlex),
57+
::Docs::ComponentStruct.new(name: "CommandDialogContent", source: "https://github.com/ruby-ui/ruby_ui_pro/blob/main/lib/ruby_ui_pro/command/dialog_content.rb", built_using: :phlex),
58+
::Docs::ComponentStruct.new(name: "Command", source: "https://github.com/ruby-ui/ruby_ui_pro/blob/main/lib/ruby_ui_pro/command.rb", built_using: :phlex),
59+
::Docs::ComponentStruct.new(name: "CommandInput", source: "https://github.com/ruby-ui/ruby_ui_pro/blob/main/lib/ruby_ui_pro/command/input.rb", built_using: :phlex),
60+
::Docs::ComponentStruct.new(name: "CommandEmpty", source: "https://github.com/ruby-ui/ruby_ui_pro/blob/main/lib/ruby_ui_pro/command/empty.rb", built_using: :phlex),
61+
::Docs::ComponentStruct.new(name: "CommandList", source: "https://github.com/ruby-ui/ruby_ui_pro/blob/main/lib/ruby_ui_pro/command/list.rb", built_using: :phlex),
62+
::Docs::ComponentStruct.new(name: "CommandGroup", source: "https://github.com/ruby-ui/ruby_ui_pro/blob/main/lib/ruby_ui_pro/command/group.rb", built_using: :phlex),
63+
::Docs::ComponentStruct.new(name: "CommandItem", source: "https://github.com/ruby-ui/ruby_ui_pro/blob/main/lib/ruby_ui_pro/command/item.rb", built_using: :phlex)
6464
]
6565
end
6666

app/components/themes/grid/repo_tabs.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ def view_template
4343

4444
def components
4545
[
46-
::Docs::ComponentStruct.new(name: "TabsController", source: "https://github.com/PhlexUI/phlex_ui_stimulus/blob/main/controllers/tabs_controller.js", built_using: :stimulus),
47-
::Docs::ComponentStruct.new(name: "Tabs", source: "https://github.com/PhlexUI/phlex_ui/blob/main/lib/phlex_ui/tabs.rb", built_using: :phlex),
48-
::Docs::ComponentStruct.new(name: "TabsList", source: "https://github.com/PhlexUI/phlex_ui/blob/main/lib/phlex_ui/tabs/list.rb", built_using: :phlex),
49-
::Docs::ComponentStruct.new(name: "TabsTrigger", source: "https://github.com/PhlexUI/phlex_ui/blob/main/lib/phlex_ui/tabs/trigger.rb", built_using: :phlex),
50-
::Docs::ComponentStruct.new(name: "TabsContent", source: "https://github.com/PhlexUI/phlex_ui/blob/main/lib/phlex_ui/tabs/content.rb", built_using: :phlex)
46+
::Docs::ComponentStruct.new(name: "TabsController", source: "https://github.com/ruby-ui/ruby_ui_stimulus/blob/main/controllers/tabs_controller.js", built_using: :stimulus),
47+
::Docs::ComponentStruct.new(name: "Tabs", source: "https://github.com/ruby-ui/ruby_ui/blob/main/lib/ruby_ui/tabs.rb", built_using: :phlex),
48+
::Docs::ComponentStruct.new(name: "TabsList", source: "https://github.com/ruby-ui/ruby_ui/blob/main/lib/ruby_ui/tabs/list.rb", built_using: :phlex),
49+
::Docs::ComponentStruct.new(name: "TabsTrigger", source: "https://github.com/ruby-ui/ruby_ui/blob/main/lib/ruby_ui/tabs/trigger.rb", built_using: :phlex),
50+
::Docs::ComponentStruct.new(name: "TabsContent", source: "https://github.com/ruby-ui/ruby_ui/blob/main/lib/ruby_ui/tabs/content.rb", built_using: :phlex)
5151
]
5252
end
5353

app/components/themes/grid/table.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ class Table < Components::Base
77
User = Struct.new(:avatar_url, :name, :username, :commits, :github_url, keyword_init: true)
88

99
# def view_template
10-
# render PhlexUI::Card.new(class: "p-6") do
11-
# render PhlexUI::Table::Builder.new(users) do |t|
10+
# render RubyUI::Card.new(class: "p-6") do
11+
# render RubyUI::Table::Builder.new(users) do |t|
1212
# t.column("Name") do |user|
1313
# div(class: "flex items-center space-x-3") do
14-
# render PhlexUI::Avatar::Builder.new(src: user.avatar_url, size: :md)
14+
# render RubyUI::Avatar::Builder.new(src: user.avatar_url, size: :md)
1515
# div do
1616
# p(class: "text-sm font-medium") { user.name }
1717
# p(class: "text-sm text-gray-500") { user.username }
@@ -21,7 +21,7 @@ class Table < Components::Base
2121
# t.column("Commits", &:commits)
2222
# t.column("Links", header_attrs: {class: "text-right"}, footer_attrs: {class: "text-right"}) do |user|
2323
# div(class: "flex items-center justify-end space-x-2") do
24-
# render PhlexUI::Link.new(href: github_link(user), variant: :outline, size: :sm) do
24+
# render RubyUI::Link.new(href: github_link(user), variant: :outline, size: :sm) do
2525
# github_icon
2626
# span(class: "ml-2") { "See profile" }
2727
# end

app/helpers/application_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def component_files(component, gem_name = "ruby_ui")
2121
basename = File.basename(file, ext)
2222

2323
name = basename.camelize
24-
# source = "https://github.com/PhlexUI/phlex_ui/blob/v1/lib/ruby_ui/#{component.to_s.downcase}/#{File.basename(file)}"
24+
# source = "https://github.com/ruby-ui/ruby_ui/blob/v1/lib/ruby_ui/#{component.to_s.downcase}/#{File.basename(file)}"
2525
source = "lib/ruby_ui/#{camel_to_snake(component)}/#{File.basename(file)}"
2626
built_using = if ext == ".rb"
2727
:phlex

app/views/docs/accordion.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ def view_template
1515
Accordion do
1616
AccordionItem do
1717
AccordionTrigger do
18-
p(class: "font-medium") { "What is PhlexUI?" }
18+
p(class: "font-medium") { "What is RubyUI?" }
1919
AccordionIcon()
2020
end
2121
2222
AccordionContent do
2323
p(class: "text-sm pb-4") do
24-
"PhlexUI is a UI component library for Ruby devs who want to build better, faster."
24+
"RubyUI is a UI component library for Ruby devs who want to build better, faster."
2525
end
2626
end
2727
end
@@ -36,7 +36,7 @@ def view_template
3636
3737
AccordionContent do
3838
p(class: "text-sm pb-4") do
39-
"Yes, PhlexUI is pure Ruby and works great with Rails. It's a Ruby gem that you can install into your Rails app."
39+
"Yes, RubyUI is pure Ruby and works great with Rails. It's a Ruby gem that you can install into your Rails app."
4040
end
4141
end
4242
end

app/views/docs/chart.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ def view_template
108108

109109
def components
110110
[
111-
::Docs::ComponentStruct.new(name: "ChartController", source: "https://github.com/PhlexUI/phlex_ui_stimulus/blob/main/controllers/chart_controller.js", built_using: :stimulus),
112-
::Docs::ComponentStruct.new(name: "Chart", source: "https://github.com/PhlexUI/phlex_ui/blob/main/lib/phlex_ui/chart.rb", built_using: :phlex)
111+
::Docs::ComponentStruct.new(name: "ChartController", source: "https://github.com/ruby-ui/ruby_ui_stimulus/blob/main/controllers/chart_controller.js", built_using: :stimulus),
112+
::Docs::ComponentStruct.new(name: "Chart", source: "https://github.com/ruby-ui/ruby_ui/blob/main/lib/ruby_ui/chart.rb", built_using: :phlex)
113113
]
114114
end
115115
end

app/views/docs/getting_started/customizing_components.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def view_template
6161
plain "First, find the source code for the component you want to redefine. In this case, we want to redefine the "
6262
InlineCode { "Alert" }
6363
plain " component, so we'll find the source code for the alert component "
64-
InlineLink(href: "https://github.com/PhlexUI/phlex_ui/blob/main/lib/phlex_ui/alert.rb") { "here on Github" }
64+
InlineLink(href: "https://github.com/ruby-ui/ruby_ui/blob/main/lib/ruby_ui/alert.rb") { "here on Github" }
6565
plain "."
6666
end
6767
end
@@ -122,7 +122,7 @@ def view_template
122122
Components.TypographyList(numbered: true) do
123123
Components.TypographyListItem do
124124
plain "Check the "
125-
InlineLink(href: "https://github.com/PhlexUI/phlex_ui") { "RubyUI GitHub repository" }
125+
InlineLink(href: "https://github.com/ruby-ui/ruby_ui") { "RubyUI GitHub repository" }
126126
plain " to see if the component is already planned"
127127
end
128128
Components.TypographyListItem { "Open an issue or discussion to propose the new component" }
@@ -141,7 +141,7 @@ def alert_component_definition
141141
<<~RUBY
142142
# frozen_string_literal: true
143143
144-
module PhlexUI
144+
module RubyUI
145145
class Alert < Base
146146
def initialize(variant: nil, **attrs)
147147
@variant = variant

0 commit comments

Comments
 (0)