osi-cards-lib 1.5.25 → 1.5.27

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/index.d.ts CHANGED
@@ -4255,7 +4255,7 @@ declare class SectionRendererComponent implements OnChanges {
4255
4255
  protected isLazyLoading: boolean;
4256
4256
  protected lazyLoadError: Error | null;
4257
4257
  protected lazyType: LazySectionType;
4258
- theme: string;
4258
+ theme?: string;
4259
4259
  ngOnChanges(changes: SimpleChanges): void;
4260
4260
  /**
4261
4261
  * Load the appropriate component for the current section
@@ -11482,10 +11482,10 @@ declare function packWithZeroGapsGuarantee(sections: CardSection[], columns?: nu
11482
11482
  * Do not edit manually - generated by scripts/generate-version.js
11483
11483
  *
11484
11484
  * Source of truth: version.config.json
11485
- * Last synced: 2025-12-12T17:56:50.132Z
11485
+ * Last synced: 2025-12-12T18:53:19.261Z
11486
11486
  */
11487
11487
  declare const VERSION = "1.5.19";
11488
- declare const BUILD_DATE = "2025-12-12T17:56:50.132Z";
11488
+ declare const BUILD_DATE = "2025-12-12T18:53:19.261Z";
11489
11489
  declare const BUILD_HASH = "fbe56c9";
11490
11490
  declare const BUILD_BRANCH = "main";
11491
11491
  interface VersionInfo {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "osi-cards-lib",
3
- "version": "1.5.25",
3
+ "version": "1.5.27",
4
4
  "description": "Standalone OSI Cards library for Angular applications with CSS Layer support for easy style overrides",
5
5
  "keywords": [
6
6
  "angular",
@@ -25,6 +25,7 @@
25
25
  // Block display - let content determine height
26
26
  display: block;
27
27
  width: 100%;
28
+ min-height: 0; // Allow flex children to shrink
28
29
  }
29
30
 
30
31
  // Primary: Use :host([data-theme]) for explicit Shadow DOM scope (most reliable)
@@ -74,6 +75,9 @@
74
75
  @import "../components/cards/ai-card";
75
76
  @import "../components/_empty-state";
76
77
 
78
+ // 6a. Utility classes (w-full, h-full, flex-1, min-h-0, etc.)
79
+ @import "../components/sections/_utility-classes";
80
+
77
81
  // 7. Section Styles (consolidated)
78
82
  // Design system + sections base + section shell + all section types
79
83
  @import "../components/sections/sections-all";
@@ -122,6 +126,123 @@
122
126
  --leading-loose: 1.75;
123
127
  }
124
128
 
129
+ // 8. Component-specific optimizations (from demo app)
130
+ // Register CSS custom properties for browser-native interpolation
131
+ @supports (background: paint(id)) {
132
+ @property --tilt-x {
133
+ syntax: "<angle>";
134
+ initial-value: 0deg;
135
+ inherits: false;
136
+ }
137
+ @property --tilt-y {
138
+ syntax: "<angle>";
139
+ initial-value: 0deg;
140
+ inherits: false;
141
+ }
142
+ @property --glow-blur {
143
+ syntax: "<length>";
144
+ initial-value: 8px;
145
+ inherits: false;
146
+ }
147
+ @property --glow-color {
148
+ syntax: "<color>";
149
+ initial-value: rgba(255, 121, 0, 0.225);
150
+ inherits: false;
151
+ }
152
+ @property --reflection-opacity {
153
+ syntax: "<number>";
154
+ initial-value: 0;
155
+ inherits: false;
156
+ }
157
+ }
158
+
159
+ // Card container wrapper - CSS containment for performance
160
+ .card-container-wrapper {
161
+ contain: layout style;
162
+ }
163
+
164
+ // Tilt container optimizations (additional to _tilt.scss)
165
+ .tilt-container {
166
+ // Hint to browser about upcoming transform changes
167
+ will-change: transform;
168
+ // Force GPU compositing layer
169
+ transform: translate3d(0, 0, 0) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
170
+ transform-style: preserve-3d;
171
+ // CSS transitions for smooth glow (faster than JS per-frame updates)
172
+ transition: transform 0.1s ease-out;
173
+ }
174
+
175
+ // Glow container containment
176
+ .glow-container {
177
+ contain: layout style;
178
+ // Simplified box-shadow during idle - JS will add glow dynamically
179
+ box-shadow: 0 0 var(--glow-blur, 8px) var(--glow-color, rgba(255, 121, 0, 0.225));
180
+ transition: box-shadow 0.15s ease-out;
181
+ }
182
+
183
+ // Enhanced glow on hover
184
+ .card-container-wrapper:hover .glow-container {
185
+ // Enhanced glow on hover - CSS handles transition
186
+ box-shadow:
187
+ 0 0 var(--glow-blur, 8px) var(--glow-color, rgba(255, 121, 0, 0.225)),
188
+ 0 0 calc(var(--glow-blur, 8px) * 2) rgba(255, 121, 0, calc(var(--reflection-opacity, 0) * 0.5));
189
+ }
190
+
191
+ // Force border and background on card surface (matching demo app exactly)
192
+ .ai-card-surface {
193
+ border: 1px solid rgba(255, 255, 255, 0.08) !important;
194
+ background: rgba(20, 20, 20, 0.6) !important;
195
+ backdrop-filter: blur(12px) !important;
196
+ -webkit-backdrop-filter: blur(12px) !important;
197
+ box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2) !important;
198
+ transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
199
+ }
200
+
201
+ .ai-card-surface:hover {
202
+ border-color: rgba(255, 121, 0, 0.5) !important;
203
+ background: rgba(30, 30, 30, 0.8) !important;
204
+ box-shadow:
205
+ 0 20px 40px -5px rgba(0, 0, 0, 0.4),
206
+ 0 0 0 1px rgba(255, 121, 0, 0.2) !important;
207
+ }
208
+
209
+ // Section highlight animation for URL fragment scrolling
210
+ .section-highlight {
211
+ animation: section-pulse 2s ease-out;
212
+ position: relative;
213
+ }
214
+
215
+ .section-highlight::after {
216
+ content: "";
217
+ position: absolute;
218
+ inset: -4px;
219
+ border: 2px solid rgba(255, 121, 0, 0.6);
220
+ border-radius: 14px;
221
+ pointer-events: none;
222
+ animation: section-border-fade 2s ease-out forwards;
223
+ }
224
+
225
+ @keyframes section-pulse {
226
+ 0%,
227
+ 100% {
228
+ transform: scale(1);
229
+ }
230
+ 50% {
231
+ transform: scale(1.01);
232
+ }
233
+ }
234
+
235
+ @keyframes section-border-fade {
236
+ 0% {
237
+ opacity: 1;
238
+ box-shadow: 0 0 20px rgba(255, 121, 0, 0.4);
239
+ }
240
+ 100% {
241
+ opacity: 0;
242
+ box-shadow: 0 0 0 rgba(255, 121, 0, 0);
243
+ }
244
+ }
245
+
125
246
  // 10. Action buttons and footer (enforced styles for Shadow DOM)
126
247
  @import "../components/card-actions";
127
248
  @import "../components/card-footer";
@@ -19,7 +19,8 @@
19
19
  position: relative;
20
20
  display: flex;
21
21
  flex-direction: column;
22
- height: 100%;
22
+ width: 100%;
23
+ min-height: 0; // Allow content to determine height
23
24
  overflow: visible;
24
25
 
25
26
  /* CSS Isolation */
@@ -21,9 +21,13 @@
21
21
  all: initial;
22
22
 
23
23
  // Re-establish essential display properties
24
- display: block;
24
+ display: block !important;
25
25
  position: relative;
26
26
  box-sizing: border-box;
27
+ width: 100% !important;
28
+ min-height: 0; // Allow content to determine height
29
+ visibility: visible !important;
30
+ opacity: 1 !important;
27
31
 
28
32
  // Transparent container with 8px padding (library default)
29
33
  // Must be set here immediately after all:initial to ensure application