@crewlethq/ui 0.186.1 → 0.187.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.
Files changed (68) hide show
  1. package/README.md +6 -0
  2. package/dist/ActivityLine/index.js +3 -3
  3. package/dist/AddPill/AddPill.d.ts +26 -9
  4. package/dist/AddPill/index.d.ts +2 -2
  5. package/dist/AddPill/index.js +1 -1
  6. package/dist/ArtifactCard/index.js +2 -2
  7. package/dist/Avatar/AvatarStack.d.ts +9 -4
  8. package/dist/Avatar/index.js +1 -1
  9. package/dist/{AvatarStack-UNBXFHTZ.css → AvatarStack-6N6V7L7L.css} +11 -3
  10. package/dist/CommentThread/index.js +1 -1
  11. package/dist/DataGrid/index.js +2 -2
  12. package/dist/{DataGrid-K2L4ZOUH.css → DataGrid-UGOZXHJS.css} +5 -0
  13. package/dist/DurationField/index.js +2 -2
  14. package/dist/EntityChip/index.js +1 -1
  15. package/dist/ImageUpload/index.js +1 -1
  16. package/dist/OrgLabel/OrgLabel.d.ts +6 -0
  17. package/dist/OrgLabel/index.js +2 -2
  18. package/dist/{OrgLabel-WCI3OIFL.css → OrgLabel-4NDGABVY.css} +11 -6
  19. package/dist/OrgNode/index.js +3 -3
  20. package/dist/OrgTable/OrgTable.d.ts +6 -3
  21. package/dist/OrgTable/index.js +7 -7
  22. package/dist/{OrgTable-5NXRECVP.css → OrgTable-73WNQCH3.css} +5 -4
  23. package/dist/PeopleRail/index.js +1 -1
  24. package/dist/PresenceStack/index.js +1 -1
  25. package/dist/Principal/index.js +1 -1
  26. package/dist/PrincipalPicker/index.js +1 -1
  27. package/dist/ProposalCard/index.js +3 -3
  28. package/dist/RailList/index.js +2 -2
  29. package/dist/Select/Select.d.ts +10 -0
  30. package/dist/Select/index.js +1 -1
  31. package/dist/{Select-2FAOIL73.css → Select-DRBDKBRO.css} +50 -1
  32. package/dist/SettingsTable/index.js +2 -2
  33. package/dist/ShareDialog/index.js +3 -3
  34. package/dist/SheetColumnEditor/index.js +2 -2
  35. package/dist/SheetGrid/index.js +1 -1
  36. package/dist/TableCells/index.js +1 -1
  37. package/dist/ThreadSummary/index.js +2 -2
  38. package/dist/TimeWindowPicker/index.js +2 -2
  39. package/dist/TreeGrid/index.js +3 -3
  40. package/dist/{TreeGrid-XZCH5WCC.css → TreeGrid-QKEQXK26.css} +19 -2
  41. package/dist/ValueField/index.js +2 -2
  42. package/dist/VersionTimeline/index.js +1 -1
  43. package/dist/WorkingLine/index.js +2 -2
  44. package/dist/{chunk-6SGMBLOE.js → chunk-3PBQNCPC.js} +1 -1
  45. package/dist/{chunk-WDVENT6N.js → chunk-72AZMU55.js} +33 -12
  46. package/dist/{chunk-S3WUN7GH.js → chunk-A42UVBJQ.js} +2 -2
  47. package/dist/{chunk-NIM7LEEI.js → chunk-BZLQHZKH.js} +3 -2
  48. package/dist/{chunk-MB2C2GGW.js → chunk-CHBNLTVC.js} +1 -1
  49. package/dist/{chunk-ELYOAZCB.js → chunk-CPOTDACH.js} +1 -1
  50. package/dist/{chunk-UBXJBVYV.js → chunk-DPDOQJWH.js} +2 -2
  51. package/dist/{chunk-5CCM3DDA.js → chunk-EHRNLV3D.js} +56 -7
  52. package/dist/{chunk-7LQRG3BP.js → chunk-EO4CV3P7.js} +1 -1
  53. package/dist/{chunk-DV7KWYC6.js → chunk-FTWZ2AQR.js} +1 -1
  54. package/dist/{chunk-JH2IATUQ.js → chunk-KQWB2MDP.js} +1 -1
  55. package/dist/{chunk-D4ACFQCR.js → chunk-LG72TVII.js} +2 -2
  56. package/dist/{chunk-D5UVJL4I.js → chunk-QZNENGHA.js} +31 -16
  57. package/dist/{chunk-7U6JFHJY.js → chunk-RYTE4I55.js} +12 -5
  58. package/dist/{chunk-BYU7YSOM.js → chunk-S33O4PTO.js} +1 -1
  59. package/dist/{chunk-TCBV4K7V.js → chunk-T53EKFO2.js} +1 -1
  60. package/dist/{chunk-HNDQZWTX.js → chunk-V2ZUNC7X.js} +1 -1
  61. package/dist/{chunk-M34LSGMH.js → chunk-WU73BKXL.js} +17 -6
  62. package/dist/{chunk-T7Y5FM4B.js → chunk-X2CFDU5S.js} +7 -2
  63. package/dist/{chunk-UIA7FKDE.js → chunk-XG6PTSHE.js} +1 -1
  64. package/dist/{chunk-KFX6FQKU.js → chunk-ZXX24HXF.js} +1 -1
  65. package/dist/generated/index.js +48 -48
  66. package/dist/index.js +48 -48
  67. package/dist/styles.css +107 -22
  68. package/package.json +3 -3
package/dist/styles.css CHANGED
@@ -6093,7 +6093,7 @@ button.crewlet-avatar-picker:hover .crewlet-avatar-picker__pip {
6093
6093
  }
6094
6094
 
6095
6095
 
6096
- /* AvatarStack-UNBXFHTZ.css */
6096
+ /* AvatarStack-6N6V7L7L.css */
6097
6097
  /*
6098
6098
  * Several badges as one mark (AvatarStack.tsx).
6099
6099
  *
@@ -6113,12 +6113,14 @@ button.crewlet-avatar-picker:hover .crewlet-avatar-picker__pip {
6113
6113
  * the sheet, with the design's own cut-out drawn in the sheet's colour. A stack
6114
6114
  * that stands on a card, or on anything else, sets it on the stack itself.
6115
6115
  *
6116
+ * INHERITED: `--crewlet-avatar-stack-ground`, the opaque surface (the sheet when unset), and
6117
+ * `--crewlet-avatar-stack-tint`, a row's wash laid over it (none when unset). Tables set both.
6118
+ *
6116
6119
  * Every rule is two classes deep, so it outweighs the badge's own one-class
6117
6120
  * rules whichever order the stylesheets are bundled in.
6118
6121
  */
6119
6122
 
6120
6123
  .crewlet-avatar-stack {
6121
- --crewlet-avatar-stack-ground: var(--color-surface-background);
6122
6124
  /* The badges' box, which the component sets from the step it was given; the
6123
6125
  default is the default step's, sm. The chip reads it, so it stands exactly
6124
6126
  as tall as the badges beside it. */
@@ -6130,7 +6132,9 @@ button.crewlet-avatar-picker:hover .crewlet-avatar-picker__pip {
6130
6132
  }
6131
6133
 
6132
6134
  .crewlet-avatar-stack > .crewlet-avatar-stack__member {
6133
- box-shadow: 0 0 0 2px var(--crewlet-avatar-stack-ground);
6135
+ box-shadow:
6136
+ 0 0 0 2px var(--crewlet-avatar-stack-tint, transparent),
6137
+ 0 0 0 2px var(--crewlet-avatar-stack-ground, var(--color-surface-background));
6134
6138
  }
6135
6139
 
6136
6140
  /*
@@ -6174,7 +6178,11 @@ button.crewlet-avatar-picker:hover .crewlet-avatar-picker__pip {
6174
6178
  .crewlet-avatar-stack > .crewlet-avatar-stack__member > .crewlet-avatar {
6175
6179
  background-image:
6176
6180
  linear-gradient(var(--crewlet-avatar-plate), var(--crewlet-avatar-plate)),
6177
- linear-gradient(var(--crewlet-avatar-stack-ground), var(--crewlet-avatar-stack-ground));
6181
+ linear-gradient(var(--crewlet-avatar-stack-tint, transparent), var(--crewlet-avatar-stack-tint, transparent)),
6182
+ linear-gradient(
6183
+ var(--crewlet-avatar-stack-ground, var(--color-surface-background)),
6184
+ var(--crewlet-avatar-stack-ground, var(--color-surface-background))
6185
+ );
6178
6186
  }
6179
6187
 
6180
6188
  /* The design's 6px, a little under a third of its 22px badge: enough that the
@@ -16645,7 +16653,7 @@ button.crewlet-histogram__bar[data-empty]:focus-visible > .crewlet-histogram__fi
16645
16653
  }
16646
16654
 
16647
16655
 
16648
- /* DataGrid-K2L4ZOUH.css */
16656
+ /* DataGrid-UGOZXHJS.css */
16649
16657
  /*
16650
16658
  * DataGrid: a list as columns, one track list on the grid.
16651
16659
  *
@@ -16681,6 +16689,8 @@ button.crewlet-histogram__bar[data-empty]:focus-visible > .crewlet-histogram__fi
16681
16689
  border-radius: var(--radius-md);
16682
16690
  overflow: clip;
16683
16691
  background: var(--color-surface-subtle);
16692
+ /* A face stack in a row is cut out of the row's own ground (AvatarStack.css). */
16693
+ --crewlet-avatar-stack-ground: var(--color-surface-subtle);
16684
16694
  }
16685
16695
 
16686
16696
  /*
@@ -17003,11 +17013,13 @@ button.crewlet-data-grid__row-link {
17003
17013
  /* Under the pointer, or pointed at from another surface showing the same records: one overlay, the same. */
17004
17014
  .crewlet-data-grid__row:hover,
17005
17015
  .crewlet-data-grid__row--pointed {
17016
+ --crewlet-avatar-stack-tint: var(--color-surface-hover);
17006
17017
  background: var(--color-surface-hover);
17007
17018
  }
17008
17019
 
17009
17020
  .crewlet-data-grid__row--selected,
17010
17021
  .crewlet-data-grid__row--selected:hover {
17022
+ --crewlet-avatar-stack-tint: var(--color-brand-accent-soft);
17011
17023
  background: var(--color-brand-accent-soft);
17012
17024
  }
17013
17025
 
@@ -17018,6 +17030,7 @@ button.crewlet-data-grid__row-link {
17018
17030
  */
17019
17031
  .crewlet-data-grid__row--picked,
17020
17032
  .crewlet-data-grid__row--picked:hover {
17033
+ --crewlet-avatar-stack-tint: var(--color-surface-selected);
17021
17034
  background: var(--color-surface-selected);
17022
17035
  }
17023
17036
 
@@ -33568,7 +33581,7 @@ button.crewlet-mention-chip:focus-visible {
33568
33581
  }
33569
33582
 
33570
33583
 
33571
- /* OrgLabel-WCI3OIFL.css */
33584
+ /* OrgLabel-4NDGABVY.css */
33572
33585
  /*
33573
33586
  * What a node of an org chart and a row of an org table both say
33574
33587
  * (OrgLabel.tsx).
@@ -33625,6 +33638,11 @@ button.crewlet-mention-chip:focus-visible {
33625
33638
  font-size: var(--font-size-3xl);
33626
33639
  }
33627
33640
 
33641
+ /* `iconTone="own"`: a mark in its own colours (a product mark, a face), never repainted by the zone. */
33642
+ .crewlet-org-label__icon--own {
33643
+ color: inherit;
33644
+ }
33645
+
33628
33646
  /* AN ORGANIZATION'S LOGO, whole and in its own colours: on a node as tall as
33629
33647
  the name and caption beside it, in a row the size of a seat's badge there. */
33630
33648
  .crewlet-org-label__logo {
@@ -33648,9 +33666,9 @@ button.crewlet-mention-chip:focus-visible {
33648
33666
  * in its corner. Stated as the zone's own rule rather than asked of each
33649
33667
  * caller, because the zone is what decides that a node is drawn in one colour.
33650
33668
  */
33651
- .crewlet-org-label__icon svg,
33652
- .crewlet-org-label__icon svg g,
33653
- .crewlet-org-label__icon svg path {
33669
+ .crewlet-org-label__icon:where(:not(.crewlet-org-label__icon--own)) svg,
33670
+ .crewlet-org-label__icon:where(:not(.crewlet-org-label__icon--own)) svg g,
33671
+ .crewlet-org-label__icon:where(:not(.crewlet-org-label__icon--own)) svg path {
33654
33672
  /* THE INK AS WELL AS THE FILL, which is what made the rule above true. A
33655
33673
  mark may publish its own hue as a `color` on its own root (the Crewlet
33656
33674
  figure does, from the brand token), and `currentcolor` under that root
@@ -33672,9 +33690,9 @@ button.crewlet-mention-chip:focus-visible {
33672
33690
  group in the zone, a mask's included, so a hole cut by a mask fills with a
33673
33691
  share of the ink that changes with the hue: every agent's eyes on the chart
33674
33692
  did, until the Crewlet characters cut their faces into their own paths. */
33675
- .crewlet-org-label__icon svg:not(.crewlet-glyph),
33676
- .crewlet-org-label__icon svg:not(.crewlet-glyph) g:not(.crewlet-glyph *),
33677
- .crewlet-org-label__icon svg:not(.crewlet-glyph) path:not(.crewlet-glyph *) {
33693
+ .crewlet-org-label__icon:where(:not(.crewlet-org-label__icon--own)) svg:not(.crewlet-glyph),
33694
+ .crewlet-org-label__icon:where(:not(.crewlet-org-label__icon--own)) svg:not(.crewlet-glyph) g:not(.crewlet-glyph *),
33695
+ .crewlet-org-label__icon:where(:not(.crewlet-org-label__icon--own)) svg:not(.crewlet-glyph) path:not(.crewlet-glyph *) {
33678
33696
  fill: currentColor;
33679
33697
  }
33680
33698
 
@@ -34243,7 +34261,7 @@ button.crewlet-mention-chip:focus-visible {
34243
34261
  }
34244
34262
 
34245
34263
 
34246
- /* OrgTable-5NXRECVP.css */
34264
+ /* OrgTable-73WNQCH3.css */
34247
34265
  /*
34248
34266
  * An organization as an indented table of rows (OrgTable.tsx).
34249
34267
  *
@@ -34459,20 +34477,21 @@ button.crewlet-mention-chip:focus-visible {
34459
34477
  * whatever it crosses.
34460
34478
  *
34461
34479
  * ITS HEADING TAKES THE SAME EDGE, so the word stands over the controls it names.
34480
+ * A last column that asks for `align: 'left'` keeps its start edge.
34462
34481
  */
34463
- .crewlet-org-table [role='gridcell']:last-child,
34464
- .crewlet-org-table [role='columnheader']:last-child {
34482
+ .crewlet-org-table [role='gridcell']:last-child:not([data-align='left']),
34483
+ .crewlet-org-table [role='columnheader']:last-child:not([data-align='left']) {
34465
34484
  justify-content: safe flex-end;
34466
34485
  }
34467
34486
 
34468
34487
  /* AND A LAST HEAD THAT SORTS ENDS WITH ITS VALUES: its button fills the head,
34469
34488
  so the button takes the end, and its arrow goes before the word, as a
34470
34489
  right-aligned head's does, so the word stays on the column's edge. */
34471
- .crewlet-org-table [role='columnheader']:last-child > .crewlet-data-grid__sort {
34490
+ .crewlet-org-table [role='columnheader']:last-child:not([data-align='left']) > .crewlet-data-grid__sort {
34472
34491
  justify-content: safe flex-end;
34473
34492
  }
34474
34493
 
34475
- .crewlet-org-table [role='columnheader']:last-child .crewlet-data-grid__sort-mark {
34494
+ .crewlet-org-table [role='columnheader']:last-child:not([data-align='left']) .crewlet-data-grid__sort-mark {
34476
34495
  order: -1;
34477
34496
  }
34478
34497
 
@@ -39436,7 +39455,7 @@ button.crewlet-presence-stack__member:focus-visible {
39436
39455
  }
39437
39456
 
39438
39457
 
39439
- /* Select-2FAOIL73.css */
39458
+ /* Select-DRBDKBRO.css */
39440
39459
  /*
39441
39460
  * Select: one chrome over two controls, and the product's only dropdown.
39442
39461
  *
@@ -39603,6 +39622,16 @@ button.crewlet-presence-stack__member:focus-visible {
39603
39622
  cursor: not-allowed;
39604
39623
  }
39605
39624
 
39625
+ /* FLUSH: pulled back by its own leading padding and border, so its text starts on the column's x. */
39626
+ .crewlet-select--flush {
39627
+ --crewlet-select-flush: calc(var(--spacing-3) + 1px);
39628
+ margin-inline-start: calc(-1 * var(--crewlet-select-flush));
39629
+ }
39630
+
39631
+ .crewlet-select--flush.crewlet-select--sm {
39632
+ --crewlet-select-flush: calc(var(--spacing-2) + 1px);
39633
+ }
39634
+
39606
39635
  /* ── The trigger, native and built ───────────────────────────────────── */
39607
39636
 
39608
39637
  /*
@@ -39908,7 +39937,9 @@ svg.crewlet-select__chevron {
39908
39937
  /* A hint ends the row's FIRST line, on the label's baseline, rather than
39909
39938
  sitting on the row's top edge at its own smaller size. */
39910
39939
  .crewlet-select__option:has(> .crewlet-listbox__hint) .crewlet-select__option-body,
39911
- .crewlet-select__option > .crewlet-listbox__hint {
39940
+ .crewlet-select__option > .crewlet-listbox__hint,
39941
+ .crewlet-select__option-main:has(> .crewlet-listbox__hint) > .crewlet-select__option-body,
39942
+ .crewlet-select__option-main > .crewlet-listbox__hint {
39912
39943
  align-self: baseline;
39913
39944
  }
39914
39945
 
@@ -40013,6 +40044,43 @@ svg.crewlet-select__chevron {
40013
40044
  }
40014
40045
  }
40015
40046
 
40047
+ /* A FITTED HINT COLUMN: every row on two shared tracks, so each hint starts at one x.
40048
+ One weight in every row, so the chosen row's hint is no wider. */
40049
+ .crewlet-select__list.crewlet-select__list--fit {
40050
+ display: grid;
40051
+ grid-template-columns: minmax(0, 1fr) auto;
40052
+ align-content: start;
40053
+ column-gap: var(--spacing-3);
40054
+ }
40055
+
40056
+ .crewlet-select__list--fit > .crewlet-select__option,
40057
+ .crewlet-select__list--fit > .crewlet-select__group,
40058
+ .crewlet-select__list--fit > .crewlet-select__group > .crewlet-select__option {
40059
+ display: grid;
40060
+ grid-template-columns: subgrid;
40061
+ grid-column: 1 / -1;
40062
+ }
40063
+
40064
+ .crewlet-select__list--fit > .crewlet-select__group > .crewlet-listbox__heading {
40065
+ grid-column: 1 / -1;
40066
+ }
40067
+
40068
+ .crewlet-select__option-main {
40069
+ display: flex;
40070
+ align-items: flex-start;
40071
+ gap: var(--spacing-2);
40072
+ min-width: 0;
40073
+ }
40074
+
40075
+ .crewlet-select__menu .crewlet-select__option-hint {
40076
+ display: inline-flex;
40077
+ align-items: center;
40078
+ justify-self: start;
40079
+ margin-left: 0;
40080
+ min-height: calc(var(--font-line-height-normal) * 1em);
40081
+ font-weight: var(--font-weight-regular);
40082
+ }
40083
+
40016
40084
 
40017
40085
  /* SelectionBar-54W5IFF5.css */
40018
40086
  /*
@@ -53035,7 +53103,7 @@ svg.crewlet-time-window__tick {
53035
53103
  }
53036
53104
 
53037
53105
 
53038
- /* TreeGrid-XZCH5WCC.css */
53106
+ /* TreeGrid-QKEQXK26.css */
53039
53107
  /*
53040
53108
  * A hierarchy as rows and columns (TreeGrid.tsx), on `DataGrid`'s table rules: one
53041
53109
  * track list on the grid, which the head, body and rows pass through as `subgrid`.
@@ -53094,6 +53162,11 @@ svg.crewlet-time-window__tick {
53094
53162
  border-radius: var(--radius-md);
53095
53163
  }
53096
53164
 
53165
+ /* A face stack in a row is cut out of the row's own ground (AvatarStack.css). */
53166
+ .crewlet-tree-grid {
53167
+ --crewlet-avatar-stack-ground: var(--color-surface-subtle);
53168
+ }
53169
+
53097
53170
  .crewlet-tree-grid__grid {
53098
53171
  display: grid;
53099
53172
  grid-template-columns: var(--crewlet-tree-grid-columns, minmax(0, 1fr));
@@ -53172,6 +53245,7 @@ svg.crewlet-time-window__tick {
53172
53245
  }
53173
53246
 
53174
53247
  .crewlet-tree-grid__body > .crewlet-tree-grid__row:hover {
53248
+ --crewlet-avatar-stack-tint: var(--color-surface-hover);
53175
53249
  background: var(--color-surface-hover);
53176
53250
  }
53177
53251
 
@@ -53333,6 +53407,13 @@ svg.crewlet-time-window__tick {
53333
53407
  outline-offset: var(--size-focus-ring-inset-offset);
53334
53408
  }
53335
53409
 
53410
+ /* AFTER A POINTER PRESS, NO RING: the keyboard's ring returns with its next key.
53411
+ Transparent rather than none, so forced-colors mode still draws one. */
53412
+ .crewlet-tree-grid[data-pointer] .crewlet-tree-grid__row:focus-visible,
53413
+ .crewlet-tree-grid[data-pointer] .crewlet-tree-grid__cell:focus-visible {
53414
+ outline: 2px solid transparent;
53415
+ }
53416
+
53336
53417
  /*
53337
53418
  * A HEADLESS GRID keeps its header row for a screen reader and draws no band:
53338
53419
  * the row is taken out of the layout the way VisuallyHidden takes text out.
@@ -53437,8 +53518,12 @@ svg.crewlet-time-window__tick {
53437
53518
  justify-content: flex-start;
53438
53519
  }
53439
53520
 
53440
- /* A VALUE'S LINE STARTS WHERE THE ROW'S NAME DOES: past the edge, the chevron
53441
- and the row's level. A drawn indent (an org table's wires) sets its own. */
53521
+ /* A VALUE'S LINE STARTS WHERE THE ROW'S NAME DOES in a compact card (below); a
53522
+ labelled card starts it at the grid's edge, so its labels are one column. */
53523
+ .crewlet-tree-grid[data-stacked]:not([data-phone-rows='compact']) .crewlet-tree-grid__cell {
53524
+ --crewlet-tree-grid-value-indent: var(--crewlet-tree-grid-edge);
53525
+ }
53526
+
53442
53527
  .crewlet-tree-grid[data-stacked] .crewlet-tree-grid__cell:not(:first-child) {
53443
53528
  padding-block: 1px;
53444
53529
  padding-inline: var(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewlethq/ui",
3
- "version": "0.186.1",
3
+ "version": "0.187.0",
4
4
  "description": "Crewlet shared React components built on @crewlethq/tokens and @crewlethq/icons.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -43,8 +43,8 @@
43
43
  "clean": "rm -rf dist src/generated"
44
44
  },
45
45
  "dependencies": {
46
- "@crewlethq/icons": "0.186.1",
47
- "@crewlethq/tokens": "0.186.1",
46
+ "@crewlethq/icons": "0.187.0",
47
+ "@crewlethq/tokens": "0.187.0",
48
48
  "prosemirror-commands": "1.7.2",
49
49
  "prosemirror-gapcursor": "1.4.1",
50
50
  "prosemirror-history": "1.5.1",