Skip to content

Commit 3ee3442

Browse files
authored
Remove RBUI mentions from codebase (#146)
* Remove RBUI mentions * change assets
1 parent e66b96a commit 3ee3442

File tree

5 files changed

+67
-78
lines changed

5 files changed

+67
-78
lines changed

README.md

+2-59
Original file line numberDiff line numberDiff line change
@@ -2,79 +2,22 @@ Rails need a plug n play system for creating streamlined ui components.
22

33
Phlex looks fun and fast, so I thought I'd start creating ui components with it.
44

5-
Here is the list of components that are being built. For reference, see here https://ui.shadcn.com/docs/components/accordion
6-
7-
✅ Accordion
8-
✅ Alert
9-
✅ Alert Dialog
10-
✅ Aspect Ratio
11-
✅ Avatar
12-
✅ Badge
13-
✅ Button
14-
✅ Calendar
15-
✅ Card
16-
✅ Checkbox
17-
✅ Checkbox Group
18-
✅ Codeblock
19-
✅ Collapsible
20-
⚪️ Combobox
21-
✅ Command
22-
⚪️ Context Menu
23-
⚪️ Data Table
24-
✅ Date Picker
25-
✅ Dialog
26-
✅ Dropdown Menu
27-
⚪️ Form
28-
✅ Hover Card
29-
✅ Input
30-
✅ Label
31-
✅ Link
32-
⚪️ Menubar
33-
⚪️ Navigation Menu
34-
✅ Pagination
35-
✅ Popover
36-
⚪️ Progress
37-
⚪️ Radio Group
38-
⚪️ Scroll Area
39-
⚪️ Select
40-
⚪️ Separator
41-
✅ Sheet
42-
⚪️ Skeleton
43-
⚪️ Slider
44-
⚪️ Switch
45-
⚪️ Table
46-
✅ Tabs
47-
✅ Textarea
48-
⚪️ Toast
49-
⚪️ Toggle
50-
✅ Tooltip
51-
✅ Typography
52-
535
## Contributing - Local Development Setup
546

557
### Install the Gem Locally
568

579
To contribute to this project, it's recommended to install the gem locally and point to it in your Gemfile:
5810

5911
```ruby
60-
gem "rbui", path: "../rbui"
12+
gem "ruby_ui", path: "../ruby_ui"
6113
```
62-
63-
### Link the JavaScript Package
64-
65-
Similarly, link the rbui-js package locally using yarn:
66-
67-
```bash
68-
yarn add ../rbui
69-
```
70-
7114
## Working with Components
7215

7316
### Component Development Workflow
7417

7518
1. Eject the component you want to modify using the generator:
7619
```bash
77-
rails generate rbui:component combobox
20+
rails generate ruby_ui:component combobox
7821
```
7922
2. Make your desired changes to the ejected component
8023
3. Once you're satisfied with the modifications, integrate the component back into the gem in the appropriate location

app/assets/.DS_Store

6 KB
Binary file not shown.

app/assets/images/logo.svg

+30-7
Loading

app/assets/images/logo_dark.svg

+30-7
Loading

app/views/components/docs/tailwind_config.rb

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ def view_template
1515

1616
def tailwind_config
1717
<<~CODE
18-
// For importing tailwind styles from rbui gem
18+
// For importing tailwind styles from ruby_ui gem
1919
const execSync = require('child_process').execSync;
2020
21-
// Import rbui gem path (To make sure Tailwind loads classes used by rbui gem)
22-
const outputRBUI = execSync('bundle show phlex_ui', { encoding: 'utf-8' });
23-
const rbui_path = outputRBUI.trim() + '/**/*.rb';
21+
// Import ruby_ui gem path (To make sure Tailwind loads classes used by ruby_ui gem)
22+
const outputRUBYUI = execSync('bundle show phlex_ui', { encoding: 'utf-8' });
23+
const ruby_ui_path = outputRUBYUI.trim() + '/**/*.rb';
2424
2525
const defaultTheme = require('tailwindcss/defaultTheme')
2626
@@ -31,7 +31,7 @@ def tailwind_config
3131
'./app/helpers/**/*.rb',
3232
'./app/assets/stylesheets/**/*.css',
3333
'./app/javascript/**/*.js',
34-
rbui_path
34+
ruby_ui_path
3535
],
3636
theme: {
3737
container: {

0 commit comments

Comments
 (0)