@crewlethq/ui 0.131.0 → 0.131.2
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/AppShell/AppShell.d.ts +47 -196
- package/dist/AppShell/index.js +2 -2
- package/dist/{AppShell-N5IHITJM.css → AppShell-RPILZZW5.css} +109 -431
- package/dist/ArtifactBar/index.js +4 -4
- package/dist/ArtifactCard/ArtifactCard.d.ts +13 -39
- package/dist/ArtifactCard/index.js +1 -1
- package/dist/{ArtifactCard-ZH6KCD5O.css → ArtifactCard-PWMC7RAY.css} +15 -49
- package/dist/ArtifactMakeRow/ArtifactMakeRow.d.ts +3 -16
- package/dist/AvatarPicker/index.js +5 -5
- package/dist/BrandSample/index.js +1 -1
- package/dist/{BrandSample-3OSKZAGG.css → BrandSample-WSBT7FQ5.css} +5 -25
- package/dist/Breadcrumb/Breadcrumb.d.ts +5 -41
- package/dist/Breadcrumb/index.js +1 -1
- package/dist/{Breadcrumb-MQJWJVN3.css → Breadcrumb-JDBQXPR5.css} +12 -58
- package/dist/Canvas/Canvas.d.ts +52 -228
- package/dist/Canvas/geometry.d.ts +31 -139
- package/dist/Canvas/index.js +1 -1
- package/dist/CanvasBoard/index.js +3 -3
- package/dist/CanvasToolbar/index.js +2 -2
- package/dist/CodeBlock/index.js +1 -1
- package/dist/ColorSwatch/index.js +2 -2
- package/dist/CommentThread/CommentThread.d.ts +3 -21
- package/dist/CommentThread/index.js +1 -1
- package/dist/{CommentThread-544KCZT7.css → CommentThread-YU6VSVS4.css} +2 -4
- package/dist/Composer/Composer.d.ts +17 -54
- package/dist/ConfirmField/index.js +2 -2
- package/dist/ContrastBadge/index.js +2 -2
- package/dist/ContrastHelp/index.js +3 -3
- package/dist/Copyable/Copyable.d.ts +2 -11
- package/dist/Copyable/index.js +1 -1
- package/dist/{Copyable-XMLKKJDT.css → Copyable-U3UJL3BP.css} +9 -32
- package/dist/DataGrid/DataGrid.d.ts +46 -136
- package/dist/DataGrid/index.js +1 -1
- package/dist/DataTable/index.js +2 -2
- package/dist/DataView/index.js +3 -3
- package/dist/DocTabsEditor/index.js +2 -2
- package/dist/{Editor-MEPTWBY5.js → Editor-HDHT5BX2.js} +2 -2
- package/dist/GraphCanvas/GraphCanvas.d.ts +22 -79
- package/dist/GraphCanvas/index.js +2 -2
- package/dist/GraphCanvas/layout.d.ts +10 -35
- package/dist/HuePicker/index.js +4 -4
- package/dist/InlineCode/InlineCode.d.ts +7 -28
- package/dist/InlineCode/index.js +1 -1
- package/dist/InlineCode-3KJCBT5I.css +80 -0
- package/dist/Link/Link.d.ts +3 -25
- package/dist/Link/index.js +1 -1
- package/dist/{Link-Y7RHTR6F.css → Link-7AADYG2F.css} +12 -35
- package/dist/LinkInterstitial/index.js +2 -2
- package/dist/LogoSlot/index.js +3 -3
- package/dist/MarkdownEditor/index.js +4 -4
- package/dist/MentionMenu/MentionMenu.d.ts +9 -31
- package/dist/Menu/Menu.d.ts +9 -91
- package/dist/Menu/index.js +1 -1
- package/dist/MergeConflicts/index.js +4 -4
- package/dist/ObjectHeader/index.js +2 -2
- package/dist/OrgTable/index.js +3 -3
- package/dist/PresenterView/index.js +2 -2
- package/dist/PropertyList/index.js +3 -3
- package/dist/RailList/index.js +3 -3
- package/dist/RichEditor/index.js +1 -1
- package/dist/SearchTrigger/SearchTrigger.d.ts +8 -36
- package/dist/SearchTrigger/index.js +1 -1
- package/dist/{SearchTrigger-MME7NIHX.css → SearchTrigger-3HO7D6NP.css} +5 -17
- package/dist/SegmentedControl/index.js +3 -3
- package/dist/Select/Select.d.ts +6 -0
- package/dist/Select/index.js +1 -1
- package/dist/{Select-AF5YMSC6.css → Select-2FAOIL73.css} +64 -6
- package/dist/ShareDialog/index.js +3 -3
- package/dist/SheetColumnEditor/index.js +6 -6
- package/dist/SheetGrid/index.js +2 -2
- package/dist/SlideFilmstrip/index.js +2 -2
- package/dist/TableCells/index.js +2 -2
- package/dist/Tabs/index.js +2 -2
- package/dist/ThemeSwitcher/index.js +4 -4
- package/dist/TimeRangePicker/index.js +4 -4
- package/dist/TimeWindowPicker/index.js +2 -2
- package/dist/TreeCanvas/TreeCanvas.d.ts +50 -248
- package/dist/TreeCanvas/index.js +2 -2
- package/dist/TreeGrid/index.js +2 -2
- package/dist/ValueField/index.js +2 -2
- package/dist/VersionCompare/index.js +4 -4
- package/dist/{chunk-O43SIR3W.js → chunk-3QQ3QHQR.js} +1 -1
- package/dist/{chunk-MZV45HQB.js → chunk-3T6URIXM.js} +1 -1
- package/dist/{chunk-H2QSDZTX.js → chunk-3ZURIGQ7.js} +1 -1
- package/dist/{chunk-KQFOPY2P.js → chunk-4H577HEE.js} +1 -1
- package/dist/{chunk-3WSDAVE6.js → chunk-5PAABHF7.js} +1 -1
- package/dist/{chunk-3DAIOPAV.js → chunk-63NULHGF.js} +1 -1
- package/dist/{chunk-NFA7CSCD.js → chunk-6BMPVSUB.js} +1 -1
- package/dist/{chunk-GQPKDPMS.js → chunk-6W5D4A3V.js} +1 -1
- package/dist/{chunk-WZ5TDJ2K.js → chunk-7GFLKLCG.js} +1 -1
- package/dist/{chunk-JY6WSDUG.js → chunk-AIQHJ2HF.js} +1 -1
- package/dist/{chunk-M32NBSS7.js → chunk-B2RTWEZZ.js} +4 -6
- package/dist/{chunk-3P24SMTI.js → chunk-B5MCTPXL.js} +1 -1
- package/dist/{chunk-V2FD4RPS.js → chunk-BGPHGCDT.js} +1 -1
- package/dist/{chunk-QNDXLHBO.js → chunk-CN2EDXAW.js} +1 -1
- package/dist/{chunk-NLGRDKCK.js → chunk-EPH5EPKN.js} +2 -2
- package/dist/{chunk-AKCIF6XN.js → chunk-FEJVDORA.js} +1 -1
- package/dist/{chunk-PFTUWDZN.js → chunk-FIH5EMJF.js} +1 -1
- package/dist/{chunk-OWYIRWEX.js → chunk-FMRRKLNX.js} +1 -1
- package/dist/{chunk-QM2QFKIA.js → chunk-FVXNR63H.js} +2 -2
- package/dist/{chunk-2AKVGQ73.js → chunk-GDBROEQ5.js} +1 -1
- package/dist/{chunk-NMBGVHGQ.js → chunk-GSLN7WL2.js} +2 -2
- package/dist/{chunk-KMIS2R67.js → chunk-HJAX4356.js} +1 -1
- package/dist/{chunk-WLCPN22T.js → chunk-HKYLPYVF.js} +1 -1
- package/dist/{chunk-Q4JX6UO7.js → chunk-HMEFWPAA.js} +3 -7
- package/dist/{chunk-OVFB63RZ.js → chunk-JANUABBT.js} +3 -5
- package/dist/{chunk-AIYSPVVZ.js → chunk-JDRBZYIA.js} +1 -1
- package/dist/{chunk-7FSIBX4S.js → chunk-JG66SXCX.js} +1 -1
- package/dist/{chunk-SIL5WE55.js → chunk-LPQF7Z44.js} +1 -1
- package/dist/{chunk-D2KJ5GQC.js → chunk-N2DCSSYC.js} +2 -2
- package/dist/{chunk-2TZNTPF5.js → chunk-NDWXVEY6.js} +2 -4
- package/dist/{chunk-4Q7AWZ6O.js → chunk-OIC6S5ES.js} +1 -1
- package/dist/{chunk-6ZFQ6TAM.js → chunk-OU22GKZK.js} +32 -18
- package/dist/{chunk-QFE6T6GW.js → chunk-P4QAS5TS.js} +1 -1
- package/dist/{chunk-JKFA2F7J.js → chunk-R4YUMULC.js} +1 -1
- package/dist/{chunk-E3AFQTWT.js → chunk-SRPV3EAJ.js} +1 -1
- package/dist/{chunk-QDXSBVZR.js → chunk-TBNA64RD.js} +2 -2
- package/dist/{chunk-K5WTII2H.js → chunk-U67UM3VS.js} +1 -1
- package/dist/{chunk-RMGPZQVJ.js → chunk-UTKI2SAM.js} +1 -1
- package/dist/{chunk-KUECTV2P.js → chunk-W443OSWT.js} +1 -1
- package/dist/{chunk-XHNV272L.js → chunk-W4UJWFCZ.js} +1 -1
- package/dist/{chunk-EGHOU7U2.js → chunk-WGAEHKGW.js} +5 -12
- package/dist/{chunk-MNACKUBB.js → chunk-WIGJ4J5U.js} +3 -3
- package/dist/{chunk-32QLSXKL.js → chunk-WWCQDCH5.js} +1 -1
- package/dist/{chunk-3DGNF2EH.js → chunk-XGZXKG53.js} +2 -2
- package/dist/{chunk-MNVIIZQP.js → chunk-YADYQHHW.js} +2 -5
- package/dist/{chunk-Y7FPSBCN.js → chunk-YBOGOTYV.js} +1 -1
- package/dist/{chunk-ECOWCJHQ.js → chunk-YTDZY3PY.js} +1 -1
- package/dist/{chunk-6POROC4M.js → chunk-ZO3MXMAC.js} +1 -1
- package/dist/generated/index.js +78 -78
- package/dist/index.js +78 -78
- package/dist/styles.css +253 -703
- package/dist/utils/pathBreaks.d.ts +3 -8
- package/package.json +3 -3
- package/dist/InlineCode-BEYQFJQT.css +0 -106
- package/dist/{chunk-HERJFKPF.js → chunk-AF3F35DQ.js} +1 -1
- package/dist/{chunk-3YOLD7WG.js → chunk-F7NHMBGJ.js} +1 -1
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
/**
|
|
3
|
-
* A path's or
|
|
4
|
-
*
|
|
5
|
-
*
|
|
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.
|
|
3
|
+
"version": "0.131.2",
|
|
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.
|
|
46
|
-
"@crewlethq/tokens": "0.131.
|
|
45
|
+
"@crewlethq/icons": "0.131.2",
|
|
46
|
+
"@crewlethq/tokens": "0.131.2",
|
|
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
|
-
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SlideNav } from './chunk-MZNOVME7.js';
|
|
2
1
|
import { SlideStage, SLIDE_WIDTH, SLIDE_HEIGHT } from './chunk-7O53SWKI.js';
|
|
2
|
+
import { SlideNav } from './chunk-MZNOVME7.js';
|
|
3
3
|
import { Eyebrow } from './chunk-RK4XPHVG.js';
|
|
4
4
|
import { Button } from './chunk-M2M6ZD7P.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { normalizeHex } from './chunk-7W3LYIOC.js';
|
|
2
1
|
import { Tag } from './chunk-SJ3EUCFD.js';
|
|
2
|
+
import { normalizeHex } from './chunk-7W3LYIOC.js';
|
|
3
3
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
4
4
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
5
|
import './ContrastBadge-CBZPGG3G.css';
|