@steveencues/starter-react-ui 1.0.1 → 1.0.2
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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +66 -55
- package/dist/index.js.map +1 -1
- package/dist/libs/aplicacion/utils/theme.utils.d.ts +1 -1
- package/dist/libs/domain/constants/index.d.ts +1 -0
- package/dist/libs/domain/constants/theme-font-weight.const.d.ts +16 -0
- package/dist/libs/domain/interface/index.d.ts +3 -1
- package/dist/libs/domain/interface/manifest/index.d.ts +1 -0
- package/dist/libs/domain/interface/manifest/theme-manifest.interface.d.ts +23 -0
- package/dist/libs/domain/interface/theme/accessibility/index.d.ts +1 -0
- package/dist/libs/domain/interface/theme/accessibility/theme-accessibility.interface.d.ts +15 -0
- package/dist/libs/domain/interface/theme/colors/index.d.ts +8 -0
- package/dist/libs/domain/interface/theme/colors/theme-border-colors.interface.d.ts +17 -0
- package/dist/libs/domain/interface/theme/colors/theme-brand-colors.interface.d.ts +24 -0
- package/dist/libs/domain/interface/theme/colors/theme-color-palette.interface.d.ts +30 -0
- package/dist/libs/domain/interface/theme/colors/theme-data-colors.interface.d.ts +15 -0
- package/dist/libs/domain/interface/theme/colors/theme-overlay-colors.interface.d.ts +13 -0
- package/dist/libs/domain/interface/theme/colors/theme-state-colors.interface.d.ts +23 -0
- package/dist/libs/domain/interface/theme/colors/theme-surface-colors.interface.d.ts +19 -0
- package/dist/libs/domain/interface/theme/colors/theme-text-colors.interface.d.ts +19 -0
- package/dist/libs/domain/interface/theme/components/index.d.ts +6 -0
- package/dist/libs/domain/interface/theme/components/theme-button.interface.d.ts +18 -0
- package/dist/libs/domain/interface/theme/components/theme-card.interface.d.ts +15 -0
- package/dist/libs/domain/interface/theme/components/theme-components.interface.d.ts +12 -0
- package/dist/libs/domain/interface/theme/components/theme-input.interface.d.ts +18 -0
- package/dist/libs/domain/interface/theme/components/theme-interactive-colors.interface.d.ts +16 -0
- package/dist/libs/domain/interface/theme/components/theme-modal.interface.d.ts +14 -0
- package/dist/libs/domain/interface/theme/core/app-theme.interface.d.ts +11 -0
- package/dist/libs/domain/interface/theme/core/index.d.ts +2 -0
- package/dist/libs/domain/interface/theme/core/theme.interface.d.ts +26 -0
- package/dist/libs/domain/interface/theme/effects/index.d.ts +7 -0
- package/dist/libs/domain/interface/theme/effects/theme-animation.interface.d.ts +17 -0
- package/dist/libs/domain/interface/theme/effects/theme-animations.interface.d.ts +20 -0
- package/dist/libs/domain/interface/theme/effects/theme-effects.interface.d.ts +22 -0
- package/dist/libs/domain/interface/theme/effects/theme-gradient-stop.interface.d.ts +11 -0
- package/dist/libs/domain/interface/theme/effects/theme-gradient.interface.d.ts +16 -0
- package/dist/libs/domain/interface/theme/effects/theme-gradients.interface.d.ts +17 -0
- package/dist/libs/domain/interface/theme/effects/theme-transitions.interface.d.ts +18 -0
- package/dist/libs/domain/interface/theme/index.d.ts +8 -0
- package/dist/libs/domain/interface/theme/layout/index.d.ts +8 -0
- package/dist/libs/domain/interface/theme/layout/theme-breakpoints.interface.d.ts +13 -0
- package/dist/libs/domain/interface/theme/layout/theme-dimensions.interface.d.ts +15 -0
- package/dist/libs/domain/interface/theme/layout/theme-layout.interface.d.ts +14 -0
- package/dist/libs/domain/interface/theme/layout/theme-radii.interface.d.ts +16 -0
- package/dist/libs/domain/interface/theme/layout/theme-shadow-colors.interface.d.ts +13 -0
- package/dist/libs/domain/interface/theme/layout/theme-shadows.interface.d.ts +16 -0
- package/dist/libs/domain/interface/theme/layout/theme-spacing.interface.d.ts +20 -0
- package/dist/libs/domain/interface/theme/layout/theme-z-index.interface.d.ts +16 -0
- package/dist/libs/domain/interface/theme/preferences/index.d.ts +5 -0
- package/dist/libs/domain/interface/theme/preferences/theme-context.interface.d.ts +12 -0
- package/dist/libs/domain/interface/theme/preferences/theme-preference-configuration.interface.d.ts +11 -0
- package/dist/libs/domain/interface/theme/preferences/theme-preference-result.interface.d.ts +11 -0
- package/dist/libs/domain/interface/theme/preferences/theme-preference-state.interface.d.ts +10 -0
- package/dist/libs/domain/interface/theme/preferences/theme-provider.interface.d.ts +13 -0
- package/dist/libs/domain/interface/theme/typography/index.d.ts +5 -0
- package/dist/libs/domain/interface/theme/typography/theme-font-family.interface.d.ts +13 -0
- package/dist/libs/domain/interface/theme/typography/theme-font-sizes.interface.d.ts +20 -0
- package/dist/libs/domain/interface/theme/typography/theme-font-weights.interface.d.ts +17 -0
- package/dist/libs/domain/interface/theme/typography/theme-text-style.interface.d.ts +18 -0
- package/dist/libs/domain/interface/theme/typography/theme-typography.interface.d.ts +37 -0
- package/dist/libs/domain/types/index.d.ts +1 -2
- package/dist/libs/domain/types/theme/index.d.ts +20 -0
- package/dist/libs/domain/types/theme/theme-animation.type.d.ts +18 -0
- package/dist/libs/domain/types/theme/theme-border.type.d.ts +7 -0
- package/dist/libs/domain/types/theme/theme-brand.type.d.ts +7 -0
- package/dist/libs/domain/types/theme/theme-category.type.d.ts +12 -0
- package/dist/libs/domain/types/theme/theme-color-scale.type.d.ts +6 -0
- package/dist/libs/domain/types/theme/theme-css.type.d.ts +15 -0
- package/dist/libs/domain/types/theme/theme-effect.type.d.ts +7 -0
- package/dist/libs/domain/types/theme/theme-font-weights.type.d.ts +7 -0
- package/dist/libs/domain/types/theme/theme-font.type.d.ts +19 -0
- package/dist/libs/domain/types/theme/theme-gradient.type.d.ts +12 -0
- package/dist/libs/domain/types/theme/theme-layout.type.d.ts +24 -0
- package/dist/libs/domain/types/theme/theme-name.types.d.ts +6 -0
- package/dist/libs/domain/types/theme/theme-preference.type.d.ts +8 -0
- package/dist/libs/domain/types/theme/theme-shadow.type.d.ts +7 -0
- package/dist/libs/domain/types/theme/theme-state.type.d.ts +7 -0
- package/dist/libs/domain/types/theme/theme-surface.type.d.ts +7 -0
- package/dist/libs/domain/types/theme/theme-text-style.type.d.ts +12 -0
- package/dist/libs/domain/types/theme/theme-text.type.d.ts +7 -0
- package/dist/libs/domain/types/theme/theme-typography.type.d.ts +7 -0
- package/dist/libs/domain/types/theme/theme-value.type.d.ts +12 -0
- package/package.json +2 -2
- package/dist/libs/domain/interface/theme.interface.d.ts +0 -204
- package/dist/libs/domain/types/theme-name.types.d.ts +0 -6
- package/dist/libs/domain/types/theme.types.d.ts +0 -64
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description Defines the available typography weights.
|
|
3
|
+
* @author Steveen Cues
|
|
4
|
+
* @version 2.0.0
|
|
5
|
+
*/
|
|
6
|
+
export declare const THEME_FONT_WEIGHT: {
|
|
7
|
+
readonly THIN: 100;
|
|
8
|
+
readonly EXTRA_LIGHT: 200;
|
|
9
|
+
readonly LIGHT: 300;
|
|
10
|
+
readonly REGULAR: 400;
|
|
11
|
+
readonly MEDIUM: 500;
|
|
12
|
+
readonly SEMI_BOLD: 600;
|
|
13
|
+
readonly BOLD: 700;
|
|
14
|
+
readonly EXTRA_BOLD: 800;
|
|
15
|
+
readonly BLACK: 900;
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './theme-manifest.interface';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ThemeCategory, ThemeColorScheme, ThemeName } from '../..';
|
|
2
|
+
/**
|
|
3
|
+
* @description Define las propiedades basicas de un manifiesto de tema.
|
|
4
|
+
* @author Steveen Cues
|
|
5
|
+
* @version 2.0.0
|
|
6
|
+
*/
|
|
7
|
+
export interface ThemeManifest {
|
|
8
|
+
readonly id: ThemeName;
|
|
9
|
+
readonly name: string;
|
|
10
|
+
readonly description: string;
|
|
11
|
+
readonly version: string;
|
|
12
|
+
readonly author: string;
|
|
13
|
+
readonly category: ThemeCategory;
|
|
14
|
+
readonly colorScheme: ThemeColorScheme;
|
|
15
|
+
readonly tags: readonly string[];
|
|
16
|
+
readonly preview?: string;
|
|
17
|
+
readonly homepage?: string;
|
|
18
|
+
readonly license?: string;
|
|
19
|
+
readonly minLibraryVersion?: string;
|
|
20
|
+
readonly supportedFeatures: readonly string[];
|
|
21
|
+
readonly isDefault: boolean;
|
|
22
|
+
readonly isExperimental: boolean;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './theme-accessibility.interface';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ThemeMotionPreference } from '../../..';
|
|
2
|
+
/**
|
|
3
|
+
* @description Define las propiedades de accesibilidad.
|
|
4
|
+
* @author Steveen Cues
|
|
5
|
+
* @version 2.0.0
|
|
6
|
+
*/
|
|
7
|
+
export interface ThemeAccessibility {
|
|
8
|
+
readonly reducedMotion: ThemeMotionPreference;
|
|
9
|
+
readonly highContrast: boolean;
|
|
10
|
+
readonly focusRingWidth: string;
|
|
11
|
+
readonly focusRingOffset: string;
|
|
12
|
+
readonly focusRingStyle: string;
|
|
13
|
+
readonly minimumTargetSize: string;
|
|
14
|
+
readonly enforceReadableText: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './theme-border-colors.interface';
|
|
2
|
+
export * from './theme-brand-colors.interface';
|
|
3
|
+
export * from './theme-color-palette.interface';
|
|
4
|
+
export * from './theme-data-colors.interface';
|
|
5
|
+
export * from './theme-overlay-colors.interface';
|
|
6
|
+
export * from './theme-state-colors.interface';
|
|
7
|
+
export * from './theme-surface-colors.interface';
|
|
8
|
+
export * from './theme-text-colors.interface';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description Define los colores de los bordes e indicadores.
|
|
3
|
+
* @author Steveen Cues
|
|
4
|
+
* @version 2.0.0
|
|
5
|
+
*/
|
|
6
|
+
export interface ThemeBorderColors {
|
|
7
|
+
readonly default: string;
|
|
8
|
+
readonly subtle: string;
|
|
9
|
+
readonly strong: string;
|
|
10
|
+
readonly focus: string;
|
|
11
|
+
readonly hover: string;
|
|
12
|
+
readonly active: string;
|
|
13
|
+
readonly disabled: string;
|
|
14
|
+
readonly divider: string;
|
|
15
|
+
readonly input: string;
|
|
16
|
+
readonly error: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description Define los colores de identidad visual.
|
|
3
|
+
* @author Steveen Cues
|
|
4
|
+
* @version 2.0.0
|
|
5
|
+
*/
|
|
6
|
+
export interface ThemeBrandColors {
|
|
7
|
+
readonly primary: string;
|
|
8
|
+
readonly primaryHover: string;
|
|
9
|
+
readonly primaryActive: string;
|
|
10
|
+
readonly primaryDisabled: string;
|
|
11
|
+
readonly primaryContrast: string;
|
|
12
|
+
readonly primarySubtle: string;
|
|
13
|
+
readonly primaryStrong: string;
|
|
14
|
+
readonly secondary: string;
|
|
15
|
+
readonly secondaryHover: string;
|
|
16
|
+
readonly secondaryActive: string;
|
|
17
|
+
readonly secondaryContrast: string;
|
|
18
|
+
readonly secondarySubtle: string;
|
|
19
|
+
readonly accent: string;
|
|
20
|
+
readonly accentHover: string;
|
|
21
|
+
readonly accentActive: string;
|
|
22
|
+
readonly accentContrast: string;
|
|
23
|
+
readonly accentSubtle: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ThemeColorScale } from '../../..';
|
|
2
|
+
/**
|
|
3
|
+
* @description Define una coleccion de escalas cromaticas.
|
|
4
|
+
* @author Steveen Cues
|
|
5
|
+
* @version 2.0.0
|
|
6
|
+
*/
|
|
7
|
+
export interface ThemeColorPalette {
|
|
8
|
+
readonly slate: ThemeColorScale;
|
|
9
|
+
readonly gray: ThemeColorScale;
|
|
10
|
+
readonly zinc: ThemeColorScale;
|
|
11
|
+
readonly neutral: ThemeColorScale;
|
|
12
|
+
readonly stone: ThemeColorScale;
|
|
13
|
+
readonly red: ThemeColorScale;
|
|
14
|
+
readonly orange: ThemeColorScale;
|
|
15
|
+
readonly amber: ThemeColorScale;
|
|
16
|
+
readonly yellow: ThemeColorScale;
|
|
17
|
+
readonly lime: ThemeColorScale;
|
|
18
|
+
readonly green: ThemeColorScale;
|
|
19
|
+
readonly emerald: ThemeColorScale;
|
|
20
|
+
readonly teal: ThemeColorScale;
|
|
21
|
+
readonly cyan: ThemeColorScale;
|
|
22
|
+
readonly sky: ThemeColorScale;
|
|
23
|
+
readonly blue: ThemeColorScale;
|
|
24
|
+
readonly indigo: ThemeColorScale;
|
|
25
|
+
readonly violet: ThemeColorScale;
|
|
26
|
+
readonly purple: ThemeColorScale;
|
|
27
|
+
readonly fuchsia: ThemeColorScale;
|
|
28
|
+
readonly pink: ThemeColorScale;
|
|
29
|
+
readonly rose: ThemeColorScale;
|
|
30
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description Define los colores utilizados en graficos y visualizacion de datos.
|
|
3
|
+
* @author Steveen Cues
|
|
4
|
+
* @version 2.0.0
|
|
5
|
+
*/
|
|
6
|
+
export interface ThemeDataColors {
|
|
7
|
+
readonly series: readonly string[];
|
|
8
|
+
readonly positive: string;
|
|
9
|
+
readonly negative: string;
|
|
10
|
+
readonly neutral: string;
|
|
11
|
+
readonly grid: string;
|
|
12
|
+
readonly axis: string;
|
|
13
|
+
readonly tooltipBackground: string;
|
|
14
|
+
readonly tooltipText: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description Define los colores utilizados en superposiciones.
|
|
3
|
+
* @author Steveen Cues
|
|
4
|
+
* @version 2.0.0
|
|
5
|
+
*/
|
|
6
|
+
export interface ThemeOverlayColors {
|
|
7
|
+
readonly scrim: string;
|
|
8
|
+
readonly modal: string;
|
|
9
|
+
readonly dropdown: string;
|
|
10
|
+
readonly tooltip: string;
|
|
11
|
+
readonly navigation: string;
|
|
12
|
+
readonly backdrop: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description Define los colores de los estados semanticos.
|
|
3
|
+
* @author Steveen Cues
|
|
4
|
+
* @version 2.0.0
|
|
5
|
+
*/
|
|
6
|
+
export interface ThemeStateColors {
|
|
7
|
+
readonly success: string;
|
|
8
|
+
readonly successBackground: string;
|
|
9
|
+
readonly successBorder: string;
|
|
10
|
+
readonly successText: string;
|
|
11
|
+
readonly warning: string;
|
|
12
|
+
readonly warningBackground: string;
|
|
13
|
+
readonly warningBorder: string;
|
|
14
|
+
readonly warningText: string;
|
|
15
|
+
readonly error: string;
|
|
16
|
+
readonly errorBackground: string;
|
|
17
|
+
readonly errorBorder: string;
|
|
18
|
+
readonly errorText: string;
|
|
19
|
+
readonly info: string;
|
|
20
|
+
readonly infoBackground: string;
|
|
21
|
+
readonly infoBorder: string;
|
|
22
|
+
readonly infoText: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description Define los colores de las superficies.
|
|
3
|
+
* @author Steveen Cues
|
|
4
|
+
* @version 2.0.0
|
|
5
|
+
*/
|
|
6
|
+
export interface ThemeSurfaceColors {
|
|
7
|
+
readonly background: string;
|
|
8
|
+
readonly backgroundSecondary: string;
|
|
9
|
+
readonly backgroundTertiary: string;
|
|
10
|
+
readonly surface: string;
|
|
11
|
+
readonly surfaceSecondary: string;
|
|
12
|
+
readonly surfaceElevated: string;
|
|
13
|
+
readonly surfaceHover: string;
|
|
14
|
+
readonly surfaceActive: string;
|
|
15
|
+
readonly surfaceDisabled: string;
|
|
16
|
+
readonly surfaceInverse: string;
|
|
17
|
+
readonly surfaceOverlay: string;
|
|
18
|
+
readonly surfaceTransparent: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description Define los colores del contenido textual.
|
|
3
|
+
* @author Steveen Cues
|
|
4
|
+
* @version 2.0.0
|
|
5
|
+
*/
|
|
6
|
+
export interface ThemeTextColors {
|
|
7
|
+
readonly primary: string;
|
|
8
|
+
readonly secondary: string;
|
|
9
|
+
readonly muted: string;
|
|
10
|
+
readonly disabled: string;
|
|
11
|
+
readonly inverse: string;
|
|
12
|
+
readonly link: string;
|
|
13
|
+
readonly linkHover: string;
|
|
14
|
+
readonly selection: string;
|
|
15
|
+
readonly placeholder: string;
|
|
16
|
+
readonly onPrimary: string;
|
|
17
|
+
readonly onSecondary: string;
|
|
18
|
+
readonly onAccent: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './theme-button.interface';
|
|
2
|
+
export * from './theme-card.interface';
|
|
3
|
+
export * from './theme-components.interface';
|
|
4
|
+
export * from './theme-input.interface';
|
|
5
|
+
export * from './theme-interactive-colors.interface';
|
|
6
|
+
export * from './theme-modal.interface';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ThemeFontWeight, ThemeInteractiveColors } from '../../..';
|
|
2
|
+
/**
|
|
3
|
+
* @description Define los tokens de un boton.
|
|
4
|
+
* @author Steveen Cues
|
|
5
|
+
* @version 2.0.0
|
|
6
|
+
*/
|
|
7
|
+
export interface ThemeButton {
|
|
8
|
+
readonly primary: ThemeInteractiveColors;
|
|
9
|
+
readonly secondary: ThemeInteractiveColors;
|
|
10
|
+
readonly outline: ThemeInteractiveColors;
|
|
11
|
+
readonly ghost: ThemeInteractiveColors;
|
|
12
|
+
readonly danger: ThemeInteractiveColors;
|
|
13
|
+
readonly radius: string;
|
|
14
|
+
readonly fontWeight: ThemeFontWeight;
|
|
15
|
+
readonly height: string;
|
|
16
|
+
readonly paddingInline: string;
|
|
17
|
+
readonly transition: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description Define los tokens de una tarjeta.
|
|
3
|
+
* @author Steveen Cues
|
|
4
|
+
* @version 2.0.0
|
|
5
|
+
*/
|
|
6
|
+
export interface ThemeCard {
|
|
7
|
+
readonly background: string;
|
|
8
|
+
readonly foreground: string;
|
|
9
|
+
readonly border: string;
|
|
10
|
+
readonly radius: string;
|
|
11
|
+
readonly shadow: string;
|
|
12
|
+
readonly padding: string;
|
|
13
|
+
readonly hoverTransform: string;
|
|
14
|
+
readonly transition: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ThemeButton, ThemeCard, ThemeInput, ThemeModal } from '../../..';
|
|
2
|
+
/**
|
|
3
|
+
* @description Define las propiedades visuales de los componentes.
|
|
4
|
+
* @author Steveen Cues
|
|
5
|
+
* @version 2.0.0
|
|
6
|
+
*/
|
|
7
|
+
export interface ThemeComponents {
|
|
8
|
+
readonly button: ThemeButton;
|
|
9
|
+
readonly input: ThemeInput;
|
|
10
|
+
readonly card: ThemeCard;
|
|
11
|
+
readonly modal: ThemeModal;
|
|
12
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description Define los tokens de un campo de entrada.
|
|
3
|
+
* @author Steveen Cues
|
|
4
|
+
* @version 2.0.0
|
|
5
|
+
*/
|
|
6
|
+
export interface ThemeInput {
|
|
7
|
+
readonly background: string;
|
|
8
|
+
readonly foreground: string;
|
|
9
|
+
readonly placeholder: string;
|
|
10
|
+
readonly border: string;
|
|
11
|
+
readonly borderHover: string;
|
|
12
|
+
readonly borderFocus: string;
|
|
13
|
+
readonly borderError: string;
|
|
14
|
+
readonly radius: string;
|
|
15
|
+
readonly height: string;
|
|
16
|
+
readonly paddingInline: string;
|
|
17
|
+
readonly shadowFocus: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description Define los colores de los componentes interactivos.
|
|
3
|
+
* @author Steveen Cues
|
|
4
|
+
* @version 2.0.0
|
|
5
|
+
*/
|
|
6
|
+
export interface ThemeInteractiveColors {
|
|
7
|
+
readonly background: string;
|
|
8
|
+
readonly backgroundHover: string;
|
|
9
|
+
readonly backgroundActive: string;
|
|
10
|
+
readonly backgroundDisabled: string;
|
|
11
|
+
readonly foreground: string;
|
|
12
|
+
readonly foregroundHover: string;
|
|
13
|
+
readonly border: string;
|
|
14
|
+
readonly borderHover: string;
|
|
15
|
+
readonly borderFocus: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description Define los tokens de un modal.
|
|
3
|
+
* @author Steveen Cues
|
|
4
|
+
* @version 2.0.0
|
|
5
|
+
*/
|
|
6
|
+
export interface ThemeModal {
|
|
7
|
+
readonly background: string;
|
|
8
|
+
readonly foreground: string;
|
|
9
|
+
readonly border: string;
|
|
10
|
+
readonly radius: string;
|
|
11
|
+
readonly shadow: string;
|
|
12
|
+
readonly backdrop: string;
|
|
13
|
+
readonly maxWidth: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Theme, ThemeManifest, ThemeName } from '../../..';
|
|
2
|
+
/**
|
|
3
|
+
* @description Define una configuracion visual completa de un tema.
|
|
4
|
+
* @author Steveen Cues
|
|
5
|
+
* @version 2.0.0
|
|
6
|
+
*/
|
|
7
|
+
export interface AppTheme {
|
|
8
|
+
readonly manifest: ThemeManifest;
|
|
9
|
+
readonly name: ThemeName;
|
|
10
|
+
readonly themes: Theme;
|
|
11
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ThemeBrandColors, ThemeBorderColors, ThemeColorPalette, ThemeDataColors, ThemeOverlayColors, ThemeStateColors, ThemeSurfaceColors, ThemeTextColors, ThemeAccessibility, ThemeComponents, ThemeAnimations, ThemeEffects, ThemeGradients, ThemeTransitions, ThemeLayout, ThemeShadowColors, ThemeShadows, ThemeTypography } from '../../..';
|
|
2
|
+
/**
|
|
3
|
+
* @description Define la configuracion completa de tokens visuales.
|
|
4
|
+
* @author Steveen Cues
|
|
5
|
+
* @version 2.0.0
|
|
6
|
+
*/
|
|
7
|
+
export interface Theme {
|
|
8
|
+
readonly palette: ThemeColorPalette;
|
|
9
|
+
readonly surface: ThemeSurfaceColors;
|
|
10
|
+
readonly text: ThemeTextColors;
|
|
11
|
+
readonly brand: ThemeBrandColors;
|
|
12
|
+
readonly state: ThemeStateColors;
|
|
13
|
+
readonly border: ThemeBorderColors;
|
|
14
|
+
readonly overlay: ThemeOverlayColors;
|
|
15
|
+
readonly data: ThemeDataColors;
|
|
16
|
+
readonly typography: ThemeTypography;
|
|
17
|
+
readonly gradients: ThemeGradients;
|
|
18
|
+
readonly shadows: ThemeShadows;
|
|
19
|
+
readonly shadowColors: ThemeShadowColors;
|
|
20
|
+
readonly effects: ThemeEffects;
|
|
21
|
+
readonly transitions: ThemeTransitions;
|
|
22
|
+
readonly animations: ThemeAnimations;
|
|
23
|
+
readonly layout: ThemeLayout;
|
|
24
|
+
readonly components: ThemeComponents;
|
|
25
|
+
readonly accessibility: ThemeAccessibility;
|
|
26
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './theme-animation.interface';
|
|
2
|
+
export * from './theme-animations.interface';
|
|
3
|
+
export * from './theme-effects.interface';
|
|
4
|
+
export * from './theme-gradient-stop.interface';
|
|
5
|
+
export * from './theme-gradient.interface';
|
|
6
|
+
export * from './theme-gradients.interface';
|
|
7
|
+
export * from './theme-transitions.interface';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ThemeDuration, ThemeEasing } from '../../..';
|
|
2
|
+
/**
|
|
3
|
+
* @description Define la configuracion de una animacion.
|
|
4
|
+
* @author Steveen Cues
|
|
5
|
+
* @version 2.0.0
|
|
6
|
+
*/
|
|
7
|
+
export interface ThemeAnimation {
|
|
8
|
+
readonly name: string;
|
|
9
|
+
readonly duration: ThemeDuration;
|
|
10
|
+
readonly delay: ThemeDuration;
|
|
11
|
+
readonly easing: ThemeEasing;
|
|
12
|
+
readonly iterationCount: number | "infinite";
|
|
13
|
+
readonly direction: "normal" | "reverse" | "alternate" | "alternate-reverse";
|
|
14
|
+
readonly fillMode: "none" | "forwards" | "backwards" | "both";
|
|
15
|
+
readonly playState: "running" | "paused";
|
|
16
|
+
readonly reducedMotionAlternative?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ThemeAnimation } from '../../..';
|
|
2
|
+
/**
|
|
3
|
+
* @description Define las animaciones disponibles.
|
|
4
|
+
* @author Steveen Cues
|
|
5
|
+
* @version 2.0.0
|
|
6
|
+
*/
|
|
7
|
+
export interface ThemeAnimations {
|
|
8
|
+
readonly fadeIn: ThemeAnimation;
|
|
9
|
+
readonly fadeOut: ThemeAnimation;
|
|
10
|
+
readonly slideIn: ThemeAnimation;
|
|
11
|
+
readonly slideOut: ThemeAnimation;
|
|
12
|
+
readonly scaleIn: ThemeAnimation;
|
|
13
|
+
readonly scaleOut: ThemeAnimation;
|
|
14
|
+
readonly pulse: ThemeAnimation;
|
|
15
|
+
readonly shimmer: ThemeAnimation;
|
|
16
|
+
readonly gradient: ThemeAnimation;
|
|
17
|
+
readonly glow: ThemeAnimation;
|
|
18
|
+
readonly float: ThemeAnimation;
|
|
19
|
+
readonly spin: ThemeAnimation;
|
|
20
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ThemeOpacity } from '../../..';
|
|
2
|
+
/**
|
|
3
|
+
* @description Define los efectos visuales del tema.
|
|
4
|
+
* @author Steveen Cues
|
|
5
|
+
* @version 2.0.0
|
|
6
|
+
*/
|
|
7
|
+
export interface ThemeEffects {
|
|
8
|
+
readonly overlay: string;
|
|
9
|
+
readonly backdrop: string;
|
|
10
|
+
readonly blur: string;
|
|
11
|
+
readonly blurStrong: string;
|
|
12
|
+
readonly glassBackground: string;
|
|
13
|
+
readonly glassBorder: string;
|
|
14
|
+
readonly glassShadow: string;
|
|
15
|
+
readonly opacityDisabled: ThemeOpacity;
|
|
16
|
+
readonly opacityHover: ThemeOpacity;
|
|
17
|
+
readonly opacityOverlay: ThemeOpacity;
|
|
18
|
+
readonly saturation: string;
|
|
19
|
+
readonly contrast: string;
|
|
20
|
+
readonly brightness: string;
|
|
21
|
+
readonly grayscale: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ThemeOpacity } from '../../..';
|
|
2
|
+
/**
|
|
3
|
+
* @description Define una parada de color de un gradiente.
|
|
4
|
+
* @author Steveen Cues
|
|
5
|
+
* @version 2.0.0
|
|
6
|
+
*/
|
|
7
|
+
export interface ThemeGradientStop {
|
|
8
|
+
readonly color: string;
|
|
9
|
+
readonly position?: string;
|
|
10
|
+
readonly opacity?: ThemeOpacity;
|
|
11
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ThemeDuration, ThemeGradientDirection, ThemeGradientStop, ThemeGradientType } from '../../..';
|
|
2
|
+
/**
|
|
3
|
+
* @description Define un gradiente reutilizable.
|
|
4
|
+
* @author Steveen Cues
|
|
5
|
+
* @version 2.0.0
|
|
6
|
+
*/
|
|
7
|
+
export interface ThemeGradient {
|
|
8
|
+
readonly type: ThemeGradientType;
|
|
9
|
+
readonly direction?: ThemeGradientDirection;
|
|
10
|
+
readonly angle?: string;
|
|
11
|
+
readonly stops: readonly ThemeGradientStop[];
|
|
12
|
+
readonly css: string;
|
|
13
|
+
readonly animated: boolean;
|
|
14
|
+
readonly animationName?: string;
|
|
15
|
+
readonly animationDuration?: ThemeDuration;
|
|
16
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ThemeGradient } from '../../..';
|
|
2
|
+
/**
|
|
3
|
+
* @description Define los gradientes disponibles del tema.
|
|
4
|
+
* @author Steveen Cues
|
|
5
|
+
* @version 2.0.0
|
|
6
|
+
*/
|
|
7
|
+
export interface ThemeGradients {
|
|
8
|
+
readonly primary: ThemeGradient;
|
|
9
|
+
readonly secondary: ThemeGradient;
|
|
10
|
+
readonly accent: ThemeGradient;
|
|
11
|
+
readonly background: ThemeGradient;
|
|
12
|
+
readonly surface: ThemeGradient;
|
|
13
|
+
readonly sunset: ThemeGradient;
|
|
14
|
+
readonly ocean: ThemeGradient;
|
|
15
|
+
readonly aurora: ThemeGradient;
|
|
16
|
+
readonly rainbow: ThemeGradient;
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description Define las duraciones y curvas de las transiciones.
|
|
3
|
+
* @author Steveen Cues
|
|
4
|
+
* @version 2.0.0
|
|
5
|
+
*/
|
|
6
|
+
export interface ThemeTransitions {
|
|
7
|
+
readonly instant: string;
|
|
8
|
+
readonly fast: string;
|
|
9
|
+
readonly normal: string;
|
|
10
|
+
readonly slow: string;
|
|
11
|
+
readonly easing: {
|
|
12
|
+
readonly standard: string;
|
|
13
|
+
readonly emphasized: string;
|
|
14
|
+
readonly decelerate: string;
|
|
15
|
+
readonly accelerate: string;
|
|
16
|
+
readonly spring: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './theme-breakpoints.interface';
|
|
2
|
+
export * from './theme-dimensions.interface';
|
|
3
|
+
export * from './theme-layout.interface';
|
|
4
|
+
export * from './theme-radii.interface';
|
|
5
|
+
export * from './theme-shadow-colors.interface';
|
|
6
|
+
export * from './theme-shadows.interface';
|
|
7
|
+
export * from './theme-spacing.interface';
|
|
8
|
+
export * from './theme-z-index.interface';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description Define los puntos de parada para el diseno adaptable.
|
|
3
|
+
* @author Steveen Cues
|
|
4
|
+
* @version 2.0.0
|
|
5
|
+
*/
|
|
6
|
+
export interface ThemeBreakpoints {
|
|
7
|
+
readonly xs: string;
|
|
8
|
+
readonly sm: string;
|
|
9
|
+
readonly md: string;
|
|
10
|
+
readonly lg: string;
|
|
11
|
+
readonly xl: string;
|
|
12
|
+
readonly "2xl": string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description Define las dimensiones principales del diseno.
|
|
3
|
+
* @author Steveen Cues
|
|
4
|
+
* @version 2.0.0
|
|
5
|
+
*/
|
|
6
|
+
export interface ThemeDimensions {
|
|
7
|
+
readonly headerHeight: string;
|
|
8
|
+
readonly sidebarWidth: string;
|
|
9
|
+
readonly sidebarCollapsedWidth: string;
|
|
10
|
+
readonly contentMaxWidth: string;
|
|
11
|
+
readonly modalMaxWidth: string;
|
|
12
|
+
readonly inputHeight: string;
|
|
13
|
+
readonly buttonHeight: string;
|
|
14
|
+
readonly iconSize: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ThemeDensity, ThemeBreakpoints, ThemeDimensions, ThemeRadii, ThemeSpacing, ThemeZIndex } from '../../..';
|
|
2
|
+
/**
|
|
3
|
+
* @description Define la configuracion de layout del tema.
|
|
4
|
+
* @author Steveen Cues
|
|
5
|
+
* @version 2.0.0
|
|
6
|
+
*/
|
|
7
|
+
export interface ThemeLayout {
|
|
8
|
+
readonly density: ThemeDensity;
|
|
9
|
+
readonly spacing: ThemeSpacing;
|
|
10
|
+
readonly radii: ThemeRadii;
|
|
11
|
+
readonly breakpoints: ThemeBreakpoints;
|
|
12
|
+
readonly dimensions: ThemeDimensions;
|
|
13
|
+
readonly zIndex: ThemeZIndex;
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description Define los radios de borde.
|
|
3
|
+
* @author Steveen Cues
|
|
4
|
+
* @version 2.0.0
|
|
5
|
+
*/
|
|
6
|
+
export interface ThemeRadii {
|
|
7
|
+
readonly none: string;
|
|
8
|
+
readonly xs: string;
|
|
9
|
+
readonly sm: string;
|
|
10
|
+
readonly md: string;
|
|
11
|
+
readonly lg: string;
|
|
12
|
+
readonly xl: string;
|
|
13
|
+
readonly "2xl": string;
|
|
14
|
+
readonly "3xl": string;
|
|
15
|
+
readonly full: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description Define la configuracion de sombras del tema.
|
|
3
|
+
* @author Steveen Cues
|
|
4
|
+
* @version 2.0.0
|
|
5
|
+
*/
|
|
6
|
+
export interface ThemeShadowColors {
|
|
7
|
+
readonly color: string;
|
|
8
|
+
readonly subtle: string;
|
|
9
|
+
readonly small: string;
|
|
10
|
+
readonly medium: string;
|
|
11
|
+
readonly large: string;
|
|
12
|
+
readonly glow: string;
|
|
13
|
+
}
|