@crewlethq/ui 0.131.0 → 0.131.1

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 (118) hide show
  1. package/dist/AppShell/AppShell.d.ts +47 -196
  2. package/dist/AppShell/index.js +2 -2
  3. package/dist/{AppShell-N5IHITJM.css → AppShell-RPILZZW5.css} +109 -431
  4. package/dist/ArtifactBar/index.js +4 -4
  5. package/dist/ArtifactCard/ArtifactCard.d.ts +13 -39
  6. package/dist/ArtifactCard/index.js +1 -1
  7. package/dist/{ArtifactCard-ZH6KCD5O.css → ArtifactCard-PWMC7RAY.css} +15 -49
  8. package/dist/ArtifactMakeRow/ArtifactMakeRow.d.ts +3 -16
  9. package/dist/AvatarPicker/index.js +5 -5
  10. package/dist/BrandSample/index.js +1 -1
  11. package/dist/{BrandSample-3OSKZAGG.css → BrandSample-WSBT7FQ5.css} +5 -25
  12. package/dist/Breadcrumb/Breadcrumb.d.ts +5 -41
  13. package/dist/Breadcrumb/index.js +1 -1
  14. package/dist/{Breadcrumb-MQJWJVN3.css → Breadcrumb-JDBQXPR5.css} +12 -58
  15. package/dist/Canvas/Canvas.d.ts +52 -228
  16. package/dist/Canvas/geometry.d.ts +31 -139
  17. package/dist/Canvas/index.js +1 -1
  18. package/dist/CanvasBoard/index.js +3 -3
  19. package/dist/CanvasToolbar/index.js +2 -2
  20. package/dist/CodeBlock/index.js +1 -1
  21. package/dist/ColorSwatch/index.js +2 -2
  22. package/dist/CommentThread/CommentThread.d.ts +3 -21
  23. package/dist/CommentThread/index.js +1 -1
  24. package/dist/{CommentThread-544KCZT7.css → CommentThread-YU6VSVS4.css} +2 -4
  25. package/dist/Composer/Composer.d.ts +17 -54
  26. package/dist/ConfirmField/index.js +2 -2
  27. package/dist/Copyable/Copyable.d.ts +2 -11
  28. package/dist/Copyable/index.js +1 -1
  29. package/dist/{Copyable-XMLKKJDT.css → Copyable-U3UJL3BP.css} +9 -32
  30. package/dist/DataGrid/DataGrid.d.ts +46 -136
  31. package/dist/DataGrid/index.js +1 -1
  32. package/dist/DataTable/index.js +2 -2
  33. package/dist/DataView/index.js +3 -3
  34. package/dist/DocTabsEditor/index.js +2 -2
  35. package/dist/{Editor-MEPTWBY5.js → Editor-HDHT5BX2.js} +2 -2
  36. package/dist/GraphCanvas/GraphCanvas.d.ts +22 -79
  37. package/dist/GraphCanvas/index.js +2 -2
  38. package/dist/GraphCanvas/layout.d.ts +10 -35
  39. package/dist/HuePicker/index.js +4 -4
  40. package/dist/InlineCode/InlineCode.d.ts +7 -28
  41. package/dist/InlineCode/index.js +1 -1
  42. package/dist/InlineCode-3KJCBT5I.css +80 -0
  43. package/dist/Link/Link.d.ts +3 -25
  44. package/dist/Link/index.js +1 -1
  45. package/dist/{Link-Y7RHTR6F.css → Link-7AADYG2F.css} +12 -35
  46. package/dist/LinkInterstitial/index.js +2 -2
  47. package/dist/MarkdownEditor/index.js +4 -4
  48. package/dist/MentionMenu/MentionMenu.d.ts +9 -31
  49. package/dist/Menu/Menu.d.ts +9 -91
  50. package/dist/Menu/index.js +1 -1
  51. package/dist/MergeConflicts/index.js +4 -4
  52. package/dist/ObjectHeader/index.js +2 -2
  53. package/dist/OrgTable/index.js +3 -3
  54. package/dist/PropertyList/index.js +3 -3
  55. package/dist/RichEditor/index.js +1 -1
  56. package/dist/SearchTrigger/SearchTrigger.d.ts +8 -36
  57. package/dist/SearchTrigger/index.js +1 -1
  58. package/dist/{SearchTrigger-MME7NIHX.css → SearchTrigger-3HO7D6NP.css} +5 -17
  59. package/dist/SegmentedControl/index.js +3 -3
  60. package/dist/ShareDialog/index.js +1 -1
  61. package/dist/SheetColumnEditor/index.js +5 -5
  62. package/dist/SheetGrid/index.js +2 -2
  63. package/dist/SlideFilmstrip/index.js +2 -2
  64. package/dist/TableCells/index.js +2 -2
  65. package/dist/Tabs/index.js +2 -2
  66. package/dist/ThemeSwitcher/index.js +4 -4
  67. package/dist/TimeRangePicker/index.js +4 -4
  68. package/dist/TreeCanvas/TreeCanvas.d.ts +50 -248
  69. package/dist/TreeCanvas/index.js +2 -2
  70. package/dist/TreeGrid/index.js +2 -2
  71. package/dist/VersionCompare/index.js +4 -4
  72. package/dist/{chunk-O43SIR3W.js → chunk-3QQ3QHQR.js} +1 -1
  73. package/dist/{chunk-MZV45HQB.js → chunk-3T6URIXM.js} +1 -1
  74. package/dist/{chunk-H2QSDZTX.js → chunk-3ZURIGQ7.js} +1 -1
  75. package/dist/{chunk-KQFOPY2P.js → chunk-4H577HEE.js} +1 -1
  76. package/dist/{chunk-3WSDAVE6.js → chunk-5PAABHF7.js} +1 -1
  77. package/dist/{chunk-3DAIOPAV.js → chunk-63NULHGF.js} +1 -1
  78. package/dist/{chunk-NFA7CSCD.js → chunk-6BMPVSUB.js} +1 -1
  79. package/dist/{chunk-JY6WSDUG.js → chunk-AIQHJ2HF.js} +1 -1
  80. package/dist/{chunk-M32NBSS7.js → chunk-B2RTWEZZ.js} +4 -6
  81. package/dist/{chunk-3P24SMTI.js → chunk-B5MCTPXL.js} +1 -1
  82. package/dist/{chunk-V2FD4RPS.js → chunk-BGPHGCDT.js} +1 -1
  83. package/dist/{chunk-QNDXLHBO.js → chunk-CN2EDXAW.js} +1 -1
  84. package/dist/{chunk-MNACKUBB.js → chunk-CX4JXBS3.js} +2 -2
  85. package/dist/{chunk-NLGRDKCK.js → chunk-EPH5EPKN.js} +2 -2
  86. package/dist/{chunk-AKCIF6XN.js → chunk-FEJVDORA.js} +1 -1
  87. package/dist/{chunk-PFTUWDZN.js → chunk-FIH5EMJF.js} +1 -1
  88. package/dist/{chunk-OWYIRWEX.js → chunk-FMRRKLNX.js} +1 -1
  89. package/dist/{chunk-QM2QFKIA.js → chunk-FVXNR63H.js} +2 -2
  90. package/dist/{chunk-2AKVGQ73.js → chunk-GDBROEQ5.js} +1 -1
  91. package/dist/{chunk-NMBGVHGQ.js → chunk-GSLN7WL2.js} +2 -2
  92. package/dist/{chunk-KMIS2R67.js → chunk-HJAX4356.js} +1 -1
  93. package/dist/{chunk-WLCPN22T.js → chunk-HKYLPYVF.js} +1 -1
  94. package/dist/{chunk-Q4JX6UO7.js → chunk-HMEFWPAA.js} +3 -7
  95. package/dist/{chunk-OVFB63RZ.js → chunk-JANUABBT.js} +3 -5
  96. package/dist/{chunk-AIYSPVVZ.js → chunk-JDRBZYIA.js} +1 -1
  97. package/dist/{chunk-7FSIBX4S.js → chunk-JG66SXCX.js} +1 -1
  98. package/dist/{chunk-D2KJ5GQC.js → chunk-N2DCSSYC.js} +2 -2
  99. package/dist/{chunk-2TZNTPF5.js → chunk-NDWXVEY6.js} +2 -4
  100. package/dist/{chunk-QFE6T6GW.js → chunk-P4QAS5TS.js} +1 -1
  101. package/dist/{chunk-JKFA2F7J.js → chunk-R4YUMULC.js} +1 -1
  102. package/dist/{chunk-E3AFQTWT.js → chunk-SRPV3EAJ.js} +1 -1
  103. package/dist/{chunk-K5WTII2H.js → chunk-U67UM3VS.js} +1 -1
  104. package/dist/{chunk-RMGPZQVJ.js → chunk-UTKI2SAM.js} +1 -1
  105. package/dist/{chunk-KUECTV2P.js → chunk-W443OSWT.js} +1 -1
  106. package/dist/{chunk-XHNV272L.js → chunk-W4UJWFCZ.js} +1 -1
  107. package/dist/{chunk-EGHOU7U2.js → chunk-WGAEHKGW.js} +5 -12
  108. package/dist/{chunk-3DGNF2EH.js → chunk-XGZXKG53.js} +2 -2
  109. package/dist/{chunk-MNVIIZQP.js → chunk-YADYQHHW.js} +2 -5
  110. package/dist/{chunk-Y7FPSBCN.js → chunk-YBOGOTYV.js} +1 -1
  111. package/dist/{chunk-ECOWCJHQ.js → chunk-YTDZY3PY.js} +1 -1
  112. package/dist/{chunk-6POROC4M.js → chunk-ZO3MXMAC.js} +1 -1
  113. package/dist/generated/index.js +54 -54
  114. package/dist/index.js +54 -54
  115. package/dist/styles.css +188 -696
  116. package/dist/utils/pathBreaks.d.ts +3 -8
  117. package/package.json +3 -3
  118. package/dist/InlineCode-BEYQFJQT.css +0 -106
@@ -1,12 +1,7 @@
1
1
  import { type ReactNode } from 'react';
2
2
  /**
3
- * A path's or an address's words with a break opportunity after every `/`,
4
- * so a line that cannot hold it ends at a separator ("…/v1/" then "reports")
5
- * rather than wherever the pixels ran out ("…/v1/report" then "s"). A browser
6
- * offers none inside `https://example.com/a/b`: to a line breaker the whole
7
- * address is one word, so without these it breaks mid-name.
8
- *
9
- * Only plain text is split; anything else is handed back as given. A `<wbr>`
10
- * adds no character, so a copy of the words is the words.
3
+ * A path's or address's words with a `<wbr>` after every `/`, so a long one
4
+ * breaks at a separator rather than mid-name. Only plain text is split, and a
5
+ * copy of the words is unchanged.
11
6
  */
12
7
  export declare function pathBreaks(children: ReactNode): ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewlethq/ui",
3
- "version": "0.131.0",
3
+ "version": "0.131.1",
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.131.0",
46
- "@crewlethq/tokens": "0.131.0",
45
+ "@crewlethq/icons": "0.131.1",
46
+ "@crewlethq/tokens": "0.131.1",
47
47
  "prosemirror-commands": "1.7.2",
48
48
  "prosemirror-gapcursor": "1.4.1",
49
49
  "prosemirror-history": "1.5.1",
@@ -1,106 +0,0 @@
1
- /*
2
- * One identifier inside a sentence: a mono chip on the inset surface.
3
- *
4
- * The size is relative (0.92em) rather than a step off the scale, because the
5
- * chip has to sit inside whatever register its sentence is set in. A fixed
6
- * size makes it either a shout inside a caption or a whisper inside a lead.
7
- */
8
-
9
- .crewlet-inline-code {
10
- /*
11
- * RELATIVE, so it is deliberately not a step off the type scale: the chip
12
- * sits inside whatever register its sentence is set in, and an absolute size
13
- * makes it a shout inside a caption or a whisper inside a lead. The mono
14
- * face also runs larger than the sans at the same nominal size, which is
15
- * what the reduction corrects.
16
- */
17
- --crewlet-inline-code-size: 0.92em;
18
- font-family: var(--font-family-mono);
19
- /* An identifier is read character by character; a ligature joins two of them
20
- into a drawing of something nobody typed. */
21
- font-variant-ligatures: none;
22
- font-size: var(--crewlet-inline-code-size);
23
- background: var(--color-surface-inset);
24
- border-radius: var(--radius-xs);
25
- padding: 1px var(--spacing-1);
26
- color: var(--color-text-secondary);
27
- /* A URL IS ONE UNBREAKABLE WORD to a line breaker. The component offers a
28
- break after every `/` (`pathBreaks`); this is the last resort, for one run
29
- between them that no line can hold, which would otherwise push the chip
30
- past its box. */
31
- overflow-wrap: anywhere;
32
- /* SLICED where it breaks, not cloned: a browser leaves a cloned inset out of
33
- line breaking, so each broken line ran up to the inset past its box. */
34
- box-decoration-break: slice;
35
- }
36
-
37
- /*
38
- * A `${NAME}` pointer. It is one token a reader copies, so `${` and `}` are
39
- * held to the name's first and last characters. THE SAME INK AS ANY OTHER
40
- * CHIP: drawn a step quieter, it read as decoration rather than as the thing
41
- * an operator has to type back.
42
- *
43
- * THE NAME ITSELF MAY BREAK. Held whole, a long name ran past a dialog at a
44
- * phone's width. It offers no break of its own, so the chip still moves to
45
- * the next line whole where it fits there, and breaks only where it does not.
46
- */
47
- .crewlet-inline-code__end {
48
- white-space: nowrap;
49
- }
50
-
51
- /*
52
- * Inside a Callout or a field error the chip carries that message's ink, or a
53
- * calm grey identifier sits in the middle of an alarming sentence.
54
- *
55
- * ONLY THE INK. The chip keeps its own ground and its own inset, because they
56
- * are what says "this is a string you type", and a bare run of monospace
57
- * inside a sentence is not that. The composite the message's ink then lands on
58
- * is measured: @crewlethq/tokens' palette suite holds every status ink to
59
- * 4.5:1 on the inset well drawn over its own callout tint, and the tightest
60
- * pair is 4.61:1.
61
- */
62
- .crewlet-inline-code--inherit {
63
- color: inherit;
64
- }
65
-
66
- /*
67
- * THE GROUND HUGS THE PUNCTUATION AROUND IT. The inset either side of the
68
- * words is what reads as a space between "set" and its full stop: "crewlet
69
- * secrets set ." Beside a mark the caller handed over (`open`, `close`) the
70
- * ground keeps a hair of it, so the mark sits where it would after a word.
71
- */
72
- .crewlet-inline-code--opened {
73
- padding-inline-start: 1px;
74
- }
75
-
76
- .crewlet-inline-code--closed {
77
- padding-inline-end: 1px;
78
- }
79
-
80
- /* A whole chip and the punctuation around it are one atomic box, so a line
81
- never breaks between "(" and the chip (peelPunctuation). */
82
- .crewlet-inline-code-bound {
83
- display: inline-block;
84
- max-width: 100%;
85
- overflow-wrap: anywhere;
86
- }
87
-
88
- /*
89
- * A short token read as one: an atomic box that moves to the next line whole,
90
- * and breaks inside only where no line can hold it (a nested list, a cell).
91
- * `line-height: normal` gives the box the running chip's own height.
92
- */
93
- .crewlet-inline-code--whole {
94
- display: inline-block;
95
- max-width: 100%;
96
- line-height: normal;
97
- }
98
-
99
- .crewlet-inline-code--truncate {
100
- display: inline-block;
101
- max-width: 100%;
102
- overflow: hidden;
103
- text-overflow: ellipsis;
104
- white-space: nowrap;
105
- vertical-align: bottom;
106
- }