@tempots/beatui 0.13.0 → 0.15.0
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.
- package/README.md +167 -5
- package/dist/{ar-zUaskoUZ.js → ar-C__uXRig.js} +5 -3
- package/dist/ar-D9ef1rPL.js +38 -0
- package/dist/beatui.css +1 -1
- package/dist/{de-C0vbdZdj.js → de-CaqDmb7M.js} +3 -1
- package/dist/{de-C_Zm61s8.js → de-DvSVUCKi.js} +3 -1
- package/dist/{es-BALLrljC.js → es-D2MgpsFw.js} +6 -4
- package/dist/{es-Br-Gawkv.js → es-kZH0y7yE.js} +3 -1
- package/dist/{fa-4g9jzgMM.js → fa-7Lh__M6_.js} +3 -1
- package/dist/fa-CZ1jHeSI.js +38 -0
- package/dist/{fr-CzyXyFEo.js → fr-BFb9eub-.js} +3 -1
- package/dist/{fr-TsXahdgA.js → fr-Bi9Ce2bU.js} +6 -4
- package/dist/{he-CBxtA7rr.js → he-DCxEMw1h.js} +3 -1
- package/dist/he-iAAKM-JS.js +38 -0
- package/dist/hi-BMfFIHn-.js +38 -0
- package/dist/{hi-B6LQz-RO.js → hi-Bbnlpps9.js} +4 -2
- package/dist/index.es.js +3079 -2745
- package/dist/index.umd.js +27 -27
- package/dist/{it-CFHKs1al.js → it-CWTDpmhc.js} +3 -1
- package/dist/{it-CkmN7du_.js → it-RYZ8E-C6.js} +3 -1
- package/dist/{ja-C81oj42G.js → ja-4x5hNiAy.js} +6 -4
- package/dist/{ja-D6tNi1ze.js → ja-C1Nynl79.js} +3 -1
- package/dist/ko-BFy6uytC.js +38 -0
- package/dist/{ko-71CknADn.js → ko-BnQv3_8f.js} +3 -1
- package/dist/nl-BRZt7kSA.js +38 -0
- package/dist/{nl-CnSz3Cp_.js → nl-CH2009II.js} +3 -1
- package/dist/{pl-og-2JJLB.js → pl-Cd4dZDyG.js} +3 -1
- package/dist/pl-DKbc4KpN.js +38 -0
- package/dist/{pt-DtslyWAl.js → pt-Bful1nYu.js} +3 -1
- package/dist/{pt-M61qKkTf.js → pt-CZER9j0r.js} +3 -1
- package/dist/{ru-BIqAHQQ4.js → ru-9lG4xtda.js} +3 -1
- package/dist/{ru-CIn0tYwk.js → ru-CCEGJYwF.js} +3 -1
- package/dist/{tr-BXwpkxgd.js → tr-BVIGQcgy.js} +3 -1
- package/dist/tr-D3uQnNr4.js +38 -0
- package/dist/types/auth-i18n/default.d.ts +1 -0
- package/dist/types/auth-i18n/locales/ar.d.ts +29 -0
- package/dist/types/auth-i18n/locales/de.d.ts +1 -0
- package/dist/types/auth-i18n/locales/en.d.ts +1 -0
- package/dist/types/auth-i18n/locales/es.d.ts +1 -0
- package/dist/types/auth-i18n/locales/fa.d.ts +29 -0
- package/dist/types/auth-i18n/locales/fr.d.ts +1 -0
- package/dist/types/auth-i18n/locales/he.d.ts +29 -0
- package/dist/types/auth-i18n/locales/hi.d.ts +29 -0
- package/dist/types/auth-i18n/locales/it.d.ts +1 -0
- package/dist/types/auth-i18n/locales/ja.d.ts +1 -0
- package/dist/types/auth-i18n/locales/ko.d.ts +29 -0
- package/dist/types/auth-i18n/locales/nl.d.ts +29 -0
- package/dist/types/auth-i18n/locales/pl.d.ts +29 -0
- package/dist/types/auth-i18n/locales/pt.d.ts +1 -0
- package/dist/types/auth-i18n/locales/ru.d.ts +1 -0
- package/dist/types/auth-i18n/locales/tr.d.ts +29 -0
- package/dist/types/auth-i18n/locales/ur.d.ts +29 -0
- package/dist/types/auth-i18n/locales/vi.d.ts +29 -0
- package/dist/types/auth-i18n/locales/zh.d.ts +1 -0
- package/dist/types/auth-i18n/translations.d.ts +1 -0
- package/dist/types/beatui-i18n/default.d.ts +1 -0
- package/dist/types/beatui-i18n/locales/en.d.ts +1 -0
- package/dist/types/beatui-i18n/translations.d.ts +1 -0
- package/dist/types/components/auth/auth-container.d.ts +5 -6
- package/dist/types/components/auth/types.d.ts +1 -0
- package/dist/types/components/form/controller/color-controller.d.ts +75 -0
- package/dist/types/components/form/controller/index.d.ts +1 -0
- package/dist/types/components/form/input/color-input.d.ts +2 -0
- package/dist/types/components/form/input/index.d.ts +1 -0
- package/dist/types/components/form/input/input-options.d.ts +2 -1
- package/dist/types/components/navigation/index.d.ts +1 -0
- package/dist/types/components/navigation/tabs/index.d.ts +1 -0
- package/dist/types/components/navigation/tabs/tabs.d.ts +52 -0
- package/dist/types/utils/color-validation.d.ts +64 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/ur-BThJLsvD.js +38 -0
- package/dist/{ur-B7AcyGH1.js → ur-BVAP8WLA.js} +3 -1
- package/dist/vi-Cd6F8iSa.js +38 -0
- package/dist/{vi-CaJ4-itr.js → vi-Dv4aIcRH.js} +3 -1
- package/dist/{zh-cAmOB1FQ.js → zh-BcAbijvs.js} +3 -1
- package/dist/{zh-Cy7W0TAv.js → zh-Boy-i2zO.js} +3 -1
- package/package.json +3 -3
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const ur: {
|
|
2
|
+
signInTitle: () => string;
|
|
3
|
+
signInButton: () => string;
|
|
4
|
+
emailLabel: () => string;
|
|
5
|
+
passwordLabel: () => string;
|
|
6
|
+
rememberMeLabel: () => string;
|
|
7
|
+
forgotPasswordLink: () => string;
|
|
8
|
+
noAccountLink: () => string;
|
|
9
|
+
signUpTitle: () => string;
|
|
10
|
+
signUpButton: () => string;
|
|
11
|
+
nameLabel: () => string;
|
|
12
|
+
confirmPasswordLabel: () => string;
|
|
13
|
+
acceptTermsLabel: () => string;
|
|
14
|
+
hasAccountLink: () => string;
|
|
15
|
+
resetPasswordTitle: () => string;
|
|
16
|
+
resetPasswordButton: () => string;
|
|
17
|
+
resetPasswordDescription: () => string;
|
|
18
|
+
backToSignInLink: () => string;
|
|
19
|
+
continueWithProvider: (provider: string) => string;
|
|
20
|
+
passwordStrengthWeak: () => string;
|
|
21
|
+
passwordStrengthFair: () => string;
|
|
22
|
+
passwordStrengthGood: () => string;
|
|
23
|
+
passwordStrengthStrong: () => string;
|
|
24
|
+
orDivider: () => string;
|
|
25
|
+
error: () => string;
|
|
26
|
+
required: () => string;
|
|
27
|
+
authenticationTitle: () => string;
|
|
28
|
+
};
|
|
29
|
+
export default ur;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const vi: {
|
|
2
|
+
signInTitle: () => string;
|
|
3
|
+
signInButton: () => string;
|
|
4
|
+
emailLabel: () => string;
|
|
5
|
+
passwordLabel: () => string;
|
|
6
|
+
rememberMeLabel: () => string;
|
|
7
|
+
forgotPasswordLink: () => string;
|
|
8
|
+
noAccountLink: () => string;
|
|
9
|
+
signUpTitle: () => string;
|
|
10
|
+
signUpButton: () => string;
|
|
11
|
+
nameLabel: () => string;
|
|
12
|
+
confirmPasswordLabel: () => string;
|
|
13
|
+
acceptTermsLabel: () => string;
|
|
14
|
+
hasAccountLink: () => string;
|
|
15
|
+
resetPasswordTitle: () => string;
|
|
16
|
+
resetPasswordButton: () => string;
|
|
17
|
+
resetPasswordDescription: () => string;
|
|
18
|
+
backToSignInLink: () => string;
|
|
19
|
+
continueWithProvider: (provider: string) => string;
|
|
20
|
+
passwordStrengthWeak: () => string;
|
|
21
|
+
passwordStrengthFair: () => string;
|
|
22
|
+
passwordStrengthGood: () => string;
|
|
23
|
+
passwordStrengthStrong: () => string;
|
|
24
|
+
orDivider: () => string;
|
|
25
|
+
error: () => string;
|
|
26
|
+
required: () => string;
|
|
27
|
+
authenticationTitle: () => string;
|
|
28
|
+
};
|
|
29
|
+
export default vi;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { TNode
|
|
1
|
+
import { TNode } from '@tempots/dom';
|
|
2
2
|
import { AuthContainerOptions } from './index';
|
|
3
|
-
export declare function AuthContainer({ mode: initialMode,
|
|
4
|
-
export declare function AuthModal(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}): TNode;
|
|
3
|
+
export declare function AuthContainer({ mode: initialMode, socialProviders, passwordRules, showRememberMe, showSocialDivider, showPasswordStrength, labels, onSignIn, onSignUp, onResetPassword, onModeChange, showContainer, }: AuthContainerOptions, ...children: TNode[]): TNode;
|
|
4
|
+
export declare function AuthModal(fn: (open: (options: AuthContainerOptions & {
|
|
5
|
+
modalTitle?: () => string;
|
|
6
|
+
}) => void) => TNode): TNode;
|
|
@@ -79,6 +79,7 @@ export interface AuthContainerOptions {
|
|
|
79
79
|
showConfirmPassword?: boolean;
|
|
80
80
|
showAcceptTermsAndConditions?: boolean;
|
|
81
81
|
termsAndConditions?: TNode;
|
|
82
|
+
showContainer?: Value<boolean>;
|
|
82
83
|
}
|
|
83
84
|
export interface SocialProvidersOptions {
|
|
84
85
|
providers: AuthProviderInfo[];
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { Controller } from './controller';
|
|
2
|
+
import { Signal } from '@tempots/dom';
|
|
3
|
+
import { Path } from './path';
|
|
4
|
+
import { ControllerValidation } from './controller-validation';
|
|
5
|
+
/**
|
|
6
|
+
* Specialized controller for color values with validation and transformation utilities
|
|
7
|
+
*/
|
|
8
|
+
export declare class ColorController extends Controller<string> {
|
|
9
|
+
constructor(path: Path, change: (value: string) => void, value: Signal<string>, status: Signal<ControllerValidation>, parent: {
|
|
10
|
+
disabled: Signal<boolean>;
|
|
11
|
+
});
|
|
12
|
+
/**
|
|
13
|
+
* Validates that the current value is a valid color
|
|
14
|
+
*/
|
|
15
|
+
readonly isValidColor: import("@tempots/dom").Computed<boolean>;
|
|
16
|
+
/**
|
|
17
|
+
* Validates that the current value is a valid hex color
|
|
18
|
+
*/
|
|
19
|
+
readonly isValidHex: import("@tempots/dom").Computed<boolean>;
|
|
20
|
+
/**
|
|
21
|
+
* Gets the normalized hex color (always 6 characters with # prefix)
|
|
22
|
+
*/
|
|
23
|
+
readonly normalizedHex: import("@tempots/dom").Computed<string>;
|
|
24
|
+
/**
|
|
25
|
+
* Sets the color value with automatic normalization for hex colors
|
|
26
|
+
* @param color - The color value to set
|
|
27
|
+
*/
|
|
28
|
+
readonly setColor: (color: string) => void;
|
|
29
|
+
/**
|
|
30
|
+
* Sets a hex color value
|
|
31
|
+
* @param hex - The hex color value (with or without #)
|
|
32
|
+
*/
|
|
33
|
+
readonly setHex: (hex: string) => void;
|
|
34
|
+
/**
|
|
35
|
+
* Sets an RGB color value
|
|
36
|
+
* @param r - Red value (0-255)
|
|
37
|
+
* @param g - Green value (0-255)
|
|
38
|
+
* @param b - Blue value (0-255)
|
|
39
|
+
*/
|
|
40
|
+
readonly setRgb: (r: number, g: number, b: number) => void;
|
|
41
|
+
/**
|
|
42
|
+
* Gets RGB values from the current color
|
|
43
|
+
* @returns RGB values or null if not a valid hex color
|
|
44
|
+
*/
|
|
45
|
+
readonly getRgb: () => {
|
|
46
|
+
r: number;
|
|
47
|
+
g: number;
|
|
48
|
+
b: number;
|
|
49
|
+
} | null;
|
|
50
|
+
/**
|
|
51
|
+
* Creates a controller that transforms between different color formats
|
|
52
|
+
* @param format - The target color format ('hex', 'rgb', 'hsl')
|
|
53
|
+
* @returns A new controller with format transformation
|
|
54
|
+
*/
|
|
55
|
+
readonly withFormat: (format: "hex" | "rgb" | "hsl") => Controller<string>;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Creates a ColorController from a regular Controller<string>
|
|
59
|
+
* @param controller - The base string controller
|
|
60
|
+
* @returns A new ColorController with color-specific functionality
|
|
61
|
+
*/
|
|
62
|
+
export declare function createColorController(controller: Controller<string>): ColorController;
|
|
63
|
+
/**
|
|
64
|
+
* Helper function to create color input options from a ColorController
|
|
65
|
+
* @param controller - The ColorController instance
|
|
66
|
+
* @returns Input options compatible with ColorInput component
|
|
67
|
+
*/
|
|
68
|
+
export declare function colorInputOptionsFromController(controller: ColorController): {
|
|
69
|
+
id: string;
|
|
70
|
+
disabled: Signal<boolean>;
|
|
71
|
+
value: import("@tempots/dom").Computed<string>;
|
|
72
|
+
hasError: Signal<boolean>;
|
|
73
|
+
onChange: (color: string) => void;
|
|
74
|
+
onInput: (color: string) => void;
|
|
75
|
+
};
|
|
@@ -10,6 +10,7 @@ export type CommonInputOptions = {
|
|
|
10
10
|
name?: Value<string>;
|
|
11
11
|
placeholder?: Value<string>;
|
|
12
12
|
id?: Value<string>;
|
|
13
|
+
required?: Value<boolean>;
|
|
13
14
|
};
|
|
14
15
|
export type InputOptions<V> = Merge<CommonInputOptions, {
|
|
15
16
|
value: Value<V>;
|
|
@@ -19,7 +20,7 @@ export type InputOptions<V> = Merge<CommonInputOptions, {
|
|
|
19
20
|
onInput?: (value: V) => void;
|
|
20
21
|
onBlur?: () => void;
|
|
21
22
|
}>;
|
|
22
|
-
export declare const CommonInputAttributes: ({ autocomplete, autofocus, class: cls, disabled, name, placeholder, id, }: CommonInputOptions) => import("@tempots/dom").Renderable<import("@tempots/dom").DOMContext>;
|
|
23
|
+
export declare const CommonInputAttributes: ({ autocomplete, autofocus, class: cls, disabled, name, placeholder, id, required, hasError, }: CommonInputOptions) => import("@tempots/dom").Renderable<import("@tempots/dom").DOMContext>;
|
|
23
24
|
export declare const inputOptionsFromController: <T>(controller: Controller<T>) => {
|
|
24
25
|
id: string;
|
|
25
26
|
disabled: import("@tempots/dom").Signal<boolean>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './tabs';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { TNode, Value } from '@tempots/dom';
|
|
2
|
+
import { ControlSize } from '../../theme';
|
|
3
|
+
export interface TabItem {
|
|
4
|
+
/** Unique identifier for the tab */
|
|
5
|
+
key: string;
|
|
6
|
+
/** Tab label content */
|
|
7
|
+
label: TNode;
|
|
8
|
+
/** Tab content to display when active */
|
|
9
|
+
content: () => TNode;
|
|
10
|
+
/** Whether the tab is disabled */
|
|
11
|
+
disabled?: Value<boolean>;
|
|
12
|
+
/** ARIA label for accessibility */
|
|
13
|
+
ariaLabel?: Value<string>;
|
|
14
|
+
}
|
|
15
|
+
export type TabsDirection = 'horizontal' | 'vertical';
|
|
16
|
+
export interface TabsOptions {
|
|
17
|
+
/** Array of tab items */
|
|
18
|
+
items: TabItem[];
|
|
19
|
+
/** Currently active tab key */
|
|
20
|
+
value: Value<string>;
|
|
21
|
+
/** Callback when tab changes */
|
|
22
|
+
onChange?: (key: string) => void;
|
|
23
|
+
/** Size of the tabs */
|
|
24
|
+
size?: Value<ControlSize>;
|
|
25
|
+
/** Whether tabs are disabled */
|
|
26
|
+
disabled?: Value<boolean>;
|
|
27
|
+
/** Orientation of the tabs */
|
|
28
|
+
orientation?: Value<TabsDirection>;
|
|
29
|
+
/** Whether to show tab content */
|
|
30
|
+
showContent?: Value<boolean>;
|
|
31
|
+
/** ARIA label for the tab list */
|
|
32
|
+
ariaLabel?: Value<string>;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Tabs component that provides tabbed navigation with content panels.
|
|
36
|
+
* Follows WAI-ARIA tabs pattern with proper keyboard navigation and accessibility.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```typescript
|
|
40
|
+
* const activeTab = prop('tab1')
|
|
41
|
+
*
|
|
42
|
+
* Tabs({
|
|
43
|
+
* items: [
|
|
44
|
+
* { key: 'tab1', label: 'First Tab', content: html.div('Content 1') },
|
|
45
|
+
* { key: 'tab2', label: 'Second Tab', content: html.div('Content 2') },
|
|
46
|
+
* ],
|
|
47
|
+
* value: activeTab,
|
|
48
|
+
* onChange: activeTab.set
|
|
49
|
+
* })
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
export declare function Tabs(options: TabsOptions): TNode;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Color validation utilities for BeatUI color inputs
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Validates if a string is a valid hex color
|
|
6
|
+
* @param color - The color string to validate
|
|
7
|
+
* @returns true if valid hex color, false otherwise
|
|
8
|
+
*/
|
|
9
|
+
export declare function isValidHexColor(color: string): boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Validates if a string is a valid RGB color
|
|
12
|
+
* @param color - The color string to validate (e.g., "rgb(255, 0, 0)")
|
|
13
|
+
* @returns true if valid RGB color, false otherwise
|
|
14
|
+
*/
|
|
15
|
+
export declare function isValidRgbColor(color: string): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Validates if a string is a valid RGBA color
|
|
18
|
+
* @param color - The color string to validate (e.g., "rgba(255, 0, 0, 0.5)")
|
|
19
|
+
* @returns true if valid RGBA color, false otherwise
|
|
20
|
+
*/
|
|
21
|
+
export declare function isValidRgbaColor(color: string): boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Validates if a string is a valid HSL color
|
|
24
|
+
* @param color - The color string to validate (e.g., "hsl(120, 100%, 50%)")
|
|
25
|
+
* @returns true if valid HSL color, false otherwise
|
|
26
|
+
*/
|
|
27
|
+
export declare function isValidHslColor(color: string): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Validates if a string is any valid color format
|
|
30
|
+
* @param color - The color string to validate
|
|
31
|
+
* @returns true if valid color in any supported format, false otherwise
|
|
32
|
+
*/
|
|
33
|
+
export declare function isValidColor(color: string): boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Normalizes a hex color to always include the # prefix and be 6 characters
|
|
36
|
+
* @param color - The hex color to normalize
|
|
37
|
+
* @returns normalized hex color or null if invalid
|
|
38
|
+
*/
|
|
39
|
+
export declare function normalizeHexColor(color: string): string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Converts RGB values to hex color
|
|
42
|
+
* @param r - Red value (0-255)
|
|
43
|
+
* @param g - Green value (0-255)
|
|
44
|
+
* @param b - Blue value (0-255)
|
|
45
|
+
* @returns hex color string
|
|
46
|
+
*/
|
|
47
|
+
export declare function rgbToHex(r: number, g: number, b: number): string;
|
|
48
|
+
/**
|
|
49
|
+
* Converts hex color to RGB values
|
|
50
|
+
* @param hex - Hex color string (with or without #)
|
|
51
|
+
* @returns RGB values object or null if invalid
|
|
52
|
+
*/
|
|
53
|
+
export declare function hexToRgb(hex: string): {
|
|
54
|
+
r: number;
|
|
55
|
+
g: number;
|
|
56
|
+
b: number;
|
|
57
|
+
} | null;
|
|
58
|
+
/**
|
|
59
|
+
* Gets the contrast ratio between two colors
|
|
60
|
+
* @param color1 - First color (hex format)
|
|
61
|
+
* @param color2 - Second color (hex format)
|
|
62
|
+
* @returns contrast ratio or null if invalid colors
|
|
63
|
+
*/
|
|
64
|
+
export declare function getContrastRatio(color1: string, color2: string): number | null;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
const r = {
|
|
2
|
+
// Sign In
|
|
3
|
+
signInTitle: () => "سائن ان",
|
|
4
|
+
signInButton: () => "سائن ان",
|
|
5
|
+
emailLabel: () => "ای میل",
|
|
6
|
+
passwordLabel: () => "پاس ورڈ",
|
|
7
|
+
rememberMeLabel: () => "مجھے یاد رکھیں",
|
|
8
|
+
forgotPasswordLink: () => "پاس ورڈ بھول گئے؟",
|
|
9
|
+
noAccountLink: () => "اکاؤنٹ نہیں ہے؟ سائن اپ کریں",
|
|
10
|
+
// Sign Up
|
|
11
|
+
signUpTitle: () => "سائن اپ",
|
|
12
|
+
signUpButton: () => "سائن اپ",
|
|
13
|
+
nameLabel: () => "نام",
|
|
14
|
+
confirmPasswordLabel: () => "پاس ورڈ کی تصدیق کریں",
|
|
15
|
+
acceptTermsLabel: () => "میں شرائط و ضوابط کو قبول کرتا ہوں",
|
|
16
|
+
hasAccountLink: () => "پہلے سے اکاؤنٹ ہے؟ سائن ان کریں",
|
|
17
|
+
// Reset Password
|
|
18
|
+
resetPasswordTitle: () => "پاس ورڈ ری سیٹ کریں",
|
|
19
|
+
resetPasswordButton: () => "پاس ورڈ ری سیٹ کریں",
|
|
20
|
+
resetPasswordDescription: () => "اپنا پاس ورڈ ری سیٹ کرنے کے لیے اپنا ای میل درج کریں۔",
|
|
21
|
+
backToSignInLink: () => "سائن ان پر واپس جائیں",
|
|
22
|
+
// Social Login
|
|
23
|
+
continueWithProvider: (e) => `${e} کے ساتھ جاری رکھیں`,
|
|
24
|
+
// Password Strength
|
|
25
|
+
passwordStrengthWeak: () => "کمزور",
|
|
26
|
+
passwordStrengthFair: () => "ٹھیک",
|
|
27
|
+
passwordStrengthGood: () => "اچھا",
|
|
28
|
+
passwordStrengthStrong: () => "مضبوط",
|
|
29
|
+
// Common
|
|
30
|
+
orDivider: () => "یا",
|
|
31
|
+
error: () => "ایک خرابی ہوئی",
|
|
32
|
+
required: () => "ضروری",
|
|
33
|
+
// Modal
|
|
34
|
+
authenticationTitle: () => "تصدیق"
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
r as default
|
|
38
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
const t = {
|
|
2
|
+
// Sign In
|
|
3
|
+
signInTitle: () => "Đăng nhập",
|
|
4
|
+
signInButton: () => "Đăng nhập",
|
|
5
|
+
emailLabel: () => "Email",
|
|
6
|
+
passwordLabel: () => "Mật khẩu",
|
|
7
|
+
rememberMeLabel: () => "Ghi nhớ tôi",
|
|
8
|
+
forgotPasswordLink: () => "Quên mật khẩu?",
|
|
9
|
+
noAccountLink: () => "Chưa có tài khoản? Đăng ký",
|
|
10
|
+
// Sign Up
|
|
11
|
+
signUpTitle: () => "Đăng ký",
|
|
12
|
+
signUpButton: () => "Đăng ký",
|
|
13
|
+
nameLabel: () => "Tên",
|
|
14
|
+
confirmPasswordLabel: () => "Xác nhận mật khẩu",
|
|
15
|
+
acceptTermsLabel: () => "Tôi chấp nhận các điều khoản và điều kiện",
|
|
16
|
+
hasAccountLink: () => "Đã có tài khoản? Đăng nhập",
|
|
17
|
+
// Reset Password
|
|
18
|
+
resetPasswordTitle: () => "Đặt lại mật khẩu",
|
|
19
|
+
resetPasswordButton: () => "Đặt lại mật khẩu",
|
|
20
|
+
resetPasswordDescription: () => "Nhập email của bạn để đặt lại mật khẩu.",
|
|
21
|
+
backToSignInLink: () => "Quay lại đăng nhập",
|
|
22
|
+
// Social Login
|
|
23
|
+
continueWithProvider: (n) => `Tiếp tục với ${n}`,
|
|
24
|
+
// Password Strength
|
|
25
|
+
passwordStrengthWeak: () => "Yếu",
|
|
26
|
+
passwordStrengthFair: () => "Khá",
|
|
27
|
+
passwordStrengthGood: () => "Tốt",
|
|
28
|
+
passwordStrengthStrong: () => "Mạnh",
|
|
29
|
+
// Common
|
|
30
|
+
orDivider: () => "hoặc",
|
|
31
|
+
error: () => "Đã xảy ra lỗi",
|
|
32
|
+
required: () => "Bắt buộc",
|
|
33
|
+
// Modal
|
|
34
|
+
authenticationTitle: () => "Xác thực"
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
t as default
|
|
38
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tempots/beatui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.umd.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"registry": "https://registry.npmjs.org/"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@tempots/dom": "28.
|
|
57
|
+
"@tempots/dom": "28.4.5",
|
|
58
58
|
"@tempots/std": "0.22.1",
|
|
59
|
-
"@tempots/ui": "6.
|
|
59
|
+
"@tempots/ui": "6.4.1"
|
|
60
60
|
},
|
|
61
61
|
"peerDependenciesMeta": {
|
|
62
62
|
"@tempots/dom": {
|