@kiefer-tek/sophea-design-system 0.15.3 → 0.15.5
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/dist/index.css +340 -2
- package/dist/index.js +1181 -786
- package/dist/index.js.map +1 -1
- package/dist/patterns/AccountMenu/AccountMenu.d.ts +51 -0
- package/dist/patterns/AccountMenu/AccountMenu.d.ts.map +1 -0
- package/dist/patterns/AccountMenu/index.d.ts +3 -0
- package/dist/patterns/AccountMenu/index.d.ts.map +1 -0
- package/dist/patterns/CommandPalette/CommandPalette.d.ts +70 -0
- package/dist/patterns/CommandPalette/CommandPalette.d.ts.map +1 -0
- package/dist/patterns/CommandPalette/index.d.ts +3 -0
- package/dist/patterns/CommandPalette/index.d.ts.map +1 -0
- package/dist/patterns/index.d.ts +2 -0
- package/dist/patterns/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -10458,6 +10458,130 @@ tbody tr:hover .sn-Table-module__td--jv9tA {
|
|
|
10458
10458
|
gap: 8px;
|
|
10459
10459
|
margin-top: 8px;
|
|
10460
10460
|
}
|
|
10461
|
+
.sn-AccountMenu-module__trigger--EHklO {
|
|
10462
|
+
position: relative;
|
|
10463
|
+
display: inline-flex;
|
|
10464
|
+
align-items: center;
|
|
10465
|
+
justify-content: center;
|
|
10466
|
+
border: 0;
|
|
10467
|
+
padding: 0;
|
|
10468
|
+
background: transparent;
|
|
10469
|
+
border-radius: 999px;
|
|
10470
|
+
cursor: pointer;
|
|
10471
|
+
outline: none;
|
|
10472
|
+
}
|
|
10473
|
+
|
|
10474
|
+
.sn-AccountMenu-module__trigger--EHklO:focus-visible {
|
|
10475
|
+
box-shadow: 0 0 0 2px var(--action-link-04);
|
|
10476
|
+
}
|
|
10477
|
+
|
|
10478
|
+
/* Unread badge on the avatar — top-right pill. */
|
|
10479
|
+
.sn-AccountMenu-module__avatarBadge--2qs2m {
|
|
10480
|
+
position: absolute;
|
|
10481
|
+
top: -2px;
|
|
10482
|
+
inset-inline-end: -2px;
|
|
10483
|
+
display: flex;
|
|
10484
|
+
align-items: center;
|
|
10485
|
+
justify-content: center;
|
|
10486
|
+
height: 1rem;
|
|
10487
|
+
min-width: 1rem;
|
|
10488
|
+
padding-inline: 0.25rem;
|
|
10489
|
+
border-radius: 999px;
|
|
10490
|
+
background: var(--theme-primary-05);
|
|
10491
|
+
color: #fff;
|
|
10492
|
+
font-size: 10px;
|
|
10493
|
+
font-weight: 700;
|
|
10494
|
+
line-height: 1;
|
|
10495
|
+
pointer-events: none;
|
|
10496
|
+
}
|
|
10497
|
+
|
|
10498
|
+
/* Unread badge shown in the notifications menu row (trailing slot). */
|
|
10499
|
+
.sn-AccountMenu-module__itemBadge--7gWAX {
|
|
10500
|
+
display: inline-flex;
|
|
10501
|
+
align-items: center;
|
|
10502
|
+
justify-content: center;
|
|
10503
|
+
height: 1rem;
|
|
10504
|
+
min-width: 1rem;
|
|
10505
|
+
padding-inline: 0.25rem;
|
|
10506
|
+
border-radius: 999px;
|
|
10507
|
+
background: var(--theme-primary-05);
|
|
10508
|
+
color: #fff;
|
|
10509
|
+
font-size: 10px;
|
|
10510
|
+
font-weight: 700;
|
|
10511
|
+
line-height: 1;
|
|
10512
|
+
}
|
|
10513
|
+
|
|
10514
|
+
/* Identity header lines inside the dropdown label. */
|
|
10515
|
+
.sn-AccountMenu-module__identityName--h6xu9 {
|
|
10516
|
+
display: block;
|
|
10517
|
+
font-size: 13px;
|
|
10518
|
+
font-weight: 600;
|
|
10519
|
+
color: var(--text-05);
|
|
10520
|
+
overflow: hidden;
|
|
10521
|
+
text-overflow: ellipsis;
|
|
10522
|
+
white-space: nowrap;
|
|
10523
|
+
}
|
|
10524
|
+
|
|
10525
|
+
.sn-AccountMenu-module__identityEmail--iiIZe {
|
|
10526
|
+
display: block;
|
|
10527
|
+
font-size: 11px;
|
|
10528
|
+
font-weight: 400;
|
|
10529
|
+
color: var(--text-03);
|
|
10530
|
+
overflow: hidden;
|
|
10531
|
+
text-overflow: ellipsis;
|
|
10532
|
+
white-space: nowrap;
|
|
10533
|
+
}
|
|
10534
|
+
|
|
10535
|
+
/* Notifications view — the dropdown widens and goes edge-to-edge so the
|
|
10536
|
+
consumer's panel fills it. */
|
|
10537
|
+
.sn-AccountMenu-module__notifContent--L-CWv {
|
|
10538
|
+
width: 20rem;
|
|
10539
|
+
padding: 0;
|
|
10540
|
+
}
|
|
10541
|
+
|
|
10542
|
+
.sn-AccountMenu-module__notifView--9YZIb {
|
|
10543
|
+
display: flex;
|
|
10544
|
+
flex-direction: column;
|
|
10545
|
+
max-height: 28rem;
|
|
10546
|
+
}
|
|
10547
|
+
|
|
10548
|
+
.sn-AccountMenu-module__notifBar--WoO2f {
|
|
10549
|
+
display: flex;
|
|
10550
|
+
align-items: center;
|
|
10551
|
+
gap: 0.5rem;
|
|
10552
|
+
padding: 0.375rem 0.5rem;
|
|
10553
|
+
border-bottom: 1px solid var(--shell-divider);
|
|
10554
|
+
flex-shrink: 0;
|
|
10555
|
+
}
|
|
10556
|
+
|
|
10557
|
+
.sn-AccountMenu-module__backButton--CA3pK {
|
|
10558
|
+
display: inline-flex;
|
|
10559
|
+
align-items: center;
|
|
10560
|
+
justify-content: center;
|
|
10561
|
+
width: 1.75rem;
|
|
10562
|
+
height: 1.75rem;
|
|
10563
|
+
border: 0;
|
|
10564
|
+
background: transparent;
|
|
10565
|
+
border-radius: 8px;
|
|
10566
|
+
color: var(--text-04);
|
|
10567
|
+
cursor: pointer;
|
|
10568
|
+
}
|
|
10569
|
+
|
|
10570
|
+
.sn-AccountMenu-module__backButton--CA3pK:hover {
|
|
10571
|
+
background: var(--shell-chrome-hover-bg);
|
|
10572
|
+
color: var(--text-05);
|
|
10573
|
+
}
|
|
10574
|
+
|
|
10575
|
+
.sn-AccountMenu-module__notifTitle--MR2jU {
|
|
10576
|
+
font-size: 13px;
|
|
10577
|
+
font-weight: 600;
|
|
10578
|
+
color: var(--text-05);
|
|
10579
|
+
}
|
|
10580
|
+
|
|
10581
|
+
.sn-AccountMenu-module__notifBody--RH0Ym {
|
|
10582
|
+
min-height: 0;
|
|
10583
|
+
overflow-y: auto;
|
|
10584
|
+
}
|
|
10461
10585
|
/* AppShell — slot-based application shell.
|
|
10462
10586
|
Metrics and class-for-class behavior cross-referenced against the live
|
|
10463
10587
|
nous/web implementation (staging.nous.sophea.ai, 2026-06-12).
|
|
@@ -10609,13 +10733,14 @@ tbody tr:hover .sn-Table-module__td--jv9tA {
|
|
|
10609
10733
|
border-inline-end-width: 0;
|
|
10610
10734
|
}
|
|
10611
10735
|
|
|
10612
|
-
/* Logo slot —
|
|
10736
|
+
/* Logo slot — centered; gap below the logo is tunable per consumer
|
|
10737
|
+
(nous logo link carries mb-4 → the 1rem default). */
|
|
10613
10738
|
.sn-AppShell-module__railHeader--Z-dh6 {
|
|
10614
10739
|
display: flex;
|
|
10615
10740
|
align-items: center;
|
|
10616
10741
|
justify-content: center;
|
|
10617
10742
|
flex-shrink: 0;
|
|
10618
|
-
margin-block-end: 1rem;
|
|
10743
|
+
margin-block-end: var(--shell-rail-header-gap, 1rem);
|
|
10619
10744
|
}
|
|
10620
10745
|
|
|
10621
10746
|
.sn-AppShell-module__railItems--q4Ukh {
|
|
@@ -10945,6 +11070,219 @@ html[data-resizing] .sn-AppShell-module__sidebar--9-Zb9 {
|
|
|
10945
11070
|
width: 100%;
|
|
10946
11071
|
flex-shrink: 0;
|
|
10947
11072
|
}
|
|
11073
|
+
/* CommandPalette — tokens only. Trigger mirrors the AppShell header search
|
|
11074
|
+
field; overlay/panel mirror the DS Modal substrate; result highlight reuses
|
|
11075
|
+
the shell rail-item selection tint. */
|
|
11076
|
+
|
|
11077
|
+
/* --------------------------------------------------------------------------
|
|
11078
|
+
Trigger — a <button> styled like a full-width search field.
|
|
11079
|
+
-------------------------------------------------------------------------- */
|
|
11080
|
+
.sn-CommandPalette-module__trigger--ZE1so {
|
|
11081
|
+
display: flex;
|
|
11082
|
+
align-items: center;
|
|
11083
|
+
gap: 10px;
|
|
11084
|
+
width: 100%;
|
|
11085
|
+
max-width: 448px;
|
|
11086
|
+
height: 36px;
|
|
11087
|
+
padding: 0 10px 0 12px;
|
|
11088
|
+
border: 1px solid var(--border-04);
|
|
11089
|
+
border-radius: 8px;
|
|
11090
|
+
background: var(--shell-search-bg);
|
|
11091
|
+
color: var(--text-03);
|
|
11092
|
+
font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
|
|
11093
|
+
font-size: 14px;
|
|
11094
|
+
cursor: pointer;
|
|
11095
|
+
transition:
|
|
11096
|
+
border-color var(--duration-fast, 120ms) var(--ease-out, ease-out),
|
|
11097
|
+
background var(--duration-fast, 120ms) var(--ease-out, ease-out);
|
|
11098
|
+
}
|
|
11099
|
+
|
|
11100
|
+
.sn-CommandPalette-module__trigger--ZE1so:hover {
|
|
11101
|
+
background: var(--shell-search-bg-open);
|
|
11102
|
+
}
|
|
11103
|
+
|
|
11104
|
+
.sn-CommandPalette-module__trigger--ZE1so:focus-visible {
|
|
11105
|
+
outline: 3px solid var(--sophea-focus-halo);
|
|
11106
|
+
outline-offset: 0;
|
|
11107
|
+
border-color: var(--theme-primary-06);
|
|
11108
|
+
}
|
|
11109
|
+
|
|
11110
|
+
.sn-CommandPalette-module__triggerIcon--TrFwF {
|
|
11111
|
+
display: inline-flex;
|
|
11112
|
+
align-items: center;
|
|
11113
|
+
justify-content: center;
|
|
11114
|
+
flex-shrink: 0;
|
|
11115
|
+
color: var(--text-03);
|
|
11116
|
+
}
|
|
11117
|
+
|
|
11118
|
+
.sn-CommandPalette-module__triggerLabel--YBsgv {
|
|
11119
|
+
flex: 1 1 auto;
|
|
11120
|
+
min-width: 0;
|
|
11121
|
+
text-align: left;
|
|
11122
|
+
overflow: hidden;
|
|
11123
|
+
text-overflow: ellipsis;
|
|
11124
|
+
white-space: nowrap;
|
|
11125
|
+
color: var(--text-04);
|
|
11126
|
+
}
|
|
11127
|
+
|
|
11128
|
+
.sn-CommandPalette-module__triggerShortcut--HbGAX {
|
|
11129
|
+
flex-shrink: 0;
|
|
11130
|
+
}
|
|
11131
|
+
|
|
11132
|
+
/* --------------------------------------------------------------------------
|
|
11133
|
+
Overlay + content (centered modal) — mirrors the DS Modal substrate.
|
|
11134
|
+
-------------------------------------------------------------------------- */
|
|
11135
|
+
.sn-CommandPalette-module__overlay--zaPJ3 {
|
|
11136
|
+
position: fixed;
|
|
11137
|
+
inset: 0;
|
|
11138
|
+
background: var(--shell-drawer-scrim, rgba(15, 23, 42, 0.55));
|
|
11139
|
+
backdrop-filter: blur(4px);
|
|
11140
|
+
z-index: 49;
|
|
11141
|
+
animation: sn-CommandPalette-module__cmdk-fade-in--HsgGQ 160ms var(--ease-out, ease-out);
|
|
11142
|
+
}
|
|
11143
|
+
|
|
11144
|
+
.sn-CommandPalette-module__content--dw5ZC {
|
|
11145
|
+
position: fixed;
|
|
11146
|
+
top: 18vh;
|
|
11147
|
+
left: 50%;
|
|
11148
|
+
transform: translateX(-50%);
|
|
11149
|
+
width: 560px;
|
|
11150
|
+
max-width: 92vw;
|
|
11151
|
+
max-height: 64vh;
|
|
11152
|
+
background: var(--surface-s2);
|
|
11153
|
+
border: 1px solid var(--border-02);
|
|
11154
|
+
border-radius: var(--radius-xl, 16px);
|
|
11155
|
+
box-shadow: var(--elevation-4-shadow, 0 24px 56px -8px rgba(0, 0, 0, 0.4));
|
|
11156
|
+
overflow: hidden;
|
|
11157
|
+
display: flex;
|
|
11158
|
+
flex-direction: column;
|
|
11159
|
+
font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
|
|
11160
|
+
z-index: 50;
|
|
11161
|
+
animation: sn-CommandPalette-module__cmdk-pop-in--Kbbpn 160ms var(--ease-out, ease-out);
|
|
11162
|
+
}
|
|
11163
|
+
|
|
11164
|
+
.sn-CommandPalette-module__content--dw5ZC:focus {
|
|
11165
|
+
outline: none;
|
|
11166
|
+
}
|
|
11167
|
+
|
|
11168
|
+
@keyframes sn-CommandPalette-module__cmdk-fade-in--HsgGQ {
|
|
11169
|
+
from {
|
|
11170
|
+
opacity: 0;
|
|
11171
|
+
}
|
|
11172
|
+
to {
|
|
11173
|
+
opacity: 1;
|
|
11174
|
+
}
|
|
11175
|
+
}
|
|
11176
|
+
|
|
11177
|
+
@keyframes sn-CommandPalette-module__cmdk-pop-in--Kbbpn {
|
|
11178
|
+
from {
|
|
11179
|
+
opacity: 0;
|
|
11180
|
+
transform: translateX(-50%) translateY(-6px);
|
|
11181
|
+
}
|
|
11182
|
+
to {
|
|
11183
|
+
opacity: 1;
|
|
11184
|
+
transform: translateX(-50%) translateY(0);
|
|
11185
|
+
}
|
|
11186
|
+
}
|
|
11187
|
+
|
|
11188
|
+
@media (prefers-reduced-motion: reduce) {
|
|
11189
|
+
.sn-CommandPalette-module__overlay--zaPJ3,
|
|
11190
|
+
.sn-CommandPalette-module__content--dw5ZC {
|
|
11191
|
+
animation: none;
|
|
11192
|
+
}
|
|
11193
|
+
}
|
|
11194
|
+
|
|
11195
|
+
/* --------------------------------------------------------------------------
|
|
11196
|
+
Panel
|
|
11197
|
+
-------------------------------------------------------------------------- */
|
|
11198
|
+
.sn-CommandPalette-module__panel--a8k-8 {
|
|
11199
|
+
display: flex;
|
|
11200
|
+
flex-direction: column;
|
|
11201
|
+
min-height: 0;
|
|
11202
|
+
overflow: hidden;
|
|
11203
|
+
}
|
|
11204
|
+
|
|
11205
|
+
.sn-CommandPalette-module__searchRow--gU4df {
|
|
11206
|
+
padding: 12px 12px 8px;
|
|
11207
|
+
border-bottom: 1px solid var(--border-02);
|
|
11208
|
+
}
|
|
11209
|
+
|
|
11210
|
+
/* SearchInput layout seating only — let it fill the row. */
|
|
11211
|
+
.sn-CommandPalette-module__search--ryq5L {
|
|
11212
|
+
width: 100%;
|
|
11213
|
+
}
|
|
11214
|
+
|
|
11215
|
+
.sn-CommandPalette-module__empty--fSFPo {
|
|
11216
|
+
padding: 28px 18px;
|
|
11217
|
+
text-align: center;
|
|
11218
|
+
font-size: 14px;
|
|
11219
|
+
color: var(--text-04);
|
|
11220
|
+
}
|
|
11221
|
+
|
|
11222
|
+
.sn-CommandPalette-module__results--kmGLG {
|
|
11223
|
+
list-style: none;
|
|
11224
|
+
margin: 0;
|
|
11225
|
+
padding: 6px;
|
|
11226
|
+
overflow-y: auto;
|
|
11227
|
+
min-height: 0;
|
|
11228
|
+
}
|
|
11229
|
+
|
|
11230
|
+
.sn-CommandPalette-module__group--qqyzq {
|
|
11231
|
+
list-style: none;
|
|
11232
|
+
}
|
|
11233
|
+
|
|
11234
|
+
.sn-CommandPalette-module__group--qqyzq + .sn-CommandPalette-module__group--qqyzq {
|
|
11235
|
+
margin-top: 4px;
|
|
11236
|
+
}
|
|
11237
|
+
|
|
11238
|
+
.sn-CommandPalette-module__groupHeader--bgglU {
|
|
11239
|
+
padding: 8px 10px 4px;
|
|
11240
|
+
font-size: 11px;
|
|
11241
|
+
font-weight: 600;
|
|
11242
|
+
letter-spacing: 0.04em;
|
|
11243
|
+
text-transform: uppercase;
|
|
11244
|
+
color: var(--text-03);
|
|
11245
|
+
}
|
|
11246
|
+
|
|
11247
|
+
.sn-CommandPalette-module__groupList--ywjCH {
|
|
11248
|
+
list-style: none;
|
|
11249
|
+
margin: 0;
|
|
11250
|
+
padding: 0;
|
|
11251
|
+
}
|
|
11252
|
+
|
|
11253
|
+
.sn-CommandPalette-module__option--IeWkE {
|
|
11254
|
+
display: flex;
|
|
11255
|
+
align-items: center;
|
|
11256
|
+
gap: 10px;
|
|
11257
|
+
padding: 9px 10px;
|
|
11258
|
+
border-radius: var(--radius-md, 8px);
|
|
11259
|
+
font-size: 14px;
|
|
11260
|
+
color: var(--text-05);
|
|
11261
|
+
cursor: pointer;
|
|
11262
|
+
user-select: none;
|
|
11263
|
+
}
|
|
11264
|
+
|
|
11265
|
+
.sn-CommandPalette-module__optionActive--lVo8e {
|
|
11266
|
+
background: var(--shell-rail-item-selected-bg);
|
|
11267
|
+
}
|
|
11268
|
+
|
|
11269
|
+
.sn-CommandPalette-module__optionIcon--M-qCD {
|
|
11270
|
+
display: inline-flex;
|
|
11271
|
+
align-items: center;
|
|
11272
|
+
justify-content: center;
|
|
11273
|
+
flex-shrink: 0;
|
|
11274
|
+
width: 16px;
|
|
11275
|
+
height: 16px;
|
|
11276
|
+
color: var(--text-03);
|
|
11277
|
+
}
|
|
11278
|
+
|
|
11279
|
+
.sn-CommandPalette-module__optionLabel--lkpvm {
|
|
11280
|
+
flex: 1 1 auto;
|
|
11281
|
+
min-width: 0;
|
|
11282
|
+
overflow: hidden;
|
|
11283
|
+
text-overflow: ellipsis;
|
|
11284
|
+
white-space: nowrap;
|
|
11285
|
+
}
|
|
10948
11286
|
.sn-DestructiveConfirm-module__body--aWZtC {
|
|
10949
11287
|
font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
|
|
10950
11288
|
}
|