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.
- package/.prettierrc +13 -0
- package/LICENSE +21 -0
- package/README.md +198 -0
- package/bundle/components/Alert/Andromeda/AlertAndromeda.stories.d.ts +5 -0
- package/bundle/components/Alert/Andromeda/index.d.ts +2 -0
- package/bundle/components/Alert/Andromeda/types.d.ts +9 -0
- package/bundle/components/AppointmentForm/Andromeda/AppointmentFormAndromeda.stories.d.ts +5 -0
- package/bundle/components/AppointmentForm/Andromeda/examples.d.ts +6 -0
- package/bundle/components/AppointmentForm/Andromeda/index.d.ts +2 -0
- package/bundle/components/AppointmentForm/Andromeda/translations.d.ts +50 -0
- package/bundle/components/AppointmentForm/Andromeda/types.d.ts +25 -0
- package/bundle/components/Calendar/Andromeda/CalendarAndromeda.stories.d.ts +5 -0
- package/bundle/components/Calendar/Andromeda/examples.d.ts +4 -0
- package/bundle/components/Calendar/Andromeda/index.d.ts +2 -0
- package/bundle/components/Calendar/Andromeda/types.d.ts +14 -0
- package/bundle/components/Calendar/Antlia/CalendarAntlia.stories.d.ts +5 -0
- package/bundle/components/Calendar/Antlia/components/EventModal/index.d.ts +2 -0
- package/bundle/components/Calendar/Antlia/index.d.ts +2 -0
- package/bundle/components/Calendar/Antlia/types.d.ts +33 -0
- package/bundle/components/ContactForm/Andromeda/ContactFormAndromeda.stories.d.ts +5 -0
- package/bundle/components/ContactForm/Andromeda/index.d.ts +2 -0
- package/bundle/components/ContactForm/Andromeda/translations.d.ts +46 -0
- package/bundle/components/ContactForm/Andromeda/types.d.ts +16 -0
- package/bundle/components/ContactForm/Antlia/ContactFormAntlia.stories.d.ts +5 -0
- package/bundle/components/ContactForm/Antlia/example.d.ts +28 -0
- package/bundle/components/ContactForm/Antlia/index.d.ts +2 -0
- package/bundle/components/ContactForm/Antlia/translations.d.ts +6 -0
- package/bundle/components/ContactForm/Antlia/types.d.ts +17 -0
- package/bundle/components/FileDownloader/Andromeda/FileDownloaderAndromeda.stories.d.ts +5 -0
- package/bundle/components/FileDownloader/Andromeda/examples.d.ts +2 -0
- package/bundle/components/FileDownloader/Andromeda/index.d.ts +2 -0
- package/bundle/components/FileDownloader/Andromeda/types.d.ts +21 -0
- package/bundle/components/FileUpload/Andromeda/FileUploadAndromeda.stories.d.ts +5 -0
- package/bundle/components/FileUpload/Andromeda/index.d.ts +2 -0
- package/bundle/components/FileUpload/Andromeda/translations.d.ts +17 -0
- package/bundle/components/FileUpload/Andromeda/types.d.ts +14 -0
- package/bundle/components/HeroSection/Andromeda/HeroSectionAndromeda.stories.d.ts +5 -0
- package/bundle/components/HeroSection/Andromeda/defaults.d.ts +2 -0
- package/bundle/components/HeroSection/Andromeda/index.d.ts +2 -0
- package/bundle/components/HeroSection/Andromeda/translations.d.ts +39 -0
- package/bundle/components/HeroSection/Andromeda/types.d.ts +7 -0
- package/bundle/components/HeroSection/Antlia/HeroSectionAntlia.stories.d.ts +5 -0
- package/bundle/components/HeroSection/Antlia/index.d.ts +3 -0
- package/bundle/components/HeroSection/Antlia/translations.d.ts +14 -0
- package/bundle/components/HeroSection/Antlia/types.d.ts +16 -0
- package/bundle/components/IntroductionSection/Andromeda/IntroductionSectionAndromeda.stories.d.ts +5 -0
- package/bundle/components/IntroductionSection/Andromeda/defaults.d.ts +2 -0
- package/bundle/components/IntroductionSection/Andromeda/index.d.ts +2 -0
- package/bundle/components/IntroductionSection/Andromeda/translations.d.ts +28 -0
- package/bundle/components/IntroductionSection/Andromeda/types.d.ts +13 -0
- package/bundle/components/IntroductionSection/Antlia/IntroductionSectionAntlia.stories.d.ts +5 -0
- package/bundle/components/IntroductionSection/Antlia/index.d.ts +2 -0
- package/bundle/components/IntroductionSection/Antlia/translations.d.ts +36 -0
- package/bundle/components/IntroductionSection/Antlia/types.d.ts +9 -0
- package/bundle/components/Item/Andromeda/ItemAndromeda.stories.d.ts +5 -0
- package/bundle/components/Item/Andromeda/examples.d.ts +9 -0
- package/bundle/components/Item/Andromeda/index.d.ts +2 -0
- package/bundle/components/Item/Andromeda/translations.d.ts +7 -0
- package/bundle/components/Item/Andromeda/types.d.ts +14 -0
- package/bundle/components/Login/Andromeda/LoginAndromeda.stories.d.ts +5 -0
- package/bundle/components/Login/Andromeda/index.d.ts +2 -0
- package/bundle/components/Login/Andromeda/types.d.ts +19 -0
- package/bundle/components/Map/Andromeda/MapAndromeda.stories.d.ts +5 -0
- package/bundle/components/Map/Andromeda/index.d.ts +2 -0
- package/bundle/components/Map/Andromeda/translations.d.ts +12 -0
- package/bundle/components/Map/Andromeda/types.d.ts +9 -0
- package/bundle/components/Map/Antlia/MapAntlia.stories.d.ts +5 -0
- package/bundle/components/Map/Antlia/index.d.ts +2 -0
- package/bundle/components/Map/Antlia/translations.d.ts +14 -0
- package/bundle/components/Map/Antlia/types.d.ts +10 -0
- package/bundle/components/Navbar/Andromeda/NavbarAndromeda.stories.d.ts +5 -0
- package/bundle/components/Navbar/Andromeda/index.d.ts +2 -0
- package/bundle/components/Navbar/Andromeda/types.d.ts +9 -0
- package/bundle/components/Navbar/Antlia/NavbarAntlia.stories.d.ts +5 -0
- package/bundle/components/Navbar/Antlia/examples.d.ts +7 -0
- package/bundle/components/Navbar/Antlia/index.d.ts +2 -0
- package/bundle/components/Navbar/Antlia/translations.d.ts +7 -0
- package/bundle/components/Navbar/Antlia/types.d.ts +14 -0
- package/bundle/components/Projects/Andromeda/ProjectsAndromeda.stories.d.ts +5 -0
- package/bundle/components/Projects/Andromeda/examples.d.ts +7 -0
- package/bundle/components/Projects/Andromeda/index.d.ts +2 -0
- package/bundle/components/Projects/Andromeda/translations.d.ts +14 -0
- package/bundle/components/Projects/Andromeda/types.d.ts +11 -0
- package/bundle/components/Skills/Andromeda/SkillsAndromeda.stories.d.ts +5 -0
- package/bundle/components/Skills/Andromeda/examples.d.ts +8 -0
- package/bundle/components/Skills/Andromeda/index.d.ts +2 -0
- package/bundle/components/Skills/Andromeda/translations.d.ts +8 -0
- package/bundle/components/Skills/Andromeda/types.d.ts +14 -0
- package/bundle/components/Video/Andromeda/VideoAndromeda.stories.d.ts +5 -0
- package/bundle/components/Video/Andromeda/index.d.ts +2 -0
- package/bundle/components/Video/Andromeda/types.d.ts +6 -0
- package/bundle/components/WorkSection/Andromeda/WorkSectionAndromeda.stories.d.ts +5 -0
- package/bundle/components/WorkSection/Andromeda/defaults.d.ts +2 -0
- package/bundle/components/WorkSection/Andromeda/index.d.ts +2 -0
- package/bundle/components/WorkSection/Andromeda/translations.d.ts +12 -0
- package/bundle/components/WorkSection/Andromeda/types.d.ts +18 -0
- package/bundle/components/WorkSection/Antlia/WorkSectionAntlia.stories.d.ts +5 -0
- package/bundle/components/WorkSection/Antlia/defaults.d.ts +2 -0
- package/bundle/components/WorkSection/Antlia/index.d.ts +2 -0
- package/bundle/components/WorkSection/Antlia/translations.d.ts +10 -0
- package/bundle/components/WorkSection/Antlia/types.d.ts +13 -0
- package/bundle/components/index.d.ts +27 -0
- package/bundle/components/ui/Carousel/Andromeda/CarouselAndromeda.stories.d.ts +5 -0
- package/bundle/components/ui/Carousel/Andromeda/index.d.ts +2 -0
- package/bundle/components/ui/Carousel/Andromeda/types.d.ts +18 -0
- package/bundle/components/ui/ScrollSnap/Andromeda/ScrollSnapAndromeda.stories.d.ts +5 -0
- package/bundle/components/ui/ScrollSnap/Andromeda/defaults.d.ts +2 -0
- package/bundle/components/ui/ScrollSnap/Andromeda/index.d.ts +2 -0
- package/bundle/components/ui/ScrollSnap/Andromeda/types.d.ts +9 -0
- package/bundle/components/ui/SocialLinks/Andromeda/SocialLinksAndromeda.stories.d.ts +5 -0
- package/bundle/components/ui/SocialLinks/Andromeda/example.d.ts +5 -0
- package/bundle/components/ui/SocialLinks/Andromeda/index.d.ts +2 -0
- package/bundle/components/ui/SocialLinks/Andromeda/types.d.ts +11 -0
- package/bundle/index.css +1 -0
- package/bundle/index.d.ts +3 -0
- package/bundle/index.es.js +8069 -0
- package/bundle/index.umd.js +25 -0
- package/bundle/types/index.d.ts +27 -0
- package/bundle/types/props-components.d.ts +6 -0
- package/bundle/utils/index.d.ts +1 -0
- package/bundle/utils/returnTranslations.d.ts +2 -0
- package/eslint.config.js +57 -0
- 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,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,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,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,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,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,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,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,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,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
|
+
}
|