plutonium 0.23.0 → 0.23.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.
@@ -1,5 +1 @@
1
- <%= render_component :breadcrumbs, resource_class:, parent: current_parent, resource: resource_record! %>
2
-
3
- <%= render_component :dyna_frame_content do %>
4
- <%= render "interactive_action_form", interactive_action: current_interactive_action %>
5
- <% end %>
1
+ <%= render current_definition.interactive_action_page_class.new %>
@@ -140,10 +140,9 @@
140
140
  end %>
141
141
  </div>
142
142
  <% end %>
143
+ <%= render "password_visibility" %>
143
144
  <% end %>
144
145
 
145
- <%= render "password_visibility" %>
146
-
147
146
  <%= form.submit rodauth.create_account_button,
148
147
  class:
149
148
  "w-full text-white bg-primary-600 hover:bg-primary-700 focus:ring-4 focus:outline-none focus:ring-primary-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-primary-600 dark:hover:bg-primary-700 dark:focus:ring-primary-800" %>
@@ -0,0 +1,8 @@
1
+ # Alias json to jsonb in SQLite migrations
2
+ ActiveSupport.on_load(:active_record) do
3
+ ActiveRecord::ConnectionAdapters::SQLite3::TableDefinition.class_eval do
4
+ def jsonb(*args, **options)
5
+ json(*args, **options)
6
+ end
7
+ end
8
+ end
@@ -21,7 +21,7 @@ module Plutonium
21
21
  valid_label: "text-green-700 dark:text-green-500",
22
22
  neutral_label: "text-gray-500 dark:text-gray-400",
23
23
  # input themes
24
- input: "w-full p-2 border rounded-md shadow-sm font-medium text-sm dark:bg-gray-700",
24
+ input: "w-full p-2 border rounded-md shadow-sm font-medium text-sm dark:bg-gray-700 focus:ring-2",
25
25
  invalid_input: "bg-red-50 border-red-500 dark:border-red-500 text-red-900 dark:text-red-500 placeholder-red-700 dark:placeholder-red-500 focus:ring-red-500 focus:border-red-500",
26
26
  valid_input: "bg-green-50 border-green-500 dark:border-green-500 text-green-900 dark:text-green-400 placeholder-green-700 dark:placeholder-green-500 focus:ring-green-500 focus:border-green-500",
27
27
  neutral_input: "border-gray-300 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white focus:ring-primary-500 focus:border-primary-500",
@@ -36,6 +36,7 @@ module Plutonium
36
36
  neutral_color: nil,
37
37
  # file
38
38
  # file: "w-full border rounded-md shadow-sm font-medium text-sm dark:bg-gray-700 focus:outline-none",
39
+ file: "w-full border rounded-md shadow-sm font-medium text-sm dark:bg-gray-700 border-gray-300 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white focus:ring-primary-500 focus:border-primary-500 focus:outline-none focus:ring-2 [&::file-selector-button]:mr-3 [&::file-selector-button]:px-4 [&::file-selector-button]:py-2 [&::file-selector-button]:bg-gray-50 [&::file-selector-button]:border-0 [&::file-selector-button]:rounded-l-md [&::file-selector-button]:text-sm [&::file-selector-button]:font-medium [&::file-selector-button]:text-gray-700 [&::file-selector-button]:hover:bg-gray-100 [&::file-selector-button]:cursor-pointer dark:[&::file-selector-button]:bg-gray-600 dark:[&::file-selector-button]:text-gray-200 dark:[&::file-selector-button]:hover:bg-gray-500",
39
40
  # hint themes
40
41
  hint: "mt-2 text-sm text-gray-500 dark:text-gray-200 whitespace-pre",
41
42
  # error themes
@@ -17,12 +17,8 @@ module Plutonium
17
17
  @content = content
18
18
  end
19
19
 
20
- def before_template
21
- vanish do
22
- @items.each do |item|
23
- render item
24
- end
25
- end
20
+ def before_template(&)
21
+ vanish(&)
26
22
  super
27
23
  end
28
24
 
@@ -1,5 +1,5 @@
1
1
  module Plutonium
2
- VERSION = "0.23.0"
2
+ VERSION = "0.23.1"
3
3
  NEXT_MAJOR_VERSION = VERSION.split(".").tap { |v|
4
4
  v[1] = v[1].to_i + 1
5
5
  v[2] = 0
data/src/css/core.css CHANGED
@@ -1,13 +1,16 @@
1
- @layer components {
2
- .pu-color-input::-webkit-color-swatch-wrapper {
3
- @apply p-0;
4
- }
1
+ /**
2
+ * Color Input Styles for Tailwind v4
3
+ * Converted from @layer components to work with v4
4
+ */
5
5
 
6
- .pu-color-input::-webkit-color-swatch {
7
- @apply border-none rounded-lg;
8
- }
6
+ .pu-color-input::-webkit-color-swatch-wrapper {
7
+ @apply p-0;
8
+ }
9
+
10
+ .pu-color-input::-webkit-color-swatch {
11
+ @apply border-none rounded-lg;
12
+ }
9
13
 
10
- .pu-color-input::-moz-color-swatch {
11
- @apply border-none rounded-lg;
12
- }
14
+ .pu-color-input::-moz-color-swatch {
15
+ @apply border-none rounded-lg;
13
16
  }