@dxos/react-ui 0.8.4-main.84f28bd → 0.8.4-main.a4bbb77
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/lib/browser/{chunk-T6YPS45E.mjs → chunk-LBCJC75U.mjs} +186 -103
- package/dist/lib/browser/chunk-LBCJC75U.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +5 -1
- package/dist/lib/browser/index.mjs.map +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/testing/index.mjs +21 -22
- package/dist/lib/browser/testing/index.mjs.map +4 -4
- package/dist/lib/node-esm/{chunk-TYVQJ4KW.mjs → chunk-QTUGGUCB.mjs} +186 -103
- package/dist/lib/node-esm/chunk-QTUGGUCB.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +5 -1
- package/dist/lib/node-esm/index.mjs.map +1 -1
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/testing/index.mjs +21 -22
- package/dist/lib/node-esm/testing/index.mjs.map +4 -4
- package/dist/types/src/components/Avatars/Avatar.d.ts +1 -1
- package/dist/types/src/components/Avatars/Avatar.d.ts.map +1 -1
- package/dist/types/src/components/Avatars/Avatar.stories.d.ts +5 -31
- package/dist/types/src/components/Avatars/Avatar.stories.d.ts.map +1 -1
- package/dist/types/src/components/Avatars/AvatarGroup.stories.d.ts +5 -11
- package/dist/types/src/components/Avatars/AvatarGroup.stories.d.ts.map +1 -1
- package/dist/types/src/components/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/types/src/components/Breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/types/src/components/Breadcrumb/Breadcrumb.stories.d.ts +8 -20
- package/dist/types/src/components/Breadcrumb/Breadcrumb.stories.d.ts.map +1 -1
- package/dist/types/src/components/Buttons/Button.d.ts +1 -1
- package/dist/types/src/components/Buttons/Button.d.ts.map +1 -1
- package/dist/types/src/components/Buttons/Button.stories.d.ts +9 -4
- package/dist/types/src/components/Buttons/Button.stories.d.ts.map +1 -1
- package/dist/types/src/components/Buttons/IconButton.d.ts +2 -2
- package/dist/types/src/components/Buttons/IconButton.d.ts.map +1 -1
- package/dist/types/src/components/Buttons/IconButton.stories.d.ts +6 -15
- package/dist/types/src/components/Buttons/IconButton.stories.d.ts.map +1 -1
- package/dist/types/src/components/Buttons/Toggle.stories.d.ts +5 -11
- package/dist/types/src/components/Buttons/Toggle.stories.d.ts.map +1 -1
- package/dist/types/src/components/Buttons/ToggleGroup.d.ts +7 -8
- package/dist/types/src/components/Buttons/ToggleGroup.d.ts.map +1 -1
- package/dist/types/src/components/Buttons/ToggleGroup.stories.d.ts +7 -19
- package/dist/types/src/components/Buttons/ToggleGroup.stories.d.ts.map +1 -1
- package/dist/types/src/components/Clipboard/ClipboardProvider.d.ts.map +1 -1
- package/dist/types/src/components/Clipboard/CopyButton.d.ts.map +1 -1
- package/dist/types/src/components/DensityProvider/DensityProvider.d.ts.map +1 -1
- package/dist/types/src/components/Dialogs/AlertDialog.d.ts +1 -1
- package/dist/types/src/components/Dialogs/AlertDialog.d.ts.map +1 -1
- package/dist/types/src/components/Dialogs/AlertDialog.stories.d.ts +7 -39
- package/dist/types/src/components/Dialogs/AlertDialog.stories.d.ts.map +1 -1
- package/dist/types/src/components/Dialogs/Dialog.d.ts +1 -1
- package/dist/types/src/components/Dialogs/Dialog.d.ts.map +1 -1
- package/dist/types/src/components/Dialogs/Dialog.stories.d.ts +6 -29
- package/dist/types/src/components/Dialogs/Dialog.stories.d.ts.map +1 -1
- package/dist/types/src/components/ElevationProvider/ElevationProvider.d.ts.map +1 -1
- package/dist/types/src/components/Icon/Icon.d.ts +1 -1
- package/dist/types/src/components/Icon/Icon.d.ts.map +1 -1
- package/dist/types/src/components/Input/Input.d.ts +2 -4
- package/dist/types/src/components/Input/Input.d.ts.map +1 -1
- package/dist/types/src/components/Input/Input.stories.d.ts +10 -11
- package/dist/types/src/components/Input/Input.stories.d.ts.map +1 -1
- package/dist/types/src/components/Link/Link.stories.d.ts +8 -8
- package/dist/types/src/components/Link/Link.stories.d.ts.map +1 -1
- package/dist/types/src/components/Lists/List.d.ts +2 -2
- package/dist/types/src/components/Lists/List.d.ts.map +1 -1
- package/dist/types/src/components/Lists/List.stories.d.ts +8 -31
- package/dist/types/src/components/Lists/List.stories.d.ts.map +1 -1
- package/dist/types/src/components/Lists/Tree.d.ts +1 -1
- package/dist/types/src/components/Lists/Tree.d.ts.map +1 -1
- package/dist/types/src/components/Lists/Tree.stories.d.ts +6 -32
- package/dist/types/src/components/Lists/Tree.stories.d.ts.map +1 -1
- package/dist/types/src/components/Lists/Treegrid.d.ts +1 -1
- package/dist/types/src/components/Lists/Treegrid.d.ts.map +1 -1
- package/dist/types/src/components/Lists/Treegrid.stories.d.ts +6 -4
- package/dist/types/src/components/Lists/Treegrid.stories.d.ts.map +1 -1
- package/dist/types/src/components/Main/Main.d.ts +1 -1
- package/dist/types/src/components/Main/Main.d.ts.map +1 -1
- package/dist/types/src/components/Main/Main.stories.d.ts +6 -7
- package/dist/types/src/components/Main/Main.stories.d.ts.map +1 -1
- package/dist/types/src/components/Menus/ContextMenu.d.ts.map +1 -1
- package/dist/types/src/components/Menus/ContextMenu.stories.d.ts +6 -44
- package/dist/types/src/components/Menus/ContextMenu.stories.d.ts.map +1 -1
- package/dist/types/src/components/Menus/DropdownMenu.d.ts +6 -5
- package/dist/types/src/components/Menus/DropdownMenu.d.ts.map +1 -1
- package/dist/types/src/components/Menus/DropdownMenu.stories.d.ts +6 -41
- package/dist/types/src/components/Menus/DropdownMenu.stories.d.ts.map +1 -1
- package/dist/types/src/components/Message/Message.d.ts +1 -1
- package/dist/types/src/components/Message/Message.d.ts.map +1 -1
- package/dist/types/src/components/Message/Message.stories.d.ts +7 -16
- package/dist/types/src/components/Message/Message.stories.d.ts.map +1 -1
- package/dist/types/src/components/Popover/Popover.d.ts +2 -2
- package/dist/types/src/components/Popover/Popover.d.ts.map +1 -1
- package/dist/types/src/components/Popover/Popover.stories.d.ts +6 -34
- package/dist/types/src/components/Popover/Popover.stories.d.ts.map +1 -1
- package/dist/types/src/components/ScrollArea/ScrollArea.d.ts +1 -1
- package/dist/types/src/components/ScrollArea/ScrollArea.d.ts.map +1 -1
- package/dist/types/src/components/ScrollArea/ScrollArea.stories.d.ts +6 -32
- package/dist/types/src/components/ScrollArea/ScrollArea.stories.d.ts.map +1 -1
- package/dist/types/src/components/Select/Select.d.ts.map +1 -1
- package/dist/types/src/components/Select/Select.stories.d.ts +4 -9
- package/dist/types/src/components/Select/Select.stories.d.ts.map +1 -1
- package/dist/types/src/components/Status/Status.stories.d.ts +2 -8
- package/dist/types/src/components/Status/Status.stories.d.ts.map +1 -1
- package/dist/types/src/components/Tag/Tag.stories.d.ts +12 -12
- package/dist/types/src/components/Tag/Tag.stories.d.ts.map +1 -1
- package/dist/types/src/components/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/dist/types/src/components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
- package/dist/types/src/components/ThemeProvider/TranslationsProvider.d.ts +1 -1
- package/dist/types/src/components/ThemeProvider/TranslationsProvider.d.ts.map +1 -1
- package/dist/types/src/components/Toast/Toast.d.ts +1 -1
- package/dist/types/src/components/Toast/Toast.d.ts.map +1 -1
- package/dist/types/src/components/Toast/Toast.stories.d.ts +6 -44
- package/dist/types/src/components/Toast/Toast.stories.d.ts.map +1 -1
- package/dist/types/src/components/Toolbar/Toolbar.d.ts +3 -7
- package/dist/types/src/components/Toolbar/Toolbar.d.ts.map +1 -1
- package/dist/types/src/components/Toolbar/Toolbar.stories.d.ts +6 -50
- package/dist/types/src/components/Toolbar/Toolbar.stories.d.ts.map +1 -1
- package/dist/types/src/components/Tooltip/Tooltip.d.ts +2 -4
- package/dist/types/src/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/types/src/components/Tooltip/Tooltip.stories.d.ts +8 -61
- package/dist/types/src/components/Tooltip/Tooltip.stories.d.ts.map +1 -1
- package/dist/types/src/hooks/useSafeArea.d.ts.map +1 -1
- package/dist/types/src/hooks/useVisualViewport.d.ts +2 -2
- package/dist/types/src/hooks/useVisualViewport.d.ts.map +1 -1
- package/dist/types/src/playground/Controls.stories.d.ts +5 -9
- package/dist/types/src/playground/Controls.stories.d.ts.map +1 -1
- package/dist/types/src/playground/Custom.stories.d.ts +12 -4
- package/dist/types/src/playground/Custom.stories.d.ts.map +1 -1
- package/dist/types/src/playground/Typography.stories.d.ts +5 -11
- package/dist/types/src/playground/Typography.stories.d.ts.map +1 -1
- package/dist/types/src/testing/decorators/withTheme.d.ts +3 -0
- package/dist/types/src/testing/decorators/withTheme.d.ts.map +1 -1
- package/dist/types/src/util/domino.d.ts +18 -0
- package/dist/types/src/util/domino.d.ts.map +1 -0
- package/dist/types/src/util/index.d.ts +2 -1
- package/dist/types/src/util/index.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +22 -22
- package/src/components/Avatars/Avatar.stories.tsx +19 -10
- package/src/components/Avatars/Avatar.tsx +3 -3
- package/src/components/Avatars/AvatarGroup.stories.tsx +10 -6
- package/src/components/Breadcrumb/Breadcrumb.stories.tsx +16 -11
- package/src/components/Breadcrumb/Breadcrumb.tsx +3 -3
- package/src/components/Buttons/Button.stories.tsx +10 -11
- package/src/components/Buttons/IconButton.stories.tsx +11 -8
- package/src/components/Buttons/IconButton.tsx +4 -3
- package/src/components/Buttons/Toggle.stories.tsx +12 -9
- package/src/components/Buttons/ToggleGroup.stories.tsx +13 -10
- package/src/components/Buttons/ToggleGroup.tsx +17 -4
- package/src/components/Clipboard/ClipboardProvider.tsx +1 -1
- package/src/components/Clipboard/CopyButton.tsx +3 -2
- package/src/components/DensityProvider/DensityProvider.tsx +1 -1
- package/src/components/Dialogs/AlertDialog.stories.tsx +14 -11
- package/src/components/Dialogs/AlertDialog.tsx +13 -13
- package/src/components/Dialogs/Dialog.stories.tsx +16 -14
- package/src/components/Dialogs/Dialog.tsx +13 -13
- package/src/components/ElevationProvider/ElevationProvider.tsx +1 -1
- package/src/components/Input/Input.stories.tsx +12 -14
- package/src/components/Input/Input.tsx +16 -16
- package/src/components/Link/Link.stories.tsx +10 -6
- package/src/components/Lists/List.stories.tsx +22 -20
- package/src/components/Lists/List.tsx +15 -16
- package/src/components/Lists/Tree.stories.tsx +11 -8
- package/src/components/Lists/Tree.tsx +4 -3
- package/src/components/Lists/TreeDropIndicator.tsx +1 -1
- package/src/components/Lists/Treegrid.stories.tsx +12 -6
- package/src/components/Lists/Treegrid.tsx +2 -2
- package/src/components/Main/Main.stories.tsx +16 -8
- package/src/components/Main/Main.tsx +16 -10
- package/src/components/Menus/ContextMenu.stories.tsx +11 -8
- package/src/components/Menus/ContextMenu.tsx +1 -0
- package/src/components/Menus/DropdownMenu.stories.tsx +11 -8
- package/src/components/Menus/DropdownMenu.tsx +23 -13
- package/src/components/Message/Message.stories.tsx +11 -7
- package/src/components/Message/Message.tsx +1 -1
- package/src/components/Popover/Popover.stories.tsx +11 -8
- package/src/components/Popover/Popover.tsx +9 -9
- package/src/components/ScrollArea/ScrollArea.stories.tsx +11 -8
- package/src/components/ScrollArea/ScrollArea.tsx +4 -4
- package/src/components/Select/Select.stories.tsx +15 -12
- package/src/components/Select/Select.tsx +5 -5
- package/src/components/Status/Status.stories.tsx +9 -6
- package/src/components/Tag/Tag.stories.tsx +18 -9
- package/src/components/ThemeProvider/ThemeProvider.tsx +3 -2
- package/src/components/ThemeProvider/TranslationsProvider.tsx +3 -3
- package/src/components/Toast/Toast.stories.tsx +11 -8
- package/src/components/Toast/Toast.tsx +9 -9
- package/src/components/Toolbar/Toolbar.stories.tsx +20 -16
- package/src/components/Toolbar/Toolbar.tsx +3 -2
- package/src/components/Tooltip/Tooltip.stories.tsx +15 -11
- package/src/components/Tooltip/Tooltip.tsx +5 -4
- package/src/hooks/useSafeArea.ts +1 -0
- package/src/hooks/useSafeCollisionPadding.ts +1 -1
- package/src/hooks/useVisualViewport.ts +3 -3
- package/src/playground/Controls.stories.tsx +20 -17
- package/src/playground/Custom.stories.tsx +7 -16
- package/src/playground/Typography.stories.tsx +8 -6
- package/src/testing/decorators/withTheme.tsx +31 -0
- package/src/util/domino.ts +51 -0
- package/src/util/index.ts +2 -1
- package/dist/lib/browser/chunk-T6YPS45E.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-TYVQJ4KW.mjs.map +0 -7
- package/src/testing/decorators/withTheme.ts +0 -22
|
@@ -59,7 +59,7 @@ import { useContext as useContext4 } from "react";
|
|
|
59
59
|
import { useSignals as _useSignals } from "@preact-signals/safe-react/tracking";
|
|
60
60
|
import { enUS as dtLocaleEnUs } from "date-fns/locale";
|
|
61
61
|
import i18Next from "i18next";
|
|
62
|
-
import React, {
|
|
62
|
+
import React, { Suspense, createContext, useContext as useContext3, useEffect, useState as useState2 } from "react";
|
|
63
63
|
import { initReactI18next, useTranslation as useI18NextTranslation } from "react-i18next";
|
|
64
64
|
var initialLng = "en-US";
|
|
65
65
|
var initialNs = "dxos-common";
|
|
@@ -140,7 +140,7 @@ var useVisualViewport = (deps) => {
|
|
|
140
140
|
setHeight(window.visualViewport.height);
|
|
141
141
|
}
|
|
142
142
|
}, []);
|
|
143
|
-
useResize2(handleResize);
|
|
143
|
+
useResize2(handleResize, deps);
|
|
144
144
|
return {
|
|
145
145
|
width,
|
|
146
146
|
height
|
|
@@ -269,23 +269,44 @@ var Avatar = {
|
|
|
269
269
|
};
|
|
270
270
|
|
|
271
271
|
// src/components/Breadcrumb/Breadcrumb.tsx
|
|
272
|
-
import { useSignals as
|
|
273
|
-
import { Dot } from "@phosphor-icons/react";
|
|
272
|
+
import { useSignals as _useSignals6 } from "@preact-signals/safe-react/tracking";
|
|
274
273
|
import { Primitive as Primitive4 } from "@radix-ui/react-primitive";
|
|
275
274
|
import { Slot as Slot4 } from "@radix-ui/react-slot";
|
|
276
|
-
import
|
|
275
|
+
import React6, { forwardRef as forwardRef5 } from "react";
|
|
277
276
|
|
|
278
|
-
// src/components/
|
|
277
|
+
// src/components/Icon/Icon.tsx
|
|
279
278
|
import { useSignals as _useSignals4 } from "@preact-signals/safe-react/tracking";
|
|
279
|
+
import React4, { forwardRef as forwardRef3, memo } from "react";
|
|
280
|
+
var Icon = /* @__PURE__ */ memo(/* @__PURE__ */ forwardRef3(({ icon, classNames, size, ...props }, forwardedRef) => {
|
|
281
|
+
var _effect = _useSignals4();
|
|
282
|
+
try {
|
|
283
|
+
const { tx } = useThemeContext();
|
|
284
|
+
const href = useIconHref(icon);
|
|
285
|
+
return /* @__PURE__ */ React4.createElement("svg", {
|
|
286
|
+
...props,
|
|
287
|
+
className: tx("icon.root", "icon", {
|
|
288
|
+
size
|
|
289
|
+
}, classNames),
|
|
290
|
+
ref: forwardedRef
|
|
291
|
+
}, /* @__PURE__ */ React4.createElement("use", {
|
|
292
|
+
href
|
|
293
|
+
}));
|
|
294
|
+
} finally {
|
|
295
|
+
_effect.f();
|
|
296
|
+
}
|
|
297
|
+
}));
|
|
298
|
+
|
|
299
|
+
// src/components/Link/Link.tsx
|
|
300
|
+
import { useSignals as _useSignals5 } from "@preact-signals/safe-react/tracking";
|
|
280
301
|
import { Primitive as Primitive3 } from "@radix-ui/react-primitive";
|
|
281
302
|
import { Slot as Slot3 } from "@radix-ui/react-slot";
|
|
282
|
-
import
|
|
283
|
-
var Link = /* @__PURE__ */
|
|
284
|
-
var _effect =
|
|
303
|
+
import React5, { forwardRef as forwardRef4 } from "react";
|
|
304
|
+
var Link = /* @__PURE__ */ forwardRef4(({ asChild, variant, classNames, ...props }, forwardedRef) => {
|
|
305
|
+
var _effect = _useSignals5();
|
|
285
306
|
try {
|
|
286
307
|
const { tx } = useThemeContext();
|
|
287
308
|
const Root7 = asChild ? Slot3 : Primitive3.a;
|
|
288
|
-
return /* @__PURE__ */
|
|
309
|
+
return /* @__PURE__ */ React5.createElement(Root7, {
|
|
289
310
|
...props,
|
|
290
311
|
className: tx("link.root", "link", {
|
|
291
312
|
variant
|
|
@@ -298,12 +319,12 @@ var Link = /* @__PURE__ */ forwardRef3(({ asChild, variant, classNames, ...props
|
|
|
298
319
|
});
|
|
299
320
|
|
|
300
321
|
// src/components/Breadcrumb/Breadcrumb.tsx
|
|
301
|
-
var BreadcrumbRoot = /* @__PURE__ */
|
|
302
|
-
var _effect =
|
|
322
|
+
var BreadcrumbRoot = /* @__PURE__ */ forwardRef5(({ asChild, classNames, ...props }, forwardedRef) => {
|
|
323
|
+
var _effect = _useSignals6();
|
|
303
324
|
try {
|
|
304
325
|
const { tx } = useThemeContext();
|
|
305
326
|
const Root7 = asChild ? Slot4 : Primitive4.div;
|
|
306
|
-
return /* @__PURE__ */
|
|
327
|
+
return /* @__PURE__ */ React6.createElement(Root7, {
|
|
307
328
|
role: "navigation",
|
|
308
329
|
...props,
|
|
309
330
|
className: tx("breadcrumb.root", "breadcrumb", {}, classNames),
|
|
@@ -313,12 +334,12 @@ var BreadcrumbRoot = /* @__PURE__ */ forwardRef4(({ asChild, classNames, ...prop
|
|
|
313
334
|
_effect.f();
|
|
314
335
|
}
|
|
315
336
|
});
|
|
316
|
-
var BreadcrumbList = /* @__PURE__ */
|
|
317
|
-
var _effect =
|
|
337
|
+
var BreadcrumbList = /* @__PURE__ */ forwardRef5(({ asChild, classNames, ...props }, forwardedRef) => {
|
|
338
|
+
var _effect = _useSignals6();
|
|
318
339
|
try {
|
|
319
340
|
const { tx } = useThemeContext();
|
|
320
341
|
const Root7 = asChild ? Slot4 : Primitive4.ol;
|
|
321
|
-
return /* @__PURE__ */
|
|
342
|
+
return /* @__PURE__ */ React6.createElement(Root7, {
|
|
322
343
|
role: "list",
|
|
323
344
|
...props,
|
|
324
345
|
className: tx("breadcrumb.list", "breadcrumb__list", {}, classNames),
|
|
@@ -328,12 +349,12 @@ var BreadcrumbList = /* @__PURE__ */ forwardRef4(({ asChild, classNames, ...prop
|
|
|
328
349
|
_effect.f();
|
|
329
350
|
}
|
|
330
351
|
});
|
|
331
|
-
var BreadcrumbListItem = /* @__PURE__ */
|
|
332
|
-
var _effect =
|
|
352
|
+
var BreadcrumbListItem = /* @__PURE__ */ forwardRef5(({ asChild, classNames, ...props }, forwardedRef) => {
|
|
353
|
+
var _effect = _useSignals6();
|
|
333
354
|
try {
|
|
334
355
|
const { tx } = useThemeContext();
|
|
335
356
|
const Root7 = asChild ? Slot4 : Primitive4.li;
|
|
336
|
-
return /* @__PURE__ */
|
|
357
|
+
return /* @__PURE__ */ React6.createElement(Root7, {
|
|
337
358
|
role: "listitem",
|
|
338
359
|
...props,
|
|
339
360
|
className: tx("breadcrumb.listItem", "breadcrumb__list__item", {}, classNames),
|
|
@@ -343,11 +364,11 @@ var BreadcrumbListItem = /* @__PURE__ */ forwardRef4(({ asChild, classNames, ...
|
|
|
343
364
|
_effect.f();
|
|
344
365
|
}
|
|
345
366
|
});
|
|
346
|
-
var BreadcrumbLink = /* @__PURE__ */
|
|
347
|
-
var _effect =
|
|
367
|
+
var BreadcrumbLink = /* @__PURE__ */ forwardRef5(({ asChild, ...props }, forwardedRef) => {
|
|
368
|
+
var _effect = _useSignals6();
|
|
348
369
|
try {
|
|
349
370
|
const Root7 = asChild ? Slot4 : Link;
|
|
350
|
-
return /* @__PURE__ */
|
|
371
|
+
return /* @__PURE__ */ React6.createElement(Root7, {
|
|
351
372
|
...props,
|
|
352
373
|
ref: forwardedRef
|
|
353
374
|
});
|
|
@@ -355,12 +376,12 @@ var BreadcrumbLink = /* @__PURE__ */ forwardRef4(({ asChild, ...props }, forward
|
|
|
355
376
|
_effect.f();
|
|
356
377
|
}
|
|
357
378
|
});
|
|
358
|
-
var BreadcrumbCurrent = /* @__PURE__ */
|
|
359
|
-
var _effect =
|
|
379
|
+
var BreadcrumbCurrent = /* @__PURE__ */ forwardRef5(({ asChild, classNames, ...props }, forwardedRef) => {
|
|
380
|
+
var _effect = _useSignals6();
|
|
360
381
|
try {
|
|
361
382
|
const { tx } = useThemeContext();
|
|
362
383
|
const Root7 = asChild ? Slot4 : "h1";
|
|
363
|
-
return /* @__PURE__ */
|
|
384
|
+
return /* @__PURE__ */ React6.createElement(Root7, {
|
|
364
385
|
...props,
|
|
365
386
|
"aria-current": "page",
|
|
366
387
|
className: tx("breadcrumb.current", "breadcrumb__item__heading--current", {}, classNames),
|
|
@@ -371,16 +392,16 @@ var BreadcrumbCurrent = /* @__PURE__ */ forwardRef4(({ asChild, classNames, ...p
|
|
|
371
392
|
}
|
|
372
393
|
});
|
|
373
394
|
var BreadcrumbSeparator = ({ children, classNames, ...props }) => {
|
|
374
|
-
var _effect =
|
|
395
|
+
var _effect = _useSignals6();
|
|
375
396
|
try {
|
|
376
397
|
const { tx } = useThemeContext();
|
|
377
|
-
return /* @__PURE__ */
|
|
398
|
+
return /* @__PURE__ */ React6.createElement(Primitive4.span, {
|
|
378
399
|
role: "separator",
|
|
379
400
|
"aria-hidden": "true",
|
|
380
401
|
...props,
|
|
381
402
|
className: tx("breadcrumb.separator", "breadcrumb__separator", {}, classNames)
|
|
382
|
-
}, children ?? /* @__PURE__ */
|
|
383
|
-
|
|
403
|
+
}, children ?? /* @__PURE__ */ React6.createElement(Icon, {
|
|
404
|
+
icon: "ph--dot--bold"
|
|
384
405
|
}));
|
|
385
406
|
} finally {
|
|
386
407
|
_effect.f();
|
|
@@ -396,25 +417,25 @@ var Breadcrumb = {
|
|
|
396
417
|
};
|
|
397
418
|
|
|
398
419
|
// src/components/Buttons/Button.tsx
|
|
399
|
-
import { useSignals as
|
|
420
|
+
import { useSignals as _useSignals7 } from "@preact-signals/safe-react/tracking";
|
|
400
421
|
import { createContext as createContext3 } from "@radix-ui/react-context";
|
|
401
422
|
import { Primitive as Primitive5 } from "@radix-ui/react-primitive";
|
|
402
423
|
import { Slot as Slot5 } from "@radix-ui/react-slot";
|
|
403
|
-
import
|
|
424
|
+
import React7, { forwardRef as forwardRef6, memo as memo2 } from "react";
|
|
404
425
|
var BUTTON_GROUP_NAME = "ButtonGroup";
|
|
405
426
|
var BUTTON_NAME = "Button";
|
|
406
427
|
var [ButtonGroupProvider, useButtonGroupContext] = createContext3(BUTTON_GROUP_NAME, {
|
|
407
428
|
inGroup: false
|
|
408
429
|
});
|
|
409
|
-
var Button = /* @__PURE__ */
|
|
410
|
-
var _effect =
|
|
430
|
+
var Button = /* @__PURE__ */ memo2(/* @__PURE__ */ forwardRef6(({ classNames, children, density: propsDensity, elevation: propsElevation, variant = "default", asChild, ...props }, ref) => {
|
|
431
|
+
var _effect = _useSignals7();
|
|
411
432
|
try {
|
|
412
433
|
const { inGroup } = useButtonGroupContext(BUTTON_NAME);
|
|
413
434
|
const { tx } = useThemeContext();
|
|
414
435
|
const elevation = useElevationContext(propsElevation);
|
|
415
436
|
const density = useDensityContext(propsDensity);
|
|
416
437
|
const Root7 = asChild ? Slot5 : Primitive5.button;
|
|
417
|
-
return /* @__PURE__ */
|
|
438
|
+
return /* @__PURE__ */ React7.createElement(Root7, {
|
|
418
439
|
ref,
|
|
419
440
|
...props,
|
|
420
441
|
"data-variant": variant,
|
|
@@ -436,20 +457,20 @@ var Button = /* @__PURE__ */ memo(/* @__PURE__ */ forwardRef5(({ classNames, chi
|
|
|
436
457
|
}
|
|
437
458
|
}));
|
|
438
459
|
Button.displayName = BUTTON_NAME;
|
|
439
|
-
var ButtonGroup = /* @__PURE__ */
|
|
440
|
-
var _effect =
|
|
460
|
+
var ButtonGroup = /* @__PURE__ */ forwardRef6(({ children, elevation: propsElevation, classNames, asChild, ...props }, forwardedRef) => {
|
|
461
|
+
var _effect = _useSignals7();
|
|
441
462
|
try {
|
|
442
463
|
const { tx } = useThemeContext();
|
|
443
464
|
const elevation = useElevationContext(propsElevation);
|
|
444
465
|
const Root7 = asChild ? Slot5 : Primitive5.div;
|
|
445
|
-
return /* @__PURE__ */
|
|
466
|
+
return /* @__PURE__ */ React7.createElement(Root7, {
|
|
446
467
|
role: "none",
|
|
447
468
|
...props,
|
|
448
469
|
className: tx("button.group", "button-group", {
|
|
449
470
|
elevation
|
|
450
471
|
}, classNames),
|
|
451
472
|
ref: forwardedRef
|
|
452
|
-
}, /* @__PURE__ */
|
|
473
|
+
}, /* @__PURE__ */ React7.createElement(ButtonGroupProvider, {
|
|
453
474
|
inGroup: true
|
|
454
475
|
}, children));
|
|
455
476
|
} finally {
|
|
@@ -462,28 +483,6 @@ ButtonGroup.displayName = BUTTON_GROUP_NAME;
|
|
|
462
483
|
import { useSignals as _useSignals9 } from "@preact-signals/safe-react/tracking";
|
|
463
484
|
import React9, { forwardRef as forwardRef8 } from "react";
|
|
464
485
|
|
|
465
|
-
// src/components/Icon/Icon.tsx
|
|
466
|
-
import { useSignals as _useSignals7 } from "@preact-signals/safe-react/tracking";
|
|
467
|
-
import React7, { forwardRef as forwardRef6, memo as memo2 } from "react";
|
|
468
|
-
var Icon = /* @__PURE__ */ memo2(/* @__PURE__ */ forwardRef6(({ icon, classNames, size, ...props }, forwardedRef) => {
|
|
469
|
-
var _effect = _useSignals7();
|
|
470
|
-
try {
|
|
471
|
-
const { tx } = useThemeContext();
|
|
472
|
-
const href = useIconHref(icon);
|
|
473
|
-
return /* @__PURE__ */ React7.createElement("svg", {
|
|
474
|
-
...props,
|
|
475
|
-
className: tx("icon.root", "icon", {
|
|
476
|
-
size
|
|
477
|
-
}, classNames),
|
|
478
|
-
ref: forwardedRef
|
|
479
|
-
}, /* @__PURE__ */ React7.createElement("use", {
|
|
480
|
-
href
|
|
481
|
-
}));
|
|
482
|
-
} finally {
|
|
483
|
-
_effect.f();
|
|
484
|
-
}
|
|
485
|
-
}));
|
|
486
|
-
|
|
487
486
|
// src/components/Tooltip/Tooltip.tsx
|
|
488
487
|
import { useSignals as _useSignals8 } from "@preact-signals/safe-react/tracking";
|
|
489
488
|
import { composeEventHandlers } from "@radix-ui/primitive";
|
|
@@ -1139,7 +1138,7 @@ var LabelledIconButton = /* @__PURE__ */ forwardRef8(({ icon, size, iconOnly, la
|
|
|
1139
1138
|
iconOnly
|
|
1140
1139
|
}, classNames),
|
|
1141
1140
|
ref: forwardedRef
|
|
1142
|
-
}, /* @__PURE__ */ React9.createElement(Icon, {
|
|
1141
|
+
}, icon && /* @__PURE__ */ React9.createElement(Icon, {
|
|
1143
1142
|
icon,
|
|
1144
1143
|
size,
|
|
1145
1144
|
classNames: iconClassNames
|
|
@@ -1191,7 +1190,7 @@ var Toggle = /* @__PURE__ */ forwardRef9(({ defaultPressed, pressed, onPressedCh
|
|
|
1191
1190
|
|
|
1192
1191
|
// src/components/Buttons/ToggleGroup.tsx
|
|
1193
1192
|
import { useSignals as _useSignals11 } from "@preact-signals/safe-react/tracking";
|
|
1194
|
-
import {
|
|
1193
|
+
import { ToggleGroupItem as ToggleGroupItemPrimitive, ToggleGroup as ToggleGroupPrimitive } from "@radix-ui/react-toggle-group";
|
|
1195
1194
|
import React11, { forwardRef as forwardRef10 } from "react";
|
|
1196
1195
|
var ToggleGroup = /* @__PURE__ */ forwardRef10(({ classNames, children, ...props }, forwardedRef) => {
|
|
1197
1196
|
var _effect = _useSignals11();
|
|
@@ -1226,6 +1225,26 @@ var ToggleGroupItem = /* @__PURE__ */ forwardRef10(({ variant, elevation, densit
|
|
|
1226
1225
|
_effect.f();
|
|
1227
1226
|
}
|
|
1228
1227
|
});
|
|
1228
|
+
var ToggleGroupIconItem = /* @__PURE__ */ forwardRef10(({ variant, label, icon, size, elevation, density, classNames, ...props }, forwardedRef) => {
|
|
1229
|
+
var _effect = _useSignals11();
|
|
1230
|
+
try {
|
|
1231
|
+
return /* @__PURE__ */ React11.createElement(ToggleGroupItemPrimitive, {
|
|
1232
|
+
...props,
|
|
1233
|
+
asChild: true
|
|
1234
|
+
}, /* @__PURE__ */ React11.createElement(IconButton, {
|
|
1235
|
+
variant,
|
|
1236
|
+
elevation,
|
|
1237
|
+
density,
|
|
1238
|
+
classNames,
|
|
1239
|
+
label,
|
|
1240
|
+
icon,
|
|
1241
|
+
size,
|
|
1242
|
+
ref: forwardedRef
|
|
1243
|
+
}));
|
|
1244
|
+
} finally {
|
|
1245
|
+
_effect.f();
|
|
1246
|
+
}
|
|
1247
|
+
});
|
|
1229
1248
|
|
|
1230
1249
|
// src/components/Clipboard/ClipboardProvider.tsx
|
|
1231
1250
|
import { useSignals as _useSignals12 } from "@preact-signals/safe-react/tracking";
|
|
@@ -1258,13 +1277,69 @@ var ClipboardProvider = ({ children }) => {
|
|
|
1258
1277
|
// src/components/Clipboard/CopyButton.tsx
|
|
1259
1278
|
import { useSignals as _useSignals16 } from "@preact-signals/safe-react/tracking";
|
|
1260
1279
|
import React16 from "react";
|
|
1261
|
-
import { mx as
|
|
1280
|
+
import { mx as mx3 } from "@dxos/react-ui-theme";
|
|
1262
1281
|
|
|
1263
1282
|
// src/components/ThemeProvider/ThemeProvider.tsx
|
|
1264
1283
|
import { useSignals as _useSignals15 } from "@preact-signals/safe-react/tracking";
|
|
1265
1284
|
import { createKeyborg } from "keyborg";
|
|
1266
1285
|
import React15, { createContext as createContext7, useEffect as useEffect3, useMemo as useMemo2 } from "react";
|
|
1267
1286
|
|
|
1287
|
+
// src/util/domino.ts
|
|
1288
|
+
import { mx as mx2 } from "@dxos/react-ui-theme";
|
|
1289
|
+
function _define_property(obj, key, value) {
|
|
1290
|
+
if (key in obj) {
|
|
1291
|
+
Object.defineProperty(obj, key, {
|
|
1292
|
+
value,
|
|
1293
|
+
enumerable: true,
|
|
1294
|
+
configurable: true,
|
|
1295
|
+
writable: true
|
|
1296
|
+
});
|
|
1297
|
+
} else {
|
|
1298
|
+
obj[key] = value;
|
|
1299
|
+
}
|
|
1300
|
+
return obj;
|
|
1301
|
+
}
|
|
1302
|
+
var Domino = class _Domino {
|
|
1303
|
+
static of(tag) {
|
|
1304
|
+
return new _Domino(tag);
|
|
1305
|
+
}
|
|
1306
|
+
classNames(...classNames) {
|
|
1307
|
+
this._el.className = mx2(classNames);
|
|
1308
|
+
return this;
|
|
1309
|
+
}
|
|
1310
|
+
text(value) {
|
|
1311
|
+
this._el.textContent = value;
|
|
1312
|
+
return this;
|
|
1313
|
+
}
|
|
1314
|
+
data(key, value) {
|
|
1315
|
+
this._el.dataset[key] = value;
|
|
1316
|
+
return this;
|
|
1317
|
+
}
|
|
1318
|
+
style(styles) {
|
|
1319
|
+
Object.assign(this._el.style, styles);
|
|
1320
|
+
return this;
|
|
1321
|
+
}
|
|
1322
|
+
attr(key, value) {
|
|
1323
|
+
this._el[key] = value;
|
|
1324
|
+
return this;
|
|
1325
|
+
}
|
|
1326
|
+
children(...children) {
|
|
1327
|
+
children.forEach((child) => this._el.appendChild(child.build()));
|
|
1328
|
+
return this;
|
|
1329
|
+
}
|
|
1330
|
+
on(event, handler) {
|
|
1331
|
+
this._el.addEventListener(event, handler);
|
|
1332
|
+
return this;
|
|
1333
|
+
}
|
|
1334
|
+
build() {
|
|
1335
|
+
return this._el;
|
|
1336
|
+
}
|
|
1337
|
+
constructor(tag) {
|
|
1338
|
+
_define_property(this, "_el", void 0);
|
|
1339
|
+
this._el = document.createElement(tag);
|
|
1340
|
+
}
|
|
1341
|
+
};
|
|
1342
|
+
|
|
1268
1343
|
// src/util/hasIosKeyboard.ts
|
|
1269
1344
|
var hasIosKeyboard = () => {
|
|
1270
1345
|
return !!navigator.userAgent.match(/iP(ad|od|hone).+Safari/);
|
|
@@ -1374,7 +1449,7 @@ var CopyButton = ({ classNames, value, size = 5, ...props }) => {
|
|
|
1374
1449
|
"data-testid": "copy-invitation"
|
|
1375
1450
|
}, /* @__PURE__ */ React16.createElement("div", {
|
|
1376
1451
|
role: "none",
|
|
1377
|
-
className:
|
|
1452
|
+
className: mx3("flex gap-1 items-center", isCopied && inactiveLabelStyles)
|
|
1378
1453
|
}, /* @__PURE__ */ React16.createElement("span", {
|
|
1379
1454
|
className: "pli-1"
|
|
1380
1455
|
}, t("copy label")), /* @__PURE__ */ React16.createElement(Icon, {
|
|
@@ -1382,7 +1457,7 @@ var CopyButton = ({ classNames, value, size = 5, ...props }) => {
|
|
|
1382
1457
|
size
|
|
1383
1458
|
})), /* @__PURE__ */ React16.createElement("div", {
|
|
1384
1459
|
role: "none",
|
|
1385
|
-
className:
|
|
1460
|
+
className: mx3("flex gap-1 items-center", !isCopied && inactiveLabelStyles)
|
|
1386
1461
|
}, /* @__PURE__ */ React16.createElement("span", {
|
|
1387
1462
|
className: "pli-1"
|
|
1388
1463
|
}, t("copy success label")), /* @__PURE__ */ React16.createElement(Icon, {
|
|
@@ -1429,7 +1504,7 @@ var Clipboard = {
|
|
|
1429
1504
|
// src/components/Dialogs/Dialog.tsx
|
|
1430
1505
|
import { useSignals as _useSignals17 } from "@preact-signals/safe-react/tracking";
|
|
1431
1506
|
import { createContext as createContext8 } from "@radix-ui/react-context";
|
|
1432
|
-
import {
|
|
1507
|
+
import { DialogClose as DialogClosePrimitive, DialogContent as DialogContentPrimitive, DialogDescription as DialogDescriptionPrimitive, DialogOverlay as DialogOverlayPrimitive, DialogPortal as DialogPortalPrimitive, Root as DialogRootPrimitive, DialogTitle as DialogTitlePrimitive, DialogTrigger as DialogTriggerPrimitive } from "@radix-ui/react-dialog";
|
|
1433
1508
|
import React17, { forwardRef as forwardRef11 } from "react";
|
|
1434
1509
|
var DialogRoot = (props) => {
|
|
1435
1510
|
var _effect = _useSignals17();
|
|
@@ -1527,7 +1602,7 @@ var Dialog = {
|
|
|
1527
1602
|
|
|
1528
1603
|
// src/components/Dialogs/AlertDialog.tsx
|
|
1529
1604
|
import { useSignals as _useSignals18 } from "@preact-signals/safe-react/tracking";
|
|
1530
|
-
import {
|
|
1605
|
+
import { AlertDialogAction as AlertDialogActionPrimitive, AlertDialogCancel as AlertDialogCancelPrimitive, AlertDialogContent as AlertDialogContentPrimitive, AlertDialogDescription as AlertDialogDescriptionPrimitive, AlertDialogOverlay as AlertDialogOverlayPrimitive, AlertDialogPortal as AlertDialogPortalPrimitive, Root as AlertDialogRootPrimitive, AlertDialogTitle as AlertDialogTitlePrimitive, AlertDialogTrigger as AlertDialogTriggerPrimitive } from "@radix-ui/react-alert-dialog";
|
|
1531
1606
|
import { createContext as createContext9 } from "@radix-ui/react-context";
|
|
1532
1607
|
import React18, { forwardRef as forwardRef12 } from "react";
|
|
1533
1608
|
var AlertDialogRoot = (props) => {
|
|
@@ -1630,8 +1705,8 @@ import { useSignals as _useSignals19 } from "@preact-signals/safe-react/tracking
|
|
|
1630
1705
|
import { Root as CheckboxPrimitive } from "@radix-ui/react-checkbox";
|
|
1631
1706
|
import { useControllableState as useControllableState2 } from "@radix-ui/react-use-controllable-state";
|
|
1632
1707
|
import React19, { forwardRef as forwardRef13, useCallback as useCallback5 } from "react";
|
|
1633
|
-
import {
|
|
1634
|
-
import { mx as
|
|
1708
|
+
import { DescriptionAndValidation as DescriptionAndValidationPrimitive, Description as DescriptionPrimitive, INPUT_NAME, InputRoot, Label as LabelPrimitive, PinInput as PinInputPrimitive, TextArea as TextAreaPrimitive, TextInput as TextInputPrimitive, Validation as ValidationPrimitive, useInputContext } from "@dxos/react-input";
|
|
1709
|
+
import { mx as mx4 } from "@dxos/react-ui-theme";
|
|
1635
1710
|
var Label = /* @__PURE__ */ forwardRef13(({ srOnly, classNames, children, ...props }, forwardedRef) => {
|
|
1636
1711
|
var _effect = _useSignals19();
|
|
1637
1712
|
try {
|
|
@@ -1783,7 +1858,7 @@ var TextArea = /* @__PURE__ */ forwardRef13(({ __inputScope, classNames, density
|
|
|
1783
1858
|
_effect.f();
|
|
1784
1859
|
}
|
|
1785
1860
|
});
|
|
1786
|
-
var Checkbox = /* @__PURE__ */ forwardRef13(({ __inputScope, checked: propsChecked, defaultChecked: propsDefaultChecked, onCheckedChange: propsOnCheckedChange, size,
|
|
1861
|
+
var Checkbox = /* @__PURE__ */ forwardRef13(({ __inputScope, checked: propsChecked, defaultChecked: propsDefaultChecked, onCheckedChange: propsOnCheckedChange, size, classNames, ...props }, forwardedRef) => {
|
|
1787
1862
|
var _effect = _useSignals19();
|
|
1788
1863
|
try {
|
|
1789
1864
|
const [checked, onCheckedChange] = useControllableState2({
|
|
@@ -1829,7 +1904,7 @@ var Switch = /* @__PURE__ */ forwardRef13(({ __inputScope, checked: propsChecked
|
|
|
1829
1904
|
const { id, validationValence, descriptionId, errorMessageId } = useInputContext(INPUT_NAME, __inputScope);
|
|
1830
1905
|
return /* @__PURE__ */ React19.createElement("input", {
|
|
1831
1906
|
type: "checkbox",
|
|
1832
|
-
className:
|
|
1907
|
+
className: mx4("dx-checkbox--switch dx-focus-ring", classNames),
|
|
1833
1908
|
checked,
|
|
1834
1909
|
onChange: (event) => {
|
|
1835
1910
|
onCheckedChange(event.target.checked);
|
|
@@ -1862,10 +1937,9 @@ var Input = {
|
|
|
1862
1937
|
|
|
1863
1938
|
// src/components/Lists/List.tsx
|
|
1864
1939
|
import { useSignals as _useSignals21 } from "@preact-signals/safe-react/tracking";
|
|
1865
|
-
import { CaretDown, CaretRight } from "@phosphor-icons/react";
|
|
1866
1940
|
import { Slot as Slot6 } from "@radix-ui/react-slot";
|
|
1867
1941
|
import React21, { forwardRef as forwardRef14 } from "react";
|
|
1868
|
-
import { List as ListPrimitive,
|
|
1942
|
+
import { LIST_ITEM_NAME, LIST_NAME, ListItemCollapsibleContent, List as ListPrimitive, ListItem as ListPrimitiveItem, ListItemHeading as ListPrimitiveItemHeading, ListItemOpenTrigger as ListPrimitiveItemOpenTrigger, useListContext, useListItemContext } from "@dxos/react-list";
|
|
1869
1943
|
|
|
1870
1944
|
// src/components/Lists/ListDropIndicator.tsx
|
|
1871
1945
|
import { useSignals as _useSignals20 } from "@preact-signals/safe-react/tracking";
|
|
@@ -1986,16 +2060,16 @@ var ListItemOpenTrigger = /* @__PURE__ */ forwardRef14(({ __listItemScope, class
|
|
|
1986
2060
|
const { tx } = useThemeContext();
|
|
1987
2061
|
const density = useDensityContext();
|
|
1988
2062
|
const { open } = useListItemContext(LIST_ITEM_NAME, __listItemScope);
|
|
1989
|
-
const Icon3 = open ? CaretDown : CaretRight;
|
|
1990
2063
|
return /* @__PURE__ */ React21.createElement(ListPrimitiveItemOpenTrigger, {
|
|
1991
2064
|
...props,
|
|
1992
2065
|
className: tx("list.item.openTrigger", "list__listItem__openTrigger", {
|
|
1993
2066
|
density
|
|
1994
2067
|
}, classNames),
|
|
1995
2068
|
ref: forwardedRef
|
|
1996
|
-
}, children || /* @__PURE__ */ React21.createElement(
|
|
1997
|
-
|
|
1998
|
-
|
|
2069
|
+
}, children || /* @__PURE__ */ React21.createElement(Icon, {
|
|
2070
|
+
size: 3,
|
|
2071
|
+
icon: open ? "ph--caret-down--bold" : "ph--caret-right--bold",
|
|
2072
|
+
classNames: tx("list.item.openTriggerIcon", "list__listItem__openTrigger__icon", {})
|
|
1999
2073
|
}));
|
|
2000
2074
|
} finally {
|
|
2001
2075
|
_effect.f();
|
|
@@ -2253,13 +2327,13 @@ var Treegrid = {
|
|
|
2253
2327
|
// src/components/Main/Main.tsx
|
|
2254
2328
|
import { useSignals as _useSignals25 } from "@preact-signals/safe-react/tracking";
|
|
2255
2329
|
import { createContext as createContext10 } from "@radix-ui/react-context";
|
|
2256
|
-
import {
|
|
2330
|
+
import { DialogContent as DialogContent2, Root as DialogRoot2, DialogTitle as DialogTitle2 } from "@radix-ui/react-dialog";
|
|
2257
2331
|
import { Primitive as Primitive8 } from "@radix-ui/react-primitive";
|
|
2258
2332
|
import { Slot as Slot8 } from "@radix-ui/react-slot";
|
|
2259
2333
|
import { useControllableState as useControllableState4 } from "@radix-ui/react-use-controllable-state";
|
|
2260
2334
|
import React25, { forwardRef as forwardRef17, useCallback as useCallback7, useEffect as useEffect5, useRef as useRef2, useState as useState7 } from "react";
|
|
2261
2335
|
import { log } from "@dxos/log";
|
|
2262
|
-
import {
|
|
2336
|
+
import { useForwardedRef, useMediaQuery } from "@dxos/react-hooks";
|
|
2263
2337
|
|
|
2264
2338
|
// src/components/Main/useSwipeToDismiss.ts
|
|
2265
2339
|
import { useCallback as useCallback6, useEffect as useEffect4, useState as useState6 } from "react";
|
|
@@ -2391,19 +2465,19 @@ var useLandmarkMover = (propsOnKeyDown, landmark) => {
|
|
|
2391
2465
|
var [MainProvider, useMainContext] = createContext10(MAIN_NAME, {
|
|
2392
2466
|
resizing: false,
|
|
2393
2467
|
navigationSidebarState: "closed",
|
|
2394
|
-
setNavigationSidebarState: (
|
|
2468
|
+
setNavigationSidebarState: (_nextState) => {
|
|
2395
2469
|
log.warn("Attempt to set sidebar state without initializing `MainRoot`", void 0, {
|
|
2396
2470
|
F: __dxlog_file,
|
|
2397
|
-
L:
|
|
2471
|
+
L: 88,
|
|
2398
2472
|
S: void 0,
|
|
2399
2473
|
C: (f, a) => f(...a)
|
|
2400
2474
|
});
|
|
2401
2475
|
},
|
|
2402
2476
|
complementarySidebarState: "closed",
|
|
2403
|
-
setComplementarySidebarState: (
|
|
2477
|
+
setComplementarySidebarState: (_nextState) => {
|
|
2404
2478
|
log.warn("Attempt to set sidebar state without initializing `MainRoot`", void 0, {
|
|
2405
2479
|
F: __dxlog_file,
|
|
2406
|
-
L:
|
|
2480
|
+
L: 93,
|
|
2407
2481
|
S: void 0,
|
|
2408
2482
|
C: (f, a) => f(...a)
|
|
2409
2483
|
});
|
|
@@ -2524,7 +2598,7 @@ var MainSidebar = /* @__PURE__ */ forwardRef17(({ classNames, children, swipeToD
|
|
|
2524
2598
|
className: tx("main.sidebar", "main__sidebar", {}, classNames),
|
|
2525
2599
|
onKeyDown: handleKeyDown,
|
|
2526
2600
|
...state === "closed" && {
|
|
2527
|
-
inert:
|
|
2601
|
+
inert: true
|
|
2528
2602
|
},
|
|
2529
2603
|
ref
|
|
2530
2604
|
}, children));
|
|
@@ -2671,6 +2745,7 @@ var ContextMenuContent = /* @__PURE__ */ forwardRef18(({ classNames, children, c
|
|
|
2671
2745
|
const safeCollisionPadding = useSafeCollisionPadding(collisionPadding);
|
|
2672
2746
|
return /* @__PURE__ */ React26.createElement(ContextMenuPrimitive.Content, {
|
|
2673
2747
|
...props,
|
|
2748
|
+
"data-arrow-keys": "up down",
|
|
2674
2749
|
collisionPadding: safeCollisionPadding,
|
|
2675
2750
|
className: tx("menu.content", "menu", {
|
|
2676
2751
|
elevation
|
|
@@ -2788,7 +2863,7 @@ import { createMenuScope } from "@radix-ui/react-menu";
|
|
|
2788
2863
|
import { Primitive as Primitive10 } from "@radix-ui/react-primitive";
|
|
2789
2864
|
import { Slot as Slot10 } from "@radix-ui/react-slot";
|
|
2790
2865
|
import { useControllableState as useControllableState5 } from "@radix-ui/react-use-controllable-state";
|
|
2791
|
-
import React27, {
|
|
2866
|
+
import React27, { forwardRef as forwardRef19, useCallback as useCallback8, useEffect as useEffect6, useRef as useRef3 } from "react";
|
|
2792
2867
|
var DROPDOWN_MENU_NAME = "DropdownMenu";
|
|
2793
2868
|
var [createDropdownMenuContext, createDropdownMenuScope] = createContextScope3(DROPDOWN_MENU_NAME, [
|
|
2794
2869
|
createMenuScope
|
|
@@ -2850,6 +2925,7 @@ var DropdownMenuTrigger = /* @__PURE__ */ forwardRef19((props, forwardedRef) =>
|
|
|
2850
2925
|
disabled,
|
|
2851
2926
|
...triggerProps,
|
|
2852
2927
|
ref: composeRefs(forwardedRef, context.triggerRef),
|
|
2928
|
+
"data-arrow-keys": "down",
|
|
2853
2929
|
onPointerDown: composeEventHandlers2(props.onPointerDown, (event) => {
|
|
2854
2930
|
if (!disabled && event.button === 0 && event.ctrlKey === false) {
|
|
2855
2931
|
context.onOpenToggle();
|
|
@@ -2968,6 +3044,7 @@ var DropdownMenuContent = /* @__PURE__ */ forwardRef19((props, forwardedRef) =>
|
|
|
2968
3044
|
hasInteractedOutsideRef.current = true;
|
|
2969
3045
|
}
|
|
2970
3046
|
}),
|
|
3047
|
+
"data-arrow-keys": "up down",
|
|
2971
3048
|
className: tx("menu.content", "menu", {
|
|
2972
3049
|
elevation
|
|
2973
3050
|
}, classNames),
|
|
@@ -3078,11 +3155,13 @@ var RADIO_ITEM_NAME = "DropdownMenuRadioItem";
|
|
|
3078
3155
|
var DropdownMenuRadioItem = /* @__PURE__ */ forwardRef19((props, forwardedRef) => {
|
|
3079
3156
|
var _effect = _useSignals27();
|
|
3080
3157
|
try {
|
|
3081
|
-
const { __scopeDropdownMenu, ...
|
|
3158
|
+
const { __scopeDropdownMenu, classNames, ...itemProps } = props;
|
|
3082
3159
|
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
3083
|
-
|
|
3160
|
+
const { tx } = useThemeContext();
|
|
3161
|
+
return /* @__PURE__ */ React27.createElement(MenuPrimitive.Item, {
|
|
3084
3162
|
...menuScope,
|
|
3085
|
-
...
|
|
3163
|
+
...itemProps,
|
|
3164
|
+
className: tx("menu.item", "menu__item", {}, classNames),
|
|
3086
3165
|
ref: forwardedRef
|
|
3087
3166
|
});
|
|
3088
3167
|
} finally {
|
|
@@ -3336,7 +3415,7 @@ import { Primitive as Primitive12 } from "@radix-ui/react-primitive";
|
|
|
3336
3415
|
import { Slot as Slot12 } from "@radix-ui/react-slot";
|
|
3337
3416
|
import { useControllableState as useControllableState6 } from "@radix-ui/react-use-controllable-state";
|
|
3338
3417
|
import { hideOthers } from "aria-hidden";
|
|
3339
|
-
import React29, { forwardRef as forwardRef21,
|
|
3418
|
+
import React29, { forwardRef as forwardRef21, useCallback as useCallback9, useEffect as useEffect7, useRef as useRef4, useState as useState8 } from "react";
|
|
3340
3419
|
import { RemoveScroll } from "react-remove-scroll";
|
|
3341
3420
|
var POPOVER_NAME = "Popover";
|
|
3342
3421
|
var [createPopoverContext, createPopoverScope] = createContextScope4(POPOVER_NAME, [
|
|
@@ -3733,7 +3812,7 @@ var Status = /* @__PURE__ */ forwardRef22(({ classNames, children, progress = 0,
|
|
|
3733
3812
|
|
|
3734
3813
|
// src/components/ScrollArea/ScrollArea.tsx
|
|
3735
3814
|
import { useSignals as _useSignals31 } from "@preact-signals/safe-react/tracking";
|
|
3736
|
-
import {
|
|
3815
|
+
import { Corner as ScrollAreaPrimitiveCorner, Root as ScrollAreaPrimitiveRoot, Scrollbar as ScrollAreaPrimitiveScrollbar, Thumb as ScrollAreaPrimitiveThumb, Viewport as ScrollAreaPrimitiveViewport } from "@radix-ui/react-scroll-area";
|
|
3737
3816
|
import React31, { forwardRef as forwardRef23 } from "react";
|
|
3738
3817
|
var ScrollAreaRoot = /* @__PURE__ */ forwardRef23(({ classNames, ...props }, forwardedRef) => {
|
|
3739
3818
|
var _effect = _useSignals31();
|
|
@@ -3811,7 +3890,6 @@ var ScrollArea = {
|
|
|
3811
3890
|
|
|
3812
3891
|
// src/components/Select/Select.tsx
|
|
3813
3892
|
import { useSignals as _useSignals32 } from "@preact-signals/safe-react/tracking";
|
|
3814
|
-
import { CaretDown as CaretDown2, CaretUp } from "@phosphor-icons/react";
|
|
3815
3893
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
3816
3894
|
import React32, { forwardRef as forwardRef24 } from "react";
|
|
3817
3895
|
var SelectRoot = SelectPrimitive.Root;
|
|
@@ -3822,7 +3900,6 @@ var SelectPortal = SelectPrimitive.Portal;
|
|
|
3822
3900
|
var SelectTriggerButton = /* @__PURE__ */ forwardRef24(({ children, placeholder, ...props }, forwardedRef) => {
|
|
3823
3901
|
var _effect = _useSignals32();
|
|
3824
3902
|
try {
|
|
3825
|
-
const { tx } = useThemeContext();
|
|
3826
3903
|
return /* @__PURE__ */ React32.createElement(SelectPrimitive.Trigger, {
|
|
3827
3904
|
asChild: true,
|
|
3828
3905
|
ref: forwardedRef
|
|
@@ -3832,9 +3909,9 @@ var SelectTriggerButton = /* @__PURE__ */ forwardRef24(({ children, placeholder,
|
|
|
3832
3909
|
className: "w-1 flex-1"
|
|
3833
3910
|
}), /* @__PURE__ */ React32.createElement(SelectPrimitive.Icon, {
|
|
3834
3911
|
asChild: true
|
|
3835
|
-
}, /* @__PURE__ */ React32.createElement(
|
|
3836
|
-
|
|
3837
|
-
|
|
3912
|
+
}, /* @__PURE__ */ React32.createElement(Icon, {
|
|
3913
|
+
size: 3,
|
|
3914
|
+
icon: "ph--caret-down--bold"
|
|
3838
3915
|
}))));
|
|
3839
3916
|
} finally {
|
|
3840
3917
|
_effect.f();
|
|
@@ -3848,6 +3925,7 @@ var SelectContent = /* @__PURE__ */ forwardRef24(({ classNames, children, collis
|
|
|
3848
3925
|
const safeCollisionPadding = useSafeCollisionPadding(collisionPadding);
|
|
3849
3926
|
return /* @__PURE__ */ React32.createElement(SelectPrimitive.Content, {
|
|
3850
3927
|
...props,
|
|
3928
|
+
"data-arrow-keys": "up down",
|
|
3851
3929
|
collisionPadding: safeCollisionPadding,
|
|
3852
3930
|
className: tx("select.content", "select__content", {
|
|
3853
3931
|
elevation
|
|
@@ -3867,8 +3945,9 @@ var SelectScrollUpButton2 = /* @__PURE__ */ forwardRef24(({ classNames, children
|
|
|
3867
3945
|
...props,
|
|
3868
3946
|
className: tx("select.scrollButton", "select__scroll-button--up", {}, classNames),
|
|
3869
3947
|
ref: forwardedRef
|
|
3870
|
-
}, children ?? /* @__PURE__ */ React32.createElement(
|
|
3871
|
-
|
|
3948
|
+
}, children ?? /* @__PURE__ */ React32.createElement(Icon, {
|
|
3949
|
+
size: 3,
|
|
3950
|
+
icon: "ph--caret-up--bold"
|
|
3872
3951
|
}));
|
|
3873
3952
|
} finally {
|
|
3874
3953
|
_effect.f();
|
|
@@ -3882,8 +3961,9 @@ var SelectScrollDownButton2 = /* @__PURE__ */ forwardRef24(({ classNames, childr
|
|
|
3882
3961
|
...props,
|
|
3883
3962
|
className: tx("select.scrollButton", "select__scroll-button--down", {}, classNames),
|
|
3884
3963
|
ref: forwardedRef
|
|
3885
|
-
}, children ?? /* @__PURE__ */ React32.createElement(
|
|
3886
|
-
|
|
3964
|
+
}, children ?? /* @__PURE__ */ React32.createElement(Icon, {
|
|
3965
|
+
size: 3,
|
|
3966
|
+
icon: "ph--caret-down--bold"
|
|
3887
3967
|
}));
|
|
3888
3968
|
} finally {
|
|
3889
3969
|
_effect.f();
|
|
@@ -4044,7 +4124,7 @@ var Tag = /* @__PURE__ */ forwardRef26(({ asChild, palette = "neutral", classNam
|
|
|
4044
4124
|
import { useSignals as _useSignals35 } from "@preact-signals/safe-react/tracking";
|
|
4045
4125
|
import { Primitive as Primitive14 } from "@radix-ui/react-primitive";
|
|
4046
4126
|
import { Slot as Slot14 } from "@radix-ui/react-slot";
|
|
4047
|
-
import {
|
|
4127
|
+
import { ToastAction as ToastActionPrimitive, ToastClose as ToastClosePrimitive, ToastDescription as ToastDescriptionPrimitive, ToastProvider as ToastProviderPrimitive, Root as ToastRootPrimitive, ToastTitle as ToastTitlePrimitive, ToastViewport as ToastViewportPrimitive } from "@radix-ui/react-toast";
|
|
4048
4128
|
import React35, { forwardRef as forwardRef27 } from "react";
|
|
4049
4129
|
var ToastProvider = ToastProviderPrimitive;
|
|
4050
4130
|
var ToastViewport = /* @__PURE__ */ forwardRef27(({ classNames, ...props }, forwardedRef) => {
|
|
@@ -4154,6 +4234,7 @@ var ToolbarRoot = /* @__PURE__ */ forwardRef28(({ classNames, children, layoutMa
|
|
|
4154
4234
|
const { tx } = useThemeContext();
|
|
4155
4235
|
return /* @__PURE__ */ React36.createElement(ToolbarPrimitive.Root, {
|
|
4156
4236
|
...props,
|
|
4237
|
+
"data-arrow-keys": props.orientation === "vertical" ? "up down" : "left right",
|
|
4157
4238
|
className: tx("toolbar.root", "toolbar", {
|
|
4158
4239
|
layoutManaged
|
|
4159
4240
|
}, classNames),
|
|
@@ -4318,13 +4399,13 @@ export {
|
|
|
4318
4399
|
AnchoredOverflow,
|
|
4319
4400
|
useAvatarContext,
|
|
4320
4401
|
Avatar,
|
|
4402
|
+
Icon,
|
|
4321
4403
|
Link,
|
|
4322
4404
|
Breadcrumb,
|
|
4323
4405
|
BUTTON_GROUP_NAME,
|
|
4324
4406
|
useButtonGroupContext,
|
|
4325
4407
|
Button,
|
|
4326
4408
|
ButtonGroup,
|
|
4327
|
-
Icon,
|
|
4328
4409
|
createTooltipScope,
|
|
4329
4410
|
useTooltipContext,
|
|
4330
4411
|
Tooltip,
|
|
@@ -4332,7 +4413,9 @@ export {
|
|
|
4332
4413
|
Toggle,
|
|
4333
4414
|
ToggleGroup,
|
|
4334
4415
|
ToggleGroupItem,
|
|
4416
|
+
ToggleGroupIconItem,
|
|
4335
4417
|
useClipboard,
|
|
4418
|
+
Domino,
|
|
4336
4419
|
hasIosKeyboard,
|
|
4337
4420
|
DensityContext,
|
|
4338
4421
|
DensityProvider,
|
|
@@ -4344,8 +4427,8 @@ export {
|
|
|
4344
4427
|
Dialog,
|
|
4345
4428
|
AlertDialog,
|
|
4346
4429
|
Input,
|
|
4347
|
-
LIST_NAME,
|
|
4348
4430
|
LIST_ITEM_NAME,
|
|
4431
|
+
LIST_NAME,
|
|
4349
4432
|
useListContext,
|
|
4350
4433
|
useListItemContext,
|
|
4351
4434
|
List,
|
|
@@ -4375,4 +4458,4 @@ export {
|
|
|
4375
4458
|
Toast,
|
|
4376
4459
|
Toolbar
|
|
4377
4460
|
};
|
|
4378
|
-
//# sourceMappingURL=chunk-
|
|
4461
|
+
//# sourceMappingURL=chunk-QTUGGUCB.mjs.map
|