@syscore/ui-library 2.0.0-beta-publish-workflow-beta.10 → 2.0.0-beta-publish-workflow-beta.11
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/avatar-identity.tsx +16 -3
- package/client/components/ui/avatar.tsx +32 -4
- package/client/components/ui/back-link.tsx +35 -0
- package/client/components/ui/card.tsx +20 -3
- package/client/components/ui/centered-page.tsx +27 -0
- package/client/components/ui/checkbox-field.tsx +57 -0
- package/client/components/ui/dialog.tsx +6 -0
- package/client/components/ui/icon-button.tsx +45 -0
- package/client/components/ui/layout.tsx +32 -5
- package/client/components/ui/modal-panel.tsx +35 -4
- package/client/components/ui/outline-node.tsx +112 -0
- package/client/components/ui/radio-card.tsx +54 -0
- package/client/components/ui/resource-thumbnail.tsx +12 -1
- package/client/components/ui/side-nav.tsx +126 -0
- package/client/components/ui/status-pill.tsx +37 -4
- package/client/components/ui/table.tsx +26 -4
- package/client/components/ui/typography.tsx +29 -2
- package/client/global.css +813 -4
- package/client/ui/Avatar.stories.tsx +78 -0
- package/client/ui/BackLink.stories.tsx +50 -0
- package/client/ui/Card.stories.tsx +30 -0
- package/client/ui/CenteredPage.stories.tsx +43 -0
- package/client/ui/CheckboxField.stories.tsx +68 -0
- package/client/ui/Dialog.stories.tsx +31 -0
- package/client/ui/IconButton.stories.tsx +77 -0
- package/client/ui/OutlineNode.stories.tsx +106 -0
- package/client/ui/RadioCard.stories.tsx +75 -0
- package/client/ui/SideNav.stories.tsx +68 -0
- package/client/ui/StatusPill.stories.tsx +78 -0
- package/client/ui/Table/Table.stories.tsx +32 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +84 -0
- package/dist/index.es.js +398 -40
- package/package.json +1 -1
package/client/global.css
CHANGED
|
@@ -1585,6 +1585,8 @@ body {
|
|
|
1585
1585
|
--layout-panel-width-narrow: 12.5rem;
|
|
1586
1586
|
--layout-panel-width-default: 17.5rem;
|
|
1587
1587
|
--layout-panel-width-wide: 22.5rem;
|
|
1588
|
+
--layout-panel-width-nav: 16.25rem; /* labelled side nav */
|
|
1589
|
+
--layout-panel-width-rail: 4.5rem; /* icon-only side nav */
|
|
1588
1590
|
|
|
1589
1591
|
--layout-measure-sm: 40rem;
|
|
1590
1592
|
--layout-measure-md: 52.5rem;
|
|
@@ -1872,6 +1874,78 @@ body {
|
|
|
1872
1874
|
overflow-y: auto;
|
|
1873
1875
|
}
|
|
1874
1876
|
|
|
1877
|
+
/* LayoutHeader `sticky`: stays at the top of the window while the page scrolls underneath it. */
|
|
1878
|
+
.layout-header--sticky {
|
|
1879
|
+
position: sticky;
|
|
1880
|
+
top: 0;
|
|
1881
|
+
z-index: 40;
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1884
|
+
/* LayoutPanel `appearance="nav"`: a side navigation pinned under a sticky header and exactly as
|
|
1885
|
+
tall as the window, so a long menu scrolls inside it and the page behind it stays put. */
|
|
1886
|
+
.layout-panel--nav {
|
|
1887
|
+
--layout-panel-width: var(--layout-panel-width-nav);
|
|
1888
|
+
box-sizing: border-box;
|
|
1889
|
+
position: sticky;
|
|
1890
|
+
top: var(--layout-header-min-height);
|
|
1891
|
+
align-self: start;
|
|
1892
|
+
height: calc(100vh - var(--layout-header-min-height));
|
|
1893
|
+
padding: var(--space-xl) var(--space-sm);
|
|
1894
|
+
border-right: none;
|
|
1895
|
+
overflow-y: auto;
|
|
1896
|
+
overscroll-behavior: contain;
|
|
1897
|
+
transition: width 0.2s ease;
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1900
|
+
/* `collapsed` is the icon-only rail. */
|
|
1901
|
+
.layout-panel--nav[data-collapsed] {
|
|
1902
|
+
--layout-panel-width: var(--layout-panel-width-rail);
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
/* A thin scrollbar that is always visible: macOS hides overlay scrollbars until you scroll, so on
|
|
1906
|
+
a short window the last links looked cut off with nothing saying there was more below. */
|
|
1907
|
+
.layout-panel--nav::-webkit-scrollbar {
|
|
1908
|
+
width: 8px;
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1911
|
+
.layout-panel--nav::-webkit-scrollbar-track {
|
|
1912
|
+
background: transparent;
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1915
|
+
.layout-panel--nav::-webkit-scrollbar-thumb {
|
|
1916
|
+
border-radius: 8px;
|
|
1917
|
+
background-color: #cfd4dc;
|
|
1918
|
+
}
|
|
1919
|
+
|
|
1920
|
+
.layout-panel--nav::-webkit-scrollbar-thumb:hover {
|
|
1921
|
+
background-color: #aeb5c0;
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
@supports not selector(::-webkit-scrollbar) {
|
|
1925
|
+
.layout-panel--nav {
|
|
1926
|
+
scrollbar-width: thin;
|
|
1927
|
+
scrollbar-color: #cfd4dc transparent;
|
|
1928
|
+
}
|
|
1929
|
+
}
|
|
1930
|
+
|
|
1931
|
+
/* Phones: a collapsed nav is hidden; an open one covers the page below the header. */
|
|
1932
|
+
@media (max-width: 767px) {
|
|
1933
|
+
.layout-panel--nav.layout-panel--start[data-collapsed] {
|
|
1934
|
+
display: none;
|
|
1935
|
+
}
|
|
1936
|
+
|
|
1937
|
+
.layout-panel--nav.layout-panel--start:not([data-collapsed]) {
|
|
1938
|
+
position: fixed;
|
|
1939
|
+
inset: var(--layout-header-min-height) 0 0 0;
|
|
1940
|
+
z-index: 30;
|
|
1941
|
+
align-self: auto;
|
|
1942
|
+
width: auto;
|
|
1943
|
+
height: auto;
|
|
1944
|
+
max-height: none;
|
|
1945
|
+
border: none;
|
|
1946
|
+
}
|
|
1947
|
+
}
|
|
1948
|
+
|
|
1875
1949
|
@media (max-width: 767px) {
|
|
1876
1950
|
.layout {
|
|
1877
1951
|
grid-template-columns: minmax(0, 1fr);
|
|
@@ -1968,6 +2042,12 @@ body {
|
|
|
1968
2042
|
@media (max-width: 1023px) {
|
|
1969
2043
|
.columns-layout--collapse-lg { grid-template-columns: 1fr !important; }
|
|
1970
2044
|
}
|
|
2045
|
+
@media (max-width: 1100px) {
|
|
2046
|
+
.columns-layout--collapse-xl { grid-template-columns: minmax(0, 1fr) !important; }
|
|
2047
|
+
}
|
|
2048
|
+
.columns-layout--align-start {
|
|
2049
|
+
align-items: start;
|
|
2050
|
+
}
|
|
1971
2051
|
|
|
1972
2052
|
/* AppShell */
|
|
1973
2053
|
.app-shell {
|
|
@@ -2087,7 +2167,45 @@ body {
|
|
|
2087
2167
|
padding: 2.5rem;
|
|
2088
2168
|
}
|
|
2089
2169
|
|
|
2170
|
+
/* Card spacing="relaxed": more air between the heading, its description and the content (headings
|
|
2171
|
+
are trimmed to cap height, so the default gap reads as tight on dense back-office pages). */
|
|
2172
|
+
.card--spacing-relaxed {
|
|
2173
|
+
gap: 2rem;
|
|
2174
|
+
}
|
|
2175
|
+
|
|
2176
|
+
.card--spacing-relaxed .card-header {
|
|
2177
|
+
gap: 0.75rem;
|
|
2178
|
+
}
|
|
2179
|
+
|
|
2090
2180
|
/* Card Variants */
|
|
2181
|
+
.card--panel {
|
|
2182
|
+
padding: 20px;
|
|
2183
|
+
gap: 16px;
|
|
2184
|
+
border: 1px solid #e3e8ef;
|
|
2185
|
+
border-radius: 16px;
|
|
2186
|
+
background-color: #fff;
|
|
2187
|
+
}
|
|
2188
|
+
|
|
2189
|
+
.card--inset {
|
|
2190
|
+
padding: 16px;
|
|
2191
|
+
gap: 12px;
|
|
2192
|
+
border: 1px solid #e3e8ef;
|
|
2193
|
+
border-radius: 12px;
|
|
2194
|
+
background-color: #fff;
|
|
2195
|
+
}
|
|
2196
|
+
|
|
2197
|
+
.card--sticky {
|
|
2198
|
+
position: sticky;
|
|
2199
|
+
top: 96px;
|
|
2200
|
+
align-self: start;
|
|
2201
|
+
}
|
|
2202
|
+
|
|
2203
|
+
@media (max-width: 1100px) {
|
|
2204
|
+
.card--sticky {
|
|
2205
|
+
position: static;
|
|
2206
|
+
}
|
|
2207
|
+
}
|
|
2208
|
+
|
|
2091
2209
|
.card--default {
|
|
2092
2210
|
border: 1px solid var(--color-gray-100, #eff1f2);
|
|
2093
2211
|
background-color: var(--color-white, #fff);
|
|
@@ -2375,10 +2493,16 @@ body {
|
|
|
2375
2493
|
outline: none;
|
|
2376
2494
|
}
|
|
2377
2495
|
|
|
2378
|
-
|
|
2496
|
+
/* `.well-input` sits on the <input> itself, so its placeholder is `.well-input::placeholder`
|
|
2497
|
+
(no space). The old `.well-input ::placeholder` looked for a placeholder of an element INSIDE
|
|
2498
|
+
the input and never matched, leaving the browser default (thinner than the value typed beside
|
|
2499
|
+
it). A placeholder now shares the field's family, size and weight; only the colour differs. */
|
|
2500
|
+
.well-input::placeholder {
|
|
2379
2501
|
color: var(--color-gray-500, #71747d);
|
|
2380
|
-
font-family:
|
|
2381
|
-
font-
|
|
2502
|
+
font-family: inherit;
|
|
2503
|
+
font-size: inherit;
|
|
2504
|
+
font-weight: inherit;
|
|
2505
|
+
opacity: 1;
|
|
2382
2506
|
}
|
|
2383
2507
|
|
|
2384
2508
|
.well-input [type="file"] {
|
|
@@ -3603,6 +3727,57 @@ body {
|
|
|
3603
3727
|
background-color: hsl(var(--muted));
|
|
3604
3728
|
}
|
|
3605
3729
|
|
|
3730
|
+
/* Avatar sizes and the brand look (initials on teal, thin gradient ring). */
|
|
3731
|
+
.avatar--sm {
|
|
3732
|
+
height: 2rem;
|
|
3733
|
+
width: 2rem;
|
|
3734
|
+
}
|
|
3735
|
+
|
|
3736
|
+
.avatar--sm .avatar-fallback {
|
|
3737
|
+
font-size: 0.75rem;
|
|
3738
|
+
}
|
|
3739
|
+
|
|
3740
|
+
.avatar--lg {
|
|
3741
|
+
height: 4rem;
|
|
3742
|
+
width: 4rem;
|
|
3743
|
+
}
|
|
3744
|
+
|
|
3745
|
+
.avatar--lg .avatar-fallback {
|
|
3746
|
+
font-size: 1.5rem;
|
|
3747
|
+
}
|
|
3748
|
+
|
|
3749
|
+
.avatar--xl {
|
|
3750
|
+
height: 11rem;
|
|
3751
|
+
width: 11rem;
|
|
3752
|
+
}
|
|
3753
|
+
|
|
3754
|
+
.avatar--xl .avatar-fallback {
|
|
3755
|
+
font-size: 4rem;
|
|
3756
|
+
}
|
|
3757
|
+
|
|
3758
|
+
.avatar--brand {
|
|
3759
|
+
box-sizing: border-box;
|
|
3760
|
+
border: 2px solid transparent;
|
|
3761
|
+
background:
|
|
3762
|
+
linear-gradient(#2f7a8f, #2f7a8f) padding-box,
|
|
3763
|
+
linear-gradient(135deg, #41d5f6, #3eecd1 55%, #ff7a8a) border-box;
|
|
3764
|
+
}
|
|
3765
|
+
|
|
3766
|
+
.avatar--brand.avatar--xl {
|
|
3767
|
+
border-width: 4px;
|
|
3768
|
+
}
|
|
3769
|
+
|
|
3770
|
+
.avatar--brand .avatar-fallback {
|
|
3771
|
+
background-color: transparent;
|
|
3772
|
+
color: #a9d3e3;
|
|
3773
|
+
font-family: var(--font-ftmade, ui-serif, Georgia, serif);
|
|
3774
|
+
font-size: 1rem;
|
|
3775
|
+
}
|
|
3776
|
+
|
|
3777
|
+
.avatar--brand.avatar--xl .avatar-fallback {
|
|
3778
|
+
font-size: 4rem;
|
|
3779
|
+
}
|
|
3780
|
+
|
|
3606
3781
|
/* Avatar Identity — Figma avatar-v0.2 (Layout). Does not replace .avatar */
|
|
3607
3782
|
.avatar-identity {
|
|
3608
3783
|
display: flex;
|
|
@@ -3801,6 +3976,57 @@ body {
|
|
|
3801
3976
|
line-height: 19.6px;
|
|
3802
3977
|
}
|
|
3803
3978
|
|
|
3979
|
+
/* appearance="soft" — a table-row identity: a pale initials disc, no gradient ring, and a name over
|
|
3980
|
+
a quieter email. Wraps long values rather than clipping them. */
|
|
3981
|
+
.avatar-identity--soft {
|
|
3982
|
+
gap: 12px;
|
|
3983
|
+
min-width: 0;
|
|
3984
|
+
max-width: 340px;
|
|
3985
|
+
}
|
|
3986
|
+
|
|
3987
|
+
.avatar-identity--soft .avatar-identity__face {
|
|
3988
|
+
width: 36px;
|
|
3989
|
+
height: 36px;
|
|
3990
|
+
}
|
|
3991
|
+
|
|
3992
|
+
.avatar-identity--soft .avatar-identity__face[data-face="initials"] {
|
|
3993
|
+
background: linear-gradient(135deg, #dff3fa, #e3f6ef);
|
|
3994
|
+
}
|
|
3995
|
+
|
|
3996
|
+
.avatar-identity--soft .avatar-identity__initials {
|
|
3997
|
+
color: #2f7a8f;
|
|
3998
|
+
font-size: 14px;
|
|
3999
|
+
line-height: inherit;
|
|
4000
|
+
letter-spacing: 0.02em;
|
|
4001
|
+
}
|
|
4002
|
+
|
|
4003
|
+
.avatar-identity--soft .avatar-identity__border {
|
|
4004
|
+
display: none;
|
|
4005
|
+
}
|
|
4006
|
+
|
|
4007
|
+
.avatar-identity--soft .avatar-identity__text {
|
|
4008
|
+
gap: 2px;
|
|
4009
|
+
}
|
|
4010
|
+
|
|
4011
|
+
.avatar-identity--soft .avatar-identity__name,
|
|
4012
|
+
.avatar-identity--soft .avatar-identity__email {
|
|
4013
|
+
white-space: normal;
|
|
4014
|
+
overflow-wrap: anywhere;
|
|
4015
|
+
text-box-trim: none;
|
|
4016
|
+
}
|
|
4017
|
+
|
|
4018
|
+
.avatar-identity--soft .avatar-identity__name {
|
|
4019
|
+
font-size: 14px;
|
|
4020
|
+
line-height: 1.35;
|
|
4021
|
+
color: inherit;
|
|
4022
|
+
}
|
|
4023
|
+
|
|
4024
|
+
.avatar-identity--soft .avatar-identity__email {
|
|
4025
|
+
font-size: 13px;
|
|
4026
|
+
line-height: 1.4;
|
|
4027
|
+
color: #6b7280;
|
|
4028
|
+
}
|
|
4029
|
+
|
|
3804
4030
|
/* Tag Styles */
|
|
3805
4031
|
.status-tag {
|
|
3806
4032
|
display: inline-flex;
|
|
@@ -5253,6 +5479,45 @@ body {
|
|
|
5253
5479
|
line-height: 1.25rem;
|
|
5254
5480
|
}
|
|
5255
5481
|
|
|
5482
|
+
/* DialogContent appearance="form" — the back-office dialog. A 560px panel inside the usual lighter
|
|
5483
|
+
frame (outer radius stays inner + 12px), roomier padding, a left-aligned title and description in
|
|
5484
|
+
the page font at a readable size, and a little more air between header, body and footer. */
|
|
5485
|
+
.dialog-content--form {
|
|
5486
|
+
width: min(560px, calc(100vw - 32px));
|
|
5487
|
+
}
|
|
5488
|
+
|
|
5489
|
+
.dialog-content--form .dialog-content-wrapper {
|
|
5490
|
+
border-radius: 36px; /* the inner 24px plus the 12px frame, so the two curves stay concentric */
|
|
5491
|
+
}
|
|
5492
|
+
|
|
5493
|
+
.dialog-content--form .dialog-content-inner {
|
|
5494
|
+
gap: 24px;
|
|
5495
|
+
padding: 32px;
|
|
5496
|
+
border-radius: 24px;
|
|
5497
|
+
}
|
|
5498
|
+
|
|
5499
|
+
.dialog-content--form .dialog-header {
|
|
5500
|
+
align-items: flex-start;
|
|
5501
|
+
gap: 12px;
|
|
5502
|
+
padding-right: 32px; /* clear of the close button */
|
|
5503
|
+
text-align: left;
|
|
5504
|
+
}
|
|
5505
|
+
|
|
5506
|
+
.dialog-content--form .dialog-header .dialog-title {
|
|
5507
|
+
text-align: left;
|
|
5508
|
+
}
|
|
5509
|
+
|
|
5510
|
+
.dialog-content--form .dialog-description {
|
|
5511
|
+
font-family: var(--font-mazzard);
|
|
5512
|
+
font-size: 16px;
|
|
5513
|
+
line-height: 1.5;
|
|
5514
|
+
color: var(--color-gray-700, #4a4d58);
|
|
5515
|
+
}
|
|
5516
|
+
|
|
5517
|
+
.dialog-content--form .dialog-footer {
|
|
5518
|
+
gap: 12px;
|
|
5519
|
+
}
|
|
5520
|
+
|
|
5256
5521
|
/* Select Styles */
|
|
5257
5522
|
.select-trigger {
|
|
5258
5523
|
display: flex;
|
|
@@ -14868,6 +15133,58 @@ body {
|
|
|
14868
15133
|
border-color: var(--color-gray-200, #e2e3e6);
|
|
14869
15134
|
color: var(--color-gray-700, #3d3f47);
|
|
14870
15135
|
}
|
|
15136
|
+
|
|
15137
|
+
/* Generic tones: roles, record states and flags that are not invoice states. */
|
|
15138
|
+
.status-pill--info {
|
|
15139
|
+
background-color: #e3f0fa;
|
|
15140
|
+
border-color: #c7e0f3;
|
|
15141
|
+
color: #1f5f93;
|
|
15142
|
+
}
|
|
15143
|
+
|
|
15144
|
+
.status-pill--success {
|
|
15145
|
+
background-color: #e6f6ee;
|
|
15146
|
+
border-color: #c5e8d4;
|
|
15147
|
+
color: #1c6b3f;
|
|
15148
|
+
}
|
|
15149
|
+
|
|
15150
|
+
.status-pill--warning {
|
|
15151
|
+
background-color: #fdf3df;
|
|
15152
|
+
border-color: #f6e2b3;
|
|
15153
|
+
color: #8a5a00;
|
|
15154
|
+
}
|
|
15155
|
+
|
|
15156
|
+
.status-pill--danger {
|
|
15157
|
+
background-color: #fde9e7;
|
|
15158
|
+
border-color: #f6cfca;
|
|
15159
|
+
color: #a1352a;
|
|
15160
|
+
}
|
|
15161
|
+
|
|
15162
|
+
.status-pill--accent {
|
|
15163
|
+
background-color: #efe9fb;
|
|
15164
|
+
border-color: #ddd0f5;
|
|
15165
|
+
color: #5b3aa8;
|
|
15166
|
+
}
|
|
15167
|
+
|
|
15168
|
+
.status-pill--inactive {
|
|
15169
|
+
background-color: #f3f4f6;
|
|
15170
|
+
border-color: #d9dce3;
|
|
15171
|
+
color: #6b7280;
|
|
15172
|
+
text-decoration: line-through;
|
|
15173
|
+
}
|
|
15174
|
+
|
|
15175
|
+
.status-pill--plain {
|
|
15176
|
+
background-color: #f1f3f6;
|
|
15177
|
+
border-color: transparent;
|
|
15178
|
+
color: #4a4d58;
|
|
15179
|
+
}
|
|
15180
|
+
|
|
15181
|
+
/* appearance="chip": sentence case, tighter padding, the line height of its surroundings. */
|
|
15182
|
+
.status-pill--chip {
|
|
15183
|
+
padding: 3px 10px;
|
|
15184
|
+
line-height: inherit;
|
|
15185
|
+
letter-spacing: normal;
|
|
15186
|
+
text-transform: none;
|
|
15187
|
+
}
|
|
14871
15188
|
/* /DS_PENDING_CSS:StatusPill */
|
|
14872
15189
|
|
|
14873
15190
|
/* DS_PENDING_CSS:CreditCardPreview */
|
|
@@ -15154,6 +15471,12 @@ body {
|
|
|
15154
15471
|
transition: background-color 0.15s ease-in-out;
|
|
15155
15472
|
}
|
|
15156
15473
|
|
|
15474
|
+
.modal-close-row--roomy {
|
|
15475
|
+
height: 64px;
|
|
15476
|
+
padding-right: 16px;
|
|
15477
|
+
margin-bottom: -64px;
|
|
15478
|
+
}
|
|
15479
|
+
|
|
15157
15480
|
.modal-close:hover {
|
|
15158
15481
|
background-color: rgba(255, 255, 255, 0.6);
|
|
15159
15482
|
}
|
|
@@ -15164,9 +15487,11 @@ body {
|
|
|
15164
15487
|
box-sizing: border-box;
|
|
15165
15488
|
display: flex;
|
|
15166
15489
|
flex-direction: column;
|
|
15167
|
-
gap: 24px;
|
|
15490
|
+
gap: var(--modal-panel-gap, 24px);
|
|
15168
15491
|
width: 100%;
|
|
15169
15492
|
padding: 24px;
|
|
15493
|
+
padding-top: var(--modal-panel-padding-top, 24px);
|
|
15494
|
+
padding-bottom: var(--modal-panel-padding-bottom, 24px);
|
|
15170
15495
|
border-radius: 24px;
|
|
15171
15496
|
outline: 12px solid rgba(255, 255, 255, 0.2);
|
|
15172
15497
|
outline-offset: 0;
|
|
@@ -15229,6 +15554,14 @@ body {
|
|
|
15229
15554
|
color: var(--color-gray-800, #282a31);
|
|
15230
15555
|
}
|
|
15231
15556
|
|
|
15557
|
+
.modal-title--large {
|
|
15558
|
+
height: auto;
|
|
15559
|
+
}
|
|
15560
|
+
|
|
15561
|
+
.modal-title--large .modal-title__text.heading-xxsmall {
|
|
15562
|
+
font-size: 28px;
|
|
15563
|
+
}
|
|
15564
|
+
|
|
15232
15565
|
.modal-prompt-row {
|
|
15233
15566
|
box-sizing: border-box;
|
|
15234
15567
|
display: flex;
|
|
@@ -15828,6 +16161,22 @@ body {
|
|
|
15828
16161
|
border-radius: var(--radius-md, 8px);
|
|
15829
16162
|
}
|
|
15830
16163
|
|
|
16164
|
+
.resource-thumbnail--preview {
|
|
16165
|
+
width: auto;
|
|
16166
|
+
max-width: 100%;
|
|
16167
|
+
max-height: 160px;
|
|
16168
|
+
aspect-ratio: auto;
|
|
16169
|
+
border-radius: 10px;
|
|
16170
|
+
}
|
|
16171
|
+
|
|
16172
|
+
.resource-thumbnail--thumb {
|
|
16173
|
+
width: 56px;
|
|
16174
|
+
height: 40px;
|
|
16175
|
+
aspect-ratio: auto;
|
|
16176
|
+
border-radius: 6px;
|
|
16177
|
+
background: var(--color-neutral-100, #f1f1f1);
|
|
16178
|
+
}
|
|
16179
|
+
|
|
15831
16180
|
/* ---------------------------------------------------------------------------
|
|
15832
16181
|
FileAttachment — status + filename + remove, as one attached-file row
|
|
15833
16182
|
--------------------------------------------------------------------------- */
|
|
@@ -15985,3 +16334,463 @@ body {
|
|
|
15985
16334
|
color: var(--color-gray-900, #1a282f);
|
|
15986
16335
|
}
|
|
15987
16336
|
/* /DS_PENDING_CSS:PriceTag */
|
|
16337
|
+
|
|
16338
|
+
/* ============================================================================
|
|
16339
|
+
Back-office components: Table card, SideNav, CheckboxField, RadioCard,
|
|
16340
|
+
OutlineNode, BackLink
|
|
16341
|
+
========================================================================== */
|
|
16342
|
+
|
|
16343
|
+
/* Table — appearance="card": one bordered card, tinted header, soft row dividers, hover. */
|
|
16344
|
+
.table-wrapper--card {
|
|
16345
|
+
overflow: hidden;
|
|
16346
|
+
border: 1px solid #e3e8ef;
|
|
16347
|
+
border-radius: 16px;
|
|
16348
|
+
background-color: #fff;
|
|
16349
|
+
box-shadow:
|
|
16350
|
+
0 1px 2px rgba(16, 24, 40, 0.04),
|
|
16351
|
+
0 4px 12px -6px rgba(16, 24, 40, 0.06);
|
|
16352
|
+
}
|
|
16353
|
+
|
|
16354
|
+
.table-wrapper--card .table {
|
|
16355
|
+
width: 100%;
|
|
16356
|
+
border-collapse: collapse;
|
|
16357
|
+
}
|
|
16358
|
+
|
|
16359
|
+
.table-wrapper--card .table-header {
|
|
16360
|
+
background-color: #f6f8fb;
|
|
16361
|
+
}
|
|
16362
|
+
|
|
16363
|
+
.table-wrapper--card .table-header-cell {
|
|
16364
|
+
padding-top: 14px;
|
|
16365
|
+
padding-bottom: 14px;
|
|
16366
|
+
border-bottom: 1px solid #e3e8ef;
|
|
16367
|
+
font-size: 11px;
|
|
16368
|
+
font-weight: 600;
|
|
16369
|
+
letter-spacing: 0.08em;
|
|
16370
|
+
color: #6b7280;
|
|
16371
|
+
white-space: nowrap;
|
|
16372
|
+
}
|
|
16373
|
+
|
|
16374
|
+
.table-wrapper--card .table-row {
|
|
16375
|
+
transition: background-color 0.12s ease;
|
|
16376
|
+
}
|
|
16377
|
+
|
|
16378
|
+
.table-wrapper--card .table-row:not(:last-child) .table-cell {
|
|
16379
|
+
border-bottom: 1px solid #eef1f5;
|
|
16380
|
+
}
|
|
16381
|
+
|
|
16382
|
+
.table-wrapper--card tbody .table-row:hover {
|
|
16383
|
+
background-color: #f4f9fd;
|
|
16384
|
+
}
|
|
16385
|
+
|
|
16386
|
+
.table-cell--strong {
|
|
16387
|
+
font-weight: bolder;
|
|
16388
|
+
}
|
|
16389
|
+
|
|
16390
|
+
.table-wrapper--card .table-cell {
|
|
16391
|
+
padding-top: 14px;
|
|
16392
|
+
padding-bottom: 14px;
|
|
16393
|
+
font-size: 14px;
|
|
16394
|
+
color: #1f2430;
|
|
16395
|
+
vertical-align: middle;
|
|
16396
|
+
}
|
|
16397
|
+
|
|
16398
|
+
/* Phones: keep the table's natural width and scroll sideways inside its card. */
|
|
16399
|
+
@media (max-width: 767px) {
|
|
16400
|
+
.table-wrapper--card {
|
|
16401
|
+
overflow-x: auto;
|
|
16402
|
+
}
|
|
16403
|
+
|
|
16404
|
+
.table-wrapper--card .table {
|
|
16405
|
+
min-width: 640px;
|
|
16406
|
+
}
|
|
16407
|
+
}
|
|
16408
|
+
|
|
16409
|
+
/* SideNav — grouped, icon-led navigation with a clear active state. */
|
|
16410
|
+
.side-nav {
|
|
16411
|
+
display: flex;
|
|
16412
|
+
flex-direction: column;
|
|
16413
|
+
gap: 24px;
|
|
16414
|
+
/* How far the active bar reaches left, to sit on the panel's edge (its padding). */
|
|
16415
|
+
--side-nav-edge: 12px;
|
|
16416
|
+
}
|
|
16417
|
+
|
|
16418
|
+
.side-nav__group {
|
|
16419
|
+
display: flex;
|
|
16420
|
+
flex-direction: column;
|
|
16421
|
+
gap: 2px;
|
|
16422
|
+
}
|
|
16423
|
+
|
|
16424
|
+
.side-nav__heading {
|
|
16425
|
+
padding: 0 14px 8px;
|
|
16426
|
+
font-size: 11px;
|
|
16427
|
+
font-weight: 600;
|
|
16428
|
+
letter-spacing: 0.08em;
|
|
16429
|
+
text-transform: uppercase;
|
|
16430
|
+
color: #8a8e9a;
|
|
16431
|
+
}
|
|
16432
|
+
|
|
16433
|
+
.side-nav__item {
|
|
16434
|
+
position: relative;
|
|
16435
|
+
display: flex;
|
|
16436
|
+
align-items: center;
|
|
16437
|
+
gap: 12px;
|
|
16438
|
+
width: 100%;
|
|
16439
|
+
padding: 10px 14px;
|
|
16440
|
+
border: 0;
|
|
16441
|
+
border-radius: 12px;
|
|
16442
|
+
background: none;
|
|
16443
|
+
font: inherit;
|
|
16444
|
+
font-size: 14px;
|
|
16445
|
+
font-weight: 500;
|
|
16446
|
+
color: #4a4d58;
|
|
16447
|
+
text-align: left;
|
|
16448
|
+
text-decoration: none;
|
|
16449
|
+
cursor: pointer;
|
|
16450
|
+
transition:
|
|
16451
|
+
background-color 0.15s ease,
|
|
16452
|
+
color 0.15s ease;
|
|
16453
|
+
}
|
|
16454
|
+
|
|
16455
|
+
.side-nav__icon {
|
|
16456
|
+
display: inline-flex;
|
|
16457
|
+
flex: none;
|
|
16458
|
+
color: #8a8e9a;
|
|
16459
|
+
transition: color 0.15s ease;
|
|
16460
|
+
}
|
|
16461
|
+
|
|
16462
|
+
.side-nav__icon svg {
|
|
16463
|
+
width: 18px;
|
|
16464
|
+
height: 18px;
|
|
16465
|
+
}
|
|
16466
|
+
|
|
16467
|
+
.side-nav__item:hover {
|
|
16468
|
+
background-color: #f1f5f9;
|
|
16469
|
+
color: #1f2430;
|
|
16470
|
+
}
|
|
16471
|
+
|
|
16472
|
+
.side-nav__item:hover .side-nav__icon {
|
|
16473
|
+
color: #3f74ad;
|
|
16474
|
+
}
|
|
16475
|
+
|
|
16476
|
+
.side-nav__item:focus-visible {
|
|
16477
|
+
outline: 2px solid #3b8fc9;
|
|
16478
|
+
outline-offset: 1px;
|
|
16479
|
+
}
|
|
16480
|
+
|
|
16481
|
+
.side-nav__item--active {
|
|
16482
|
+
background: linear-gradient(90deg, #e3f0fa 0%, #eef7f6 100%);
|
|
16483
|
+
color: #1f5f93;
|
|
16484
|
+
font-weight: 600;
|
|
16485
|
+
}
|
|
16486
|
+
|
|
16487
|
+
.side-nav__item--active .side-nav__icon {
|
|
16488
|
+
color: #2f7a8f;
|
|
16489
|
+
}
|
|
16490
|
+
|
|
16491
|
+
.side-nav__item--active::before {
|
|
16492
|
+
content: "";
|
|
16493
|
+
position: absolute;
|
|
16494
|
+
top: 8px;
|
|
16495
|
+
bottom: 8px;
|
|
16496
|
+
left: calc(var(--side-nav-edge) * -1);
|
|
16497
|
+
width: 3px;
|
|
16498
|
+
border-radius: 0 3px 3px 0;
|
|
16499
|
+
background: linear-gradient(180deg, #41d5f6, #3eecd1);
|
|
16500
|
+
}
|
|
16501
|
+
|
|
16502
|
+
/* Collapsed: icons only. `font-size: 0` hides the text of an item rendered with `asChild` too. */
|
|
16503
|
+
.side-nav--collapsed .side-nav__heading,
|
|
16504
|
+
.side-nav--collapsed .side-nav__label {
|
|
16505
|
+
display: none;
|
|
16506
|
+
}
|
|
16507
|
+
|
|
16508
|
+
.side-nav--collapsed .side-nav__item {
|
|
16509
|
+
justify-content: center;
|
|
16510
|
+
padding: 12px 0;
|
|
16511
|
+
font-size: 0;
|
|
16512
|
+
}
|
|
16513
|
+
|
|
16514
|
+
/* CheckboxField — a checkbox with its label and optional description. */
|
|
16515
|
+
.checkbox-field {
|
|
16516
|
+
display: inline-flex;
|
|
16517
|
+
align-items: flex-start;
|
|
16518
|
+
gap: 8px;
|
|
16519
|
+
}
|
|
16520
|
+
|
|
16521
|
+
.checkbox-field > .checkbox {
|
|
16522
|
+
margin-top: 2px;
|
|
16523
|
+
}
|
|
16524
|
+
|
|
16525
|
+
.checkbox-field__text {
|
|
16526
|
+
display: flex;
|
|
16527
|
+
flex-direction: column;
|
|
16528
|
+
gap: 2px;
|
|
16529
|
+
}
|
|
16530
|
+
|
|
16531
|
+
.checkbox-field__label {
|
|
16532
|
+
font-size: 14px;
|
|
16533
|
+
line-height: 20px;
|
|
16534
|
+
color: #1f2430;
|
|
16535
|
+
cursor: pointer;
|
|
16536
|
+
}
|
|
16537
|
+
|
|
16538
|
+
.checkbox-field__description {
|
|
16539
|
+
font-size: 13px;
|
|
16540
|
+
line-height: 18px;
|
|
16541
|
+
color: #6b7280;
|
|
16542
|
+
}
|
|
16543
|
+
|
|
16544
|
+
.checkbox-field--disabled .checkbox-field__label {
|
|
16545
|
+
cursor: not-allowed;
|
|
16546
|
+
opacity: 0.5;
|
|
16547
|
+
}
|
|
16548
|
+
|
|
16549
|
+
/* RadioCard — single choice where each option is a card with a title and a line of detail. */
|
|
16550
|
+
.radio-card-group {
|
|
16551
|
+
display: flex;
|
|
16552
|
+
flex-direction: column;
|
|
16553
|
+
gap: 8px;
|
|
16554
|
+
}
|
|
16555
|
+
|
|
16556
|
+
.radio-card {
|
|
16557
|
+
display: flex;
|
|
16558
|
+
flex-direction: column;
|
|
16559
|
+
align-items: flex-start;
|
|
16560
|
+
gap: 2px;
|
|
16561
|
+
width: 100%;
|
|
16562
|
+
padding: 12px 16px;
|
|
16563
|
+
border: 1px solid #d5e3f0;
|
|
16564
|
+
border-radius: 14px;
|
|
16565
|
+
background: #fff;
|
|
16566
|
+
text-align: left;
|
|
16567
|
+
font: inherit;
|
|
16568
|
+
cursor: pointer;
|
|
16569
|
+
transition:
|
|
16570
|
+
border-color 0.15s ease,
|
|
16571
|
+
background-color 0.15s ease;
|
|
16572
|
+
}
|
|
16573
|
+
|
|
16574
|
+
.radio-card:hover {
|
|
16575
|
+
border-color: #3b8fc9;
|
|
16576
|
+
}
|
|
16577
|
+
|
|
16578
|
+
.radio-card:focus-visible {
|
|
16579
|
+
outline: 2px solid #3b8fc9;
|
|
16580
|
+
outline-offset: 2px;
|
|
16581
|
+
}
|
|
16582
|
+
|
|
16583
|
+
.radio-card[data-state="checked"] {
|
|
16584
|
+
border-color: #2f7a8f;
|
|
16585
|
+
background: linear-gradient(90deg, #e3f0fa 0%, #eef7f6 100%);
|
|
16586
|
+
box-shadow: 0 0 0 1px #2f7a8f inset;
|
|
16587
|
+
}
|
|
16588
|
+
|
|
16589
|
+
.radio-card[data-disabled] {
|
|
16590
|
+
opacity: 0.5;
|
|
16591
|
+
cursor: not-allowed;
|
|
16592
|
+
}
|
|
16593
|
+
|
|
16594
|
+
.radio-card__title {
|
|
16595
|
+
font-size: 15px;
|
|
16596
|
+
font-weight: 600;
|
|
16597
|
+
color: #1f2430;
|
|
16598
|
+
}
|
|
16599
|
+
|
|
16600
|
+
.radio-card__description {
|
|
16601
|
+
font-size: 13px;
|
|
16602
|
+
color: #6b7280;
|
|
16603
|
+
}
|
|
16604
|
+
|
|
16605
|
+
/* OutlineNode — one row of an editable outline: section card, indented branch, compact leaf. */
|
|
16606
|
+
.tree-node {
|
|
16607
|
+
display: flex;
|
|
16608
|
+
flex-direction: column;
|
|
16609
|
+
gap: 4px;
|
|
16610
|
+
}
|
|
16611
|
+
|
|
16612
|
+
.tree-node--section {
|
|
16613
|
+
padding: 16px;
|
|
16614
|
+
border: 1px solid #e3e8ef;
|
|
16615
|
+
border-radius: 16px;
|
|
16616
|
+
background: #fff;
|
|
16617
|
+
}
|
|
16618
|
+
|
|
16619
|
+
.tree-node--branch {
|
|
16620
|
+
margin: 8px 0 0 20px;
|
|
16621
|
+
padding-left: 14px;
|
|
16622
|
+
border-left: 2px solid #dbe7f3;
|
|
16623
|
+
}
|
|
16624
|
+
|
|
16625
|
+
.tree-node--leaf {
|
|
16626
|
+
flex-direction: row;
|
|
16627
|
+
align-items: center;
|
|
16628
|
+
justify-content: space-between;
|
|
16629
|
+
gap: 12px;
|
|
16630
|
+
margin: 4px 0 0 18px;
|
|
16631
|
+
padding: 8px 10px;
|
|
16632
|
+
border-radius: 10px;
|
|
16633
|
+
font-size: 14px;
|
|
16634
|
+
}
|
|
16635
|
+
|
|
16636
|
+
.tree-node--leaf:hover {
|
|
16637
|
+
background-color: #f4f9fd;
|
|
16638
|
+
}
|
|
16639
|
+
|
|
16640
|
+
.tree-node[data-inactive] > .tree-node__head .tree-node__title,
|
|
16641
|
+
.tree-node--leaf[data-inactive] > .tree-node__title {
|
|
16642
|
+
color: #6b7280;
|
|
16643
|
+
}
|
|
16644
|
+
|
|
16645
|
+
.tree-node__head {
|
|
16646
|
+
display: flex;
|
|
16647
|
+
align-items: center;
|
|
16648
|
+
justify-content: space-between;
|
|
16649
|
+
gap: 12px;
|
|
16650
|
+
flex-wrap: wrap;
|
|
16651
|
+
}
|
|
16652
|
+
|
|
16653
|
+
.tree-node__title {
|
|
16654
|
+
display: inline-flex;
|
|
16655
|
+
align-items: center;
|
|
16656
|
+
flex-wrap: wrap;
|
|
16657
|
+
gap: 8px;
|
|
16658
|
+
}
|
|
16659
|
+
|
|
16660
|
+
.tree-node__code {
|
|
16661
|
+
font-weight: bolder;
|
|
16662
|
+
}
|
|
16663
|
+
|
|
16664
|
+
.tree-node__meta {
|
|
16665
|
+
font-size: 12px;
|
|
16666
|
+
color: #6b7280;
|
|
16667
|
+
}
|
|
16668
|
+
|
|
16669
|
+
.tree-node__controls {
|
|
16670
|
+
display: inline-flex;
|
|
16671
|
+
align-items: center;
|
|
16672
|
+
flex-wrap: wrap;
|
|
16673
|
+
gap: 8px;
|
|
16674
|
+
}
|
|
16675
|
+
|
|
16676
|
+
/* BackLink — "← Back to <list>" above a detail page's title. */
|
|
16677
|
+
.back-link {
|
|
16678
|
+
display: inline-flex;
|
|
16679
|
+
align-items: center;
|
|
16680
|
+
gap: 8px;
|
|
16681
|
+
align-self: flex-start;
|
|
16682
|
+
padding: 6px 12px 6px 8px;
|
|
16683
|
+
border: 0;
|
|
16684
|
+
border-radius: 999px;
|
|
16685
|
+
background: none;
|
|
16686
|
+
font: inherit;
|
|
16687
|
+
font-size: 14px;
|
|
16688
|
+
font-weight: 500;
|
|
16689
|
+
color: #3f74ad;
|
|
16690
|
+
text-decoration: none;
|
|
16691
|
+
cursor: pointer;
|
|
16692
|
+
transition: background-color 0.15s ease;
|
|
16693
|
+
}
|
|
16694
|
+
|
|
16695
|
+
.back-link:hover {
|
|
16696
|
+
background-color: #e8f1f9;
|
|
16697
|
+
}
|
|
16698
|
+
|
|
16699
|
+
.back-link:focus-visible {
|
|
16700
|
+
outline: 2px solid #3b8fc9;
|
|
16701
|
+
outline-offset: 1px;
|
|
16702
|
+
}
|
|
16703
|
+
|
|
16704
|
+
.back-link__icon {
|
|
16705
|
+
width: 18px;
|
|
16706
|
+
height: 18px;
|
|
16707
|
+
}
|
|
16708
|
+
|
|
16709
|
+
/* IconButton — a quiet icon-only button for chrome and tree rows. */
|
|
16710
|
+
.icon-button {
|
|
16711
|
+
display: inline-flex;
|
|
16712
|
+
align-items: center;
|
|
16713
|
+
justify-content: center;
|
|
16714
|
+
border: 0;
|
|
16715
|
+
background: none;
|
|
16716
|
+
color: #6b7280;
|
|
16717
|
+
cursor: pointer;
|
|
16718
|
+
transition:
|
|
16719
|
+
background-color 0.15s ease,
|
|
16720
|
+
color 0.15s ease;
|
|
16721
|
+
}
|
|
16722
|
+
|
|
16723
|
+
.icon-button:focus-visible {
|
|
16724
|
+
outline: 2px solid #3b8fc9;
|
|
16725
|
+
outline-offset: 1px;
|
|
16726
|
+
}
|
|
16727
|
+
|
|
16728
|
+
.icon-button:disabled {
|
|
16729
|
+
opacity: 0.35;
|
|
16730
|
+
cursor: default;
|
|
16731
|
+
}
|
|
16732
|
+
|
|
16733
|
+
.icon-button--md {
|
|
16734
|
+
width: 36px;
|
|
16735
|
+
height: 36px;
|
|
16736
|
+
border-radius: 10px;
|
|
16737
|
+
color: #4a4d58;
|
|
16738
|
+
}
|
|
16739
|
+
|
|
16740
|
+
.icon-button--md:hover:not(:disabled) {
|
|
16741
|
+
background-color: #f1f5f9;
|
|
16742
|
+
color: #1f5f93;
|
|
16743
|
+
}
|
|
16744
|
+
|
|
16745
|
+
.icon-button--sm {
|
|
16746
|
+
width: 28px;
|
|
16747
|
+
height: 28px;
|
|
16748
|
+
border-radius: 8px;
|
|
16749
|
+
}
|
|
16750
|
+
|
|
16751
|
+
.icon-button--sm:hover:not(:disabled) {
|
|
16752
|
+
background-color: #e8f1f9;
|
|
16753
|
+
color: #1f5f93;
|
|
16754
|
+
}
|
|
16755
|
+
|
|
16756
|
+
.icon-button--bare {
|
|
16757
|
+
padding: 0;
|
|
16758
|
+
border-radius: 50%;
|
|
16759
|
+
}
|
|
16760
|
+
|
|
16761
|
+
.icon-button--bare:focus-visible {
|
|
16762
|
+
outline-offset: 2px;
|
|
16763
|
+
}
|
|
16764
|
+
|
|
16765
|
+
/* CenteredPage — a full-window page that sets one panel near the top, centred. */
|
|
16766
|
+
.centered-page {
|
|
16767
|
+
box-sizing: border-box;
|
|
16768
|
+
display: flex;
|
|
16769
|
+
justify-content: center;
|
|
16770
|
+
min-height: 100vh;
|
|
16771
|
+
padding: 96px 24px 24px;
|
|
16772
|
+
background-color: var(--color-gray-50, #f9f9fa);
|
|
16773
|
+
font-family: var(--font-mazzard);
|
|
16774
|
+
}
|
|
16775
|
+
|
|
16776
|
+
.centered-page__body {
|
|
16777
|
+
width: 420px;
|
|
16778
|
+
max-width: 100%;
|
|
16779
|
+
}
|
|
16780
|
+
|
|
16781
|
+
/* Text tone / strong / align — last, so they win over the variant classes. */
|
|
16782
|
+
.typo--muted {
|
|
16783
|
+
color: #6b7280;
|
|
16784
|
+
}
|
|
16785
|
+
|
|
16786
|
+
.typo--strong {
|
|
16787
|
+
font-weight: 600;
|
|
16788
|
+
}
|
|
16789
|
+
|
|
16790
|
+
.typo--center {
|
|
16791
|
+
text-align: center;
|
|
16792
|
+
}
|
|
16793
|
+
|
|
16794
|
+
.typo--relaxed {
|
|
16795
|
+
line-height: 1.5;
|
|
16796
|
+
}
|