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 +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/stimulus_password_strength/configuration.rb +3 -3
- data/lib/stimulus_password_strength/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8eb8fff2974f0d1592af56c22934ea06428cda3cba5893338656745f62d70492
|
|
4
|
+
data.tar.gz: 674058bb56631a421faf85b5a227fc34be63ecb555e72659ab51a776e5178e2a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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: #
|
|
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"
|