@syscore/ui-library 2.0.0-beta-publish-workflow-beta.11 → 2.0.0-beta-publish-workflow-beta.13
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/client/components/ui/alert.tsx +4 -0
- package/client/components/ui/button.tsx +8 -0
- package/client/components/ui/card.tsx +43 -3
- package/client/components/ui/copy.tsx +1 -1
- package/client/components/ui/data-grid.tsx +258 -0
- package/client/components/ui/dialog.tsx +35 -8
- package/client/components/ui/layout.tsx +11 -12
- package/client/components/ui/side-nav.tsx +162 -8
- package/client/components/ui/typography.tsx +11 -0
- package/client/global.css +398 -27
- package/client/ui/Button.stories.tsx +26 -0
- package/client/ui/DataGrid.stories.tsx +114 -0
- package/client/ui/SideNav.stories.tsx +39 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +24 -0
- package/dist/index.es.js +358 -46
- package/package.json +3 -1
package/client/global.css
CHANGED
|
@@ -1004,6 +1004,22 @@ body {
|
|
|
1004
1004
|
0 0 0 4px var(--color-white, #fff);
|
|
1005
1005
|
}
|
|
1006
1006
|
|
|
1007
|
+
.button--tertiary-danger {
|
|
1008
|
+
background-color: var(--color-red-50, #fef2f2);
|
|
1009
|
+
border: 1px solid var(--color-red-200, #fecaca);
|
|
1010
|
+
color: var(--color-red-600, #dc2626);
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
.button--tertiary-danger:hover {
|
|
1014
|
+
background-color: var(--color-red-100, #fee2e2);
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
.button--tertiary-danger:focus-visible {
|
|
1018
|
+
box-shadow:
|
|
1019
|
+
0 0 0 2px var(--color-red-200, #fecaca),
|
|
1020
|
+
0 0 0 4px var(--color-white, #fff);
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1007
1023
|
.button--general-primary {
|
|
1008
1024
|
background-color: var(--color-blue-600, #2e74ad);
|
|
1009
1025
|
color: var(--color-white, #fff);
|
|
@@ -1034,6 +1050,38 @@ body {
|
|
|
1034
1050
|
0 0 0 2px var(--color-blue-200, #cbe0f1),
|
|
1035
1051
|
0 0 0 4px var(--color-white, #fff);
|
|
1036
1052
|
}
|
|
1053
|
+
/* Destructive actions — solid red to confirm, white with a red outline to start. */
|
|
1054
|
+
.button--danger-primary {
|
|
1055
|
+
background-color: var(--color-red-600, #dc2626);
|
|
1056
|
+
color: var(--color-white, #fff);
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
.button--danger-primary:hover {
|
|
1060
|
+
background-color: var(--color-red-700, #b91c1c);
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
.button--danger-primary:focus-visible {
|
|
1064
|
+
box-shadow:
|
|
1065
|
+
0 0 0 2px var(--color-red-600, #dc2626),
|
|
1066
|
+
0 0 0 4px var(--color-white, #fff);
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
.button--danger-secondary {
|
|
1070
|
+
background-color: var(--color-white, #fff);
|
|
1071
|
+
border: 1px solid var(--color-red-200, #fecaca);
|
|
1072
|
+
color: var(--color-red-700, #b91c1c);
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
.button--danger-secondary:hover {
|
|
1076
|
+
background-color: var(--color-red-50, #fef2f2);
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
.button--danger-secondary:focus-visible {
|
|
1080
|
+
box-shadow:
|
|
1081
|
+
0 0 0 2px var(--color-red-200, #fecaca),
|
|
1082
|
+
0 0 0 4px var(--color-white, #fff);
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1037
1085
|
.button--transparent-tertiary {
|
|
1038
1086
|
display: inline-flex;
|
|
1039
1087
|
align-items: center;
|
|
@@ -2167,6 +2215,10 @@ body {
|
|
|
2167
2215
|
padding: 2.5rem;
|
|
2168
2216
|
}
|
|
2169
2217
|
|
|
2218
|
+
.card--padding-compact {
|
|
2219
|
+
padding: 1rem;
|
|
2220
|
+
}
|
|
2221
|
+
|
|
2170
2222
|
/* Card spacing="relaxed": more air between the heading, its description and the content (headings
|
|
2171
2223
|
are trimmed to cap height, so the default gap reads as tight on dense back-office pages). */
|
|
2172
2224
|
.card--spacing-relaxed {
|
|
@@ -2240,6 +2292,19 @@ body {
|
|
|
2240
2292
|
color: var(--color-gray-300, #cbcdd2);
|
|
2241
2293
|
}
|
|
2242
2294
|
|
|
2295
|
+
.card--gradient {
|
|
2296
|
+
border: none;
|
|
2297
|
+
background: linear-gradient(152deg, #985f8c -7.86%, #204b6d 29.11%, #2f7d91 98.38%);
|
|
2298
|
+
color: var(--color-white, #fff);
|
|
2299
|
+
}
|
|
2300
|
+
|
|
2301
|
+
.card--gradient .card-title,
|
|
2302
|
+
.card--gradient .card-description,
|
|
2303
|
+
.card--gradient .card-content,
|
|
2304
|
+
.card--gradient .card-footer {
|
|
2305
|
+
color: var(--color-white, #fff);
|
|
2306
|
+
}
|
|
2307
|
+
|
|
2243
2308
|
.card--interactive {
|
|
2244
2309
|
border: 1px solid var(--color-gray-100, #eff1f2);
|
|
2245
2310
|
background-color: var(--color-white, #fff);
|
|
@@ -2268,6 +2333,17 @@ body {
|
|
|
2268
2333
|
gap: 0.5rem;
|
|
2269
2334
|
}
|
|
2270
2335
|
|
|
2336
|
+
.card-header--tinted {
|
|
2337
|
+
flex-direction: row;
|
|
2338
|
+
align-items: center;
|
|
2339
|
+
justify-content: space-between;
|
|
2340
|
+
gap: 1rem;
|
|
2341
|
+
margin: -1.5rem -1.5rem 0;
|
|
2342
|
+
padding: 1rem 1.5rem;
|
|
2343
|
+
background-color: var(--color-gray-50, #f9f9fa);
|
|
2344
|
+
border-bottom: 1px solid var(--color-gray-100, #eff1f2);
|
|
2345
|
+
}
|
|
2346
|
+
|
|
2271
2347
|
.card-title {
|
|
2272
2348
|
color: var(--color-gray-800, #282a31);
|
|
2273
2349
|
}
|
|
@@ -2380,6 +2456,30 @@ body {
|
|
|
2380
2456
|
margin-top: auto;
|
|
2381
2457
|
}
|
|
2382
2458
|
|
|
2459
|
+
/* Swatch */
|
|
2460
|
+
.swatch {
|
|
2461
|
+
flex-shrink: 0;
|
|
2462
|
+
border-radius: 8px;
|
|
2463
|
+
}
|
|
2464
|
+
|
|
2465
|
+
.swatch--sm {
|
|
2466
|
+
width: 24px;
|
|
2467
|
+
height: 24px;
|
|
2468
|
+
}
|
|
2469
|
+
|
|
2470
|
+
.swatch--md {
|
|
2471
|
+
width: 32px;
|
|
2472
|
+
height: 32px;
|
|
2473
|
+
}
|
|
2474
|
+
|
|
2475
|
+
.swatch--primary {
|
|
2476
|
+
background-color: var(--color-blue-700, #286495);
|
|
2477
|
+
}
|
|
2478
|
+
|
|
2479
|
+
.swatch--muted {
|
|
2480
|
+
background-color: var(--color-gray-200, #dedfe3);
|
|
2481
|
+
}
|
|
2482
|
+
|
|
2383
2483
|
/* Card Metric */
|
|
2384
2484
|
.card-metric {
|
|
2385
2485
|
display: flex;
|
|
@@ -2707,6 +2807,16 @@ body {
|
|
|
2707
2807
|
color: hsl(var(--destructive));
|
|
2708
2808
|
}
|
|
2709
2809
|
|
|
2810
|
+
.alert--info {
|
|
2811
|
+
background-color: var(--color-blue-50, #fbfdfe);
|
|
2812
|
+
border-color: var(--color-blue-200, #cbe0f1);
|
|
2813
|
+
color: var(--color-blue-800, #1d4e74);
|
|
2814
|
+
}
|
|
2815
|
+
|
|
2816
|
+
.alert--info > svg {
|
|
2817
|
+
color: var(--color-blue-600, #2e74ad);
|
|
2818
|
+
}
|
|
2819
|
+
|
|
2710
2820
|
.alert-title {
|
|
2711
2821
|
margin-bottom: 0.25rem;
|
|
2712
2822
|
font-weight: 500;
|
|
@@ -4766,6 +4876,83 @@ body {
|
|
|
4766
4876
|
}
|
|
4767
4877
|
}
|
|
4768
4878
|
|
|
4879
|
+
/* Sheet panel slides — the `slide-in-from-*`/`slide-out-to-*` keyframes above
|
|
4880
|
+
move only 0.5rem, which is correct for a dropdown/tooltip nudging in next
|
|
4881
|
+
to its trigger, but reads as barely-there jitter on a full-height side
|
|
4882
|
+
panel that should visibly travel in from off-screen. Sheet gets its own
|
|
4883
|
+
100%-of-self keyframes instead of reusing the small ones. */
|
|
4884
|
+
@keyframes sheet-slide-in-from-right {
|
|
4885
|
+
from {
|
|
4886
|
+
transform: translateX(100%);
|
|
4887
|
+
}
|
|
4888
|
+
to {
|
|
4889
|
+
transform: translateX(0);
|
|
4890
|
+
}
|
|
4891
|
+
}
|
|
4892
|
+
|
|
4893
|
+
@keyframes sheet-slide-out-to-right {
|
|
4894
|
+
from {
|
|
4895
|
+
transform: translateX(0);
|
|
4896
|
+
}
|
|
4897
|
+
to {
|
|
4898
|
+
transform: translateX(100%);
|
|
4899
|
+
}
|
|
4900
|
+
}
|
|
4901
|
+
|
|
4902
|
+
@keyframes sheet-slide-in-from-left {
|
|
4903
|
+
from {
|
|
4904
|
+
transform: translateX(-100%);
|
|
4905
|
+
}
|
|
4906
|
+
to {
|
|
4907
|
+
transform: translateX(0);
|
|
4908
|
+
}
|
|
4909
|
+
}
|
|
4910
|
+
|
|
4911
|
+
@keyframes sheet-slide-out-to-left {
|
|
4912
|
+
from {
|
|
4913
|
+
transform: translateX(0);
|
|
4914
|
+
}
|
|
4915
|
+
to {
|
|
4916
|
+
transform: translateX(-100%);
|
|
4917
|
+
}
|
|
4918
|
+
}
|
|
4919
|
+
|
|
4920
|
+
@keyframes sheet-slide-in-from-top {
|
|
4921
|
+
from {
|
|
4922
|
+
transform: translateY(-100%);
|
|
4923
|
+
}
|
|
4924
|
+
to {
|
|
4925
|
+
transform: translateY(0);
|
|
4926
|
+
}
|
|
4927
|
+
}
|
|
4928
|
+
|
|
4929
|
+
@keyframes sheet-slide-out-to-top {
|
|
4930
|
+
from {
|
|
4931
|
+
transform: translateY(0);
|
|
4932
|
+
}
|
|
4933
|
+
to {
|
|
4934
|
+
transform: translateY(-100%);
|
|
4935
|
+
}
|
|
4936
|
+
}
|
|
4937
|
+
|
|
4938
|
+
@keyframes sheet-slide-in-from-bottom {
|
|
4939
|
+
from {
|
|
4940
|
+
transform: translateY(100%);
|
|
4941
|
+
}
|
|
4942
|
+
to {
|
|
4943
|
+
transform: translateY(0);
|
|
4944
|
+
}
|
|
4945
|
+
}
|
|
4946
|
+
|
|
4947
|
+
@keyframes sheet-slide-out-to-bottom {
|
|
4948
|
+
from {
|
|
4949
|
+
transform: translateY(0);
|
|
4950
|
+
}
|
|
4951
|
+
to {
|
|
4952
|
+
transform: translateY(100%);
|
|
4953
|
+
}
|
|
4954
|
+
}
|
|
4955
|
+
|
|
4769
4956
|
/* Tabs Styles */
|
|
4770
4957
|
.tabs {
|
|
4771
4958
|
width: 100%;
|
|
@@ -5323,6 +5510,27 @@ body {
|
|
|
5323
5510
|
}
|
|
5324
5511
|
}
|
|
5325
5512
|
|
|
5513
|
+
/* size="lg" — the default modal has no explicit width at all (it sizes to
|
|
5514
|
+
its content's intrinsic grid track), which reads fine for a short form but
|
|
5515
|
+
leaves every input looking cramped/narrow on a longer single-column form
|
|
5516
|
+
(e.g. "Report CE hours", ~10 fields). Give it a real target width instead
|
|
5517
|
+
of relying on content to stretch it out. */
|
|
5518
|
+
.dialog-content--lg {
|
|
5519
|
+
width: min(42rem, calc(100% - 2rem));
|
|
5520
|
+
}
|
|
5521
|
+
|
|
5522
|
+
/* `--radius-modal` (24px) is tuned for the default small dialog — on a wider
|
|
5523
|
+
`size="lg"` panel that same radius reads as slightly too round. A smaller
|
|
5524
|
+
fixed radius (keeping the wrapper's +12px concentric relationship) stays
|
|
5525
|
+
proportionate at this width. */
|
|
5526
|
+
.dialog-content-wrapper--lg {
|
|
5527
|
+
border-radius: calc(16px + 12px);
|
|
5528
|
+
}
|
|
5529
|
+
|
|
5530
|
+
.dialog-content-inner--lg {
|
|
5531
|
+
border-radius: 16px;
|
|
5532
|
+
}
|
|
5533
|
+
|
|
5326
5534
|
/* size="fullscreen" (PRD-009 course-access iframe) — a large, centered,
|
|
5327
5535
|
rounded panel with a visible gray margin on every side (matching the
|
|
5328
5536
|
reference "Telling the WELL Story" launch card), not a true edge-to-edge
|
|
@@ -5456,6 +5664,11 @@ body {
|
|
|
5456
5664
|
}
|
|
5457
5665
|
}
|
|
5458
5666
|
|
|
5667
|
+
.dialog-header--spacious {
|
|
5668
|
+
padding-top: 0.5rem;
|
|
5669
|
+
padding-bottom: 1rem;
|
|
5670
|
+
}
|
|
5671
|
+
|
|
5459
5672
|
.dialog-footer {
|
|
5460
5673
|
display: flex;
|
|
5461
5674
|
flex-direction: column-reverse;
|
|
@@ -7028,8 +7241,11 @@ body {
|
|
|
7028
7241
|
}
|
|
7029
7242
|
|
|
7030
7243
|
.dropdown-menu-item:focus {
|
|
7031
|
-
|
|
7032
|
-
|
|
7244
|
+
/* `--accent` (255 85% 55%, indigo/purple) is a generic shadcn token never
|
|
7245
|
+
tuned for this app's brand — swapping in the real brand teal here
|
|
7246
|
+
instead, same fix as the calendar "today" cell. */
|
|
7247
|
+
background-color: var(--color-blue-50, #fbfdfe);
|
|
7248
|
+
color: var(--color-blue-800, #1d4e74);
|
|
7033
7249
|
}
|
|
7034
7250
|
|
|
7035
7251
|
.dropdown-menu-item[data-disabled] {
|
|
@@ -7384,12 +7600,10 @@ body {
|
|
|
7384
7600
|
box-shadow:
|
|
7385
7601
|
0 10px 15px -3px rgba(0, 0, 0, 0.1),
|
|
7386
7602
|
0 4px 6px -4px rgba(0, 0, 0, 0.1);
|
|
7387
|
-
transition
|
|
7388
|
-
|
|
7389
|
-
|
|
7390
|
-
|
|
7391
|
-
.sheet-content[data-state="closed"] {
|
|
7392
|
-
animation: slide-out 0.3s ease-in-out;
|
|
7603
|
+
/* `animation` (not `transition`) drives the open/close motion end to end —
|
|
7604
|
+
a `transition: all` here used to run alongside it and could fight the
|
|
7605
|
+
animation's own transform on the same frame, reading as jank rather than
|
|
7606
|
+
a clean slide. Side-specific rules below set the real keyframes. */
|
|
7393
7607
|
}
|
|
7394
7608
|
|
|
7395
7609
|
.sheet-content--top {
|
|
@@ -7399,12 +7613,12 @@ body {
|
|
|
7399
7613
|
border-bottom: 1px solid hsl(var(--border));
|
|
7400
7614
|
}
|
|
7401
7615
|
|
|
7402
|
-
.sheet-content--top[data-state="
|
|
7403
|
-
animation: slide-
|
|
7616
|
+
.sheet-content--top[data-state="open"] {
|
|
7617
|
+
animation: sheet-slide-in-from-top 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
|
7404
7618
|
}
|
|
7405
7619
|
|
|
7406
|
-
.sheet-content--top[data-state="
|
|
7407
|
-
animation: slide-
|
|
7620
|
+
.sheet-content--top[data-state="closed"] {
|
|
7621
|
+
animation: sheet-slide-out-to-top 0.25s cubic-bezier(0.4, 0, 1, 1);
|
|
7408
7622
|
}
|
|
7409
7623
|
|
|
7410
7624
|
.sheet-content--bottom {
|
|
@@ -7414,12 +7628,12 @@ body {
|
|
|
7414
7628
|
border-top: 1px solid hsl(var(--border));
|
|
7415
7629
|
}
|
|
7416
7630
|
|
|
7417
|
-
.sheet-content--bottom[data-state="
|
|
7418
|
-
animation: slide-
|
|
7631
|
+
.sheet-content--bottom[data-state="open"] {
|
|
7632
|
+
animation: sheet-slide-in-from-bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
|
7419
7633
|
}
|
|
7420
7634
|
|
|
7421
|
-
.sheet-content--bottom[data-state="
|
|
7422
|
-
animation: slide-
|
|
7635
|
+
.sheet-content--bottom[data-state="closed"] {
|
|
7636
|
+
animation: sheet-slide-out-to-bottom 0.25s cubic-bezier(0.4, 0, 1, 1);
|
|
7423
7637
|
}
|
|
7424
7638
|
|
|
7425
7639
|
.sheet-content--left {
|
|
@@ -7431,12 +7645,12 @@ body {
|
|
|
7431
7645
|
border-right: 1px solid hsl(var(--border));
|
|
7432
7646
|
}
|
|
7433
7647
|
|
|
7434
|
-
.sheet-content--left[data-state="
|
|
7435
|
-
animation: slide-
|
|
7648
|
+
.sheet-content--left[data-state="open"] {
|
|
7649
|
+
animation: sheet-slide-in-from-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
|
7436
7650
|
}
|
|
7437
7651
|
|
|
7438
|
-
.sheet-content--left[data-state="
|
|
7439
|
-
animation: slide-
|
|
7652
|
+
.sheet-content--left[data-state="closed"] {
|
|
7653
|
+
animation: sheet-slide-out-to-left 0.25s cubic-bezier(0.4, 0, 1, 1);
|
|
7440
7654
|
}
|
|
7441
7655
|
|
|
7442
7656
|
@media (min-width: 640px) {
|
|
@@ -7454,12 +7668,12 @@ body {
|
|
|
7454
7668
|
border-left: 1px solid hsl(var(--border));
|
|
7455
7669
|
}
|
|
7456
7670
|
|
|
7457
|
-
.sheet-content--right[data-state="
|
|
7458
|
-
animation: slide-
|
|
7671
|
+
.sheet-content--right[data-state="open"] {
|
|
7672
|
+
animation: sheet-slide-in-from-right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
|
7459
7673
|
}
|
|
7460
7674
|
|
|
7461
|
-
.sheet-content--right[data-state="
|
|
7462
|
-
animation: slide-
|
|
7675
|
+
.sheet-content--right[data-state="closed"] {
|
|
7676
|
+
animation: sheet-slide-out-to-right 0.25s cubic-bezier(0.4, 0, 1, 1);
|
|
7463
7677
|
}
|
|
7464
7678
|
|
|
7465
7679
|
@media (min-width: 640px) {
|
|
@@ -8854,14 +9068,17 @@ body {
|
|
|
8854
9068
|
}
|
|
8855
9069
|
|
|
8856
9070
|
.calendar-day-selected {
|
|
9071
|
+
background-color: hsl(var(--primary));
|
|
8857
9072
|
color: hsl(var(--primary-foreground));
|
|
8858
9073
|
}
|
|
8859
9074
|
|
|
8860
9075
|
.calendar-day-selected:hover {
|
|
9076
|
+
background-color: hsl(var(--primary));
|
|
8861
9077
|
color: hsl(var(--primary-foreground));
|
|
8862
9078
|
}
|
|
8863
9079
|
|
|
8864
9080
|
.calendar-day-selected:focus {
|
|
9081
|
+
background-color: hsl(var(--primary));
|
|
8865
9082
|
color: hsl(var(--primary-foreground));
|
|
8866
9083
|
}
|
|
8867
9084
|
|
|
@@ -8878,9 +9095,14 @@ body {
|
|
|
8878
9095
|
box-shadow: none;
|
|
8879
9096
|
}
|
|
8880
9097
|
|
|
9098
|
+
/* `--accent` (255 85% 55%, a vivid indigo/blue-violet) is a generic shadcn
|
|
9099
|
+
token never tuned for this calendar — on today's cell it reads as a loud,
|
|
9100
|
+
off-brand blue box in an otherwise neutral white/gray grid. A light tint of
|
|
9101
|
+
the real brand `--primary` (teal) reads as an intentional "today" marker
|
|
9102
|
+
instead, consistent with the rest of the calendar's selected-day fill. */
|
|
8881
9103
|
.calendar-day-today {
|
|
8882
|
-
background-color: hsl(var(--
|
|
8883
|
-
color: hsl(var(--
|
|
9104
|
+
background-color: hsl(var(--primary) / 0.12);
|
|
9105
|
+
color: hsl(var(--primary));
|
|
8884
9106
|
}
|
|
8885
9107
|
|
|
8886
9108
|
.calendar-day-outside {
|
|
@@ -10655,6 +10877,13 @@ body {
|
|
|
10655
10877
|
letter-spacing: -0.34px;
|
|
10656
10878
|
}
|
|
10657
10879
|
|
|
10880
|
+
/* `Text loose` — a combined selector so it beats the variant's own
|
|
10881
|
+
line-height on specificity without an inline style. Generic across
|
|
10882
|
+
variants rather than one-off per heading size. */
|
|
10883
|
+
.typography--loose {
|
|
10884
|
+
line-height: 1.4;
|
|
10885
|
+
}
|
|
10886
|
+
|
|
10658
10887
|
.heading-medium::before {
|
|
10659
10888
|
content: "";
|
|
10660
10889
|
margin-bottom: -0.2734em;
|
|
@@ -15638,6 +15867,13 @@ body {
|
|
|
15638
15867
|
.copy--inverse {
|
|
15639
15868
|
color: var(--color-white, #fff);
|
|
15640
15869
|
}
|
|
15870
|
+
|
|
15871
|
+
/* The "eyebrow" label on a dark/gradient promo banner (e.g. "THE WELL
|
|
15872
|
+
FORUM") — a warm coral tint, not plain white, so it reads as a distinct
|
|
15873
|
+
label above the heading rather than blending into it. */
|
|
15874
|
+
.copy--coral {
|
|
15875
|
+
color: var(--color-coral-400, #f0aa99);
|
|
15876
|
+
}
|
|
15641
15877
|
/* /DS_PENDING_CSS:Copy */
|
|
15642
15878
|
|
|
15643
15879
|
/* DS_PENDING_CSS:StandardLogoWellVariant */
|
|
@@ -16364,7 +16600,7 @@ body {
|
|
|
16364
16600
|
padding-top: 14px;
|
|
16365
16601
|
padding-bottom: 14px;
|
|
16366
16602
|
border-bottom: 1px solid #e3e8ef;
|
|
16367
|
-
font-size:
|
|
16603
|
+
font-size: 12px;
|
|
16368
16604
|
font-weight: 600;
|
|
16369
16605
|
letter-spacing: 0.08em;
|
|
16370
16606
|
color: #6b7280;
|
|
@@ -16499,6 +16735,82 @@ body {
|
|
|
16499
16735
|
background: linear-gradient(180deg, #41d5f6, #3eecd1);
|
|
16500
16736
|
}
|
|
16501
16737
|
|
|
16738
|
+
/* Collapsible group: the heading is a button with a chevron. */
|
|
16739
|
+
.side-nav__heading--toggle {
|
|
16740
|
+
display: flex;
|
|
16741
|
+
align-items: center;
|
|
16742
|
+
justify-content: space-between;
|
|
16743
|
+
gap: 8px;
|
|
16744
|
+
width: 100%;
|
|
16745
|
+
border: 0;
|
|
16746
|
+
border-radius: 8px;
|
|
16747
|
+
background: none;
|
|
16748
|
+
font: inherit;
|
|
16749
|
+
font-size: 11px;
|
|
16750
|
+
font-weight: 600;
|
|
16751
|
+
letter-spacing: 0.08em;
|
|
16752
|
+
text-transform: uppercase;
|
|
16753
|
+
color: #8a8e9a;
|
|
16754
|
+
text-align: left;
|
|
16755
|
+
cursor: pointer;
|
|
16756
|
+
transition: color 0.15s ease;
|
|
16757
|
+
}
|
|
16758
|
+
|
|
16759
|
+
.side-nav__heading--toggle:hover {
|
|
16760
|
+
color: #4a4d58;
|
|
16761
|
+
}
|
|
16762
|
+
|
|
16763
|
+
.side-nav__heading--toggle:focus-visible {
|
|
16764
|
+
outline: 2px solid #3b8fc9;
|
|
16765
|
+
outline-offset: 1px;
|
|
16766
|
+
}
|
|
16767
|
+
|
|
16768
|
+
.side-nav__chevron {
|
|
16769
|
+
flex: none;
|
|
16770
|
+
width: 14px;
|
|
16771
|
+
height: 14px;
|
|
16772
|
+
transition: transform 0.15s ease;
|
|
16773
|
+
}
|
|
16774
|
+
|
|
16775
|
+
[aria-expanded="false"] > .side-nav__chevron {
|
|
16776
|
+
transform: rotate(-90deg);
|
|
16777
|
+
}
|
|
16778
|
+
|
|
16779
|
+
.side-nav__items,
|
|
16780
|
+
.side-nav__branch,
|
|
16781
|
+
.side-nav__sub {
|
|
16782
|
+
display: flex;
|
|
16783
|
+
flex-direction: column;
|
|
16784
|
+
gap: 2px;
|
|
16785
|
+
}
|
|
16786
|
+
|
|
16787
|
+
.side-nav__items[hidden],
|
|
16788
|
+
.side-nav__sub[hidden] {
|
|
16789
|
+
display: none;
|
|
16790
|
+
}
|
|
16791
|
+
|
|
16792
|
+
/* Branch: an item that unfolds into sub-pages, indented under its icon. */
|
|
16793
|
+
.side-nav__item--branch .side-nav__label {
|
|
16794
|
+
flex: 1;
|
|
16795
|
+
}
|
|
16796
|
+
|
|
16797
|
+
.side-nav__item--branch .side-nav__chevron {
|
|
16798
|
+
color: #8a8e9a;
|
|
16799
|
+
}
|
|
16800
|
+
|
|
16801
|
+
.side-nav__item--branch-active {
|
|
16802
|
+
color: #1f5f93;
|
|
16803
|
+
font-weight: 600;
|
|
16804
|
+
}
|
|
16805
|
+
|
|
16806
|
+
.side-nav__item--branch-active .side-nav__icon {
|
|
16807
|
+
color: #2f7a8f;
|
|
16808
|
+
}
|
|
16809
|
+
|
|
16810
|
+
.side-nav__sub .side-nav__item {
|
|
16811
|
+
padding-left: 44px;
|
|
16812
|
+
}
|
|
16813
|
+
|
|
16502
16814
|
/* Collapsed: icons only. `font-size: 0` hides the text of an item rendered with `asChild` too. */
|
|
16503
16815
|
.side-nav--collapsed .side-nav__heading,
|
|
16504
16816
|
.side-nav--collapsed .side-nav__label {
|
|
@@ -16511,6 +16823,11 @@ body {
|
|
|
16511
16823
|
font-size: 0;
|
|
16512
16824
|
}
|
|
16513
16825
|
|
|
16826
|
+
.side-nav--collapsed .side-nav__chevron,
|
|
16827
|
+
.side-nav--collapsed .side-nav__sub {
|
|
16828
|
+
display: none;
|
|
16829
|
+
}
|
|
16830
|
+
|
|
16514
16831
|
/* CheckboxField — a checkbox with its label and optional description. */
|
|
16515
16832
|
.checkbox-field {
|
|
16516
16833
|
display: inline-flex;
|
|
@@ -16794,3 +17111,57 @@ body {
|
|
|
16794
17111
|
.typo--relaxed {
|
|
16795
17112
|
line-height: 1.5;
|
|
16796
17113
|
}
|
|
17114
|
+
|
|
17115
|
+
/* DataGrid — an AG Grid themed like Table appearance="card". The colours live in the component's theme. */
|
|
17116
|
+
.data-grid {
|
|
17117
|
+
width: 100%;
|
|
17118
|
+
}
|
|
17119
|
+
|
|
17120
|
+
/* AG Grid keeps 150px of body height even for two rows; only an empty grid needs that room for its message. */
|
|
17121
|
+
.data-grid:not(.data-grid--empty) .ag-viewport {
|
|
17122
|
+
min-height: 0;
|
|
17123
|
+
}
|
|
17124
|
+
|
|
17125
|
+
/* Column headers read like the card Table's: small caps with letter spacing, but large enough to read. */
|
|
17126
|
+
.data-grid .ag-header-cell-text {
|
|
17127
|
+
text-transform: uppercase;
|
|
17128
|
+
letter-spacing: 0.06em;
|
|
17129
|
+
}
|
|
17130
|
+
|
|
17131
|
+
/* A row that grows for wrapped content keeps breathing room above and below it. */
|
|
17132
|
+
.data-grid .ag-cell {
|
|
17133
|
+
padding-top: 8px;
|
|
17134
|
+
padding-bottom: 8px;
|
|
17135
|
+
}
|
|
17136
|
+
|
|
17137
|
+
/* Every cell centres its content, so a badge or a button lines up with the text beside it. */
|
|
17138
|
+
.data-grid .ag-cell {
|
|
17139
|
+
display: flex;
|
|
17140
|
+
align-items: center;
|
|
17141
|
+
}
|
|
17142
|
+
|
|
17143
|
+
.data-grid .data-grid__cell--right {
|
|
17144
|
+
justify-content: flex-end;
|
|
17145
|
+
text-align: right;
|
|
17146
|
+
}
|
|
17147
|
+
|
|
17148
|
+
.data-grid .data-grid__cell--right .ag-header-cell-label {
|
|
17149
|
+
justify-content: flex-end;
|
|
17150
|
+
}
|
|
17151
|
+
|
|
17152
|
+
.data-grid .data-grid__cell--center {
|
|
17153
|
+
justify-content: center;
|
|
17154
|
+
text-align: center;
|
|
17155
|
+
}
|
|
17156
|
+
|
|
17157
|
+
.data-grid .data-grid__cell--center .ag-header-cell-label {
|
|
17158
|
+
justify-content: center;
|
|
17159
|
+
}
|
|
17160
|
+
|
|
17161
|
+
.data-grid--clickable .ag-row {
|
|
17162
|
+
cursor: pointer;
|
|
17163
|
+
}
|
|
17164
|
+
|
|
17165
|
+
.typo--sans {
|
|
17166
|
+
font-family: var(--font-mazzard, "Mazzard Soft M"), sans-serif;
|
|
17167
|
+
}
|
|
@@ -146,6 +146,32 @@ export const UtilityGeneralTertiary: Story = {
|
|
|
146
146
|
),
|
|
147
147
|
};
|
|
148
148
|
|
|
149
|
+
export const UtilityDangerPrimary: Story = {
|
|
150
|
+
render: () => (
|
|
151
|
+
<div className="space-y-6">
|
|
152
|
+
<div>
|
|
153
|
+
<p className="text-sm text-gray-600 mb-2">Danger, primary — confirms a destructive action</p>
|
|
154
|
+
<Button variant="danger-primary" size="utility">
|
|
155
|
+
Delete
|
|
156
|
+
</Button>
|
|
157
|
+
</div>
|
|
158
|
+
</div>
|
|
159
|
+
),
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
export const UtilityDangerSecondary: Story = {
|
|
163
|
+
render: () => (
|
|
164
|
+
<div className="space-y-6">
|
|
165
|
+
<div>
|
|
166
|
+
<p className="text-sm text-gray-600 mb-2">Danger, secondary — starts a destructive action</p>
|
|
167
|
+
<Button variant="danger-secondary" size="utility">
|
|
168
|
+
Delete
|
|
169
|
+
</Button>
|
|
170
|
+
</div>
|
|
171
|
+
</div>
|
|
172
|
+
),
|
|
173
|
+
};
|
|
174
|
+
|
|
149
175
|
export const UtilityTransparentTertiary: Story = {
|
|
150
176
|
render: () => (
|
|
151
177
|
<div className="space-y-6">
|