pg_rails 7.0.8.pre.alpha.91 → 7.0.8.pre.alpha.92

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0add80789e228fa1d0540ec0cd76fa458a6bce695d171813b43047608a930980
4
- data.tar.gz: 114d7d400e5f6d5f42a99454e365f6bd9cffe5d190d982be1d1aff66957ce646
3
+ metadata.gz: a1d03457f0e56b9231502b27a4c8574f87122439c35eb39628fa2e24b50940ba
4
+ data.tar.gz: f8e64ab521583640302b4fe5ae31306fa68434d7ad74a397767b35e48a4995ab
5
5
  SHA512:
6
- metadata.gz: 6e5bad46380cec016f7a567a6ccef77f16ca32c364b1f09f0fb753c03afc6d4bc0d42b8823ded44f46c5300c487b33e7863724e8b7775c51efbf26862517a8ad
7
- data.tar.gz: 632abbaea6dbed4429648148125c65985a99a2648b1f97dd971d089794363bbd522000d170d2eae07bc5d6f023027d31748dd3bdeee359a076d7efa96055cfe0
6
+ metadata.gz: 1a075b979d181e36c0297f46896cdedb424b50d31c56b6bb2d340a8c9110f4f55e6dc0c19425011e1434838b83cdd5f3d1ef9f6790b35259a4bf86b9cf7db23c
7
+ data.tar.gz: 3c031aff35b7afe32b21e1516b006848e2c736bc07691996f66eea3d47b7542f1e39bd2610d2222d58737a442918b965e1f68dbae562e97ef60f2d765ae90516
@@ -28,7 +28,6 @@ module PgEngine
28
28
  protected
29
29
 
30
30
  def mail(*args)
31
- @footer_href = root_url(m: @email_object&.hashid)
32
31
  super(*args).tap do |message|
33
32
  # message.mailgun_options = {
34
33
  # 'tag' => email.tags,
@@ -0,0 +1,3 @@
1
+ - %w[danger warning info success].each do |status|
2
+ h1 class="text-#{status}" = status
3
+ h1 class="text-#{status}-emphasis" = "#{status} emphasis"
@@ -5,4 +5,6 @@ class AlertComponentPreview < ViewComponent::Preview
5
5
  def default; end
6
6
 
7
7
  def dismisible; end
8
+
9
+ def colours; end
8
10
  end
@@ -2,8 +2,8 @@ html
2
2
  body style="font-family: sans-serif"
3
3
  = yield
4
4
 
5
- footer style="margin-top: 2em;"
6
- - if @footer_href.present?
5
+ - if @footer_href.present?
6
+ footer style="margin-top: 2em;"
7
7
  = link_to @footer_href, rel: 'noreferrer', target: :_blank do
8
8
  - if @footer_image_src.present?
9
9
  = image_tag @footer_image_src, alt: @footer_image_alt
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PgRails
4
- VERSION = '7.0.8-alpha.91'
4
+ VERSION = '7.0.8-alpha.92'
5
5
  end
@@ -9,5 +9,3 @@ $warning-border-subtle: tint-color($warning, 20%);
9
9
  // $danger-border-subtle: tint-color($danger, 60%);
10
10
 
11
11
  $btn-close-focus-shadow: none;
12
-
13
- $body-bg: $light;
@@ -1,9 +1,25 @@
1
- $red: #a70101;
2
- $yellow: #f4a815;
3
- $font-size-base: 0.9rem;
1
+ // Default bootstrap colours
2
+ $blue: #0d6efd !default;
3
+ $indigo: #6610f2 !default;
4
+ $purple: #6f42c1 !default;
5
+ $pink: #d63384 !default;
6
+ $red: #dc3545 !default;
7
+ $orange: #fd7e14 !default;
8
+ $yellow: #ffc107 !default;
9
+ $green: #198754 !default;
10
+ $teal: #20c997 !default;
11
+ $cyan: #0dcaf0 !default;
12
+
13
+ // Overriding some of the default colours
14
+ $orange: #e35b17;
15
+ $red: #a70101;
4
16
 
5
- $enable-validation-icons: false;
6
- $focus-ring-width: .05rem;
17
+ $warning: $orange;
18
+ $info: #87accc;
19
+
20
+ $font-size-base: 0.9rem;
21
+ $enable-validation-icons: false;
22
+ $focus-ring-width: .05rem;
7
23
  $alert-padding-y: 0.5rem;
8
24
  $alert-margin-bottom: 0.5rem;
9
25
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.8.pre.alpha.91
4
+ version: 7.0.8.pre.alpha.92
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martín Rosso
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-06 00:00:00.000000000 Z
11
+ date: 2024-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -1096,6 +1096,7 @@ files:
1096
1096
  - pg_engine/spec/components/alert_component_spec.rb
1097
1097
  - pg_engine/spec/components/internal_error_component_spec.rb
1098
1098
  - pg_engine/spec/components/previews/alert_component_preview.rb
1099
+ - pg_engine/spec/components/previews/alert_component_preview/colours.html.slim
1099
1100
  - pg_engine/spec/components/previews/alert_component_preview/default.html.slim
1100
1101
  - pg_engine/spec/components/previews/alert_component_preview/dismisible.html.slim
1101
1102
  - pg_engine/spec/components/previews/internal_error_preview.rb
@@ -1278,11 +1279,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
1278
1279
  version: '3.0'
1279
1280
  required_rubygems_version: !ruby/object:Gem::Requirement
1280
1281
  requirements:
1281
- - - ">"
1282
+ - - ">="
1282
1283
  - !ruby/object:Gem::Version
1283
- version: 1.3.1
1284
+ version: '0'
1284
1285
  requirements: []
1285
- rubygems_version: 3.3.22
1286
+ rubygems_version: 3.5.11
1286
1287
  signing_key:
1287
1288
  specification_version: 4
1288
1289
  summary: Rails goodies