Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

source "https://rubygems.org"

# Specify your gem's dependencies in flowbite-view_components.gemspec
# Specify your gem's dependencies in flowbite-components.gemspec
gemspec

gem "irb"
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Flowbite ViewComponents
# Flowbite Components

[![Gem Version](https://badge.fury.io/rb/flowbite-view_components.svg)](https://rubygems.org/gems/flowbite-view_components)
[![Ruby Tests](https://github.com/substancelab/flowbite-view_components/workflows/Ruby/badge.svg)](https://github.com/substancelab/flowbite-view_components/actions)
[![Gem Version](https://badge.fury.io/rb/flowbite-components.svg)](https://rubygems.org/gems/flowbite-components)
[![Ruby Tests](https://github.com/substancelab/flowbite-components/workflows/Ruby/badge.svg)](https://github.com/substancelab/flowbite-components/actions)

Unofficial, open source implementation of [Flowbite](https://flowbite.com/) components for Rails applications, built using [ViewComponent](https://viewcomponent.org/).

Flowbite ViewComponents provides a comprehensive library of UI components following the Flowbite design system, implemented as Rails ViewComponents with full Tailwind CSS integration and dark mode support.
Flowbite Components provides a comprehensive library of UI components following the Flowbite design system, implemented as Rails ViewComponents with full Tailwind CSS integration and dark mode support.

## Features

Expand All @@ -22,7 +22,7 @@ Flowbite ViewComponents provides a comprehensive library of UI components follow
Add the gem to your application's Gemfile:

```ruby
gem 'flowbite-view_components'
gem 'flowbite-components'
```

Then execute:
Expand Down Expand Up @@ -52,7 +52,7 @@ Add Flowbite to your Tailwind CSS configuration. In your `app/assets/tailwind/ap
```css
@import "flowbite/src/themes/default";
@plugin "flowbite/plugin";
@import "../builds/tailwind/flowbite_view_components";
@import "../builds/tailwind/flowbite-components";
```

## Usage examples
Expand Down Expand Up @@ -223,7 +223,7 @@ This library includes Lookbook previews for all components. To view them:

## Contributing

Bug reports and pull requests are welcome on GitHub at [https://github.com/substancelab/flowbite-view_components](https://github.com/substancelab/flowbite-view_components).
Bug reports and pull requests are welcome on GitHub at [https://github.com/substancelab/flowbite-components](https://github.com/substancelab/flowbite-components).

### Development Guidelines

Expand Down
2 changes: 1 addition & 1 deletion bin/console
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# frozen_string_literal: true

require "bundler/setup"
require "flowbite/view_components"
require "flowbite/components"

# You can add fixtures and/or initialization code here to make experimenting
# with your gem easier. You can also use a different console, if you like.
Expand Down
2 changes: 1 addition & 1 deletion demo/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ gem "puma", ">= 5.0"
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem "tzinfo-data", platforms: %i[windows jruby]

gem "flowbite-view_components", path: "../.." # Load the gem files from the parent directory
gem "flowbite-components", path: "../.." # Load the gem files from the parent directory
gem "tailwindcss-rails", "~> 4.0.0"

group :development, :test do
Expand Down
4 changes: 2 additions & 2 deletions demo/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ../..
specs:
flowbite-view_components (0.1.0)
flowbite-components (0.1.0)
view_component (>= 4.0.0)

GEM
Expand Down Expand Up @@ -279,7 +279,7 @@ PLATFORMS

DEPENDENCIES
debug
flowbite-view_components!
flowbite-components!
listen
lookbook (>= 2.3.11)
propshaft
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
# frozen_string_literal: true

require_relative "lib/flowbite/view_components/version"
require_relative "lib/flowbite/components/version"

Gem::Specification.new do |spec|
spec.name = "flowbite-components"
spec.version = Flowbite::ViewComponents::VERSION
spec.version = Flowbite::Components::VERSION
spec.authors = ["Jakob Skjerning"]
spec.email = ["jakob@mentalized.net"]

spec.summary = "Flowbite components for Rails applications"
spec.description = "A library of Flowbite View Components to be used in Rails applications."
spec.homepage = "https://github.com/substancelab/flowbite-view_components"
spec.homepage = "https://github.com/substancelab/flowbite-components"
spec.required_ruby_version = ">= 3.1.0"

spec.metadata["allowed_push_host"] = "https://rubygems.org/"

spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = spec.homepage
spec.metadata["changelog_uri"] = "https://github.com/substancelab/flowbite-view_components/blob/main/CHANGELOG.md"
spec.metadata["changelog_uri"] = "https://github.com/substancelab/flowbite-components/blob/main/CHANGELOG.md"

spec.files = Dir["CHANGELOG.md", "LICENSE", "README.md", "lib/**/*"]
spec.bindir = "exe"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# frozen_string_literal: true

require_relative "view_components/engine"
require_relative "view_components/version"
require_relative "components/engine"
require_relative "components/version"

require "view_component"

module Flowbite
module ViewComponents
module Components
class Error < StandardError; end
# Your code goes here...
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
require "rails/engine"

module Flowbite
module ViewComponents
module Components
class Engine < ::Rails::Engine
isolate_namespace Flowbite::ViewComponents
isolate_namespace Flowbite::Components

config.autoload_paths = [
"#{root}/app/components"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

module Flowbite
module ViewComponents
module Components
VERSION = "0.1.0"
end
end
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Flowbite
module ViewComponents
module Components
VERSION: String
# See the writing guide of rbs: https://github.com/ruby/rbs#guides
end
Expand Down