Skip to content
Closed
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 lib/rbui/alert_dialog/alert_dialog_content.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RBUI
class AlertDialogContent < Base
def view_template(&block)
template_tag(**attrs) do
div(**attrs) do
div(data: {controller: "rbui--alert-dialog"}) do
background
container(&block)
Expand Down
2 changes: 1 addition & 1 deletion lib/rbui/calendar/calendar_days.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def render_other_month_date_template
end

def date_template(target, &block)
template_tag(data: {rbui__calendar_target: target}) do
div(data: {rbui__calendar_target: target}) do
td(
class:
"relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected])]:rounded-md",
Expand Down
2 changes: 1 addition & 1 deletion lib/rbui/calendar/calendar_weekdays.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class CalendarWeekdays < Base
DAYS = %w[Monday Tuesday Wednesday Thursday Friday Saturday Sunday].freeze

def view_template
template_tag(data: {rbui__calendar_target: "weekdaysTemplate"}) do
div(data: {rbui__calendar_target: "weekdaysTemplate"}) do
thead(**attrs) do
tr(class: "flex") do
DAYS.each do |day|
Expand Down
2 changes: 1 addition & 1 deletion lib/rbui/command/command_dialog_content.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def initialize(size: :md, **attrs)
end

def view_template(&block)
template_tag(data: {rbui__command_target: "content"}) do
div(data: {rbui__command_target: "content"}) do
div(data: {controller: "rbui--command"}) do
backdrop
div(**attrs, &block)
Expand Down
2 changes: 1 addition & 1 deletion lib/rbui/context_menu/context_menu_content.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RBUI
class ContextMenuContent < Base
def view_template(&block)
template_tag(data: {rbui__context_menu_target: "content"}) do
div(data: {rbui__context_menu_target: "content"}) do
div(**attrs, &block)
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/rbui/dialog/dialog_content.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def initialize(size: :md, **attrs)
end

def view_template
template_tag(data: {rbui__dialog_target: "content"}) do
div(data: {rbui__dialog_target: "content"}) do
div(data_controller: "rbui--dialog") do
backdrop
div(**attrs) do
Expand Down
2 changes: 1 addition & 1 deletion lib/rbui/hover_card/hover_card_content.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RBUI
class HoverCardContent < Base
def view_template(&block)
template_tag(data: {rbui__hover_card_target: "content"}) do
div(data: {rbui__hover_card_target: "content"}) do
div(**attrs, &block)
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/rbui/sheet/sheet_content.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def initialize(side: :right, **attrs)
end

def view_template(&block)
template_tag(data: {rbui__sheet_target: "content"}) do
div(data: {rbui__sheet_target: "content"}) do
div(data: {controller: "rbui--sheet-content"}) do
backdrop
div(**attrs) do
Expand Down