@almadar/ui 5.121.3 → 5.121.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "5.121.3",
3
+ "version": "5.121.4",
4
4
  "description": "React UI components, hooks, and providers for Almadar",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -117,7 +117,7 @@
117
117
  "access": "public"
118
118
  },
119
119
  "dependencies": {
120
- "@almadar/core": "^10.29.0",
120
+ "@almadar/core": "^10.30.0",
121
121
  "@almadar/evaluator": "^2.30.0",
122
122
  "@almadar/logger": "^1.9.0",
123
123
  "@almadar/runtime": "^6.33.0",
@@ -84,6 +84,13 @@ module.exports = {
84
84
  'ring-2',
85
85
  'ring-primary',
86
86
 
87
+ // Motion utilities (applied conditionally on open/close state)
88
+ 'animate-modal-in',
89
+ 'animate-modal-out',
90
+ 'animate-overlay-in',
91
+ 'animate-overlay-out',
92
+ 'animate-slide-up',
93
+
87
94
  // Auto-added by audit-tailwind-safelist.ts (2026-03-28)
88
95
  'active:scale-[var(--active-scale)]',
89
96
  'animate-[combat-flash_0.2s_ease-in-out_2]',
@@ -363,6 +370,55 @@ module.exports = {
363
370
  emphasized: 'var(--easing-emphasized, cubic-bezier(0.2, 0, 0, 1))',
364
371
  spring: 'var(--easing-spring, cubic-bezier(0.34, 1.56, 0.64, 1))',
365
372
  },
373
+ keyframes: {
374
+ 'modal-in': {
375
+ '0%': {
376
+ opacity: 'var(--motion-modal-enter-from-opacity, 0)',
377
+ transform: 'var(--motion-modal-enter-from-transform, scale(0.96) translateY(8px))',
378
+ },
379
+ '100%': {
380
+ opacity: 'var(--motion-modal-enter-to-opacity, 1)',
381
+ transform: 'var(--motion-modal-enter-to-transform, translateZ(0))',
382
+ },
383
+ },
384
+ 'modal-out': {
385
+ '0%': {
386
+ opacity: 'var(--motion-modal-exit-from-opacity, 1)',
387
+ transform: 'var(--motion-modal-exit-from-transform, translateZ(0))',
388
+ },
389
+ '100%': {
390
+ opacity: 'var(--motion-modal-exit-to-opacity, 0)',
391
+ transform: 'var(--motion-modal-exit-to-transform, scale(0.96) translateY(8px))',
392
+ },
393
+ },
394
+ 'overlay-in': {
395
+ '0%': { opacity: 'var(--motion-overlay-from-opacity, 0)' },
396
+ '100%': { opacity: '1' },
397
+ },
398
+ 'overlay-out': {
399
+ '0%': { opacity: '1' },
400
+ '100%': { opacity: 'var(--motion-overlay-from-opacity, 0)' },
401
+ },
402
+ 'slide-up': {
403
+ '0%': {
404
+ opacity: 'var(--motion-slide-up-from-opacity, 0)',
405
+ transform: 'var(--motion-slide-up-from-transform, translateY(16px))',
406
+ },
407
+ '100%': {
408
+ opacity: '1',
409
+ transform: 'translateZ(0)',
410
+ },
411
+ },
412
+ },
413
+ animation: {
414
+ // Motion-token-driven durations/easings (fall back to legacy
415
+ // --transition-* so themes that haven't migrated keep working).
416
+ 'modal-in': 'modal-in var(--duration-normal, var(--transition-normal, 250ms)) var(--easing-standard, var(--transition-timing, cubic-bezier(0.4, 0, 0.2, 1)))',
417
+ 'modal-out': 'modal-out var(--duration-fast, var(--transition-fast, 150ms)) var(--easing-standard, var(--transition-timing, cubic-bezier(0.4, 0, 0.2, 1)))',
418
+ 'overlay-in': 'overlay-in var(--duration-normal, var(--transition-normal, 250ms)) var(--easing-standard, var(--transition-timing, cubic-bezier(0.4, 0, 0.2, 1)))',
419
+ 'overlay-out': 'overlay-out var(--duration-fast, var(--transition-fast, 150ms)) var(--easing-standard, var(--transition-timing, cubic-bezier(0.4, 0, 0.2, 1)))',
420
+ 'slide-up': 'slide-up var(--duration-slow, var(--transition-slow, 400ms)) var(--easing-emphasized, cubic-bezier(0.2, 0, 0, 1))',
421
+ },
366
422
  // Density-axis spacing scale. Tailwind's default `p-3` / `gap-4` resolve
367
423
  // here so existing classes keep working — but now read from tokens.
368
424
  // Defaults match Tailwind's default (12px / 16px / 24px for 3 / 4 / 6),
package/themes/_base.css CHANGED
@@ -121,4 +121,23 @@
121
121
  --card-padding-lg: 40px;
122
122
  --dialog-padding: 40px;
123
123
  --section-gap: 64px;
124
+
125
+ /* ----------------------------------------------------------------
126
+ * Motion-keyframe endpoints (animate-modal-in/out, animate-overlay-in/out,
127
+ * animate-slide-up). These are the "shape" of the built-in transitions;
128
+ * duration/easing come from --duration-* / --easing-*. Override any of
129
+ * these in a theme block to restyle the motion — e.g. a minimal theme
130
+ * sets --motion-modal-enter-from-transform: none for a pure fade.
131
+ * ---------------------------------------------------------------- */
132
+ --motion-overlay-from-opacity: 0;
133
+ --motion-modal-enter-from-opacity: 0;
134
+ --motion-modal-enter-from-transform: scale(0.96) translateY(8px);
135
+ --motion-modal-enter-to-opacity: 1;
136
+ --motion-modal-enter-to-transform: translateZ(0);
137
+ --motion-modal-exit-from-opacity: 1;
138
+ --motion-modal-exit-from-transform: translateZ(0);
139
+ --motion-modal-exit-to-opacity: 0;
140
+ --motion-modal-exit-to-transform: scale(0.96) translateY(8px);
141
+ --motion-slide-up-from-opacity: 0;
142
+ --motion-slide-up-from-transform: translateY(16px);
124
143
  }