osi-cards-lib 1.5.30 → 1.5.32
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/README.md +58 -20
- package/package.json +13 -25
- package/postcss.config.js +81 -0
- package/section-registry.json +3864 -0
- package/section-registry.schema.json +264 -0
- package/fesm2022/osi-cards-lib.mjs +0 -31878
- package/fesm2022/osi-cards-lib.mjs.map +0 -1
- package/index.d.ts +0 -11522
- package/scripts/setup-angular-styles.js +0 -169
- package/styles/_components.scss +0 -38
- package/styles/_index.scss +0 -25
- package/styles/_osi-cards-mixins.scss +0 -459
- package/styles/_osi-cards-tokens.scss +0 -333
- package/styles/_styles-scoped.scss +0 -81
- package/styles/_styles.scss +0 -26
- package/styles/bundles/_ai-card.scss +0 -245
- package/styles/bundles/_all.scss +0 -68
- package/styles/bundles/_base.scss +0 -60
- package/styles/bundles/_card-skeleton.scss +0 -290
- package/styles/bundles/_index.scss +0 -25
- package/styles/bundles/_sections.scss +0 -48
- package/styles/bundles/_tokens-only.scss +0 -139
- package/styles/components/_ai-card-renderer.scss +0 -104
- package/styles/components/_badges.scss +0 -317
- package/styles/components/_card-actions.scss +0 -169
- package/styles/components/_card-footer.scss +0 -47
- package/styles/components/_component-styles.scss +0 -205
- package/styles/components/_empty-state.scss +0 -630
- package/styles/components/_hero-card.scss +0 -422
- package/styles/components/_image-fallback.scss +0 -28
- package/styles/components/_streaming-effects.scss +0 -518
- package/styles/components/cards/_ai-card.scss +0 -718
- package/styles/components/sections/_all-sections.generated.scss +0 -41
- package/styles/components/sections/_all-sections.scss +0 -1086
- package/styles/components/sections/_balanced-compact-system.scss +0 -186
- package/styles/components/sections/_compact-mixins.scss +0 -180
- package/styles/components/sections/_component-mixins.scss +0 -454
- package/styles/components/sections/_design-system.scss +0 -477
- package/styles/components/sections/_design-tokens.scss +0 -308
- package/styles/components/sections/_enhanced-design-variables.scss +0 -147
- package/styles/components/sections/_master-compact-system.scss +0 -302
- package/styles/components/sections/_master-dense-system.scss +0 -239
- package/styles/components/sections/_minimalistic-design.scss +0 -268
- package/styles/components/sections/_modern-effects.scss +0 -392
- package/styles/components/sections/_modern-sections.scss +0 -351
- package/styles/components/sections/_perfect-system.scss +0 -204
- package/styles/components/sections/_section-animations.scss +0 -331
- package/styles/components/sections/_section-shell.scss +0 -337
- package/styles/components/sections/_section-types.generated.scss +0 -30
- package/styles/components/sections/_sections-all.scss +0 -26
- package/styles/components/sections/_sections-base.scss +0 -334
- package/styles/components/sections/_typography-system.scss +0 -327
- package/styles/components/sections/_ultra-compact-tokens.scss +0 -375
- package/styles/components/sections/_unified-section-style.scss +0 -157
- package/styles/components/sections/_utility-classes.scss +0 -567
- package/styles/components/sections/_visual-effects-library.scss +0 -374
- package/styles/core/_animations.scss +0 -1498
- package/styles/core/_bootstrap-reset.scss +0 -445
- package/styles/core/_color-helpers.scss +0 -46
- package/styles/core/_global-unified.scss +0 -118
- package/styles/core/_global.scss +0 -73
- package/styles/core/_mixins.scss +0 -491
- package/styles/core/_surface-layers.scss +0 -76
- package/styles/core/_utilities.scss +0 -326
- package/styles/core/_variables-unified.scss +0 -57
- package/styles/core/_variables.scss +0 -36
- package/styles/core/variables/_colors-source.scss +0 -34
- package/styles/core/variables/_colors-unified.scss +0 -26
- package/styles/core/variables/_colors.scss +0 -21
- package/styles/critical.scss +0 -353
- package/styles/design-system/_compact-theme.scss +0 -159
- package/styles/design-system/_section-base.scss +0 -426
- package/styles/design-system/_tokens.scss +0 -237
- package/styles/design-system/_unified-sections.scss +0 -215
- package/styles/layout/_feature-grid.scss +0 -322
- package/styles/layout/_masonry.scss +0 -734
- package/styles/layout/_tilt.scss +0 -244
- package/styles/micro-interactions.scss +0 -583
- package/styles/mixins/_section-mixins.scss +0 -280
- package/styles/non-critical.scss +0 -643
- package/styles/reset/_framework-reset.scss +0 -457
- package/styles/reset/_index.scss +0 -14
- package/styles/reset/_shadow-reset.scss +0 -383
- package/styles/responsive.scss +0 -326
- package/styles/themes.scss +0 -573
- package/styles/tokens/_index.scss +0 -92
- package/styles/tokens/_master.scss +0 -1404
- package/styles/tokens/_section-tokens.generated.scss +0 -140
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Section Mixins
|
|
3
|
-
*
|
|
4
|
-
* Common SCSS mixins for section components to reduce duplication
|
|
5
|
-
* and ensure consistent styling across all section types.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Base section container styles
|
|
10
|
-
* Apply to all section root elements
|
|
11
|
-
*/
|
|
12
|
-
@mixin section-base {
|
|
13
|
-
padding: var(--section-padding, 1rem);
|
|
14
|
-
border-radius: var(--section-border-radius, 0.5rem);
|
|
15
|
-
background: var(--section-background, transparent);
|
|
16
|
-
transition: background var(--osi-card-transition-normal, 200ms) ease;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Section header styles
|
|
21
|
-
* Apply to section title/header elements
|
|
22
|
-
*/
|
|
23
|
-
@mixin section-header {
|
|
24
|
-
font-size: var(--section-title-size, 1rem);
|
|
25
|
-
font-weight: var(--section-title-weight, 600);
|
|
26
|
-
color: var(--section-title-color, var(--osi-card-foreground));
|
|
27
|
-
margin-bottom: var(--section-header-gap, 0.75rem);
|
|
28
|
-
line-height: 1.3;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Section footer styles
|
|
33
|
-
* Apply to section footer elements
|
|
34
|
-
*/
|
|
35
|
-
@mixin section-footer {
|
|
36
|
-
margin-top: var(--section-footer-gap, 0.75rem);
|
|
37
|
-
padding-top: var(--section-footer-gap, 0.75rem);
|
|
38
|
-
border-top: 1px solid var(--osi-card-border, #e5e7eb);
|
|
39
|
-
font-size: var(--section-footer-size, 0.75rem);
|
|
40
|
-
color: var(--osi-card-muted, #6b7280);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Field grid layout for key-value pairs
|
|
45
|
-
* @param $columns - Number of columns (default: 2)
|
|
46
|
-
*/
|
|
47
|
-
@mixin section-field-grid($columns: 2) {
|
|
48
|
-
display: grid;
|
|
49
|
-
grid-template-columns: repeat($columns, 1fr);
|
|
50
|
-
gap: var(--section-field-gap, 0.75rem);
|
|
51
|
-
|
|
52
|
-
@media (max-width: 640px) {
|
|
53
|
-
grid-template-columns: 1fr; // Single column on mobile
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Field item styles (for individual fields)
|
|
59
|
-
*/
|
|
60
|
-
@mixin field-item {
|
|
61
|
-
padding: var(--field-padding, 0.75rem);
|
|
62
|
-
border-radius: var(--field-border-radius, 0.375rem);
|
|
63
|
-
background: var(--field-background, rgba(0, 0, 0, 0.02));
|
|
64
|
-
border: 1px solid var(--field-border-color, transparent);
|
|
65
|
-
transition: all var(--osi-card-transition-fast, 150ms) ease;
|
|
66
|
-
|
|
67
|
-
&:hover {
|
|
68
|
-
background: var(--field-background-hover, rgba(0, 0, 0, 0.04));
|
|
69
|
-
border-color: var(--field-border-hover, var(--osi-card-border));
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Field label styles
|
|
75
|
-
*/
|
|
76
|
-
@mixin field-label {
|
|
77
|
-
font-size: var(--field-label-size, 0.75rem);
|
|
78
|
-
font-weight: var(--field-label-weight, 500);
|
|
79
|
-
color: var(--field-label-color, var(--osi-card-muted));
|
|
80
|
-
text-transform: uppercase;
|
|
81
|
-
letter-spacing: 0.05em;
|
|
82
|
-
margin-bottom: 0.25rem;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Field value styles
|
|
87
|
-
*/
|
|
88
|
-
@mixin field-value {
|
|
89
|
-
font-size: var(--field-value-size, 0.875rem);
|
|
90
|
-
font-weight: var(--field-value-weight, 400);
|
|
91
|
-
color: var(--field-value-color, var(--osi-card-foreground));
|
|
92
|
-
line-height: 1.4;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* Item list layout (for list-based sections)
|
|
97
|
-
*/
|
|
98
|
-
@mixin section-item-list {
|
|
99
|
-
display: flex;
|
|
100
|
-
flex-direction: column;
|
|
101
|
-
gap: var(--section-item-gap, 0.5rem);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Individual item in a list
|
|
106
|
-
*/
|
|
107
|
-
@mixin list-item {
|
|
108
|
-
padding: var(--item-padding, 0.75rem);
|
|
109
|
-
border-radius: var(--item-border-radius, 0.375rem);
|
|
110
|
-
background: var(--item-background, transparent);
|
|
111
|
-
border: 1px solid var(--item-border-color, var(--osi-card-border));
|
|
112
|
-
transition: all var(--osi-card-transition-fast, 150ms) ease;
|
|
113
|
-
|
|
114
|
-
&:hover {
|
|
115
|
-
background: var(--item-background-hover, rgba(0, 0, 0, 0.02));
|
|
116
|
-
border-color: var(--item-border-hover, var(--osi-card-accent));
|
|
117
|
-
transform: translateX(2px);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* Responsive grid that adapts to container size
|
|
123
|
-
* @param $min-width - Minimum column width
|
|
124
|
-
*/
|
|
125
|
-
@mixin responsive-grid($min-width: 260px) {
|
|
126
|
-
display: grid;
|
|
127
|
-
grid-template-columns: repeat(auto-fit, minmax($min-width, 1fr));
|
|
128
|
-
gap: var(--grid-gap, 1rem);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Compact mode for dense layouts
|
|
133
|
-
*/
|
|
134
|
-
@mixin compact-mode {
|
|
135
|
-
padding: var(--section-padding-compact, 0.5rem);
|
|
136
|
-
|
|
137
|
-
.field-item {
|
|
138
|
-
padding: var(--field-padding-compact, 0.5rem);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.section-header {
|
|
142
|
-
font-size: var(--section-title-size-compact, 0.875rem);
|
|
143
|
-
margin-bottom: var(--section-header-gap-compact, 0.5rem);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Loading state placeholder
|
|
149
|
-
*/
|
|
150
|
-
@mixin loading-state {
|
|
151
|
-
opacity: 0.6;
|
|
152
|
-
pointer-events: none;
|
|
153
|
-
|
|
154
|
-
&::after {
|
|
155
|
-
content: "";
|
|
156
|
-
position: absolute;
|
|
157
|
-
top: 0;
|
|
158
|
-
left: 0;
|
|
159
|
-
right: 0;
|
|
160
|
-
bottom: 0;
|
|
161
|
-
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
|
|
162
|
-
animation: loading-shimmer 1.5s infinite;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
@keyframes loading-shimmer {
|
|
166
|
-
0% {
|
|
167
|
-
transform: translateX(-100%);
|
|
168
|
-
}
|
|
169
|
-
100% {
|
|
170
|
-
transform: translateX(100%);
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* Error state styling
|
|
177
|
-
*/
|
|
178
|
-
@mixin error-state {
|
|
179
|
-
border-color: var(--osi-card-destructive, #ef4444);
|
|
180
|
-
background: rgba(239, 68, 68, 0.05);
|
|
181
|
-
|
|
182
|
-
.section-header {
|
|
183
|
-
color: var(--osi-card-destructive, #ef4444);
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* Action bar at bottom of sections
|
|
189
|
-
*/
|
|
190
|
-
@mixin section-action-bar {
|
|
191
|
-
display: flex;
|
|
192
|
-
gap: 0.5rem;
|
|
193
|
-
margin-top: 1rem;
|
|
194
|
-
padding-top: 0.75rem;
|
|
195
|
-
border-top: 1px solid var(--osi-card-border, #e5e7eb);
|
|
196
|
-
|
|
197
|
-
button {
|
|
198
|
-
padding: 0.5rem 1rem;
|
|
199
|
-
border-radius: 0.25rem;
|
|
200
|
-
font-size: 0.875rem;
|
|
201
|
-
font-weight: 500;
|
|
202
|
-
cursor: pointer;
|
|
203
|
-
transition: all var(--osi-card-transition-fast, 150ms) ease;
|
|
204
|
-
|
|
205
|
-
&:hover {
|
|
206
|
-
opacity: 0.9;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* Metric card styling (for analytics sections)
|
|
213
|
-
*/
|
|
214
|
-
@mixin metric-card {
|
|
215
|
-
padding: var(--metric-padding, 1rem);
|
|
216
|
-
border-radius: var(--metric-border-radius, 0.5rem);
|
|
217
|
-
background: var(--metric-background, var(--osi-card-accent));
|
|
218
|
-
color: var(--metric-foreground, var(--osi-card-accent-foreground));
|
|
219
|
-
text-align: center;
|
|
220
|
-
|
|
221
|
-
.metric-value {
|
|
222
|
-
font-size: var(--metric-value-size, 1.5rem);
|
|
223
|
-
font-weight: var(--metric-value-weight, 700);
|
|
224
|
-
margin-bottom: 0.25rem;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
.metric-label {
|
|
228
|
-
font-size: var(--metric-label-size, 0.75rem);
|
|
229
|
-
opacity: 0.9;
|
|
230
|
-
text-transform: uppercase;
|
|
231
|
-
letter-spacing: 0.05em;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* Section with icon styling
|
|
237
|
-
*/
|
|
238
|
-
@mixin section-with-icons {
|
|
239
|
-
.field-item,
|
|
240
|
-
.list-item {
|
|
241
|
-
display: flex;
|
|
242
|
-
align-items: center;
|
|
243
|
-
gap: 0.75rem;
|
|
244
|
-
|
|
245
|
-
.icon {
|
|
246
|
-
width: 20px;
|
|
247
|
-
height: 20px;
|
|
248
|
-
flex-shrink: 0;
|
|
249
|
-
color: var(--osi-card-accent, #6366f1);
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* Scrollable section container
|
|
256
|
-
*/
|
|
257
|
-
@mixin scrollable-section($max-height: 400px) {
|
|
258
|
-
max-height: $max-height;
|
|
259
|
-
overflow-y: auto;
|
|
260
|
-
overscroll-behavior: contain;
|
|
261
|
-
|
|
262
|
-
// Custom scrollbar
|
|
263
|
-
&::-webkit-scrollbar {
|
|
264
|
-
width: 8px;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
&::-webkit-scrollbar-track {
|
|
268
|
-
background: var(--osi-card-border, #e5e7eb);
|
|
269
|
-
border-radius: 4px;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
&::-webkit-scrollbar-thumb {
|
|
273
|
-
background: var(--osi-card-accent, #6366f1);
|
|
274
|
-
border-radius: 4px;
|
|
275
|
-
|
|
276
|
-
&:hover {
|
|
277
|
-
background: var(--osi-card-accent-hover, #4f46e5);
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
}
|