@crewlethq/ui 0.50.0 → 0.52.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 +34 -0
- package/dist/AgentHandoffPanel/index.js +3 -3
- package/dist/ArrangeList/index.js +3 -3
- package/dist/ArtifactCard/index.js +3 -3
- package/dist/{ArtifactCard-SOB63NV5.css → ArtifactCard-F7IVRL3A.css} +3 -0
- package/dist/AvatarPicker/index.js +2 -2
- package/dist/BrandSample/index.js +3 -3
- package/dist/BrandScope/index.js +2 -2
- package/dist/Callout/index.js +1 -1
- package/dist/{Callout-ZAVG3P66.css → Callout-G3N3IE6M.css} +9 -0
- package/dist/Checkbox/index.js +2 -2
- package/dist/ChoiceButtons/ChoiceButtons.d.ts +21 -1
- package/dist/ChoiceButtons/index.d.ts +1 -1
- package/dist/ChoiceButtons/index.js +1 -1
- package/dist/{ChoiceButtons-FLIFXFFS.css → ChoiceButtons-HWXEF2H3.css} +60 -0
- package/dist/ColorChip/ColorChip.d.ts +26 -0
- package/dist/ColorChip/index.d.ts +3 -0
- package/dist/ColorChip/index.js +3 -0
- package/dist/ColorChip-A5XHTH3J.css +46 -0
- package/dist/ColorField/ColorField.d.ts +16 -8
- package/dist/ColorField/index.js +3 -3
- package/dist/ColorSwatch/index.js +2 -2
- package/dist/Combobox/index.js +2 -2
- package/dist/CommandPalette/index.js +2 -2
- package/dist/CommentThread/index.js +3 -3
- package/dist/Composer/index.js +2 -2
- package/dist/ConfirmField/index.js +2 -2
- package/dist/ContrastBadge/ContrastBadge.d.ts +13 -0
- package/dist/ContrastBadge/index.d.ts +2 -2
- package/dist/ContrastBadge/index.js +2 -2
- package/dist/ContrastHelp/ContrastHelp.d.ts +40 -0
- package/dist/ContrastHelp/index.d.ts +3 -0
- package/dist/ContrastHelp/index.js +12 -0
- package/dist/ContrastHelp-MZCAW5WQ.css +43 -0
- package/dist/DataGrid/index.js +3 -3
- package/dist/DataTable/index.js +3 -3
- package/dist/DataView/index.js +4 -4
- package/dist/DocTabsEditor/index.js +2 -2
- package/dist/EditingStatus/EditingStatus.d.ts +3 -5
- package/dist/EditingStatus/index.js +1 -1
- package/dist/{EditingStatus-NNA2CKIL.css → EditingStatus-YU7EGM6Y.css} +22 -7
- package/dist/{Editor-MLGK3KOG.js → Editor-SZFWVDAU.js} +2 -2
- package/dist/FolderTile/index.js +1 -1
- package/dist/{FolderTile-FDT5Y63Z.css → FolderTile-MIUEB7SO.css} +12 -5
- package/dist/FollowBanner/index.js +2 -2
- package/dist/InlineEditor/index.js +2 -2
- package/dist/Input/FormField.d.ts +7 -1
- package/dist/Input/index.js +1 -1
- package/dist/{Input-VDSV7VWJ.css → Input-GMOWHZRG.css} +9 -0
- package/dist/LinkInterstitial/index.js +2 -2
- package/dist/ListInput/ListInput.d.ts +5 -1
- package/dist/ListInput/index.js +2 -2
- package/dist/{ListInput-WUP2YITQ.css → ListInput-RLQND5QK.css} +30 -6
- package/dist/LogoSlot/LogoSlot.d.ts +9 -1
- package/dist/LogoSlot/LogoSlotGroup.d.ts +38 -0
- package/dist/LogoSlot/index.d.ts +3 -1
- package/dist/LogoSlot/index.js +3 -3
- package/dist/{LogoSlot-T2UFOJXU.css → LogoSlot-ETD74ELF.css} +98 -0
- package/dist/PrincipalPicker/index.js +3 -3
- package/dist/RichEditor/index.js +2 -2
- package/dist/SandboxedFrame/index.js +2 -2
- package/dist/SetupWizard/SetupWizard.d.ts +13 -3
- package/dist/SetupWizard/index.js +1 -1
- package/dist/{SetupWizard-Y5BTXZX5.css → SetupWizard-GZK5UDKC.css} +27 -1
- package/dist/ShareDialog/index.js +2 -2
- package/dist/SheetColumnEditor/index.js +3 -3
- package/dist/Switcher/index.js +2 -2
- package/dist/TimeWindowPicker/index.js +2 -2
- package/dist/{chunk-ZCIL5IHU.js → chunk-2GIWL7IS.js} +1 -1
- package/dist/{chunk-4A4QG6UC.js → chunk-34C7NYIQ.js} +1 -1
- package/dist/{chunk-V7GOOXPK.js → chunk-3NXWH5NC.js} +1 -1
- package/dist/{chunk-WQ7S7CKZ.js → chunk-5O72FSOK.js} +1 -1
- package/dist/{chunk-W6FOEBIL.js → chunk-5WYPSVRX.js} +24 -15
- package/dist/chunk-6GTTRJWJ.js +24 -0
- package/dist/{chunk-QGRA2RHC.js → chunk-6RMZH7P7.js} +1 -1
- package/dist/{chunk-R6R2UHVG.js → chunk-6VQA2LZC.js} +1 -1
- package/dist/{chunk-FB5CFQTG.js → chunk-7PE56HHD.js} +1 -1
- package/dist/chunk-7W3LYIOC.js +27 -0
- package/dist/{chunk-OEEYL2CM.js → chunk-AVMQMY66.js} +2 -2
- package/dist/{chunk-SZZRIHGT.js → chunk-BPCY7ZID.js} +1 -1
- package/dist/{chunk-P5JBDHWC.js → chunk-C6Z3MLSA.js} +1 -1
- package/dist/{chunk-PGR2PKH6.js → chunk-CQEYF3UW.js} +14 -12
- package/dist/{chunk-Q44X36QC.js → chunk-CUL5XV6O.js} +2 -2
- package/dist/chunk-DTSZUH6H.js +124 -0
- package/dist/chunk-EJWPYEG4.js +38 -0
- package/dist/{chunk-H7NMJ5AI.js → chunk-EZ43L6T7.js} +1 -1
- package/dist/{chunk-627KFRON.js → chunk-FNPZ3LLQ.js} +1 -1
- package/dist/{chunk-M4QM477B.js → chunk-FXHWOXGD.js} +1 -1
- package/dist/{chunk-KHZYAEGZ.js → chunk-G5SUSCWL.js} +1 -1
- package/dist/{chunk-VBIM6HFC.js → chunk-GPZXBJFU.js} +1 -1
- package/dist/{chunk-NAWUXCBC.js → chunk-GRKGLZFM.js} +2 -2
- package/dist/{chunk-VTSJMDGP.js → chunk-J53T2QAH.js} +2 -2
- package/dist/{chunk-JWNYI7UD.js → chunk-KFR75JOK.js} +2 -2
- package/dist/chunk-KIRQZG3G.js +53 -0
- package/dist/{chunk-EXRRTKWT.js → chunk-LJHH4WWB.js} +8 -4
- package/dist/{chunk-MIEBOO7Y.js → chunk-NMR7AJSB.js} +1 -1
- package/dist/{chunk-JFDIMO3A.js → chunk-PGYIDNGG.js} +1 -1
- package/dist/{chunk-WLSEAIVC.js → chunk-RHPBTE3F.js} +1 -1
- package/dist/{chunk-NCHKKYPQ.js → chunk-RQI43UJ7.js} +1 -1
- package/dist/{chunk-H55D66IK.js → chunk-SSHDQBHR.js} +1 -1
- package/dist/{chunk-GP4YWZFO.js → chunk-U3LNU4B2.js} +1 -1
- package/dist/{chunk-GHY63X4C.js → chunk-UJ4VVK7R.js} +1 -1
- package/dist/{chunk-BEAXJARF.js → chunk-UKE7LTFZ.js} +29 -12
- package/dist/{chunk-356JNSER.js → chunk-WQQ5T5SA.js} +1 -1
- package/dist/{chunk-NSSOWQCJ.js → chunk-WW7TU6HE.js} +15 -12
- package/dist/chunk-WXRH7NZW.js +80 -0
- package/dist/{chunk-P3OIM6OC.js → chunk-X7WEE3EK.js} +1 -1
- package/dist/generated/index.d.ts +2 -0
- package/dist/generated/index.js +82 -80
- package/dist/index.js +82 -80
- package/dist/styles.css +374 -28
- package/dist/utils/hexColour.d.ts +13 -0
- package/package.json +3 -3
- package/dist/chunk-BWOIUOO3.js +0 -62
- package/dist/chunk-KKHCUHWS.js +0 -107
- package/dist/chunk-MMOXWAUG.js +0 -42
- package/dist/chunk-UZMNR366.js +0 -9
- package/dist/{chunk-3QSKDZR5.js → chunk-EW2N4FOD.js} +1 -1
- /package/dist/{chunk-HNQ2EIMR.js → chunk-P432I5DQ.js} +0 -0
package/dist/chunk-BWOIUOO3.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { VisuallyHidden } from './chunk-BZFWDIV6.js';
|
|
2
|
-
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './ChoiceButtons-FLIFXFFS.css';
|
|
4
|
-
import { useId } from 'react';
|
|
5
|
-
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
6
|
-
|
|
7
|
-
function ChoiceButtons({
|
|
8
|
-
label,
|
|
9
|
-
options,
|
|
10
|
-
recommended,
|
|
11
|
-
recommendedLabel = "Recommended",
|
|
12
|
-
onChoose,
|
|
13
|
-
pending,
|
|
14
|
-
disabledReason,
|
|
15
|
-
className,
|
|
16
|
-
...rest
|
|
17
|
-
}) {
|
|
18
|
-
const reasonId = useId();
|
|
19
|
-
const first = options.find((o) => o.value === recommended);
|
|
20
|
-
const ordered = first ? [first, ...options.filter((o) => o !== first)] : options;
|
|
21
|
-
const busy = pending !== void 0 && pending !== null;
|
|
22
|
-
const inert = busy || disabledReason !== void 0;
|
|
23
|
-
return /* @__PURE__ */ jsxs("div", { ...rest, role: "group", "aria-label": label, className: cx("crewlet-choice-buttons", className), children: [
|
|
24
|
-
ordered.map((option) => {
|
|
25
|
-
const isRecommended = option === first;
|
|
26
|
-
return /* @__PURE__ */ jsxs(
|
|
27
|
-
"button",
|
|
28
|
-
{
|
|
29
|
-
type: "button",
|
|
30
|
-
className: cx("crewlet-choice-buttons__option", isRecommended && "crewlet-choice-buttons__option--recommended"),
|
|
31
|
-
"aria-disabled": inert || void 0,
|
|
32
|
-
"aria-busy": pending === option.value || void 0,
|
|
33
|
-
"aria-describedby": disabledReason === void 0 ? void 0 : reasonId,
|
|
34
|
-
onClick: (event) => {
|
|
35
|
-
if (inert) {
|
|
36
|
-
event.preventDefault();
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
onChoose(option.value);
|
|
40
|
-
},
|
|
41
|
-
children: [
|
|
42
|
-
/* @__PURE__ */ jsxs("span", { className: "crewlet-choice-buttons__text", children: [
|
|
43
|
-
/* @__PURE__ */ jsx("span", { className: "crewlet-choice-buttons__label", children: option.label }),
|
|
44
|
-
option.detail === void 0 ? null : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
45
|
-
" ",
|
|
46
|
-
/* @__PURE__ */ jsx("span", { className: "crewlet-choice-buttons__detail", children: option.detail })
|
|
47
|
-
] })
|
|
48
|
-
] }),
|
|
49
|
-
isRecommended ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
50
|
-
" ",
|
|
51
|
-
/* @__PURE__ */ jsx("span", { className: "crewlet-choice-buttons__note", children: recommendedLabel })
|
|
52
|
-
] }) : null
|
|
53
|
-
]
|
|
54
|
-
},
|
|
55
|
-
option.value
|
|
56
|
-
);
|
|
57
|
-
}),
|
|
58
|
-
disabledReason === void 0 ? null : /* @__PURE__ */ jsx(VisuallyHidden, { id: reasonId, children: disabledReason })
|
|
59
|
-
] });
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export { ChoiceButtons };
|
package/dist/chunk-KKHCUHWS.js
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { Stepper } from './chunk-LDGQIDIZ.js';
|
|
2
|
-
import { PageHeader } from './chunk-DKB73KZI.js';
|
|
3
|
-
import { Disclosure } from './chunk-OGXHZHRX.js';
|
|
4
|
-
import { useHeadingLevel, nextHeadingLevel, headingTag, HeadingLevelProvider } from './chunk-PQADV6P6.js';
|
|
5
|
-
import { useMediaMatch } from './chunk-RTPQDNW3.js';
|
|
6
|
-
import { cx } from './chunk-ODEQTPFM.js';
|
|
7
|
-
import './SetupWizard-Y5BTXZX5.css';
|
|
8
|
-
import { useId, useRef, useEffect, createElement } from 'react';
|
|
9
|
-
import { breakpoint } from '@crewlethq/tokens';
|
|
10
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
11
|
-
|
|
12
|
-
var LABELS = {
|
|
13
|
-
progress: (position, total) => `Step ${position} of ${total}`,
|
|
14
|
-
asideToggle: "Preview"
|
|
15
|
-
};
|
|
16
|
-
var PHONE = `(width < ${breakpoint.phone})`;
|
|
17
|
-
function SetupWizard({
|
|
18
|
-
title,
|
|
19
|
-
headingLevel,
|
|
20
|
-
trail,
|
|
21
|
-
status,
|
|
22
|
-
actions,
|
|
23
|
-
steps,
|
|
24
|
-
current,
|
|
25
|
-
reached,
|
|
26
|
-
onSelect,
|
|
27
|
-
stepsLabel,
|
|
28
|
-
heading,
|
|
29
|
-
lead,
|
|
30
|
-
children,
|
|
31
|
-
aside,
|
|
32
|
-
asideLabel,
|
|
33
|
-
footer,
|
|
34
|
-
labels,
|
|
35
|
-
className,
|
|
36
|
-
...rest
|
|
37
|
-
}) {
|
|
38
|
-
const text = { ...LABELS, ...labels };
|
|
39
|
-
const phone = useMediaMatch(PHONE);
|
|
40
|
-
const context = useHeadingLevel();
|
|
41
|
-
const titleLevel = headingLevel ?? context;
|
|
42
|
-
const stepLevel = nextHeadingLevel(titleLevel);
|
|
43
|
-
const contentLevel = nextHeadingLevel(stepLevel);
|
|
44
|
-
const headingId = useId();
|
|
45
|
-
const headingRef = useRef(null);
|
|
46
|
-
const shown = useRef(current);
|
|
47
|
-
useEffect(() => {
|
|
48
|
-
if (shown.current === current) return;
|
|
49
|
-
shown.current = current;
|
|
50
|
-
headingRef.current?.focus();
|
|
51
|
-
}, [current]);
|
|
52
|
-
if (aside !== void 0 && aside !== null && !asideLabel) {
|
|
53
|
-
throw new TypeError("SetupWizard needs an asideLabel with an aside: it names the aside\u2019s landmark");
|
|
54
|
-
}
|
|
55
|
-
const position = steps.findIndex((step2) => step2.id === current);
|
|
56
|
-
const step = steps[position];
|
|
57
|
-
const stepper = /* @__PURE__ */ jsx(
|
|
58
|
-
Stepper,
|
|
59
|
-
{
|
|
60
|
-
label: stepsLabel,
|
|
61
|
-
steps,
|
|
62
|
-
current,
|
|
63
|
-
reached,
|
|
64
|
-
onSelect,
|
|
65
|
-
tone: "brand",
|
|
66
|
-
orientation: phone ? "horizontal" : "vertical"
|
|
67
|
-
}
|
|
68
|
-
);
|
|
69
|
-
const asideBlock = aside === void 0 || aside === null ? null : /* @__PURE__ */ jsx("aside", { className: "crewlet-setup-wizard__aside", "aria-label": asideLabel, children: /* @__PURE__ */ jsx(HeadingLevelProvider, { level: contentLevel, children: aside }) });
|
|
70
|
-
return /* @__PURE__ */ jsx("div", { ...rest, className: cx("crewlet-setup-wizard", className), children: /* @__PURE__ */ jsxs("div", { className: "crewlet-setup-wizard__frame", children: [
|
|
71
|
-
/* @__PURE__ */ jsxs("div", { className: "crewlet-setup-wizard__head", children: [
|
|
72
|
-
trail ? /* @__PURE__ */ jsx("div", { className: "crewlet-setup-wizard__trail", children: trail }) : null,
|
|
73
|
-
/* @__PURE__ */ jsx(
|
|
74
|
-
PageHeader,
|
|
75
|
-
{
|
|
76
|
-
title,
|
|
77
|
-
headingLevel: titleLevel,
|
|
78
|
-
actions: status || actions ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
79
|
-
status ? /* @__PURE__ */ jsx("span", { className: "crewlet-setup-wizard__status", children: status }) : null,
|
|
80
|
-
actions
|
|
81
|
-
] }) : void 0
|
|
82
|
-
}
|
|
83
|
-
)
|
|
84
|
-
] }),
|
|
85
|
-
/* @__PURE__ */ jsxs("nav", { className: "crewlet-setup-wizard__rail", "aria-label": stepsLabel, children: [
|
|
86
|
-
phone && step ? /* @__PURE__ */ jsxs("p", { className: "crewlet-setup-wizard__position", children: [
|
|
87
|
-
text.progress(position + 1, steps.length),
|
|
88
|
-
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: " \xB7 " }),
|
|
89
|
-
/* @__PURE__ */ jsx("span", { className: "crewlet-setup-wizard__position-step", children: step.label })
|
|
90
|
-
] }) : null,
|
|
91
|
-
stepper
|
|
92
|
-
] }),
|
|
93
|
-
/* @__PURE__ */ jsxs("section", { className: "crewlet-setup-wizard__content", "aria-labelledby": headingId, children: [
|
|
94
|
-
createElement(
|
|
95
|
-
headingTag(stepLevel),
|
|
96
|
-
{ id: headingId, ref: headingRef, tabIndex: -1, className: "crewlet-setup-wizard__heading" },
|
|
97
|
-
heading
|
|
98
|
-
),
|
|
99
|
-
lead ? /* @__PURE__ */ jsx("p", { className: "crewlet-setup-wizard__lead", children: lead }) : null,
|
|
100
|
-
/* @__PURE__ */ jsx("div", { className: "crewlet-setup-wizard__body", children: /* @__PURE__ */ jsx(HeadingLevelProvider, { level: contentLevel, children }) })
|
|
101
|
-
] }),
|
|
102
|
-
asideBlock === null ? null : phone ? /* @__PURE__ */ jsx(Disclosure, { className: "crewlet-setup-wizard__preview", title: text.asideToggle, headingLevel: stepLevel, children: asideBlock }) : asideBlock,
|
|
103
|
-
/* @__PURE__ */ jsx("footer", { className: "crewlet-setup-wizard__footer", children: footer })
|
|
104
|
-
] }) });
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export { SetupWizard };
|
package/dist/chunk-MMOXWAUG.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { useNow, formatRelative } from './chunk-3CZ7XAVY.js';
|
|
2
|
-
import { VisuallyHidden } from './chunk-BZFWDIV6.js';
|
|
3
|
-
import { cx } from './chunk-ODEQTPFM.js';
|
|
4
|
-
import './EditingStatus-NNA2CKIL.css';
|
|
5
|
-
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
6
|
-
|
|
7
|
-
var LABELS = {
|
|
8
|
-
editing: "Editing",
|
|
9
|
-
unsaved: "Unsaved changes",
|
|
10
|
-
saving: "Saving",
|
|
11
|
-
saved: (ago) => `Saved ${ago}`,
|
|
12
|
-
savedSpoken: "Saved"
|
|
13
|
-
};
|
|
14
|
-
function EditingStatus({ dirty, saving = false, savedAt, labels, className }) {
|
|
15
|
-
const text = { ...LABELS, ...labels };
|
|
16
|
-
const state = saving ? text.saving : dirty ? text.unsaved : savedAt !== void 0 && savedAt !== null ? /* @__PURE__ */ jsx(SavedAgo, { at: savedAt, labels: text }) : null;
|
|
17
|
-
return /* @__PURE__ */ jsxs(
|
|
18
|
-
"span",
|
|
19
|
-
{
|
|
20
|
-
role: "status",
|
|
21
|
-
"aria-live": "polite",
|
|
22
|
-
className: cx("crewlet-editing-status", dirty && "crewlet-editing-status--dirty", className),
|
|
23
|
-
children: [
|
|
24
|
-
/* @__PURE__ */ jsx("span", { className: "crewlet-editing-status__dot", "aria-hidden": "true" }),
|
|
25
|
-
/* @__PURE__ */ jsx("span", { className: "crewlet-editing-status__label", children: text.editing }),
|
|
26
|
-
state && /* @__PURE__ */ jsx(VisuallyHidden, { children: ", " }),
|
|
27
|
-
state && /* @__PURE__ */ jsx("span", { className: "crewlet-editing-status__state", children: state })
|
|
28
|
-
]
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
function SavedAgo({ at, labels }) {
|
|
33
|
-
const now = useNow();
|
|
34
|
-
const ago = formatRelative(at, now);
|
|
35
|
-
if (ago === null) return null;
|
|
36
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
37
|
-
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: labels.saved(ago) }),
|
|
38
|
-
/* @__PURE__ */ jsx(VisuallyHidden, { children: labels.savedSpoken })
|
|
39
|
-
] });
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export { EditingStatus };
|
package/dist/chunk-UZMNR366.js
DELETED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HuePicker } from './chunk-34RMTXDZ.js';
|
|
2
2
|
import { Popover } from './chunk-KHJIEPZV.js';
|
|
3
|
-
import { NODE_HUE_NAMES } from './chunk-AYKXMIOR.js';
|
|
4
3
|
import { CharacterPicker } from './chunk-SNQRGH4A.js';
|
|
4
|
+
import { NODE_HUE_NAMES } from './chunk-AYKXMIOR.js';
|
|
5
5
|
import { Avatar } from './chunk-PZKHBB7D.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
7
7
|
import './AvatarPicker-PREY36MG.css';
|
|
File without changes
|