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
3 changes: 3 additions & 0 deletions docs/.rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ Style/ClassVars:
- app/models/component.rb
Style/Lambda:
EnforcedStyle: literal
Style/OneClassPerFile:
Exclude:
- config/initializers/phlex.rb
Style/OpenStructUse:
Enabled: false
Style/StringLiterals:
Expand Down
133 changes: 66 additions & 67 deletions docs/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ GEM
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
uri (>= 0.13.1)
addressable (2.8.8)
addressable (2.9.0)
public_suffix (>= 2.0.2, < 8.0)
annotate (2.6.5)
activerecord (>= 2.3.0)
Expand All @@ -104,9 +104,9 @@ GEM
bcrypt_pbkdf (1.1.2)
bigdecimal (4.1.2)
bindex (0.8.1)
bootsnap (1.20.1)
bootsnap (1.24.6)
msgpack (~> 1.2)
brakeman (7.1.2)
brakeman (8.0.5)
racc
builder (3.3.0)
capybara (3.40.0)
Expand All @@ -118,7 +118,7 @@ GEM
rack-test (>= 0.6.3)
regexp_parser (>= 1.5, < 3.0)
xpath (~> 3.2)
capybara-playwright-driver (0.5.7)
capybara-playwright-driver (0.5.9)
addressable
capybara
playwright-ruby-client (>= 1.16.0)
Expand All @@ -136,54 +136,51 @@ GEM
diff-lcs (1.6.2)
dockerfile-rails (1.7.10)
rails (>= 3.0.0)
docs-kit (1.0.3)
docs-kit (1.0.4)
commonmarker (~> 2.0)
daisyui (>= 1.2, < 2)
nokogiri (>= 1.15, < 2)
phlex-rails (>= 2.0, < 3)
rails_icons (~> 1.1)
rouge (>= 4.0, < 5)
rouge (>= 4.0, < 6)
zeitwerk (~> 2.6)
dotenv (3.2.0)
drb (2.2.3)
ed25519 (1.4.0)
erb (6.0.4)
erubi (1.13.1)
factory_bot (6.5.6)
factory_bot (6.6.0)
activesupport (>= 6.1.0)
factory_bot_rails (6.5.1)
factory_bot (~> 6.5)
railties (>= 6.1.0)
faker (3.5.3)
faker (3.8.0)
i18n (>= 1.8.11, < 2)
ffi (1.17.3-aarch64-linux-gnu)
ffi (1.17.3-arm64-darwin)
ffi (1.17.3-x86_64-darwin)
ffi (1.17.3-x86_64-linux-gnu)
friendly_id (5.6.0)
ffi (1.17.4-aarch64-linux-gnu)
ffi (1.17.4-arm64-darwin)
ffi (1.17.4-x86_64-darwin)
ffi (1.17.4-x86_64-linux-gnu)
friendly_id (5.7.0)
activerecord (>= 4.0.0)
globalid (1.4.0)
activesupport (>= 6.1)
google-protobuf (4.33.2)
google-protobuf (4.35.1-aarch64-linux-gnu)
bigdecimal
rake (>= 13)
google-protobuf (4.33.2-aarch64-linux-gnu)
rake (~> 13.3)
google-protobuf (4.35.1-arm64-darwin)
bigdecimal
rake (>= 13)
google-protobuf (4.33.2-arm64-darwin)
rake (~> 13.3)
google-protobuf (4.35.1-x86_64-darwin)
bigdecimal
rake (>= 13)
google-protobuf (4.33.2-x86_64-darwin)
rake (~> 13.3)
google-protobuf (4.35.1-x86_64-linux-gnu)
bigdecimal
rake (>= 13)
google-protobuf (4.33.2-x86_64-linux-gnu)
bigdecimal
rake (>= 13)
rake (~> 13.3)
i18n (1.15.2)
concurrent-ruby (~> 1.0)
icons (0.9.0)
nokogiri (~> 1.16, >= 1.16.4)
importmap-rails (2.2.2)
importmap-rails (2.2.3)
actionpack (>= 6.0.0)
activesupport (>= 6.0.0)
railties (>= 6.0.0)
Expand All @@ -193,11 +190,11 @@ GEM
prism (>= 1.3.0)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
jbuilder (2.14.1)
jbuilder (2.15.1)
actionview (>= 7.0.0)
activesupport (>= 7.0.0)
json (2.20.0)
kamal (2.10.1)
kamal (2.12.0)
activesupport (>= 7.0)
base64 (~> 0.2)
bcrypt_pbkdf (~> 1.0)
Expand All @@ -208,7 +205,7 @@ GEM
sshkit (>= 1.23.0, < 2.0)
thor (~> 1.3)
zeitwerk (>= 2.6.18, < 3.0)
language_server-protocol (3.17.0.5)
language_server-protocol (3.17.0.6)
lint_roller (1.1.0)
logger (1.7.0)
loofah (2.25.1)
Expand All @@ -226,12 +223,12 @@ GEM
mime-types (3.7.0)
logger
mime-types-data (~> 3.2025, >= 3.2025.0507)
mime-types-data (3.2025.0924)
mime-types-data (3.2026.0701)
mini_mime (1.1.5)
minitest (6.0.6)
drb (~> 2.0)
prism (~> 1.5)
msgpack (1.8.0)
msgpack (1.8.3)
name_of_person (1.1.3)
activesupport (>= 5.2.0)
net-imap (0.6.4.1)
Expand All @@ -247,7 +244,7 @@ GEM
net-ssh (>= 5.0.0, < 8.0.0)
net-smtp (0.5.1)
net-protocol
net-ssh (7.3.0)
net-ssh (7.3.3)
nio4r (2.7.5)
nokogiri (1.19.4-aarch64-linux-gnu)
racc (~> 1.4)
Expand All @@ -257,15 +254,15 @@ GEM
racc (~> 1.4)
nokogiri (1.19.4-x86_64-linux-gnu)
racc (~> 1.4)
oj (3.16.13)
oj (3.17.3)
bigdecimal (>= 3.0)
ostruct (>= 0.2)
ostruct (0.6.3)
parallel (1.27.0)
parser (3.3.10.0)
parallel (2.1.0)
parser (3.3.11.1)
ast (~> 2.4.1)
racc
pg_query (6.1.0)
pg_query (6.2.2)
google-protobuf (>= 3.25.3)
phlex (2.4.1)
refract (~> 1.0)
Expand All @@ -274,27 +271,27 @@ GEM
phlex (~> 2.4.0)
railties (>= 7.1, < 9)
zeitwerk (~> 2.7)
phlex-reactive (0.4.7)
phlex-reactive (0.9.1)
globalid (~> 1.0)
phlex-rails (>= 2.0, < 3)
railties (>= 7.1, < 9.0)
turbo-rails (>= 1.5, < 3)
zeitwerk (~> 2.6)
playwright-ruby-client (1.57.1)
playwright-ruby-client (1.61.0)
base64
concurrent-ruby (>= 1.1.6)
mime-types (>= 3.0)
pp (0.6.4)
prettyprint
prettyprint (0.2.0)
prism (1.9.0)
propshaft (1.3.1)
propshaft (1.3.2)
actionpack (>= 7.0.0)
activesupport (>= 7.0.0)
rack
prosopite (2.1.2)
public_suffix (7.0.0)
puma (7.1.0)
prosopite (2.2.0)
public_suffix (7.0.5)
puma (8.0.2)
nio4r (~> 2.0)
racc (1.8.1)
rack (3.2.6)
Expand Down Expand Up @@ -352,46 +349,47 @@ GEM
refract (1.1.0)
prism
zeitwerk
regexp_parser (2.11.3)
regexp_parser (2.12.0)
reline (0.6.3)
io-console (~> 0.5)
rouge (4.7.0)
rouge (5.0.0)
strscan (~> 3.1)
rspec-core (3.13.6)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.5)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.7)
rspec-mocks (3.13.8)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-rails (8.0.2)
rspec-rails (8.0.4)
actionpack (>= 7.2)
activesupport (>= 7.2)
railties (>= 7.2)
rspec-core (~> 3.13)
rspec-expectations (~> 3.13)
rspec-mocks (~> 3.13)
rspec-support (~> 3.13)
rspec-support (3.13.6)
rubocop (1.81.7)
rspec-core (>= 3.13.0, < 5.0.0)
rspec-expectations (>= 3.13.0, < 5.0.0)
rspec-mocks (>= 3.13.0, < 5.0.0)
rspec-support (>= 3.13.0, < 5.0.0)
rspec-support (3.13.7)
rubocop (1.88.1)
json (~> 2.3)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.1.0)
parallel (~> 1.10)
parallel (>= 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 2.9.3, < 3.0)
rubocop-ast (>= 1.47.1, < 2.0)
rubocop-ast (>= 1.49.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.49.0)
rubocop-ast (1.49.1)
parser (>= 3.3.7.2)
prism (~> 1.7)
rubocop-performance (1.26.1)
lint_roller (~> 1.1)
rubocop (>= 1.75.0, < 2.0)
rubocop-ast (>= 1.47.1, < 2.0)
rubocop-rails (2.34.3)
rubocop-rails (2.35.5)
activesupport (>= 4.2.0)
lint_roller (~> 1.1)
rack (>= 1.1)
Expand All @@ -400,18 +398,19 @@ GEM
rubocop-rake (0.7.1)
lint_roller (~> 1.1)
rubocop (>= 1.72.1)
rubocop-rspec (3.8.0)
rubocop-rspec (3.10.2)
lint_roller (~> 1.1)
rubocop (~> 1.81)
regexp_parser (>= 2.0)
rubocop (~> 1.86, >= 1.86.2)
ruby-progressbar (1.13.0)
ruby-vips (2.3.0)
ffi (~> 1.12)
logger
securerandom (0.4.1)
sqlite3 (2.9.0-aarch64-linux-gnu)
sqlite3 (2.9.0-arm64-darwin)
sqlite3 (2.9.0-x86_64-darwin)
sqlite3 (2.9.0-x86_64-linux-gnu)
sqlite3 (2.9.5-aarch64-linux-gnu)
sqlite3 (2.9.5-arm64-darwin)
sqlite3 (2.9.5-x86_64-darwin)
sqlite3 (2.9.5-x86_64-linux-gnu)
sshkit (1.25.0)
base64
logger
Expand All @@ -421,15 +420,16 @@ GEM
ostruct
stimulus-rails (1.3.4)
railties (>= 6.0.0)
strscan (3.1.8)
thor (1.5.0)
thruster (0.1.22-aarch64-linux)
thruster (0.1.22-arm64-darwin)
thruster (0.1.22-x86_64-darwin)
thruster (0.1.22-x86_64-linux)
tilt (2.6.1)
tilt (2.7.0)
timeout (0.6.1)
tsort (0.2.0)
turbo-rails (2.0.20)
turbo-rails (2.0.23)
actionpack (>= 7.1.0)
railties (>= 7.1.0)
tzinfo (2.0.6)
Expand All @@ -439,11 +439,10 @@ GEM
unicode-emoji (4.2.0)
uri (1.1.1)
useragent (0.16.11)
web-console (4.2.1)
actionview (>= 6.0.0)
activemodel (>= 6.0.0)
web-console (4.3.0)
actionview (>= 8.0.0)
bindex (>= 0.4.0)
railties (>= 6.0.0)
railties (>= 8.0.0)
websocket-driver (0.8.2)
base64
websocket-extensions (>= 0.1.0)
Expand Down
14 changes: 7 additions & 7 deletions docs/app/views/components/examples/stat/with_figure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,18 @@ def example
def heart_icon
svg(xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24",
class: "inline-block h-8 w-8 stroke-current") do |s|
s.path(stroke_linecap: "round", stroke_linejoin: "round", stroke_width: "2",
d: "M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 " \
"00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z")
end
s.path(stroke_linecap: "round", stroke_linejoin: "round", stroke_width: "2",
d: "M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 " \
"00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z")
end
end

def bolt_icon
svg(xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24",
class: "inline-block h-8 w-8 stroke-current") do |s|
s.path(stroke_linecap: "round", stroke_linejoin: "round", stroke_width: "2",
d: "M13 10V3L4 14h7v7l9-11h-7z")
end
s.path(stroke_linecap: "round", stroke_linejoin: "round", stroke_width: "2",
d: "M13 10V3L4 14h7v7l9-11h-7z")
end
end
end
end
Expand Down
8 changes: 4 additions & 4 deletions docs/app/views/components/examples/timeline/colorful.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ def example
def check_icon(color = nil)
svg(xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor",
class: ["h-5 w-5", color].compact.join(" ")) do |s|
s.path(fill_rule: "evenodd", clip_rule: "evenodd",
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 " \
"4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z")
end
s.path(fill_rule: "evenodd", clip_rule: "evenodd",
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 " \
"4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z")
end
end
end
end
Expand Down
Loading
Loading