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,186 +0,0 @@
|
|
|
1
|
-
// =====================================================================
|
|
2
|
-
// BALANCED COMPACT SYSTEM - Smart Structure + Visual Appeal
|
|
3
|
-
// =====================================================================
|
|
4
|
-
//
|
|
5
|
-
// The key is SMART STRUCTURE, not just removing padding
|
|
6
|
-
// Balance between efficiency and aesthetics
|
|
7
|
-
//
|
|
8
|
-
// =====================================================================
|
|
9
|
-
|
|
10
|
-
:root {
|
|
11
|
-
// BALANCED spacing (not too cramped, not too spacious)
|
|
12
|
-
--balanced-space-2: 2px;
|
|
13
|
-
--balanced-space-3: 4px;
|
|
14
|
-
--balanced-space-4: 6px;
|
|
15
|
-
--balanced-space-5: 8px;
|
|
16
|
-
--balanced-space-6: 10px;
|
|
17
|
-
--balanced-space-7: 12px;
|
|
18
|
-
--balanced-space-8: 14px;
|
|
19
|
-
|
|
20
|
-
// Component spacing (visually pleasant)
|
|
21
|
-
--balanced-card-padding: 12px; // Cards need breathing room
|
|
22
|
-
--balanced-card-padding-mobile: 10px;
|
|
23
|
-
--balanced-item-padding-y: 10px; // Comfortable for touch
|
|
24
|
-
--balanced-item-padding-x: 12px;
|
|
25
|
-
--balanced-gap-tight: 6px; // Between close elements
|
|
26
|
-
--balanced-gap-comfortable: 8px; // Standard gap
|
|
27
|
-
--balanced-gap-spacious: 10px; // For visual separation
|
|
28
|
-
--balanced-section-gap: 10px; // Between sections
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// =====================================================================
|
|
32
|
-
// VISUAL APPEAL MIXINS
|
|
33
|
-
// =====================================================================
|
|
34
|
-
|
|
35
|
-
@mixin beautiful-card {
|
|
36
|
-
position: relative;
|
|
37
|
-
background: var(--card, #0c0c0c);
|
|
38
|
-
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
39
|
-
border-radius: 10px;
|
|
40
|
-
transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
41
|
-
box-sizing: border-box;
|
|
42
|
-
|
|
43
|
-
// Subtle accent line
|
|
44
|
-
&::before {
|
|
45
|
-
content: "";
|
|
46
|
-
position: absolute;
|
|
47
|
-
top: 0;
|
|
48
|
-
left: 0;
|
|
49
|
-
right: 0;
|
|
50
|
-
height: 2px;
|
|
51
|
-
background: linear-gradient(90deg, var(--accent, #ff7900) 0%, transparent 100%);
|
|
52
|
-
opacity: 0;
|
|
53
|
-
transition: opacity 250ms ease-out;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&:hover {
|
|
57
|
-
border-color: rgba(255, 255, 255, 0.15);
|
|
58
|
-
transform: translateY(-2px);
|
|
59
|
-
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
|
|
60
|
-
|
|
61
|
-
&::before {
|
|
62
|
-
opacity: 0.7;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
@mixin beautiful-list {
|
|
68
|
-
padding: var(--balanced-space-4);
|
|
69
|
-
background: var(--card, #0c0c0c);
|
|
70
|
-
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
71
|
-
border-radius: 10px;
|
|
72
|
-
box-sizing: border-box;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
@mixin beautiful-item {
|
|
76
|
-
padding: var(--balanced-item-padding-y) var(--balanced-item-padding-x);
|
|
77
|
-
border-radius: 6px;
|
|
78
|
-
transition: all 200ms ease-out;
|
|
79
|
-
box-sizing: border-box;
|
|
80
|
-
|
|
81
|
-
&:not(:last-child) {
|
|
82
|
-
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
&:hover {
|
|
86
|
-
background: rgba(255, 255, 255, 0.03);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
// =====================================================================
|
|
91
|
-
// TYPOGRAPHY - BALANCED (Readable + Compact)
|
|
92
|
-
// =====================================================================
|
|
93
|
-
|
|
94
|
-
@mixin text-label-balanced {
|
|
95
|
-
font-size: 0.65rem;
|
|
96
|
-
font-weight: 600;
|
|
97
|
-
letter-spacing: 0.05em;
|
|
98
|
-
text-transform: uppercase;
|
|
99
|
-
color: var(--muted-foreground, #999);
|
|
100
|
-
line-height: 1.2;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
@mixin text-value-balanced {
|
|
104
|
-
font-size: 1.3rem;
|
|
105
|
-
font-weight: 700;
|
|
106
|
-
font-variant-numeric: tabular-nums;
|
|
107
|
-
color: var(--foreground, #fff);
|
|
108
|
-
line-height: 1.1;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
@mixin text-title-balanced {
|
|
112
|
-
font-size: 0.8rem;
|
|
113
|
-
font-weight: 600;
|
|
114
|
-
color: var(--foreground, #fff);
|
|
115
|
-
line-height: 1.3;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
@mixin text-body-balanced {
|
|
119
|
-
font-size: 0.75rem;
|
|
120
|
-
font-weight: 400;
|
|
121
|
-
color: var(--muted-foreground, #999);
|
|
122
|
-
line-height: 1.4;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
// =====================================================================
|
|
126
|
-
// RESPONSIVE GRID - WITH PROPER GAPS
|
|
127
|
-
// =====================================================================
|
|
128
|
-
|
|
129
|
-
@mixin responsive-grid-200px-balanced {
|
|
130
|
-
display: grid;
|
|
131
|
-
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
132
|
-
gap: var(--balanced-gap-spacious);
|
|
133
|
-
|
|
134
|
-
@media (max-width: 640px) {
|
|
135
|
-
grid-template-columns: repeat(2, 1fr);
|
|
136
|
-
gap: var(--balanced-gap-comfortable);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
@media (max-width: 420px) {
|
|
140
|
-
grid-template-columns: 1fr;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
@mixin responsive-list-400px-balanced {
|
|
145
|
-
display: block;
|
|
146
|
-
width: 100%;
|
|
147
|
-
min-width: 400px;
|
|
148
|
-
|
|
149
|
-
@media (max-width: 640px) {
|
|
150
|
-
min-width: 100%;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
// =====================================================================
|
|
155
|
-
// INTERACTIVE STATES - BEAUTIFUL ANIMATIONS
|
|
156
|
-
// =====================================================================
|
|
157
|
-
|
|
158
|
-
@mixin interactive-beautiful {
|
|
159
|
-
cursor: pointer;
|
|
160
|
-
|
|
161
|
-
&:hover {
|
|
162
|
-
.accent-text {
|
|
163
|
-
color: var(--accent, #ff7900);
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
&:active {
|
|
168
|
-
transform: translateY(0);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
&:focus-visible {
|
|
172
|
-
outline: 2px solid var(--accent, #ff7900);
|
|
173
|
-
outline-offset: 2px;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
@mixin reduced-motion-safe {
|
|
178
|
-
@media (prefers-reduced-motion: reduce) {
|
|
179
|
-
transition: none;
|
|
180
|
-
animation: none;
|
|
181
|
-
|
|
182
|
-
&:hover {
|
|
183
|
-
transform: none;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
// =====================================================================
|
|
2
|
-
// COMPACT LAYOUT MIXINS
|
|
3
|
-
// =====================================================================
|
|
4
|
-
//
|
|
5
|
-
// Optimized mixins for denser, more compact section layouts.
|
|
6
|
-
// Uses reduced spacing while maintaining readability.
|
|
7
|
-
//
|
|
8
|
-
// =====================================================================
|
|
9
|
-
|
|
10
|
-
@use "design-tokens" as *;
|
|
11
|
-
@use "sections-base" as base;
|
|
12
|
-
@use "component-mixins" as components;
|
|
13
|
-
@use "modern-effects" as effects;
|
|
14
|
-
@use "typography-system" as typo;
|
|
15
|
-
|
|
16
|
-
// =====================================================================
|
|
17
|
-
// COMPACT SECTION CONTAINER
|
|
18
|
-
// =====================================================================
|
|
19
|
-
|
|
20
|
-
@mixin section-container-compact {
|
|
21
|
-
display: flex;
|
|
22
|
-
flex-direction: column;
|
|
23
|
-
gap: var(--section-header-gap);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
@mixin section-header-compact {
|
|
27
|
-
margin-bottom: var(--spacing-compact-sm);
|
|
28
|
-
|
|
29
|
-
.section-title,
|
|
30
|
-
h3 {
|
|
31
|
-
font-size: var(--text-xl);
|
|
32
|
-
font-weight: var(--font-bold);
|
|
33
|
-
line-height: var(--leading-tight);
|
|
34
|
-
color: var(--foreground);
|
|
35
|
-
margin: 0 0 var(--spacing-compact-xs);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.section-description,
|
|
39
|
-
p {
|
|
40
|
-
font-size: var(--text-sm);
|
|
41
|
-
color: var(--muted-foreground);
|
|
42
|
-
line-height: var(--leading-snug);
|
|
43
|
-
margin: 0;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// =====================================================================
|
|
48
|
-
// COMPACT CARD VARIANTS
|
|
49
|
-
// =====================================================================
|
|
50
|
-
|
|
51
|
-
@mixin card-compact {
|
|
52
|
-
@include base.card;
|
|
53
|
-
padding: var(--spacing-compact-base) var(--spacing-compact-md);
|
|
54
|
-
gap: var(--spacing-compact-sm);
|
|
55
|
-
min-height: var(--section-card-compact-height);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
@mixin card-compact-elevated {
|
|
59
|
-
@include card-compact;
|
|
60
|
-
@include effects.elevated-card;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
@mixin card-compact-glass {
|
|
64
|
-
@include card-compact;
|
|
65
|
-
@include effects.glass-card;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
// =====================================================================
|
|
69
|
-
// COMPACT GRID LAYOUTS
|
|
70
|
-
// =====================================================================
|
|
71
|
-
|
|
72
|
-
@mixin grid-compact($min-width: 140px) {
|
|
73
|
-
@include section-grid($min-width, var(--spacing-compact-md));
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
@mixin list-compact {
|
|
77
|
-
@include list-stack(var(--spacing-compact-sm));
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
// =====================================================================
|
|
81
|
-
// COMPACT TYPOGRAPHY
|
|
82
|
-
// =====================================================================
|
|
83
|
-
|
|
84
|
-
@mixin heading-compact($level: 5) {
|
|
85
|
-
font-size: var(--text-base);
|
|
86
|
-
font-weight: var(--font-semibold);
|
|
87
|
-
line-height: var(--leading-tight);
|
|
88
|
-
color: var(--foreground);
|
|
89
|
-
margin: 0;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
@mixin body-compact {
|
|
93
|
-
font-size: var(--text-sm);
|
|
94
|
-
font-weight: var(--font-normal);
|
|
95
|
-
line-height: var(--leading-snug);
|
|
96
|
-
color: var(--foreground);
|
|
97
|
-
margin: 0;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
@mixin caption-compact {
|
|
101
|
-
font-size: 0.6rem;
|
|
102
|
-
font-weight: var(--font-medium);
|
|
103
|
-
line-height: var(--leading-tight);
|
|
104
|
-
color: var(--muted-foreground);
|
|
105
|
-
margin: 0;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
@mixin label-compact {
|
|
109
|
-
font-size: 0.6rem;
|
|
110
|
-
font-weight: var(--font-semibold);
|
|
111
|
-
text-transform: uppercase;
|
|
112
|
-
letter-spacing: 0.04em;
|
|
113
|
-
color: var(--muted-foreground);
|
|
114
|
-
line-height: 1.2;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
// =====================================================================
|
|
118
|
-
// COMPACT BADGES & INDICATORS
|
|
119
|
-
// =====================================================================
|
|
120
|
-
|
|
121
|
-
@mixin badge-compact($variant: "default") {
|
|
122
|
-
@include components.badge-modern($variant);
|
|
123
|
-
font-size: 0.55rem;
|
|
124
|
-
padding: 1px 4px;
|
|
125
|
-
gap: 2px;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
// =====================================================================
|
|
129
|
-
// COMPACT EMPTY STATES
|
|
130
|
-
// =====================================================================
|
|
131
|
-
|
|
132
|
-
@mixin empty-state-compact {
|
|
133
|
-
display: flex;
|
|
134
|
-
flex-direction: column;
|
|
135
|
-
align-items: center;
|
|
136
|
-
justify-content: center;
|
|
137
|
-
gap: var(--spacing-compact-sm);
|
|
138
|
-
padding: var(--spacing-lg);
|
|
139
|
-
text-align: center;
|
|
140
|
-
|
|
141
|
-
.empty-icon {
|
|
142
|
-
font-size: 36px;
|
|
143
|
-
opacity: 0.25;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.empty-text {
|
|
147
|
-
font-size: var(--text-sm);
|
|
148
|
-
color: var(--muted-foreground);
|
|
149
|
-
margin: 0;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
// =====================================================================
|
|
154
|
-
// UTILITY: Apply Compact Mode to Section
|
|
155
|
-
// =====================================================================
|
|
156
|
-
|
|
157
|
-
@mixin apply-compact-mode {
|
|
158
|
-
// Reduce all spacing
|
|
159
|
-
gap: var(--spacing-compact-md);
|
|
160
|
-
|
|
161
|
-
// Reduce padding on cards
|
|
162
|
-
.card,
|
|
163
|
-
[class*="-card"],
|
|
164
|
-
[class$="-card"] {
|
|
165
|
-
padding: var(--spacing-compact-base) var(--spacing-compact-md);
|
|
166
|
-
gap: var(--spacing-compact-sm);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
// Reduce grid gaps
|
|
170
|
-
[class*="-grid"],
|
|
171
|
-
[class$="-grid"] {
|
|
172
|
-
gap: var(--spacing-compact-md);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
// Reduce list gaps
|
|
176
|
-
[class*="-list"],
|
|
177
|
-
[class$="-list"] {
|
|
178
|
-
gap: var(--spacing-compact-sm);
|
|
179
|
-
}
|
|
180
|
-
}
|