@crewlethq/ui 0.51.0 → 0.52.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.
- package/README.md +18 -0
- package/dist/AgentHandoffPanel/index.js +4 -4
- package/dist/AppShell/index.js +3 -3
- package/dist/ArrangeList/index.js +4 -4
- package/dist/ArtifactBar/index.js +5 -5
- package/dist/ArtifactCard/index.js +4 -4
- package/dist/AvatarPicker/index.js +7 -7
- package/dist/Canvas/index.js +2 -2
- package/dist/CanvasBoard/index.js +4 -4
- package/dist/CanvasToolbar/index.js +3 -3
- package/dist/Checkbox/index.js +3 -3
- 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/ColorField/index.js +3 -3
- package/dist/Combobox/index.js +3 -3
- package/dist/CommandPalette/index.js +3 -3
- package/dist/CommentThread/index.js +5 -5
- package/dist/Composer/index.js +3 -3
- package/dist/ConfirmField/index.js +3 -3
- package/dist/ContrastHelp/index.js +1 -1
- package/dist/DataGrid/index.js +4 -4
- package/dist/DataTable/index.js +5 -5
- package/dist/DataView/index.js +7 -7
- package/dist/DateTimePicker/index.js +2 -2
- package/dist/DocTabsEditor/index.js +4 -4
- package/dist/{Editor-MLGK3KOG.js → Editor-ECT7XZNS.js} +3 -3
- package/dist/HuePicker/index.js +5 -5
- package/dist/Input/FormField.d.ts +7 -1
- package/dist/Input/index.js +2 -2
- package/dist/{Input-VDSV7VWJ.css → Input-GMOWHZRG.css} +9 -0
- package/dist/LinkInterstitial/index.js +1 -1
- package/dist/ListInput/ListInput.d.ts +2 -0
- package/dist/ListInput/index.js +3 -3
- package/dist/{ListInput-P2ECUQJ2.css → ListInput-RLQND5QK.css} +30 -6
- package/dist/LogoSlot/LogoSlot.d.ts +9 -1
- package/dist/LogoSlot/LogoSlotGroup.d.ts +39 -0
- package/dist/LogoSlot/index.d.ts +3 -1
- package/dist/LogoSlot/index.js +1 -1
- package/dist/{LogoSlot-T2UFOJXU.css → LogoSlot-37RQBUCR.css} +115 -0
- package/dist/MarkdownEditor/index.js +5 -5
- package/dist/Menu/index.js +2 -2
- package/dist/MergeConflicts/index.js +5 -5
- package/dist/Modal/index.js +1 -1
- package/dist/OrgTable/index.js +1 -1
- package/dist/PresenterView/index.js +1 -1
- package/dist/PrincipalPicker/index.js +4 -4
- package/dist/RichEditor/index.js +1 -1
- package/dist/SegmentedControl/index.js +4 -4
- package/dist/ShareDialog/index.js +1 -1
- package/dist/SheetColumnEditor/index.js +8 -8
- package/dist/SheetGrid/index.js +3 -3
- package/dist/SlideFilmstrip/index.js +3 -3
- package/dist/Switcher/index.js +3 -3
- package/dist/Tabs/index.js +3 -3
- package/dist/TagsInput/index.js +2 -2
- package/dist/ThemeSwitcher/index.js +5 -5
- package/dist/TimeWindowPicker/index.js +3 -3
- package/dist/TreeCanvas/index.js +3 -3
- package/dist/TreeGrid/index.js +1 -1
- package/dist/VersionCompare/index.js +5 -5
- package/dist/{chunk-NCHKKYPQ.js → chunk-2ZXA2TN4.js} +1 -1
- package/dist/{chunk-P5JBDHWC.js → chunk-3AX2O4RT.js} +1 -1
- package/dist/{chunk-GHY63X4C.js → chunk-4L5L7HBA.js} +1 -1
- package/dist/{chunk-KHP7TJF7.js → chunk-6D4SVNQD.js} +1 -1
- package/dist/{chunk-H7NMJ5AI.js → chunk-75BRUZEB.js} +2 -2
- package/dist/{chunk-UUTEWGO6.js → chunk-A6XFA2MW.js} +6 -4
- package/dist/{chunk-WQ7S7CKZ.js → chunk-BUDVAXGD.js} +2 -2
- package/dist/{chunk-2UFUP2ZH.js → chunk-BYOBPRTS.js} +27 -10
- package/dist/{chunk-VP2ODUCC.js → chunk-CNTBUK24.js} +2 -2
- package/dist/{chunk-R6R2UHVG.js → chunk-EO6DUDKB.js} +2 -2
- package/dist/{chunk-SS4XCUUJ.js → chunk-F45VSK2M.js} +2 -2
- package/dist/{chunk-73WHPLWQ.js → chunk-GGP7XCRG.js} +1 -1
- package/dist/{chunk-ILFEWRLG.js → chunk-GKRPPSWY.js} +1 -1
- package/dist/{chunk-VN47PYUF.js → chunk-IRAS2CZ5.js} +3 -3
- package/dist/{chunk-SQ4JFHO7.js → chunk-K2FNW3MK.js} +1 -1
- package/dist/{chunk-SEPSXOGJ.js → chunk-LXCRHVMZ.js} +1 -1
- package/dist/{chunk-D6MTBXAJ.js → chunk-M7MMWXKE.js} +1 -1
- package/dist/{chunk-CAVWDJF4.js → chunk-MZ3QFQDL.js} +1 -1
- package/dist/{chunk-WXOYHVWG.js → chunk-N224FUS3.js} +1 -1
- package/dist/{chunk-X4NIE7CI.js → chunk-NILOJV62.js} +1 -1
- package/dist/{chunk-WX6IJJ4U.js → chunk-OW37LQDZ.js} +4 -4
- package/dist/{chunk-VTSJMDGP.js → chunk-PLHKAYFI.js} +4 -4
- package/dist/{chunk-627KFRON.js → chunk-POPBDDGZ.js} +2 -2
- package/dist/{chunk-XS2FJVMT.js → chunk-PZZHO6OS.js} +1 -1
- package/dist/{chunk-34RMTXDZ.js → chunk-RBUA7ZNK.js} +1 -1
- package/dist/{chunk-6FVGSWLS.js → chunk-SMVWDO72.js} +1 -1
- package/dist/{chunk-FB5CFQTG.js → chunk-TVILVNPG.js} +1 -1
- package/dist/{chunk-VBIM6HFC.js → chunk-UEPIBHS2.js} +1 -1
- package/dist/{chunk-RFPCHMSX.js → chunk-VBEMIZIJ.js} +1 -1
- package/dist/{chunk-EXRRTKWT.js → chunk-VS7EXOKP.js} +9 -5
- package/dist/{chunk-ZCIL5IHU.js → chunk-WG7G7UY5.js} +1 -1
- package/dist/{chunk-KHZYAEGZ.js → chunk-WV5SSDCZ.js} +1 -1
- package/dist/chunk-WXRH7NZW.js +80 -0
- package/dist/{chunk-MIEBOO7Y.js → chunk-XPRHKEQ2.js} +1 -1
- package/dist/{chunk-H55D66IK.js → chunk-Y4E6XL6M.js} +1 -1
- package/dist/{chunk-EW2N4FOD.js → chunk-YFUG6ARA.js} +2 -2
- package/dist/{chunk-V7GOOXPK.js → chunk-YQB4NNAE.js} +1 -1
- package/dist/{chunk-S63QOMXC.js → chunk-ZI4NRAIL.js} +1 -1
- package/dist/generated/index.js +71 -71
- package/dist/index.js +71 -71
- package/dist/styles.css +218 -10
- package/package.json +3 -3
- package/dist/chunk-BWOIUOO3.js +0 -62
- package/dist/{chunk-TMM32U7D.js → chunk-3JIZ2A6K.js} +1 -1
- package/dist/{chunk-ZFM5L7M4.js → chunk-I6NNUIIT.js} +1 -1
- package/dist/{chunk-D7Q5MQRF.js → chunk-ICPQIAD6.js} +1 -1
- package/dist/{chunk-SXBJMBSV.js → chunk-S6J3EWDP.js} +1 -1
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 };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useLayerContainer, viewportBounds, LAYER_GAP, anchorGone, placePopup, LAYER_REPOSITION_EVENT } from './chunk-OMV5W53A.js';
|
|
2
2
|
import { Button } from './chunk-OG6CL3EB.js';
|
|
3
3
|
import { usePopupLayer } from './chunk-H5XTJ7GJ.js';
|
|
4
|
-
import { IconButton } from './chunk-LACA4JGC.js';
|
|
5
4
|
import { returnFocus } from './chunk-NUZHC6MM.js';
|
|
5
|
+
import { IconButton } from './chunk-LACA4JGC.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
7
7
|
import './Menu-KEKAD3BZ.css';
|
|
8
8
|
import { useId, useState, useRef, useCallback, useLayoutEffect, useEffect } from 'react';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { today, CalendarGrid, shiftMonth, compareDays } from './chunk-GXQ3B46I.js';
|
|
2
2
|
import { Popover } from './chunk-KHJIEPZV.js';
|
|
3
3
|
import { Button } from './chunk-OG6CL3EB.js';
|
|
4
|
-
import { IconButton } from './chunk-LACA4JGC.js';
|
|
5
4
|
import { useFocusModality } from './chunk-NUZHC6MM.js';
|
|
5
|
+
import { IconButton } from './chunk-LACA4JGC.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
7
7
|
import './DateTimePicker-3A7JIIVL.css';
|
|
8
8
|
import { useMemo, useState, useEffect } from 'react';
|
|
@@ -3,8 +3,8 @@ import { Tooltip } from './chunk-I33UIUZD.js';
|
|
|
3
3
|
import { Kbd } from './chunk-SMBKXWML.js';
|
|
4
4
|
import { LAYER_REPOSITION_EVENT, LayerHost } from './chunk-OMV5W53A.js';
|
|
5
5
|
import { Button } from './chunk-OG6CL3EB.js';
|
|
6
|
-
import { IconButton } from './chunk-LACA4JGC.js';
|
|
7
6
|
import { returnFocus } from './chunk-NUZHC6MM.js';
|
|
7
|
+
import { IconButton } from './chunk-LACA4JGC.js';
|
|
8
8
|
import { VisuallyHidden } from './chunk-BZFWDIV6.js';
|
|
9
9
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
10
10
|
import './Canvas-4QJHVLJ4.css';
|
|
@@ -2,8 +2,8 @@ import { Tag } from './chunk-KYIAFNU7.js';
|
|
|
2
2
|
import { useListbox } from './chunk-7KHM2FZH.js';
|
|
3
3
|
import { announce } from './chunk-RSAQOKH3.js';
|
|
4
4
|
import { isComposing } from './chunk-H5XTJ7GJ.js';
|
|
5
|
-
import { IconButton } from './chunk-LACA4JGC.js';
|
|
6
5
|
import { useFocusModality } from './chunk-NUZHC6MM.js';
|
|
6
|
+
import { IconButton } from './chunk-LACA4JGC.js';
|
|
7
7
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
8
8
|
import './TagsInput-CLFHP6I2.css';
|
|
9
9
|
import { forwardRef, useState, useRef, useId, useImperativeHandle, useEffect, useMemo, useLayoutEffect } from 'react';
|