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,205 @@
1
+ // ============================================
2
+ // COMPONENT-SPECIFIC STYLES FOR SHADOW DOM
3
+ // ============================================
4
+ //
5
+ // This file includes styles from components that use ViewEncapsulation.None.
6
+ // These styles must be included in the Shadow DOM bundle to work properly.
7
+ //
8
+ // Components included:
9
+ // - masonry-grid.component
10
+ // - section-renderer.component (minimal styles)
11
+ // - card-streaming-indicator.component
12
+ // - Other ViewEncapsulation.None components
13
+ //
14
+ // ============================================
15
+
16
+ // ============================================
17
+ // MASONRY GRID COMPONENT STYLES
18
+ // ============================================
19
+ // These styles are from masonry-grid.component.css
20
+ // Component uses ViewEncapsulation.None, so styles must be in Shadow DOM bundle
21
+
22
+ .masonry-container {
23
+ /* Pure CSS Grid - browser handles all positioning */
24
+ display: grid;
25
+ grid-template-columns: repeat(var(--masonry-columns, 4), 1fr);
26
+ gap: var(--masonry-gap, 12px);
27
+ width: 100%;
28
+ min-height: 0;
29
+ align-items: start;
30
+ }
31
+
32
+ /* Native CSS Masonry Support (when available) */
33
+ @supports (grid-template-rows: masonry) {
34
+ .masonry-container {
35
+ grid-template-rows: masonry;
36
+ grid-auto-rows: auto;
37
+ }
38
+ }
39
+
40
+ /* Fallback: Use row dense for gap filling */
41
+ @supports not (grid-template-rows: masonry) {
42
+ .masonry-container {
43
+ grid-auto-flow: row dense;
44
+ grid-auto-rows: min-content;
45
+ }
46
+ }
47
+
48
+ /* Streaming mode */
49
+ .masonry-container--streaming {
50
+ /* Smooth updates during streaming */
51
+ transition: none;
52
+ }
53
+
54
+ /* ============================================================
55
+ MASONRY ITEMS
56
+ ============================================================ */
57
+
58
+ .masonry-item {
59
+ /* CSS Grid handles positioning automatically */
60
+ position: relative;
61
+ width: 100%;
62
+ height: auto;
63
+ min-height: fit-content;
64
+ opacity: 1;
65
+ pointer-events: auto;
66
+
67
+ /* CSS containment for performance */
68
+ contain: layout style paint;
69
+
70
+ /* Ensure content determines height */
71
+ display: flex;
72
+ flex-direction: column;
73
+
74
+ /* Smooth transitions for grid-column changes */
75
+ transition:
76
+ grid-column 0.3s ease,
77
+ opacity 0.3s ease;
78
+ }
79
+
80
+ /* Gentle entrance animation for new sections */
81
+ .masonry-item--animating {
82
+ animation: masonry-gentle-enter 0.35s ease-out forwards;
83
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
84
+ overflow: hidden;
85
+ }
86
+
87
+ @keyframes masonry-gentle-enter {
88
+ 0% {
89
+ opacity: 0;
90
+ transform: translateY(8px);
91
+ }
92
+ 100% {
93
+ opacity: 1;
94
+ transform: translateY(0);
95
+ }
96
+ }
97
+
98
+ /* Shimmer effect for new items */
99
+ .masonry-item--animating::after {
100
+ content: "";
101
+ position: absolute;
102
+ inset: 0;
103
+ background: linear-gradient(
104
+ 110deg,
105
+ transparent 40%,
106
+ rgba(255, 149, 0, 0.08) 50%,
107
+ transparent 60%
108
+ );
109
+ animation: shimmer-sweep 0.5s ease-out forwards;
110
+ pointer-events: none;
111
+ border-radius: inherit;
112
+ z-index: 10;
113
+ }
114
+
115
+ @keyframes shimmer-sweep {
116
+ 0% {
117
+ transform: translateX(-100%);
118
+ opacity: 0.8;
119
+ }
120
+ 100% {
121
+ transform: translateX(100%);
122
+ opacity: 0;
123
+ }
124
+ }
125
+
126
+ /* Ensure content fills item */
127
+ .masonry-item > * {
128
+ display: block;
129
+ width: 100%;
130
+ height: auto;
131
+ }
132
+
133
+ /* ============================================================
134
+ RESPONSIVE OPTIMIZATIONS
135
+ ============================================================ */
136
+
137
+ /* Mobile: faster transitions */
138
+ @media (max-width: 768px) {
139
+ .masonry-container {
140
+ min-height: 300px;
141
+ }
142
+
143
+ .masonry-item {
144
+ transition: opacity 0.3s ease;
145
+ }
146
+ }
147
+
148
+ /* Wide screen */
149
+ @media (min-width: 1400px) {
150
+ .masonry-container {
151
+ min-height: 500px;
152
+ }
153
+ }
154
+
155
+ /* ============================================================
156
+ REDUCED MOTION SUPPORT
157
+ ============================================================ */
158
+
159
+ @media (prefers-reduced-motion: reduce) {
160
+ .masonry-container,
161
+ .masonry-item {
162
+ transition: none !important;
163
+ animation: none !important;
164
+ }
165
+
166
+ .masonry-item--animating::after {
167
+ display: none;
168
+ }
169
+ }
170
+
171
+ // ============================================
172
+ // SECTION RENDERER COMPONENT
173
+ // ============================================
174
+ // Minimal styles - component uses ViewEncapsulation.None
175
+ app-section-renderer {
176
+ display: block;
177
+ }
178
+
179
+ // ============================================
180
+ // CARD STREAMING INDICATOR
181
+ // ============================================
182
+ // Styles from card-streaming-indicator.component.css
183
+ // Component uses ViewEncapsulation.None
184
+
185
+ app-card-streaming-indicator {
186
+ display: block;
187
+ width: 100%;
188
+ }
189
+
190
+ // ============================================
191
+ // SCREEN READER UTILITIES
192
+ // ============================================
193
+ // Shared utility classes for accessibility
194
+
195
+ .sr-only {
196
+ position: absolute;
197
+ width: 1px;
198
+ height: 1px;
199
+ padding: 0;
200
+ margin: -1px;
201
+ overflow: hidden;
202
+ clip: rect(0, 0, 0, 0);
203
+ white-space: nowrap;
204
+ border: 0;
205
+ }