osi-cards-lib 1.5.32 → 1.5.34

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/fesm2022/osi-cards-lib.mjs +31889 -0
  2. package/fesm2022/osi-cards-lib.mjs.map +1 -0
  3. package/index.d.ts +11528 -0
  4. package/package.json +25 -13
  5. package/scripts/setup-angular-styles.js +169 -0
  6. package/styles/_components.scss +38 -0
  7. package/styles/_index.scss +25 -0
  8. package/styles/_osi-cards-mixins.scss +459 -0
  9. package/styles/_osi-cards-tokens.scss +333 -0
  10. package/styles/_styles-scoped.scss +81 -0
  11. package/styles/_styles.scss +26 -0
  12. package/styles/bundles/_ai-card.scss +245 -0
  13. package/styles/bundles/_all.scss +68 -0
  14. package/styles/bundles/_base.scss +60 -0
  15. package/styles/bundles/_card-skeleton.scss +290 -0
  16. package/styles/bundles/_index.scss +25 -0
  17. package/styles/bundles/_sections.scss +48 -0
  18. package/styles/bundles/_tokens-only.scss +139 -0
  19. package/styles/components/_ai-card-renderer.scss +104 -0
  20. package/styles/components/_badges.scss +317 -0
  21. package/styles/components/_card-actions.scss +169 -0
  22. package/styles/components/_card-footer.scss +47 -0
  23. package/styles/components/_component-styles.scss +205 -0
  24. package/styles/components/_empty-state.scss +630 -0
  25. package/styles/components/_hero-card.scss +422 -0
  26. package/styles/components/_image-fallback.scss +28 -0
  27. package/styles/components/_streaming-effects.scss +518 -0
  28. package/styles/components/cards/_ai-card.scss +718 -0
  29. package/styles/components/sections/_all-sections.generated.scss +41 -0
  30. package/styles/components/sections/_all-sections.scss +1086 -0
  31. package/styles/components/sections/_balanced-compact-system.scss +186 -0
  32. package/styles/components/sections/_compact-mixins.scss +180 -0
  33. package/styles/components/sections/_component-mixins.scss +454 -0
  34. package/styles/components/sections/_design-system.scss +477 -0
  35. package/styles/components/sections/_design-tokens.scss +308 -0
  36. package/styles/components/sections/_enhanced-design-variables.scss +147 -0
  37. package/styles/components/sections/_master-compact-system.scss +302 -0
  38. package/styles/components/sections/_master-dense-system.scss +239 -0
  39. package/styles/components/sections/_minimalistic-design.scss +268 -0
  40. package/styles/components/sections/_modern-effects.scss +392 -0
  41. package/styles/components/sections/_modern-sections.scss +351 -0
  42. package/styles/components/sections/_perfect-system.scss +204 -0
  43. package/styles/components/sections/_section-animations.scss +331 -0
  44. package/styles/components/sections/_section-shell.scss +337 -0
  45. package/styles/components/sections/_section-types.generated.scss +30 -0
  46. package/styles/components/sections/_sections-all.scss +26 -0
  47. package/styles/components/sections/_sections-base.scss +334 -0
  48. package/styles/components/sections/_typography-system.scss +327 -0
  49. package/styles/components/sections/_ultra-compact-tokens.scss +375 -0
  50. package/styles/components/sections/_unified-section-style.scss +157 -0
  51. package/styles/components/sections/_utility-classes.scss +567 -0
  52. package/styles/components/sections/_visual-effects-library.scss +374 -0
  53. package/styles/core/_animations.scss +1498 -0
  54. package/styles/core/_bootstrap-reset.scss +445 -0
  55. package/styles/core/_color-helpers.scss +46 -0
  56. package/styles/core/_global-unified.scss +118 -0
  57. package/styles/core/_global.scss +73 -0
  58. package/styles/core/_mixins.scss +491 -0
  59. package/styles/core/_surface-layers.scss +76 -0
  60. package/styles/core/_utilities.scss +326 -0
  61. package/styles/core/_variables-unified.scss +57 -0
  62. package/styles/core/_variables.scss +36 -0
  63. package/styles/core/variables/_colors-source.scss +34 -0
  64. package/styles/core/variables/_colors-unified.scss +26 -0
  65. package/styles/core/variables/_colors.scss +21 -0
  66. package/styles/critical.scss +353 -0
  67. package/styles/design-system/_compact-theme.scss +159 -0
  68. package/styles/design-system/_section-base.scss +426 -0
  69. package/styles/design-system/_tokens.scss +237 -0
  70. package/styles/design-system/_unified-sections.scss +215 -0
  71. package/styles/layout/_feature-grid.scss +322 -0
  72. package/styles/layout/_masonry.scss +734 -0
  73. package/styles/layout/_tilt.scss +244 -0
  74. package/styles/micro-interactions.scss +583 -0
  75. package/styles/mixins/_section-mixins.scss +280 -0
  76. package/styles/non-critical.scss +643 -0
  77. package/styles/reset/_framework-reset.scss +457 -0
  78. package/styles/reset/_index.scss +14 -0
  79. package/styles/reset/_shadow-reset.scss +383 -0
  80. package/styles/responsive.scss +326 -0
  81. package/styles/themes.scss +573 -0
  82. package/styles/tokens/_index.scss +92 -0
  83. package/styles/tokens/_master.scss +1404 -0
  84. package/styles/tokens/_section-tokens.generated.scss +140 -0
  85. package/postcss.config.js +0 -81
  86. package/section-registry.json +0 -3864
  87. package/section-registry.schema.json +0 -264
@@ -0,0 +1,244 @@
1
+ /* ===================================================================
2
+ TILT & GLOW ANIMATIONS
3
+ Performance-optimized 3D tilt effects with dynamic lighting
4
+ =================================================================== */
5
+
6
+ /* Base tilt container with 3D perspective - Optimized for smooth mouse following */
7
+ /* Cross-browser compatible with vendor prefixes for Safari */
8
+ .tilt-container {
9
+ /* 3D transform with hardware acceleration - using CSS variables for smooth updates */
10
+ /* Vendor prefixes for Safari compatibility */
11
+ -webkit-transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg))
12
+ scale(var(--tilt-scale, 1)) translateZ(0);
13
+ transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg))
14
+ scale(var(--tilt-scale, 1)) translateZ(0);
15
+ /* Force GPU acceleration */
16
+ -webkit-backface-visibility: hidden;
17
+ backface-visibility: hidden; /* Prevent flickering */
18
+
19
+ /* No CSS transitions on transform - JavaScript handles smooth updates */
20
+ /* Only transition box-shadow for glow effect */
21
+ transition: box-shadow 200ms cubic-bezier(0.2, 0, 0.2, 1);
22
+ -webkit-transition: box-shadow 200ms cubic-bezier(0.2, 0, 0.2, 1);
23
+
24
+ /* Enable 3D rendering */
25
+ -webkit-transform-style: preserve-3d;
26
+ transform-style: preserve-3d;
27
+
28
+ position: relative;
29
+ border-radius: var(--card-border-radius);
30
+
31
+ /* Performance optimizations - no paint to prevent glow clipping */
32
+ contain: layout style; /* Don't use paint - it clips shadows/glow */
33
+ isolation: isolate; /* Create new stacking context */
34
+ will-change: transform; /* Hint browser about upcoming transforms */
35
+
36
+ /* Optimize compositing */
37
+ -webkit-transform-origin: center center;
38
+ transform-origin: center center;
39
+ }
40
+
41
+ /* Smooth exit transition - longer duration when mouse leaves */
42
+ .tilt-container:not(:hover) {
43
+ /* Smooth exit for glow only - transform handled by JavaScript */
44
+ transition: box-shadow 800ms cubic-bezier(0.22, 0.61, 0.36, 1);
45
+ will-change: auto;
46
+ }
47
+
48
+ .tilt-container:hover {
49
+ /* Hint browser about upcoming transform changes */
50
+ will-change: transform;
51
+ /* Orange glow only - no dark shadows, intensified by 50% */
52
+ box-shadow: 0 0 var(--glow-blur) var(--glow-color, rgba(255, 121, 0, 0.375));
53
+ /* Smooth transition for glow only - transform handled by JavaScript */
54
+ transition: box-shadow 200ms cubic-bezier(0.2, 0, 0.2, 1);
55
+ }
56
+
57
+ /* Glow container for filter-based effects - Cross-browser compatible */
58
+ .glow-container {
59
+ position: relative;
60
+ /* Always show base glow - smooth transitions, intensified by 50% */
61
+ -webkit-filter: drop-shadow(0 0 var(--glow-blur) var(--glow-color, rgba(255, 121, 0, 0.225)));
62
+ filter: drop-shadow(0 0 var(--glow-blur) var(--glow-color, rgba(255, 121, 0, 0.225)));
63
+ -webkit-transition: filter 200ms cubic-bezier(0.4, 0, 0.2, 1);
64
+ transition: filter 200ms cubic-bezier(0.4, 0, 0.2, 1);
65
+ will-change: filter;
66
+
67
+ /* Performance optimizations */
68
+ contain: layout style; /* Don't use paint - it clips shadows */
69
+ isolation: isolate; /* Create new stacking context */
70
+
71
+ /* Optimize compositing - cross-browser */
72
+ -webkit-transform: translateZ(0); /* Force GPU layer */
73
+ transform: translateZ(0); /* Force GPU layer */
74
+ }
75
+
76
+ .glow-container:hover {
77
+ will-change: filter;
78
+ /* Faster enter transition - cross-browser */
79
+ -webkit-transition: filter 200ms cubic-bezier(0.4, 0, 0.2, 1);
80
+ transition: filter 200ms cubic-bezier(0.4, 0, 0.2, 1);
81
+ }
82
+
83
+ .glow-container:not(:hover) {
84
+ will-change: auto;
85
+ /* Smooth exit transition - longer duration for smooth completion - cross-browser */
86
+ -webkit-transition: filter 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
87
+ transition: filter 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
88
+ }
89
+
90
+ /* Card reflection overlay */
91
+ .card-reflection {
92
+ position: absolute;
93
+ inset: 0;
94
+ background: transparent;
95
+ opacity: var(--reflection-opacity, 0.08);
96
+ transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1);
97
+ pointer-events: none;
98
+ border-radius: inherit;
99
+
100
+ /* Optimize as overlay */
101
+ will-change: opacity;
102
+ backface-visibility: hidden;
103
+ }
104
+
105
+ /* Smooth exit transition for reflection */
106
+ .tilt-container:not(:hover) .card-reflection {
107
+ transition: opacity 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
108
+ }
109
+
110
+ /* Wrapper for nested 3D transforms */
111
+ .tilt-wrapper {
112
+ transform-style: preserve-3d;
113
+ transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
114
+ backface-visibility: hidden;
115
+
116
+ /* Optimize transforms */
117
+ contain: layout style;
118
+ }
119
+
120
+ /* Content inside tilt effect */
121
+ .tilt-content {
122
+ transform-style: preserve-3d;
123
+ backface-visibility: hidden;
124
+ }
125
+
126
+ /* Glare/highlight effect that follows mouse */
127
+ .tilt-glare {
128
+ position: absolute;
129
+ inset: 0;
130
+ pointer-events: none;
131
+ border-radius: inherit;
132
+ background: transparent;
133
+ opacity: var(--glare-opacity, 0);
134
+ transition: opacity var(--glow-duration) var(--ease-out-smooth);
135
+
136
+ /* Optimize as overlay */
137
+ will-change: opacity;
138
+ backface-visibility: hidden;
139
+ }
140
+
141
+ /* ===================================================================
142
+ MOBILE OPTIMIZATIONS
143
+ Reduce tilt intensity on smaller screens for better performance
144
+ =================================================================== */
145
+
146
+ @media (max-width: 768px) {
147
+ .tilt-container {
148
+ /* Reduce perspective for subtler effect on mobile, but keep doubled tilt */
149
+ -webkit-transform: perspective(800px) rotateX(calc(var(--tilt-x, 0deg) * 0.7))
150
+ rotateY(calc(var(--tilt-y, 0deg) * 0.7)) scale(var(--tilt-scale, 1)) translateZ(0);
151
+ transform: perspective(800px) rotateX(calc(var(--tilt-x, 0deg) * 0.7))
152
+ rotateY(calc(var(--tilt-y, 0deg) * 0.7)) scale(var(--tilt-scale, 1)) translateZ(0);
153
+ }
154
+
155
+ .tilt-container:hover {
156
+ /* Orange glow only - no dark shadows, intensified by 50% */
157
+ box-shadow: 0 0 var(--glow-blur) var(--glow-color, rgba(255, 121, 0, 0.375));
158
+ }
159
+ }
160
+
161
+ /* ===================================================================
162
+ FULLSCREEN MODE - DISABLE TILT
163
+ Tilt effects disabled in fullscreen for better usability
164
+ =================================================================== */
165
+
166
+ .ai-card-surface--fullscreen {
167
+ .tilt-container {
168
+ /* Reset all tilt transforms in fullscreen - cross-browser compatible */
169
+ -webkit-transform: perspective(1000px) translateZ(0) !important;
170
+ transform: perspective(1000px) translateZ(0) !important;
171
+ box-shadow: none !important;
172
+ will-change: auto !important;
173
+ }
174
+
175
+ .glow-container {
176
+ -webkit-filter: none !important;
177
+ filter: none !important;
178
+ will-change: auto !important;
179
+ }
180
+
181
+ .card-reflection,
182
+ .tilt-glare {
183
+ opacity: 0 !important;
184
+ display: none; /* Completely remove from rendering */
185
+ }
186
+ }
187
+
188
+ /* ===================================================================
189
+ TILT DISABLED STATE
190
+ When tilt is explicitly disabled via class
191
+ =================================================================== */
192
+
193
+ .tilt-disabled {
194
+ -webkit-transform: perspective(1000px) translateZ(0) !important;
195
+ transform: perspective(1000px) translateZ(0) !important;
196
+ box-shadow: none !important;
197
+ will-change: auto !important;
198
+ }
199
+
200
+ .tilt-disabled .glow-container {
201
+ -webkit-filter: none !important;
202
+ filter: none !important;
203
+ will-change: auto !important;
204
+ }
205
+
206
+ /* ===================================================================
207
+ REDUCED MOTION SUPPORT
208
+ Disable tilt effects for accessibility
209
+ =================================================================== */
210
+
211
+ @media (prefers-reduced-motion: reduce) {
212
+ .tilt-container,
213
+ .tilt-wrapper {
214
+ -webkit-transform: none !important;
215
+ transform: none !important;
216
+ -webkit-transition: none !important;
217
+ transition: none !important;
218
+ }
219
+
220
+ .tilt-container:hover {
221
+ box-shadow: none !important;
222
+ }
223
+
224
+ .glow-container {
225
+ -webkit-filter: none !important;
226
+ filter: none !important;
227
+ -webkit-transition: none !important;
228
+ transition: none !important;
229
+ }
230
+
231
+ .card-reflection,
232
+ .tilt-glare {
233
+ opacity: 0 !important;
234
+ transition: none !important;
235
+ }
236
+
237
+ /* Remove will-change hints */
238
+ .tilt-container,
239
+ .glow-container,
240
+ .card-reflection,
241
+ .tilt-glare {
242
+ will-change: auto !important;
243
+ }
244
+ }