seed-components 1.0.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.
Files changed (123) hide show
  1. package/.prettierrc +13 -0
  2. package/LICENSE +21 -0
  3. package/README.md +198 -0
  4. package/bundle/components/Alert/Andromeda/AlertAndromeda.stories.d.ts +5 -0
  5. package/bundle/components/Alert/Andromeda/index.d.ts +2 -0
  6. package/bundle/components/Alert/Andromeda/types.d.ts +9 -0
  7. package/bundle/components/AppointmentForm/Andromeda/AppointmentFormAndromeda.stories.d.ts +5 -0
  8. package/bundle/components/AppointmentForm/Andromeda/examples.d.ts +6 -0
  9. package/bundle/components/AppointmentForm/Andromeda/index.d.ts +2 -0
  10. package/bundle/components/AppointmentForm/Andromeda/translations.d.ts +50 -0
  11. package/bundle/components/AppointmentForm/Andromeda/types.d.ts +25 -0
  12. package/bundle/components/Calendar/Andromeda/CalendarAndromeda.stories.d.ts +5 -0
  13. package/bundle/components/Calendar/Andromeda/examples.d.ts +4 -0
  14. package/bundle/components/Calendar/Andromeda/index.d.ts +2 -0
  15. package/bundle/components/Calendar/Andromeda/types.d.ts +14 -0
  16. package/bundle/components/Calendar/Antlia/CalendarAntlia.stories.d.ts +5 -0
  17. package/bundle/components/Calendar/Antlia/components/EventModal/index.d.ts +2 -0
  18. package/bundle/components/Calendar/Antlia/index.d.ts +2 -0
  19. package/bundle/components/Calendar/Antlia/types.d.ts +33 -0
  20. package/bundle/components/ContactForm/Andromeda/ContactFormAndromeda.stories.d.ts +5 -0
  21. package/bundle/components/ContactForm/Andromeda/index.d.ts +2 -0
  22. package/bundle/components/ContactForm/Andromeda/translations.d.ts +46 -0
  23. package/bundle/components/ContactForm/Andromeda/types.d.ts +16 -0
  24. package/bundle/components/ContactForm/Antlia/ContactFormAntlia.stories.d.ts +5 -0
  25. package/bundle/components/ContactForm/Antlia/example.d.ts +28 -0
  26. package/bundle/components/ContactForm/Antlia/index.d.ts +2 -0
  27. package/bundle/components/ContactForm/Antlia/translations.d.ts +6 -0
  28. package/bundle/components/ContactForm/Antlia/types.d.ts +17 -0
  29. package/bundle/components/FileDownloader/Andromeda/FileDownloaderAndromeda.stories.d.ts +5 -0
  30. package/bundle/components/FileDownloader/Andromeda/examples.d.ts +2 -0
  31. package/bundle/components/FileDownloader/Andromeda/index.d.ts +2 -0
  32. package/bundle/components/FileDownloader/Andromeda/types.d.ts +21 -0
  33. package/bundle/components/FileUpload/Andromeda/FileUploadAndromeda.stories.d.ts +5 -0
  34. package/bundle/components/FileUpload/Andromeda/index.d.ts +2 -0
  35. package/bundle/components/FileUpload/Andromeda/translations.d.ts +17 -0
  36. package/bundle/components/FileUpload/Andromeda/types.d.ts +14 -0
  37. package/bundle/components/HeroSection/Andromeda/HeroSectionAndromeda.stories.d.ts +5 -0
  38. package/bundle/components/HeroSection/Andromeda/defaults.d.ts +2 -0
  39. package/bundle/components/HeroSection/Andromeda/index.d.ts +2 -0
  40. package/bundle/components/HeroSection/Andromeda/translations.d.ts +39 -0
  41. package/bundle/components/HeroSection/Andromeda/types.d.ts +7 -0
  42. package/bundle/components/HeroSection/Antlia/HeroSectionAntlia.stories.d.ts +5 -0
  43. package/bundle/components/HeroSection/Antlia/index.d.ts +3 -0
  44. package/bundle/components/HeroSection/Antlia/translations.d.ts +14 -0
  45. package/bundle/components/HeroSection/Antlia/types.d.ts +16 -0
  46. package/bundle/components/IntroductionSection/Andromeda/IntroductionSectionAndromeda.stories.d.ts +5 -0
  47. package/bundle/components/IntroductionSection/Andromeda/defaults.d.ts +2 -0
  48. package/bundle/components/IntroductionSection/Andromeda/index.d.ts +2 -0
  49. package/bundle/components/IntroductionSection/Andromeda/translations.d.ts +28 -0
  50. package/bundle/components/IntroductionSection/Andromeda/types.d.ts +13 -0
  51. package/bundle/components/IntroductionSection/Antlia/IntroductionSectionAntlia.stories.d.ts +5 -0
  52. package/bundle/components/IntroductionSection/Antlia/index.d.ts +2 -0
  53. package/bundle/components/IntroductionSection/Antlia/translations.d.ts +36 -0
  54. package/bundle/components/IntroductionSection/Antlia/types.d.ts +9 -0
  55. package/bundle/components/Item/Andromeda/ItemAndromeda.stories.d.ts +5 -0
  56. package/bundle/components/Item/Andromeda/examples.d.ts +9 -0
  57. package/bundle/components/Item/Andromeda/index.d.ts +2 -0
  58. package/bundle/components/Item/Andromeda/translations.d.ts +7 -0
  59. package/bundle/components/Item/Andromeda/types.d.ts +14 -0
  60. package/bundle/components/Login/Andromeda/LoginAndromeda.stories.d.ts +5 -0
  61. package/bundle/components/Login/Andromeda/index.d.ts +2 -0
  62. package/bundle/components/Login/Andromeda/types.d.ts +19 -0
  63. package/bundle/components/Map/Andromeda/MapAndromeda.stories.d.ts +5 -0
  64. package/bundle/components/Map/Andromeda/index.d.ts +2 -0
  65. package/bundle/components/Map/Andromeda/translations.d.ts +12 -0
  66. package/bundle/components/Map/Andromeda/types.d.ts +9 -0
  67. package/bundle/components/Map/Antlia/MapAntlia.stories.d.ts +5 -0
  68. package/bundle/components/Map/Antlia/index.d.ts +2 -0
  69. package/bundle/components/Map/Antlia/translations.d.ts +14 -0
  70. package/bundle/components/Map/Antlia/types.d.ts +10 -0
  71. package/bundle/components/Navbar/Andromeda/NavbarAndromeda.stories.d.ts +5 -0
  72. package/bundle/components/Navbar/Andromeda/index.d.ts +2 -0
  73. package/bundle/components/Navbar/Andromeda/types.d.ts +9 -0
  74. package/bundle/components/Navbar/Antlia/NavbarAntlia.stories.d.ts +5 -0
  75. package/bundle/components/Navbar/Antlia/examples.d.ts +7 -0
  76. package/bundle/components/Navbar/Antlia/index.d.ts +2 -0
  77. package/bundle/components/Navbar/Antlia/translations.d.ts +7 -0
  78. package/bundle/components/Navbar/Antlia/types.d.ts +14 -0
  79. package/bundle/components/Projects/Andromeda/ProjectsAndromeda.stories.d.ts +5 -0
  80. package/bundle/components/Projects/Andromeda/examples.d.ts +7 -0
  81. package/bundle/components/Projects/Andromeda/index.d.ts +2 -0
  82. package/bundle/components/Projects/Andromeda/translations.d.ts +14 -0
  83. package/bundle/components/Projects/Andromeda/types.d.ts +11 -0
  84. package/bundle/components/Skills/Andromeda/SkillsAndromeda.stories.d.ts +5 -0
  85. package/bundle/components/Skills/Andromeda/examples.d.ts +8 -0
  86. package/bundle/components/Skills/Andromeda/index.d.ts +2 -0
  87. package/bundle/components/Skills/Andromeda/translations.d.ts +8 -0
  88. package/bundle/components/Skills/Andromeda/types.d.ts +14 -0
  89. package/bundle/components/Video/Andromeda/VideoAndromeda.stories.d.ts +5 -0
  90. package/bundle/components/Video/Andromeda/index.d.ts +2 -0
  91. package/bundle/components/Video/Andromeda/types.d.ts +6 -0
  92. package/bundle/components/WorkSection/Andromeda/WorkSectionAndromeda.stories.d.ts +5 -0
  93. package/bundle/components/WorkSection/Andromeda/defaults.d.ts +2 -0
  94. package/bundle/components/WorkSection/Andromeda/index.d.ts +2 -0
  95. package/bundle/components/WorkSection/Andromeda/translations.d.ts +12 -0
  96. package/bundle/components/WorkSection/Andromeda/types.d.ts +18 -0
  97. package/bundle/components/WorkSection/Antlia/WorkSectionAntlia.stories.d.ts +5 -0
  98. package/bundle/components/WorkSection/Antlia/defaults.d.ts +2 -0
  99. package/bundle/components/WorkSection/Antlia/index.d.ts +2 -0
  100. package/bundle/components/WorkSection/Antlia/translations.d.ts +10 -0
  101. package/bundle/components/WorkSection/Antlia/types.d.ts +13 -0
  102. package/bundle/components/index.d.ts +27 -0
  103. package/bundle/components/ui/Carousel/Andromeda/CarouselAndromeda.stories.d.ts +5 -0
  104. package/bundle/components/ui/Carousel/Andromeda/index.d.ts +2 -0
  105. package/bundle/components/ui/Carousel/Andromeda/types.d.ts +18 -0
  106. package/bundle/components/ui/ScrollSnap/Andromeda/ScrollSnapAndromeda.stories.d.ts +5 -0
  107. package/bundle/components/ui/ScrollSnap/Andromeda/defaults.d.ts +2 -0
  108. package/bundle/components/ui/ScrollSnap/Andromeda/index.d.ts +2 -0
  109. package/bundle/components/ui/ScrollSnap/Andromeda/types.d.ts +9 -0
  110. package/bundle/components/ui/SocialLinks/Andromeda/SocialLinksAndromeda.stories.d.ts +5 -0
  111. package/bundle/components/ui/SocialLinks/Andromeda/example.d.ts +5 -0
  112. package/bundle/components/ui/SocialLinks/Andromeda/index.d.ts +2 -0
  113. package/bundle/components/ui/SocialLinks/Andromeda/types.d.ts +11 -0
  114. package/bundle/index.css +1 -0
  115. package/bundle/index.d.ts +3 -0
  116. package/bundle/index.es.js +8069 -0
  117. package/bundle/index.umd.js +25 -0
  118. package/bundle/types/index.d.ts +27 -0
  119. package/bundle/types/props-components.d.ts +6 -0
  120. package/bundle/utils/index.d.ts +1 -0
  121. package/bundle/utils/returnTranslations.d.ts +2 -0
  122. package/eslint.config.js +57 -0
  123. package/package.json +88 -0
package/.prettierrc ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "semi": false,
3
+ "singleQuote": true,
4
+ "jsxSingleQuote": false,
5
+ "trailingComma": "es5",
6
+ "printWidth": 80,
7
+ "tabWidth": 2,
8
+ "useTabs": false,
9
+ "bracketSpacing": true,
10
+ "arrowParens": "always",
11
+ "endOfLine": "lf",
12
+ "proseWrap": "always"
13
+ }
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Juan Carlos Trejos Iglesias
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,198 @@
1
+ # components-seed
2
+
3
+ Librería de componentes React (variantes por _constelación_) para portafolios y
4
+ landing pages. Componentes modulares, estilizados con **CSS variables**
5
+ (`var(--...)`), listos para consumir desde otros proyectos y para publicar en
6
+ npm.
7
+
8
+ ---
9
+
10
+ ## Qué hace
11
+
12
+ - Exporta componentes listos (`HeroSectionAndromeda`, `ContactFormAndromeda`,
13
+ `ScrollSnapAndromeda`, `WorkSectionAndromeda`, etc.).
14
+ - Estilos por componente; uso intensivo de `var(--...)` para tematización.
15
+ - Incluye carpeta `bundle/` con los builds compilados (`index.css`,
16
+ `index.es.js`, `index.umd.js`).
17
+ - Script TypeScript `scripts/update-css-vars.ts` que inserta en cada `.css` un
18
+ comentario inicial con las variables `--xxx` usadas (documentación
19
+ automática).
20
+
21
+ ---
22
+
23
+ ## Instalación
24
+
25
+ ### Desde npm (consumidor)
26
+
27
+ ```
28
+ npm install components-seed
29
+ ```
30
+
31
+ ### En desarrollo (usar el paquete local)
32
+
33
+ ```
34
+ # en la librería
35
+ npm install
36
+ npm link
37
+ npm run bundle:watch # mantiene a la escucha para generar /bundle
38
+ # en el proyecto consumidor
39
+ npm link components-seed
40
+ ```
41
+
42
+ ---
43
+
44
+ ## Ejemplo de uso
45
+
46
+ Importa los estilos de la librería en el main.tsx
47
+
48
+ ```react
49
+ import 'components-seed/bundle/index.css'
50
+ ```
51
+
52
+ Importa un componente desde la librería
53
+
54
+ ```react
55
+ import { ExampleComponent } from 'components-seed'
56
+
57
+ export const Home = () => (
58
+ <ExampleComponent someProp="value" />
59
+ )
60
+ ```
61
+
62
+ **Recuerda:** las variables CSS globales (`:root { --base-color-7: ... }`) deben
63
+ definirse en el proyecto para que los colores concuerden.
64
+
65
+ ---
66
+
67
+ ## Estructura del proyecto
68
+
69
+ ```sh
70
+ .
71
+ ├── bundle
72
+ │ ├── index.css
73
+ │ ├── index.es.js
74
+ │ └── index.umd.js
75
+ ├── src
76
+ │ ├── components
77
+ │ │ ├── ContactForm(Type-Component)
78
+ │ │ │ └── Andromeda(Constelation-Name)
79
+ │ │ │ ├── index.tsx
80
+ │ │ │ └── styles.module.css
81
+ │ └── index.ts
82
+ ├── scripts
83
+ │ ├── generate-components-index.ts
84
+ │ ├── generate-types-index.ts
85
+ │ ├── generate-utils-index.ts
86
+ │ └── update-css-vars.ts
87
+ ├── package.json
88
+ ├── .prettierrc
89
+ └── eslint.config.js
90
+ ```
91
+
92
+ ---
93
+
94
+ ## Scripts (`package.json`)
95
+
96
+ ```json
97
+ {
98
+ "scripts": {
99
+ "dev": "vite",
100
+ "build": "tsc -b && vite build",
101
+ "preview": "vite preview",
102
+ "lint": "eslint . --ext .ts,.tsx --fix",
103
+ "lint:fix": "eslint . --fix",
104
+ "lint:css": "stylelint \"**/*.css\" --fix",
105
+ "format": "prettier --write .",
106
+ "generate:types": "ts-node ./src/scripts/generate-types-index.ts",
107
+ "generate:utils": "ts-node ./src/scripts/generate-utils-index.ts",
108
+ "generate:components": "ts-node ./src/scripts/generate-components-index.ts",
109
+ "comment-css-variables": "ts-node ./src/scripts/comment-css-variables.ts",
110
+ "generate-indexes": "ts-node ./src/scripts",
111
+ "bundle": "npm run generate-indexes && tsc -b && vite build",
112
+ "bundle:watch": "vite build --watch"
113
+ }
114
+ }
115
+ ```
116
+
117
+ ---
118
+
119
+ ## Publicar en npm
120
+
121
+ 1. Ejecuta localmente:
122
+
123
+ ```sh
124
+ npm run lint
125
+ npm run format
126
+ npm run bundle
127
+ ```
128
+
129
+ 2. Bump de versión:
130
+
131
+ ```
132
+ npm version patch
133
+ ```
134
+
135
+ 3. Login (si es necesario):
136
+
137
+ ```
138
+ npm login
139
+ ```
140
+
141
+ 4. Publicar:
142
+
143
+ ```
144
+ npm publish --access public
145
+ ```
146
+
147
+ 5. En proyecto consumidor:
148
+
149
+ ```
150
+ npm install components-seed@X.Y.Z
151
+ ```
152
+
153
+ ---
154
+
155
+ ## VS Code — configuración recomendada (pegar en `.vscode/` del workspace consumidor)
156
+
157
+ ### `.vscode/settings.json`
158
+
159
+ ```json
160
+ {
161
+ "editor.defaultFormatter": "dbaeumer.vscode-eslint",
162
+ "editor.formatOnSave": true,
163
+ "editor.codeActionsOnSave": {
164
+ "source.fixAll.eslint": "always",
165
+ "source.organizeImports": "always",
166
+ "source.removeUnusedImports": "always",
167
+ "source.sortImports": "always"
168
+ }
169
+ }
170
+ ```
171
+
172
+ **Notas VS Code**
173
+
174
+ - `prettier.configPath` apunta al `.prettierrc` dentro del paquete
175
+ `components-seed` instalado. Esto unifica formato entre librería y consumidor.
176
+ - Si usas path-aliases en `tsconfig.json`, añade
177
+ `eslint-import-resolver-typescript` para que ESLint resuelva importaciones.
178
+
179
+ ---
180
+
181
+ ## Buenas prácticas antes de publicar
182
+
183
+ 1. `npm run lint && npm run format && npm run build && npm run comment-css-variables`.
184
+ 2. Verifica `bundle/index.css` y builds (`index.es.js`, `index.umd.js`).
185
+ 3. Prueba localmente instalando el paquete desde la ruta:
186
+ `npm install /ruta/a/components-seed` y ejecuta el proyecto consumidor.
187
+ 4. Mantén `prepublishOnly` para no olvidar pasos.
188
+
189
+ ---
190
+
191
+ ## Cómo añadir una nueva constelación (rápido)
192
+
193
+ 1. Copia la carpeta base del componente (p. ej.
194
+ `src/components/HeroSection/Andromeda`) → renombra `Antlia`.
195
+ 2. Ajusta `index.tsx` y el `.css` correspondiente.
196
+ 3. Ejecuta `npm run comment-css-variables`.
197
+ 4. Ejecuta `npm run bundle`.
198
+ 5. Bump version y publicar.
@@ -0,0 +1,5 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ declare const meta: Meta<any>;
3
+ export default meta;
4
+ type Story = StoryObj<any>;
5
+ export declare const Default: Story;
@@ -0,0 +1,2 @@
1
+ import { AlertAndromedaProps } from './types';
2
+ export declare const AlertAndromeda: ({ title, message, type, visible, onClose, className, style, }: AlertAndromedaProps) => import("react").JSX.Element | null;
@@ -0,0 +1,9 @@
1
+ import { BasePropComponents } from '../../../types';
2
+ export type AlertTypeAndromeda = 'success' | 'error' | 'warning';
3
+ export type AlertAndromedaProps = BasePropComponents & {
4
+ title?: string;
5
+ message?: string;
6
+ type?: AlertTypeAndromeda;
7
+ visible?: boolean;
8
+ onClose?: () => void;
9
+ };
@@ -0,0 +1,5 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ declare const meta: Meta<any>;
3
+ export default meta;
4
+ type Story = StoryObj<any>;
5
+ export declare const Default: Story;
@@ -0,0 +1,6 @@
1
+ import { AppointmentType } from './types';
2
+ export declare const availableSlotsExample: {
3
+ date: string;
4
+ times: string[];
5
+ }[];
6
+ export declare const appointmentTypesExample: AppointmentType[];
@@ -0,0 +1,2 @@
1
+ import { AppointmentFormAndromedaProps } from './types';
2
+ export declare const AppointmentFormAndromeda: ({ availableSlots, appointmentTypes, onSubmit, selectedServiceDefault, position, style, className, }: AppointmentFormAndromedaProps) => import("react").JSX.Element;
@@ -0,0 +1,50 @@
1
+ export declare const translationsSources: {
2
+ name_placeholder: {
3
+ es: string;
4
+ en: string;
5
+ };
6
+ document_placeholder: {
7
+ es: string;
8
+ en: string;
9
+ };
10
+ phone_placeholder: {
11
+ es: string;
12
+ en: string;
13
+ };
14
+ select_time: {
15
+ es: string;
16
+ en: string;
17
+ };
18
+ select_appointment_type: {
19
+ es: string;
20
+ en: string;
21
+ };
22
+ price_label: {
23
+ es: string;
24
+ en: string;
25
+ };
26
+ selected_date_label: {
27
+ es: string;
28
+ en: string;
29
+ };
30
+ submit_button: {
31
+ es: string;
32
+ en: string;
33
+ };
34
+ date_not_available: {
35
+ es: string;
36
+ en: string;
37
+ };
38
+ validation_required: {
39
+ es: string;
40
+ en: string;
41
+ };
42
+ validation_calendar: {
43
+ es: string;
44
+ en: string;
45
+ };
46
+ validation_service: {
47
+ es: string;
48
+ en: string;
49
+ };
50
+ };
@@ -0,0 +1,25 @@
1
+ import { SlotCalendarAndromeda } from '../../Calendar/Andromeda/types';
2
+ import { BasePropComponents } from '../../../types';
3
+ export type AppointmentType = {
4
+ id: string;
5
+ label: string;
6
+ price: number;
7
+ };
8
+ export type AppointmentSubmitPayload = {
9
+ name: string;
10
+ document: string;
11
+ phone: string;
12
+ date: string;
13
+ time: string;
14
+ appointmentTypeId: string;
15
+ price: number;
16
+ };
17
+ export type AppointmentFormAndromedaProps = BasePropComponents & {
18
+ availableSlots?: SlotCalendarAndromeda[];
19
+ appointmentTypes?: AppointmentType[];
20
+ onSubmit: (payload: AppointmentSubmitPayload) => void;
21
+ selectedServiceDefault?: string;
22
+ style?: React.CSSProperties;
23
+ className?: string;
24
+ position?: 'static' | 'sticky' | 'fixed';
25
+ };
@@ -0,0 +1,5 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ declare const meta: Meta<any>;
3
+ export default meta;
4
+ type Story = StoryObj<any>;
5
+ export declare const Default: Story;
@@ -0,0 +1,4 @@
1
+ export declare const availableSlotsExample: {
2
+ date: string;
3
+ times: string[];
4
+ }[];
@@ -0,0 +1,2 @@
1
+ import { CalendarAndromedaProps } from './types';
2
+ export declare const CalendarAndromeda: ({ availableSlots, value, onChange, minDate, maxDate, style, className, }: CalendarAndromedaProps) => import("react").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { BasePropComponents } from '../../../types';
2
+ export type SlotCalendarAndromeda = {
3
+ date: string;
4
+ times: string[];
5
+ };
6
+ export type CalendarAndromedaProps = BasePropComponents & {
7
+ availableSlots?: SlotCalendarAndromeda[] | string[];
8
+ value?: string;
9
+ onChange?: (date: string, time?: string) => void;
10
+ minDate?: string;
11
+ maxDate?: string;
12
+ style?: React.CSSProperties;
13
+ className?: string;
14
+ };
@@ -0,0 +1,5 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ declare const meta: Meta<any>;
3
+ export default meta;
4
+ type Story = StoryObj<any>;
5
+ export declare const Default: Story;
@@ -0,0 +1,2 @@
1
+ import { CalendarModalAntliaProps } from '../../types';
2
+ export declare const EventModal: ({ open, date, events, locale, onClose, onEventClick, onSaveEvent, onDeleteEvent, }: CalendarModalAntliaProps) => import("react").JSX.Element | null;
@@ -0,0 +1,2 @@
1
+ import { CalendarAntliaProps } from './types';
2
+ export declare const CalendarAntlia: ({ title, events, initialDate, locale, weekStartsOn, className, style, onDateClick, onEventClick, onSaveEvent, onDeleteEvent, }: CalendarAntliaProps) => import("react").JSX.Element;
@@ -0,0 +1,33 @@
1
+ import { BasePropComponents } from '../../../types';
2
+ export type CalendarEventAntlia = {
3
+ id: string;
4
+ title: string;
5
+ date: string | Date;
6
+ startTime?: string;
7
+ endTime?: string;
8
+ description?: string;
9
+ location?: string;
10
+ color?: string;
11
+ allDay?: boolean;
12
+ };
13
+ export type CalendarAntliaProps = BasePropComponents & {
14
+ title?: string;
15
+ events?: CalendarEventAntlia[];
16
+ initialDate?: Date | string;
17
+ locale?: string;
18
+ weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
19
+ onDateClick?: (date: Date, events: CalendarEventAntlia[]) => void;
20
+ onEventClick?: (event: CalendarEventAntlia) => void;
21
+ onSaveEvent?: (event: CalendarEventAntlia) => void;
22
+ onDeleteEvent?: (eventId: string) => void;
23
+ };
24
+ export type CalendarModalAntliaProps = {
25
+ open: boolean;
26
+ date: Date;
27
+ events: CalendarEventAntlia[];
28
+ locale?: string;
29
+ onClose: () => void;
30
+ onEventClick?: (event: CalendarEventAntlia) => void;
31
+ onSaveEvent?: (event: CalendarEventAntlia) => void;
32
+ onDeleteEvent?: (eventId: string) => void;
33
+ };
@@ -0,0 +1,5 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ declare const meta: Meta<any>;
3
+ export default meta;
4
+ type Story = StoryObj<any>;
5
+ export declare const Default: Story;
@@ -0,0 +1,2 @@
1
+ import { ContactFormAndromedaProps } from './types';
2
+ export declare const ContactFormAndromeda: ({ sendTo, translations, style, backgroundImage, onSubmit, showName, showEmail, showPhone, showMessage, }: ContactFormAndromedaProps) => import("react").JSX.Element;
@@ -0,0 +1,46 @@
1
+ export declare const translationsSources: {
2
+ title: {
3
+ es: string;
4
+ en: string;
5
+ };
6
+ subtitle: {
7
+ es: string;
8
+ en: string;
9
+ };
10
+ label_name: {
11
+ es: string;
12
+ en: string;
13
+ };
14
+ label_email: {
15
+ es: string;
16
+ en: string;
17
+ };
18
+ label_phone: {
19
+ es: string;
20
+ en: string;
21
+ };
22
+ label_message: {
23
+ es: string;
24
+ en: string;
25
+ };
26
+ placeholder_name: {
27
+ es: string;
28
+ en: string;
29
+ };
30
+ placeholder_email: {
31
+ es: string;
32
+ en: string;
33
+ };
34
+ placeholder_phone: {
35
+ es: string;
36
+ en: string;
37
+ };
38
+ placeholder_message: {
39
+ es: string;
40
+ en: string;
41
+ };
42
+ button: {
43
+ es: string;
44
+ en: string;
45
+ };
46
+ };
@@ -0,0 +1,16 @@
1
+ import { BasePropComponents } from '../../../types';
2
+ export type ContactFormData = {
3
+ name?: string;
4
+ email?: string;
5
+ phone?: string;
6
+ message?: string;
7
+ };
8
+ export type ContactFormAndromedaProps = BasePropComponents & {
9
+ sendTo?: string;
10
+ backgroundImage?: string;
11
+ onSubmit?: (data: ContactFormData) => void;
12
+ showName?: boolean;
13
+ showEmail?: boolean;
14
+ showPhone?: boolean;
15
+ showMessage?: boolean;
16
+ };
@@ -0,0 +1,5 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ declare const meta: Meta<any>;
3
+ export default meta;
4
+ type Story = StoryObj<any>;
5
+ export declare const Default: Story;
@@ -0,0 +1,28 @@
1
+ export declare const contactItemsExample: ({
2
+ key: string;
3
+ type: "phone";
4
+ title: string;
5
+ subtitle: string;
6
+ actionText: string;
7
+ url: string;
8
+ icon: import("react").JSX.Element;
9
+ targetBlank: boolean;
10
+ } | {
11
+ key: string;
12
+ type: "email";
13
+ title: string;
14
+ subtitle: string;
15
+ actionText: string;
16
+ url: string;
17
+ icon: import("react").JSX.Element;
18
+ targetBlank: boolean;
19
+ } | {
20
+ key: string;
21
+ type: "whatsapp";
22
+ title: string;
23
+ subtitle: string;
24
+ actionText: string;
25
+ url: string;
26
+ icon: import("react").JSX.Element;
27
+ targetBlank: boolean;
28
+ })[];
@@ -0,0 +1,2 @@
1
+ import { ContactFormAntliaProps } from './types';
2
+ export declare const ContactFormAntlia: ({ items, translations, idForm, style, className, }: ContactFormAntliaProps) => import("react").JSX.Element;
@@ -0,0 +1,6 @@
1
+ export declare const translationsSoruces: {
2
+ title: {
3
+ es: string;
4
+ en: string;
5
+ };
6
+ };
@@ -0,0 +1,17 @@
1
+ import { BasePropComponents } from '../../../types';
2
+ import { ReactNode } from 'react';
3
+ export type ContactType = 'phone' | 'email' | 'whatsapp' | 'other';
4
+ export type ContactItem = {
5
+ key: string;
6
+ type: ContactType;
7
+ title: string;
8
+ subtitle?: string;
9
+ actionText?: string;
10
+ url: string;
11
+ icon: ReactNode;
12
+ targetBlank?: boolean;
13
+ };
14
+ export type ContactFormAntliaProps = BasePropComponents & {
15
+ items?: ContactItem[];
16
+ idForm: string;
17
+ };
@@ -0,0 +1,5 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ declare const meta: Meta<any>;
3
+ export default meta;
4
+ type Story = StoryObj<any>;
5
+ export declare const Default: Story;
@@ -0,0 +1,2 @@
1
+ import { FileItemAndromeda } from './types';
2
+ export declare const filesExample: FileItemAndromeda[];
@@ -0,0 +1,2 @@
1
+ import { FileDownloaderAndromedaProps } from './types';
2
+ export declare const FileDownloaderAndromeda: ({ files, position, layout, offset, defaultIcon, title, style, className, }: FileDownloaderAndromedaProps) => import("react").JSX.Element;
@@ -0,0 +1,21 @@
1
+ import { BasePropComponents } from '../../../types';
2
+ import { ReactNode } from 'react';
3
+ export type FloatingPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
4
+ export type FileItemAndromeda = {
5
+ url: string;
6
+ name?: string;
7
+ label?: string;
8
+ icon?: ReactNode;
9
+ };
10
+ export type FilesLayout = 'horizontal' | 'vertical';
11
+ export type FileDownloaderAndromedaProps = BasePropComponents & {
12
+ files: FileItemAndromeda[];
13
+ position?: FloatingPosition;
14
+ layout?: FilesLayout;
15
+ offset?: {
16
+ x?: number;
17
+ y?: number;
18
+ };
19
+ defaultIcon?: ReactNode;
20
+ title?: string;
21
+ };
@@ -0,0 +1,5 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ declare const meta: Meta<any>;
3
+ export default meta;
4
+ type Story = StoryObj<any>;
5
+ export declare const Default: Story;
@@ -0,0 +1,2 @@
1
+ import { FileUploadPropsAndromeda } from './types';
2
+ export declare const FileUploadAndromeda: (props: FileUploadPropsAndromeda) => import("react").JSX.Element;
@@ -0,0 +1,17 @@
1
+ export declare const translationsSources: {
2
+ select_archive_file: {
3
+ es: string;
4
+ en: string;
5
+ pt: string;
6
+ };
7
+ execute_regression_lineal: {
8
+ es: string;
9
+ en: string;
10
+ pt: string;
11
+ };
12
+ dependent_variable: {
13
+ es: string;
14
+ en: string;
15
+ pt: string;
16
+ };
17
+ };
@@ -0,0 +1,14 @@
1
+ import { BasePropComponents } from '../../../types';
2
+ export interface FileUploadProps {
3
+ onFileSelect: (file: File) => void;
4
+ className?: string;
5
+ }
6
+ export interface RegressionLinealProps {
7
+ onExecute: () => void;
8
+ dependentVariable: string;
9
+ className?: string;
10
+ }
11
+ export interface FileUploadPropsAndromeda extends BasePropComponents {
12
+ fileUploadProps: FileUploadProps;
13
+ regressionLinealProps: RegressionLinealProps;
14
+ }
@@ -0,0 +1,5 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ declare const meta: Meta<any>;
3
+ export default meta;
4
+ type Story = StoryObj<any>;
5
+ export declare const Default: Story;
@@ -0,0 +1,2 @@
1
+ import type * as Types from './types';
2
+ export declare const defaults: Types.HeroSectionAndromedaProps;