@crewlethq/ui 0.4.4 → 0.5.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 +888 -24
- package/dist/Accordion/index.js +2 -2
- package/dist/AddPill/index.js +1 -1
- package/dist/{AddPill-DFWXYLIQ.css → AddPill-IJQYCY6C.css} +9 -0
- package/dist/AppShell/AppShell.d.ts +26 -5
- package/dist/AppShell/index.js +3 -3
- package/dist/{AppShell-NVE6LHNI.css → AppShell-XARELGIH.css} +178 -25
- package/dist/Avatar/Avatar.d.ts +85 -40
- package/dist/Avatar/AvatarStack.d.ts +76 -0
- package/dist/Avatar/index.d.ts +5 -2
- package/dist/Avatar/index.js +1 -1
- package/dist/Avatar-XID7Z74C.css +200 -0
- package/dist/AvatarStack-GEJBNV7E.css +72 -0
- package/dist/BrandLockup/index.js +1 -1
- package/dist/{BrandLockup-6ISDEHPJ.css → BrandLockup-JKGXFCZF.css} +25 -19
- package/dist/Button/Button.d.ts +7 -2
- package/dist/Button/index.js +1 -1
- package/dist/{Button-D4J6B4MA.css → Button-X4B2TJAQ.css} +50 -19
- package/dist/Callout/index.js +1 -1
- package/dist/Canvas/index.js +4 -4
- package/dist/Card/Card.d.ts +9 -5
- package/dist/Card/index.js +1 -1
- package/dist/{Card-RLR254LD.css → Card-GLP7SUV6.css} +25 -18
- package/dist/Charts/BarList.d.ts +18 -1
- package/dist/Charts/ChartTooltip.d.ts +68 -0
- package/dist/Charts/StackedBar.d.ts +25 -7
- package/dist/Charts/StackedColumns.d.ts +112 -0
- package/dist/Charts/TimeSeries.d.ts +33 -2
- package/dist/Charts/dataColor.d.ts +22 -14
- package/dist/Charts/index.d.ts +6 -0
- package/dist/Charts/index.js +1 -1
- package/dist/Charts/useChartHover.d.ts +56 -0
- package/dist/Charts-B3YEF7R4.css +742 -0
- package/dist/Checkbox/index.js +1 -1
- package/dist/{Checkbox-VGW26YLQ.css → Checkbox-BOXQ747I.css} +2 -2
- package/dist/CodeBlock/index.js +4 -4
- package/dist/Combobox/index.js +5 -5
- package/dist/CommandPalette/CommandPalette.d.ts +97 -6
- package/dist/CommandPalette/index.d.ts +1 -1
- package/dist/CommandPalette/index.js +9 -7
- package/dist/CommandPalette-C5AMKGN2.css +259 -0
- package/dist/Copyable/index.js +3 -3
- package/dist/DataTable/index.js +7 -7
- package/dist/{DataTable-37UWTRN6.css → DataTable-OLHPF7D4.css} +35 -38
- package/dist/DataView/index.js +15 -15
- package/dist/{DataView-256YF32J.css → DataView-N6JX464S.css} +5 -4
- package/dist/DateTimePicker/index.js +5 -5
- package/dist/DiffList/index.js +1 -1
- package/dist/Disclosure/index.js +2 -2
- package/dist/EntityChip/EntityChip.d.ts +9 -12
- package/dist/EntityChip/index.d.ts +1 -1
- package/dist/EntityChip/index.js +2 -2
- package/dist/ErrorBoundary/index.js +2 -2
- package/dist/{ErrorBoundary-ME36CQTA.css → ErrorBoundary-U2PA3LY2.css} +4 -4
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-VQGNMJDI.css → IconButton-TVEUWK6L.css} +2 -2
- package/dist/ImageUpload/ImageUpload.d.ts +10 -7
- package/dist/ImageUpload/index.js +2 -2
- package/dist/{ImageUpload-HKFIZR6D.css → ImageUpload-YCHJMUGX.css} +24 -10
- package/dist/Input/index.js +2 -2
- package/dist/Kbd/Kbd.d.ts +14 -4
- package/dist/Kbd/index.js +1 -1
- package/dist/Kbd-JPLDVJIP.css +71 -0
- package/dist/Layer/index.js +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/List/index.js +1 -1
- package/dist/{List-XTHESXLR.css → List-MYJIV6MP.css} +12 -2
- package/dist/ListInput/index.js +6 -6
- package/dist/Listbox/index.js +2 -2
- package/dist/Listbox/useListbox.d.ts +2 -0
- package/dist/{Listbox-ZXYYNN6U.css → Listbox-6WJNJQVQ.css} +32 -7
- package/dist/Menu/index.js +4 -4
- package/dist/Meter/Meter.d.ts +103 -16
- package/dist/Meter/index.d.ts +2 -2
- package/dist/Meter/index.js +1 -1
- package/dist/{Meter-SKOOXQBC.css → Meter-5VCSFMZW.css} +46 -7
- package/dist/Modal/index.js +4 -4
- package/dist/{Modal-XYQJ4BL6.css → Modal-JAYBS2KS.css} +13 -4
- package/dist/OrgLabel/OrgLabel.d.ts +60 -24
- package/dist/OrgLabel/index.d.ts +1 -1
- package/dist/OrgLabel/index.js +2 -1
- package/dist/{OrgLabel-D7U6QJZD.css → OrgLabel-CR233G34.css} +9 -18
- package/dist/OrgNode/index.js +3 -2
- package/dist/OrgTable/OrgTable.d.ts +2 -2
- package/dist/OrgTable/index.js +8 -7
- package/dist/Popover/index.js +2 -2
- package/dist/PricingCard/index.js +3 -3
- package/dist/{PricingCard-JFI7RYXP.css → PricingCard-7EFXRSD2.css} +4 -5
- package/dist/SearchTrigger/SearchTrigger.d.ts +23 -4
- package/dist/SearchTrigger/index.d.ts +1 -1
- package/dist/SearchTrigger/index.js +1 -1
- package/dist/SearchTrigger-Z5D4AAY7.css +112 -0
- package/dist/SegmentedControl/index.js +2 -2
- package/dist/SegmentedMeter/SegmentedMeter.d.ts +107 -0
- package/dist/SegmentedMeter/index.d.ts +3 -0
- package/dist/SegmentedMeter/index.js +2 -0
- package/dist/SegmentedMeter-KQNML2TW.css +109 -0
- package/dist/Select/index.js +3 -3
- package/dist/Shortcut/index.js +2 -2
- package/dist/SidebarNav/SidebarNav.d.ts +85 -25
- package/dist/SidebarNav/index.d.ts +1 -1
- package/dist/SidebarNav/index.js +1 -1
- package/dist/SidebarNav-X5NLZNWA.css +424 -0
- package/dist/StatCard/StatCard.d.ts +59 -12
- package/dist/StatCard/index.d.ts +1 -1
- package/dist/StatCard/index.js +1 -1
- package/dist/StatCard-KPAFD4E2.css +204 -0
- package/dist/StatGroup/index.js +1 -1
- package/dist/{StatGroup-TGB6AEKM.css → StatGroup-HVG6O62W.css} +8 -9
- package/dist/StatusDot/StatusDot.d.ts +24 -6
- package/dist/StatusDot/index.js +1 -1
- package/dist/StatusDot-7OMCQCZF.css +186 -0
- package/dist/Stepper/Stepper.d.ts +78 -0
- package/dist/Stepper/index.d.ts +3 -0
- package/dist/Stepper/index.js +4 -0
- package/dist/Stepper-HW4JM3YH.css +176 -0
- package/dist/Tabs/index.js +1 -1
- package/dist/{Tabs-MJ2E3VPK.css → Tabs-XCNPHA7B.css} +46 -26
- package/dist/Tag/Tag.d.ts +29 -22
- package/dist/Tag/index.js +2 -2
- package/dist/{Tag-VNZEYLB6.css → Tag-GBE7LQJP.css} +82 -83
- package/dist/TagsInput/index.js +7 -7
- package/dist/ThemeSwitcher/ThemeSwitcher.d.ts +53 -21
- package/dist/ThemeSwitcher/index.d.ts +3 -3
- package/dist/ThemeSwitcher/index.js +4 -3
- package/dist/ThemeSwitcher/preferences.d.ts +19 -5
- package/dist/ThemeToggle/ThemeToggle.d.ts +40 -0
- package/dist/ThemeToggle/index.d.ts +2 -0
- package/dist/ThemeToggle/index.js +5 -0
- package/dist/TimeWindowPicker/index.js +8 -8
- package/dist/Toaster/index.js +2 -2
- package/dist/Toolbar/index.js +2 -2
- package/dist/{Toolbar-IP6LXN45.css → Toolbar-HUOSMNTH.css} +3 -1
- package/dist/Tooltip/index.js +2 -2
- package/dist/Tree/index.d.ts +2 -2
- package/dist/Tree/index.js +1 -1
- package/dist/Tree/layout.d.ts +103 -28
- package/dist/TreeCanvas/TreeCanvas.d.ts +60 -14
- package/dist/TreeCanvas/index.d.ts +1 -1
- package/dist/TreeCanvas/index.js +6 -6
- package/dist/TreeCanvas/motion.d.ts +3 -2
- package/dist/{TreeCanvas-WBNQPHC7.css → TreeCanvas-HVOV4SQN.css} +154 -30
- package/dist/TreeGrid/index.js +4 -4
- package/dist/{chunk-F6OE5FH3.js → chunk-2FPENTCF.js} +1 -1
- package/dist/chunk-4AK52VHB.js +88 -0
- package/dist/{chunk-7EM5T4ME.js → chunk-4IQD3HUQ.js} +2 -2
- package/dist/{chunk-YODNNSZL.js → chunk-4PZ6FJKW.js} +43 -13
- package/dist/{chunk-F27EPQ7D.js → chunk-4UQ7SMPK.js} +1 -1
- package/dist/chunk-5QWIJSQM.js +73 -0
- package/dist/{chunk-KIC7BZYJ.js → chunk-6MU7HNB4.js} +6 -5
- package/dist/{chunk-S2XHHEW4.js → chunk-74KMX7YH.js} +4 -4
- package/dist/{chunk-WNI2WSJF.js → chunk-7KBNFFM3.js} +1 -1
- package/dist/{chunk-EFSG7HNU.js → chunk-AUS5FNQE.js} +1 -1
- package/dist/{chunk-CMEE37QJ.js → chunk-BMYPGGPV.js} +4 -4
- package/dist/{chunk-H4FBTAYS.js → chunk-BNCCEER3.js} +8 -8
- package/dist/chunk-C5WJUZVR.js +56 -0
- package/dist/{chunk-5WS6L6FA.js → chunk-CAIHUYXV.js} +9 -9
- package/dist/{chunk-5KSRXHOW.js → chunk-CQY5NTRS.js} +1 -1
- package/dist/{chunk-MW356IVK.js → chunk-D6EVJUGU.js} +2 -2
- package/dist/{chunk-7PEFUMQJ.js → chunk-DHPUMOTX.js} +2 -2
- package/dist/{chunk-HZ5XZNPS.js → chunk-DS2C73RJ.js} +3 -3
- package/dist/{chunk-GKHAKGOF.js → chunk-DSUY5F4E.js} +3 -3
- package/dist/{chunk-Q4ZPPART.js → chunk-EFYPAJT3.js} +3 -3
- package/dist/{chunk-PATXSJGR.js → chunk-ERVO6OUF.js} +17 -17
- package/dist/{chunk-BZYDZBAN.js → chunk-ETYEBKR4.js} +3 -3
- package/dist/{chunk-CC67MUUO.js → chunk-FD5UEN6X.js} +30 -30
- package/dist/{chunk-5SDBMKUO.js → chunk-FIFNP6PL.js} +3 -3
- package/dist/{chunk-7HPRF5XN.js → chunk-FUF52K7E.js} +98 -16
- package/dist/{chunk-5KPQ6D7N.js → chunk-FZVJDJFN.js} +2 -2
- package/dist/chunk-IA232OTU.js +156 -0
- package/dist/{chunk-2EOKFKHX.js → chunk-IG27QX7Q.js} +7 -7
- package/dist/chunk-IKB6HFGK.js +55 -0
- package/dist/{chunk-T43A26SD.js → chunk-IPVQKAHO.js} +6 -6
- package/dist/{chunk-3EYF6HKB.js → chunk-IVFJD7WY.js} +28 -9
- package/dist/{chunk-XJWXPRSK.js → chunk-JGRNTBF2.js} +11 -11
- package/dist/chunk-K3OWD7BJ.js +121 -0
- package/dist/{chunk-6KCO2D5C.js → chunk-KD4H66L6.js} +7 -20
- package/dist/{chunk-SFZOKW2G.js → chunk-KJ34ZBBI.js} +8 -3
- package/dist/{chunk-AQTBF4EB.js → chunk-LFHCXZO5.js} +5 -5
- package/dist/{chunk-LWKJQTOM.js → chunk-MICH6QSJ.js} +1 -1
- package/dist/chunk-N3DPO6HG.js +226 -0
- package/dist/{chunk-S4GZWSKR.js → chunk-OM5E3TTK.js} +1 -1
- package/dist/{chunk-3QRYCPXQ.js → chunk-OPKIKM35.js} +6 -6
- package/dist/{chunk-5EKIWVOR.js → chunk-PGRPNDWM.js} +2 -2
- package/dist/{chunk-FSOW3ARP.js → chunk-PQNILU27.js} +9 -9
- package/dist/{chunk-QNCVHRZL.js → chunk-QVAFL2LE.js} +1 -1
- package/dist/{chunk-Q3B66TJM.js → chunk-QY7UU5ZB.js} +1 -1
- package/dist/{chunk-ITHXJHBB.js → chunk-R25RGPUB.js} +1 -0
- package/dist/{chunk-KLJCCMF3.js → chunk-R6735B37.js} +2 -2
- package/dist/{chunk-3ZP55QZE.js → chunk-R6FBDTP3.js} +4 -4
- package/dist/{chunk-7FZ53WDJ.js → chunk-RIAZM6L3.js} +1 -1
- package/dist/chunk-RJM4QCGG.js +550 -0
- package/dist/{chunk-NTRZGNEX.js → chunk-S3BCVWTU.js} +215 -46
- package/dist/chunk-S7KW47IQ.js +121 -0
- package/dist/{chunk-KNYYCWMK.js → chunk-SJQ546ID.js} +4 -4
- package/dist/{chunk-D35VTV2Z.js → chunk-SV7QAONL.js} +1 -1
- package/dist/{chunk-IAJLHVUA.js → chunk-TIWAHZZ6.js} +1 -1
- package/dist/{chunk-2PRH365R.js → chunk-UA7O3KKJ.js} +1 -1
- package/dist/{chunk-NPZY6YYL.js → chunk-UG5ZMAXW.js} +6 -6
- package/dist/{chunk-NDCATSW7.js → chunk-V34H2YCY.js} +1 -1
- package/dist/chunk-WIATRXEJ.js +22 -0
- package/dist/{chunk-5C5YMZQU.js → chunk-WOFOMTGB.js} +16 -10
- package/dist/{chunk-QYOFACSP.js → chunk-WSOFKOLP.js} +3 -3
- package/dist/{chunk-MNAXYY3R.js → chunk-WUVZDFHS.js} +31 -11
- package/dist/{chunk-DB2VDLVR.js → chunk-YIMOT5OO.js} +10 -10
- package/dist/{chunk-2ZQMA2WB.js → chunk-ZPSOF6VL.js} +2 -2
- package/dist/generated/index.d.ts +3 -0
- package/dist/generated/index.js +69 -65
- package/dist/index.js +69 -65
- package/dist/styles.css +2538 -741
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/tone.d.ts +7 -12
- package/package.json +4 -4
- package/scripts/check-css-literals.mjs +159 -23
- package/scripts/check-css-variables.mjs +5 -3
- package/scripts/css-source.mjs +97 -5
- package/dist/Avatar-P2KRQM2B.css +0 -156
- package/dist/Charts-D7G2BSXH.css +0 -277
- package/dist/CommandPalette-CSJDUCQA.css +0 -115
- package/dist/Kbd-W66MXQI5.css +0 -61
- package/dist/SearchTrigger-QXOYAUUY.css +0 -79
- package/dist/SidebarNav-QGSFKZYA.css +0 -319
- package/dist/StatCard-KYPKZUWX.css +0 -111
- package/dist/StatusDot-HA2L2FSX.css +0 -84
- package/dist/chunk-22O7LAW2.js +0 -41
- package/dist/chunk-AJNCATWZ.js +0 -144
- package/dist/chunk-F4PJZ4ED.js +0 -245
- package/dist/chunk-PNFASD6F.js +0 -98
- package/dist/chunk-PZSWF74H.js +0 -15
- package/dist/chunk-R66KLW7S.js +0 -143
- /package/dist/{chunk-ZCR6YGQ4.js → chunk-PKIN4IMB.js} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { TreeGrid } from './chunk-
|
|
2
|
-
import { createTreeModel } from './chunk-
|
|
3
|
-
import { OrgLabel } from './chunk-
|
|
4
|
-
import { AddPill } from './chunk-
|
|
5
|
-
import { IconButton } from './chunk-
|
|
1
|
+
import { TreeGrid } from './chunk-FIFNP6PL.js';
|
|
2
|
+
import { createTreeModel } from './chunk-S3BCVWTU.js';
|
|
3
|
+
import { OrgLabel } from './chunk-WOFOMTGB.js';
|
|
4
|
+
import { AddPill } from './chunk-OM5E3TTK.js';
|
|
5
|
+
import { IconButton } from './chunk-4UQ7SMPK.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
7
7
|
import './OrgTable-VWMFC3TB.css';
|
|
8
8
|
import { useMemo, useRef, useImperativeHandle, useCallback } from 'react';
|
|
9
|
-
import {
|
|
9
|
+
import { ChevronDownGlyph, ChevronUpGlyph } from '@crewlethq/icons/glyphs';
|
|
10
10
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
11
11
|
|
|
12
12
|
var LABELS = {
|
|
@@ -69,7 +69,7 @@ function OrgTable({
|
|
|
69
69
|
size: "sm",
|
|
70
70
|
label: text.expandAll,
|
|
71
71
|
title: text.expandAll,
|
|
72
|
-
icon: /* @__PURE__ */ jsx(
|
|
72
|
+
icon: /* @__PURE__ */ jsx(ChevronDownGlyph, {}),
|
|
73
73
|
onClick: () => grid.current?.expandAll()
|
|
74
74
|
}
|
|
75
75
|
),
|
|
@@ -79,7 +79,7 @@ function OrgTable({
|
|
|
79
79
|
size: "sm",
|
|
80
80
|
label: text.collapseAll,
|
|
81
81
|
title: text.collapseAll,
|
|
82
|
-
icon: /* @__PURE__ */ jsx(
|
|
82
|
+
icon: /* @__PURE__ */ jsx(ChevronUpGlyph, {}),
|
|
83
83
|
onClick: () => grid.current?.collapseAll()
|
|
84
84
|
}
|
|
85
85
|
)
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { useThemePreference, useSystemTheme, resolveTheme } from './chunk-K3OWD7BJ.js';
|
|
2
|
+
import { IconButton } from './chunk-4UQ7SMPK.js';
|
|
3
|
+
import { SunGlyph, MoonGlyph } from '@crewlethq/icons/glyphs';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
function ThemeToggle(props) {
|
|
7
|
+
if (props.value !== void 0) {
|
|
8
|
+
const { storageKey: _none, ...controlled } = props;
|
|
9
|
+
return /* @__PURE__ */ jsx(ToggleButton, { ...controlled });
|
|
10
|
+
}
|
|
11
|
+
const { value: _stored, storageKey = "crewlet_theme", ...button } = props;
|
|
12
|
+
return /* @__PURE__ */ jsx(StoredThemeToggle, { ...button, storageKey });
|
|
13
|
+
}
|
|
14
|
+
function StoredThemeToggle({
|
|
15
|
+
storageKey,
|
|
16
|
+
onChange,
|
|
17
|
+
...button
|
|
18
|
+
}) {
|
|
19
|
+
const [theme, choose] = useThemePreference({ storageKey });
|
|
20
|
+
return /* @__PURE__ */ jsx(
|
|
21
|
+
ToggleButton,
|
|
22
|
+
{
|
|
23
|
+
...button,
|
|
24
|
+
value: theme,
|
|
25
|
+
onChange: (next) => {
|
|
26
|
+
choose(next);
|
|
27
|
+
onChange?.(next);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
function ToggleButton({
|
|
33
|
+
value,
|
|
34
|
+
onChange,
|
|
35
|
+
toLightLabel = "Switch to the light theme",
|
|
36
|
+
toDarkLabel = "Switch to the dark theme",
|
|
37
|
+
size = "sm",
|
|
38
|
+
variant = "ghost",
|
|
39
|
+
className
|
|
40
|
+
}) {
|
|
41
|
+
const system = useSystemTheme();
|
|
42
|
+
const next = resolveTheme(value, system) === "dark" ? "light" : "dark";
|
|
43
|
+
return /* @__PURE__ */ jsx(
|
|
44
|
+
IconButton,
|
|
45
|
+
{
|
|
46
|
+
label: next === "light" ? toLightLabel : toDarkLabel,
|
|
47
|
+
icon: next === "light" ? /* @__PURE__ */ jsx(SunGlyph, {}) : /* @__PURE__ */ jsx(MoonGlyph, {}),
|
|
48
|
+
size,
|
|
49
|
+
variant,
|
|
50
|
+
className,
|
|
51
|
+
onClick: () => onChange(next)
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export { ThemeToggle };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import './ImageUpload-
|
|
1
|
+
import { avatarCorner, Avatar } from './chunk-IA232OTU.js';
|
|
2
|
+
import './ImageUpload-YCHJMUGX.css';
|
|
3
3
|
import { useRef } from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { CameraGlyph, XGlyph } from '@crewlethq/icons/glyphs';
|
|
5
5
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
7
|
var ImageUpload = ({
|
|
8
8
|
src,
|
|
9
9
|
name,
|
|
10
10
|
size = 64,
|
|
11
|
-
|
|
11
|
+
kind = "agent",
|
|
12
12
|
readOnly = false,
|
|
13
13
|
uploading = false,
|
|
14
14
|
accept = "image/*",
|
|
@@ -41,7 +41,7 @@ var ImageUpload = ({
|
|
|
41
41
|
const empty = !src && !readOnly;
|
|
42
42
|
const wrapperClasses = [
|
|
43
43
|
"crewlet-image-upload",
|
|
44
|
-
`crewlet-image-upload--${
|
|
44
|
+
`crewlet-image-upload--${kind}`,
|
|
45
45
|
uploading ? "is-uploading" : "",
|
|
46
46
|
empty ? "is-empty" : "",
|
|
47
47
|
className
|
|
@@ -54,7 +54,7 @@ var ImageUpload = ({
|
|
|
54
54
|
* showed the badge's corners through the overlay at every size but the one
|
|
55
55
|
* the step was chosen for.
|
|
56
56
|
*/
|
|
57
|
-
"--crewlet-image-upload-corner":
|
|
57
|
+
"--crewlet-image-upload-corner": `${avatarCorner(size)}px`,
|
|
58
58
|
...style
|
|
59
59
|
};
|
|
60
60
|
const triggerLabel = uploading ? "Uploading image" : src ? "Change image" : "Upload image";
|
|
@@ -69,9 +69,9 @@ var ImageUpload = ({
|
|
|
69
69
|
"aria-label": triggerLabel,
|
|
70
70
|
"aria-busy": uploading,
|
|
71
71
|
children: [
|
|
72
|
-
/* @__PURE__ */ jsx(Avatar, { src, name, size,
|
|
72
|
+
/* @__PURE__ */ jsx(Avatar, { src, name, size, kind }),
|
|
73
73
|
!readOnly ? /* @__PURE__ */ jsx("span", { className: "crewlet-image-upload__overlay", "aria-hidden": true, children: uploading ? /* @__PURE__ */ jsx("span", { className: "crewlet-image-upload__spinner" }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
74
|
-
/* @__PURE__ */ jsx(
|
|
74
|
+
/* @__PURE__ */ jsx(CameraGlyph, { size: "lg" }),
|
|
75
75
|
/* @__PURE__ */ jsx("span", { className: "crewlet-image-upload__overlay-text", children: src ? "Change" : "Upload" })
|
|
76
76
|
] }) }) : null
|
|
77
77
|
]
|
|
@@ -85,7 +85,7 @@ var ImageUpload = ({
|
|
|
85
85
|
onClick: handleRemove,
|
|
86
86
|
disabled: uploading,
|
|
87
87
|
"aria-label": "Remove image",
|
|
88
|
-
children: /* @__PURE__ */ jsx(
|
|
88
|
+
children: /* @__PURE__ */ jsx(XGlyph, { size: "sm" })
|
|
89
89
|
}
|
|
90
90
|
) : null,
|
|
91
91
|
!readOnly ? (
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useLayerContainer, viewportBounds, LAYER_GAP, outsideBounds, placePopup, LAYER_REPOSITION_EVENT } from './chunk-7RPGY3JE.js';
|
|
2
|
-
import { usePopupLayer } from './chunk-
|
|
2
|
+
import { usePopupLayer } from './chunk-R25RGPUB.js';
|
|
3
3
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
4
4
|
import './Tooltip-LKQF7CE4.css';
|
|
5
5
|
import { useId, useState, useRef, useCallback, useEffect, useLayoutEffect, cloneElement } from 'react';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useListbox } from './chunk-
|
|
2
|
-
import { Input } from './chunk-
|
|
1
|
+
import { useListbox } from './chunk-6MU7HNB4.js';
|
|
2
|
+
import { Input } from './chunk-DSUY5F4E.js';
|
|
3
3
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
4
4
|
import './Combobox-4FUVYIE7.css';
|
|
5
5
|
import { forwardRef, useId, useMemo, useRef, useCallback } from 'react';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useRoving, tabStop, tabId } from './chunk-
|
|
1
|
+
import { useRoving, tabStop, tabId } from './chunk-QY7UU5ZB.js';
|
|
2
2
|
import { Count } from './chunk-BHHIIK3M.js';
|
|
3
3
|
import { VisuallyHidden } from './chunk-BZFWDIV6.js';
|
|
4
4
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
|
-
import './Tabs-
|
|
5
|
+
import './Tabs-XCNPHA7B.css';
|
|
6
6
|
import './SegmentedControl-X3BI3XU4.css';
|
|
7
7
|
import { useId } from 'react';
|
|
8
8
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { VisuallyHidden } from './chunk-BZFWDIV6.js';
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './List-
|
|
3
|
+
import './List-MYJIV6MP.css';
|
|
4
4
|
import { createContext, useContext, Children, isValidElement, cloneElement } from 'react';
|
|
5
|
-
import {
|
|
5
|
+
import { CircleAlertGlyph } from '@crewlethq/icons/glyphs';
|
|
6
6
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
var ListContext = createContext({ variant: "divided", templated: false });
|
|
@@ -36,7 +36,7 @@ function ListItem({
|
|
|
36
36
|
const interactive = href !== void 0 || onClick !== void 0 || asChild;
|
|
37
37
|
const contents = (words) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
38
38
|
tone === "danger" ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
39
|
-
/* @__PURE__ */ jsx(
|
|
39
|
+
/* @__PURE__ */ jsx(CircleAlertGlyph, { className: "crewlet-list__danger-mark", size: "sm" }),
|
|
40
40
|
/* @__PURE__ */ jsx(VisuallyHidden, { children: dangerLabel }),
|
|
41
41
|
" "
|
|
42
42
|
] }) : null,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useHeadingLevel, headingTag, HeadingLevelProvider, nextHeadingLevel } from './chunk-PQADV6P6.js';
|
|
2
|
-
import { IconButton } from './chunk-
|
|
2
|
+
import { IconButton } from './chunk-4UQ7SMPK.js';
|
|
3
3
|
import { VisuallyHidden } from './chunk-BZFWDIV6.js';
|
|
4
4
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
5
|
import './Input-2PU5CPKK.css';
|
|
6
6
|
import { forwardRef, useRef, useState, useImperativeHandle, useEffect, useId } from 'react';
|
|
7
|
-
import {
|
|
7
|
+
import { XGlyph } from '@crewlethq/icons/glyphs';
|
|
8
8
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
9
9
|
|
|
10
10
|
var Input = forwardRef(function Input2({
|
|
@@ -68,7 +68,7 @@ var Input = forwardRef(function Input2({
|
|
|
68
68
|
}
|
|
69
69
|
),
|
|
70
70
|
trailing ? /* @__PURE__ */ jsx("span", { className: "crewlet-input__trailing", children: trailing }) : null,
|
|
71
|
-
onClear && filled ? /* @__PURE__ */ jsx("span", { className: "crewlet-input__clear", children: /* @__PURE__ */ jsx(IconButton, { size: "sm", variant: "ghost", label: clearLabel, icon: /* @__PURE__ */ jsx(
|
|
71
|
+
onClear && filled ? /* @__PURE__ */ jsx("span", { className: "crewlet-input__clear", children: /* @__PURE__ */ jsx(IconButton, { size: "sm", variant: "ghost", label: clearLabel, icon: /* @__PURE__ */ jsx(XGlyph, { size: "xs" }), onClick: clear, disabled }) }) : null
|
|
72
72
|
]
|
|
73
73
|
}
|
|
74
74
|
);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
2
|
-
import './SearchTrigger-
|
|
2
|
+
import './SearchTrigger-Z5D4AAY7.css';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { SearchGlyph } from '@crewlethq/icons/glyphs';
|
|
5
5
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
|
-
var SearchTrigger = forwardRef(function SearchTrigger2({ label = "Search", shortcut, keyshortcuts, icon, className, type = "button", ...rest }, ref) {
|
|
7
|
+
var SearchTrigger = forwardRef(function SearchTrigger2({ label = "Search", variant = "rail", shortcut, keyshortcuts, icon, className, type = "button", ...rest }, ref) {
|
|
8
8
|
return /* @__PURE__ */ jsxs(
|
|
9
9
|
"button",
|
|
10
10
|
{
|
|
11
11
|
...rest,
|
|
12
12
|
ref,
|
|
13
13
|
type,
|
|
14
|
-
className: cx("crewlet-search-trigger", className),
|
|
14
|
+
className: cx("crewlet-search-trigger", `crewlet-search-trigger--${variant}`, className),
|
|
15
15
|
"aria-label": label,
|
|
16
16
|
"aria-keyshortcuts": keyshortcuts,
|
|
17
17
|
children: [
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { Menu } from './chunk-
|
|
1
|
+
import { Menu } from './chunk-IPVQKAHO.js';
|
|
2
2
|
import { EmptyValue } from './chunk-EUCC37WY.js';
|
|
3
|
-
import {
|
|
3
|
+
import { Modal } from './chunk-IG27QX7Q.js';
|
|
4
4
|
import { useCardHeaderSlot } from './chunk-AV2DXAEL.js';
|
|
5
|
+
import { Checkbox } from './chunk-UA7O3KKJ.js';
|
|
5
6
|
import { useClipboard } from './chunk-5VNUYO76.js';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { Button } from './chunk-BZYDZBAN.js';
|
|
7
|
+
import { IconButton } from './chunk-4UQ7SMPK.js';
|
|
8
|
+
import { Button } from './chunk-ETYEBKR4.js';
|
|
9
9
|
import { VisuallyHidden } from './chunk-BZFWDIV6.js';
|
|
10
10
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
11
|
-
import './DataTable-
|
|
11
|
+
import './DataTable-OLHPF7D4.css';
|
|
12
12
|
import React, { useState, useCallback, useMemo, useRef, useLayoutEffect, useEffect, useId } from 'react';
|
|
13
13
|
import { createPortal } from 'react-dom';
|
|
14
|
-
import { CheckGlyph,
|
|
14
|
+
import { CheckGlyph, CircleAlertGlyph, CopyGlyph, ChevronsLeftGlyph, ChevronLeftGlyph, ChevronRightGlyph, ChevronsRightGlyph, SettingsGlyph, GripVerticalGlyph, ChevronUpGlyph, ChevronDownGlyph, TrashGlyph, ArrowUpGlyph, ArrowDownGlyph, ChevronsUpDownGlyph, RotateCcwGlyph } from '@crewlethq/icons/glyphs';
|
|
15
15
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
16
16
|
|
|
17
17
|
var CopyableCell = ({
|
|
@@ -39,7 +39,7 @@ var CopyableCell = ({
|
|
|
39
39
|
onClick: onCopy,
|
|
40
40
|
"aria-label": ariaLabel || "Copy to clipboard",
|
|
41
41
|
title: ariaLabel || "Copy to clipboard",
|
|
42
|
-
children: clipboard.state === "copied" ? /* @__PURE__ */ jsx(CheckGlyph, { size: "sm" }) : clipboard.state === "failed" ? /* @__PURE__ */ jsx(
|
|
42
|
+
children: clipboard.state === "copied" ? /* @__PURE__ */ jsx(CheckGlyph, { size: "sm" }) : clipboard.state === "failed" ? /* @__PURE__ */ jsx(CircleAlertGlyph, { size: "sm" }) : /* @__PURE__ */ jsx(CopyGlyph, { size: "sm" })
|
|
43
43
|
}
|
|
44
44
|
),
|
|
45
45
|
/* @__PURE__ */ jsx("span", { role: "status", children: /* @__PURE__ */ jsx(VisuallyHidden, { children: clipboard.state === "copied" ? copiedLabel : clipboard.state === "failed" ? failedLabel : "" }) })
|
|
@@ -225,7 +225,7 @@ var DataTable = ({
|
|
|
225
225
|
itemsPerPageOptions = [5, 10, 20, 50, 100],
|
|
226
226
|
onRowAction = null,
|
|
227
227
|
actionLabel = "Delete",
|
|
228
|
-
actionIcon = /* @__PURE__ */ jsx(
|
|
228
|
+
actionIcon = /* @__PURE__ */ jsx(TrashGlyph, { size: "md" }),
|
|
229
229
|
getRowKey,
|
|
230
230
|
rowKey,
|
|
231
231
|
emptyMessage = "No data available",
|
|
@@ -920,7 +920,7 @@ var DataTable = ({
|
|
|
920
920
|
if (!column) return null;
|
|
921
921
|
const isSortable = column.sortable !== false;
|
|
922
922
|
const isActive = effectiveSort.key === columnKey && effectiveSort.direction !== null;
|
|
923
|
-
const arrow = !isSortable ? null : isActive ? effectiveSort.direction === "asc" ? /* @__PURE__ */ jsx(
|
|
923
|
+
const arrow = !isSortable ? null : isActive ? effectiveSort.direction === "asc" ? /* @__PURE__ */ jsx(ArrowUpGlyph, { size: "sm" }) : /* @__PURE__ */ jsx(ArrowDownGlyph, { size: "sm" }) : /* @__PURE__ */ jsx(ChevronsUpDownGlyph, { size: "sm" });
|
|
924
924
|
const ariaSort = isActive ? effectiveSort.direction === "asc" ? "ascending" : "descending" : void 0;
|
|
925
925
|
const isSticky = column.sticky === "right";
|
|
926
926
|
if (isCompact) {
|
|
@@ -1052,7 +1052,7 @@ var DataTable = ({
|
|
|
1052
1052
|
},
|
|
1053
1053
|
"aria-label": labels.resetColumns,
|
|
1054
1054
|
title: labels.resetColumns,
|
|
1055
|
-
children: /* @__PURE__ */ jsx(
|
|
1055
|
+
children: /* @__PURE__ */ jsx(RotateCcwGlyph, { size: "md" })
|
|
1056
1056
|
}
|
|
1057
1057
|
),
|
|
1058
1058
|
/* @__PURE__ */ jsx(
|
|
@@ -1216,7 +1216,7 @@ var DataTable = ({
|
|
|
1216
1216
|
onClick: () => goToPage(1),
|
|
1217
1217
|
disabled: currentPage <= 1,
|
|
1218
1218
|
label: labels.firstPage,
|
|
1219
|
-
icon: /* @__PURE__ */ jsx(
|
|
1219
|
+
icon: /* @__PURE__ */ jsx(ChevronsLeftGlyph, { size: "md" })
|
|
1220
1220
|
}
|
|
1221
1221
|
),
|
|
1222
1222
|
/* @__PURE__ */ jsx(
|
|
@@ -1257,7 +1257,7 @@ var DataTable = ({
|
|
|
1257
1257
|
onClick: () => goToPage(totalPages),
|
|
1258
1258
|
disabled: currentPage >= totalPages,
|
|
1259
1259
|
label: labels.lastPage,
|
|
1260
|
-
icon: /* @__PURE__ */ jsx(
|
|
1260
|
+
icon: /* @__PURE__ */ jsx(ChevronsRightGlyph, { size: "md" })
|
|
1261
1261
|
}
|
|
1262
1262
|
)
|
|
1263
1263
|
] }),
|
|
@@ -1528,7 +1528,7 @@ var DataTable = ({
|
|
|
1528
1528
|
/* @__PURE__ */ jsx("span", { role: "status", children: /* @__PURE__ */ jsx(VisuallyHidden, { children: settingsSaid }) })
|
|
1529
1529
|
] }),
|
|
1530
1530
|
footer: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1531
|
-
/* @__PURE__ */ jsx(Button, { variant: "
|
|
1531
|
+
/* @__PURE__ */ jsx(Button, { variant: "ghost", onClick: cancelTableSettings, children: labels.cancel }),
|
|
1532
1532
|
/* @__PURE__ */ jsx(Button, { variant: "primary", onClick: applyTableSettings, children: labels.apply })
|
|
1533
1533
|
] }),
|
|
1534
1534
|
children: [
|
|
@@ -1591,7 +1591,7 @@ var DataTable = ({
|
|
|
1591
1591
|
size: "sm",
|
|
1592
1592
|
className: "crewlet-data-table__column-drag-handle",
|
|
1593
1593
|
label: labels.reorder(name),
|
|
1594
|
-
icon: /* @__PURE__ */ jsx(
|
|
1594
|
+
icon: /* @__PURE__ */ jsx(GripVerticalGlyph, { size: "md" }),
|
|
1595
1595
|
"aria-describedby": reorderHintId,
|
|
1596
1596
|
draggable: true,
|
|
1597
1597
|
onDragStart: (e) => handleDragStart(e, key),
|
|
@@ -1622,7 +1622,7 @@ var DataTable = ({
|
|
|
1622
1622
|
{
|
|
1623
1623
|
size: "sm",
|
|
1624
1624
|
label: labels.moveUp(name),
|
|
1625
|
-
icon: /* @__PURE__ */ jsx(
|
|
1625
|
+
icon: /* @__PURE__ */ jsx(ChevronUpGlyph, { size: "sm" }),
|
|
1626
1626
|
...index === 0 ? { disabledReason: labels.atTop(name) } : {},
|
|
1627
1627
|
onClick: () => moveColumn(key, -1)
|
|
1628
1628
|
}
|
|
@@ -1632,7 +1632,7 @@ var DataTable = ({
|
|
|
1632
1632
|
{
|
|
1633
1633
|
size: "sm",
|
|
1634
1634
|
label: labels.moveDown(name),
|
|
1635
|
-
icon: /* @__PURE__ */ jsx(
|
|
1635
|
+
icon: /* @__PURE__ */ jsx(ChevronDownGlyph, { size: "sm" }),
|
|
1636
1636
|
...index === draftColumnOrder.length - 1 ? { disabledReason: labels.atBottom(name) } : {},
|
|
1637
1637
|
onClick: () => moveColumn(key, 1)
|
|
1638
1638
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { VisuallyHidden } from './chunk-BZFWDIV6.js';
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './Button-
|
|
3
|
+
import './Button-X4B2TJAQ.css';
|
|
4
4
|
import { forwardRef, useId, Children, isValidElement, cloneElement } from 'react';
|
|
5
|
-
import {
|
|
5
|
+
import { ExternalLinkGlyph } from '@crewlethq/icons/glyphs';
|
|
6
6
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
function buttonClass({ variant = "primary", size = "medium", shape = "square", block, className }, extra) {
|
|
@@ -104,7 +104,7 @@ var ButtonLink = forwardRef(function ButtonLink2({
|
|
|
104
104
|
children,
|
|
105
105
|
...rest
|
|
106
106
|
}, ref) {
|
|
107
|
-
const trailing = trailingIcon ?? (external ? /* @__PURE__ */ jsx(
|
|
107
|
+
const trailing = trailingIcon ?? (external ? /* @__PURE__ */ jsx(ExternalLinkGlyph, { size: "sm" }) : void 0);
|
|
108
108
|
return /* @__PURE__ */ jsx(
|
|
109
109
|
"a",
|
|
110
110
|
{
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { Toolbar } from './chunk-
|
|
2
|
-
import { RelativeTime } from './chunk-3CZ7XAVY.js';
|
|
1
|
+
import { Toolbar } from './chunk-PGRPNDWM.js';
|
|
3
2
|
import { PageHeader } from './chunk-HOXGBLEY.js';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
3
|
+
import { RelativeTime } from './chunk-3CZ7XAVY.js';
|
|
4
|
+
import { Kbd } from './chunk-KJ34ZBBI.js';
|
|
5
|
+
import { DataTable } from './chunk-ERVO6OUF.js';
|
|
6
|
+
import { Menu } from './chunk-IPVQKAHO.js';
|
|
7
|
+
import { DateTimePicker } from './chunk-YIMOT5OO.js';
|
|
8
|
+
import { Popover } from './chunk-AUS5FNQE.js';
|
|
9
|
+
import { useListbox, useOptionKeys } from './chunk-6MU7HNB4.js';
|
|
10
|
+
import { Input } from './chunk-DSUY5F4E.js';
|
|
11
11
|
import { Count } from './chunk-BHHIIK3M.js';
|
|
12
|
-
import { IconButton } from './chunk-
|
|
13
|
-
import { Button } from './chunk-
|
|
12
|
+
import { IconButton } from './chunk-4UQ7SMPK.js';
|
|
13
|
+
import { Button } from './chunk-ETYEBKR4.js';
|
|
14
14
|
import { VisuallyHidden } from './chunk-BZFWDIV6.js';
|
|
15
15
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
16
|
-
import './DataView-
|
|
16
|
+
import './DataView-N6JX464S.css';
|
|
17
17
|
import { useMemo, useState, useEffect, useCallback, useRef, useId } from 'react';
|
|
18
|
-
import { SearchGlyph,
|
|
18
|
+
import { SearchGlyph, ChevronDownGlyph, SlidersVerticalGlyph, ArrowUpGlyph, ArrowDownGlyph, XGlyph, ArrowUpDownGlyph, EyeGlyph, EyeOffGlyph, HashGlyph, ClockGlyph, ListGlyph, CheckGlyph } from '@crewlethq/icons/glyphs';
|
|
19
19
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
20
20
|
|
|
21
21
|
var DATA_VIEW_TOOLBAR_LABELS = {
|
|
@@ -41,9 +41,9 @@ function glyphForKind(def) {
|
|
|
41
41
|
case "select":
|
|
42
42
|
return /* @__PURE__ */ jsx(ListGlyph, { size: "sm" });
|
|
43
43
|
case "datetime":
|
|
44
|
-
return /* @__PURE__ */ jsx(
|
|
44
|
+
return /* @__PURE__ */ jsx(ClockGlyph, { size: "sm" });
|
|
45
45
|
case "number":
|
|
46
|
-
return /* @__PURE__ */ jsx(
|
|
46
|
+
return /* @__PURE__ */ jsx(HashGlyph, { size: "sm" });
|
|
47
47
|
default:
|
|
48
48
|
return /* @__PURE__ */ jsx(SearchGlyph, { size: "sm" });
|
|
49
49
|
}
|
|
@@ -119,11 +119,11 @@ function DataViewToolbar({
|
|
|
119
119
|
{
|
|
120
120
|
label: labels.addFilter,
|
|
121
121
|
items: filterItems,
|
|
122
|
-
icon: /* @__PURE__ */ jsx(
|
|
122
|
+
icon: /* @__PURE__ */ jsx(SlidersVerticalGlyph, { size: "sm" }),
|
|
123
123
|
triggerVariant: "secondary",
|
|
124
124
|
trigger: /* @__PURE__ */ jsxs("span", { className: "crewlet-data-view-toolbar__menu-label", children: [
|
|
125
125
|
labels.filter,
|
|
126
|
-
/* @__PURE__ */ jsx(
|
|
126
|
+
/* @__PURE__ */ jsx(ChevronDownGlyph, { size: "xs" })
|
|
127
127
|
] })
|
|
128
128
|
}
|
|
129
129
|
) : null,
|
|
@@ -140,15 +140,15 @@ function DataViewToolbar({
|
|
|
140
140
|
variant: "secondary",
|
|
141
141
|
size: "small",
|
|
142
142
|
pressed: sort !== null,
|
|
143
|
-
leadingIcon: /* @__PURE__ */ jsx(
|
|
143
|
+
leadingIcon: /* @__PURE__ */ jsx(ArrowUpDownGlyph, { size: "sm" }),
|
|
144
144
|
onClick: toggle,
|
|
145
145
|
children: /* @__PURE__ */ jsx("span", { className: "crewlet-data-view-toolbar__menu-label", children: sort && sortedName ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
146
146
|
labels.sortedBy(String(sortedName)),
|
|
147
|
-
sort.direction === "asc" ? /* @__PURE__ */ jsx(
|
|
147
|
+
sort.direction === "asc" ? /* @__PURE__ */ jsx(ArrowUpGlyph, { size: "xs" }) : /* @__PURE__ */ jsx(ArrowDownGlyph, { size: "xs" }),
|
|
148
148
|
/* @__PURE__ */ jsx(VisuallyHidden, { children: sort.direction === "asc" ? labels.ascendingWord : labels.descendingWord })
|
|
149
149
|
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
150
150
|
labels.sort,
|
|
151
|
-
/* @__PURE__ */ jsx(
|
|
151
|
+
/* @__PURE__ */ jsx(ChevronDownGlyph, { size: "xs" })
|
|
152
152
|
] }) })
|
|
153
153
|
}
|
|
154
154
|
),
|
|
@@ -167,7 +167,7 @@ function DataViewToolbar({
|
|
|
167
167
|
variant: "ghost",
|
|
168
168
|
pressed: isAscending,
|
|
169
169
|
label: labels.ascending(name),
|
|
170
|
-
icon: /* @__PURE__ */ jsx(
|
|
170
|
+
icon: /* @__PURE__ */ jsx(ArrowUpGlyph, { size: "xs" }),
|
|
171
171
|
onClick: () => {
|
|
172
172
|
onSortChange({ key: column.key, direction: "asc" });
|
|
173
173
|
close();
|
|
@@ -181,7 +181,7 @@ function DataViewToolbar({
|
|
|
181
181
|
variant: "ghost",
|
|
182
182
|
pressed: isDescending,
|
|
183
183
|
label: labels.descending(name),
|
|
184
|
-
icon: /* @__PURE__ */ jsx(
|
|
184
|
+
icon: /* @__PURE__ */ jsx(ArrowDownGlyph, { size: "xs" }),
|
|
185
185
|
onClick: () => {
|
|
186
186
|
onSortChange({ key: column.key, direction: "desc" });
|
|
187
187
|
close();
|
|
@@ -194,9 +194,9 @@ function DataViewToolbar({
|
|
|
194
194
|
sort ? /* @__PURE__ */ jsx("div", { className: "crewlet-data-view-toolbar__sort-footer", children: /* @__PURE__ */ jsx(
|
|
195
195
|
Button,
|
|
196
196
|
{
|
|
197
|
-
variant: "
|
|
197
|
+
variant: "ghost",
|
|
198
198
|
size: "small",
|
|
199
|
-
leadingIcon: /* @__PURE__ */ jsx(
|
|
199
|
+
leadingIcon: /* @__PURE__ */ jsx(XGlyph, { size: "xs" }),
|
|
200
200
|
onClick: () => {
|
|
201
201
|
onSortChange(null);
|
|
202
202
|
close();
|
|
@@ -213,7 +213,7 @@ function DataViewToolbar({
|
|
|
213
213
|
variant: "secondary",
|
|
214
214
|
size: "small",
|
|
215
215
|
pressed: showArchived,
|
|
216
|
-
leadingIcon: showArchived ? /* @__PURE__ */ jsx(
|
|
216
|
+
leadingIcon: showArchived ? /* @__PURE__ */ jsx(EyeGlyph, { size: "sm" }) : /* @__PURE__ */ jsx(EyeOffGlyph, { size: "sm" }),
|
|
217
217
|
onClick: () => onShowArchivedChange(!showArchived),
|
|
218
218
|
children: /* @__PURE__ */ jsxs("span", { className: "crewlet-data-view-toolbar__menu-label", children: [
|
|
219
219
|
labels.showArchived(archivedLabel),
|
|
@@ -489,7 +489,7 @@ function OptionListEditor({ def, value, labels, onCommit }) {
|
|
|
489
489
|
}
|
|
490
490
|
),
|
|
491
491
|
multiple && held.length > 0 ? /* @__PURE__ */ jsxs("div", { className: "crewlet-filter-axis__editor-footer", children: [
|
|
492
|
-
/* @__PURE__ */ jsx(Button, { variant: "
|
|
492
|
+
/* @__PURE__ */ jsx(Button, { variant: "ghost", size: "small", onClick: () => onCommit([]), children: labels.clear }),
|
|
493
493
|
/* @__PURE__ */ jsx(Button, { variant: "primary", size: "small", onClick: () => onCommit(held, { close: true }), children: labels.done })
|
|
494
494
|
] }) : null
|
|
495
495
|
] });
|
|
@@ -578,7 +578,7 @@ function FilterAxisChip({
|
|
|
578
578
|
":"
|
|
579
579
|
] }),
|
|
580
580
|
/* @__PURE__ */ jsx("span", { className: "crewlet-filter-axis-chip__value", children: formatFilterValue(def, value, labels) }),
|
|
581
|
-
/* @__PURE__ */ jsx(
|
|
581
|
+
/* @__PURE__ */ jsx(ChevronDownGlyph, { className: "crewlet-filter-axis-chip__chevron", size: "xs" })
|
|
582
582
|
] }),
|
|
583
583
|
children: editor
|
|
584
584
|
}
|
|
@@ -590,7 +590,7 @@ function FilterAxisChip({
|
|
|
590
590
|
size: "sm",
|
|
591
591
|
variant: "ghost",
|
|
592
592
|
label: labels.remove(def.label),
|
|
593
|
-
icon: /* @__PURE__ */ jsx(
|
|
593
|
+
icon: /* @__PURE__ */ jsx(XGlyph, { size: "xs" }),
|
|
594
594
|
onClick: onRemove
|
|
595
595
|
}
|
|
596
596
|
) : null
|
|
@@ -639,9 +639,9 @@ function FilterAxisBar({
|
|
|
639
639
|
Button,
|
|
640
640
|
{
|
|
641
641
|
className: "crewlet-filter-axis-bar__clear",
|
|
642
|
-
variant: "
|
|
642
|
+
variant: "ghost",
|
|
643
643
|
size: "small",
|
|
644
|
-
leadingIcon: /* @__PURE__ */ jsx(
|
|
644
|
+
leadingIcon: /* @__PURE__ */ jsx(XGlyph, { size: "xs" }),
|
|
645
645
|
onClick: onClearAll,
|
|
646
646
|
children: labels.clearAll
|
|
647
647
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useTreeState, treeExpandable, treeLevel, treePosInSet, treeSetSize, treeItemAction, treePrevious, treeNext, treeStep } from './chunk-
|
|
1
|
+
import { useTreeState, treeExpandable, treeLevel, treePosInSet, treeSetSize, treeItemAction, treePrevious, treeNext, treeStep } from './chunk-S3BCVWTU.js';
|
|
2
2
|
import { LayerNodeBridge } from './chunk-53DVJCVW.js';
|
|
3
3
|
import { LayerHost, LAYER_REPOSITION_EVENT } from './chunk-7RPGY3JE.js';
|
|
4
|
-
import { focusables } from './chunk-
|
|
5
|
-
import { IconButton } from './chunk-
|
|
4
|
+
import { focusables } from './chunk-R25RGPUB.js';
|
|
5
|
+
import { IconButton } from './chunk-4UQ7SMPK.js';
|
|
6
6
|
import { VisuallyHidden } from './chunk-BZFWDIV6.js';
|
|
7
7
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
8
8
|
import './TreeGrid-NSW7VMOX.css';
|