osi-cards-lib 1.5.38 → 1.5.40

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
@@ -9018,6 +9018,14 @@ declare class AICardRendererComponent implements OnInit, AfterViewInit, OnDestro
9018
9018
  * Makes an HTTP POST request to the LLM endpoint with a prompt to generate card data.
9019
9019
  */
9020
9020
  private generateFallbackCard;
9021
+ /**
9022
+ * Get the version string for display in tooltip
9023
+ */
9024
+ get versionString(): string;
9025
+ /**
9026
+ * Handle click on the signature to open OSI Cards website
9027
+ */
9028
+ onSignatureClick(): void;
9021
9029
  /**
9022
9030
  * Validates that animation providers are configured.
9023
9031
  * Warns in development mode if animations are not available.
@@ -11488,11 +11496,11 @@ declare function packWithZeroGapsGuarantee(sections: CardSection[], columns?: nu
11488
11496
  * Do not edit manually - generated by scripts/generate-version.js
11489
11497
  *
11490
11498
  * Source of truth: version.config.json
11491
- * Last synced: 2025-12-15T09:21:17.528Z
11499
+ * Last synced: 2025-12-15T12:34:41.034Z
11492
11500
  */
11493
- declare const VERSION = "1.5.19";
11494
- declare const BUILD_DATE = "2025-12-15T09:21:17.528Z";
11495
- declare const BUILD_HASH = "9010f4a";
11501
+ declare const VERSION = "1.5.40";
11502
+ declare const BUILD_DATE = "2025-12-15T12:34:41.034Z";
11503
+ declare const BUILD_HASH = "5e74926";
11496
11504
  declare const BUILD_BRANCH = "main";
11497
11505
  interface VersionInfo {
11498
11506
  version: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "osi-cards-lib",
3
- "version": "1.5.38",
3
+ "version": "1.5.40",
4
4
  "description": "Standalone OSI Cards library for Angular applications with CSS Layer support for easy style overrides",
5
5
  "keywords": [
6
6
  "angular",
@@ -54,7 +54,7 @@
54
54
  display: flex;
55
55
  justify-content: center;
56
56
  align-items: flex-start;
57
- padding: 8px;
57
+ padding: var(--osi-card-padding, 16px) !important;
58
58
  background: transparent !important;
59
59
  background-color: transparent !important;
60
60
  min-height: 0;
@@ -76,7 +76,7 @@
76
76
 
77
77
  // Responsive: reduce padding on mobile
78
78
  @media (max-width: 480px) {
79
- padding: 4px;
79
+ padding: var(--osi-card-padding-mobile, 4px) !important;
80
80
  }
81
81
 
82
82
  // Bootstrap isolation - must come first to reset external Bootstrap variables
@@ -203,7 +203,3 @@ app-card-streaming-indicator {
203
203
  white-space: nowrap;
204
204
  border: 0;
205
205
  }
206
-
207
-
208
-
209
-
@@ -20,8 +20,10 @@
20
20
  display: flex;
21
21
  flex-direction: column;
22
22
  width: 100%;
23
+ max-width: 100%;
23
24
  min-height: 0; // Allow content to determine height
24
25
  overflow: visible;
26
+ box-sizing: border-box !important;
25
27
 
26
28
  /* CSS Isolation */
27
29
  isolation: isolate;
@@ -49,14 +51,17 @@
49
51
  box-shadow: var(--osi-card-shadow) !important;
50
52
 
51
53
  /* Padding - card-specific spacing */
52
- padding: var(--osi-card-padding) !important;
53
- padding-bottom: var(--osi-card-padding) !important;
54
+ padding: var(--osi-card-padding, 16px) !important;
55
+ padding-top: var(--osi-card-padding, 16px) !important;
56
+ padding-bottom: var(--osi-card-padding, 16px) !important;
57
+ padding-left: var(--osi-card-padding, 16px) !important;
58
+ padding-right: var(--osi-card-padding, 16px) !important;
54
59
 
55
60
  /* Border radius - card-specific (larger than sections) */
56
61
  border-radius: var(--osi-card-border-radius) !important;
57
62
 
58
63
  /* Gap - specific space between header and sections */
59
- gap: var(--osi-card-gap) !important;
64
+ gap: var(--osi-card-gap, 12px) !important;
60
65
  /* ========== END CARD SPECIFIC STYLES ========== */
61
66
 
62
67
  /* Smooth transitions */
@@ -483,8 +488,10 @@
483
488
  margin-bottom: 0 !important;
484
489
  display: flex;
485
490
  flex-direction: column;
486
- gap: var(--osi-card-body-gap); /* Constant gap between sections */
491
+ gap: var(--osi-card-body-gap, 12px) !important; /* Constant gap between sections */
487
492
  min-height: 0;
493
+ max-width: 100%;
494
+ box-sizing: border-box !important;
488
495
  /* Allow content to flow properly - no overflow clipping */
489
496
  overflow: visible;
490
497
  /* NO BORDER - completely invisible */
@@ -10,7 +10,7 @@
10
10
  --section-background: var(--osi-section-background);
11
11
  --section-background-hover: var(--osi-section-background-hover);
12
12
  --section-backdrop-filter: var(--osi-section-backdrop-filter);
13
- --section-spacing-bottom: var(--osi-section-spacing-bottom);
13
+ --section-spacing-bottom: var(--osi-section-spacing-bottom, 12px);
14
14
  --section-glow-background: var(--osi-section-glow-background);
15
15
  --section-glow-opacity-hover: var(--osi-section-glow-opacity-hover);
16
16
  --section-title-underline-length: var(--osi-section-title-underline-length);
@@ -18,8 +18,14 @@
18
18
  --section-title-underline-height: var(--osi-section-title-underline-height);
19
19
  --section-title-underline-offset: var(--osi-section-title-underline-offset);
20
20
  --section-title-hover-color: var(--osi-section-title-hover-color);
21
- height: 100% !important;
22
- margin-bottom: var(--section-spacing-bottom) !important;
21
+ height: auto !important;
22
+ min-height: 0 !important;
23
+ max-height: none !important;
24
+ margin-bottom: var(--section-spacing-bottom, 12px) !important;
25
+ margin-top: 0 !important;
26
+ margin-left: 0 !important;
27
+ margin-right: 0 !important;
28
+ box-sizing: border-box !important;
23
29
  -webkit-font-smoothing: antialiased !important;
24
30
  -moz-osx-font-smoothing: grayscale !important;
25
31
 
@@ -38,7 +44,8 @@
38
44
  .masonry-item & {
39
45
  display: flex !important;
40
46
  flex-direction: column !important;
41
- gap: var(--osi-section-gap) !important;
47
+ gap: var(--osi-section-gap, 12px) !important;
48
+ height: auto !important;
42
49
  }
43
50
  }
44
51
 
@@ -290,7 +290,6 @@
290
290
  /* Left accent border removed for consistency */
291
291
  }
292
292
 
293
-
294
293
  /* Flex grow sections - expand to fill space */
295
294
  .masonry-item--flex-grow {
296
295
  flex-grow: 1 !important;
@@ -649,11 +649,11 @@ $breakpoints: (
649
649
  --osi-card-shadow-fullscreen: none;
650
650
 
651
651
  // Card Spacing - Padding
652
- --osi-card-padding: var(--card-main-padding);
653
- --osi-card-padding-top: var(--card-main-padding);
654
- --osi-card-padding-bottom: var(--card-main-padding);
655
- --osi-card-padding-left: var(--card-main-padding);
656
- --osi-card-padding-right: var(--card-main-padding);
652
+ --osi-card-padding: var(--card-main-padding, 16px);
653
+ --osi-card-padding-top: var(--card-main-padding, 16px);
654
+ --osi-card-padding-bottom: var(--card-main-padding, 16px);
655
+ --osi-card-padding-left: var(--card-main-padding, 16px);
656
+ --osi-card-padding-right: var(--card-main-padding, 16px);
657
657
  --osi-card-padding-mobile: 4px; // Fixed padding - no responsive behavior
658
658
 
659
659
  // Card Spacing - Margins
@@ -663,9 +663,9 @@ $breakpoints: (
663
663
  --osi-card-margin-right: 0;
664
664
 
665
665
  // Card Spacing - Gaps
666
- --osi-card-gap: var(--section-card-gap);
667
- --osi-card-body-gap: var(--space-3);
668
- --osi-card-grid-gap: var(--section-card-gap);
666
+ --osi-card-gap: var(--section-card-gap, 12px);
667
+ --osi-card-body-gap: var(--space-3, 12px);
668
+ --osi-card-grid-gap: var(--section-card-gap, 12px);
669
669
 
670
670
  // Card Border Radius
671
671
  --osi-card-border-radius: var(--card-border-radius);
@@ -1118,6 +1118,10 @@ $breakpoints: (
1118
1118
  } @else {
1119
1119
  --background: #{$osi-background-dark};
1120
1120
  }
1121
+
1122
+ // Ensure base colors are always available (even if osi-theme-base wasn't called)
1123
+ @include osi-base-colors();
1124
+
1121
1125
  --surface-contrast-color: #{$osi-color-white};
1122
1126
  --foreground: #{$osi-foreground-dark};
1123
1127
  --muted: #242424;
@@ -1209,6 +1213,10 @@ $breakpoints: (
1209
1213
  @if $is-scoped {
1210
1214
  color-scheme: light;
1211
1215
  }
1216
+
1217
+ // Ensure base colors are always available (even if osi-theme-base wasn't called)
1218
+ @include osi-base-colors();
1219
+
1212
1220
  --background: #{$osi-background-light};
1213
1221
  --foreground: #{$osi-foreground-light};
1214
1222
  --muted: #f4f4f6;
@@ -1316,6 +1324,8 @@ $breakpoints: (
1316
1324
  /// @param {String} $variant - 'demo' for larger demo app, 'integration' for compact OSA
1317
1325
  /// @param {Boolean} $is-scoped - If true, outputs for nested context
1318
1326
  @mixin osi-tokens($variant: "demo", $is-scoped: false) {
1327
+ // Ensure base colors are always available
1328
+ @include osi-base-colors();
1319
1329
  @include osi-shadows();
1320
1330
  @include osi-radius();
1321
1331