@crewlethq/ui 0.69.0 → 0.70.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -1
- package/dist/AgentHandoffPanel/index.js +4 -4
- package/dist/AppShell/index.js +3 -3
- package/dist/ArtifactBar/index.js +5 -5
- package/dist/AvatarPicker/index.js +8 -8
- package/dist/BriefCard/index.js +3 -3
- package/dist/Button/Button.d.ts +10 -0
- package/dist/Button/index.js +1 -1
- package/dist/{Button-VRRYSXFN.css → Button-GDEBGBX6.css} +30 -3
- package/dist/Canvas/index.js +2 -2
- package/dist/CanvasBoard/index.js +4 -4
- package/dist/CanvasToolbar/index.js +3 -3
- package/dist/CharacterPicker/index.js +2 -2
- package/dist/ChatThread/index.js +2 -2
- package/dist/CodeBlock/index.js +3 -3
- package/dist/ColorSwatch/index.js +3 -3
- package/dist/CommandPalette/index.js +4 -4
- package/dist/CommentThread/index.js +4 -4
- package/dist/Composer/index.js +2 -2
- package/dist/ConflictNote/index.js +2 -2
- package/dist/Copyable/index.js +2 -2
- package/dist/DataGrid/DataGrid.d.ts +50 -4
- package/dist/DataGrid/index.d.ts +2 -2
- package/dist/DataGrid/index.js +2 -2
- package/dist/{DataGrid-NHIN2I42.css → DataGrid-Q26F2V5Q.css} +145 -24
- package/dist/DataTable/index.js +4 -4
- package/dist/DataView/index.js +8 -7
- package/dist/{DataView-RH5UDA5F.css → DataView-L7HLNW7C.css} +1 -112
- package/dist/DatasetSource/index.js +1 -1
- package/dist/DateTimePicker/index.js +2 -2
- package/dist/DeepWorkCard/index.js +4 -4
- package/dist/DocTabsEditor/index.js +3 -3
- package/dist/DownloadButton/index.js +2 -2
- package/dist/EditingStatus/index.js +2 -2
- package/dist/{Editor-NZRUKWB4.js → Editor-NNQEALNT.js} +3 -3
- package/dist/EntityList/index.js +1 -1
- package/dist/ErrorBoundary/index.js +2 -2
- package/dist/FileDrop/index.js +2 -2
- package/dist/FilterPill/FilterPill.d.ts +63 -0
- package/dist/FilterPill/index.d.ts +3 -0
- package/dist/FilterPill/index.js +4 -0
- package/dist/FilterPill-4GMNFZND.css +134 -0
- package/dist/FollowBanner/index.js +2 -2
- package/dist/HuePicker/index.js +5 -5
- package/dist/InlineEditor/index.js +4 -4
- package/dist/LinkInterstitial/index.js +3 -3
- package/dist/ListInput/index.js +3 -3
- package/dist/LogoSlot/index.js +3 -3
- package/dist/MarkdownEditor/index.js +5 -5
- package/dist/Menu/Menu.d.ts +10 -1
- package/dist/Menu/index.js +2 -2
- package/dist/{Menu-OLUGHX56.css → Menu-I4SNXHOT.css} +12 -0
- package/dist/MergeConflicts/index.js +5 -5
- package/dist/Modal/index.js +2 -2
- package/dist/OpenInAppCard/index.js +4 -4
- package/dist/PeekRail/index.js +2 -2
- package/dist/PeopleRail/index.js +2 -2
- package/dist/PresenterView/index.js +2 -2
- package/dist/ProposalCard/index.js +4 -4
- package/dist/ReceiptStrip/index.js +2 -2
- package/dist/RefusalCard/index.js +1 -1
- package/dist/ResultTableCard/index.js +4 -4
- package/dist/RichEditor/index.js +2 -2
- package/dist/SandboxedFrame/index.js +2 -2
- package/dist/SegmentedControl/index.js +4 -4
- package/dist/SelectionBar/index.js +2 -2
- package/dist/ShareDialog/index.js +4 -4
- package/dist/SheetColumnEditor/index.js +8 -8
- package/dist/SheetGrid/index.js +5 -5
- package/dist/SlideCompare/index.js +2 -2
- package/dist/SlideFilmstrip/index.js +3 -3
- package/dist/StatusCard/index.js +1 -1
- package/dist/Switcher/index.js +3 -3
- package/dist/TableCells/index.js +2 -2
- package/dist/{TableCells-F6MUV572.css → TableCells-TKSNLRK3.css} +1 -0
- package/dist/Tabs/index.js +3 -3
- package/dist/ThemeSwitcher/index.js +5 -5
- package/dist/TimeRangePicker/index.js +6 -6
- package/dist/TimeWindowPicker/index.js +2 -2
- package/dist/TreeCanvas/index.js +3 -3
- package/dist/VersionCompare/index.js +5 -5
- package/dist/VersionTimeline/index.js +2 -2
- package/dist/{chunk-HXJHRQDR.js → chunk-3EY5SEGH.js} +2 -2
- package/dist/{chunk-DS5NBENV.js → chunk-3LP3VPLT.js} +2 -2
- package/dist/{chunk-6MI2GMYG.js → chunk-3WN5HUAK.js} +2 -2
- package/dist/{chunk-4E3CE2UK.js → chunk-4DL2BQJE.js} +2 -2
- package/dist/{chunk-PQWNK3N7.js → chunk-4MVLED6E.js} +3 -3
- package/dist/{chunk-BXEKD5NU.js → chunk-6C6YK75K.js} +2 -2
- package/dist/{chunk-2A6DL3K5.js → chunk-6FBPFG3C.js} +1 -1
- package/dist/{chunk-L4UO57YP.js → chunk-73SAOOR5.js} +3 -3
- package/dist/{chunk-WXLQJUGO.js → chunk-ADSOY7UM.js} +1 -1
- package/dist/{chunk-GNDKUSCG.js → chunk-AGLONIVV.js} +1 -1
- package/dist/{chunk-2EA2GSA2.js → chunk-AQIFKLXY.js} +1 -1
- package/dist/{chunk-SUJO3AHN.js → chunk-B3PK2LND.js} +1 -1
- package/dist/{chunk-UYK3SGZI.js → chunk-BWFJB5JD.js} +3 -3
- package/dist/{chunk-I24FI46B.js → chunk-C667GCU7.js} +1 -1
- package/dist/{chunk-CWYU7DNT.js → chunk-CDNZTCP2.js} +1 -1
- package/dist/{chunk-NJYB4VJI.js → chunk-DB7UVFOY.js} +2 -2
- package/dist/{chunk-OJGI4XJH.js → chunk-DGSK4LLS.js} +1 -1
- package/dist/{chunk-7QTPJDRF.js → chunk-DGXZ635L.js} +7 -4
- package/dist/{chunk-2SU735S3.js → chunk-DV5L2GRY.js} +1 -1
- package/dist/{chunk-NSCYGUDG.js → chunk-EHFQMY3B.js} +1 -1
- package/dist/{chunk-S2UHV52X.js → chunk-EN4UJQ63.js} +3 -3
- package/dist/{chunk-6ID4DVML.js → chunk-EOXI3CRG.js} +1 -1
- package/dist/{chunk-VTGIDEI5.js → chunk-ERFXYGRF.js} +2 -2
- package/dist/{chunk-JEA5OX54.js → chunk-FQI62PIZ.js} +2 -2
- package/dist/{chunk-ELLRZ5XR.js → chunk-FURJVZCT.js} +72 -26
- package/dist/{chunk-5K7GGQNX.js → chunk-G4QZWVAB.js} +2 -2
- package/dist/{chunk-IABWA76I.js → chunk-H32JW6CZ.js} +2 -2
- package/dist/{chunk-PX54PALQ.js → chunk-HPI5J6AR.js} +1 -1
- package/dist/{chunk-ZEPUKRO7.js → chunk-IJ7KLXUZ.js} +1 -1
- package/dist/{chunk-PVZOP3QK.js → chunk-IPUEVTRJ.js} +1 -1
- package/dist/{chunk-RLBGU35B.js → chunk-J5WWMC35.js} +45 -46
- package/dist/{chunk-O3BNL4TV.js → chunk-JD7P2GJP.js} +1 -1
- package/dist/{chunk-KIJJD4YD.js → chunk-JQEXAH7G.js} +1 -1
- package/dist/{chunk-K4IVKHKU.js → chunk-JT7WRPZ6.js} +1 -1
- package/dist/chunk-K4LZXSKZ.js +62 -0
- package/dist/{chunk-ZHVLDRAT.js → chunk-KAA3GFTP.js} +4 -4
- package/dist/{chunk-WDNURPXU.js → chunk-KL6A7JGH.js} +1 -1
- package/dist/{chunk-2JHGPXYG.js → chunk-KQWJWTED.js} +1 -1
- package/dist/{chunk-WU5JDEEY.js → chunk-L4HHWG4V.js} +1 -1
- package/dist/{chunk-GDDVI4US.js → chunk-LQWORB5B.js} +1 -1
- package/dist/{chunk-EHB4TSP2.js → chunk-NXNLAZPK.js} +2 -2
- package/dist/{chunk-WPMZKZUH.js → chunk-O3HCFM3D.js} +1 -1
- package/dist/{chunk-F32FFE6I.js → chunk-OBPINJNO.js} +1 -1
- package/dist/{chunk-T73DMDU4.js → chunk-OQG4P5KU.js} +17 -3
- package/dist/{chunk-UWOYDHVW.js → chunk-P64MIA7C.js} +1 -1
- package/dist/{chunk-KHHDCNYM.js → chunk-PRN5IP2R.js} +1 -1
- package/dist/{chunk-DMK2A4IK.js → chunk-QSWQJX27.js} +1 -1
- package/dist/{chunk-D2ZXIQ23.js → chunk-R5OATXWU.js} +1 -1
- package/dist/{chunk-OFABBAUR.js → chunk-SMZPUHBL.js} +1 -1
- package/dist/{chunk-7QTJO3PV.js → chunk-SO5SXSTP.js} +1 -1
- package/dist/{chunk-IYG4ETAQ.js → chunk-T5GBTXNC.js} +1 -1
- package/dist/{chunk-DXVJSBEW.js → chunk-TKBFRGUV.js} +3 -3
- package/dist/{chunk-U7J52N67.js → chunk-TPCBPGSB.js} +1 -1
- package/dist/{chunk-W6UVBBNH.js → chunk-TYIHFDMP.js} +1 -1
- package/dist/{chunk-GJ7VIQWL.js → chunk-UY3FWQWG.js} +1 -1
- package/dist/{chunk-NTFVEOYY.js → chunk-VBA5FSWV.js} +1 -1
- package/dist/{chunk-7EOUVWGQ.js → chunk-VWMB3CJN.js} +1 -1
- package/dist/{chunk-CX6QT4CH.js → chunk-W5AXJWOW.js} +1 -1
- package/dist/{chunk-OWQATZGW.js → chunk-YGWIWDXE.js} +2 -2
- package/dist/{chunk-2T32N2WD.js → chunk-YUHKRRWO.js} +2 -2
- package/dist/{chunk-M25IV5MH.js → chunk-ZWCK4N4L.js} +1 -1
- package/dist/generated/index.d.ts +1 -0
- package/dist/generated/index.js +92 -91
- package/dist/index.js +92 -91
- package/dist/styles.css +333 -146
- package/package.json +3 -3
- package/dist/{chunk-XWOH3UPZ.js → chunk-5OFRDX66.js} +1 -1
- package/dist/{chunk-KBXSOBLD.js → chunk-ABZC3NLM.js} +0 -0
- package/dist/{chunk-VZICPYGR.js → chunk-SNQRGH4A.js} +1 -1
- package/dist/{chunk-AIMMHN5J.js → chunk-VLGGLLKH.js} +1 -1
package/README.md
CHANGED
|
@@ -44,7 +44,7 @@ import { Button } from '@crewlethq/ui/Button'; // 8 KB of CSS, not 182 KB
|
|
|
44
44
|
| Content and text | `Text` (the eight registers and `inherit`), `Prose`, `Statement`, `Document`, `DocumentTitle` and `DocumentTitleField`, the Markdown grammar (`parseMarkdown`, `parseMarkdownSpans`, `markdownInline`, `safeHref` and the line readers, with no React in it), `Highlight`, `InlineCode`, `List` and `ListItem`, `DescriptionList`, `Timeline`, `RelativeTime`, `Note`, `Divider` |
|
|
45
45
|
| Forms | `Input`, `Textarea`, `Label`, `FormField`, `FormRow`, `Checkbox`, `CheckboxGroup`, `ConfirmField`, `Select`, `Tag`, `TagsInput`, `DateTimePicker`, `TimeWindowPicker`, `TimeRangePicker`, `ImageUpload`, `CharacterPicker`, `HuePicker`, `AvatarPicker`, `FactList`, `ChoiceList`, `Composer`, `MarkdownEditor`, `RichEditor` (with `preloadRichEditor`, and the round trip `roundTripMarkdown` and `canonicalMarkdown` from `@crewlethq/ui/RichEditorMarkdown`) |
|
|
46
46
|
| Data display | `DataGrid` (with `useDataGridDriving`, `useAnyDataGridDriving` and `countDataGridRows`), `DataTable`, `CopyableCell`, `Table`, the read-only table cells (`TableKeyCell`, `TableNumberCell`, `TableDateCell`, `TableEntityCell`, `TableStatusCell`, `TableTagsCell`, `TableTextCell`), `StatCard`, `Meter`, `SegmentedMeter`, `Stepper`, `PricingCard`, `Avatar`, `AvatarStack`, `EntityChip`, `CodeBlock`, `QrCode`, `ObjectHeader`, `FactLine`, `SetByLine`, `Skeleton`, `Eyebrow`, `StatGroup`, `PinTile`, `IconTile`, `SettingsTable` (with `SettingsTable.Row`), `CatalogTile` |
|
|
47
|
-
| List screens | `DataView`, and its parts on their own: `DataViewToolbar`, `FilterAxisBar`, `FilterAxisChip`, plus the filter model (`filterDefsFromColumns`, `applyColumnFilters`, `filterPredicate`, `blankFilterValue`) |
|
|
47
|
+
| List screens | `DataView`, and its parts on their own: `DataViewToolbar`, `FilterAxisBar`, `FilterAxisChip`, `FilterPill`, plus the filter model (`filterDefsFromColumns`, `applyColumnFilters`, `filterPredicate`, `blankFilterValue`) |
|
|
48
48
|
| Feedback and overlays | `Callout`, `ConflictNote`, `EditingStatus`, `Toaster`, `Modal` (with `variant="sheet"`), `ConfirmModal`, `CommandPalette`, `Tooltip`, `Popover`, `Announcer` |
|
|
49
49
|
| Documents and review | `DiffView` and `DiffSummary` with the line diff they draw (`diffLines`, `diffStat`, `collapseDiff`, `firstChangedLines`, `splitLines`, `MAX_DIFF_LINES`, with no React in it), `DiffList`, `VersionCompare`, `CommentThread` |
|
|
50
50
|
| Conversations and the assistant | `ChatThread` (with `ChatThreadHandle`), `MessageBubble`, `RunChip`, `StepList` and `StepStateMark`, `ProposalCard`, `ChangeList` (with `shortenUnchanged`), `StatusCard`, `ReceiptStrip`, `RefusalStrip`, `ResultTableCard`, `OpenInAppCard`, `BriefCard`, `EntityList`, `RefusalCard`, `SuggestionRow` and `SuggestionList`, `SendButton` |
|
|
@@ -205,6 +205,24 @@ places:
|
|
|
205
205
|
- A surface that pans or zooms dispatches `LAYER_REPOSITION_EVENT` on its host
|
|
206
206
|
when the content beneath it moves, and every panel anchored inside follows.
|
|
207
207
|
|
|
208
|
+
## Changes in 0.70.0
|
|
209
|
+
|
|
210
|
+
**`FilterPill`, one filter in force as the sentence it is.** `field`, `operator` and `value` are drawn a step apart and separated by real spaces, so a pill reads, copies and is announced as "Status is In progress" rather than running its parts together. The field and the relation are the secondary ink at the regular weight; the value is the accent ink at the semibold weight, and the only part a long filter cuts. With no `operator` the field and the value are joined by a colon ("Role: Admin"); with no `value` the field alone names a switch ("Blocked"). It stands on the accent's soft pair, as a pressed `FilterChip` does. `onRemove` draws the remove control behind a hairline, named by the whole sentence ("Remove the Status is In progress filter") unless `removeLabel` names it. `renderWords` makes the words a control (a popover's trigger), handed the words and `FILTER_PILL_WORDS_CLASS`. `labels` replaces its words (`FILTER_PILL_LABELS`: `remove`, `removeUnnamed`, `fieldEnd`; `FilterPillLabels`). `filterPillSentence` builds the sentence where every part is a word. The remove control's rules outrank IconButton's own, so its height and square corners hold in any bundle order, and its hairline is logical (`border-inline-start`).
|
|
211
|
+
|
|
212
|
+
**`FilterAxisChip` is a `FilterPill`** whose words open its editor, so every filter in force on any list has one look. It draws an unusual operator in the relation's register ("Created on or before 1 March") rather than inside the value. `formatFilterValue` is unchanged. The `.crewlet-filter-axis-chip__*` part classes are gone; the chip's root keeps `.crewlet-filter-axis-chip`.
|
|
213
|
+
|
|
214
|
+
**A sortable `DataGrid` head says so before it is pressed.** It takes the surface hover overlay under the pointer and draws a two-way arrow on hover and on focus; the sorted head always draws an arrow naming its direction (up for ascending, down for descending), before the word in a right-aligned column. The arrow's box is always laid out, so a head never changes width under the pointer; **every sortable head is therefore about 16px wider at rest than before (the arrow and its gap), so the widths at which a grid drops a give-way column or stacks into card rows move accordingly.** A centred sortable head mirrors the arrow's box before its word, so the word stays on the column's middle. Where nothing hovers (`hover: none`, a touch screen) the two-way arrow is shown at rest. The whole head is the press target. Heads that cannot sort stay inert and draw no arrow unless they are the sort in force, which they still announce with `aria-sort`.
|
|
215
|
+
|
|
216
|
+
**`DataGrid` takes `defaultSort`**, the order the rows take while `sort` is empty, drawn on its column's head as the sort in force. A press steps ascending, descending, then back to the default, from the sort in force rather than from the address: a column at its default descending turns ascending, and a step that lands on the default is written as `''`, so an address holds only what the reader chose and no press changes nothing. `nextGridSort(column, sort, defaultSort)` is that cycle, pure.
|
|
217
|
+
|
|
218
|
+
**A `DataGrid` column has one edge, shared by its head and its values.** `align` takes `left` (the default), `right` or `center` (`DataGridAlign`), and the head, its sort button and every cell take the same modifier and the same inline inset, so a head never stands off the values it names. A right-aligned column draws tabular digits, so times and figures end on one edge. A column with `icon` (one glyph or face per row) is drawn in a fixed track (`DATA_GRID_ICON_TRACK`), centred, keeps the cells' own step on both sides even at the grid's edge, and is named by its `label`. `TableDateCell` draws tabular digits.
|
|
219
|
+
|
|
220
|
+
**`Button` takes `flush`, and `Menu` takes `valueTrigger`.** A flush button's words start on the line its box starts on: its padding and edge are taken back at its start by its size's own inset (`--crewlet-btn-inset`), and its focus ring is drawn inside. A ghost button drawn as a value (a status chosen in place, a face that opens a picker) then starts on the line the plain values in its column start on, in a table or a properties rail, instead of one padding and one edge inside it. The outdent reads `--crewlet-btn-flush-outdent`; a container with no gutter to give sets it to 0, which `DataGrid` does for its first column, its right and centred columns and its card rows. The grid's own outdent for a ghost control written straight into a cell is the same declaration, so the old `--crewlet-data-grid-control-outdent` is gone. `Menu`'s `valueTrigger` is a trigger that IS the value it changes: flush, and in the surrounding text's size, weight and ink rather than a button label's, so a writer's row in a table or a properties rail reads as a reader's.
|
|
221
|
+
|
|
222
|
+
**`DataGrid`'s handle activates a row that only links.** `DataGridHandle.activate` calls `onRowActivate` where the row has one, and otherwise follows the cursor row's `rowHref` link as a click would, with the keys held, so Enter opens a row in a grid of links and a modified Enter opens it elsewhere.
|
|
223
|
+
|
|
224
|
+
**The `DataGrid` foot is a caption, not a row.** It takes the micro step of type, the tertiary ink, half the row's inset and the grid's own ground under a hairline, where it took the head's raised ground at nearly a row's height, so a grid's head, rows and foot no longer blur into one stack. A note in the foot takes the foot's size.
|
|
225
|
+
|
|
208
226
|
## Changes in 0.69.0
|
|
209
227
|
|
|
210
228
|
**`BriefCard`, a brief as the assistant's answer card.** One sentence on what is going on (`summary`), the rows that wait on the reader (`needs`, never more than `BRIEF_CARD_MAX_NEEDS`, three, each with its words, one `detail`, a `tone` of `warning` (the default), `danger` or `neutral` drawn as a `StatusDot`, and one `action` button), one `recommended` next step on the accent's softest ground with an optional primary action (`null` leaves the block out), and `followUps`, the questions to ask next as plain `SuggestionRow`s under an "Ask next" label. An empty `needs` says "Nothing needs you." in words. It stands in a `StatusCard` titled "Brief" with `scope` and `asOf` beside the title and a Tag in the head that counts the rows ("2 need you") or says "All clear", so the card's region name carries the count. Every action is the host's own callback: the card never decides where a row leads. `labels` replaces any of its words (`BRIEF_CARD_LABELS`); the types are `BriefCardProps`, `BriefCardNeed`, `BriefCardNeedTone`, `BriefCardAction`, `BriefCardRecommendation`, `BriefCardFollowUp` and `BriefCardLabels`.
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export { AGENT_HANDOFF_LABELS, AgentHandoffPanel } from '../chunk-
|
|
1
|
+
export { AGENT_HANDOFF_LABELS, AgentHandoffPanel } from '../chunk-6C6YK75K.js';
|
|
2
2
|
import '../chunk-4MJN2KN6.js';
|
|
3
3
|
import '../chunk-WFCWPXJN.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-5OFRDX66.js';
|
|
5
5
|
import '../chunk-222VILSP.js';
|
|
6
6
|
import '../chunk-FFGEJUAP.js';
|
|
7
7
|
import '../chunk-CLJGFOTV.js';
|
|
8
|
+
import '../chunk-ANTAQAR4.js';
|
|
8
9
|
import '../chunk-ETSF7SU6.js';
|
|
9
10
|
import '../chunk-PGCLHYVP.js';
|
|
10
|
-
import '../chunk-ANTAQAR4.js';
|
|
11
11
|
import '../chunk-IVTQWOXV.js';
|
|
12
12
|
import '../chunk-MLDTLZAO.js';
|
|
13
13
|
import '../chunk-PQADV6P6.js';
|
|
14
14
|
import '../chunk-2G355KDJ.js';
|
|
15
15
|
import '../chunk-PIYJNCN7.js';
|
|
16
|
-
import '../chunk-
|
|
16
|
+
import '../chunk-DGXZ635L.js';
|
|
17
17
|
import '../chunk-OMV5W53A.js';
|
|
18
18
|
import '../chunk-2YTOOH3A.js';
|
|
19
19
|
import '../chunk-XSPCITPN.js';
|
package/dist/AppShell/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { APP_SHELL_ASIDE_WIDTH, AccountRow, AppShell, AppShellRail, AppShellRailRow, AppShellRailStatus, AppShellToggle, AppShellTopbar, readStoredWidth, useAppShell, useScreenBelow, useScreenWidth, useStoredWidth } from '../chunk-
|
|
1
|
+
export { APP_SHELL_ASIDE_WIDTH, AccountRow, AppShell, AppShellRail, AppShellRailRow, AppShellRailStatus, AppShellToggle, AppShellTopbar, readStoredWidth, useAppShell, useScreenBelow, useScreenWidth, useStoredWidth } from '../chunk-UY3FWQWG.js';
|
|
2
2
|
import '../chunk-RTPQDNW3.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-OQG4P5KU.js';
|
|
4
4
|
export { RESIZE_HANDLE_LARGE_STEP, RESIZE_HANDLE_STEP, ResizeHandle, clampSize, useAppShellAside, useAppShellPeek } from '../chunk-PIYJNCN7.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-DGXZ635L.js';
|
|
6
6
|
import '../chunk-OMV5W53A.js';
|
|
7
7
|
import '../chunk-2YTOOH3A.js';
|
|
8
8
|
import '../chunk-XSPCITPN.js';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export { ARTIFACT_BAR_LABELS, ArtifactBar, ArtifactVersionChip } from '../chunk-
|
|
1
|
+
export { ARTIFACT_BAR_LABELS, ArtifactBar, ArtifactVersionChip } from '../chunk-TKBFRGUV.js';
|
|
2
2
|
import '../chunk-25AZQ3GZ.js';
|
|
3
3
|
import '../chunk-I33UIUZD.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-TYIHFDMP.js';
|
|
5
|
+
import '../chunk-IPUEVTRJ.js';
|
|
6
6
|
import '../chunk-EGMQURBR.js';
|
|
7
7
|
import '../chunk-AVL52EME.js';
|
|
8
8
|
import '../chunk-WIATRXEJ.js';
|
|
9
9
|
import '../chunk-RSKW25Y5.js';
|
|
10
10
|
import '../chunk-ANTAQAR4.js';
|
|
11
11
|
import '../chunk-MLDTLZAO.js';
|
|
12
|
-
import '../chunk-
|
|
13
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-OQG4P5KU.js';
|
|
13
|
+
import '../chunk-DGXZ635L.js';
|
|
14
14
|
import '../chunk-OMV5W53A.js';
|
|
15
15
|
import '../chunk-2YTOOH3A.js';
|
|
16
16
|
import '../chunk-XSPCITPN.js';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export { AvatarPicker } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { AvatarPicker } from '../chunk-DB7UVFOY.js';
|
|
2
|
+
import '../chunk-AQIFKLXY.js';
|
|
3
3
|
import '../chunk-KHJIEPZV.js';
|
|
4
4
|
import '../chunk-AYKXMIOR.js';
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-PVZOP3QK.js';
|
|
5
|
+
import '../chunk-SNQRGH4A.js';
|
|
6
|
+
import '../chunk-TYIHFDMP.js';
|
|
7
|
+
import '../chunk-IPUEVTRJ.js';
|
|
9
8
|
import '../chunk-EGMQURBR.js';
|
|
10
9
|
import '../chunk-WIATRXEJ.js';
|
|
10
|
+
import '../chunk-PZKHBB7D.js';
|
|
11
11
|
import '../chunk-MLDTLZAO.js';
|
|
12
|
-
import '../chunk-
|
|
13
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-OQG4P5KU.js';
|
|
13
|
+
import '../chunk-DGXZ635L.js';
|
|
14
14
|
import '../chunk-OMV5W53A.js';
|
|
15
15
|
import '../chunk-2YTOOH3A.js';
|
|
16
16
|
import '../chunk-XSPCITPN.js';
|
package/dist/BriefCard/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { BRIEF_CARD_LABELS, BRIEF_CARD_MAX_NEEDS, BriefCard } from '../chunk-
|
|
1
|
+
export { BRIEF_CARD_LABELS, BRIEF_CARD_MAX_NEEDS, BriefCard } from '../chunk-VBA5FSWV.js';
|
|
2
2
|
import '../chunk-Y7PVLEZJ.js';
|
|
3
3
|
import '../chunk-NTQPJJAN.js';
|
|
4
4
|
import '../chunk-I5OIKDX2.js';
|
|
5
|
+
import '../chunk-WIATRXEJ.js';
|
|
5
6
|
import '../chunk-4AUTALJA.js';
|
|
6
7
|
import '../chunk-AV2DXAEL.js';
|
|
7
|
-
import '../chunk-WIATRXEJ.js';
|
|
8
8
|
import '../chunk-MLDTLZAO.js';
|
|
9
9
|
import '../chunk-PQADV6P6.js';
|
|
10
|
-
import '../chunk-
|
|
10
|
+
import '../chunk-DGXZ635L.js';
|
|
11
11
|
import '../chunk-XSPCITPN.js';
|
|
12
12
|
import '../chunk-UT6CW3C7.js';
|
|
13
13
|
import '../chunk-ODEQTPFM.js';
|
package/dist/Button/Button.d.ts
CHANGED
|
@@ -18,6 +18,16 @@ interface ButtonLook {
|
|
|
18
18
|
trailingIcon?: ReactNode;
|
|
19
19
|
/** Fills the line it is on. */
|
|
20
20
|
block?: boolean | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Its words start on the line its box starts on: the padding and the edge
|
|
23
|
+
* are taken back at the start, so only the hover ground and the focus ring
|
|
24
|
+
* reach past them. For a GHOST button drawn as a value (a status chosen in
|
|
25
|
+
* place, a face that opens a picker), which then starts on the same line as
|
|
26
|
+
* the plain values above and below it, in a table column or a properties
|
|
27
|
+
* rail. Its focus ring is drawn inside it, so a container's clip never cuts
|
|
28
|
+
* it.
|
|
29
|
+
*/
|
|
30
|
+
flush?: boolean | undefined;
|
|
21
31
|
className?: string | undefined;
|
|
22
32
|
children?: ReactNode;
|
|
23
33
|
}
|
package/dist/Button/index.js
CHANGED
|
@@ -110,23 +110,50 @@
|
|
|
110
110
|
per size. min-height rather than height, so a label that wraps is read
|
|
111
111
|
rather than clipped. */
|
|
112
112
|
.crewlet-btn--small {
|
|
113
|
+
--crewlet-btn-inset: var(--spacing-2);
|
|
114
|
+
|
|
113
115
|
min-height: var(--size-control-sm);
|
|
114
|
-
padding: 0 var(--
|
|
116
|
+
padding: 0 var(--crewlet-btn-inset);
|
|
115
117
|
font-size: var(--font-size-xs);
|
|
116
118
|
}
|
|
117
119
|
|
|
118
120
|
.crewlet-btn--medium {
|
|
121
|
+
--crewlet-btn-inset: var(--spacing-3);
|
|
122
|
+
|
|
119
123
|
min-height: var(--size-control-md);
|
|
120
|
-
padding: 0 var(--
|
|
124
|
+
padding: 0 var(--crewlet-btn-inset);
|
|
121
125
|
font-size: var(--font-size-compact);
|
|
122
126
|
}
|
|
123
127
|
|
|
124
128
|
.crewlet-btn--large {
|
|
129
|
+
--crewlet-btn-inset: var(--spacing-4);
|
|
130
|
+
|
|
125
131
|
min-height: var(--size-control-lg);
|
|
126
|
-
padding: 0 var(--
|
|
132
|
+
padding: 0 var(--crewlet-btn-inset);
|
|
127
133
|
font-size: var(--font-size-sm);
|
|
128
134
|
}
|
|
129
135
|
|
|
136
|
+
/*
|
|
137
|
+
* FLUSH: the words start on the line. The padding and the 1px edge are taken
|
|
138
|
+
* back at the start, so a ghost button drawn as a value starts on the line
|
|
139
|
+
* the plain values in its column start on, and only the hover ground and the
|
|
140
|
+
* ring reach past it, into the gutter before it. The START ONLY: taken back at
|
|
141
|
+
* the end too, the box overran its cell's content edge, which a column that
|
|
142
|
+
* measures what it cuts short reads as a value that does not fit. The ring is
|
|
143
|
+
* drawn inside, so a container that clips (a table, a card) never cuts it.
|
|
144
|
+
*
|
|
145
|
+
* A CONTAINER WITH NO GUTTER TO GIVE sets `--crewlet-btn-flush-outdent` to 0:
|
|
146
|
+
* a table's first column and its card rows (DataGrid.css), where the outdent
|
|
147
|
+
* would pull the control toward the frame.
|
|
148
|
+
*/
|
|
149
|
+
.crewlet-btn--flush {
|
|
150
|
+
margin-inline-start: var(--crewlet-btn-flush-outdent, calc(-1 * (var(--crewlet-btn-inset) + 1px)));
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.crewlet-btn--flush:focus-visible {
|
|
154
|
+
outline-offset: var(--size-focus-ring-inset-offset);
|
|
155
|
+
}
|
|
156
|
+
|
|
130
157
|
.crewlet-btn--square {
|
|
131
158
|
border-radius: var(--radius-md);
|
|
132
159
|
}
|
package/dist/Canvas/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { CANVAS_COMPOSE_CONTEXT, CANVAS_FIT_MAX_ZOOM, CANVAS_FIT_PADDING, CANVAS_FOCUS_CONTEXT, CANVAS_MAX_ZOOM, CANVAS_MIN_ZOOM, CANVAS_PAN_MARGIN, CANVAS_PAN_STEP, CANVAS_REVEAL_PADDING, CANVAS_TAP_SLOP, CANVAS_WHEEL_LINE_PX, CANVAS_WHEEL_ZOOM_PER_PIXEL, CANVAS_ZOOM_CEILING, CANVAS_ZOOM_LIMITS, CANVAS_ZOOM_STEP, Canvas, IDENTITY_VIEW, ShortcutTip, anchorView, beyondSlop, clampPan, clampZoom, fitView, gridOf, panBy, pinchView, regionView, revealView, screenRect, toScreen, toWorld, wheelPixels, wheelZoomFactor, zoomAt, zoomLimits } from '../chunk-
|
|
1
|
+
export { CANVAS_COMPOSE_CONTEXT, CANVAS_FIT_MAX_ZOOM, CANVAS_FIT_PADDING, CANVAS_FOCUS_CONTEXT, CANVAS_MAX_ZOOM, CANVAS_MIN_ZOOM, CANVAS_PAN_MARGIN, CANVAS_PAN_STEP, CANVAS_REVEAL_PADDING, CANVAS_TAP_SLOP, CANVAS_WHEEL_LINE_PX, CANVAS_WHEEL_ZOOM_PER_PIXEL, CANVAS_ZOOM_CEILING, CANVAS_ZOOM_LIMITS, CANVAS_ZOOM_STEP, Canvas, IDENTITY_VIEW, ShortcutTip, anchorView, beyondSlop, clampPan, clampZoom, fitView, gridOf, panBy, pinchView, regionView, revealView, screenRect, toScreen, toWorld, wheelPixels, wheelZoomFactor, zoomAt, zoomLimits } from '../chunk-OBPINJNO.js';
|
|
2
2
|
import '../chunk-LM3ISVJA.js';
|
|
3
3
|
import '../chunk-I33UIUZD.js';
|
|
4
4
|
import '../chunk-ANTAQAR4.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-DGXZ635L.js';
|
|
6
6
|
import '../chunk-OMV5W53A.js';
|
|
7
7
|
import '../chunk-XSPCITPN.js';
|
|
8
8
|
import '../chunk-H5XTJ7GJ.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { BOARD_NAME_MIN_CHARS, CANVAS_BOARD_MAX_LIVE, CANVAS_BOARD_MIN_LIVE_WIDTH, CANVAS_BOARD_MIN_ZOOM, CANVAS_NOTE_COLORS, CanvasBoard, TITLE_GLYPH_EM, boardName, boardRoom, liveBoards, titleSize } from '../chunk-
|
|
1
|
+
export { BOARD_NAME_MIN_CHARS, CANVAS_BOARD_MAX_LIVE, CANVAS_BOARD_MIN_LIVE_WIDTH, CANVAS_BOARD_MIN_ZOOM, CANVAS_NOTE_COLORS, CanvasBoard, TITLE_GLYPH_EM, boardName, boardRoom, liveBoards, titleSize } from '../chunk-FQI62PIZ.js';
|
|
2
2
|
import '../chunk-5SZGKSGL.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-KL6A7JGH.js';
|
|
4
4
|
import '../chunk-NR4CPM4T.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-OBPINJNO.js';
|
|
6
6
|
import '../chunk-LM3ISVJA.js';
|
|
7
7
|
import '../chunk-I33UIUZD.js';
|
|
8
8
|
import '../chunk-ANTAQAR4.js';
|
|
9
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-DGXZ635L.js';
|
|
10
10
|
import '../chunk-OMV5W53A.js';
|
|
11
11
|
import '../chunk-XSPCITPN.js';
|
|
12
12
|
import '../chunk-H5XTJ7GJ.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { CanvasToolbar, toolForKey } from '../chunk-
|
|
1
|
+
export { CanvasToolbar, toolForKey } from '../chunk-KL6A7JGH.js';
|
|
2
2
|
import '../chunk-NR4CPM4T.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-OBPINJNO.js';
|
|
4
4
|
import '../chunk-LM3ISVJA.js';
|
|
5
5
|
import '../chunk-I33UIUZD.js';
|
|
6
6
|
import '../chunk-ANTAQAR4.js';
|
|
7
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-DGXZ635L.js';
|
|
8
8
|
import '../chunk-OMV5W53A.js';
|
|
9
9
|
import '../chunk-XSPCITPN.js';
|
|
10
10
|
import '../chunk-H5XTJ7GJ.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../chunk-3L5NHASN.js';
|
|
2
|
-
export { CHARACTER_PICKER_COLUMNS, CharacterPicker } from '../chunk-
|
|
3
|
-
import '../chunk-PZKHBB7D.js';
|
|
2
|
+
export { CHARACTER_PICKER_COLUMNS, CharacterPicker } from '../chunk-SNQRGH4A.js';
|
|
4
3
|
import '../chunk-EGMQURBR.js';
|
|
4
|
+
import '../chunk-PZKHBB7D.js';
|
|
5
5
|
import '../chunk-ODEQTPFM.js';
|
package/dist/ChatThread/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { CHAT_THREAD_FOLLOW_WITHIN, CHAT_THREAD_LABELS, ChatThread } from '../chunk-
|
|
1
|
+
export { CHAT_THREAD_FOLLOW_WITHIN, CHAT_THREAD_LABELS, ChatThread } from '../chunk-R5OATXWU.js';
|
|
2
2
|
import '../chunk-RTPQDNW3.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-DGXZ635L.js';
|
|
4
4
|
import '../chunk-XSPCITPN.js';
|
|
5
5
|
import '../chunk-UT6CW3C7.js';
|
|
6
6
|
import '../chunk-ODEQTPFM.js';
|
package/dist/CodeBlock/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { CodeBlock } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { CodeBlock } from '../chunk-QSWQJX27.js';
|
|
2
|
+
import '../chunk-T5GBTXNC.js';
|
|
3
3
|
import '../chunk-STJ7QBC3.js';
|
|
4
4
|
import '../chunk-DTIW4CHZ.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-DGXZ635L.js';
|
|
6
6
|
import '../chunk-XSPCITPN.js';
|
|
7
7
|
import '../chunk-UAUP6XGK.js';
|
|
8
8
|
import '../chunk-UT6CW3C7.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { ColorSwatch } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { ColorSwatch } from '../chunk-6FBPFG3C.js';
|
|
2
|
+
import '../chunk-T5GBTXNC.js';
|
|
3
3
|
import '../chunk-STJ7QBC3.js';
|
|
4
4
|
import '../chunk-DTIW4CHZ.js';
|
|
5
5
|
import '../chunk-7W3LYIOC.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-DGXZ635L.js';
|
|
7
7
|
import '../chunk-XSPCITPN.js';
|
|
8
8
|
import '../chunk-UAUP6XGK.js';
|
|
9
9
|
import '../chunk-UT6CW3C7.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { CommandPalette } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { CommandPalette } from '../chunk-NXNLAZPK.js';
|
|
2
|
+
import '../chunk-C667GCU7.js';
|
|
3
3
|
import '../chunk-7KHM2FZH.js';
|
|
4
|
+
import '../chunk-ANTAQAR4.js';
|
|
4
5
|
import '../chunk-ETSF7SU6.js';
|
|
5
6
|
import '../chunk-PGCLHYVP.js';
|
|
6
|
-
import '../chunk-ANTAQAR4.js';
|
|
7
7
|
import '../chunk-MLDTLZAO.js';
|
|
8
8
|
import '../chunk-PQADV6P6.js';
|
|
9
9
|
import '../chunk-2G355KDJ.js';
|
|
10
|
-
import '../chunk-
|
|
10
|
+
import '../chunk-DGXZ635L.js';
|
|
11
11
|
import '../chunk-OMV5W53A.js';
|
|
12
12
|
import '../chunk-2YTOOH3A.js';
|
|
13
13
|
import '../chunk-XSPCITPN.js';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export { COMMENT_THREAD_LABELS, CommentThread } from '../chunk-
|
|
1
|
+
export { COMMENT_THREAD_LABELS, CommentThread } from '../chunk-YGWIWDXE.js';
|
|
2
2
|
import '../chunk-CI3VPIJN.js';
|
|
3
3
|
import '../chunk-EJNJMHQG.js';
|
|
4
4
|
import '../chunk-RE3FBGQQ.js';
|
|
5
5
|
import '../chunk-BKP6XCAJ.js';
|
|
6
6
|
import '../chunk-PZKHBB7D.js';
|
|
7
7
|
import '../chunk-BXCL6P5Z.js';
|
|
8
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-5OFRDX66.js';
|
|
9
|
+
import '../chunk-ANTAQAR4.js';
|
|
9
10
|
import '../chunk-ETSF7SU6.js';
|
|
10
11
|
import '../chunk-PGCLHYVP.js';
|
|
11
|
-
import '../chunk-ANTAQAR4.js';
|
|
12
12
|
import '../chunk-MLDTLZAO.js';
|
|
13
13
|
import '../chunk-PQADV6P6.js';
|
|
14
14
|
import '../chunk-2G355KDJ.js';
|
|
15
|
-
import '../chunk-
|
|
15
|
+
import '../chunk-DGXZ635L.js';
|
|
16
16
|
import '../chunk-OMV5W53A.js';
|
|
17
17
|
import '../chunk-XSPCITPN.js';
|
|
18
18
|
import '../chunk-H5XTJ7GJ.js';
|
package/dist/Composer/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { COMPOSER_COUNTER_AT, Composer } from '../chunk-
|
|
1
|
+
export { COMPOSER_COUNTER_AT, Composer } from '../chunk-5OFRDX66.js';
|
|
2
|
+
import '../chunk-ANTAQAR4.js';
|
|
2
3
|
import '../chunk-ETSF7SU6.js';
|
|
3
4
|
import '../chunk-PGCLHYVP.js';
|
|
4
|
-
import '../chunk-ANTAQAR4.js';
|
|
5
5
|
import '../chunk-PQADV6P6.js';
|
|
6
6
|
import '../chunk-2G355KDJ.js';
|
|
7
7
|
import '../chunk-OMV5W53A.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { CONFLICT_NOTE_LABELS, ConflictNote } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { CONFLICT_NOTE_LABELS, ConflictNote } from '../chunk-B3PK2LND.js';
|
|
2
|
+
import '../chunk-DGXZ635L.js';
|
|
3
3
|
import '../chunk-XSPCITPN.js';
|
|
4
4
|
import '../chunk-UT6CW3C7.js';
|
|
5
5
|
import '../chunk-ODEQTPFM.js';
|
package/dist/Copyable/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { CopyButton, Copyable } from '../chunk-
|
|
1
|
+
export { CopyButton, Copyable } from '../chunk-T5GBTXNC.js';
|
|
2
2
|
import '../chunk-STJ7QBC3.js';
|
|
3
3
|
import '../chunk-DTIW4CHZ.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-DGXZ635L.js';
|
|
5
5
|
import '../chunk-XSPCITPN.js';
|
|
6
6
|
import '../chunk-UAUP6XGK.js';
|
|
7
7
|
import '../chunk-UT6CW3C7.js';
|
|
@@ -5,6 +5,10 @@ import { type MouseEvent as ReactMouseEvent, type KeyboardEvent as ReactKeyboard
|
|
|
5
5
|
* Each carries the modifier keys a handler reads to open in a new tab.
|
|
6
6
|
*/
|
|
7
7
|
export type DataGridActivationEvent = ReactMouseEvent | ReactKeyboardEvent | KeyboardEvent;
|
|
8
|
+
/** The edge a column's head and values share. */
|
|
9
|
+
export type DataGridAlign = 'left' | 'right' | 'center';
|
|
10
|
+
/** The track an `icon` column is drawn in: the target size and the cell's inset either side. */
|
|
11
|
+
export declare const DATA_GRID_ICON_TRACK = "calc(var(--size-target-min) + var(--spacing-3) * 2)";
|
|
8
12
|
/** One column of a [DataGrid]. */
|
|
9
13
|
export interface DataGridColumn<T> {
|
|
10
14
|
key: string;
|
|
@@ -12,7 +16,23 @@ export interface DataGridColumn<T> {
|
|
|
12
16
|
cell: (row: T) => ReactNode;
|
|
13
17
|
/** The value sorted on. Omit to make the column unsortable. */
|
|
14
18
|
sortValue?: ((row: T) => string | number | null | undefined) | undefined;
|
|
15
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Which edge the column's values and its head share: `left` (the default)
|
|
21
|
+
* for words, `right` for figures, times and dates (their digits are
|
|
22
|
+
* tabular, so a column of them reads down one edge), `center` for a column
|
|
23
|
+
* of one mark per row. The head and every cell take the same edge and the
|
|
24
|
+
* same inset, so a head never stands off the values it names.
|
|
25
|
+
*/
|
|
26
|
+
align?: DataGridAlign | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* A column of ONE MARK per row (a glyph, a face, a priority): a fixed track
|
|
29
|
+
* (`DATA_GRID_ICON_TRACK`, the target size and the cell's inset either
|
|
30
|
+
* side), its head and every cell centred. A run of such columns then reads
|
|
31
|
+
* as aligned columns rather than marks scattered at their content's width.
|
|
32
|
+
* Name it with `label`, which the head says to assistive technology and
|
|
33
|
+
* shows on hover.
|
|
34
|
+
*/
|
|
35
|
+
icon?: boolean | undefined;
|
|
16
36
|
/**
|
|
17
37
|
* The column's name where `header` cannot carry one: a glyph head, or none
|
|
18
38
|
* at all. Drawn by the card layout a grid takes on a phone, where every value
|
|
@@ -156,7 +176,10 @@ export interface DataGridLabels {
|
|
|
156
176
|
export interface DataGridHandle {
|
|
157
177
|
/** Moves the cursor row by `by` rows, clamped, and scrolls it into view. */
|
|
158
178
|
step: (by: number) => void;
|
|
159
|
-
/**
|
|
179
|
+
/**
|
|
180
|
+
* Activates the cursor row, as a click on it would: its `onRowActivate`, or
|
|
181
|
+
* where it has none, its `rowHref` link. False when there is neither.
|
|
182
|
+
*/
|
|
160
183
|
activate: (event: ReactKeyboardEvent | KeyboardEvent) => boolean;
|
|
161
184
|
/** How many rows the grid draws, its bands' rows included. */
|
|
162
185
|
rowCount: () => number;
|
|
@@ -189,7 +212,16 @@ export interface DataGridProps<T> {
|
|
|
189
212
|
* Controlled, so an application keeps it where it keeps state (an address).
|
|
190
213
|
*/
|
|
191
214
|
sort?: string | undefined;
|
|
192
|
-
/**
|
|
215
|
+
/**
|
|
216
|
+
* The order the rows take while `sort` is empty (`key` or `-key`), drawn on
|
|
217
|
+
* its column's head as the sort in force. Empty for the rows' own order.
|
|
218
|
+
*/
|
|
219
|
+
defaultSort?: string | undefined;
|
|
220
|
+
/**
|
|
221
|
+
* A sortable head pressed: ascending, then descending, then back to the
|
|
222
|
+
* default. Called with `''` for the default, never with `defaultSort`
|
|
223
|
+
* itself, so an address holds the reader's choice and nothing else.
|
|
224
|
+
*/
|
|
193
225
|
onSortChange?: ((sort: string) => void) | undefined;
|
|
194
226
|
/** The rows arrive ordered by their source (a paged answer ordered over the whole set). */
|
|
195
227
|
serverSorted?: boolean | undefined;
|
|
@@ -235,6 +267,20 @@ export declare function parseGridSort(raw: string): {
|
|
|
235
267
|
key: string;
|
|
236
268
|
desc: boolean;
|
|
237
269
|
} | null;
|
|
270
|
+
/**
|
|
271
|
+
* The sort a press on a column's head asks for: ascending, then descending,
|
|
272
|
+
* then back to the default. PURE, so the cycle is held without a render.
|
|
273
|
+
*
|
|
274
|
+
* Against the EFFECTIVE sort (the reader's, else the default), because a head
|
|
275
|
+
* that reads "descending" must take its next press as one more step from
|
|
276
|
+
* descending, whoever chose it. Two rules keep every press a visible change:
|
|
277
|
+
*
|
|
278
|
+
* - a column already at its DEFAULT descending turns ascending, where the
|
|
279
|
+
* cycle's "back to the default" would have changed nothing;
|
|
280
|
+
* - a step that lands on the default is written as `''`, so the address holds
|
|
281
|
+
* only what the reader chose and the default can change under it.
|
|
282
|
+
*/
|
|
283
|
+
export declare function nextGridSort(column: string, sort: string, defaultSort?: string): string;
|
|
238
284
|
/** What the fit has decided for one set of columns, at one width. */
|
|
239
285
|
export interface GridFit {
|
|
240
286
|
/** The column set it was decided for. */
|
|
@@ -323,4 +369,4 @@ export declare function squeezed<T>(wrap: HTMLElement, visible: readonly DataGri
|
|
|
323
369
|
* lets its head stick against the page's scroller; an application whose
|
|
324
370
|
* scroller carries a sticky bar sets `--crewlet-data-grid-sticky-top`.
|
|
325
371
|
*/
|
|
326
|
-
export declare function DataGrid<T>({ rows, bands, columns, rowKey, onRowActivate, rowHref, isSelected, selection, isFailed, sort: sortRaw, onSortChange, serverSorted, cols: colsRaw, onColsChange, empty, footer, onLoadMore, loadedNote, phoneRows, flush, handleRef, onPointerDown, labels, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, className, }: DataGridProps<T>): import("react").JSX.Element;
|
|
372
|
+
export declare function DataGrid<T>({ rows, bands, columns, rowKey, onRowActivate, rowHref, isSelected, selection, isFailed, sort: sortRaw, defaultSort, onSortChange, serverSorted, cols: colsRaw, onColsChange, empty, footer, onLoadMore, loadedNote, phoneRows, flush, handleRef, onPointerDown, labels, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, className, }: DataGridProps<T>): import("react").JSX.Element;
|
package/dist/DataGrid/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './DataGrid.css';
|
|
2
|
-
export { ChooserList, ColumnChooser, DataGrid, columnChoicesOf, fitGridColumns, parseGridSort } from './DataGrid.js';
|
|
2
|
+
export { ChooserList, ColumnChooser, DATA_GRID_ICON_TRACK, DataGrid, columnChoicesOf, fitGridColumns, nextGridSort, parseGridSort, } from './DataGrid.js';
|
|
3
3
|
export { countDataGridRows, useAnyDataGridDriving, useDataGridDriving } from './driving.js';
|
|
4
4
|
export type { DataGridDriving } from './driving.js';
|
|
5
|
-
export type { ColumnChoice, ChooserItem, ChooserListProps, ColumnChooserProps, DataGridActivationEvent, DataGridBand, DataGridColumn, DataGridHandle, DataGridLabels, DataGridProps, GridFit, } from './DataGrid.js';
|
|
5
|
+
export type { ColumnChoice, ChooserItem, ChooserListProps, ColumnChooserProps, DataGridActivationEvent, DataGridAlign, DataGridBand, DataGridColumn, DataGridHandle, DataGridLabels, DataGridProps, GridFit, } from './DataGrid.js';
|
package/dist/DataGrid/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ChooserList, ColumnChooser, DataGrid, columnChoicesOf, countDataGridRows, fitGridColumns, parseGridSort, useAnyDataGridDriving, useDataGridDriving } from '../chunk-
|
|
1
|
+
export { ChooserList, ColumnChooser, DATA_GRID_ICON_TRACK, DataGrid, columnChoicesOf, countDataGridRows, fitGridColumns, nextGridSort, parseGridSort, useAnyDataGridDriving, useDataGridDriving } from '../chunk-FURJVZCT.js';
|
|
2
2
|
import '../chunk-PBCNINMB.js';
|
|
3
3
|
import '../chunk-PPUR46MK.js';
|
|
4
4
|
import '../chunk-ETSF7SU6.js';
|
|
@@ -6,7 +6,7 @@ import '../chunk-PGCLHYVP.js';
|
|
|
6
6
|
import '../chunk-PQADV6P6.js';
|
|
7
7
|
import '../chunk-2G355KDJ.js';
|
|
8
8
|
import '../chunk-RTPQDNW3.js';
|
|
9
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-DGXZ635L.js';
|
|
10
10
|
import '../chunk-XSPCITPN.js';
|
|
11
11
|
import '../chunk-H5XTJ7GJ.js';
|
|
12
12
|
import '../chunk-UAUP6XGK.js';
|