stimulus-password-strength 0.1.4 → 0.1.6

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: 680420b026742db8f17192cf372b51fa045aa79a23551709f11eed0875ce2f61
4
- data.tar.gz: 451f9156e8c9c49ea463161cfd0b7a8f00b6e21387e15f2b50300dbaee0dfc2c
3
+ metadata.gz: 8eb8fff2974f0d1592af56c22934ea06428cda3cba5893338656745f62d70492
4
+ data.tar.gz: 674058bb56631a421faf85b5a227fc34be63ecb555e72659ab51a776e5178e2a
5
5
  SHA512:
6
- metadata.gz: dfed9354d3578d4b0588081883fc37c66f003556379f1e13af8290b9248fd61d169364c1b59eae8d8d64dfb6e8f1caf16aa86866eb662fb8ecbb40b0b53f2ceb
7
- data.tar.gz: ca2d4ca534ad631e78bb5deed5a996c9b8f8d82b7ab45f76e3419eb816bdf7c8525a73035b9a43167d05a4e374fe37414dfd7b7e964a6a191cc40cd3e7929233
6
+ metadata.gz: 8955c89b723f03cd4be13805b7e061f2cf24d88711abb69546f1586b2e6e162b8e8ee61279c990b93a240e5d7c39629ebd3e1137edbe8fbba316c790ce082c0b
7
+ data.tar.gz: dc643f160942db34b00db8ea4f89af98579993e0c1ec9a029eb56dd9128e270716d3fee9da59e35bffbfbd06739e86f1aec8fe448bbede5283b53cb789612dc0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.6
4
+
5
+ - darkened the default password strength track so the bar rail stays visible against light host-app backgrounds
6
+
7
+ ## 0.1.5
8
+
9
+ - swapped the default order of the password strength label and bar so the label stays right-aligned in the status rail
10
+ - updated the default status-row layout to use the new order without requiring host-app overrides
11
+ - expanded rendering tests to cover the new default status-row class and style contract
12
+
3
13
  ## 0.1.4
4
14
 
5
15
  - fixed a rendering bug where the password strength bar could stay visually hidden even though the label updated
@@ -34,8 +34,8 @@ module StimulusPasswordStrength
34
34
  @label_class = "block text-sm font-medium text-gray-700"
35
35
  @header_aux_class = "flex justify-end"
36
36
  @header_aux_style = "display: flex; justify-content: flex-end; align-items: center;"
37
- @status_row_class = "flex min-h-5 items-center gap-2"
38
- @status_row_style = "display: flex; align-items: center; gap: 0.5rem; min-height: 1rem;"
37
+ @status_row_class = "flex min-h-5 flex-row-reverse items-center justify-start gap-2"
38
+ @status_row_style = "display: flex; flex-direction: row-reverse; align-items: center; justify-content: flex-start; gap: 0.5rem; min-height: 1rem;"
39
39
  @requirements_class = "flex justify-end gap-2"
40
40
  @requirements_style = "display: flex; justify-content: flex-end; align-items: center; gap: 0.5rem; min-height: 1rem;"
41
41
  @requirement_class = "text-xs text-right leading-tight"
@@ -43,7 +43,7 @@ module StimulusPasswordStrength
43
43
  @input_class = "w-full rounded-xl border border-gray-300 px-4 py-3 pr-16 shadow-sm focus:border-blue-500 focus:ring-2 focus:ring-blue-200"
44
44
  @toggle_class = "absolute right-3 top-1/2 -translate-y-1/2 cursor-pointer text-xs font-medium text-gray-500 hover:text-gray-700"
45
45
  @bar_track_class = "h-1.5 w-20 overflow-hidden rounded-full bg-gray-100"
46
- @bar_track_style = "height: 0.375rem; width: 5rem; overflow: hidden; border-radius: 9999px; background-color: #f3f4f6; visibility: hidden; flex-shrink: 0;"
46
+ @bar_track_style = "height: 0.375rem; width: 5rem; overflow: hidden; border-radius: 9999px; background-color: #e5e7eb; visibility: hidden; flex-shrink: 0;"
47
47
  @bar_base_class = "h-full rounded-full transition-all duration-300"
48
48
  @bar_style = "display: block; height: 100%; border-radius: 9999px; visibility: hidden; transition: width 300ms ease, background-color 300ms ease;"
49
49
  @text_base_class = "text-xs"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module StimulusPasswordStrength
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.6"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stimulus-password-strength
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justyna Wojtczak