@crewlethq/ui 0.114.0 → 0.115.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/dist/styles.css CHANGED
@@ -23593,7 +23593,7 @@ a.crewlet-icon-btn {
23593
23593
  }
23594
23594
 
23595
23595
 
23596
- /* InboxList-G627C2OQ.css */
23596
+ /* InboxList-PKF6XXTA.css */
23597
23597
  /*
23598
23598
  * The inbox's column: groups of rows, each row a control with the task it is
23599
23599
  * about under it, and the quiet toggles at the end.
@@ -23974,10 +23974,11 @@ a.crewlet-icon-btn {
23974
23974
  }
23975
23975
 
23976
23976
  /*
23977
- * What came of the row: a glyph in the tone's ink, then words in the
23978
- * secondary ink, on one line that wraps rather than cuts.
23977
+ * A line under the words: what came of the row (`outcome`), or why it
23978
+ * reached the reader (`context`). A glyph, then words in the secondary ink,
23979
+ * on one line that wraps rather than cuts.
23979
23980
  */
23980
- .crewlet-inbox-row__outcome {
23981
+ .crewlet-inbox-row__line {
23981
23982
  display: flex;
23982
23983
  align-items: flex-start;
23983
23984
  gap: var(--spacing-1);
@@ -23989,7 +23990,7 @@ a.crewlet-icon-btn {
23989
23990
  overflow-wrap: anywhere;
23990
23991
  }
23991
23992
 
23992
- .crewlet-inbox-row__outcome-icon {
23993
+ .crewlet-inbox-row__line-icon {
23993
23994
  display: inline-flex;
23994
23995
  flex: none;
23995
23996
  align-items: center;
@@ -24017,11 +24018,11 @@ a.crewlet-icon-btn {
24017
24018
  color: var(--color-brand-accent);
24018
24019
  }
24019
24020
 
24020
- .crewlet-inbox-row__outcome-text {
24021
+ .crewlet-inbox-row__line-text {
24021
24022
  min-width: 0;
24022
24023
  }
24023
24024
 
24024
- .crewlet-inbox-row__outcome-text strong {
24025
+ .crewlet-inbox-row__line-text strong {
24025
24026
  font-weight: var(--font-weight-medium);
24026
24027
  color: var(--color-text-primary);
24027
24028
  }
@@ -24047,6 +24048,142 @@ a.crewlet-icon-btn {
24047
24048
  padding-inline-start: var(--spacing-2);
24048
24049
  }
24049
24050
 
24051
+ /*
24052
+ * HOW MANY LINES THE WORDS TAKE: three by default, two beside an open detail,
24053
+ * all of them for a row read in full where it stands.
24054
+ */
24055
+ .crewlet-inbox-row__text--lines-2 {
24056
+ -webkit-line-clamp: 2;
24057
+ line-clamp: 2;
24058
+ }
24059
+
24060
+ .crewlet-inbox-row__text--lines-all {
24061
+ display: block;
24062
+ -webkit-line-clamp: none;
24063
+ line-clamp: none;
24064
+ overflow: visible;
24065
+ }
24066
+
24067
+ /*
24068
+ * THE QUICK ACTIONS FLOAT, never reflow: lifted over the end of the first
24069
+ * line (the time) while the row is hovered or holds focus, and taking no room
24070
+ * otherwise. Shown by opacity rather than display, so Tab still reaches them
24071
+ * from the row and focus brings them up.
24072
+ */
24073
+ .crewlet-inbox-row--actions {
24074
+ position: relative;
24075
+ }
24076
+
24077
+ .crewlet-inbox-row__actions {
24078
+ position: absolute;
24079
+ top: var(--crewlet-inbox-row-actions-top, 0px);
24080
+ inset-inline-end: var(--spacing-2);
24081
+ z-index: 1;
24082
+ opacity: 0;
24083
+ pointer-events: none;
24084
+ }
24085
+
24086
+ .crewlet-inbox-row:hover > .crewlet-inbox-row__actions,
24087
+ .crewlet-inbox-row:focus-within > .crewlet-inbox-row__actions,
24088
+ .crewlet-inbox-row__actions:has([aria-expanded='true']) {
24089
+ opacity: 1;
24090
+ pointer-events: auto;
24091
+ }
24092
+
24093
+ /* ---- Chat density -------------------------------------------------------- */
24094
+
24095
+ /*
24096
+ * A LIST OF MESSAGES, at a conversation's scale (ChatScale.css): the face,
24097
+ * the name and the words at the transcript's sizes, the conversation's side
24098
+ * inset, 16px above and below each row and a hairline between rows. A row runs
24099
+ * the list's full width and the open one is a flat wash, so the column reads
24100
+ * as a list of messages rather than a stack of cards.
24101
+ */
24102
+ .crewlet-inbox-list--chat,
24103
+ .crewlet-inbox-list--chat .crewlet-inbox-list__group,
24104
+ .crewlet-inbox-list--chat .crewlet-inbox-list__rows {
24105
+ gap: 0;
24106
+ }
24107
+
24108
+ .crewlet-inbox-list--chat {
24109
+ font-size: var(--crewlet-chat-text);
24110
+ line-height: var(--crewlet-chat-line);
24111
+ }
24112
+
24113
+ /* A group's label is a day: the words' own case, a step down, on the page's
24114
+ ground, set on the row's inset so it starts over the faces. */
24115
+ .crewlet-inbox-list--chat .crewlet-inbox-list__label {
24116
+ padding: var(--spacing-4) var(--crewlet-chat-pad-x) var(--spacing-2);
24117
+ font-size: var(--crewlet-chat-meta);
24118
+ line-height: var(--font-line-height-snug);
24119
+ }
24120
+
24121
+ .crewlet-inbox-list__day {
24122
+ font-weight: var(--font-weight-semibold);
24123
+ color: var(--color-text-secondary);
24124
+ }
24125
+
24126
+ .crewlet-inbox-list--chat .crewlet-inbox-row,
24127
+ .crewlet-inbox-list--chat .crewlet-inbox-row__control {
24128
+ border-radius: 0;
24129
+ }
24130
+
24131
+ .crewlet-inbox-list--chat .crewlet-inbox-row {
24132
+ border-bottom: 1px solid var(--color-border-default);
24133
+ /* The tray sits on the name's line: its middle on the line's middle. */
24134
+ --crewlet-inbox-row-actions-top: calc(var(--spacing-4) + var(--crewlet-chat-line) * var(--crewlet-chat-text) / 2 - var(--crewlet-chat-toolbar) / 2);
24135
+ }
24136
+
24137
+ .crewlet-inbox-list--chat .crewlet-inbox-row__actions {
24138
+ inset-inline-end: var(--spacing-3);
24139
+ }
24140
+
24141
+ /* The face hangs from the row's top pad, beside the name's line and the one
24142
+ under it; the words start the face and the gap in, as in a transcript. */
24143
+ .crewlet-inbox-list--chat .crewlet-inbox-row__control,
24144
+ .crewlet-inbox-list--chat .crewlet-inbox-row__control--leading,
24145
+ .crewlet-inbox-list--chat .crewlet-inbox-row__control:only-child {
24146
+ gap: var(--crewlet-chat-gap);
24147
+ padding: var(--spacing-4) var(--crewlet-chat-pad-x);
24148
+ }
24149
+
24150
+ .crewlet-inbox-list--chat .crewlet-inbox-row__control--leading > .crewlet-inbox-row__main {
24151
+ padding-top: 0;
24152
+ }
24153
+
24154
+ .crewlet-inbox-list--chat .crewlet-inbox-row__leading {
24155
+ align-items: flex-start;
24156
+ min-width: var(--crewlet-chat-avatar);
24157
+ min-height: var(--crewlet-chat-avatar);
24158
+ }
24159
+
24160
+ .crewlet-inbox-list--chat .crewlet-inbox-row__main {
24161
+ gap: 2px;
24162
+ }
24163
+
24164
+ .crewlet-inbox-list--chat .crewlet-inbox-row__head {
24165
+ -webkit-line-clamp: 1;
24166
+ line-clamp: 1;
24167
+ }
24168
+
24169
+ .crewlet-inbox-list--chat .crewlet-inbox-row__meta {
24170
+ font-size: var(--crewlet-chat-meta);
24171
+ }
24172
+
24173
+ .crewlet-inbox-list--chat .crewlet-inbox-row__text {
24174
+ line-height: var(--crewlet-chat-line);
24175
+ }
24176
+
24177
+ .crewlet-inbox-list--chat .crewlet-inbox-row__line {
24178
+ padding-top: var(--spacing-1);
24179
+ font-size: var(--crewlet-chat-meta);
24180
+ color: var(--color-text-tertiary);
24181
+ }
24182
+
24183
+ .crewlet-inbox-list--chat .crewlet-inbox-row__aside {
24184
+ padding-inline: calc(var(--crewlet-chat-pad-x) + var(--crewlet-chat-avatar) + var(--crewlet-chat-gap)) var(--crewlet-chat-pad-x);
24185
+ }
24186
+
24050
24187
  /* ---- The end of the list ---------------------------------------------- */
24051
24188
 
24052
24189
  .crewlet-inbox-list__more {
@@ -26422,7 +26559,7 @@ a.crewlet-link-card:hover .crewlet-link-card__title {
26422
26559
  }
26423
26560
 
26424
26561
 
26425
- /* ListDetail-WXBCLONL.css */
26562
+ /* ListDetail-KFYCYZWI.css */
26426
26563
  /*
26427
26564
  * ListDetail: a list beside the detail of what is chosen in it, each scrolling
26428
26565
  * on its own in the height it is given, one pane where it is narrow
@@ -26514,10 +26651,49 @@ a.crewlet-link-card:hover .crewlet-link-card__title {
26514
26651
  list pane holding one gives its end inset back, and the lines run to the
26515
26652
  hairline as the rail's run to its edge. Folded to one pane, the pane takes
26516
26653
  the screen's inset again (below). */
26517
- .crewlet-list-detail__list:has(> .crewlet-directory) {
26654
+ /* AND SO DOES AN INBOX, however the host wraps it: an InboxList's rows draw
26655
+ their own inset and fills just as a directory's lines do. Matched as a
26656
+ child only, a list a host wrapped in a box of its own kept the gutter, and
26657
+ every row's fill stopped 32px short of the hairline. */
26658
+ .crewlet-list-detail__list:has(.crewlet-directory, .crewlet-inbox-list) {
26659
+ padding-right: 0;
26660
+ }
26661
+
26662
+ /* NOTHING CHOSEN: the list is the whole width, with no hairline after it. */
26663
+ .crewlet-list-detail--alone .crewlet-list-detail__panes,
26664
+ .crewlet-list-detail--alone.crewlet-list-detail--half .crewlet-list-detail__panes {
26665
+ grid-template-columns: minmax(0, 1fr);
26666
+ }
26667
+
26668
+ .crewlet-list-detail--alone .crewlet-list-detail__list {
26669
+ padding-right: 0;
26670
+ border-right: 0;
26671
+ }
26672
+
26673
+ /* HALF: the list and the detail share the width evenly. */
26674
+ .crewlet-list-detail--half .crewlet-list-detail__panes {
26675
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
26676
+ }
26677
+
26678
+ /* FLUSH: the panes meet at the hairline, and each insets its own content. */
26679
+ .crewlet-list-detail--flush .crewlet-list-detail__panes {
26680
+ gap: 0;
26681
+ }
26682
+
26683
+ .crewlet-list-detail--flush .crewlet-list-detail__list {
26518
26684
  padding-right: 0;
26519
26685
  }
26520
26686
 
26687
+ .crewlet-list-detail--flush .crewlet-list-detail__detail {
26688
+ gap: 0;
26689
+ }
26690
+
26691
+ /* The way back to the list is drawn only while the panes are folded (below). */
26692
+ .crewlet-list-detail__back {
26693
+ display: none;
26694
+ flex: none;
26695
+ }
26696
+
26521
26697
  .crewlet-list-detail__detail {
26522
26698
  display: flex;
26523
26699
  flex-direction: column;
@@ -26531,7 +26707,8 @@ a.crewlet-link-card:hover .crewlet-link-card__title {
26531
26707
  both fit, so the pane `showing` names takes the whole width and keeps its
26532
26708
  own scroller, which is what lets it sit in a screen that fills the window. */
26533
26709
  @container crewlet-list-detail (width < 640px) {
26534
- .crewlet-list-detail__panes {
26710
+ /* Two classes, so a half split folds as well. */
26711
+ .crewlet-list-detail .crewlet-list-detail__panes {
26535
26712
  grid-template-columns: minmax(0, 1fr);
26536
26713
  }
26537
26714
 
@@ -26553,6 +26730,10 @@ a.crewlet-link-card:hover .crewlet-link-card__title {
26553
26730
  .crewlet-list-detail--showing-detail .crewlet-list-detail__list {
26554
26731
  display: none;
26555
26732
  }
26733
+
26734
+ .crewlet-list-detail__back {
26735
+ display: inline-flex;
26736
+ }
26556
26737
  }
26557
26738
 
26558
26739
  /* ON A PHONE THE PAGE SCROLLS AS A WHOLE, as tall as its content. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewlethq/ui",
3
- "version": "0.114.0",
3
+ "version": "0.115.0",
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.114.0",
46
- "@crewlethq/tokens": "0.114.0",
45
+ "@crewlethq/icons": "0.115.0",
46
+ "@crewlethq/tokens": "0.115.0",
47
47
  "prosemirror-commands": "1.7.2",
48
48
  "prosemirror-gapcursor": "1.4.1",
49
49
  "prosemirror-history": "1.5.1",
@@ -1,12 +0,0 @@
1
- import { cx } from './chunk-ODEQTPFM.js';
2
- import './ListDetail-WXBCLONL.css';
3
- import { jsx, jsxs } from 'react/jsx-runtime';
4
-
5
- function ListDetail({ list, children, showing = "list", className, ...rest }) {
6
- return /* @__PURE__ */ jsx("div", { ...rest, className: cx("crewlet-list-detail", `crewlet-list-detail--showing-${showing}`, className), children: /* @__PURE__ */ jsxs("div", { className: "crewlet-list-detail__panes", children: [
7
- /* @__PURE__ */ jsx("div", { className: "crewlet-list-detail__list", children: list }),
8
- /* @__PURE__ */ jsx("div", { className: "crewlet-list-detail__detail", children })
9
- ] }) });
10
- }
11
-
12
- export { ListDetail };