@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.
Files changed (87) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.js +66 -55
  4. package/dist/index.js.map +1 -1
  5. package/dist/libs/aplicacion/utils/theme.utils.d.ts +1 -1
  6. package/dist/libs/domain/constants/index.d.ts +1 -0
  7. package/dist/libs/domain/constants/theme-font-weight.const.d.ts +16 -0
  8. package/dist/libs/domain/interface/index.d.ts +3 -1
  9. package/dist/libs/domain/interface/manifest/index.d.ts +1 -0
  10. package/dist/libs/domain/interface/manifest/theme-manifest.interface.d.ts +23 -0
  11. package/dist/libs/domain/interface/theme/accessibility/index.d.ts +1 -0
  12. package/dist/libs/domain/interface/theme/accessibility/theme-accessibility.interface.d.ts +15 -0
  13. package/dist/libs/domain/interface/theme/colors/index.d.ts +8 -0
  14. package/dist/libs/domain/interface/theme/colors/theme-border-colors.interface.d.ts +17 -0
  15. package/dist/libs/domain/interface/theme/colors/theme-brand-colors.interface.d.ts +24 -0
  16. package/dist/libs/domain/interface/theme/colors/theme-color-palette.interface.d.ts +30 -0
  17. package/dist/libs/domain/interface/theme/colors/theme-data-colors.interface.d.ts +15 -0
  18. package/dist/libs/domain/interface/theme/colors/theme-overlay-colors.interface.d.ts +13 -0
  19. package/dist/libs/domain/interface/theme/colors/theme-state-colors.interface.d.ts +23 -0
  20. package/dist/libs/domain/interface/theme/colors/theme-surface-colors.interface.d.ts +19 -0
  21. package/dist/libs/domain/interface/theme/colors/theme-text-colors.interface.d.ts +19 -0
  22. package/dist/libs/domain/interface/theme/components/index.d.ts +6 -0
  23. package/dist/libs/domain/interface/theme/components/theme-button.interface.d.ts +18 -0
  24. package/dist/libs/domain/interface/theme/components/theme-card.interface.d.ts +15 -0
  25. package/dist/libs/domain/interface/theme/components/theme-components.interface.d.ts +12 -0
  26. package/dist/libs/domain/interface/theme/components/theme-input.interface.d.ts +18 -0
  27. package/dist/libs/domain/interface/theme/components/theme-interactive-colors.interface.d.ts +16 -0
  28. package/dist/libs/domain/interface/theme/components/theme-modal.interface.d.ts +14 -0
  29. package/dist/libs/domain/interface/theme/core/app-theme.interface.d.ts +11 -0
  30. package/dist/libs/domain/interface/theme/core/index.d.ts +2 -0
  31. package/dist/libs/domain/interface/theme/core/theme.interface.d.ts +26 -0
  32. package/dist/libs/domain/interface/theme/effects/index.d.ts +7 -0
  33. package/dist/libs/domain/interface/theme/effects/theme-animation.interface.d.ts +17 -0
  34. package/dist/libs/domain/interface/theme/effects/theme-animations.interface.d.ts +20 -0
  35. package/dist/libs/domain/interface/theme/effects/theme-effects.interface.d.ts +22 -0
  36. package/dist/libs/domain/interface/theme/effects/theme-gradient-stop.interface.d.ts +11 -0
  37. package/dist/libs/domain/interface/theme/effects/theme-gradient.interface.d.ts +16 -0
  38. package/dist/libs/domain/interface/theme/effects/theme-gradients.interface.d.ts +17 -0
  39. package/dist/libs/domain/interface/theme/effects/theme-transitions.interface.d.ts +18 -0
  40. package/dist/libs/domain/interface/theme/index.d.ts +8 -0
  41. package/dist/libs/domain/interface/theme/layout/index.d.ts +8 -0
  42. package/dist/libs/domain/interface/theme/layout/theme-breakpoints.interface.d.ts +13 -0
  43. package/dist/libs/domain/interface/theme/layout/theme-dimensions.interface.d.ts +15 -0
  44. package/dist/libs/domain/interface/theme/layout/theme-layout.interface.d.ts +14 -0
  45. package/dist/libs/domain/interface/theme/layout/theme-radii.interface.d.ts +16 -0
  46. package/dist/libs/domain/interface/theme/layout/theme-shadow-colors.interface.d.ts +13 -0
  47. package/dist/libs/domain/interface/theme/layout/theme-shadows.interface.d.ts +16 -0
  48. package/dist/libs/domain/interface/theme/layout/theme-spacing.interface.d.ts +20 -0
  49. package/dist/libs/domain/interface/theme/layout/theme-z-index.interface.d.ts +16 -0
  50. package/dist/libs/domain/interface/theme/preferences/index.d.ts +5 -0
  51. package/dist/libs/domain/interface/theme/preferences/theme-context.interface.d.ts +12 -0
  52. package/dist/libs/domain/interface/theme/preferences/theme-preference-configuration.interface.d.ts +11 -0
  53. package/dist/libs/domain/interface/theme/preferences/theme-preference-result.interface.d.ts +11 -0
  54. package/dist/libs/domain/interface/theme/preferences/theme-preference-state.interface.d.ts +10 -0
  55. package/dist/libs/domain/interface/theme/preferences/theme-provider.interface.d.ts +13 -0
  56. package/dist/libs/domain/interface/theme/typography/index.d.ts +5 -0
  57. package/dist/libs/domain/interface/theme/typography/theme-font-family.interface.d.ts +13 -0
  58. package/dist/libs/domain/interface/theme/typography/theme-font-sizes.interface.d.ts +20 -0
  59. package/dist/libs/domain/interface/theme/typography/theme-font-weights.interface.d.ts +17 -0
  60. package/dist/libs/domain/interface/theme/typography/theme-text-style.interface.d.ts +18 -0
  61. package/dist/libs/domain/interface/theme/typography/theme-typography.interface.d.ts +37 -0
  62. package/dist/libs/domain/types/index.d.ts +1 -2
  63. package/dist/libs/domain/types/theme/index.d.ts +20 -0
  64. package/dist/libs/domain/types/theme/theme-animation.type.d.ts +18 -0
  65. package/dist/libs/domain/types/theme/theme-border.type.d.ts +7 -0
  66. package/dist/libs/domain/types/theme/theme-brand.type.d.ts +7 -0
  67. package/dist/libs/domain/types/theme/theme-category.type.d.ts +12 -0
  68. package/dist/libs/domain/types/theme/theme-color-scale.type.d.ts +6 -0
  69. package/dist/libs/domain/types/theme/theme-css.type.d.ts +15 -0
  70. package/dist/libs/domain/types/theme/theme-effect.type.d.ts +7 -0
  71. package/dist/libs/domain/types/theme/theme-font-weights.type.d.ts +7 -0
  72. package/dist/libs/domain/types/theme/theme-font.type.d.ts +19 -0
  73. package/dist/libs/domain/types/theme/theme-gradient.type.d.ts +12 -0
  74. package/dist/libs/domain/types/theme/theme-layout.type.d.ts +24 -0
  75. package/dist/libs/domain/types/theme/theme-name.types.d.ts +6 -0
  76. package/dist/libs/domain/types/theme/theme-preference.type.d.ts +8 -0
  77. package/dist/libs/domain/types/theme/theme-shadow.type.d.ts +7 -0
  78. package/dist/libs/domain/types/theme/theme-state.type.d.ts +7 -0
  79. package/dist/libs/domain/types/theme/theme-surface.type.d.ts +7 -0
  80. package/dist/libs/domain/types/theme/theme-text-style.type.d.ts +12 -0
  81. package/dist/libs/domain/types/theme/theme-text.type.d.ts +7 -0
  82. package/dist/libs/domain/types/theme/theme-typography.type.d.ts +7 -0
  83. package/dist/libs/domain/types/theme/theme-value.type.d.ts +12 -0
  84. package/package.json +2 -2
  85. package/dist/libs/domain/interface/theme.interface.d.ts +0 -204
  86. package/dist/libs/domain/types/theme-name.types.d.ts +0 -6
  87. package/dist/libs/domain/types/theme.types.d.ts +0 -64
@@ -1,204 +0,0 @@
1
- import { ThemeName } from '..';
2
- import { ReactNode } from 'react';
3
- /**
4
- * @description Contrato publico del contexto de temas.
5
- * @author Steveen Cues
6
- * @version 1.0.0
7
- */
8
- export interface IThemeContextValue {
9
- readonly theme: AppTheme;
10
- readonly themeName: ThemeName;
11
- readonly themes: readonly AppTheme[];
12
- readonly setTheme: (theme: ThemeName) => void;
13
- }
14
- /**
15
- * @description Propiedades del proveedor de temas.
16
- * @author Steveen Cues
17
- * @version 1.0.0
18
- */
19
- export interface IThemeProviderProps {
20
- readonly themes: readonly AppTheme[];
21
- readonly initialTheme: ThemeName;
22
- readonly themeEncryptionKey: string;
23
- readonly children: ReactNode;
24
- }
25
- /**
26
- * @description Colores del contenido textual.
27
- * @author Steveen Cues
28
- * @version 1.0.0
29
- */
30
- export interface ThemeTextColors {
31
- readonly primary: string;
32
- readonly secondary: string;
33
- readonly muted: string;
34
- readonly disabled: string;
35
- readonly inverse: string;
36
- readonly link: string;
37
- readonly linkHover: string;
38
- }
39
- /**
40
- * @description Colores utilizados por las superficies.
41
- * @author Steveen Cues
42
- * @version 1.0.0
43
- */
44
- export interface ThemeSurfaceColors {
45
- readonly background: string;
46
- readonly surface: string;
47
- readonly surfaceElevated: string;
48
- readonly surfaceHover: string;
49
- readonly surfaceActive: string;
50
- readonly surfaceDisabled: string;
51
- }
52
- /**
53
- * @description Colores de los estados semanticos.
54
- * @author Steveen Cues
55
- * @version 1.0.0
56
- */
57
- export interface ThemeStateColors {
58
- readonly success: string;
59
- readonly successBackground: string;
60
- readonly warning: string;
61
- readonly warningBackground: string;
62
- readonly error: string;
63
- readonly errorBackground: string;
64
- readonly info: string;
65
- readonly infoBackground: string;
66
- }
67
- /**
68
- * @description Colores de identidad visual de la aplicacion.
69
- * @author Steveen Cues
70
- * @version 1.0.0
71
- */
72
- export interface ThemeBrandColors {
73
- readonly primary: string;
74
- readonly primaryHover: string;
75
- readonly primaryActive: string;
76
- readonly primaryContrast: string;
77
- readonly secondary: string;
78
- readonly secondaryHover: string;
79
- readonly secondaryActive: string;
80
- readonly secondaryContrast: string;
81
- readonly accent: string;
82
- readonly accentHover: string;
83
- readonly accentContrast: string;
84
- }
85
- /**
86
- * @description Colores para bordes e indicadores de interaccion.
87
- * @author Steveen Cues
88
- * @version 1.0.0
89
- */
90
- export interface ThemeBorderColors {
91
- readonly default: string;
92
- readonly subtle: string;
93
- readonly strong: string;
94
- readonly focus: string;
95
- readonly hover: string;
96
- readonly active: string;
97
- readonly disabled: string;
98
- }
99
- /**
100
- * @description Configuracion de las sombras.
101
- * @author Steveen Cues
102
- * @version 1.0.0
103
- */
104
- export interface ThemeShadowColors {
105
- readonly color: string;
106
- readonly subtle: string;
107
- readonly small: string;
108
- readonly medium: string;
109
- readonly large: string;
110
- readonly glow: string;
111
- }
112
- /**
113
- * @description Configuracion de efectos visuales.
114
- * @author Steveen Cues
115
- * @version 1.0.0
116
- */
117
- export interface ThemeEffects {
118
- readonly overlay: string;
119
- readonly backdrop: string;
120
- readonly blur: string;
121
- readonly blurStrong: string;
122
- readonly glassBackground: string;
123
- readonly glassBorder: string;
124
- }
125
- /**
126
- * @description Configuracion tipografica del tema.
127
- * Sus valores pueden representar colores o tokens CSS.
128
- * @author Steveen Cues
129
- * @version 1.0.0
130
- */
131
- export interface ThemeTypography {
132
- readonly heading: {
133
- readonly primary: string;
134
- readonly secondary: string;
135
- readonly muted: string;
136
- };
137
- readonly body: {
138
- readonly primary: string;
139
- readonly secondary: string;
140
- readonly muted: string;
141
- };
142
- readonly label: {
143
- readonly primary: string;
144
- readonly secondary: string;
145
- readonly muted: string;
146
- };
147
- readonly button: {
148
- readonly primary: string;
149
- readonly secondary: string;
150
- };
151
- }
152
- /**
153
- * @description Paleta completa de tokens visuales del tema.
154
- * @author Steveen Cues
155
- * @version 1.0.0
156
- */
157
- export interface ThemeColors {
158
- readonly surface: ThemeSurfaceColors;
159
- readonly text: ThemeTextColors;
160
- readonly brand: ThemeBrandColors;
161
- readonly state: ThemeStateColors;
162
- readonly border: ThemeBorderColors;
163
- readonly shadow: ThemeShadowColors;
164
- readonly effects: ThemeEffects;
165
- readonly typography: ThemeTypography;
166
- }
167
- /**
168
- * @description Configuracion visual completa de un tema.
169
- * @author Steveen Cues
170
- * @version 1.0.0
171
- */
172
- export interface AppTheme {
173
- readonly name: ThemeName;
174
- readonly colors: ThemeColors;
175
- }
176
- /**
177
- * @description Defines the configuration required to manage theme preferences.
178
- * @author Steveen Cues
179
- * @version 1.0.0
180
- */
181
- export interface ThemePreferenceConfiguration {
182
- readonly themes: IThemeProviderProps["themes"];
183
- readonly initialTheme: IThemeProviderProps["initialTheme"];
184
- readonly themeEncryptionKey: IThemeProviderProps["themeEncryptionKey"];
185
- }
186
- /**
187
- * @description Represents the current theme preference state and its configuration.
188
- * @author Steveen Cues
189
- * @version 1.0.0
190
- */
191
- export interface ThemePreferenceState extends ThemePreferenceConfiguration {
192
- readonly themeName: ThemeName;
193
- readonly isLoaded: boolean;
194
- }
195
- /**
196
- * @description Defines the result returned by the theme preference hook.
197
- * @author Steveen Cues
198
- * @version 1.0.0
199
- */
200
- export interface ThemePreferenceResult {
201
- readonly themeName: ThemeName;
202
- readonly isPreferenceLoaded: boolean;
203
- readonly setThemeName: (nextTheme: ThemeName) => void;
204
- }
@@ -1,6 +0,0 @@
1
- /**
2
- * @description Identificadores de los temas disponibles.
3
- * @author Steveen Cues
4
- * @version 1.0.0
5
- */
6
- export type ThemeName = "light" | "dark" | "magenta" | "semi-dark";
@@ -1,64 +0,0 @@
1
- import { ThemePreferenceState } from '..';
2
- import { CSSProperties, Dispatch, SetStateAction } from 'react';
3
- /**
4
- * @description Defines custom CSS variables supported by the library.
5
- * @author Steveen Cues
6
- * @version 1.0.0
7
- */
8
- export type ThemeCssVariables = CSSProperties & {
9
- [property: `--rui-${string}`]: string;
10
- };
11
- /**
12
- * @description Defines CSS variables for surface colors.
13
- * @author Steveen Cues
14
- * @version 1.0.0
15
- */
16
- export type SurfaceVariables = Pick<ThemeCssVariables, "--rui-surface-background" | "--rui-surface-surface" | "--rui-surface-surface-elevated" | "--rui-surface-surface-hover" | "--rui-surface-surface-active" | "--rui-surface-surface-disabled">;
17
- /**
18
- * @description Defines CSS variables for text colors.
19
- * @author Steveen Cues
20
- * @version 1.0.0
21
- */
22
- export type TextVariables = Pick<ThemeCssVariables, "--rui-text-primary" | "--rui-text-secondary" | "--rui-text-muted" | "--rui-text-disabled" | "--rui-text-inverse" | "--rui-text-link" | "--rui-text-link-hover">;
23
- /**
24
- * @description Defines CSS variables for brand colors.
25
- * @author Steveen Cues
26
- * @version 1.0.0
27
- */
28
- export type BrandVariables = Pick<ThemeCssVariables, "--rui-brand-primary" | "--rui-brand-primary-hover" | "--rui-brand-primary-active" | "--rui-brand-primary-contrast" | "--rui-brand-secondary" | "--rui-brand-secondary-hover" | "--rui-brand-secondary-active" | "--rui-brand-secondary-contrast" | "--rui-brand-accent" | "--rui-brand-accent-hover" | "--rui-brand-accent-contrast">;
29
- /**
30
- * @description Defines CSS variables for status colors.
31
- * @author Steveen Cues
32
- * @version 1.0.0
33
- */
34
- export type StateVariables = Pick<ThemeCssVariables, "--rui-state-success" | "--rui-state-success-background" | "--rui-state-warning" | "--rui-state-warning-background" | "--rui-state-error" | "--rui-state-error-background" | "--rui-state-info" | "--rui-state-info-background">;
35
- /**
36
- * @description Defines CSS variables for border styles and colors.
37
- * @author Steveen Cues
38
- * @version 1.0.0
39
- */
40
- export type BorderVariables = Pick<ThemeCssVariables, "--rui-border-default" | "--rui-border-subtle" | "--rui-border-strong" | "--rui-border-focus" | "--rui-border-hover" | "--rui-border-active" | "--rui-border-disabled">;
41
- /**
42
- * @description Defines CSS variables for shadows.
43
- * @author Steveen Cues
44
- * @version 1.0.0
45
- */
46
- export type ShadowVariables = Pick<ThemeCssVariables, "--rui-shadow-color" | "--rui-shadow-subtle" | "--rui-shadow-small" | "--rui-shadow-medium" | "--rui-shadow-large" | "--rui-shadow-glow">;
47
- /**
48
- * @description Defines CSS variables for visual effects.
49
- * @author Steveen Cues
50
- * @version 1.0.0
51
- */
52
- export type EffectVariables = Pick<ThemeCssVariables, "--rui-effects-overlay" | "--rui-effects-backdrop" | "--rui-effects-blur" | "--rui-effects-blur-strong" | "--rui-effects-glass-background" | "--rui-effects-glass-border">;
53
- /**
54
- * @description Defines CSS variables for typography colors.
55
- * @author Steveen Cues
56
- * @version 1.0.0
57
- */
58
- export type TypographyVariables = Pick<ThemeCssVariables, "--rui-typography-heading-primary" | "--rui-typography-heading-secondary" | "--rui-typography-heading-muted" | "--rui-typography-body-primary" | "--rui-typography-body-secondary" | "--rui-typography-body-muted" | "--rui-typography-label-primary" | "--rui-typography-label-secondary" | "--rui-typography-label-muted" | "--rui-typography-button-primary" | "--rui-typography-button-secondary">;
59
- /**
60
- * @description Defines the React state dispatcher for theme preference updates.
61
- * @author Steveen Cues
62
- * @version 1.0.0
63
- */
64
- export type SetThemePreferenceState = Dispatch<SetStateAction<ThemePreferenceState>>;