@adecore/ui 0.53.3 → 0.54.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/dist/Banner.d.ts +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/ChoiceCards.d.ts +1 -1
- package/dist/ChoiceCards.js +2 -2
- package/dist/CloseButton.js +1 -1
- package/dist/ColorSwatch.d.ts +1 -1
- package/dist/ColorSwatch.js +1 -1
- package/dist/ColorWheelPicker.js +1 -1
- package/dist/CopyButton.js +1 -1
- package/dist/DockShell.js +1 -1
- package/dist/EmptyState.d.ts +1 -1
- package/dist/EmptyState.js +1 -1
- package/dist/ErrorBoundary.js +122 -112
- package/dist/Field.d.ts +1 -1
- package/dist/Field.js +2 -2
- package/dist/FileIcon.js +1 -1
- package/dist/Icon.d.ts +1 -1
- package/dist/IconButton.d.ts +3 -3
- package/dist/IconButton.js +2 -2
- package/dist/IconPicker.js +35 -32
- package/dist/Input.d.ts +1 -1
- package/dist/ListRow.js +1 -1
- package/dist/MiddleTruncate.js +2 -2
- package/dist/PanelEmpty.d.ts +1 -1
- package/dist/PanelHeader.d.ts +1 -1
- package/dist/PanelHeader.js +1 -1
- package/dist/ProjectSwitcher.js +1 -1
- package/dist/PromptDialog.d.ts +1 -1
- package/dist/ScrollArea.d.ts +12 -0
- package/dist/ScrollArea.js +144 -0
- package/dist/SectionLabel.js +1 -1
- package/dist/SegmentBar.js +1 -1
- package/dist/Segmented.d.ts +1 -1
- package/dist/Select.d.ts +1 -1
- package/dist/Select.js +22 -16
- package/dist/SelectSearch.js +49 -33
- package/dist/ShortcutHints.js +1 -1
- package/dist/Slider.js +2 -2
- package/dist/SlidingColumn.js +1 -1
- package/dist/SplitButton.js +1 -1
- package/dist/Surface.js +1 -1
- package/dist/Switch.js +1 -1
- package/dist/TextMenu.js +2 -2
- package/dist/Toasts.js +2 -2
- package/dist/Tooltip.d.ts +1 -1
- package/dist/Tooltip.js +1 -1
- package/dist/UIProvider.d.ts +1 -1
- package/dist/Waveform.js +1 -1
- package/dist/Wipe.js +2 -2
- package/dist/combobox/parts.d.ts +3 -3
- package/dist/combobox/parts.js +53 -32
- package/dist/command-palette/parts.d.ts +1 -1
- package/dist/command-palette/parts.js +22 -7
- package/dist/command-palette/virtual.js +4 -4
- package/dist/dialog/parts.d.ts +1 -1
- package/dist/dialog/parts.js +2 -2
- package/dist/file-tree/parts.d.ts +2 -2
- package/dist/file-tree/parts.js +3 -3
- package/dist/file-tree/use-file-tree-shift.d.ts +1 -1
- package/dist/file-tree/use-file-tree-shift.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/key-value-list/parts.js +1 -1
- package/dist/menu/parts.d.ts +3 -3
- package/dist/menu/parts.js +46 -30
- package/dist/popover/parts.d.ts +3 -3
- package/dist/popover/parts.js +110 -71
- package/dist/project-switcher-row.js +1 -1
- package/dist/scrollbar-geometry.d.ts +15 -0
- package/dist/scrollbar-geometry.js +48 -0
- package/dist/settings/MasterDetail.js +40 -30
- package/dist/settings/SettingsDialog.d.ts +1 -1
- package/dist/settings/SettingsDialog.js +27 -11
- package/dist/settings/SettingsRow.d.ts +1 -1
- package/dist/settings/SettingsRow.js +1 -1
- package/dist/settings/SettingsSection.d.ts +1 -1
- package/dist/tabs/parts.d.ts +1 -1
- package/dist/tabs/parts.js +3 -3
- package/dist/testing/dedupe.js +1 -1
- package/dist/theme.css +91 -1
- package/dist/tree/parts.js +2 -2
- package/dist/useOverlayScrollbars.d.ts +7 -0
- package/dist/useOverlayScrollbars.js +281 -0
- package/dist/workspace/PaneBar.js +2 -2
- package/dist/workspace/SplitView.d.ts +1 -1
- package/dist/workspace/SplitView.js +4 -4
- package/dist/workspace/TabStrip.d.ts +1 -1
- package/dist/workspace/TabStrip.js +2 -2
- package/dist/workspace/Workspace.d.ts +1 -1
- package/dist/workspace/Workspace.js +2 -2
- package/dist/workspace/WorkspaceRail.js +1 -1
- package/dist/workspace/WorkspaceTopRow.js +1 -1
- package/package.json +1 -1
- package/src/AccentSwatches.tsx +1 -1
- package/src/Banner.tsx +1 -1
- package/src/Button.tsx +1 -1
- package/src/ButtonGroup.tsx +1 -1
- package/src/Checkbox.tsx +2 -2
- package/src/ChoiceCards.tsx +3 -3
- package/src/CloseButton.tsx +2 -2
- package/src/ColorSwatch.tsx +2 -2
- package/src/ColorWheelPicker.tsx +1 -1
- package/src/ColumnResizeHandle.tsx +1 -1
- package/src/CopyButton.tsx +1 -1
- package/src/DockShell.tsx +1 -1
- package/src/EmptyState.tsx +2 -2
- package/src/ErrorBoundary.tsx +4 -3
- package/src/Field.tsx +2 -2
- package/src/FileIcon.tsx +1 -1
- package/src/Icon.tsx +2 -2
- package/src/IconButton.tsx +3 -3
- package/src/IconPicker.tsx +7 -6
- package/src/Input.tsx +2 -2
- package/src/Kbd.tsx +1 -1
- package/src/ListRow.tsx +1 -1
- package/src/Meter.tsx +1 -1
- package/src/MiddleTruncate.tsx +2 -2
- package/src/PanelEmpty.tsx +2 -2
- package/src/PanelHeader.tsx +2 -2
- package/src/Pill.tsx +1 -1
- package/src/ProjectSwitcher.tsx +2 -2
- package/src/PromptDialog.tsx +1 -1
- package/src/RelativeTime.tsx +1 -1
- package/src/ScrollArea.tsx +47 -0
- package/src/SectionLabel.tsx +1 -1
- package/src/SegmentBar.tsx +1 -1
- package/src/Segmented.tsx +1 -1
- package/src/Select.tsx +6 -2
- package/src/SelectSearch.tsx +19 -12
- package/src/Separator.tsx +1 -1
- package/src/ShortcutHints.tsx +1 -1
- package/src/Skeleton.tsx +1 -1
- package/src/Slider.tsx +2 -2
- package/src/SlidingColumn.tsx +1 -1
- package/src/Spinner.tsx +1 -1
- package/src/SplitButton.tsx +1 -1
- package/src/Stepper.tsx +1 -1
- package/src/Surface.tsx +1 -1
- package/src/Switch.tsx +2 -2
- package/src/TextMenu.tsx +2 -2
- package/src/Tile.tsx +1 -1
- package/src/Toasts.tsx +2 -2
- package/src/Tooltip.tsx +2 -2
- package/src/UIProvider.tsx +1 -1
- package/src/Waveform.tsx +1 -1
- package/src/Wipe.tsx +2 -2
- package/src/ZoomControls.tsx +1 -1
- package/src/combobox/parts.tsx +9 -4
- package/src/command-palette/parts.tsx +25 -19
- package/src/command-palette/virtual.tsx +4 -4
- package/src/dialog/parts.tsx +2 -2
- package/src/file-tree/parts.tsx +6 -6
- package/src/file-tree/use-empty-lines.ts +1 -1
- package/src/file-tree/use-file-tree-shift.tsx +2 -2
- package/src/file-tree/use-slots.ts +2 -2
- package/src/index.ts +2 -0
- package/src/key-value-list/parts.tsx +1 -1
- package/src/menu/parts.tsx +11 -6
- package/src/popover/parts.tsx +13 -5
- package/src/project-switcher-row.tsx +2 -2
- package/src/scrollbar-geometry.ts +67 -0
- package/src/select-shared.ts +1 -1
- package/src/settings/DetailHeader.tsx +1 -1
- package/src/settings/MasterDetail.tsx +9 -6
- package/src/settings/SettingsDialog.tsx +16 -9
- package/src/settings/SettingsRow.tsx +1 -1
- package/src/settings/SettingsSection.tsx +1 -1
- package/src/tabs/parts.tsx +4 -4
- package/src/testing/dedupe.ts +1 -1
- package/src/theme.css +91 -1
- package/src/tree/parts.tsx +2 -2
- package/src/useOverlayScrollbars.tsx +263 -0
- package/src/workspace/DropPreview.tsx +1 -1
- package/src/workspace/PaneBar.tsx +2 -2
- package/src/workspace/SplitView.tsx +5 -5
- package/src/workspace/TabStrip.tsx +3 -3
- package/src/workspace/Workspace.tsx +2 -2
- package/src/workspace/WorkspaceRail.tsx +1 -1
- package/src/workspace/WorkspaceTopRow.tsx +1 -1
package/dist/Banner.d.ts
CHANGED
package/dist/ButtonGroup.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import clsx from 'clsx';
|
|
3
2
|
import { useRender } from '@base-ui/react/use-render';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
4
|
/* Icon buttons that belong together sit 1px apart; groups keep the wider gap of their container. */
|
|
5
5
|
export function ButtonGroup(t0) {
|
|
6
6
|
const $ = _c(14);
|
package/dist/Checkbox.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
+
import { Checkbox as BaseCheckbox } from '@base-ui/react/checkbox';
|
|
2
3
|
import clsx from 'clsx';
|
|
3
4
|
import { Check, Minus } from 'lucide-react';
|
|
4
|
-
import { Checkbox as BaseCheckbox } from '@base-ui/react/checkbox';
|
|
5
5
|
import { Icon } from "./Icon.js";
|
|
6
6
|
/* Picked or not, as one item out of a list or an option that waits for a Save button. */
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
package/dist/ChoiceCards.d.ts
CHANGED
package/dist/ChoiceCards.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import { Fragment, useId } from 'react';
|
|
3
|
-
import clsx from 'clsx';
|
|
4
2
|
import { Radio } from '@base-ui/react/radio';
|
|
5
3
|
import { RadioGroup } from '@base-ui/react/radio-group';
|
|
4
|
+
import clsx from 'clsx';
|
|
5
|
+
import { Fragment, useId } from 'react';
|
|
6
6
|
import { Icon } from "./Icon.js";
|
|
7
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
8
|
function ChoiceCard(t0) {
|
package/dist/CloseButton.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import { X } from 'lucide-react';
|
|
3
2
|
import { Dialog } from '@base-ui/react/dialog';
|
|
3
|
+
import { X } from 'lucide-react';
|
|
4
4
|
import { IconButton } from "./IconButton.js";
|
|
5
5
|
/* The close button in the header of every panel and dialog. In a dialog it is that dialog's own close part. */
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
package/dist/ColorSwatch.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ComponentProps } from 'react';
|
|
2
1
|
import { useRender } from '@base-ui/react/use-render';
|
|
2
|
+
import type { ComponentProps } from 'react';
|
|
3
3
|
declare const PICKED_RING: {
|
|
4
4
|
readonly surface: 'ring-2 ring-accent ring-offset-2 ring-offset-surface';
|
|
5
5
|
readonly popup: 'ring-2 ring-accent ring-offset-1 ring-offset-surface-raised';
|
package/dist/ColorSwatch.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
2
3
|
import clsx from 'clsx';
|
|
3
4
|
import { Check } from 'lucide-react';
|
|
4
|
-
import { useRender } from '@base-ui/react/use-render';
|
|
5
5
|
import { Icon } from "./Icon.js";
|
|
6
6
|
/* `focus-ring` for the swatch that is a menu item rather than a button, which the keyboard reaches all the same. */
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
package/dist/ColorWheelPicker.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import { useEffect, useId, useRef, useState } from 'react';
|
|
3
2
|
import { ChevronDown } from 'lucide-react';
|
|
3
|
+
import { useEffect, useId, useRef, useState } from 'react';
|
|
4
4
|
import { ColorSwatch } from "./ColorSwatch.js";
|
|
5
5
|
import { Icon } from "./Icon.js";
|
|
6
6
|
import { PopoverPopup, PopoverRoot, PopoverTrigger } from "./popover/parts.js";
|
package/dist/CopyButton.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
+
import { Check, Copy } from 'lucide-react';
|
|
2
3
|
import { useEffect, useState } from 'react';
|
|
3
4
|
import { useTranslation } from 'react-i18next';
|
|
4
|
-
import { Check, Copy } from 'lucide-react';
|
|
5
5
|
import { Button } from "./Button.js";
|
|
6
6
|
import { copyText } from './clipboard.js';
|
|
7
7
|
import { Icon } from "./Icon.js";
|
package/dist/DockShell.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import { useEffect, useRef, useState } from 'react';
|
|
3
2
|
import clsx from 'clsx';
|
|
3
|
+
import { useEffect, useRef, useState } from 'react';
|
|
4
4
|
import { Surface } from "./Surface.js";
|
|
5
5
|
/* How close to the bottom of the window the pointer has to come before a hidden dock slides back. */
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
package/dist/EmptyState.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type ReactElement, type ReactNode, type Ref } from 'react';
|
|
2
1
|
import type { LucideIcon } from 'lucide-react';
|
|
2
|
+
import { type ReactElement, type ReactNode, type Ref } from 'react';
|
|
3
3
|
export interface EmptyStateProps {
|
|
4
4
|
icon?: LucideIcon | ReactElement<{
|
|
5
5
|
size?: number;
|
package/dist/EmptyState.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import { cloneElement, isValidElement } from 'react';
|
|
3
2
|
import clsx from 'clsx';
|
|
3
|
+
import { cloneElement, isValidElement } from 'react';
|
|
4
4
|
import { Icon } from "./Icon.js";
|
|
5
5
|
import { Spinner } from "./Spinner.js";
|
|
6
6
|
// One size in a panel, a card and a dialog alike, so no caller picks its own.
|
package/dist/ErrorBoundary.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import { Component } from 'react';
|
|
3
2
|
import clsx from 'clsx';
|
|
4
3
|
import { RotateCw, TriangleAlert } from 'lucide-react';
|
|
4
|
+
import { Component } from 'react';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
6
|
import { Button } from "./Button.js";
|
|
7
7
|
import { ButtonGroup } from "./ButtonGroup.js";
|
|
8
8
|
import { CopyButton } from "./CopyButton.js";
|
|
9
9
|
import { errorMessageOf, errorReport, shouldReset } from './error-boundary.js';
|
|
10
10
|
import { Icon } from "./Icon.js";
|
|
11
|
+
import { ScrollArea } from "./ScrollArea.js";
|
|
11
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
13
|
const CLEAR = {
|
|
13
14
|
error: null,
|
|
@@ -16,7 +17,7 @@ const CLEAR = {
|
|
|
16
17
|
};
|
|
17
18
|
/* A function component, so the words come from the i18next instance the app renders with. */
|
|
18
19
|
function ErrorFallback(t0) {
|
|
19
|
-
const $ = _c(
|
|
20
|
+
const $ = _c(48);
|
|
20
21
|
const {
|
|
21
22
|
label,
|
|
22
23
|
error,
|
|
@@ -29,101 +30,108 @@ function ErrorFallback(t0) {
|
|
|
29
30
|
const {
|
|
30
31
|
t
|
|
31
32
|
} = useTranslation("ui");
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
t2 = clsx("grid place-items-center overflow-auto bg-surface", t1, className);
|
|
33
|
+
let t1;
|
|
34
|
+
if ($[0] !== className) {
|
|
35
|
+
t1 = clsx("bg-surface", className);
|
|
36
36
|
$[0] = className;
|
|
37
37
|
$[1] = t1;
|
|
38
|
-
$[2] = t2;
|
|
39
38
|
} else {
|
|
40
|
-
|
|
39
|
+
t1 = $[1];
|
|
41
40
|
}
|
|
42
|
-
const
|
|
43
|
-
let
|
|
44
|
-
if ($[
|
|
45
|
-
|
|
41
|
+
const t2 = compact ? "p-3" : "p-6";
|
|
42
|
+
let t3;
|
|
43
|
+
if ($[2] !== t2) {
|
|
44
|
+
t3 = clsx("grid place-items-center", t2);
|
|
45
|
+
$[2] = t2;
|
|
46
46
|
$[3] = t3;
|
|
47
|
-
$[4] = t4;
|
|
48
47
|
} else {
|
|
49
|
-
|
|
48
|
+
t3 = $[3];
|
|
50
49
|
}
|
|
50
|
+
const t4 = compact ? "gap-1" : "gap-2";
|
|
51
51
|
let t5;
|
|
52
|
-
if ($[
|
|
53
|
-
t5 =
|
|
52
|
+
if ($[4] !== t4) {
|
|
53
|
+
t5 = clsx("flex max-w-[360px] flex-col items-center text-center", t4);
|
|
54
|
+
$[4] = t4;
|
|
55
|
+
$[5] = t5;
|
|
56
|
+
} else {
|
|
57
|
+
t5 = $[5];
|
|
58
|
+
}
|
|
59
|
+
let t6;
|
|
60
|
+
if ($[6] !== compact) {
|
|
61
|
+
t6 = !compact && /*#__PURE__*/_jsx(Icon, {
|
|
54
62
|
icon: TriangleAlert,
|
|
55
63
|
size: 20,
|
|
56
64
|
className: "text-status-error"
|
|
57
65
|
});
|
|
58
|
-
$[
|
|
59
|
-
$[
|
|
66
|
+
$[6] = compact;
|
|
67
|
+
$[7] = t6;
|
|
60
68
|
} else {
|
|
61
|
-
|
|
69
|
+
t6 = $[7];
|
|
62
70
|
}
|
|
63
|
-
let
|
|
64
|
-
if ($[
|
|
65
|
-
|
|
71
|
+
let t7;
|
|
72
|
+
if ($[8] !== label) {
|
|
73
|
+
t7 = /*#__PURE__*/_jsx("p", {
|
|
66
74
|
className: "text-sm font-medium text-text",
|
|
67
75
|
children: label
|
|
68
76
|
});
|
|
69
|
-
$[
|
|
70
|
-
$[
|
|
77
|
+
$[8] = label;
|
|
78
|
+
$[9] = t7;
|
|
71
79
|
} else {
|
|
72
|
-
|
|
80
|
+
t7 = $[9];
|
|
73
81
|
}
|
|
74
|
-
let
|
|
75
|
-
if ($[
|
|
76
|
-
|
|
77
|
-
$[
|
|
78
|
-
$[
|
|
82
|
+
let t8;
|
|
83
|
+
if ($[10] !== error) {
|
|
84
|
+
t8 = errorMessageOf(error);
|
|
85
|
+
$[10] = error;
|
|
86
|
+
$[11] = t8;
|
|
79
87
|
} else {
|
|
80
|
-
|
|
88
|
+
t8 = $[11];
|
|
81
89
|
}
|
|
82
|
-
let
|
|
83
|
-
if ($[
|
|
84
|
-
|
|
90
|
+
let t9;
|
|
91
|
+
if ($[12] !== t8) {
|
|
92
|
+
t9 = /*#__PURE__*/_jsx("p", {
|
|
85
93
|
className: "line-clamp-4 text-xs break-words text-text-muted",
|
|
86
|
-
children:
|
|
94
|
+
children: t8
|
|
87
95
|
});
|
|
88
|
-
$[11] = t7;
|
|
89
96
|
$[12] = t8;
|
|
90
|
-
} else {
|
|
91
|
-
t8 = $[12];
|
|
92
|
-
}
|
|
93
|
-
const t9 = compact ? "mt-1" : "mt-2";
|
|
94
|
-
let t10;
|
|
95
|
-
if ($[13] !== t9) {
|
|
96
|
-
t10 = clsx("flex items-center gap-2", t9);
|
|
97
97
|
$[13] = t9;
|
|
98
|
-
$[14] = t10;
|
|
99
98
|
} else {
|
|
100
|
-
|
|
99
|
+
t9 = $[13];
|
|
101
100
|
}
|
|
101
|
+
const t10 = compact ? "mt-1" : "mt-2";
|
|
102
102
|
let t11;
|
|
103
|
-
if ($[
|
|
104
|
-
t11 =
|
|
105
|
-
$[
|
|
106
|
-
$[
|
|
103
|
+
if ($[14] !== t10) {
|
|
104
|
+
t11 = clsx("flex items-center gap-2", t10);
|
|
105
|
+
$[14] = t10;
|
|
106
|
+
$[15] = t11;
|
|
107
107
|
} else {
|
|
108
|
-
t11 = $[
|
|
108
|
+
t11 = $[15];
|
|
109
109
|
}
|
|
110
110
|
let t12;
|
|
111
|
-
if ($[
|
|
112
|
-
t12 =
|
|
111
|
+
if ($[16] !== t) {
|
|
112
|
+
t12 = t("action.retry");
|
|
113
|
+
$[16] = t;
|
|
114
|
+
$[17] = t12;
|
|
115
|
+
} else {
|
|
116
|
+
t12 = $[17];
|
|
117
|
+
}
|
|
118
|
+
let t13;
|
|
119
|
+
if ($[18] !== onRetry || $[19] !== t12) {
|
|
120
|
+
t13 = /*#__PURE__*/_jsx(Button, {
|
|
113
121
|
variant: "secondary",
|
|
114
122
|
size: "sm",
|
|
115
123
|
onClick: onRetry,
|
|
116
|
-
children:
|
|
124
|
+
children: t12
|
|
117
125
|
});
|
|
118
|
-
$[
|
|
119
|
-
$[18] = t11;
|
|
126
|
+
$[18] = onRetry;
|
|
120
127
|
$[19] = t12;
|
|
128
|
+
$[20] = t13;
|
|
121
129
|
} else {
|
|
122
|
-
|
|
130
|
+
t13 = $[20];
|
|
123
131
|
}
|
|
124
|
-
let
|
|
125
|
-
if ($[
|
|
126
|
-
|
|
132
|
+
let t14;
|
|
133
|
+
if ($[21] !== reload || $[22] !== t) {
|
|
134
|
+
t14 = reload && /*#__PURE__*/_jsxs(Button, {
|
|
127
135
|
variant: "secondary",
|
|
128
136
|
size: "sm",
|
|
129
137
|
onClick: _temp,
|
|
@@ -132,88 +140,90 @@ function ErrorFallback(t0) {
|
|
|
132
140
|
size: 14
|
|
133
141
|
}), t("action.reload")]
|
|
134
142
|
});
|
|
135
|
-
$[
|
|
136
|
-
$[
|
|
137
|
-
$[
|
|
143
|
+
$[21] = reload;
|
|
144
|
+
$[22] = t;
|
|
145
|
+
$[23] = t14;
|
|
138
146
|
} else {
|
|
139
|
-
|
|
140
|
-
}
|
|
141
|
-
let t14;
|
|
142
|
-
if ($[23] !== componentStack || $[24] !== error || $[25] !== label) {
|
|
143
|
-
t14 = errorReport(label, error, componentStack);
|
|
144
|
-
$[23] = componentStack;
|
|
145
|
-
$[24] = error;
|
|
146
|
-
$[25] = label;
|
|
147
|
-
$[26] = t14;
|
|
148
|
-
} else {
|
|
149
|
-
t14 = $[26];
|
|
147
|
+
t14 = $[23];
|
|
150
148
|
}
|
|
151
149
|
let t15;
|
|
152
|
-
if ($[
|
|
153
|
-
t15 =
|
|
154
|
-
$[
|
|
155
|
-
$[
|
|
150
|
+
if ($[24] !== componentStack || $[25] !== error || $[26] !== label) {
|
|
151
|
+
t15 = errorReport(label, error, componentStack);
|
|
152
|
+
$[24] = componentStack;
|
|
153
|
+
$[25] = error;
|
|
154
|
+
$[26] = label;
|
|
155
|
+
$[27] = t15;
|
|
156
156
|
} else {
|
|
157
|
-
t15 = $[
|
|
157
|
+
t15 = $[27];
|
|
158
158
|
}
|
|
159
159
|
let t16;
|
|
160
|
-
if ($[
|
|
161
|
-
t16 =
|
|
160
|
+
if ($[28] !== t) {
|
|
161
|
+
t16 = t("action.copyError");
|
|
162
|
+
$[28] = t;
|
|
163
|
+
$[29] = t16;
|
|
164
|
+
} else {
|
|
165
|
+
t16 = $[29];
|
|
166
|
+
}
|
|
167
|
+
let t17;
|
|
168
|
+
if ($[30] !== t15 || $[31] !== t16) {
|
|
169
|
+
t17 = /*#__PURE__*/_jsx(ButtonGroup, {
|
|
162
170
|
children: /*#__PURE__*/_jsx(CopyButton, {
|
|
163
|
-
text:
|
|
164
|
-
label:
|
|
171
|
+
text: t15,
|
|
172
|
+
label: t16,
|
|
165
173
|
size: "sm"
|
|
166
174
|
})
|
|
167
175
|
});
|
|
168
|
-
$[29] = t14;
|
|
169
176
|
$[30] = t15;
|
|
170
177
|
$[31] = t16;
|
|
178
|
+
$[32] = t17;
|
|
171
179
|
} else {
|
|
172
|
-
|
|
180
|
+
t17 = $[32];
|
|
173
181
|
}
|
|
174
|
-
let
|
|
175
|
-
if ($[
|
|
176
|
-
|
|
177
|
-
className:
|
|
178
|
-
children: [
|
|
182
|
+
let t18;
|
|
183
|
+
if ($[33] !== t11 || $[34] !== t13 || $[35] !== t14 || $[36] !== t17) {
|
|
184
|
+
t18 = /*#__PURE__*/_jsxs("div", {
|
|
185
|
+
className: t11,
|
|
186
|
+
children: [t13, t14, t17]
|
|
179
187
|
});
|
|
180
|
-
$[
|
|
181
|
-
$[33] = t12;
|
|
188
|
+
$[33] = t11;
|
|
182
189
|
$[34] = t13;
|
|
183
|
-
$[35] =
|
|
190
|
+
$[35] = t14;
|
|
184
191
|
$[36] = t17;
|
|
192
|
+
$[37] = t18;
|
|
185
193
|
} else {
|
|
186
|
-
|
|
194
|
+
t18 = $[37];
|
|
187
195
|
}
|
|
188
|
-
let
|
|
189
|
-
if ($[
|
|
190
|
-
|
|
191
|
-
className:
|
|
192
|
-
children: [
|
|
196
|
+
let t19;
|
|
197
|
+
if ($[38] !== t18 || $[39] !== t5 || $[40] !== t6 || $[41] !== t7 || $[42] !== t9) {
|
|
198
|
+
t19 = /*#__PURE__*/_jsxs("div", {
|
|
199
|
+
className: t5,
|
|
200
|
+
children: [t6, t7, t9, t18]
|
|
193
201
|
});
|
|
194
|
-
$[
|
|
195
|
-
$[38] = t4;
|
|
202
|
+
$[38] = t18;
|
|
196
203
|
$[39] = t5;
|
|
197
204
|
$[40] = t6;
|
|
198
|
-
$[41] =
|
|
199
|
-
$[42] =
|
|
205
|
+
$[41] = t7;
|
|
206
|
+
$[42] = t9;
|
|
207
|
+
$[43] = t19;
|
|
200
208
|
} else {
|
|
201
|
-
|
|
209
|
+
t19 = $[43];
|
|
202
210
|
}
|
|
203
|
-
let
|
|
204
|
-
if ($[
|
|
205
|
-
|
|
211
|
+
let t20;
|
|
212
|
+
if ($[44] !== t1 || $[45] !== t19 || $[46] !== t3) {
|
|
213
|
+
t20 = /*#__PURE__*/_jsx(ScrollArea, {
|
|
206
214
|
role: "alert",
|
|
207
|
-
className:
|
|
208
|
-
|
|
215
|
+
className: t1,
|
|
216
|
+
viewportClassName: t3,
|
|
217
|
+
children: t19
|
|
209
218
|
});
|
|
210
|
-
$[
|
|
211
|
-
$[44] = t2;
|
|
219
|
+
$[44] = t1;
|
|
212
220
|
$[45] = t19;
|
|
221
|
+
$[46] = t3;
|
|
222
|
+
$[47] = t20;
|
|
213
223
|
} else {
|
|
214
|
-
|
|
224
|
+
t20 = $[47];
|
|
215
225
|
}
|
|
216
|
-
return
|
|
226
|
+
return t20;
|
|
217
227
|
}
|
|
218
228
|
/* Without one React unmounts the whole tree, and whatever lives in it (an embedded page, a running terminal) goes down with it. */
|
|
219
229
|
function _temp() {
|
package/dist/Field.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type ReactNode, type Ref } from 'react';
|
|
2
1
|
import { useRender } from '@base-ui/react/use-render';
|
|
2
|
+
import { type ReactNode, type Ref } from 'react';
|
|
3
3
|
export type FieldHintProps = useRender.ComponentProps<'p'>;
|
|
4
4
|
export declare function FieldHint({ render, className, ref, ...props }: FieldHintProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
5
5
|
export type FormErrorProps = useRender.ComponentProps<'p'>;
|
package/dist/Field.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import { useId } from 'react';
|
|
3
|
-
import clsx from 'clsx';
|
|
4
2
|
import { useRender } from '@base-ui/react/use-render';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { useId } from 'react';
|
|
5
5
|
import { FieldContext } from './field-context.js';
|
|
6
6
|
import { SectionLabel } from "./SectionLabel.js";
|
|
7
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
package/dist/FileIcon.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import { useInsertionEffect } from 'react';
|
|
3
2
|
import clsx from 'clsx';
|
|
3
|
+
import { useInsertionEffect } from 'react';
|
|
4
4
|
import { fileIconFor, fileIconOverrideFor, mountFileIconSprite } from './file-icon.js';
|
|
5
5
|
/*
|
|
6
6
|
* The one place the library steps outside Lucide. The glyphs are Seti's, and so are their colors: a
|
package/dist/Icon.d.ts
CHANGED
package/dist/IconButton.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { ComponentProps, ReactNode } from 'react';
|
|
2
|
-
import type { LucideIcon } from 'lucide-react';
|
|
3
1
|
import { useRender } from '@base-ui/react/use-render';
|
|
2
|
+
import type { LucideIcon } from 'lucide-react';
|
|
3
|
+
import type { ComponentProps, ReactNode } from 'react';
|
|
4
|
+
import { type IconButtonSize } from './icon-button-size.ts';
|
|
4
5
|
import type { Shortcut } from './shortcut.ts';
|
|
5
6
|
import { type TooltipSide } from './Tooltip.tsx';
|
|
6
|
-
import { type IconButtonSize } from './icon-button-size.ts';
|
|
7
7
|
export type { IconButtonSize };
|
|
8
8
|
export interface IconButtonProps extends Omit<ComponentProps<'button'>, 'children'> {
|
|
9
9
|
icon?: LucideIcon;
|
package/dist/IconButton.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import clsx from 'clsx';
|
|
3
2
|
import { useRender } from '@base-ui/react/use-render';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { ICON_BUTTON_CLASS, ICON_BUTTON_ICON_SIZE } from './icon-button-size.js';
|
|
4
5
|
import { Icon } from "./Icon.js";
|
|
5
6
|
import { Spinner } from "./Spinner.js";
|
|
6
7
|
import { Tooltip } from "./Tooltip.js";
|
|
7
|
-
import { ICON_BUTTON_CLASS, ICON_BUTTON_ICON_SIZE } from './icon-button-size.js';
|
|
8
8
|
/* The one place the icon inside an icon button is sized. */
|
|
9
9
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
10
|
export function IconButton(t0) {
|
package/dist/IconPicker.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import { useId, useLayoutEffect, useRef, useState } from 'react';
|
|
3
2
|
import clsx from 'clsx';
|
|
4
3
|
import { Ban, ChevronDown, Search, X } from 'lucide-react';
|
|
4
|
+
import { useId, useLayoutEffect, useRef, useState } from 'react';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
6
|
import { Button } from "./Button.js";
|
|
7
7
|
import { EmptyState } from "./EmptyState.js";
|
|
8
8
|
import { formatNumber } from './format/number.js';
|
|
9
|
+
import { cellForKey, escapeClearsSearch, filterSections, isGrouped, sectionsOf, tabStopOf } from './icon-picker.js';
|
|
9
10
|
import { Icon } from "./Icon.js";
|
|
10
11
|
import { IconButton } from "./IconButton.js";
|
|
11
|
-
import { cellForKey, escapeClearsSearch, filterSections, isGrouped, sectionsOf, tabStopOf } from './icon-picker.js';
|
|
12
12
|
import { PopoverPopup, PopoverRoot, PopoverTrigger } from "./popover/parts.js";
|
|
13
|
+
import { ScrollArea } from "./ScrollArea.js";
|
|
13
14
|
import { SectionLabel } from "./SectionLabel.js";
|
|
14
15
|
import { Tooltip } from "./Tooltip.js";
|
|
15
16
|
/* A row of cells is 28 high with a gap of 4. Under a heading of 28 the last row keeps 8 below it; without headings the grid has 6 above as well. */
|
|
@@ -364,7 +365,7 @@ function _temp(section) {
|
|
|
364
365
|
return section.icons;
|
|
365
366
|
}
|
|
366
367
|
function IconPickerPanel(t0) {
|
|
367
|
-
const $ = _c(
|
|
368
|
+
const $ = _c(35);
|
|
368
369
|
const {
|
|
369
370
|
id,
|
|
370
371
|
name,
|
|
@@ -479,12 +480,13 @@ function IconPickerPanel(t0) {
|
|
|
479
480
|
} else {
|
|
480
481
|
t5 = $[10];
|
|
481
482
|
}
|
|
483
|
+
const T0 = ScrollArea;
|
|
482
484
|
const t6 = `${id}-grid`;
|
|
483
485
|
const t7 = "radiogroup";
|
|
484
486
|
const t8 = headed ? "scroll-pt-7" : "px-1.5 pt-1.5 pb-2";
|
|
485
487
|
let t9;
|
|
486
488
|
if ($[11] !== t8) {
|
|
487
|
-
t9 = clsx("relative
|
|
489
|
+
t9 = clsx("relative overscroll-contain", t8);
|
|
488
490
|
$[11] = t8;
|
|
489
491
|
$[12] = t9;
|
|
490
492
|
} else {
|
|
@@ -555,31 +557,32 @@ function IconPickerPanel(t0) {
|
|
|
555
557
|
}, section_0.id);
|
|
556
558
|
});
|
|
557
559
|
let t14;
|
|
558
|
-
if ($[16] !==
|
|
559
|
-
t14 = /*#__PURE__*/_jsx(
|
|
560
|
-
|
|
560
|
+
if ($[16] !== T0 || $[17] !== moveFocus || $[18] !== name || $[19] !== t10 || $[20] !== t11 || $[21] !== t12 || $[22] !== t6 || $[23] !== t9) {
|
|
561
|
+
t14 = /*#__PURE__*/_jsx(T0, {
|
|
562
|
+
viewportRef: area,
|
|
561
563
|
id: t6,
|
|
562
564
|
role: t7,
|
|
563
565
|
"aria-label": name,
|
|
564
|
-
|
|
566
|
+
viewportClassName: t9,
|
|
565
567
|
style: t10,
|
|
566
568
|
onScroll: t11,
|
|
567
569
|
onKeyDown: moveFocus,
|
|
568
570
|
children: t12
|
|
569
571
|
});
|
|
570
|
-
$[16] =
|
|
571
|
-
$[17] =
|
|
572
|
-
$[18] =
|
|
573
|
-
$[19] =
|
|
574
|
-
$[20] =
|
|
575
|
-
$[21] =
|
|
576
|
-
$[22] =
|
|
577
|
-
$[23] =
|
|
578
|
-
|
|
579
|
-
|
|
572
|
+
$[16] = T0;
|
|
573
|
+
$[17] = moveFocus;
|
|
574
|
+
$[18] = name;
|
|
575
|
+
$[19] = t10;
|
|
576
|
+
$[20] = t11;
|
|
577
|
+
$[21] = t12;
|
|
578
|
+
$[22] = t6;
|
|
579
|
+
$[23] = t9;
|
|
580
|
+
$[24] = t14;
|
|
581
|
+
} else {
|
|
582
|
+
t14 = $[24];
|
|
580
583
|
}
|
|
581
584
|
let t15;
|
|
582
|
-
if ($[
|
|
585
|
+
if ($[25] !== disabled || $[26] !== onClear || $[27] !== t || $[28] !== value) {
|
|
583
586
|
t15 = onClear && /*#__PURE__*/_jsx("div", {
|
|
584
587
|
className: "flex border-t border-border p-1",
|
|
585
588
|
children: /*#__PURE__*/_jsxs(Button, {
|
|
@@ -592,27 +595,27 @@ function IconPickerPanel(t0) {
|
|
|
592
595
|
}), t("iconPicker.none")]
|
|
593
596
|
})
|
|
594
597
|
});
|
|
595
|
-
$[
|
|
596
|
-
$[
|
|
597
|
-
$[
|
|
598
|
-
$[
|
|
599
|
-
$[
|
|
598
|
+
$[25] = disabled;
|
|
599
|
+
$[26] = onClear;
|
|
600
|
+
$[27] = t;
|
|
601
|
+
$[28] = value;
|
|
602
|
+
$[29] = t15;
|
|
600
603
|
} else {
|
|
601
|
-
t15 = $[
|
|
604
|
+
t15 = $[29];
|
|
602
605
|
}
|
|
603
606
|
let t16;
|
|
604
|
-
if ($[
|
|
607
|
+
if ($[30] !== clearSearchFirst || $[31] !== t14 || $[32] !== t15 || $[33] !== t5) {
|
|
605
608
|
t16 = /*#__PURE__*/_jsxs("div", {
|
|
606
609
|
onKeyDown: clearSearchFirst,
|
|
607
610
|
children: [t5, t14, t15]
|
|
608
611
|
});
|
|
609
|
-
$[
|
|
610
|
-
$[
|
|
611
|
-
$[
|
|
612
|
-
$[
|
|
613
|
-
$[
|
|
612
|
+
$[30] = clearSearchFirst;
|
|
613
|
+
$[31] = t14;
|
|
614
|
+
$[32] = t15;
|
|
615
|
+
$[33] = t5;
|
|
616
|
+
$[34] = t16;
|
|
614
617
|
} else {
|
|
615
|
-
t16 = $[
|
|
618
|
+
t16 = $[34];
|
|
616
619
|
}
|
|
617
620
|
return t16;
|
|
618
621
|
}
|
package/dist/Input.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ComponentProps, ReactNode } from 'react';
|
|
2
1
|
import type { LucideIcon } from 'lucide-react';
|
|
2
|
+
import type { ComponentProps, ReactNode } from 'react';
|
|
3
3
|
export interface InputProps extends Omit<ComponentProps<'input'>, 'size'> {
|
|
4
4
|
size?: 'md' | 'sm';
|
|
5
5
|
mono?: boolean;
|