phlexy_ui 0.1.22 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1bfb249e7b0e9a9cc9ca9744ddec6dc1386abdaaa7c40c0605444fdb6c65d541
4
- data.tar.gz: c4f553e7e2ffdc0d34a1544a0b8a75bd3b9e089621f791a2c138387b6a936523
3
+ metadata.gz: 6f4228c1a4dc9a11f20b0742d5e988541462c387fb3bde93b159f1051a2f4abf
4
+ data.tar.gz: 796d87cf1acfe682534bc2d9fd01363c17bb4a4287ee31233f539efc038a7271
5
5
  SHA512:
6
- metadata.gz: 02e4b7499783ceaf8a3cd6fd6ede3e663ca169c8dd8891d267425c52a8b8ddbf9a75e086e094a225bc425d2f9ab3969f080c99ee4d0f9d54f68ec9a477e0d499
7
- data.tar.gz: 7a022929330f5bbd58a9e2bf2559f6faad2a0d0bf2a0db8783cf161275c76bc71ea61a25a1544cf8e20bfab2ba239301a2f7cc49ae7ca1f9a3e6018fdc423ae1
6
+ metadata.gz: 998d5b3f43e213ebfc2b4be071cea53af0558775193c7806a75e756d905aa2f7017533ca402725923c952de02391d75b7a33b0349ba1f5db449281f949bec1d2
7
+ data.tar.gz: 2a80a2d312840a169673fc9d5465fdf92acc1787e13e85dc19e0635adfaac2135f609b1865b2bda46b93ff53d6d321e4874be8fde687d1bb124d5cb6489e1374
@@ -18,17 +18,13 @@ module PhlexyUI
18
18
  options:
19
19
  ).then do |classes|
20
20
  if modal
21
- if Phlex::VERSION.start_with?("1.")
22
- build_button_via_unsafe_raw(classes, &)
23
- else
24
- public_send(
25
- as,
26
- class: classes,
27
- onclick: safe("#{Phlex::Escape.html_escape(modal)}.showModal()"),
28
- **options,
29
- &
30
- )
31
- end
21
+ public_send(
22
+ as,
23
+ class: classes,
24
+ onclick: safe("#{Phlex::Escape.html_escape(modal)}.showModal()"),
25
+ **options,
26
+ &
27
+ )
32
28
  else
33
29
  public_send(as, class: classes, **options, &)
34
30
  end
@@ -3,14 +3,14 @@
3
3
  module PhlexyUI
4
4
  # @private
5
5
  class CollapsibleSubMenu < Base
6
- include Phlex::DeferredRender
7
-
8
6
  def initialize(*, **)
9
7
  super
10
8
  @items ||= []
11
9
  end
12
10
 
13
11
  def view_template(&)
12
+ yield(self) if block_given?
13
+
14
14
  attributes = generate_attributes(base_modifiers, options, ATTRIBUTES_MAP)
15
15
 
16
16
  generate_classes!(
@@ -9,7 +9,7 @@ module PhlexyUI
9
9
  base_modifiers:,
10
10
  options:
11
11
  ).then do |classes|
12
- li(class: classes, &)
12
+ li(class: classes, **options, &)
13
13
  end
14
14
  end
15
15
 
@@ -3,14 +3,14 @@
3
3
  module PhlexyUI
4
4
  # @private
5
5
  class SubMenu < Base
6
- include Phlex::DeferredRender
7
-
8
6
  def initialize(*, **)
9
7
  super
10
8
  @items ||= []
11
9
  end
12
10
 
13
11
  def view_template(&)
12
+ yield(self) if block_given?
13
+
14
14
  if @title
15
15
  div do
16
16
  render @title
data/lib/phlexy_ui/tab.rb CHANGED
@@ -3,14 +3,14 @@
3
3
  module PhlexyUI
4
4
  # @private
5
5
  class Tab < Base
6
- include Phlex::DeferredRender
7
-
8
6
  def initialize(*, id: nil, **)
9
7
  super(*, **)
10
8
  @id = id
11
9
  end
12
10
 
13
11
  def view_template(&)
12
+ yield(self) if block_given?
13
+
14
14
  if @content
15
15
  render TabWithContent.new(
16
16
  *base_modifiers,
@@ -3,5 +3,5 @@
3
3
  module PhlexyUI
4
4
  # This timestamp is automatically updated when releasing a new version
5
5
  # Format: YYYY-MM-DD HH:MM:SS UTC
6
- UPDATED_AT = "2024-11-26 14:26:54 UTC"
6
+ UPDATED_AT = "2025-03-30 20:42:03 UTC"
7
7
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PhlexyUI
4
- VERSION = "0.1.22"
4
+ VERSION = "0.2.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phlexy_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.22
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Alejandro Aguilar Ramos
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-11-26 00:00:00.000000000 Z
10
+ date: 2025-03-30 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: phlex
@@ -16,14 +15,14 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: '1.10'
18
+ version: 2.0.0.rc1
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - ">="
25
24
  - !ruby/object:Gem::Version
26
- version: '1.10'
25
+ version: 2.0.0.rc1
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: zeitwerk
29
28
  requirement: !ruby/object:Gem::Requirement
@@ -148,7 +147,6 @@ licenses:
148
147
  - MIT
149
148
  metadata:
150
149
  source_code_uri: https://github.com/PhlexyUI/phlexy_ui
151
- post_install_message:
152
150
  rdoc_options: []
153
151
  require_paths:
154
152
  - lib
@@ -163,8 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
161
  - !ruby/object:Gem::Version
164
162
  version: '0'
165
163
  requirements: []
166
- rubygems_version: 3.5.20
167
- signing_key:
164
+ rubygems_version: 3.6.3
168
165
  specification_version: 4
169
166
  summary: PhlexyUI is a Ruby UI component library for DaisyUI using Phlex
170
167
  test_files: []