@crewlethq/ui 0.150.1 → 0.152.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 (172) hide show
  1. package/README.md +8 -0
  2. package/dist/AgentHandoffPanel/index.js +11 -11
  3. package/dist/ArrangeFrame/index.js +2 -2
  4. package/dist/ArrangeList/index.js +6 -6
  5. package/dist/ArtifactBar/index.js +4 -4
  6. package/dist/ArtifactCard/index.js +6 -6
  7. package/dist/ArtifactPanel/index.js +3 -3
  8. package/dist/AttentionList/index.js +5 -4
  9. package/dist/AuthLayout/index.js +1 -1
  10. package/dist/AvatarPicker/index.js +6 -6
  11. package/dist/BriefCard/index.js +3 -3
  12. package/dist/Callout/Callout.d.ts +16 -2
  13. package/dist/Callout/index.js +1 -1
  14. package/dist/{Callout-WLZKAFPT.css → Callout-JGEIJSDG.css} +60 -0
  15. package/dist/CheckGrid/index.js +5 -5
  16. package/dist/Checkbox/index.js +4 -4
  17. package/dist/ChipField/index.js +2 -2
  18. package/dist/ColorField/index.js +4 -4
  19. package/dist/Combobox/Combobox.d.ts +2 -0
  20. package/dist/Combobox/index.js +4 -4
  21. package/dist/{Combobox-F5VEJIAO.css → Combobox-GHT43K32.css} +7 -0
  22. package/dist/CommandPalette/index.js +6 -6
  23. package/dist/CommentThread/index.js +7 -7
  24. package/dist/Composer/index.js +4 -4
  25. package/dist/ConfirmField/index.js +4 -4
  26. package/dist/DataGrid/index.js +6 -6
  27. package/dist/DataTable/index.js +7 -7
  28. package/dist/DataView/index.js +10 -10
  29. package/dist/DatasetSource/index.js +1 -1
  30. package/dist/DeepWorkCard/index.js +4 -4
  31. package/dist/DocTabsEditor/index.js +6 -6
  32. package/dist/DurationField/index.js +10 -10
  33. package/dist/EditingStatus/index.js +2 -2
  34. package/dist/{Editor-XAJF2WQ3.js → Editor-FXREHINI.js} +4 -4
  35. package/dist/EmojiPicker/index.js +4 -4
  36. package/dist/EntityList/index.js +1 -1
  37. package/dist/FilterPill/FilterPill.d.ts +6 -1
  38. package/dist/FilterPill/index.js +1 -1
  39. package/dist/{FilterPill-4GMNFZND.css → FilterPill-C6LFYCCA.css} +7 -0
  40. package/dist/FollowBanner/index.js +2 -2
  41. package/dist/HuePicker/index.js +4 -4
  42. package/dist/InboxList/index.js +2 -2
  43. package/dist/InlineEditor/index.js +3 -3
  44. package/dist/Input/index.js +3 -3
  45. package/dist/KeyValueRows/index.js +4 -4
  46. package/dist/LinkInterstitial/index.js +4 -4
  47. package/dist/ListInput/index.js +5 -5
  48. package/dist/MarkdownEditor/index.js +4 -4
  49. package/dist/MemberPicker/index.js +5 -5
  50. package/dist/MergeConflicts/index.js +4 -4
  51. package/dist/MessageActions/index.js +5 -5
  52. package/dist/Modal/index.js +2 -2
  53. package/dist/NoticeList/NoticeList.d.ts +8 -1
  54. package/dist/NoticeList/groupNotices.d.ts +1 -1
  55. package/dist/NoticeList/index.d.ts +1 -0
  56. package/dist/NoticeList/index.js +5 -2
  57. package/dist/{NoticeList-LD5APCDU.css → NoticeList-GHCJRR3Z.css} +93 -0
  58. package/dist/NumberField/index.js +9 -9
  59. package/dist/OpenInAppCard/index.js +4 -4
  60. package/dist/OrgTable/index.js +8 -8
  61. package/dist/PeopleRail/index.js +2 -2
  62. package/dist/PresetChips/index.js +4 -4
  63. package/dist/PrincipalPicker/index.js +5 -5
  64. package/dist/ProposalCard/index.js +9 -9
  65. package/dist/RailList/index.js +2 -2
  66. package/dist/ReactionBar/index.js +5 -5
  67. package/dist/ReadingPane/index.js +2 -2
  68. package/dist/RefusalCard/index.js +1 -1
  69. package/dist/Reorder/index.js +2 -2
  70. package/dist/ResultTableCard/index.js +3 -3
  71. package/dist/RichEditor/index.js +2 -2
  72. package/dist/RunChip/index.js +1 -1
  73. package/dist/SandboxedFrame/index.js +2 -2
  74. package/dist/SegmentedControl/index.js +3 -3
  75. package/dist/SelectionBar/index.js +2 -2
  76. package/dist/SettingForm/index.js +4 -4
  77. package/dist/SettingsTable/index.js +1 -1
  78. package/dist/SetupWizard/index.js +4 -4
  79. package/dist/ShareDialog/index.js +4 -4
  80. package/dist/SheetColumnEditor/index.js +10 -10
  81. package/dist/SheetGrid/index.js +3 -3
  82. package/dist/SidePanel/index.js +2 -2
  83. package/dist/SlideFilmstrip/index.js +3 -3
  84. package/dist/StatusCard/index.js +1 -1
  85. package/dist/Switcher/index.js +5 -5
  86. package/dist/TableCells/index.js +1 -1
  87. package/dist/Tabs/index.js +2 -2
  88. package/dist/TagsInput/index.js +2 -2
  89. package/dist/ThemeSwitcher/index.js +4 -4
  90. package/dist/TimeRangePicker/index.js +10 -10
  91. package/dist/TimeWindowPicker/index.js +4 -4
  92. package/dist/TreeGrid/index.js +7 -7
  93. package/dist/ValueField/ValueField.d.ts +2 -0
  94. package/dist/ValueField/index.js +5 -5
  95. package/dist/VersionCompare/index.js +6 -6
  96. package/dist/{chunk-ABWPMBMX.js → chunk-27NS67UI.js} +1 -1
  97. package/dist/{chunk-FWXAPOMM.js → chunk-27ZF7D3C.js} +1 -1
  98. package/dist/{chunk-VZWRSV4M.js → chunk-3Q5USPLM.js} +1 -1
  99. package/dist/{chunk-VI2ZUOP7.js → chunk-5DLBGF6I.js} +2 -2
  100. package/dist/{chunk-UR3UUHPC.js → chunk-5VTJOVK7.js} +2 -2
  101. package/dist/{chunk-OESG3U7F.js → chunk-6BGD32C5.js} +3 -3
  102. package/dist/{chunk-C7BK32JK.js → chunk-6QWSGM4W.js} +1 -1
  103. package/dist/{chunk-GVD7GVPM.js → chunk-7CVV3DQC.js} +1 -1
  104. package/dist/{chunk-ROE6HKEI.js → chunk-7FWYJCKT.js} +3 -2
  105. package/dist/{chunk-BCOTJM4W.js → chunk-7FY7L6WD.js} +3 -3
  106. package/dist/{chunk-SG3XSUJ5.js → chunk-7XE5TC7X.js} +2 -2
  107. package/dist/{chunk-MALV624H.js → chunk-BRMJPZC4.js} +1 -1
  108. package/dist/{chunk-WTWYN7Z5.js → chunk-CA62YCFK.js} +1 -1
  109. package/dist/{chunk-2QPELDAA.js → chunk-CHUFHUQE.js} +1 -1
  110. package/dist/{chunk-2LTJUWCR.js → chunk-CJAPAIJG.js} +9 -4
  111. package/dist/chunk-CWACQEPP.js +118 -0
  112. package/dist/{chunk-Q5OB4LBX.js → chunk-DDGHRDGV.js} +2 -2
  113. package/dist/{chunk-OIX7B57V.js → chunk-DWXTJWCJ.js} +4 -4
  114. package/dist/chunk-E2XGQAHV.js +184 -0
  115. package/dist/{chunk-VZOGZZCA.js → chunk-E3JUS3CR.js} +1 -1
  116. package/dist/{chunk-SM7NURKY.js → chunk-EDQHZOU3.js} +2 -2
  117. package/dist/{chunk-YLDZ3TXH.js → chunk-F6OYNO7O.js} +1 -1
  118. package/dist/{chunk-SZH7MLBY.js → chunk-FMKQSDBQ.js} +1 -1
  119. package/dist/{chunk-BC4OVFBQ.js → chunk-GFNCMSYS.js} +2 -2
  120. package/dist/{chunk-ANXCMHTP.js → chunk-GMXOZEF5.js} +2 -2
  121. package/dist/{chunk-TBOVJ7RL.js → chunk-GQQMN6O3.js} +3 -1
  122. package/dist/{chunk-3ZSKFZP3.js → chunk-HIDOUXLD.js} +1 -1
  123. package/dist/{chunk-HJ6ZY4UX.js → chunk-HXAPC3AJ.js} +1 -1
  124. package/dist/{chunk-B4QF35QY.js → chunk-ITZAWYRG.js} +1 -1
  125. package/dist/{chunk-NCQBZ7FU.js → chunk-M4VA76JF.js} +3 -3
  126. package/dist/{chunk-LMWDWGPE.js → chunk-MUBJN75T.js} +1 -1
  127. package/dist/{chunk-7NEHBDNS.js → chunk-N3LAAA4R.js} +2 -2
  128. package/dist/{chunk-JGJSCWZY.js → chunk-N3R2POGO.js} +2 -2
  129. package/dist/{chunk-TYZSARP5.js → chunk-NG6GEBSJ.js} +1 -1
  130. package/dist/{chunk-YQHSUUMN.js → chunk-O2J5PSWI.js} +3 -3
  131. package/dist/{chunk-T2457TRX.js → chunk-ODN3LSYW.js} +1 -1
  132. package/dist/{chunk-6DL4HM7T.js → chunk-OMVGWZ3V.js} +1 -1
  133. package/dist/{chunk-7TITGQ3A.js → chunk-OX332RI7.js} +2 -2
  134. package/dist/{chunk-CFSPFFHJ.js → chunk-PW6QXVIX.js} +3 -3
  135. package/dist/{chunk-PQDMYIEJ.js → chunk-Q3SHCEXN.js} +2 -2
  136. package/dist/{chunk-CUU24MKQ.js → chunk-QRUQOITJ.js} +1 -1
  137. package/dist/{chunk-PN6VKDRF.js → chunk-RNVPYDRQ.js} +1 -1
  138. package/dist/{chunk-MWAQEHAF.js → chunk-RUKSDKG5.js} +2 -2
  139. package/dist/{chunk-S7TZH45K.js → chunk-S4ADDFRT.js} +2 -2
  140. package/dist/{chunk-KCFF2MBD.js → chunk-U3ZUZ7VU.js} +4 -4
  141. package/dist/{chunk-2IOI52YU.js → chunk-V67VL3WD.js} +1 -1
  142. package/dist/{chunk-ZEKRJMX5.js → chunk-VXTRPLNB.js} +4 -4
  143. package/dist/{chunk-6VSR7TW7.js → chunk-WAF36OFS.js} +2 -2
  144. package/dist/{chunk-5K7D64VG.js → chunk-X5ZUDJNK.js} +1 -1
  145. package/dist/{chunk-QS5M3A4I.js → chunk-YAUAMQOP.js} +3 -2
  146. package/dist/{chunk-K7C4BIX6.js → chunk-YMBXTGFC.js} +1 -1
  147. package/dist/{chunk-PMS3TIU2.js → chunk-YRNIPS4M.js} +2 -2
  148. package/dist/{chunk-UH6B2HTX.js → chunk-YWPUT6JQ.js} +1 -1
  149. package/dist/{chunk-SIM6FR5B.js → chunk-ZAQ7CEYN.js} +1 -1
  150. package/dist/{chunk-KY6W76V3.js → chunk-ZNEMXLTY.js} +1 -1
  151. package/dist/generated/index.js +119 -119
  152. package/dist/index.js +119 -119
  153. package/dist/styles.css +171 -4
  154. package/dist/utils/index.js +1 -1
  155. package/package.json +3 -3
  156. package/dist/chunk-7J2RIAZ4.js +0 -91
  157. package/dist/chunk-UEO3A76N.js +0 -62
  158. package/dist/{chunk-R76HBPY5.js → chunk-2DZV4PHK.js} +1 -1
  159. package/dist/{chunk-DZPT7P2I.js → chunk-3EL3IF3W.js} +1 -1
  160. package/dist/{chunk-DHYJNBWC.js → chunk-3OZPHFDT.js} +1 -1
  161. package/dist/{chunk-HKRNKAHN.js → chunk-7C6NHVMX.js} +1 -1
  162. package/dist/{chunk-73XXYQC7.js → chunk-7PK2Z5JY.js} +1 -1
  163. package/dist/{chunk-PWRYYOQ4.js → chunk-DGB7R42F.js} +1 -1
  164. package/dist/{chunk-NIOE6ZAL.js → chunk-JMBPMSNI.js} +1 -1
  165. package/dist/{chunk-6N53ZWRM.js → chunk-KRF3GQ63.js} +1 -1
  166. package/dist/{chunk-6VWBIHSJ.js → chunk-UMEK5DHS.js} +1 -1
  167. package/dist/{chunk-V3RQYIZO.js → chunk-XJU53WMW.js} +1 -1
  168. package/dist/{chunk-GTAAOGDQ.js → chunk-XQMRSL7Z.js} +2 -2
  169. package/dist/{chunk-LXPA2SRT.js → chunk-XZ47PWVD.js} +1 -1
  170. package/dist/{chunk-H5CN7YWD.js → chunk-YUW4DD2Z.js} +1 -1
  171. package/dist/{chunk-EDUK7DD5.js → chunk-Z7BA2EVV.js} +1 -1
  172. package/dist/{chunk-RJDRNXDB.js → chunk-ZC73GPA3.js} +1 -1
package/dist/styles.css CHANGED
@@ -7100,7 +7100,7 @@ a.crewlet-btn--danger.crewlet-btn--danger:is(:link, :visited, :hover, :active, :
7100
7100
  }
7101
7101
 
7102
7102
 
7103
- /* Callout-WLZKAFPT.css */
7103
+ /* Callout-JGEIJSDG.css */
7104
7104
  /*
7105
7105
  * The callout: a status that stays in the content flow.
7106
7106
  *
@@ -7228,6 +7228,66 @@ a.crewlet-btn--danger.crewlet-btn--danger:is(:link, :visited, :hover, :active, :
7228
7228
  color: inherit;
7229
7229
  }
7230
7230
 
7231
+ /*
7232
+ * COLLAPSIBLE: the title is the button that opens the message. A row-sm
7233
+ * target that keeps the line's own height, so the closed callout is one line.
7234
+ */
7235
+ .crewlet-callout__toggle {
7236
+ display: inline-flex;
7237
+ align-items: center;
7238
+ gap: var(--spacing-1);
7239
+ max-width: 100%;
7240
+ min-height: var(--size-row-sm);
7241
+ margin-block: calc((1lh - var(--size-row-sm)) / 2);
7242
+ padding: 0;
7243
+ border: 0;
7244
+ background: none;
7245
+ color: inherit;
7246
+ font: inherit;
7247
+ text-align: start;
7248
+ cursor: pointer;
7249
+ }
7250
+
7251
+ .crewlet-callout__toggle-words {
7252
+ flex: none;
7253
+ text-underline-offset: 2px;
7254
+ }
7255
+
7256
+ .crewlet-callout__toggle:hover .crewlet-callout__toggle-words {
7257
+ text-decoration: underline;
7258
+ }
7259
+
7260
+ .crewlet-callout__toggle:focus-visible {
7261
+ outline: 2px solid var(--color-focus);
7262
+ outline-offset: 2px;
7263
+ border-radius: var(--radius-xs);
7264
+ }
7265
+
7266
+ /* One glyph, turned, as every disclosure in the package does. */
7267
+ .crewlet-callout__chevron {
7268
+ flex: none;
7269
+ transform: rotate(-90deg);
7270
+ transition: transform var(--motion-duration-base) var(--motion-easing-out);
7271
+ }
7272
+
7273
+ .crewlet-callout__toggle[aria-expanded='true'] .crewlet-callout__chevron {
7274
+ transform: rotate(0deg);
7275
+ }
7276
+
7277
+ .crewlet-callout__body {
7278
+ margin-top: var(--spacing-1);
7279
+ }
7280
+
7281
+ .crewlet-callout__body[hidden] {
7282
+ display: none;
7283
+ }
7284
+
7285
+ @media (prefers-reduced-motion: reduce) {
7286
+ .crewlet-callout__chevron {
7287
+ transition: none;
7288
+ }
7289
+ }
7290
+
7231
7291
  /* ── tones ─────────────────────────────────────────────────────────────── */
7232
7292
 
7233
7293
  .crewlet-callout--info {
@@ -13672,7 +13732,7 @@ button.crewlet-histogram__bar[data-empty]:focus-visible > .crewlet-histogram__fi
13672
13732
  }
13673
13733
 
13674
13734
 
13675
- /* Combobox-F5VEJIAO.css */
13735
+ /* Combobox-GHT43K32.css */
13676
13736
  /*
13677
13737
  * Combobox: a field that offers completions.
13678
13738
  *
@@ -13832,6 +13892,13 @@ button.crewlet-histogram__bar[data-empty]:focus-visible > .crewlet-histogram__fi
13832
13892
  color: var(--color-text-primary);
13833
13893
  }
13834
13894
 
13895
+ /* An option's face or glyph (`leading`), on the label's line and never shrunk. */
13896
+ .crewlet-combobox__leading {
13897
+ display: inline-flex;
13898
+ align-items: center;
13899
+ flex: none;
13900
+ }
13901
+
13835
13902
  .crewlet-combobox__check {
13836
13903
  display: inline-flex;
13837
13904
  flex: none;
@@ -22807,7 +22874,7 @@ svg.crewlet-datetime__chevron {
22807
22874
  }
22808
22875
 
22809
22876
 
22810
- /* FilterPill-4GMNFZND.css */
22877
+ /* FilterPill-C6LFYCCA.css */
22811
22878
  /*
22812
22879
  * The filter pill: one filter in force, as a sentence on the accent ground.
22813
22880
  *
@@ -22893,6 +22960,13 @@ button.crewlet-filter-pill__words {
22893
22960
  color: var(--color-text-secondary);
22894
22961
  }
22895
22962
 
22963
+ /* A face before the value (`valueLeading`), never shrunk by a long value. */
22964
+ .crewlet-filter-pill__value-leading {
22965
+ display: inline-flex;
22966
+ align-items: center;
22967
+ flex: none;
22968
+ }
22969
+
22896
22970
  .crewlet-filter-pill__value {
22897
22971
  min-width: 0;
22898
22972
  overflow: hidden;
@@ -31370,7 +31444,7 @@ button.crewlet-mention-chip:focus-visible {
31370
31444
  }
31371
31445
 
31372
31446
 
31373
- /* NoticeList-LD5APCDU.css */
31447
+ /* NoticeList-GHCJRR3Z.css */
31374
31448
  /*
31375
31449
  * Several things to know from one source. Inside a Callout it takes the
31376
31450
  * callout's ink and size; on its own, the page's secondary ink.
@@ -31519,6 +31593,99 @@ button.crewlet-mention-chip:focus-visible {
31519
31593
  color: inherit;
31520
31594
  }
31521
31595
 
31596
+ /*
31597
+ * COMPACT: one row per notice on the disclosure anatomy, in the list's own ink
31598
+ * and size. The title wraps rather than cuts, so nothing is clipped.
31599
+ */
31600
+ .crewlet-notice-list--compact {
31601
+ --crewlet-notice-list-mark: calc(14px + var(--spacing-1));
31602
+ }
31603
+
31604
+ .crewlet-notice-list--compact .crewlet-notice-list__items {
31605
+ gap: 0;
31606
+ }
31607
+
31608
+ .crewlet-notice-list--compact .crewlet-notice-list__item {
31609
+ display: block;
31610
+ }
31611
+
31612
+ .crewlet-notice-list--compact .crewlet-disclosure__bar {
31613
+ align-items: flex-start;
31614
+ }
31615
+
31616
+ .crewlet-notice-list .crewlet-notice-list__toggle {
31617
+ align-items: flex-start;
31618
+ margin-inline-start: calc(-1 * var(--spacing-1));
31619
+ padding: calc((var(--size-row-sm) - 1lh) / 2) var(--spacing-1);
31620
+ color: inherit;
31621
+ font-size: inherit;
31622
+ }
31623
+
31624
+ .crewlet-notice-list .crewlet-notice-list__toggle:hover {
31625
+ color: inherit;
31626
+ }
31627
+
31628
+ .crewlet-notice-list__toggle .crewlet-disclosure__title {
31629
+ overflow: visible;
31630
+ white-space: normal;
31631
+ }
31632
+
31633
+ /* The chevron and a tone glyph centre on the first line of a wrapped title. */
31634
+ .crewlet-notice-list__toggle .crewlet-disclosure__chevron {
31635
+ margin-block: calc((1lh - 14px) / 2);
31636
+ color: inherit;
31637
+ }
31638
+
31639
+ .crewlet-notice-list__toggle .crewlet-disclosure__icon {
31640
+ height: 1lh;
31641
+ }
31642
+
31643
+ .crewlet-notice-list--compact .crewlet-notice-list__summary {
31644
+ font-weight: var(--font-weight-regular);
31645
+ }
31646
+
31647
+ .crewlet-notice-list--compact .crewlet-notice-list__summary::before {
31648
+ content: '·' / '';
31649
+ margin-inline-end: var(--spacing-1);
31650
+ }
31651
+
31652
+ .crewlet-notice-list--compact .crewlet-disclosure__actions {
31653
+ min-height: var(--size-row-sm);
31654
+ }
31655
+
31656
+ /* Under the title's first word, past the chevron (and the glyph in a mixed list). */
31657
+ .crewlet-notice-list__panel {
31658
+ display: grid;
31659
+ gap: 2px;
31660
+ padding: 0 0 var(--spacing-1) var(--crewlet-notice-list-mark);
31661
+ overflow-wrap: anywhere;
31662
+ }
31663
+
31664
+ .crewlet-notice-list--mixed .crewlet-notice-list__panel {
31665
+ padding-inline-start: calc(2 * var(--crewlet-notice-list-mark));
31666
+ }
31667
+
31668
+ .crewlet-notice-list__panel[hidden] {
31669
+ display: none;
31670
+ }
31671
+
31672
+ /* A narrow list puts each action under its title. */
31673
+ @container crewlet-notice-list (width < 28rem) {
31674
+ .crewlet-notice-list--compact .crewlet-disclosure__bar {
31675
+ flex-wrap: wrap;
31676
+ row-gap: 0;
31677
+ }
31678
+
31679
+ .crewlet-notice-list--compact .crewlet-disclosure__bar > .crewlet-notice-list__toggle {
31680
+ flex-basis: 100%;
31681
+ }
31682
+
31683
+ .crewlet-notice-list--compact .crewlet-disclosure__actions {
31684
+ min-height: 0;
31685
+ margin-inline-start: var(--crewlet-notice-list-mark);
31686
+ }
31687
+ }
31688
+
31522
31689
 
31523
31690
  /* NumberField-G7H4VNZP.css */
31524
31691
  /* NumberField: a field between its two steppers, then its preset chips. */
@@ -4,8 +4,8 @@ export { useClipboard, writeClipboard } from '../chunk-STJ7QBC3.js';
4
4
  export { useOutcome } from '../chunk-DTIW4CHZ.js';
5
5
  export { NODE_HUES, NODE_HUE_NAMES, isNodeHue } from '../chunk-AYKXMIOR.js';
6
6
  export { SECRET_INPUT_PROPS } from '../chunk-NICEDVZM.js';
7
- export { HeadingLevelProvider, headingTag, nextHeadingLevel, useHeadingLevel } from '../chunk-PQADV6P6.js';
8
7
  export { attachRef, composeRefs, useComposedRef } from '../chunk-L72URIHR.js';
9
8
  export { tokenMs } from '../chunk-HTS5RJ7S.js';
10
9
  export { FOCUS_MODALITY_ATTRIBUTE, FOCUS_RETURNED_ATTRIBUTE, isVisibleFocus, returnFocus, trackFocusModality, useFocusModality } from '../chunk-4ITETIGZ.js';
10
+ export { HeadingLevelProvider, headingTag, nextHeadingLevel, useHeadingLevel } from '../chunk-PQADV6P6.js';
11
11
  export { cx } from '../chunk-ODEQTPFM.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewlethq/ui",
3
- "version": "0.150.1",
3
+ "version": "0.152.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.150.1",
46
- "@crewlethq/tokens": "0.150.1",
45
+ "@crewlethq/icons": "0.152.0",
46
+ "@crewlethq/tokens": "0.152.0",
47
47
  "prosemirror-commands": "1.7.2",
48
48
  "prosemirror-gapcursor": "1.4.1",
49
49
  "prosemirror-history": "1.5.1",
@@ -1,91 +0,0 @@
1
- import { Button } from './chunk-IMF3CPTY.js';
2
- import { VisuallyHidden } from './chunk-RRRK2KB6.js';
3
- import { cx } from './chunk-ODEQTPFM.js';
4
- import { useState } from 'react';
5
- import { CircleAlertGlyph, TriangleAlertGlyph, CircleCheckGlyph, InfoGlyph } from '@crewlethq/icons/glyphs';
6
- import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
7
-
8
- function NoticeLineView({
9
- line,
10
- shown,
11
- andMore,
12
- className
13
- }) {
14
- const [open, setOpen] = useState(false);
15
- const folds = line.items.length > shown + 1 && !open;
16
- const items = folds ? line.items.slice(0, shown) : line.items;
17
- return /* @__PURE__ */ jsxs("p", { className: cx("crewlet-notice-list__line", className), children: [
18
- line.subject != null ? /* @__PURE__ */ jsxs(Fragment, { children: [
19
- /* @__PURE__ */ jsx("strong", { className: "crewlet-notice-list__subject", children: line.subject }),
20
- ": "
21
- ] }) : null,
22
- items.map((item, i) => /* @__PURE__ */ jsxs("span", { children: [
23
- i > 0 ? ", " : null,
24
- item
25
- ] }, i)),
26
- folds ? /* @__PURE__ */ jsxs(Fragment, { children: [
27
- " ",
28
- /* @__PURE__ */ jsx("button", { type: "button", className: "crewlet-notice-list__and-more", onClick: () => setOpen(true), children: andMore(line.items.length - shown) })
29
- ] }) : null
30
- ] });
31
- }
32
- var NOTICE_LIST_LABELS = {
33
- more: (hidden) => `Show ${hidden} more`,
34
- less: "Show fewer",
35
- andMore: (hidden) => `and ${hidden} more`,
36
- tones: { danger: "Problem", warning: "Warning", info: "Note", success: "Done", neutral: "Note" }
37
- };
38
- var GLYPHS = {
39
- neutral: /* @__PURE__ */ jsx(InfoGlyph, { size: "sm" }),
40
- info: /* @__PURE__ */ jsx(InfoGlyph, { size: "sm" }),
41
- success: /* @__PURE__ */ jsx(CircleCheckGlyph, { size: "sm" }),
42
- warning: /* @__PURE__ */ jsx(TriangleAlertGlyph, { size: "sm" }),
43
- danger: /* @__PURE__ */ jsx(CircleAlertGlyph, { size: "sm" })
44
- };
45
- function NoticeList({
46
- notices,
47
- collapseAfter = 3,
48
- itemsShown = 4,
49
- label,
50
- labels: overrides,
51
- className
52
- }) {
53
- const words = { ...NOTICE_LIST_LABELS, ...overrides, tones: { ...NOTICE_LIST_LABELS.tones, ...overrides?.tones } };
54
- const [expanded, setExpanded] = useState(false);
55
- if (notices.length === 0) return null;
56
- const mixed = new Set(notices.map((n) => n.tone ?? "neutral")).size > 1;
57
- const folds = notices.length > collapseAfter + 1;
58
- const shown = folds && !expanded ? notices.slice(0, collapseAfter) : notices;
59
- return /* @__PURE__ */ jsxs("div", { className: cx("crewlet-notice-list", mixed && "crewlet-notice-list--mixed", className), children: [
60
- /* @__PURE__ */ jsx("ul", { className: "crewlet-notice-list__items", "aria-label": label, children: shown.map((notice) => /* @__PURE__ */ jsxs("li", { className: "crewlet-notice-list__item", children: [
61
- mixed ? /* @__PURE__ */ jsx("span", { className: cx("crewlet-notice-list__glyph", `is-${notice.tone ?? "neutral"}`), "aria-hidden": true, children: GLYPHS[notice.tone ?? "neutral"] }) : null,
62
- /* @__PURE__ */ jsxs("div", { className: "crewlet-notice-list__text", children: [
63
- /* @__PURE__ */ jsxs("p", { className: "crewlet-notice-list__title", children: [
64
- mixed ? /* @__PURE__ */ jsx(VisuallyHidden, { children: `${words.tones[notice.tone ?? "neutral"]}: ` }) : null,
65
- notice.subject != null ? /* @__PURE__ */ jsxs(Fragment, { children: [
66
- /* @__PURE__ */ jsx("strong", { className: "crewlet-notice-list__subject", children: notice.subject }),
67
- ": "
68
- ] }) : null,
69
- notice.title
70
- ] }),
71
- notice.lines?.map((line, i) => /* @__PURE__ */ jsx(NoticeLineView, { line, shown: itemsShown, andMore: words.andMore }, i)),
72
- notice.detail != null ? /* @__PURE__ */ jsx("p", { className: "crewlet-notice-list__detail", children: notice.detail }) : null
73
- ] }),
74
- notice.action != null ? /* @__PURE__ */ jsx("div", { className: "crewlet-notice-list__action", children: notice.action }) : null
75
- ] }, notice.key)) }),
76
- folds ? /* @__PURE__ */ jsx(
77
- Button,
78
- {
79
- variant: "ghost",
80
- size: "small",
81
- flush: true,
82
- className: "crewlet-notice-list__more",
83
- "aria-expanded": expanded,
84
- onClick: () => setExpanded((e) => !e),
85
- children: expanded ? words.less : words.more(notices.length - collapseAfter)
86
- }
87
- ) : null
88
- ] });
89
- }
90
-
91
- export { NOTICE_LIST_LABELS, NoticeLineView, NoticeList };
@@ -1,62 +0,0 @@
1
- import { IconButton } from './chunk-KM5OKCW6.js';
2
- import { cx } from './chunk-ODEQTPFM.js';
3
- import './Callout-WLZKAFPT.css';
4
- import { XGlyph, CircleAlertGlyph, TriangleAlertGlyph, CircleCheckGlyph, InfoGlyph } from '@crewlethq/icons/glyphs';
5
- import { jsxs, jsx } from 'react/jsx-runtime';
6
-
7
- var GLYPHS = {
8
- neutral: /* @__PURE__ */ jsx(InfoGlyph, { size: "md" }),
9
- info: /* @__PURE__ */ jsx(InfoGlyph, { size: "md" }),
10
- success: /* @__PURE__ */ jsx(CircleCheckGlyph, { size: "md" }),
11
- warning: /* @__PURE__ */ jsx(TriangleAlertGlyph, { size: "md" }),
12
- danger: /* @__PURE__ */ jsx(CircleAlertGlyph, { size: "md" })
13
- };
14
- var Callout = ({
15
- variant = "info",
16
- title,
17
- icon,
18
- layout = "card",
19
- appearance = "tinted",
20
- action,
21
- onDismiss,
22
- dismissLabel = "Dismiss",
23
- live,
24
- className,
25
- children,
26
- ...rest
27
- }) => /* @__PURE__ */ jsxs(
28
- "div",
29
- {
30
- ...rest,
31
- "aria-live": live,
32
- className: cx(
33
- "crewlet-callout",
34
- `crewlet-callout--${variant}`,
35
- `crewlet-callout--${layout}`,
36
- appearance === "quiet" && "crewlet-callout--quiet",
37
- className
38
- ),
39
- children: [
40
- /* @__PURE__ */ jsx("span", { className: "crewlet-callout__icon", "aria-hidden": true, children: icon ?? GLYPHS[variant] }),
41
- /* @__PURE__ */ jsxs("div", { className: "crewlet-callout__content", children: [
42
- title ? /* @__PURE__ */ jsx("span", { className: "crewlet-callout__title", children: title }) : null,
43
- children
44
- ] }),
45
- action || onDismiss ? /* @__PURE__ */ jsxs("div", { className: "crewlet-callout__action", children: [
46
- action,
47
- onDismiss ? /* @__PURE__ */ jsx(
48
- IconButton,
49
- {
50
- className: "crewlet-callout__dismiss",
51
- label: dismissLabel,
52
- icon: /* @__PURE__ */ jsx(XGlyph, { size: "sm" }),
53
- size: "sm",
54
- onClick: onDismiss
55
- }
56
- ) : null
57
- ] }) : null
58
- ]
59
- }
60
- );
61
-
62
- export { Callout };
@@ -1,8 +1,8 @@
1
1
  import { PageHeader } from './chunk-FPDIHEM4.js';
2
2
  import { Stepper } from './chunk-EHD4CEHK.js';
3
3
  import { Disclosure } from './chunk-D5O64CVE.js';
4
- import { useHeadingLevel, nextHeadingLevel, headingTag, HeadingLevelProvider } from './chunk-PQADV6P6.js';
5
4
  import { useMediaMatch } from './chunk-COS6LJ4K.js';
5
+ import { useHeadingLevel, nextHeadingLevel, headingTag, HeadingLevelProvider } from './chunk-PQADV6P6.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
7
7
  import './SetupWizard-Y2PFPBCZ.css';
8
8
  import { useId, useRef, useState, useEffect, useCallback, createElement } from 'react';
@@ -1,7 +1,7 @@
1
1
  import { Toolbar } from './chunk-NPEI2QAN.js';
2
- import { announce } from './chunk-WGMKERCR.js';
3
2
  import { Button } from './chunk-IMF3CPTY.js';
4
3
  import { returnFocus } from './chunk-4ITETIGZ.js';
4
+ import { announce } from './chunk-WGMKERCR.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
6
6
  import './SelectionBar-54W5IFF5.css';
7
7
  import { useRef, useEffect } from 'react';
@@ -1,5 +1,5 @@
1
- import { announce } from './chunk-WGMKERCR.js';
2
1
  import { IconButton } from './chunk-KM5OKCW6.js';
2
+ import { announce } from './chunk-WGMKERCR.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import './ArrangeFrame-QCQZ5RF6.css';
5
5
  import { forwardRef, useRef, useCallback, useState, useEffect } from 'react';
@@ -7,8 +7,8 @@ import { presenceLabels } from './chunk-Z7JYG5TF.js';
7
7
  import { Tag } from './chunk-SJ3EUCFD.js';
8
8
  import { Popover } from './chunk-AJFA2XDQ.js';
9
9
  import { StatusDot } from './chunk-QRE6JCHS.js';
10
- import { Avatar } from './chunk-YMFFGPFE.js';
11
10
  import { Menu } from './chunk-ZMZNKDPO.js';
11
+ import { Avatar } from './chunk-YMFFGPFE.js';
12
12
  import { Button } from './chunk-IMF3CPTY.js';
13
13
  import { IconButton } from './chunk-KM5OKCW6.js';
14
14
  import { Tooltip } from './chunk-BFZAGIXR.js';
@@ -1,9 +1,9 @@
1
- import { HeadingLevelProvider } from './chunk-PQADV6P6.js';
2
1
  import { Button } from './chunk-IMF3CPTY.js';
3
2
  import { IconButton } from './chunk-KM5OKCW6.js';
4
3
  import { useComposedRef } from './chunk-L72URIHR.js';
5
4
  import { useLayerContainer } from './chunk-AVJKMQXK.js';
6
5
  import { focusables, useModalLayer, useBodyScrollLock } from './chunk-EDPMHSLZ.js';
6
+ import { HeadingLevelProvider } from './chunk-PQADV6P6.js';
7
7
  import { cx } from './chunk-ODEQTPFM.js';
8
8
  import './Modal-TVHT3TEL.css';
9
9
  import { useState, useLayoutEffect, useId, useRef, useCallback } from 'react';
@@ -1,8 +1,8 @@
1
- import { HeadingLevelProvider } from './chunk-PQADV6P6.js';
2
1
  import { useAppShellAside } from './chunk-MBEZOURR.js';
3
2
  import { ResizeHandle } from './chunk-FQ6J4DK7.js';
4
3
  import { IconButton } from './chunk-KM5OKCW6.js';
5
4
  import { useEscapeWithin, useModalLayer } from './chunk-EDPMHSLZ.js';
5
+ import { HeadingLevelProvider } from './chunk-PQADV6P6.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
7
7
  import { createContext, useId, useRef, useContext, useLayoutEffect, useState, useEffect, useMemo } from 'react';
8
8
  import { MinimizeGlyph, MaximizeGlyph, XGlyph } from '@crewlethq/icons/glyphs';
@@ -1,5 +1,5 @@
1
- import { announce } from './chunk-WGMKERCR.js';
2
1
  import { prefersReducedMotion } from './chunk-COS6LJ4K.js';
2
+ import { announce } from './chunk-WGMKERCR.js';
3
3
  import { useId, useState, useRef, useCallback, useLayoutEffect, useMemo } from 'react';
4
4
 
5
5
  var DEFAULT_REORDER_LABELS = {
@@ -1,5 +1,5 @@
1
- import { StatusDot } from './chunk-QRE6JCHS.js';
2
1
  import { toISO, useNow, formatRelative } from './chunk-GBKBME7Q.js';
2
+ import { StatusDot } from './chunk-QRE6JCHS.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import './EditingStatus-TMGT265J.css';
5
5
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
@@ -1,7 +1,7 @@
1
1
  import { Eyebrow } from './chunk-RK4XPHVG.js';
2
2
  import { developing } from './chunk-6C7GQOBV.js';
3
- import { useHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
4
3
  import { usePresence, releaseFocus } from './chunk-SNKQNAJI.js';
4
+ import { useHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
5
5
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
7
7
  import './ChatScale-LGESYXCO.css';
@@ -1,8 +1,8 @@
1
1
  import { useRoving, tabStop, revealInRow } from './chunk-7F3OPUM5.js';
2
2
  import { StatusDot } from './chunk-QRE6JCHS.js';
3
- import { Count } from './chunk-Y5CMDLQM.js';
4
3
  import { Menu } from './chunk-ZMZNKDPO.js';
5
4
  import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
5
+ import { Count } from './chunk-Y5CMDLQM.js';
6
6
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
7
7
  import { cx } from './chunk-ODEQTPFM.js';
8
8
  import './HitArea-QUOS6ZDJ.css';
@@ -2,11 +2,11 @@ import { SECRET_INPUT_PROPS } from './chunk-NICEDVZM.js';
2
2
  import { useFieldError, FormFieldInvalidContext } from './chunk-JLKO7PSK.js';
3
3
  import { copyTextStyles } from './chunk-PJV5HVZY.js';
4
4
  import { characterCountState, CharacterCount } from './chunk-TEXK4RK6.js';
5
- import { useHeadingLevel, headingTag, HeadingLevelProvider, nextHeadingLevel } from './chunk-PQADV6P6.js';
6
- import { announce } from './chunk-WGMKERCR.js';
7
5
  import { IconButton } from './chunk-KM5OKCW6.js';
8
6
  import { isComposing } from './chunk-EDPMHSLZ.js';
9
7
  import { useFocusModality } from './chunk-4ITETIGZ.js';
8
+ import { useHeadingLevel, headingTag, HeadingLevelProvider, nextHeadingLevel } from './chunk-PQADV6P6.js';
9
+ import { announce } from './chunk-WGMKERCR.js';
10
10
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
11
11
  import { cx } from './chunk-ODEQTPFM.js';
12
12
  import './Input-YVCNNTYT.css';
@@ -1,6 +1,6 @@
1
1
  import { Eyebrow } from './chunk-RK4XPHVG.js';
2
- import { useHeadingLevel, HeadingLevelProvider, nextHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
3
2
  import { returnFocus } from './chunk-4ITETIGZ.js';
3
+ import { useHeadingLevel, HeadingLevelProvider, nextHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
5
5
  import './ReadingPane-2VJ4JQ3J.css';
6
6
  import { createContext, useId, useRef, useState, useEffect, useLayoutEffect, createElement, useContext } from 'react';
@@ -1,7 +1,7 @@
1
1
  import { Tag } from './chunk-SJ3EUCFD.js';
2
- import { announce } from './chunk-WGMKERCR.js';
3
2
  import { isComposing } from './chunk-EDPMHSLZ.js';
4
3
  import { useFocusModality } from './chunk-4ITETIGZ.js';
4
+ import { announce } from './chunk-WGMKERCR.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
6
6
  import './Tag-WLDOROB5.css';
7
7
  import './ChipField-D4CW6XFA.css';
@@ -1,8 +1,8 @@
1
1
  import { PRESENCE_LABELS, presenceOrder, collapseSessions } from './chunk-Z7JYG5TF.js';
2
2
  import { Avatar } from './chunk-YMFFGPFE.js';
3
- import { headingTag, useHeadingLevel } from './chunk-PQADV6P6.js';
4
3
  import { Button } from './chunk-IMF3CPTY.js';
5
4
  import { IconButton } from './chunk-KM5OKCW6.js';
5
+ import { headingTag, useHeadingLevel } from './chunk-PQADV6P6.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
7
7
  import './PeopleRail-MRUSDGCZ.css';
8
8
  import { useId } from 'react';
@@ -1,9 +1,9 @@
1
1
  import { useListbox } from './chunk-KW7T23RT.js';
2
2
  import { Tag } from './chunk-SJ3EUCFD.js';
3
- import { announce } from './chunk-WGMKERCR.js';
4
3
  import { IconButton } from './chunk-KM5OKCW6.js';
5
4
  import { isComposing } from './chunk-EDPMHSLZ.js';
6
5
  import { useFocusModality } from './chunk-4ITETIGZ.js';
6
+ import { announce } from './chunk-WGMKERCR.js';
7
7
  import { cx } from './chunk-ODEQTPFM.js';
8
8
  import './TagsInput-MWVVKTT2.css';
9
9
  import { forwardRef, useState, useRef, useId, useImperativeHandle, useEffect, useMemo, useLayoutEffect } from 'react';