@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/Tabs/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { TabPanel, Tabs, tabId } from '../chunk-
|
|
1
|
+
export { TabPanel, Tabs, tabId } from '../chunk-GKRPPSWY.js';
|
|
2
2
|
import '../chunk-WIATRXEJ.js';
|
|
3
3
|
import '../chunk-EGMQURBR.js';
|
|
4
4
|
import '../chunk-BHHIIK3M.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-3JIZ2A6K.js';
|
|
6
6
|
import '../chunk-OMV5W53A.js';
|
|
7
7
|
import '../chunk-2YTOOH3A.js';
|
|
8
8
|
import '../chunk-OG6CL3EB.js';
|
|
9
9
|
import '../chunk-H5XTJ7GJ.js';
|
|
10
|
-
import '../chunk-LACA4JGC.js';
|
|
11
10
|
import '../chunk-NUZHC6MM.js';
|
|
11
|
+
import '../chunk-LACA4JGC.js';
|
|
12
12
|
import '../chunk-BZFWDIV6.js';
|
|
13
13
|
import '../chunk-ODEQTPFM.js';
|
package/dist/TagsInput/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { TagsInput } from '../chunk-
|
|
1
|
+
export { TagsInput } from '../chunk-S6J3EWDP.js';
|
|
2
2
|
import '../chunk-KYIAFNU7.js';
|
|
3
3
|
import '../chunk-7KHM2FZH.js';
|
|
4
4
|
import '../chunk-WIATRXEJ.js';
|
|
5
5
|
import '../chunk-RSAQOKH3.js';
|
|
6
6
|
import '../chunk-OMV5W53A.js';
|
|
7
7
|
import '../chunk-H5XTJ7GJ.js';
|
|
8
|
-
import '../chunk-LACA4JGC.js';
|
|
9
8
|
import '../chunk-NUZHC6MM.js';
|
|
9
|
+
import '../chunk-LACA4JGC.js';
|
|
10
10
|
import '../chunk-BZFWDIV6.js';
|
|
11
11
|
import '../chunk-ODEQTPFM.js';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export { DensitySwitcher, ThemeSwitcher } from '../chunk-
|
|
1
|
+
export { DensitySwitcher, ThemeSwitcher } from '../chunk-LXCRHVMZ.js';
|
|
2
2
|
export { applyStoredPreferences, resolveTheme, useDensityPreference, useSystemTheme, useThemePreference } from '../chunk-Z24ZUSTX.js';
|
|
3
3
|
export { DENSITY_PREFERENCES, PALETTE_ID, THEME_PREFERENCES, applyDensity, applyPalette, applyTheme, isDensityPreference, isPaletteId, isThemePreference } from '../chunk-ZXXDZJQN.js';
|
|
4
4
|
import '../chunk-OOC7Q67K.js';
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-SMVWDO72.js';
|
|
6
|
+
import '../chunk-GKRPPSWY.js';
|
|
7
7
|
import '../chunk-WIATRXEJ.js';
|
|
8
8
|
import '../chunk-EGMQURBR.js';
|
|
9
9
|
import '../chunk-BHHIIK3M.js';
|
|
10
|
-
import '../chunk-
|
|
10
|
+
import '../chunk-3JIZ2A6K.js';
|
|
11
11
|
import '../chunk-OMV5W53A.js';
|
|
12
12
|
import '../chunk-2YTOOH3A.js';
|
|
13
13
|
import '../chunk-OG6CL3EB.js';
|
|
14
14
|
import '../chunk-H5XTJ7GJ.js';
|
|
15
|
-
import '../chunk-LACA4JGC.js';
|
|
16
15
|
import '../chunk-NUZHC6MM.js';
|
|
16
|
+
import '../chunk-LACA4JGC.js';
|
|
17
17
|
import '../chunk-BZFWDIV6.js';
|
|
18
18
|
import '../chunk-ODEQTPFM.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { DEFAULT_TIME_WINDOW_LABELS, TIME_WINDOW_SPANS, TimeWindowPicker, describeTimeWindow, isTimeWindowSet, parseTimeWindowDuration, resolveTimeWindow, timeWindowMatchesPreset } from '../chunk-
|
|
1
|
+
export { DEFAULT_TIME_WINDOW_LABELS, TIME_WINDOW_SPANS, TimeWindowPicker, describeTimeWindow, isTimeWindowSet, parseTimeWindowDuration, resolveTimeWindow, timeWindowMatchesPreset } from '../chunk-EO6DUDKB.js';
|
|
2
2
|
import '../chunk-XQZ6EWOE.js';
|
|
3
3
|
import '../chunk-7KHM2FZH.js';
|
|
4
4
|
import '../chunk-GXQ3B46I.js';
|
|
5
5
|
import '../chunk-KHJIEPZV.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-VS7EXOKP.js';
|
|
7
7
|
import '../chunk-XCUUI7E7.js';
|
|
8
8
|
import '../chunk-PQADV6P6.js';
|
|
9
9
|
import '../chunk-RSAQOKH3.js';
|
|
@@ -11,7 +11,7 @@ import '../chunk-OMV5W53A.js';
|
|
|
11
11
|
import '../chunk-2YTOOH3A.js';
|
|
12
12
|
import '../chunk-OG6CL3EB.js';
|
|
13
13
|
import '../chunk-H5XTJ7GJ.js';
|
|
14
|
-
import '../chunk-LACA4JGC.js';
|
|
15
14
|
import '../chunk-NUZHC6MM.js';
|
|
15
|
+
import '../chunk-LACA4JGC.js';
|
|
16
16
|
import '../chunk-BZFWDIV6.js';
|
|
17
17
|
import '../chunk-ODEQTPFM.js';
|
package/dist/TreeCanvas/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { TreeCanvas } from '../chunk-
|
|
1
|
+
export { TreeCanvas } from '../chunk-MZ3QFQDL.js';
|
|
2
2
|
import '../chunk-MY374UUD.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-ICPQIAD6.js';
|
|
4
4
|
import '../chunk-LM3ISVJA.js';
|
|
5
5
|
import '../chunk-I33UIUZD.js';
|
|
6
6
|
import '../chunk-SMBKXWML.js';
|
|
7
7
|
import '../chunk-OMV5W53A.js';
|
|
8
8
|
import '../chunk-OG6CL3EB.js';
|
|
9
9
|
import '../chunk-H5XTJ7GJ.js';
|
|
10
|
-
import '../chunk-LACA4JGC.js';
|
|
11
10
|
import '../chunk-NUZHC6MM.js';
|
|
11
|
+
import '../chunk-LACA4JGC.js';
|
|
12
12
|
import '../chunk-BZFWDIV6.js';
|
|
13
13
|
import '../chunk-ODEQTPFM.js';
|
package/dist/TreeGrid/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import '../chunk-MY374UUD.js';
|
|
|
3
3
|
import '../chunk-LM3ISVJA.js';
|
|
4
4
|
import '../chunk-OMV5W53A.js';
|
|
5
5
|
import '../chunk-H5XTJ7GJ.js';
|
|
6
|
-
import '../chunk-LACA4JGC.js';
|
|
7
6
|
import '../chunk-NUZHC6MM.js';
|
|
7
|
+
import '../chunk-LACA4JGC.js';
|
|
8
8
|
import '../chunk-BZFWDIV6.js';
|
|
9
9
|
import '../chunk-ODEQTPFM.js';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export { VERSION_COMPARE_LABELS, VERSION_COMPARE_LENSES, VersionCompare } from '../chunk-
|
|
1
|
+
export { VERSION_COMPARE_LABELS, VERSION_COMPARE_LENSES, VersionCompare } from '../chunk-VBEMIZIJ.js';
|
|
2
2
|
import '../chunk-BVWSLXTY.js';
|
|
3
3
|
import '../chunk-OOC7Q67K.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-SMVWDO72.js';
|
|
5
|
+
import '../chunk-GKRPPSWY.js';
|
|
6
6
|
import '../chunk-WIATRXEJ.js';
|
|
7
7
|
import '../chunk-EGMQURBR.js';
|
|
8
8
|
import '../chunk-PPUR46MK.js';
|
|
9
9
|
import '../chunk-BHHIIK3M.js';
|
|
10
10
|
import '../chunk-PQADV6P6.js';
|
|
11
|
-
import '../chunk-
|
|
11
|
+
import '../chunk-3JIZ2A6K.js';
|
|
12
12
|
import '../chunk-OMV5W53A.js';
|
|
13
13
|
import '../chunk-2YTOOH3A.js';
|
|
14
14
|
import '../chunk-OG6CL3EB.js';
|
|
15
15
|
import '../chunk-H5XTJ7GJ.js';
|
|
16
|
-
import '../chunk-LACA4JGC.js';
|
|
17
16
|
import '../chunk-NUZHC6MM.js';
|
|
17
|
+
import '../chunk-LACA4JGC.js';
|
|
18
18
|
import '../chunk-BZFWDIV6.js';
|
|
19
19
|
import '../chunk-ODEQTPFM.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useListbox, useOptionKeys } from './chunk-7KHM2FZH.js';
|
|
2
|
-
import { Input } from './chunk-
|
|
2
|
+
import { Input } from './chunk-VS7EXOKP.js';
|
|
3
3
|
import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
|
|
4
4
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
5
|
import './HitArea-QUOS6ZDJ.css';
|
|
@@ -9,7 +9,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
9
9
|
var engine = null;
|
|
10
10
|
var loading = null;
|
|
11
11
|
function loadEngine() {
|
|
12
|
-
loading ??= import('./Editor-
|
|
12
|
+
loading ??= import('./Editor-ECT7XZNS.js').then(
|
|
13
13
|
(module) => {
|
|
14
14
|
engine = module.Editor;
|
|
15
15
|
return engine;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { Document } from './chunk-PWG3VHRQ.js';
|
|
1
2
|
import { PrincipalAvatar } from './chunk-CI3VPIJN.js';
|
|
2
3
|
import { toInstant, RelativeTime, formatExact, toISO } from './chunk-3CZ7XAVY.js';
|
|
3
|
-
import {
|
|
4
|
-
import { Composer } from './chunk-GHY63X4C.js';
|
|
4
|
+
import { Composer } from './chunk-4L5L7HBA.js';
|
|
5
5
|
import { Count } from './chunk-BHHIIK3M.js';
|
|
6
6
|
import { useHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
|
|
7
7
|
import { Button } from './chunk-OG6CL3EB.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { useReorder } from './chunk-XJ2QEBMM.js';
|
|
2
2
|
import { Kbd } from './chunk-SMBKXWML.js';
|
|
3
|
-
import { FormField, Textarea } from './chunk-
|
|
3
|
+
import { FormField, Textarea } from './chunk-VS7EXOKP.js';
|
|
4
4
|
import { characterCountState, CharacterCount, countCharacters } from './chunk-XCUUI7E7.js';
|
|
5
5
|
import { announce } from './chunk-RSAQOKH3.js';
|
|
6
6
|
import { Button } from './chunk-OG6CL3EB.js';
|
|
7
7
|
import { isComposing } from './chunk-H5XTJ7GJ.js';
|
|
8
8
|
import { IconButton } from './chunk-LACA4JGC.js';
|
|
9
9
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
10
|
-
import './ListInput-
|
|
10
|
+
import './ListInput-RLQND5QK.css';
|
|
11
11
|
import { forwardRef, useState, useRef, useImperativeHandle, useLayoutEffect, useId } from 'react';
|
|
12
12
|
import { GripVerticalGlyph, ArrowUpGlyph, ArrowDownGlyph, XGlyph } from '@crewlethq/icons/glyphs';
|
|
13
13
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
@@ -41,7 +41,8 @@ var ListInput = forwardRef(function ListInput2({
|
|
|
41
41
|
maxLength,
|
|
42
42
|
undoRemove = false,
|
|
43
43
|
itemError,
|
|
44
|
-
fullMessage = (
|
|
44
|
+
fullMessage = () => "That's the most. Remove one to add another.",
|
|
45
|
+
tallyLabel = (count, max) => `${count} of ${max}`,
|
|
45
46
|
addLabel = (name) => `Add ${name}`,
|
|
46
47
|
addText = "Add",
|
|
47
48
|
itemLabel = (name, position) => `${name} ${position}`,
|
|
@@ -240,7 +241,7 @@ var ListInput = forwardRef(function ListInput2({
|
|
|
240
241
|
const addControl = /* @__PURE__ */ jsx(
|
|
241
242
|
Button,
|
|
242
243
|
{
|
|
243
|
-
size: "
|
|
244
|
+
size: "medium",
|
|
244
245
|
variant: "secondary",
|
|
245
246
|
"aria-label": addLabel(itemName),
|
|
246
247
|
disabled: disabled || full || draftRefused,
|
|
@@ -258,6 +259,7 @@ var ListInput = forwardRef(function ListInput2({
|
|
|
258
259
|
helper,
|
|
259
260
|
helperOnFocus,
|
|
260
261
|
error,
|
|
262
|
+
tally: maxItems === void 0 ? void 0 : tallyLabel(count, maxItems),
|
|
261
263
|
className: "crewlet-list-input",
|
|
262
264
|
children: [
|
|
263
265
|
full ? (
|
|
@@ -2,8 +2,8 @@ import { Modal } from './chunk-YCC2S7DF.js';
|
|
|
2
2
|
import { useClipboard } from './chunk-STJ7QBC3.js';
|
|
3
3
|
import { EmptyValue } from './chunk-EUCC37WY.js';
|
|
4
4
|
import { useCardHeaderSlot } from './chunk-AV2DXAEL.js';
|
|
5
|
-
import { Checkbox } from './chunk-
|
|
6
|
-
import { Menu } from './chunk-
|
|
5
|
+
import { Checkbox } from './chunk-2ZXA2TN4.js';
|
|
6
|
+
import { Menu } from './chunk-3JIZ2A6K.js';
|
|
7
7
|
import { Button } from './chunk-OG6CL3EB.js';
|
|
8
8
|
import { IconButton } from './chunk-LACA4JGC.js';
|
|
9
9
|
import { VisuallyHidden } from './chunk-BZFWDIV6.js';
|
|
@@ -4,12 +4,25 @@ import { normalizeHex } from './chunk-7W3LYIOC.js';
|
|
|
4
4
|
import { Button } from './chunk-OG6CL3EB.js';
|
|
5
5
|
import { VisuallyHidden } from './chunk-BZFWDIV6.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
7
|
-
import './LogoSlot-
|
|
8
|
-
import { useId } from 'react';
|
|
7
|
+
import './LogoSlot-37RQBUCR.css';
|
|
8
|
+
import { createContext, useId, useContext } from 'react';
|
|
9
9
|
import { ImageGlyph, CircleAlertGlyph, UploadGlyph, TrashGlyph } from '@crewlethq/icons/glyphs';
|
|
10
10
|
import { themes } from '@crewlethq/tokens';
|
|
11
11
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
12
12
|
|
|
13
|
+
var LogoSlotGroupContext = createContext(null);
|
|
14
|
+
function useLogoSlotGroup() {
|
|
15
|
+
return useContext(LogoSlotGroupContext);
|
|
16
|
+
}
|
|
17
|
+
function LogoSlotGroup({ children, label, hint, className, ...rest }) {
|
|
18
|
+
const id = useId();
|
|
19
|
+
const hasHint = hint !== void 0 && hint !== null && hint !== false;
|
|
20
|
+
const hintId = hasHint ? `${id}-hint` : void 0;
|
|
21
|
+
return /* @__PURE__ */ jsx(LogoSlotGroupContext.Provider, { value: { hintId }, children: /* @__PURE__ */ jsxs("div", { ...rest, role: "group", "aria-label": label, className: cx("crewlet-logo-slot-group", className), children: [
|
|
22
|
+
/* @__PURE__ */ jsx("div", { className: "crewlet-logo-slot-group__slots", children }),
|
|
23
|
+
hasHint ? /* @__PURE__ */ jsx("p", { id: hintId, className: "crewlet-logo-slot-group__hint", children: hint }) : null
|
|
24
|
+
] }) });
|
|
25
|
+
}
|
|
13
26
|
var LABELS = {
|
|
14
27
|
choose: "Choose a file",
|
|
15
28
|
replace: "Replace",
|
|
@@ -42,6 +55,7 @@ function LogoSlot({
|
|
|
42
55
|
ground,
|
|
43
56
|
groundColor,
|
|
44
57
|
shape = "wide",
|
|
58
|
+
size = "md",
|
|
45
59
|
src,
|
|
46
60
|
alt,
|
|
47
61
|
guide = true,
|
|
@@ -57,6 +71,7 @@ function LogoSlot({
|
|
|
57
71
|
labels
|
|
58
72
|
}) {
|
|
59
73
|
const text = { ...LABELS, ...labels };
|
|
74
|
+
const group = useLogoSlotGroup();
|
|
60
75
|
const labelId = useId();
|
|
61
76
|
const descriptionId = useId();
|
|
62
77
|
const groundValue = normalizeHex(groundColor) ?? DEFAULT_GROUNDS[ground];
|
|
@@ -86,7 +101,7 @@ function LogoSlot({
|
|
|
86
101
|
"aria-labelledby": labelId,
|
|
87
102
|
"aria-describedby": description ? descriptionId : void 0,
|
|
88
103
|
"aria-busy": uploading || void 0,
|
|
89
|
-
className: cx("crewlet-logo-slot", className),
|
|
104
|
+
className: cx("crewlet-logo-slot", size === "sm" && "crewlet-logo-slot--sm", className),
|
|
90
105
|
children: [
|
|
91
106
|
/* @__PURE__ */ jsxs("div", { className: "crewlet-logo-slot__head", children: [
|
|
92
107
|
/* @__PURE__ */ jsxs("span", { className: "crewlet-logo-slot__words", children: [
|
|
@@ -96,10 +111,12 @@ function LogoSlot({
|
|
|
96
111
|
download && filled ? /* @__PURE__ */ jsx("span", { className: "crewlet-logo-slot__download", children: download }) : null
|
|
97
112
|
] }),
|
|
98
113
|
editable ? /* @__PURE__ */ jsx(FileDrop, { title: text.drop, onFiles: take, disabled: uploading, children: stage }) : stage,
|
|
99
|
-
!filled && (!editable || emptyNote) ? /* @__PURE__ */
|
|
100
|
-
|
|
101
|
-
/* @__PURE__ */
|
|
102
|
-
|
|
114
|
+
!filled && (!editable || emptyNote) || error ? /* @__PURE__ */ jsxs("div", { className: "crewlet-logo-slot__notes", children: [
|
|
115
|
+
!filled && (!editable || emptyNote) ? /* @__PURE__ */ jsx("p", { className: "crewlet-logo-slot__empty", children: emptyNote ?? text.empty }) : null,
|
|
116
|
+
error ? /* @__PURE__ */ jsxs("p", { className: "crewlet-logo-slot__error", role: "alert", children: [
|
|
117
|
+
/* @__PURE__ */ jsx(CircleAlertGlyph, { size: "sm", "aria-hidden": "true" }),
|
|
118
|
+
/* @__PURE__ */ jsx("span", { children: error })
|
|
119
|
+
] }) : null
|
|
103
120
|
] }) : null,
|
|
104
121
|
editable ? /* @__PURE__ */ jsxs("div", { className: "crewlet-logo-slot__foot", children: [
|
|
105
122
|
/* @__PURE__ */ jsx(
|
|
@@ -111,7 +128,7 @@ function LogoSlot({
|
|
|
111
128
|
accept,
|
|
112
129
|
multiple: false,
|
|
113
130
|
loading: uploading,
|
|
114
|
-
"aria-describedby": labelId,
|
|
131
|
+
"aria-describedby": [labelId, group?.hintId].filter(Boolean).join(" "),
|
|
115
132
|
onFiles: take,
|
|
116
133
|
children: filled ? text.replace : text.choose
|
|
117
134
|
}
|
|
@@ -128,7 +145,7 @@ function LogoSlot({
|
|
|
128
145
|
children: text.remove
|
|
129
146
|
}
|
|
130
147
|
) : null,
|
|
131
|
-
/* @__PURE__ */ jsx("span", { className: "crewlet-logo-slot__hint", children: text.hint })
|
|
148
|
+
group ? null : /* @__PURE__ */ jsx("span", { className: "crewlet-logo-slot__hint", children: text.hint })
|
|
132
149
|
] }) : null,
|
|
133
150
|
/* @__PURE__ */ jsx(VisuallyHidden, { children: /* @__PURE__ */ jsx("span", { role: "status", children: uploading ? text.uploading : "" }) })
|
|
134
151
|
]
|
|
@@ -136,4 +153,4 @@ function LogoSlot({
|
|
|
136
153
|
);
|
|
137
154
|
}
|
|
138
155
|
|
|
139
|
-
export { LogoSlot };
|
|
156
|
+
export { LogoSlot, LogoSlotGroup };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Note } from './chunk-5SZGKSGL.js';
|
|
2
|
-
import { CanvasToolbar, toolForKey } from './chunk-
|
|
3
|
-
import { IDENTITY_VIEW, Canvas } from './chunk-
|
|
2
|
+
import { CanvasToolbar, toolForKey } from './chunk-NILOJV62.js';
|
|
3
|
+
import { IDENTITY_VIEW, Canvas } from './chunk-ICPQIAD6.js';
|
|
4
4
|
import { IconButton } from './chunk-LACA4JGC.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
6
6
|
import './CanvasBoard-JMYNIAHK.css';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Select } from './chunk-XQZ6EWOE.js';
|
|
2
2
|
import { today, shiftMonth, CalendarGrid, compareDays } from './chunk-GXQ3B46I.js';
|
|
3
3
|
import { Popover } from './chunk-KHJIEPZV.js';
|
|
4
|
-
import { Input } from './chunk-
|
|
4
|
+
import { Input } from './chunk-VS7EXOKP.js';
|
|
5
5
|
import { Button } from './chunk-OG6CL3EB.js';
|
|
6
6
|
import { isComposing } from './chunk-H5XTJ7GJ.js';
|
|
7
|
-
import { IconButton } from './chunk-LACA4JGC.js';
|
|
8
7
|
import { useFocusModality } from './chunk-NUZHC6MM.js';
|
|
8
|
+
import { IconButton } from './chunk-LACA4JGC.js';
|
|
9
9
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
10
10
|
import './TimeWindowPicker-I3HXC74I.css';
|
|
11
11
|
import { useMemo, useState, useRef, useId, useEffect } from 'react';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Toolbar } from './chunk-NR4CPM4T.js';
|
|
2
|
-
import { SegmentedControl } from './chunk-
|
|
3
|
-
import { tabId } from './chunk-
|
|
2
|
+
import { SegmentedControl } from './chunk-SMVWDO72.js';
|
|
3
|
+
import { tabId } from './chunk-GKRPPSWY.js';
|
|
4
4
|
import { IconButton } from './chunk-LACA4JGC.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
6
6
|
import './MarkdownEditor-WOKV7CLK.css';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { normalizeHex, parseColourInput } from './chunk-7W3LYIOC.js';
|
|
2
|
-
import { FormField, Input, InputAffix } from './chunk-
|
|
2
|
+
import { FormField, Input, InputAffix } from './chunk-VS7EXOKP.js';
|
|
3
3
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
4
4
|
import './ColorField-2OIOWT3Z.css';
|
|
5
5
|
import { useId, useState } from 'react';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StatusDot } from './chunk-WIATRXEJ.js';
|
|
2
2
|
import { useRoving, tabStop } from './chunk-EGMQURBR.js';
|
|
3
3
|
import { Count } from './chunk-BHHIIK3M.js';
|
|
4
|
-
import { Menu } from './chunk-
|
|
4
|
+
import { Menu } from './chunk-3JIZ2A6K.js';
|
|
5
5
|
import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
|
|
6
6
|
import { VisuallyHidden } from './chunk-BZFWDIV6.js';
|
|
7
7
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Tooltip } from './chunk-I33UIUZD.js';
|
|
2
|
-
import { SegmentedControl } from './chunk-
|
|
2
|
+
import { SegmentedControl } from './chunk-SMVWDO72.js';
|
|
3
3
|
import { ArtifactIcon } from './chunk-AVL52EME.js';
|
|
4
4
|
import { isApplePlatform, Kbd } from './chunk-SMBKXWML.js';
|
|
5
|
-
import { Menu } from './chunk-
|
|
5
|
+
import { Menu } from './chunk-3JIZ2A6K.js';
|
|
6
6
|
import { Button } from './chunk-OG6CL3EB.js';
|
|
7
|
-
import { IconButton } from './chunk-LACA4JGC.js';
|
|
8
7
|
import { returnFocus } from './chunk-NUZHC6MM.js';
|
|
8
|
+
import { IconButton } from './chunk-LACA4JGC.js';
|
|
9
9
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
10
10
|
import './ArtifactKinds-O3CALPVX.css';
|
|
11
11
|
import './ArtifactBar-UMZCTARR.css';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SlideStage } from './chunk-RMEBFYL7.js';
|
|
2
2
|
import { useReorder } from './chunk-XJ2QEBMM.js';
|
|
3
3
|
import { Kbd, isApplePlatform } from './chunk-SMBKXWML.js';
|
|
4
|
-
import { Menu } from './chunk-
|
|
4
|
+
import { Menu } from './chunk-3JIZ2A6K.js';
|
|
5
5
|
import { VisuallyHidden } from './chunk-BZFWDIV6.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
7
7
|
import './SlideFilmstrip-PAT7P4OG.css';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useThemePreference, useDensityPreference } from './chunk-Z24ZUSTX.js';
|
|
2
|
-
import { SegmentedControl } from './chunk-
|
|
2
|
+
import { SegmentedControl } from './chunk-SMVWDO72.js';
|
|
3
3
|
import { SunGlyph, MonitorGlyph, MoonGlyph } from '@crewlethq/icons/glyphs';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMediaMatch } from './chunk-RTPQDNW3.js';
|
|
2
|
-
import { Menu } from './chunk-
|
|
2
|
+
import { Menu } from './chunk-3JIZ2A6K.js';
|
|
3
3
|
import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
|
|
4
4
|
import { useModalLayer, focusables } from './chunk-H5XTJ7GJ.js';
|
|
5
5
|
import { IconButton } from './chunk-LACA4JGC.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useTreeState, useMeasuredSizes, layoutForest, treeAncestors, useLayoutAnchor, treeExpandable, layoutConnectors, treeItemAction, treeStep, treePosInSet, treeSetSize, treeLevel, placeGroups } from './chunk-MY374UUD.js';
|
|
2
|
-
import { CANVAS_COMPOSE_CONTEXT, CANVAS_FIT_MAX_ZOOM, Canvas } from './chunk-
|
|
2
|
+
import { CANVAS_COMPOSE_CONTEXT, CANVAS_FIT_MAX_ZOOM, Canvas } from './chunk-ICPQIAD6.js';
|
|
3
3
|
import { focusables } from './chunk-H5XTJ7GJ.js';
|
|
4
4
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
5
|
import './TreeCanvas-QA3PDFTK.css';
|
|
@@ -9,7 +9,7 @@ import { Popover } from './chunk-KHJIEPZV.js';
|
|
|
9
9
|
import { Tooltip } from './chunk-I33UIUZD.js';
|
|
10
10
|
import { StatusDot } from './chunk-WIATRXEJ.js';
|
|
11
11
|
import { Avatar } from './chunk-PZKHBB7D.js';
|
|
12
|
-
import { Menu } from './chunk-
|
|
12
|
+
import { Menu } from './chunk-3JIZ2A6K.js';
|
|
13
13
|
import { Button } from './chunk-OG6CL3EB.js';
|
|
14
14
|
import { isComposing } from './chunk-H5XTJ7GJ.js';
|
|
15
15
|
import { IconButton } from './chunk-LACA4JGC.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Toolbar } from './chunk-NR4CPM4T.js';
|
|
2
|
-
import { ShortcutTip } from './chunk-
|
|
2
|
+
import { ShortcutTip } from './chunk-ICPQIAD6.js';
|
|
3
3
|
import { IconButton } from './chunk-LACA4JGC.js';
|
|
4
4
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
5
|
import './CanvasToolbar-EM5EVZED.css';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { PageHeader } from './chunk-DKB73KZI.js';
|
|
2
|
-
import { DataTable } from './chunk-
|
|
3
|
-
import { DateTimePicker } from './chunk-
|
|
2
|
+
import { DataTable } from './chunk-BUDVAXGD.js';
|
|
3
|
+
import { DateTimePicker } from './chunk-I6NNUIIT.js';
|
|
4
4
|
import { useListbox, useOptionKeys } from './chunk-7KHM2FZH.js';
|
|
5
5
|
import { Toolbar } from './chunk-NR4CPM4T.js';
|
|
6
6
|
import { Popover } from './chunk-KHJIEPZV.js';
|
|
7
7
|
import { RelativeTime } from './chunk-3CZ7XAVY.js';
|
|
8
8
|
import { Kbd } from './chunk-SMBKXWML.js';
|
|
9
|
-
import { Input } from './chunk-
|
|
9
|
+
import { Input } from './chunk-VS7EXOKP.js';
|
|
10
10
|
import { Count } from './chunk-BHHIIK3M.js';
|
|
11
|
-
import { Menu } from './chunk-
|
|
11
|
+
import { Menu } from './chunk-3JIZ2A6K.js';
|
|
12
12
|
import { Button } from './chunk-OG6CL3EB.js';
|
|
13
13
|
import { IconButton } from './chunk-LACA4JGC.js';
|
|
14
14
|
import { VisuallyHidden } from './chunk-BZFWDIV6.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Select } from './chunk-XQZ6EWOE.js';
|
|
2
2
|
import { SHEET_LABELS, SHEET_COLUMN_TYPES, optionHue, retypeColumn } from './chunk-LFSIKGRQ.js';
|
|
3
|
-
import { HueSwatch } from './chunk-
|
|
3
|
+
import { HueSwatch } from './chunk-RBUA7ZNK.js';
|
|
4
4
|
import { NODE_HUES, NODE_HUE_NAMES } from './chunk-AYKXMIOR.js';
|
|
5
|
-
import { Checkbox } from './chunk-
|
|
5
|
+
import { Checkbox } from './chunk-2ZXA2TN4.js';
|
|
6
6
|
import { Kbd } from './chunk-SMBKXWML.js';
|
|
7
|
-
import { FormField, Input } from './chunk-
|
|
8
|
-
import { Menu } from './chunk-
|
|
7
|
+
import { FormField, Input } from './chunk-VS7EXOKP.js';
|
|
8
|
+
import { Menu } from './chunk-3JIZ2A6K.js';
|
|
9
9
|
import { Button } from './chunk-OG6CL3EB.js';
|
|
10
10
|
import { IconButton } from './chunk-LACA4JGC.js';
|
|
11
11
|
import { VisuallyHidden } from './chunk-BZFWDIV6.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useReorder } from './chunk-XJ2QEBMM.js';
|
|
2
|
-
import { Input } from './chunk-
|
|
3
|
-
import { Menu } from './chunk-
|
|
2
|
+
import { Input } from './chunk-VS7EXOKP.js';
|
|
3
|
+
import { Menu } from './chunk-3JIZ2A6K.js';
|
|
4
4
|
import { IconButton } from './chunk-LACA4JGC.js';
|
|
5
5
|
import { VisuallyHidden } from './chunk-BZFWDIV6.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -3,7 +3,7 @@ import { useListbox, useOptionKeys } from './chunk-7KHM2FZH.js';
|
|
|
3
3
|
import { Popover } from './chunk-KHJIEPZV.js';
|
|
4
4
|
import { KeyChip, highlightMatch } from './chunk-FYTIJM2T.js';
|
|
5
5
|
import { Skeleton } from './chunk-TEUQWOWZ.js';
|
|
6
|
-
import { Input } from './chunk-
|
|
6
|
+
import { Input } from './chunk-VS7EXOKP.js';
|
|
7
7
|
import { announce } from './chunk-RSAQOKH3.js';
|
|
8
8
|
import { useMediaMatch } from './chunk-RTPQDNW3.js';
|
|
9
9
|
import { focusables, isComposing } from './chunk-H5XTJ7GJ.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { diffLines, diffStat, collapseDiff, DiffSummary, DiffView } from './chunk-BVWSLXTY.js';
|
|
2
|
-
import { SegmentedControl } from './chunk-
|
|
2
|
+
import { SegmentedControl } from './chunk-SMVWDO72.js';
|
|
3
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';
|
|
@@ -2,11 +2,11 @@ import { characterCountState, CharacterCount } from './chunk-XCUUI7E7.js';
|
|
|
2
2
|
import { useHeadingLevel, headingTag, HeadingLevelProvider, nextHeadingLevel } from './chunk-PQADV6P6.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 { VisuallyHidden } from './chunk-BZFWDIV6.js';
|
|
8
8
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
9
|
-
import './Input-
|
|
9
|
+
import './Input-GMOWHZRG.css';
|
|
10
10
|
import './VisuallyHidden-L552H7OA.css';
|
|
11
11
|
import { forwardRef, useRef, useState, useImperativeHandle, useEffect, useId } from 'react';
|
|
12
12
|
import { XGlyph } from '@crewlethq/icons/glyphs';
|
|
@@ -208,6 +208,7 @@ var FormField = ({
|
|
|
208
208
|
helperOnFocus = false,
|
|
209
209
|
error,
|
|
210
210
|
limit,
|
|
211
|
+
tally,
|
|
211
212
|
labelAction,
|
|
212
213
|
hideLabel = false,
|
|
213
214
|
as = "div",
|
|
@@ -222,9 +223,11 @@ var FormField = ({
|
|
|
222
223
|
const helperId = helper ? `${id}-helper` : void 0;
|
|
223
224
|
const errorId = error ? `${id}-error` : void 0;
|
|
224
225
|
const countId = limit ? `${id}-count` : void 0;
|
|
226
|
+
const hasTally = tally !== void 0 && tally !== null && tally !== false;
|
|
227
|
+
const tallyId = hasTally ? `${id}-tally` : void 0;
|
|
225
228
|
const over = limit !== void 0 && characterCountState(limit.length, limit.max) === "over";
|
|
226
229
|
const extra = describedBy === void 0 ? [] : typeof describedBy === "string" ? [describedBy] : [...describedBy];
|
|
227
|
-
const described = [...extra, helperId, countId, errorId].filter(Boolean).join(" ");
|
|
230
|
+
const described = [...extra, helperId, tallyId, countId, errorId].filter(Boolean).join(" ");
|
|
228
231
|
const invalid = Boolean(error) || over;
|
|
229
232
|
const field = {
|
|
230
233
|
id,
|
|
@@ -235,9 +238,10 @@ var FormField = ({
|
|
|
235
238
|
const help = helper ? /* @__PURE__ */ jsx("div", { id: helperId, className: "crewlet-form-field__helper", children: helper }) : null;
|
|
236
239
|
const body = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
237
240
|
typeof children === "function" ? children(field) : children,
|
|
238
|
-
limit ? /* @__PURE__ */ jsxs("div", { className: "crewlet-form-field__meta", children: [
|
|
241
|
+
limit || hasTally ? /* @__PURE__ */ jsxs("div", { className: "crewlet-form-field__meta", children: [
|
|
239
242
|
help ?? /* @__PURE__ */ jsx("span", { className: "crewlet-form-field__meta-spacer" }),
|
|
240
|
-
/* @__PURE__ */ jsx(
|
|
243
|
+
hasTally ? /* @__PURE__ */ jsx("span", { id: tallyId, className: "crewlet-form-field__tally", children: tally }) : null,
|
|
244
|
+
limit ? /* @__PURE__ */ jsx(CharacterCount, { id: countId, length: limit.length, max: limit.max, labels: limit.labels }) : null
|
|
241
245
|
] }) : help,
|
|
242
246
|
error ? /* @__PURE__ */ jsx("div", { id: errorId, className: "crewlet-form-field__error", role: "alert", children: error }) : null
|
|
243
247
|
] });
|