@crewlethq/ui 0.99.0 → 0.100.1
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/AddPill/index.js +1 -1
- package/dist/ArtifactBar/index.js +1 -1
- package/dist/DataGrid/index.js +2 -1
- package/dist/DataView/index.js +1 -1
- package/dist/DeepWorkCard/index.js +2 -2
- package/dist/MarkdownEditor/index.js +1 -1
- package/dist/MergeConflicts/index.js +1 -1
- package/dist/OrgLabel/OrgLabel.d.ts +6 -0
- package/dist/OrgLabel/index.js +1 -1
- package/dist/{OrgLabel-6UGWHDQQ.css → OrgLabel-7UJKEDT3.css} +23 -0
- package/dist/OrgNode/index.js +2 -2
- package/dist/OrgTable/OrgTable.d.ts +2 -2
- package/dist/OrgTable/index.js +5 -4
- package/dist/{OrgTable-GBRYKTDH.css → OrgTable-XYHEFI5X.css} +29 -24
- package/dist/RailList/index.js +1 -1
- package/dist/RichEditor/index.js +1 -1
- package/dist/RunChip/index.js +2 -2
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-PWTB7KEE.css → SegmentedControl-MHZMS2JJ.css} +4 -1
- package/dist/SelectionBar/SelectionBar.d.ts +6 -1
- package/dist/SelectionBar/index.js +1 -1
- package/dist/{SelectionBar-SCAU6EBY.css → SelectionBar-54W5IFF5.css} +9 -0
- package/dist/SetupWizard/index.js +2 -2
- package/dist/ShareDialog/index.js +1 -1
- package/dist/StatusLegend/index.js +1 -1
- package/dist/{StatusLegend-7MS2SBVC.css → StatusLegend-HVMKJQFY.css} +3 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-YQBNYCIS.css → Stepper-S4RC4OZ3.css} +20 -2
- package/dist/ThemeSwitcher/index.js +1 -1
- package/dist/TimeRangePicker/index.js +1 -1
- package/dist/TreeGrid/TreeGrid.d.ts +15 -7
- package/dist/TreeGrid/index.js +2 -1
- package/dist/{TreeGrid-PZ3DFVRO.css → TreeGrid-H3GHMKZX.css} +74 -33
- package/dist/VersionCompare/index.js +1 -1
- package/dist/{chunk-JQCKRABK.js → chunk-2WQEHXXB.js} +1 -1
- package/dist/{chunk-6FS6W3P5.js → chunk-3QKJV3KE.js} +1 -1
- package/dist/{chunk-4XYKBZJE.js → chunk-44GFQ4O3.js} +24 -14
- package/dist/chunk-CTQZK5J3.js +8 -0
- package/dist/{chunk-SSN7Y3UY.js → chunk-DVRECWCB.js} +1 -1
- package/dist/{chunk-ROFAWLFS.js → chunk-ERESJG6C.js} +4 -3
- package/dist/{chunk-4FNAPCCK.js → chunk-KN4YCWWO.js} +1 -1
- package/dist/{chunk-KUMHQY2B.js → chunk-LIDKF3LL.js} +1 -1
- package/dist/{chunk-IX6CHGM4.js → chunk-NGRSGJM3.js} +1 -1
- package/dist/{chunk-3QBQY2XK.js → chunk-QIVLL5HB.js} +27 -20
- package/dist/{chunk-MYFSVZKZ.js → chunk-SJP7WYIV.js} +1 -1
- package/dist/{chunk-WSR4OB4T.js → chunk-XOVSHJTZ.js} +1 -1
- package/dist/{chunk-Z6E3WOWS.js → chunk-XQWWA2LG.js} +4 -4
- package/dist/{chunk-FBNGCPKZ.js → chunk-XRKBPNX4.js} +1 -1
- package/dist/{chunk-AHPMAPVN.js → chunk-Z346ESBB.js} +2 -5
- package/dist/generated/index.js +50 -49
- package/dist/index.js +50 -49
- package/dist/styles.css +169 -68
- package/dist/utils/tableTrack.d.ts +21 -0
- package/package.json +3 -3
- package/dist/{Editor-QWGTLJHM.js → Editor-YHHCK5SJ.js} +1 -1
package/dist/styles.css
CHANGED
|
@@ -29116,7 +29116,7 @@ button.crewlet-mention-chip:focus-visible {
|
|
|
29116
29116
|
}
|
|
29117
29117
|
|
|
29118
29118
|
|
|
29119
|
-
/* OrgLabel-
|
|
29119
|
+
/* OrgLabel-7UJKEDT3.css */
|
|
29120
29120
|
/*
|
|
29121
29121
|
* What a node of an org chart and a row of an org table both say
|
|
29122
29122
|
* (OrgLabel.tsx).
|
|
@@ -29263,6 +29263,29 @@ button.crewlet-mention-chip:focus-visible {
|
|
|
29263
29263
|
content: none;
|
|
29264
29264
|
}
|
|
29265
29265
|
|
|
29266
|
+
/*
|
|
29267
|
+
* A LIVE STATE'S DOT, on the zone's lower corner: out of the flow in a box of fixed
|
|
29268
|
+
* size, so a change of state changes nothing a chart measures. It stands on the
|
|
29269
|
+
* card's own ground, written as the card paints it, to read clear of the mark.
|
|
29270
|
+
*/
|
|
29271
|
+
.crewlet-org-label__icon {
|
|
29272
|
+
position: relative;
|
|
29273
|
+
}
|
|
29274
|
+
|
|
29275
|
+
.crewlet-org-label__status {
|
|
29276
|
+
position: absolute;
|
|
29277
|
+
top: calc(50% + var(--spacing-1));
|
|
29278
|
+
left: calc(50% + var(--spacing-1));
|
|
29279
|
+
display: inline-flex;
|
|
29280
|
+
padding: 2px;
|
|
29281
|
+
border-radius: var(--radius-circle);
|
|
29282
|
+
background-color: var(--color-surface-background);
|
|
29283
|
+
background-image: linear-gradient(
|
|
29284
|
+
var(--crewlet-tree-canvas-card-fill, var(--color-surface-subtle)),
|
|
29285
|
+
var(--crewlet-tree-canvas-card-fill, var(--color-surface-subtle))
|
|
29286
|
+
);
|
|
29287
|
+
}
|
|
29288
|
+
|
|
29266
29289
|
/* ---- The name and its caption -------------------------------------------- */
|
|
29267
29290
|
|
|
29268
29291
|
/*
|
|
@@ -29753,7 +29776,7 @@ button.crewlet-mention-chip:focus-visible {
|
|
|
29753
29776
|
}
|
|
29754
29777
|
|
|
29755
29778
|
|
|
29756
|
-
/* OrgTable-
|
|
29779
|
+
/* OrgTable-XYHEFI5X.css */
|
|
29757
29780
|
/*
|
|
29758
29781
|
* An organization as an indented table of rows (OrgTable.tsx).
|
|
29759
29782
|
*
|
|
@@ -29811,19 +29834,12 @@ button.crewlet-mention-chip:focus-visible {
|
|
|
29811
29834
|
var(--size-target-min) * var(--crewlet-org-table-add-kinds) + (var(--crewlet-org-table-add-kinds) - 1) * 1px + 2px
|
|
29812
29835
|
);
|
|
29813
29836
|
/*
|
|
29814
|
-
* THE TRACK A ROW'S CONTROL STRIP TAKES
|
|
29815
|
-
*
|
|
29816
|
-
*
|
|
29817
|
-
* 16px where a row's measured 108, and every flexible column before it began
|
|
29818
|
-
* somewhere else in the header than in the rows: a table whose headings
|
|
29819
|
-
* named the wrong columns.
|
|
29820
|
-
*
|
|
29821
|
-
* The add's slot, the strip, and the cell's own inset. A caller with a
|
|
29822
|
-
* different number sets its own track; what matters is that the track is
|
|
29823
|
-
* fixed, and that it holds the add OPEN.
|
|
29837
|
+
* THE TRACK A ROW'S CONTROL STRIP TAKES: the add's slot, the strip, the gap
|
|
29838
|
+
* between them and the cell's own inset. A number because the strip's room is
|
|
29839
|
+
* reserved whatever a row draws in it, and because the track holds the add OPEN.
|
|
29824
29840
|
*/
|
|
29825
29841
|
--crewlet-org-table-actions: calc(
|
|
29826
|
-
var(--crewlet-org-table-add) + var(--crewlet-org-table-strip) + var(--spacing-2) *
|
|
29842
|
+
var(--crewlet-org-table-add) + var(--crewlet-org-table-strip) + var(--spacing-2) + var(--spacing-3) * 2
|
|
29827
29843
|
);
|
|
29828
29844
|
/*
|
|
29829
29845
|
* THE ROOM THE QUIET STRIP KEEPS, whatever that row draws in it: three
|
|
@@ -29884,7 +29900,7 @@ button.crewlet-mention-chip:focus-visible {
|
|
|
29884
29900
|
--crewlet-org-table-indent: var(--spacing-5);
|
|
29885
29901
|
}
|
|
29886
29902
|
|
|
29887
|
-
@container crewlet-org-table (width <
|
|
29903
|
+
@container crewlet-org-table (width < 75rem) {
|
|
29888
29904
|
.crewlet-org-table__grid {
|
|
29889
29905
|
--crewlet-org-table-indent: var(--spacing-5);
|
|
29890
29906
|
}
|
|
@@ -29894,9 +29910,13 @@ button.crewlet-mention-chip:focus-visible {
|
|
|
29894
29910
|
}
|
|
29895
29911
|
}
|
|
29896
29912
|
|
|
29913
|
+
/* A PHONE'S ROW IS A NAME AND ITS TWO CONTROLS, so the room a cell keeps either
|
|
29914
|
+
side of a control goes to the name. */
|
|
29897
29915
|
@container crewlet-org-table (width < 40rem) {
|
|
29898
|
-
.crewlet-org-table__grid {
|
|
29916
|
+
.crewlet-org-table .crewlet-org-table__grid {
|
|
29899
29917
|
--crewlet-org-table-indent: var(--spacing-3);
|
|
29918
|
+
--crewlet-tree-grid-inset: var(--spacing-1);
|
|
29919
|
+
--crewlet-tree-grid-edge: var(--spacing-1);
|
|
29900
29920
|
}
|
|
29901
29921
|
}
|
|
29902
29922
|
|
|
@@ -29950,7 +29970,7 @@ button.crewlet-mention-chip:focus-visible {
|
|
|
29950
29970
|
* centres what it holds.
|
|
29951
29971
|
*/
|
|
29952
29972
|
.crewlet-org-table [role='gridcell']:first-child {
|
|
29953
|
-
|
|
29973
|
+
padding-block: 0;
|
|
29954
29974
|
padding-inline-start: var(--spacing-2);
|
|
29955
29975
|
}
|
|
29956
29976
|
|
|
@@ -29961,8 +29981,11 @@ button.crewlet-mention-chip:focus-visible {
|
|
|
29961
29981
|
* END of the row, past the table's own edge and out of its scroller. Ended, it
|
|
29962
29982
|
* spills back over the row instead, where the pill's own ground covers
|
|
29963
29983
|
* whatever it crosses.
|
|
29984
|
+
*
|
|
29985
|
+
* ITS HEADING TAKES THE SAME EDGE, so the word stands over the controls it names.
|
|
29964
29986
|
*/
|
|
29965
|
-
.crewlet-org-table [role='gridcell']:last-child
|
|
29987
|
+
.crewlet-org-table [role='gridcell']:last-child,
|
|
29988
|
+
.crewlet-org-table [role='columnheader']:last-child {
|
|
29966
29989
|
justify-content: flex-end;
|
|
29967
29990
|
}
|
|
29968
29991
|
|
|
@@ -29990,8 +30013,8 @@ button.crewlet-mention-chip:focus-visible {
|
|
|
29990
30013
|
* the row's ground. In the plain border step it all but vanished on the
|
|
29991
30014
|
* table's own ground, and the branches beside it read as loose dashes.
|
|
29992
30015
|
*
|
|
29993
|
-
* It starts one hairline above the cell, over the
|
|
29994
|
-
* so the segments meet rather than being cut by that rule.
|
|
30016
|
+
* It starts one hairline above the cell, over the rule the row above draws at
|
|
30017
|
+
* its foot, so the segments meet rather than being cut by that rule.
|
|
29995
30018
|
*/
|
|
29996
30019
|
.crewlet-org-table__wire[data-trunk]::before {
|
|
29997
30020
|
inset-block: -1px 0;
|
|
@@ -30134,6 +30157,9 @@ button.crewlet-mention-chip:focus-visible {
|
|
|
30134
30157
|
justify-content: flex-end;
|
|
30135
30158
|
gap: var(--spacing-1);
|
|
30136
30159
|
min-width: var(--crewlet-org-table-strip);
|
|
30160
|
+
/* THE LAST GLYPH ENDS ON THE COLUMN'S EDGE, under its heading: a small icon
|
|
30161
|
+
button's own inset is taken back and only its hover's ground reaches past. */
|
|
30162
|
+
margin-inline-end: calc((var(--font-size-xs) - var(--size-control-sm)) / 2);
|
|
30137
30163
|
opacity: 0;
|
|
30138
30164
|
transition: opacity var(--motion-duration-fast) var(--motion-easing-default);
|
|
30139
30165
|
}
|
|
@@ -30189,22 +30215,24 @@ button.crewlet-mention-chip:focus-visible {
|
|
|
30189
30215
|
width: var(--crewlet-org-table-add);
|
|
30190
30216
|
}
|
|
30191
30217
|
|
|
30192
|
-
/* BESIDE A NAME the
|
|
30193
|
-
|
|
30218
|
+
/* BESIDE A NAME the slot is its mark's room, open or closed. A slot that grew
|
|
30219
|
+
as the pill opened squeezed the name and pulled the mark out from under the
|
|
30220
|
+
pointer, which closed the pill, which brought the mark back: a loop. */
|
|
30194
30221
|
.crewlet-org-table__add[data-placement='name'] {
|
|
30195
30222
|
justify-content: flex-start;
|
|
30196
30223
|
width: auto;
|
|
30197
30224
|
}
|
|
30198
30225
|
|
|
30199
|
-
|
|
30200
|
-
|
|
30201
|
-
}
|
|
30202
|
-
|
|
30203
|
-
/* It opens from its mark toward the row's end, never back over the name. */
|
|
30226
|
+
/* It opens from its mark toward the row's end, over the row and never back
|
|
30227
|
+
over the name, on its own opaque ground and above the cells after it. */
|
|
30204
30228
|
.crewlet-org-table__add[data-placement='name'] .crewlet-add-pill[data-layout='split'] {
|
|
30205
30229
|
--crewlet-add-pill-origin: translate(calc(var(--size-target-min) / -2), -50%);
|
|
30206
30230
|
}
|
|
30207
30231
|
|
|
30232
|
+
.crewlet-org-table__add[data-placement='name'] .crewlet-add-pill__sections {
|
|
30233
|
+
z-index: var(--z-index-raised);
|
|
30234
|
+
}
|
|
30235
|
+
|
|
30208
30236
|
|
|
30209
30237
|
/* Outline-VCXKKU3E.css */
|
|
30210
30238
|
/*
|
|
@@ -34288,7 +34316,7 @@ button.crewlet-presence-stack__member:focus-visible {
|
|
|
34288
34316
|
}
|
|
34289
34317
|
|
|
34290
34318
|
|
|
34291
|
-
/* SegmentedControl-
|
|
34319
|
+
/* SegmentedControl-MHZMS2JJ.css */
|
|
34292
34320
|
/*
|
|
34293
34321
|
* SegmentedControl: the pill row, drawn with the Tabs classes.
|
|
34294
34322
|
*
|
|
@@ -34435,10 +34463,13 @@ button.crewlet-presence-stack__member:focus-visible {
|
|
|
34435
34463
|
says nothing more. On the chosen chip the inset pill's tertiary figure lay
|
|
34436
34464
|
on the accent fill at 1.4:1; inheriting, it is the label's on-accent ink. */
|
|
34437
34465
|
.crewlet-segmented--chips .crewlet-count {
|
|
34438
|
-
|
|
34466
|
+
/* ROOM FOR TWO DIGITS, in step, so a live count passing 9 moves no chip. */
|
|
34467
|
+
min-width: 2ch;
|
|
34439
34468
|
padding: 0;
|
|
34440
34469
|
background: none;
|
|
34441
34470
|
color: inherit;
|
|
34471
|
+
font-variant-numeric: tabular-nums;
|
|
34472
|
+
text-align: start;
|
|
34442
34473
|
}
|
|
34443
34474
|
|
|
34444
34475
|
/* What completes the last choice sits in the row, at the chips' own height
|
|
@@ -35128,7 +35159,7 @@ svg.crewlet-select__chevron {
|
|
|
35128
35159
|
}
|
|
35129
35160
|
|
|
35130
35161
|
|
|
35131
|
-
/* SelectionBar-
|
|
35162
|
+
/* SelectionBar-54W5IFF5.css */
|
|
35132
35163
|
/*
|
|
35133
35164
|
* What is picked and what can be done to it: the count, the bulk actions and
|
|
35134
35165
|
* Clear, on the raised rung inside the strong hairline so it reads as a bar
|
|
@@ -35153,6 +35184,15 @@ svg.crewlet-select__chevron {
|
|
|
35153
35184
|
box-shadow: var(--shadow-sm);
|
|
35154
35185
|
}
|
|
35155
35186
|
|
|
35187
|
+
/* A small control's height and the hairline round it, where the bar takes the
|
|
35188
|
+
place of a row of chips. A phone docks the bar instead, at its full height. */
|
|
35189
|
+
@media (width >= 640px) {
|
|
35190
|
+
.crewlet-toolbar.crewlet-selection-bar--compact {
|
|
35191
|
+
min-height: calc(var(--size-control-sm) + 2px);
|
|
35192
|
+
padding-block: 0;
|
|
35193
|
+
}
|
|
35194
|
+
}
|
|
35195
|
+
|
|
35156
35196
|
.crewlet-selection-bar__count {
|
|
35157
35197
|
flex: none;
|
|
35158
35198
|
color: var(--color-text-primary);
|
|
@@ -40364,7 +40404,7 @@ svg.crewlet-select__chevron {
|
|
|
40364
40404
|
}
|
|
40365
40405
|
|
|
40366
40406
|
|
|
40367
|
-
/* StatusLegend-
|
|
40407
|
+
/* StatusLegend-HVMKJQFY.css */
|
|
40368
40408
|
/*
|
|
40369
40409
|
* A status legend (StatusLegend.tsx): each status's dot, word and quiet count
|
|
40370
40410
|
* on one line that wraps, in a canvas bar's type. As a filter, each item is a
|
|
@@ -40422,8 +40462,10 @@ button.crewlet-status-legend__item[aria-pressed='true'] {
|
|
|
40422
40462
|
color: var(--color-brand-accent-ink);
|
|
40423
40463
|
}
|
|
40424
40464
|
|
|
40425
|
-
/* The count is a quiet figure after the word, in step down the column
|
|
40465
|
+
/* The count is a quiet figure after the word, in step down the column, and
|
|
40466
|
+
room for two digits, so a count passing 9 moves no key beside it. */
|
|
40426
40467
|
.crewlet-status-legend__count {
|
|
40468
|
+
min-width: 2ch;
|
|
40427
40469
|
font-variant-numeric: tabular-nums;
|
|
40428
40470
|
color: var(--color-text-tertiary);
|
|
40429
40471
|
}
|
|
@@ -40635,7 +40677,7 @@ button.crewlet-status-legend__item[aria-pressed='true'] .crewlet-status-legend__
|
|
|
40635
40677
|
}
|
|
40636
40678
|
|
|
40637
40679
|
|
|
40638
|
-
/* Stepper-
|
|
40680
|
+
/* Stepper-S4RC4OZ3.css */
|
|
40639
40681
|
/*
|
|
40640
40682
|
* The stepper: where a sequence has got to (Stepper.tsx).
|
|
40641
40683
|
*
|
|
@@ -40664,6 +40706,11 @@ button.crewlet-status-legend__item[aria-pressed='true'] .crewlet-status-legend__
|
|
|
40664
40706
|
sizes around a pill: SetupWizard's row of steps clears the target band
|
|
40665
40707
|
above and under it by this height. Read it; do not set it. */
|
|
40666
40708
|
--crewlet-stepper-pill-height: calc(20px * var(--density, 1));
|
|
40709
|
+
/* The design's 5px between a mark and the word, and the two marks a pill
|
|
40710
|
+
draws: the 12px check and the 7px dot. See A PILL KEEPS ITS WIDTH. */
|
|
40711
|
+
--crewlet-stepper-mark-gap: calc(var(--spacing-1) * 1.25);
|
|
40712
|
+
--crewlet-stepper-check: 12px;
|
|
40713
|
+
--crewlet-stepper-dot: 7px;
|
|
40667
40714
|
|
|
40668
40715
|
display: flex;
|
|
40669
40716
|
flex-wrap: wrap;
|
|
@@ -40712,8 +40759,7 @@ button.crewlet-status-legend__item[aria-pressed='true'] .crewlet-status-legend__
|
|
|
40712
40759
|
.crewlet-stepper__chip {
|
|
40713
40760
|
display: inline-flex;
|
|
40714
40761
|
align-items: center;
|
|
40715
|
-
|
|
40716
|
-
gap: calc(var(--spacing-1) * 1.25);
|
|
40762
|
+
gap: var(--crewlet-stepper-mark-gap);
|
|
40717
40763
|
box-sizing: border-box;
|
|
40718
40764
|
/* The design's 20px pill, which follows the density with every other step
|
|
40719
40765
|
height in the kit. A pill that only labels takes no press; one a reader
|
|
@@ -40731,6 +40777,20 @@ button.crewlet-status-legend__item[aria-pressed='true'] .crewlet-status-legend__
|
|
|
40731
40777
|
white-space: nowrap;
|
|
40732
40778
|
}
|
|
40733
40779
|
|
|
40780
|
+
/*
|
|
40781
|
+
* A PILL KEEPS ITS WIDTH AS THE SEQUENCE ADVANCES: each holds the check's room, split
|
|
40782
|
+
* evenly about what it draws (the dot, or no mark). A row of steps is then one width
|
|
40783
|
+
* at every step, and either always wraps or never does.
|
|
40784
|
+
*/
|
|
40785
|
+
.crewlet-stepper__step--upcoming > .crewlet-stepper__chip,
|
|
40786
|
+
.crewlet-stepper__step--optional > .crewlet-stepper__chip {
|
|
40787
|
+
padding-inline: calc(var(--spacing-2) + (var(--crewlet-stepper-check) + var(--crewlet-stepper-mark-gap)) / 2);
|
|
40788
|
+
}
|
|
40789
|
+
|
|
40790
|
+
.crewlet-stepper__step--current:not(.crewlet-stepper__step--attention) > .crewlet-stepper__chip {
|
|
40791
|
+
padding-inline: calc(var(--spacing-2) + (var(--crewlet-stepper-check) - var(--crewlet-stepper-dot)) / 2);
|
|
40792
|
+
}
|
|
40793
|
+
|
|
40734
40794
|
.crewlet-stepper__label {
|
|
40735
40795
|
min-width: 0;
|
|
40736
40796
|
overflow: hidden;
|
|
@@ -47079,18 +47139,20 @@ svg.crewlet-time-window__tick {
|
|
|
47079
47139
|
}
|
|
47080
47140
|
|
|
47081
47141
|
|
|
47082
|
-
/* TreeGrid-
|
|
47142
|
+
/* TreeGrid-H3GHMKZX.css */
|
|
47083
47143
|
/*
|
|
47084
|
-
* A hierarchy as rows and columns (TreeGrid.tsx)
|
|
47085
|
-
*
|
|
47086
|
-
*
|
|
47087
|
-
* without a table: a table row cannot be a focusable treegrid row with a
|
|
47088
|
-
* level. The grid keeps a minimum width and scrolls sideways in its own box
|
|
47089
|
-
* below that, so a phone width screen keeps every column readable and the page
|
|
47090
|
-
* itself never scrolls sideways.
|
|
47144
|
+
* A hierarchy as rows and columns (TreeGrid.tsx), on `DataGrid`'s table rules: one
|
|
47145
|
+
* track list on the grid, which the head, body and rows pass through as `subgrid`.
|
|
47146
|
+
* Below its minimum width it scrolls sideways in its own box, never the page's.
|
|
47091
47147
|
*/
|
|
47092
47148
|
|
|
47093
47149
|
.crewlet-tree-grid {
|
|
47150
|
+
/* The inset between two columns, and the inset at the grid's two outer edges,
|
|
47151
|
+
as `--crewlet-data-grid-edge`: the cells' own step standing alone, the card's
|
|
47152
|
+
own in a flush card. */
|
|
47153
|
+
--crewlet-tree-grid-inset: var(--spacing-3);
|
|
47154
|
+
--crewlet-tree-grid-edge: var(--spacing-3);
|
|
47155
|
+
|
|
47094
47156
|
position: relative;
|
|
47095
47157
|
}
|
|
47096
47158
|
|
|
@@ -47125,15 +47187,25 @@ svg.crewlet-time-window__tick {
|
|
|
47125
47187
|
* menus open in, which must not be clipped.
|
|
47126
47188
|
*/
|
|
47127
47189
|
background: var(--color-surface-subtle);
|
|
47128
|
-
border: 1px solid var(--color-border-
|
|
47129
|
-
border-radius: var(--radius-
|
|
47190
|
+
border: 1px solid var(--color-border-hover);
|
|
47191
|
+
border-radius: var(--radius-md);
|
|
47130
47192
|
}
|
|
47131
47193
|
|
|
47132
47194
|
.crewlet-tree-grid__grid {
|
|
47195
|
+
display: grid;
|
|
47196
|
+
grid-template-columns: var(--crewlet-tree-grid-columns, minmax(0, 1fr));
|
|
47133
47197
|
min-width: var(--crewlet-tree-grid-min-width, 45rem);
|
|
47134
47198
|
font-size: var(--font-size-compact);
|
|
47135
47199
|
}
|
|
47136
47200
|
|
|
47201
|
+
.crewlet-tree-grid__head,
|
|
47202
|
+
.crewlet-tree-grid__body,
|
|
47203
|
+
.crewlet-tree-grid__row {
|
|
47204
|
+
display: grid;
|
|
47205
|
+
grid-template-columns: subgrid;
|
|
47206
|
+
grid-column: 1 / -1;
|
|
47207
|
+
}
|
|
47208
|
+
|
|
47137
47209
|
/* A CONTAINER-WIDTH GRID never scrolls sideways: it leaves out the columns its
|
|
47138
47210
|
width cannot hold, so its header can hold at the top of the page's scroll. */
|
|
47139
47211
|
.crewlet-tree-grid--container .crewlet-tree-grid__scroller {
|
|
@@ -47148,17 +47220,21 @@ svg.crewlet-time-window__tick {
|
|
|
47148
47220
|
position: sticky;
|
|
47149
47221
|
top: 0;
|
|
47150
47222
|
z-index: var(--z-index-sticky);
|
|
47151
|
-
|
|
47152
|
-
border-start-
|
|
47153
|
-
border-start-end-radius: calc(var(--radius-lg) - 1px);
|
|
47223
|
+
border-start-start-radius: calc(var(--radius-md) - 1px);
|
|
47224
|
+
border-start-end-radius: calc(var(--radius-md) - 1px);
|
|
47154
47225
|
}
|
|
47155
47226
|
|
|
47156
47227
|
/*
|
|
47157
47228
|
* INSIDE A FLUSH CARD THE CARD IS THE FRAME. A flush card exists so that a
|
|
47158
47229
|
* table's rows reach its edges (Card.css), and a grid that drew its own border
|
|
47159
47230
|
* and corner there was a second rounded box one pixel inside the first, with
|
|
47160
|
-
* the card's footer hanging outside it. The rows keep their own hairlines
|
|
47231
|
+
* the card's footer hanging outside it. The rows keep their own hairlines, and
|
|
47232
|
+
* the outer cells take the card's inset.
|
|
47161
47233
|
*/
|
|
47234
|
+
.crewlet-card--flush .crewlet-tree-grid {
|
|
47235
|
+
--crewlet-tree-grid-edge: var(--spacing-4);
|
|
47236
|
+
}
|
|
47237
|
+
|
|
47162
47238
|
.crewlet-card--flush .crewlet-tree-grid__scroller {
|
|
47163
47239
|
background: none;
|
|
47164
47240
|
border: none;
|
|
@@ -47166,22 +47242,29 @@ svg.crewlet-time-window__tick {
|
|
|
47166
47242
|
}
|
|
47167
47243
|
|
|
47168
47244
|
.crewlet-tree-grid__row {
|
|
47169
|
-
display: grid;
|
|
47170
|
-
grid-template-columns: var(--crewlet-tree-grid-columns, minmax(0, 1fr));
|
|
47171
47245
|
align-items: center;
|
|
47172
47246
|
min-height: var(--size-row-md);
|
|
47173
|
-
border-
|
|
47247
|
+
border-bottom: 1px solid var(--color-border-default);
|
|
47248
|
+
}
|
|
47249
|
+
|
|
47250
|
+
.crewlet-tree-grid__body > .crewlet-tree-grid__row:last-child {
|
|
47251
|
+
border-bottom: 0;
|
|
47252
|
+
}
|
|
47253
|
+
|
|
47254
|
+
.crewlet-tree-grid__body > .crewlet-tree-grid__row:hover {
|
|
47255
|
+
background: var(--color-surface-hover);
|
|
47174
47256
|
}
|
|
47175
47257
|
|
|
47176
47258
|
/*
|
|
47177
|
-
* THE HEAD IS THE TABLE'S HEADER REGISTER, in full
|
|
47178
|
-
*
|
|
47179
|
-
*
|
|
47180
|
-
* different ways. It is one micro-label step, declared once, wherever a column
|
|
47181
|
-
* is named.
|
|
47259
|
+
* THE HEAD IS THE TABLE'S HEADER REGISTER, in full, on the raised ground under
|
|
47260
|
+
* the stronger hairline `DataGrid` draws its head on. It is one micro-label
|
|
47261
|
+
* step, declared once, wherever a column is named.
|
|
47182
47262
|
*/
|
|
47183
47263
|
.crewlet-tree-grid__head .crewlet-tree-grid__row {
|
|
47184
|
-
|
|
47264
|
+
background: var(--color-surface-elevated);
|
|
47265
|
+
border-bottom: 1px solid var(--color-border-hover);
|
|
47266
|
+
border-start-start-radius: inherit;
|
|
47267
|
+
border-start-end-radius: inherit;
|
|
47185
47268
|
font-size: var(--font-size-2xs);
|
|
47186
47269
|
font-weight: var(--font-weight-medium);
|
|
47187
47270
|
letter-spacing: var(--font-letter-spacing-wide);
|
|
@@ -47189,13 +47272,37 @@ svg.crewlet-time-window__tick {
|
|
|
47189
47272
|
color: var(--color-text-tertiary);
|
|
47190
47273
|
}
|
|
47191
47274
|
|
|
47275
|
+
/*
|
|
47276
|
+
* A heading and its cells share one inline inset, so they start on one line. A cell
|
|
47277
|
+
* is the row's full height and centres what it holds, so a value that changes never
|
|
47278
|
+
* moves its box, and a focused cell's ring is the row's.
|
|
47279
|
+
*/
|
|
47192
47280
|
.crewlet-tree-grid__row > [role='columnheader'],
|
|
47193
47281
|
.crewlet-tree-grid__cell {
|
|
47282
|
+
--crewlet-tree-grid-cell-start: var(--crewlet-tree-grid-inset);
|
|
47283
|
+
--crewlet-tree-grid-cell-end: var(--crewlet-tree-grid-inset);
|
|
47284
|
+
|
|
47194
47285
|
display: flex;
|
|
47286
|
+
align-self: stretch;
|
|
47195
47287
|
align-items: center;
|
|
47196
47288
|
gap: var(--spacing-2);
|
|
47197
47289
|
min-width: 0;
|
|
47198
|
-
padding:
|
|
47290
|
+
padding-block: var(--spacing-1);
|
|
47291
|
+
padding-inline: var(--crewlet-tree-grid-cell-start) var(--crewlet-tree-grid-cell-end);
|
|
47292
|
+
}
|
|
47293
|
+
|
|
47294
|
+
.crewlet-tree-grid__row > [role='columnheader'] {
|
|
47295
|
+
padding-block: var(--spacing-2);
|
|
47296
|
+
}
|
|
47297
|
+
|
|
47298
|
+
.crewlet-tree-grid__row > [role='columnheader']:first-child,
|
|
47299
|
+
.crewlet-tree-grid__cell:first-child {
|
|
47300
|
+
--crewlet-tree-grid-cell-start: var(--crewlet-tree-grid-edge);
|
|
47301
|
+
}
|
|
47302
|
+
|
|
47303
|
+
.crewlet-tree-grid__row > [role='columnheader']:last-child,
|
|
47304
|
+
.crewlet-tree-grid__cell:last-child {
|
|
47305
|
+
--crewlet-tree-grid-cell-end: var(--crewlet-tree-grid-edge);
|
|
47199
47306
|
}
|
|
47200
47307
|
|
|
47201
47308
|
/* A COLUMN OF VALUES READ AFTER THE NAME takes the caption's size, a step under the name's. */
|
|
@@ -47206,11 +47313,11 @@ svg.crewlet-time-window__tick {
|
|
|
47206
47313
|
/*
|
|
47207
47314
|
* The indent is the row's own level, set on the row, ON TOP OF the inset every
|
|
47208
47315
|
* cell has. Replacing that inset left a top-level row's chevron flush against
|
|
47209
|
-
* the frame, its hover ground touching the edge, and the column starting
|
|
47210
|
-
*
|
|
47316
|
+
* the frame, its hover ground touching the edge, and the column starting further
|
|
47317
|
+
* out than its own heading and every other column.
|
|
47211
47318
|
*/
|
|
47212
47319
|
.crewlet-tree-grid__cell:first-child {
|
|
47213
|
-
padding-inline-start: calc(var(--
|
|
47320
|
+
padding-inline-start: calc(var(--crewlet-tree-grid-edge) + var(--spacing-5) * var(--crewlet-tree-grid-depth, 0));
|
|
47214
47321
|
}
|
|
47215
47322
|
|
|
47216
47323
|
/*
|
|
@@ -47274,9 +47381,7 @@ svg.crewlet-time-window__tick {
|
|
|
47274
47381
|
|
|
47275
47382
|
/*
|
|
47276
47383
|
* A HEADLESS GRID keeps its header row for a screen reader and draws no band:
|
|
47277
|
-
* the row is taken out of the layout the way VisuallyHidden takes text out
|
|
47278
|
-
* and the first row of the body loses the hairline that would otherwise sit
|
|
47279
|
-
* under the frame's own edge as a second line.
|
|
47384
|
+
* the row is taken out of the layout the way VisuallyHidden takes text out.
|
|
47280
47385
|
*/
|
|
47281
47386
|
.crewlet-tree-grid--headless .crewlet-tree-grid__head {
|
|
47282
47387
|
position: absolute;
|
|
@@ -47287,10 +47392,6 @@ svg.crewlet-time-window__tick {
|
|
|
47287
47392
|
white-space: nowrap;
|
|
47288
47393
|
}
|
|
47289
47394
|
|
|
47290
|
-
.crewlet-tree-grid--headless .crewlet-tree-grid__head + [role='rowgroup'] > .crewlet-tree-grid__row:first-child {
|
|
47291
|
-
border-top: 0;
|
|
47292
|
-
}
|
|
47293
|
-
|
|
47294
47395
|
/* The selection is where the reader is, so it takes the accent. */
|
|
47295
47396
|
.crewlet-tree-grid__row[aria-selected='true'] {
|
|
47296
47397
|
box-shadow: inset 2px 0 0 var(--color-brand-accent);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** How a table's column asks for its track. */
|
|
2
|
+
export interface TableTrack {
|
|
3
|
+
/** An exact track, in place of the computed one. */
|
|
4
|
+
width?: string | undefined;
|
|
5
|
+
/** Shrink to content, up to a fifth of the table. */
|
|
6
|
+
shrink?: boolean | undefined;
|
|
7
|
+
/** The narrowest a flexible column may be drawn. */
|
|
8
|
+
floor?: string | undefined;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The most of a table one `shrink` column may take: a fraction, so it is the
|
|
12
|
+
* same promise on a phone and a wide screen, and two at the cap still leave
|
|
13
|
+
* three fifths of the table to the flexible columns that are the point of it.
|
|
14
|
+
*/
|
|
15
|
+
export declare const SHRINK_SHARE = 0.2;
|
|
16
|
+
/**
|
|
17
|
+
* A column's grid track, by the rules every table of columns in the kit sizes by: a
|
|
18
|
+
* content-sized column is capped with `fit-content()`, since `max-content` would
|
|
19
|
+
* starve the name, and a flexible one takes the rest above its floor.
|
|
20
|
+
*/
|
|
21
|
+
export declare function tableTrack({ width, shrink, floor }: TableTrack): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crewlethq/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.100.1",
|
|
4
4
|
"description": "Crewlet shared React components built on @crewlethq/tokens and @crewlethq/icons.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"clean": "rm -rf dist src/generated"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@crewlethq/icons": "0.
|
|
46
|
-
"@crewlethq/tokens": "0.
|
|
45
|
+
"@crewlethq/icons": "0.100.1",
|
|
46
|
+
"@crewlethq/tokens": "0.100.1",
|
|
47
47
|
"prosemirror-commands": "1.7.2",
|
|
48
48
|
"prosemirror-gapcursor": "1.4.1",
|
|
49
49
|
"prosemirror-history": "1.5.1",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { schema, readMarkdown, writeMarkdown } from './chunk-7CSTEH5I.js';
|
|
2
1
|
import { richEditorLabels } from './chunk-2DMTW2Y3.js';
|
|
2
|
+
import { schema, readMarkdown, writeMarkdown } from './chunk-7CSTEH5I.js';
|
|
3
3
|
import './chunk-KOJPDCGQ.js';
|
|
4
4
|
import { safeHref, MARKDOWN_CALLOUT_TONES } from './chunk-KBZO4B33.js';
|
|
5
5
|
import { Toolbar } from './chunk-NXFTCPF6.js';
|