@crewlethq/ui 0.83.0 → 0.84.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 (66) hide show
  1. package/README.md +34 -0
  2. package/dist/ActionCard/ActionCard.d.ts +7 -7
  3. package/dist/ActionCard/index.js +1 -1
  4. package/dist/ActionCard-YZKL3CKR.css +130 -0
  5. package/dist/AppShell/AppShell.d.ts +14 -11
  6. package/dist/AppShell/index.js +1 -1
  7. package/dist/{AppShell-U7D2MUUF.css → AppShell-NX5HCD4O.css} +84 -44
  8. package/dist/ArtifactBar/index.js +1 -1
  9. package/dist/ArtifactCard/index.js +2 -2
  10. package/dist/ArtifactKindIllustration/index.js +1 -1
  11. package/dist/{ArtifactKinds-3EH4KR3F.css → ArtifactKinds-27TE3KJL.css} +7 -7
  12. package/dist/ArtifactMakeRow/index.js +1 -1
  13. package/dist/ArtifactNameCell/index.js +1 -1
  14. package/dist/BriefCard/index.js +2 -1
  15. package/dist/CatalogTile/CatalogTile.d.ts +23 -5
  16. package/dist/CatalogTile/index.d.ts +1 -1
  17. package/dist/CatalogTile/index.js +2 -1
  18. package/dist/{CatalogTile-6VF36JWA.css → CatalogTile-TMOSGSV3.css} +4 -3
  19. package/dist/CompactNav/CompactNav.d.ts +10 -6
  20. package/dist/CompactNav/index.js +1 -1
  21. package/dist/DataView/index.js +1 -1
  22. package/dist/DirectoryList/index.js +1 -1
  23. package/dist/{DirectoryList-XZOWYOA3.css → DirectoryList-IXQIMNFS.css} +8 -1
  24. package/dist/InboxList/InboxList.d.ts +28 -2
  25. package/dist/InboxList/index.d.ts +1 -1
  26. package/dist/InboxList/index.js +6 -1
  27. package/dist/{InboxList-OFGSX5IH.css → InboxList-X5Q5WWAI.css} +63 -2
  28. package/dist/ListDetail/ListDetail.d.ts +6 -0
  29. package/dist/ListDetail/index.js +1 -1
  30. package/dist/{ListDetail-N3L7PB46.css → ListDetail-JGESKTR7.css} +38 -0
  31. package/dist/ReadingPane/ReadingPane.d.ts +17 -1
  32. package/dist/ReadingPane/index.d.ts +1 -1
  33. package/dist/ReadingPane/index.js +2 -1
  34. package/dist/{ReadingPane-VLYOWMCM.css → ReadingPane-VFTRDPC5.css} +19 -0
  35. package/dist/RichEditor/index.js +1 -1
  36. package/dist/SectionFrame/index.js +2 -2
  37. package/dist/ShareDialog/index.js +1 -1
  38. package/dist/SidebarNav/SidebarNav.d.ts +18 -2
  39. package/dist/SidebarNav/index.d.ts +1 -1
  40. package/dist/SidebarNav/index.js +1 -1
  41. package/dist/{SidebarNav-E7PZGGA6.css → SidebarNav-IKBKGXW4.css} +20 -0
  42. package/dist/{chunk-AUSFKGKL.js → chunk-3AMWXJQX.js} +1 -1
  43. package/dist/{chunk-Q7N2ATMC.js → chunk-64JNKLLP.js} +57 -9
  44. package/dist/chunk-6C7GQOBV.js +10 -0
  45. package/dist/{chunk-YRNNUCQP.js → chunk-7BDBO2NP.js} +1 -1
  46. package/dist/{chunk-25JQNHTC.js → chunk-BRK3HXGZ.js} +8 -2
  47. package/dist/{chunk-QM3432PH.js → chunk-C4JTX25K.js} +2 -2
  48. package/dist/{chunk-QE4OIE3Q.js → chunk-DJIWCW5Z.js} +6 -4
  49. package/dist/{chunk-QPHD4UUG.js → chunk-F6ZUM66S.js} +160 -25
  50. package/dist/{chunk-MVMVMHYI.js → chunk-HDEKHP65.js} +1 -1
  51. package/dist/{chunk-BXGBGYKH.js → chunk-HKUZ2GYX.js} +1 -1
  52. package/dist/{chunk-ZB3E2Z4Y.js → chunk-J5T5TDM2.js} +1 -1
  53. package/dist/{chunk-C46DDVTK.js → chunk-LTD7KLOU.js} +1 -1
  54. package/dist/{chunk-YBC2CYPD.js → chunk-O4VTQMEF.js} +1 -1
  55. package/dist/{chunk-HTBTAIH6.js → chunk-OM2LABPS.js} +2 -2
  56. package/dist/{chunk-PGBKZSSQ.js → chunk-ORONAXSF.js} +10 -7
  57. package/dist/{chunk-ICE3D63E.js → chunk-QWRAWKB2.js} +50 -9
  58. package/dist/{chunk-SRDNGGZE.js → chunk-RKIJAXQA.js} +1 -1
  59. package/dist/{chunk-CF4M6N6A.js → chunk-XYSSFI5C.js} +1 -7
  60. package/dist/generated/index.js +31 -30
  61. package/dist/index.js +31 -30
  62. package/dist/styles.css +294 -88
  63. package/dist/utils/developing.d.ts +10 -0
  64. package/package.json +3 -3
  65. package/dist/ActionCard-47WSZ2O5.css +0 -110
  66. package/dist/{Editor-5D5Z3LBQ.js → Editor-VGNB35NJ.js} +1 -1
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Whether the host is a development build, for a warning a component gives
3
+ * only there. A bundler replaces `process.env.NODE_ENV` with a literal, so the
4
+ * check costs nothing in a production build and is true in development. It is
5
+ * NOT guarded with `typeof process`: that expression is not replaced, and in
6
+ * a browser it is 'undefined' even in development, which would silence the
7
+ * warning everywhere. An ESM host with no bundler has no `process` at all, and
8
+ * the ReferenceError reads as not developing.
9
+ */
10
+ export declare function developing(): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewlethq/ui",
3
- "version": "0.83.0",
3
+ "version": "0.84.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.83.0",
46
- "@crewlethq/tokens": "0.83.0",
45
+ "@crewlethq/icons": "0.84.0",
46
+ "@crewlethq/tokens": "0.84.0",
47
47
  "prosemirror-commands": "1.7.2",
48
48
  "prosemirror-gapcursor": "1.4.1",
49
49
  "prosemirror-history": "1.5.1",
@@ -1,110 +0,0 @@
1
- /*
2
- * ActionCard: a first step offered as a picture, on an artifact kind's
3
- * colour ground. The ground is the kind's own Ground steps (ArtifactKinds.css)
4
- * laid over the card rung, which the palette suite holds to 4.5:1 for the
5
- * primary text in every palette and both modes, with the kind's glow behind
6
- * the drawing.
7
- */
8
-
9
- /*
10
- * ONE ROW THAT SCROLLS SIDEWAYS when it runs out of width, so a phone shows
11
- * two cards and part of the third (the part says there is more) instead of a
12
- * tall stack. The block padding keeps the focus ring and the hover shadow
13
- * inside the scroller's clip; the negative margin gives that space back to
14
- * the layout. A host that runs the row to its container's edges sets the
15
- * inline padding and `scroll-padding-inline` to its own inset.
16
- */
17
- .crewlet-action-cards {
18
- display: flex;
19
- gap: var(--spacing-2);
20
- overflow-x: auto;
21
- margin-block: calc(var(--spacing-1) * -1) calc(var(--spacing-2) * -1);
22
- padding-block: var(--spacing-1) var(--spacing-2);
23
- scroll-snap-type: x mandatory;
24
- overscroll-behavior-x: contain;
25
- scrollbar-width: none;
26
- }
27
-
28
- .crewlet-action-cards::-webkit-scrollbar {
29
- display: none;
30
- }
31
-
32
- .crewlet-action-card {
33
- --crewlet-action-card-ground: var(--crewlet-kind-ground);
34
- position: relative;
35
- display: flex;
36
- flex: none;
37
- flex-direction: column;
38
- justify-content: space-between;
39
- width: 148px;
40
- height: 172px;
41
- box-sizing: border-box;
42
- overflow: hidden;
43
- padding: var(--spacing-3) var(--spacing-3) 0;
44
- /* The kind's hue itself is the edge: 3:1 or more on the sheet in every
45
- palette and mode, where the kind's Line step measured 2.5:1. */
46
- border: 1px solid var(--crewlet-kind-hue);
47
- border-radius: var(--radius-lg);
48
- background-color: var(--color-surface-subtle);
49
- background-image:
50
- radial-gradient(110% 64% at 50% 100%, var(--crewlet-kind-glow) 0%, transparent 72%),
51
- linear-gradient(180deg, var(--crewlet-action-card-ground) 0%, var(--crewlet-kind-ground-end) 100%);
52
- color: var(--color-text-primary);
53
- font: inherit;
54
- text-align: left;
55
- cursor: pointer;
56
- scroll-snap-align: start;
57
- transition: box-shadow var(--motion-duration-fast) var(--motion-easing-default);
58
- }
59
-
60
- /* A QUIET HOVER: the ground deepens a step and a small shadow lifts the
61
- card off the page. Nothing moves. */
62
- .crewlet-action-card:hover {
63
- --crewlet-action-card-ground: var(--crewlet-kind-ground-strong);
64
- box-shadow: var(--shadow-sm);
65
- }
66
-
67
- /* The card draws its own edge, so the ring is drawn over it. */
68
- .crewlet-action-card:focus-visible {
69
- outline: 2px solid var(--color-focus);
70
- outline-offset: var(--size-focus-ring-inset-offset);
71
- }
72
-
73
- /* The title at the medium weight, as every emphasis in a conversation is,
74
- two lines at most at its width, balanced so neither line is one word. */
75
- .crewlet-action-card__title {
76
- max-width: 14ch;
77
- font-size: var(--font-size-sm);
78
- font-weight: var(--font-weight-medium);
79
- line-height: var(--font-line-height-snug);
80
- text-wrap: balance;
81
- }
82
-
83
- /* The drawing stands on the card's foot, still. */
84
- .crewlet-action-card__art {
85
- display: flex;
86
- align-items: flex-end;
87
- justify-content: center;
88
- height: 100px;
89
- margin: 0 calc(var(--spacing-3) * -1);
90
- }
91
-
92
- .crewlet-action-card__art .crewlet-kind-illustration {
93
- width: 112px;
94
- max-height: 96px;
95
- margin-bottom: calc(var(--spacing-2) * -1);
96
- filter: drop-shadow(0 6px 12px var(--crewlet-kind-line));
97
- }
98
-
99
- /* FORCED COLORS drops the ground; the hue's border stays as the card's edge. */
100
- @media (forced-colors: active) {
101
- .crewlet-action-card {
102
- border-color: CanvasText;
103
- }
104
- }
105
-
106
- @media (prefers-reduced-motion: reduce) {
107
- .crewlet-action-card {
108
- transition: none;
109
- }
110
- }
@@ -1,5 +1,5 @@
1
- import { schema, readMarkdown, writeMarkdown } from './chunk-7CSTEH5I.js';
2
1
  import { richEditorLabels } from './chunk-2DMTW2Y3.js';
2
+ import { schema, readMarkdown, writeMarkdown } from './chunk-7CSTEH5I.js';
3
3
  import './chunk-KOJPDCGQ.js';
4
4
  import { safeHref, MARKDOWN_CALLOUT_TONES } from './chunk-KBZO4B33.js';
5
5
  import { Toolbar } from './chunk-NXFTCPF6.js';