adata-ui 2.1.41-beta.17 → 2.1.41-beta.18

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.
@@ -41,7 +41,7 @@ const VIEW_CLASS: Record<Color, Record<View, string>> = {
41
41
  solid: 'bg-action-primary text-action-primary-fg hover:bg-action-primary-hover active:bg-action-primary-active',
42
42
  gradient: 'bg-linear-to-r from-brand-500 to-brand-400 text-inverted hover:brightness-105',
43
43
  outline: 'border border-brand bg-action-secondary text-brand hover:bg-brand-subtle active:bg-blue-subtle',
44
- ghost: 'text-action-secondary-fg hover:bg-action-secondary-hover active:bg-badge',
44
+ ghost: 'text-brand hover:bg-brand-subtle active:bg-blue-subtle',
45
45
  soft: 'bg-brand-subtle text-brand hover:bg-blue-subtle active:bg-brand-200/70 dark:active:bg-brand-500/25',
46
46
  },
47
47
  green: {
package/lang/en.ts CHANGED
@@ -480,6 +480,7 @@ const EnLocale: RuLocale = {
480
480
  password_requirements: {
481
481
  minLength: 'At least {length} characters',
482
482
  uppercase: 'Uppercase letter',
483
+ lowercase: 'Lowercase letter',
483
484
  digit: 'Digit',
484
485
  special: 'Special character',
485
486
  },
@@ -639,6 +640,7 @@ const EnLocale: RuLocale = {
639
640
  passwordRequirements: 'must contain (an uppercase letter, a number, and a special character)',
640
641
  sameAs: 'Passwords do not match',
641
642
  uppercase: 'The password must contain an uppercase letter',
643
+ lowercase: 'The password must contain a lowercase letter',
642
644
  digit: 'The password must contain a digit',
643
645
  special: 'The password must contain a special character',
644
646
  },
package/lang/kk.ts CHANGED
@@ -481,6 +481,7 @@ const KkLocale: RuLocale = {
481
481
  password_requirements: {
482
482
  minLength: 'Кемінде {length} таңба',
483
483
  uppercase: 'Бас әріп',
484
+ lowercase: 'Кіші әріп',
484
485
  digit: 'Сан',
485
486
  special: 'Арнайы таңба',
486
487
  },
@@ -640,6 +641,7 @@ const KkLocale: RuLocale = {
640
641
  passwordRequirements: '(бас әріп, сан және арнайы таңба) қамтуы тиіс',
641
642
  sameAs: 'Құпия сөздер сәйкес емес',
642
643
  uppercase: 'Құпия сөзде бас әріп болуы керек',
644
+ lowercase: 'Құпия сөзде кіші әріп болуы керек',
643
645
  digit: 'Құпия сөзде сан болуы керек',
644
646
  special: 'Құпия сөзде арнайы таңба болуы керек',
645
647
  },
package/lang/ru.ts CHANGED
@@ -480,6 +480,7 @@ const RuLocale = {
480
480
  password_requirements: {
481
481
  minLength: 'Не менее {length} символов',
482
482
  uppercase: 'Заглавная буква',
483
+ lowercase: 'Строчная буква',
483
484
  digit: 'Цифра',
484
485
  special: 'Специальный символ',
485
486
  },
@@ -640,6 +641,7 @@ const RuLocale = {
640
641
  passwordRequirements: 'содержать (заглавную букву, цифру и специальный символ)',
641
642
  sameAs: 'Пароли не совпадают',
642
643
  uppercase: 'Пароль должен содержать заглавную букву',
644
+ lowercase: 'Пароль должен содержать строчную букву',
643
645
  digit: 'Пароль должен содержать цифру',
644
646
  special: 'Пароль должен содержать специальный символ',
645
647
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "adata-ui",
3
3
  "type": "module",
4
- "version": "2.1.41-beta.17",
4
+ "version": "2.1.41-beta.18",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",
@@ -5,7 +5,7 @@
5
5
  * `forms.password_requirements.<key>` и `error.password.<key>`.
6
6
  */
7
7
  export interface PasswordRule {
8
- key: 'minLength' | 'uppercase' | 'digit' | 'special'
8
+ key: 'minLength' | 'uppercase' | 'lowercase' | 'digit' | 'special'
9
9
  test: (password: string) => boolean
10
10
  }
11
11
 
@@ -14,6 +14,7 @@ export const PASSWORD_MIN_LENGTH = 8
14
14
  export const PASSWORD_RULES: readonly PasswordRule[] = [
15
15
  { key: 'minLength', test: password => password.length >= PASSWORD_MIN_LENGTH },
16
16
  { key: 'uppercase', test: password => /[A-Z]/.test(password) },
17
+ { key: 'lowercase', test: password => /[a-z]/.test(password) },
17
18
  { key: 'digit', test: password => /\d/.test(password) },
18
19
  { key: 'special', test: password => /[^\dA-Z]/i.test(password) },
19
20
  ]