@als-tp/als-react-ts-ui 0.5.3 → 0.5.4

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 (37) hide show
  1. package/README.md +133 -10
  2. package/dist/als-react-ts-ui.js +9474 -9410
  3. package/dist/components/ALSAccordion/ALSAccordion.d.ts +66 -0
  4. package/dist/components/ALSAccordion/ALSAccordion.d.ts.map +1 -0
  5. package/dist/components/ALSAccordion/index.d.ts +6 -63
  6. package/dist/components/ALSAccordion/index.d.ts.map +1 -1
  7. package/dist/components/ALSAlertDialog/ALSAlertDialog.d.ts +1 -1
  8. package/dist/components/ALSAlertDialog/ALSAlertDialog.d.ts.map +1 -1
  9. package/dist/components/ALSAlertDialog/index.d.ts +1 -1
  10. package/dist/components/ALSCombobox/ALSCombobox.d.ts +2 -2
  11. package/dist/components/ALSCombobox/ALSCombobox.d.ts.map +1 -1
  12. package/dist/components/ALSCombobox/index.d.ts +2 -2
  13. package/dist/components/ALSContextMenu/ALSContextMenu.d.ts +2 -2
  14. package/dist/components/ALSContextMenu/ALSContextMenu.d.ts.map +1 -1
  15. package/dist/components/ALSContextMenu/index.d.ts +2 -2
  16. package/dist/components/ALSDialog/ALSDialog.d.ts +79 -0
  17. package/dist/components/ALSDialog/ALSDialog.d.ts.map +1 -0
  18. package/dist/components/ALSDialog/index.d.ts +9 -75
  19. package/dist/components/ALSDialog/index.d.ts.map +1 -1
  20. package/dist/components/ALSPopover/ALSPopover.d.ts +25 -0
  21. package/dist/components/ALSPopover/ALSPopover.d.ts.map +1 -0
  22. package/dist/components/ALSPopover/index.d.ts +14 -38
  23. package/dist/components/ALSPopover/index.d.ts.map +1 -1
  24. package/dist/components/ALSSelect/ALSSelect.d.ts +30 -0
  25. package/dist/components/ALSSelect/ALSSelect.d.ts.map +1 -0
  26. package/dist/components/ALSSelect/index.d.ts +9 -35
  27. package/dist/components/ALSSelect/index.d.ts.map +1 -1
  28. package/dist/components/ALSToast/ALSToast.d.ts +91 -0
  29. package/dist/components/ALSToast/ALSToast.d.ts.map +1 -0
  30. package/dist/components/ALSToast/index.d.ts +10 -87
  31. package/dist/components/ALSToast/index.d.ts.map +1 -1
  32. package/dist/index.css +1 -1
  33. package/dist/layout/MainLayout/index.d.ts +0 -12
  34. package/dist/layout/MainLayout/index.d.ts.map +1 -1
  35. package/dist/layout/MainLayout/useLayout.d.ts +15 -0
  36. package/dist/layout/MainLayout/useLayout.d.ts.map +1 -0
  37. package/package.json +3 -3
package/README.md CHANGED
@@ -130,9 +130,138 @@ The library uses CSS variables for theming. You can override these in your globa
130
130
 
131
131
  ```css
132
132
  :root {
133
- --primary-color: #your-color;
134
- --secondary-color: #your-color;
135
- /* ... other variables */
133
+ /* Typography Scale */
134
+ --font-family-base: "F37 Beckett", "Segoe UI", system-ui, -apple-system,
135
+ "Helvetica Neue", arial, sans-serif;
136
+ --font-weight-regular: 400;
137
+ --font-weight-semibold: 600;
138
+ --font-weight-bold: 700;
139
+ --line-height-tight: 1.25;
140
+ --line-height-base: 1.5;
141
+ --line-height-relaxed: 1.75;
142
+
143
+ /* Fluid Typography Scale */
144
+ --font-h1: clamp(2.5rem, 4vw + 1rem, 3.5rem); /* 40-56px */
145
+ --font-h2: clamp(2rem, 3vw + 0.5rem, 2.75rem); /* 32-44px */
146
+ --font-h3: clamp(1.5rem, 2vw + 0.5rem, 2rem); /* 24-32px */
147
+ --font-h4: clamp(1.25rem, 1.5vw + 0.5rem, 1.75rem); /* 20-28px */
148
+ --font-h5: clamp(1.125rem, 1vw + 0.5rem, 1.5rem); /* 18-24px */
149
+ --font-h6: clamp(1rem, 0.5vw + 0.5rem, 1.25rem); /* 16-20px */
150
+ --font-base: 1rem; /* 16px */
151
+ --font-small: 0.875rem; /* 14px */
152
+ --font-tiny: 0.75rem; /* 12px */
153
+
154
+ /* Spacing Scale */
155
+ --space-xs: 0.25rem; /* 4px */
156
+ --space-sm: 0.5rem; /* 8px */
157
+ --space-md: 1rem; /* 16px */
158
+ --space-lg: 1.5rem; /* 24px */
159
+ --space-xl: 2rem; /* 32px */
160
+ --space-2xl: 3rem; /* 48px */
161
+ --space-3xl: 4rem; /* 64px */
162
+
163
+ /* Border Radius */
164
+ --radius-sm: 0.25rem; /* 4px */
165
+ --radius-md: 0.5rem; /* 8px */
166
+ --radius-lg: 0.75rem; /* 12px */
167
+ --radius-xl: 1rem; /* 16px */
168
+ --radius-full: 9999px;
169
+
170
+ /* Shadows */
171
+ --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 5%);
172
+ --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 10%),
173
+ 0 2px 4px -2px rgb(0 0 0 / 10%);
174
+ --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 10%),
175
+ 0 4px 6px -4px rgb(0 0 0 / 10%);
176
+ --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 10%),
177
+ 0 8px 10px -6px rgb(0 0 0 / 10%);
178
+
179
+ /* Transitions */
180
+ --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
181
+ --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
182
+ --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
183
+ --transition-duration-fast: 150ms;
184
+ --transition-duration-base: 250ms;
185
+ --transition-duration-slow: 350ms;
186
+
187
+ /* Z-Index Scale */
188
+ --z-base: 1;
189
+ --z-dropdown: 100;
190
+ --z-sticky: 200;
191
+ --z-fixed: 300;
192
+ --z-modal-backdrop: 400;
193
+ --z-modal: 500;
194
+ --z-popover: 600;
195
+ --z-tooltip: 700;
196
+
197
+ /* ALS Color Palette */
198
+
199
+ --color-als-white: #fff;
200
+ --color-als-black: #000;
201
+
202
+ /* ALS Grays */
203
+ --color-als-gray-100: #f2f5f7;
204
+ --color-als-gray-500: #d9e1e5;
205
+ --color-als-gray-900: #b0b9be;
206
+
207
+ /* ALS Blues */
208
+
209
+ /* Dark blue */
210
+ --color-als-dark-blue: #1f3349;
211
+
212
+ /* Primary blue */
213
+
214
+ --color-als-blue-100: #d9ecf9;
215
+ --color-als-blue-500: #9fd7ff;
216
+ --color-als-blue-900: #45b1ff;
217
+
218
+ /* Aux blue */
219
+ --color-als-aux-blue-100: #c9f1ff;
220
+ --color-als-aux-blue-200: #93e2ff;
221
+ --color-als-aux-blue-300: #5dd4ff;
222
+ --color-als-aux-blue-500: #00b0f0;
223
+ --color-als-aux-blue-800: #0084b4;
224
+ --color-als-aux-blue-900: #005878;
225
+
226
+ /* ALS Beiges */
227
+ --color-als-beige-100: #ffedcb;
228
+ --color-als-beige-500: #ecd8b3;
229
+ --color-als-beige-900: #cfb88e;
230
+
231
+ /* ALS Greens */
232
+ --color-als-green-100: #d0eed5;
233
+ --color-als-green-500: #a8d3af;
234
+ --color-als-green-900: #7ec68a;
235
+
236
+ /* ALS Reds */
237
+ --color-als-red-100: #ffdfdf;
238
+ --color-als-red-500: #ff6f6f;
239
+ --color-als-red-900: #f00;
240
+
241
+ /* Semantic Colors */
242
+ --color-success: var(--color-als-green-500);
243
+ --color-warning: var(--color-als-beige-500);
244
+ --color-error: var(--color-als-red-500);
245
+ --color-info: var(--color-als-blue-500);
246
+
247
+ /* Background Colors */
248
+ --bg-primary: var(--color-als-gray-100);
249
+
250
+ /* Text Colors */
251
+ --text-primary: var(--color-als-dark-blue);
252
+ --text-secondary: var(--color-als-gray-900); /* o el color que prefieras */
253
+
254
+ /* Border Colors */
255
+ --border-primary: var(--color-als-gray-500);
256
+ --border-secondary: var(--color-als-gray-100);
257
+ --border-focus: var(--color-als-blue-500);
258
+
259
+ /* Menu Size */
260
+ --sidenav-width-expanded: 16rem; /* 256px */
261
+ --sidenav-width-collapsed: 4rem; /* 64px */
262
+
263
+ /* Header Size */
264
+ --header-height: 4rem; /* 64px */
136
265
  }
137
266
  ```
138
267
 
@@ -147,7 +276,7 @@ pnpm run build:lib
147
276
  ### Running Storybook
148
277
 
149
278
  ```bash
150
- pnpm run storybook
279
+ pnpm storybook
151
280
  ```
152
281
 
153
282
  ### Running Tests
@@ -156,17 +285,11 @@ pnpm run storybook
156
285
  pnpm test
157
286
  ```
158
287
 
159
- ## Contributing
160
-
161
- Contributions are welcome! Please read our contributing guidelines before submitting PRs.
162
-
163
288
  ## License
164
289
 
165
290
  MIT © ALS TP
166
291
 
167
292
  ## Links
168
293
 
169
- - [GitHub Repository](https://github.com/als-tp/als-react-ts-ui)
170
- - [Issue Tracker](https://github.com/als-tp/als-react-ts-ui/issues)
171
294
  - [Base UI Documentation](https://base-ui.com/)
172
295