@crewlethq/ui 0.43.0 → 0.45.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.
- package/README.md +22 -2
- package/dist/AccessDeniedCard/index.js +2 -2
- package/dist/AgentHandoffPanel/index.js +2 -2
- package/dist/ArrangeFrame/index.js +2 -2
- package/dist/ArrangeList/index.js +1 -1
- package/dist/ArtifactCard/index.js +3 -3
- package/dist/AsideLayout/AsideLayout.d.ts +24 -0
- package/dist/AsideLayout/index.d.ts +3 -0
- package/dist/AsideLayout/index.js +2 -0
- package/dist/AsideLayout-TH5SQZNK.css +45 -0
- package/dist/AvatarPicker/index.js +3 -3
- package/dist/CatalogTile/CatalogTile.d.ts +12 -1
- package/dist/CatalogTile/index.d.ts +1 -1
- package/dist/CatalogTile/index.js +1 -1
- package/dist/{CatalogTile-XL4XLFUH.css → CatalogTile-VPSLCKJE.css} +55 -0
- package/dist/CharacterPicker/index.js +2 -2
- package/dist/DataGrid/index.js +2 -2
- package/dist/DataView/index.js +3 -3
- package/dist/DatasetSource/index.js +1 -1
- package/dist/DirectoryList/DirectoryList.d.ts +9 -4
- package/dist/DirectoryList/index.js +1 -1
- package/dist/{DirectoryList-EESYMH2U.css → DirectoryList-7OXXN47X.css} +30 -7
- package/dist/DocTabsEditor/index.js +1 -1
- package/dist/EmptyState/EmptyState.d.ts +9 -2
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-C6HRBGT7.css → EmptyState-7L4UAQBX.css} +34 -0
- package/dist/LinkInterstitial/index.js +2 -2
- package/dist/ListInput/index.js +2 -2
- package/dist/Section/Section.d.ts +6 -0
- package/dist/Section/index.js +1 -1
- package/dist/{Section-O5AHGSOG.css → Section-M7SG6NP2.css} +14 -0
- package/dist/SheetGrid/index.js +5 -5
- package/dist/SlideFilmstrip/index.js +1 -1
- package/dist/Statement/Statement.d.ts +45 -0
- package/dist/Statement/index.d.ts +3 -0
- package/dist/Statement/index.js +4 -0
- package/dist/Statement-M4QDXIMO.css +53 -0
- package/dist/Switcher/index.js +2 -2
- package/dist/TableCells/index.js +1 -1
- package/dist/TagsInput/index.js +2 -2
- package/dist/VersionCompare/index.js +2 -2
- package/dist/{chunk-XIDD7PJO.js → chunk-2MYSESZF.js} +1 -1
- package/dist/{chunk-SJ6DMG4R.js → chunk-4AA6WPQU.js} +1 -1
- package/dist/{chunk-PCT47E7O.js → chunk-5GNA4RKP.js} +36 -1
- package/dist/{chunk-3TFDQLW3.js → chunk-JQ7IFSF6.js} +1 -1
- package/dist/chunk-KY65C4XS.js +12 -0
- package/dist/chunk-MZJKPTA5.js +36 -0
- package/dist/{chunk-BO7Q6JP6.js → chunk-N3SHQ3VU.js} +1 -1
- package/dist/{chunk-RA2ULG6H.js → chunk-PPUR46MK.js} +10 -1
- package/dist/{chunk-PLLYOPS4.js → chunk-Q7HLZH32.js} +1 -1
- package/dist/{chunk-KV3ODJXH.js → chunk-QTMUKRTN.js} +1 -1
- package/dist/{chunk-IUQQGIHL.js → chunk-U44WGRFW.js} +1 -1
- package/dist/generated/index.d.ts +2 -0
- package/dist/generated/index.js +62 -60
- package/dist/index.js +62 -60
- package/dist/styles.css +241 -11
- package/package.json +3 -3
- package/dist/{chunk-VXCT6L3F.js → chunk-6IPEPSB5.js} +0 -0
- package/dist/{chunk-UAGDFEBG.js → chunk-KKUJSMLF.js} +1 -1
- package/dist/{chunk-524GGA67.js → chunk-NF6SWHQI.js} +1 -1
- package/dist/{chunk-Z5WMCBHR.js → chunk-NMYGJJJK.js} +1 -1
- package/dist/{chunk-U2XAJONO.js → chunk-OKE5YSLD.js} +1 -1
- package/dist/{chunk-OVHJTOKW.js → chunk-OWIGEE2Y.js} +2 -2
- package/dist/{chunk-VZICPYGR.js → chunk-SNQRGH4A.js} +1 -1
- package/dist/{chunk-IVAR7NRW.js → chunk-SXBJMBSV.js} +1 -1
- package/dist/{chunk-LKBZV5IT.js → chunk-VWYT3GVV.js} +1 -1
- package/dist/{chunk-NCM73C34.js → chunk-Y4GXCKOC.js} +2 -2
package/dist/SheetGrid/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export { CellDisplay, CellEditor, CheckboxCell, DateCell, LongTextCell, MultiSelectCell, NumberCell, PersonCell, RatingCell, SelectCell, SheetCell, SheetGrid, StatusCell, TextCell, UrlCell } from '../chunk-
|
|
1
|
+
export { CellDisplay, CellEditor, CheckboxCell, DateCell, LongTextCell, MultiSelectCell, NumberCell, PersonCell, RatingCell, SelectCell, SheetCell, SheetGrid, StatusCell, TextCell, UrlCell } from '../chunk-OWIGEE2Y.js';
|
|
2
2
|
import '../chunk-O2EGEONV.js';
|
|
3
3
|
import '../chunk-CENOOTAV.js';
|
|
4
|
+
import '../chunk-KYIAFNU7.js';
|
|
4
5
|
import '../chunk-3BYIWOTV.js';
|
|
5
6
|
import '../chunk-I6POAB4V.js';
|
|
6
|
-
import '../chunk-KYIAFNU7.js';
|
|
7
7
|
import '../chunk-66X5WDKE.js';
|
|
8
8
|
import '../chunk-LFSIKGRQ.js';
|
|
9
9
|
import '../chunk-Z7JYG5TF.js';
|
|
10
10
|
import '../chunk-KHJIEPZV.js';
|
|
11
11
|
import '../chunk-AYKXMIOR.js';
|
|
12
|
-
import '../chunk-5AQBPHZD.js';
|
|
13
|
-
import '../chunk-PZKHBB7D.js';
|
|
14
12
|
import '../chunk-WIATRXEJ.js';
|
|
15
13
|
import '../chunk-I33UIUZD.js';
|
|
14
|
+
import '../chunk-5AQBPHZD.js';
|
|
15
|
+
import '../chunk-PZKHBB7D.js';
|
|
16
|
+
import '../chunk-RSAQOKH3.js';
|
|
16
17
|
import '../chunk-PCI7ZJ6Z.js';
|
|
17
18
|
import '../chunk-OMV5W53A.js';
|
|
18
19
|
import '../chunk-H5XTJ7GJ.js';
|
|
19
20
|
import '../chunk-OG6CL3EB.js';
|
|
20
21
|
import '../chunk-LACA4JGC.js';
|
|
21
22
|
import '../chunk-NUZHC6MM.js';
|
|
22
|
-
import '../chunk-RSAQOKH3.js';
|
|
23
23
|
import '../chunk-BZFWDIV6.js';
|
|
24
24
|
import '../chunk-ODEQTPFM.js';
|
|
@@ -2,12 +2,12 @@ export { SlideFilmstrip } from '../chunk-MCOC3KQA.js';
|
|
|
2
2
|
import '../chunk-RMEBFYL7.js';
|
|
3
3
|
import '../chunk-XJ2QEBMM.js';
|
|
4
4
|
import '../chunk-SMBKXWML.js';
|
|
5
|
+
import '../chunk-RSAQOKH3.js';
|
|
5
6
|
import '../chunk-PCI7ZJ6Z.js';
|
|
6
7
|
import '../chunk-OMV5W53A.js';
|
|
7
8
|
import '../chunk-H5XTJ7GJ.js';
|
|
8
9
|
import '../chunk-OG6CL3EB.js';
|
|
9
10
|
import '../chunk-LACA4JGC.js';
|
|
10
11
|
import '../chunk-NUZHC6MM.js';
|
|
11
|
-
import '../chunk-RSAQOKH3.js';
|
|
12
12
|
import '../chunk-BZFWDIV6.js';
|
|
13
13
|
import '../chunk-ODEQTPFM.js';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
import { type HeadingLevel } from '../utils/headingLevel.js';
|
|
3
|
+
/** What a statement says while nobody has written it, with the way to write it. */
|
|
4
|
+
export interface StatementEmpty {
|
|
5
|
+
/** "No mission yet". */
|
|
6
|
+
title: ReactNode;
|
|
7
|
+
/** What the statement is for, so the reader knows why to write it. */
|
|
8
|
+
description: ReactNode;
|
|
9
|
+
/** The one control that writes it: "Add a mission". */
|
|
10
|
+
action?: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export interface StatementProps extends Omit<HTMLAttributes<HTMLElement>, 'title' | 'children'> {
|
|
13
|
+
/** What the statement is: "Mission", "Vision". Its heading. */
|
|
14
|
+
label: ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* The statement itself. TEXT is set as the statement, a step over the body
|
|
17
|
+
* at the reading measure with its author's line breaks kept; a BLOCK (a
|
|
18
|
+
* numbered list of policies, a card) is drawn as given under the same
|
|
19
|
+
* label, so every statement on a page heads the same way. Absent, null or
|
|
20
|
+
* an empty string is a statement nobody has written, and `empty` is said in
|
|
21
|
+
* its place.
|
|
22
|
+
*/
|
|
23
|
+
children?: ReactNode;
|
|
24
|
+
/**
|
|
25
|
+
* REQUIRED: an unwritten statement is said as one, never drawn as a grey
|
|
26
|
+
* value standing where the statement would.
|
|
27
|
+
*/
|
|
28
|
+
empty: StatementEmpty;
|
|
29
|
+
/** The heading's level. Taken from where the statement sits by default. */
|
|
30
|
+
headingLevel?: HeadingLevel | undefined;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* One statement a company or a team makes about itself: its mission, its
|
|
34
|
+
* vision, a goal. A label over the words, set larger than the body at a
|
|
35
|
+
* reading measure, because these are the sentences a page exists to say.
|
|
36
|
+
*
|
|
37
|
+
* NOT A KEY AND A VALUE. In a description list a mission weighs what a time
|
|
38
|
+
* zone weighs; a statement is read, not looked up. And an unwritten one is an
|
|
39
|
+
* inline empty state with its own way to write it, rather than placeholder
|
|
40
|
+
* text in the value's place that reads as if somebody wrote it.
|
|
41
|
+
*
|
|
42
|
+
* A REGION NAMED BY ITS LABEL, so a reader moving by landmark or heading
|
|
43
|
+
* hears "Mission" and then the mission.
|
|
44
|
+
*/
|
|
45
|
+
export declare function Statement({ label, children, empty, headingLevel, className, ...rest }: StatementProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Statement: a label over the words a page exists to say (Statement.tsx).
|
|
3
|
+
*
|
|
4
|
+
* THE LABEL IS THE MICRO REGISTER and the words are a step over the body, at
|
|
5
|
+
* the reading measure, so the statement outweighs everything around it and a
|
|
6
|
+
* line of it is one an eye can follow back.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
.crewlet-statement {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
gap: var(--spacing-2);
|
|
13
|
+
margin: 0;
|
|
14
|
+
min-width: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.crewlet-statement__label {
|
|
18
|
+
margin: 0;
|
|
19
|
+
font-size: var(--font-size-2xs);
|
|
20
|
+
font-weight: var(--font-weight-medium);
|
|
21
|
+
letter-spacing: var(--font-letter-spacing-wide);
|
|
22
|
+
line-height: var(--font-line-height-snug);
|
|
23
|
+
text-transform: uppercase;
|
|
24
|
+
color: var(--color-text-tertiary);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* THE AUTHOR'S OWN LINE BREAKS are kept, and no word stands alone on the last
|
|
28
|
+
line. A long word (an address, a product name) breaks rather than widening
|
|
29
|
+
the column. */
|
|
30
|
+
.crewlet-statement__text {
|
|
31
|
+
margin: 0;
|
|
32
|
+
max-width: var(--size-measure);
|
|
33
|
+
font-size: var(--font-size-lg);
|
|
34
|
+
line-height: var(--font-line-height-relaxed);
|
|
35
|
+
color: var(--color-text-primary);
|
|
36
|
+
white-space: pre-wrap;
|
|
37
|
+
overflow-wrap: anywhere;
|
|
38
|
+
text-wrap: pretty;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* A BLOCK under the label is drawn as given: its own register, the column's
|
|
42
|
+
width. */
|
|
43
|
+
.crewlet-statement__body {
|
|
44
|
+
min-width: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* ON A PHONE the words step down to the body's own step over it, so a
|
|
48
|
+
mission is a paragraph rather than a poster. */
|
|
49
|
+
@media (width < 640px) {
|
|
50
|
+
.crewlet-statement__text {
|
|
51
|
+
font-size: var(--font-size-md);
|
|
52
|
+
}
|
|
53
|
+
}
|
package/dist/Switcher/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Switcher } from '../chunk-
|
|
1
|
+
export { Switcher } from '../chunk-NF6SWHQI.js';
|
|
2
2
|
import '../chunk-FYINAYAJ.js';
|
|
3
3
|
import '../chunk-7KHM2FZH.js';
|
|
4
4
|
import '../chunk-KHJIEPZV.js';
|
|
@@ -6,12 +6,12 @@ import '../chunk-FYTIJM2T.js';
|
|
|
6
6
|
import '../chunk-TEUQWOWZ.js';
|
|
7
7
|
import '../chunk-ZI5G5RS7.js';
|
|
8
8
|
import '../chunk-PQADV6P6.js';
|
|
9
|
+
import '../chunk-RSAQOKH3.js';
|
|
9
10
|
import '../chunk-RTPQDNW3.js';
|
|
10
11
|
import '../chunk-OMV5W53A.js';
|
|
11
12
|
import '../chunk-H5XTJ7GJ.js';
|
|
12
13
|
import '../chunk-OG6CL3EB.js';
|
|
13
14
|
import '../chunk-LACA4JGC.js';
|
|
14
15
|
import '../chunk-NUZHC6MM.js';
|
|
15
|
-
import '../chunk-RSAQOKH3.js';
|
|
16
16
|
import '../chunk-BZFWDIV6.js';
|
|
17
17
|
import '../chunk-ODEQTPFM.js';
|
package/dist/TableCells/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export { TABLE_TAGS_CELL_LABELS, TableDateCell, TableEntityCell, TableKeyCell, TableNumberCell, TableStatusCell, TableTagsCell, TableTextCell } from '../chunk-4BJK7FE5.js';
|
|
2
2
|
import '../chunk-FBSEJO2C.js';
|
|
3
3
|
import '../chunk-KYIAFNU7.js';
|
|
4
|
+
import '../chunk-WIATRXEJ.js';
|
|
4
5
|
import '../chunk-3CZ7XAVY.js';
|
|
5
6
|
import '../chunk-EUCC37WY.js';
|
|
6
7
|
import '../chunk-5AQBPHZD.js';
|
|
7
8
|
import '../chunk-PZKHBB7D.js';
|
|
8
|
-
import '../chunk-WIATRXEJ.js';
|
|
9
9
|
import '../chunk-BZFWDIV6.js';
|
|
10
10
|
import '../chunk-ODEQTPFM.js';
|
package/dist/TagsInput/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { TagsInput } from '../chunk-
|
|
1
|
+
export { TagsInput } from '../chunk-SXBJMBSV.js';
|
|
2
2
|
import '../chunk-KYIAFNU7.js';
|
|
3
3
|
import '../chunk-7KHM2FZH.js';
|
|
4
4
|
import '../chunk-WIATRXEJ.js';
|
|
5
|
+
import '../chunk-RSAQOKH3.js';
|
|
5
6
|
import '../chunk-OMV5W53A.js';
|
|
6
7
|
import '../chunk-H5XTJ7GJ.js';
|
|
7
8
|
import '../chunk-LACA4JGC.js';
|
|
8
9
|
import '../chunk-NUZHC6MM.js';
|
|
9
|
-
import '../chunk-RSAQOKH3.js';
|
|
10
10
|
import '../chunk-BZFWDIV6.js';
|
|
11
11
|
import '../chunk-ODEQTPFM.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { VERSION_COMPARE_LABELS, VERSION_COMPARE_LENSES, VersionCompare } from '../chunk-
|
|
1
|
+
export { VERSION_COMPARE_LABELS, VERSION_COMPARE_LENSES, VersionCompare } from '../chunk-U44WGRFW.js';
|
|
2
2
|
import '../chunk-BVWSLXTY.js';
|
|
3
3
|
import '../chunk-OOC7Q67K.js';
|
|
4
4
|
import '../chunk-BF5WV7NM.js';
|
|
5
5
|
import '../chunk-KA75QPFM.js';
|
|
6
6
|
import '../chunk-WIATRXEJ.js';
|
|
7
7
|
import '../chunk-EGMQURBR.js';
|
|
8
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-PPUR46MK.js';
|
|
9
9
|
import '../chunk-BHHIIK3M.js';
|
|
10
10
|
import '../chunk-PQADV6P6.js';
|
|
11
11
|
import '../chunk-PCI7ZJ6Z.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './DirectoryList-
|
|
3
|
+
import './DirectoryList-7OXXN47X.css';
|
|
4
4
|
import { useId } from 'react';
|
|
5
5
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './CatalogTile-
|
|
3
|
+
import './CatalogTile-VPSLCKJE.css';
|
|
4
4
|
import { useId } from 'react';
|
|
5
5
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
@@ -14,6 +14,7 @@ function CatalogTile({
|
|
|
14
14
|
meta,
|
|
15
15
|
action,
|
|
16
16
|
quiet = false,
|
|
17
|
+
density = "comfortable",
|
|
17
18
|
className,
|
|
18
19
|
...rest
|
|
19
20
|
}) {
|
|
@@ -21,6 +22,40 @@ function CatalogTile({
|
|
|
21
22
|
const Heading = headingTag(headingLevel ?? level);
|
|
22
23
|
const titleId = useId();
|
|
23
24
|
const foot = meta !== void 0 || action !== void 0;
|
|
25
|
+
if (density === "compact") {
|
|
26
|
+
return /* @__PURE__ */ jsxs(
|
|
27
|
+
Element,
|
|
28
|
+
{
|
|
29
|
+
"aria-labelledby": Element === "article" ? titleId : void 0,
|
|
30
|
+
...rest,
|
|
31
|
+
className: cx(
|
|
32
|
+
"crewlet-catalog-tile",
|
|
33
|
+
"crewlet-catalog-tile--compact",
|
|
34
|
+
quiet && "crewlet-catalog-tile--quiet",
|
|
35
|
+
className
|
|
36
|
+
),
|
|
37
|
+
children: [
|
|
38
|
+
/* @__PURE__ */ jsxs("div", { className: "crewlet-catalog-tile__head", children: [
|
|
39
|
+
/* @__PURE__ */ jsx("span", { className: "crewlet-catalog-tile__mark", "aria-hidden": "true", children: mark }),
|
|
40
|
+
/* @__PURE__ */ jsxs("span", { className: "crewlet-catalog-tile__title", children: [
|
|
41
|
+
/* @__PURE__ */ jsx(Heading, { id: titleId, className: "crewlet-catalog-tile__name", children: title }),
|
|
42
|
+
status === void 0 || status === null ? null : /* @__PURE__ */ jsx("span", { className: "crewlet-catalog-tile__status", children: status }),
|
|
43
|
+
meta === void 0 || meta === null ? null : /* @__PURE__ */ jsx("span", { className: "crewlet-catalog-tile__meta", children: meta })
|
|
44
|
+
] }),
|
|
45
|
+
action === void 0 ? null : /* @__PURE__ */ jsx("span", { className: "crewlet-catalog-tile__action", children: action })
|
|
46
|
+
] }),
|
|
47
|
+
description === void 0 ? null : /* @__PURE__ */ jsx(
|
|
48
|
+
"p",
|
|
49
|
+
{
|
|
50
|
+
className: "crewlet-catalog-tile__description",
|
|
51
|
+
title: typeof description === "string" ? description : void 0,
|
|
52
|
+
children: description
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
}
|
|
24
59
|
return /* @__PURE__ */ jsxs(
|
|
25
60
|
Element,
|
|
26
61
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useHeadingLevel, headingTag, HeadingLevelProvider, nextHeadingLevel } from './chunk-PQADV6P6.js';
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './Section-
|
|
3
|
+
import './Section-M7SG6NP2.css';
|
|
4
4
|
import { useId } from 'react';
|
|
5
5
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { cx } from './chunk-ODEQTPFM.js';
|
|
2
|
+
import './AsideLayout-TH5SQZNK.css';
|
|
3
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
function AsideLayout({ children, aside, asideLabel, className, ...rest }) {
|
|
6
|
+
return /* @__PURE__ */ jsx("div", { ...rest, className: cx("crewlet-aside-layout", className), children: /* @__PURE__ */ jsxs("div", { className: "crewlet-aside-layout__columns", children: [
|
|
7
|
+
/* @__PURE__ */ jsx("div", { className: "crewlet-aside-layout__main", children }),
|
|
8
|
+
/* @__PURE__ */ jsx("aside", { className: "crewlet-aside-layout__aside", "aria-label": asideLabel, children: aside })
|
|
9
|
+
] }) });
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { AsideLayout };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { EmptyState } from './chunk-PPUR46MK.js';
|
|
2
|
+
import { useHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
|
|
3
|
+
import { cx } from './chunk-ODEQTPFM.js';
|
|
4
|
+
import './Statement-M4QDXIMO.css';
|
|
5
|
+
import { useId } from 'react';
|
|
6
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
7
|
+
|
|
8
|
+
function Statement({ label, children, empty, headingLevel, className, ...rest }) {
|
|
9
|
+
const contextLevel = useHeadingLevel();
|
|
10
|
+
const Heading = headingTag(headingLevel ?? contextLevel);
|
|
11
|
+
const id = useId();
|
|
12
|
+
const written = !(children === void 0 || children === null || children === "" || children === false);
|
|
13
|
+
return /* @__PURE__ */ jsxs(
|
|
14
|
+
"section",
|
|
15
|
+
{
|
|
16
|
+
"aria-labelledby": id,
|
|
17
|
+
...rest,
|
|
18
|
+
className: cx("crewlet-statement", !written && "crewlet-statement--empty", className),
|
|
19
|
+
children: [
|
|
20
|
+
/* @__PURE__ */ jsx(Heading, { id, className: "crewlet-statement__label", children: label }),
|
|
21
|
+
written ? typeof children === "string" || typeof children === "number" ? /* @__PURE__ */ jsx("div", { className: "crewlet-statement__text", children }) : /* @__PURE__ */ jsx("div", { className: "crewlet-statement__body", children }) : /* @__PURE__ */ jsx(
|
|
22
|
+
EmptyState,
|
|
23
|
+
{
|
|
24
|
+
size: "inline",
|
|
25
|
+
headingLevel: "none",
|
|
26
|
+
title: empty.title,
|
|
27
|
+
description: empty.description,
|
|
28
|
+
action: empty.action
|
|
29
|
+
}
|
|
30
|
+
)
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { Statement };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Timeline } from './chunk-AUQPBL4O.js';
|
|
2
|
-
import { Section } from './chunk-
|
|
2
|
+
import { Section } from './chunk-JQ7IFSF6.js';
|
|
3
3
|
import { Disclosure } from './chunk-OGXHZHRX.js';
|
|
4
4
|
import { Composer } from './chunk-7CXGSS7D.js';
|
|
5
5
|
import { ArtifactPanel } from './chunk-NBDN5JZV.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './EmptyState-
|
|
3
|
+
import './EmptyState-7L4UAQBX.css';
|
|
4
4
|
import { InboxGlyph } from '@crewlethq/icons/glyphs';
|
|
5
5
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
@@ -18,6 +18,15 @@ function EmptyState({
|
|
|
18
18
|
const contextLevel = useHeadingLevel();
|
|
19
19
|
const level = headingLevel ?? contextLevel;
|
|
20
20
|
const Heading = level === "none" ? "div" : headingTag(level);
|
|
21
|
+
if (size === "inline") {
|
|
22
|
+
return /* @__PURE__ */ jsxs("div", { ...rest, className: cx("crewlet-empty-state", "crewlet-empty-state--inline", className), children: [
|
|
23
|
+
/* @__PURE__ */ jsxs("div", { className: "crewlet-empty-state__text", children: [
|
|
24
|
+
/* @__PURE__ */ jsx(Heading, { className: "crewlet-empty-state__title", children: title }),
|
|
25
|
+
/* @__PURE__ */ jsx("p", { className: "crewlet-empty-state__description", children: description })
|
|
26
|
+
] }),
|
|
27
|
+
action ? /* @__PURE__ */ jsx("div", { className: "crewlet-empty-state__action", children: action }) : null
|
|
28
|
+
] });
|
|
29
|
+
}
|
|
21
30
|
return /* @__PURE__ */ jsxs("div", { ...rest, className: cx("crewlet-empty-state", `crewlet-empty-state--${size}`, className), children: [
|
|
22
31
|
/* @__PURE__ */ jsx("span", { className: "crewlet-empty-state__mark", "aria-hidden": true, children: illustration ?? icon ?? /* @__PURE__ */ jsx(InboxGlyph, { size: size === "compact" ? "xl" : 32 }) }),
|
|
23
32
|
/* @__PURE__ */ jsx(Heading, { className: "crewlet-empty-state__title", children: title }),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HuePicker } from './chunk-QOP7QYUW.js';
|
|
2
2
|
import { Popover } from './chunk-KHJIEPZV.js';
|
|
3
3
|
import { NODE_HUE_NAMES } from './chunk-AYKXMIOR.js';
|
|
4
|
-
import { CharacterPicker } from './chunk-
|
|
4
|
+
import { CharacterPicker } from './chunk-SNQRGH4A.js';
|
|
5
5
|
import { Avatar } from './chunk-PZKHBB7D.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
7
7
|
import './AvatarPicker-PREY36MG.css';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { diffLines, diffStat, collapseDiff, DiffSummary, DiffView } from './chunk-BVWSLXTY.js';
|
|
2
2
|
import { SegmentedControl } from './chunk-BF5WV7NM.js';
|
|
3
|
-
import { EmptyState } from './chunk-
|
|
3
|
+
import { EmptyState } from './chunk-PPUR46MK.js';
|
|
4
4
|
import { useHeadingLevel, headingTag, nextHeadingLevel, HeadingLevelProvider } from './chunk-PQADV6P6.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
6
6
|
import './VersionCompare-UUZOPTQO.css';
|
|
@@ -19,6 +19,7 @@ export * from '../ArtifactKindIllustration/index.js';
|
|
|
19
19
|
export * from '../ArtifactMakeRow/index.js';
|
|
20
20
|
export * from '../ArtifactNameCell/index.js';
|
|
21
21
|
export * from '../ArtifactPanel/index.js';
|
|
22
|
+
export * from '../AsideLayout/index.js';
|
|
22
23
|
export * from '../AuthLayout/index.js';
|
|
23
24
|
export * from '../Avatar/index.js';
|
|
24
25
|
export * from '../AvatarPicker/index.js';
|
|
@@ -158,6 +159,7 @@ export * from '../SlideStage/index.js';
|
|
|
158
159
|
export * from '../SourceEditor/index.js';
|
|
159
160
|
export * from '../StatCard/index.js';
|
|
160
161
|
export * from '../StatGroup/index.js';
|
|
162
|
+
export * from '../Statement/index.js';
|
|
161
163
|
export * from '../StatusDot/index.js';
|
|
162
164
|
export * from '../Stepper/index.js';
|
|
163
165
|
export * from '../Switch/index.js';
|