@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
|
@@ -57,7 +57,7 @@ import { useContext as useContext4 } from "react";
|
|
|
57
57
|
import { useSignals as _useSignals } from "@preact-signals/safe-react/tracking";
|
|
58
58
|
import { enUS as dtLocaleEnUs } from "date-fns/locale";
|
|
59
59
|
import i18Next from "i18next";
|
|
60
|
-
import React, {
|
|
60
|
+
import React, { Suspense, createContext, useContext as useContext3, useEffect, useState as useState2 } from "react";
|
|
61
61
|
import { initReactI18next, useTranslation as useI18NextTranslation } from "react-i18next";
|
|
62
62
|
var initialLng = "en-US";
|
|
63
63
|
var initialNs = "dxos-common";
|
|
@@ -138,7 +138,7 @@ var useVisualViewport = (deps) => {
|
|
|
138
138
|
setHeight(window.visualViewport.height);
|
|
139
139
|
}
|
|
140
140
|
}, []);
|
|
141
|
-
useResize2(handleResize);
|
|
141
|
+
useResize2(handleResize, deps);
|
|
142
142
|
return {
|
|
143
143
|
width,
|
|
144
144
|
height
|
|
@@ -267,23 +267,44 @@ var Avatar = {
|
|
|
267
267
|
};
|
|
268
268
|
|
|
269
269
|
// src/components/Breadcrumb/Breadcrumb.tsx
|
|
270
|
-
import { useSignals as
|
|
271
|
-
import { Dot } from "@phosphor-icons/react";
|
|
270
|
+
import { useSignals as _useSignals6 } from "@preact-signals/safe-react/tracking";
|
|
272
271
|
import { Primitive as Primitive4 } from "@radix-ui/react-primitive";
|
|
273
272
|
import { Slot as Slot4 } from "@radix-ui/react-slot";
|
|
274
|
-
import
|
|
273
|
+
import React6, { forwardRef as forwardRef5 } from "react";
|
|
275
274
|
|
|
276
|
-
// src/components/
|
|
275
|
+
// src/components/Icon/Icon.tsx
|
|
277
276
|
import { useSignals as _useSignals4 } from "@preact-signals/safe-react/tracking";
|
|
277
|
+
import React4, { forwardRef as forwardRef3, memo } from "react";
|
|
278
|
+
var Icon = /* @__PURE__ */ memo(/* @__PURE__ */ forwardRef3(({ icon, classNames, size, ...props }, forwardedRef) => {
|
|
279
|
+
var _effect = _useSignals4();
|
|
280
|
+
try {
|
|
281
|
+
const { tx } = useThemeContext();
|
|
282
|
+
const href = useIconHref(icon);
|
|
283
|
+
return /* @__PURE__ */ React4.createElement("svg", {
|
|
284
|
+
...props,
|
|
285
|
+
className: tx("icon.root", "icon", {
|
|
286
|
+
size
|
|
287
|
+
}, classNames),
|
|
288
|
+
ref: forwardedRef
|
|
289
|
+
}, /* @__PURE__ */ React4.createElement("use", {
|
|
290
|
+
href
|
|
291
|
+
}));
|
|
292
|
+
} finally {
|
|
293
|
+
_effect.f();
|
|
294
|
+
}
|
|
295
|
+
}));
|
|
296
|
+
|
|
297
|
+
// src/components/Link/Link.tsx
|
|
298
|
+
import { useSignals as _useSignals5 } from "@preact-signals/safe-react/tracking";
|
|
278
299
|
import { Primitive as Primitive3 } from "@radix-ui/react-primitive";
|
|
279
300
|
import { Slot as Slot3 } from "@radix-ui/react-slot";
|
|
280
|
-
import
|
|
281
|
-
var Link = /* @__PURE__ */
|
|
282
|
-
var _effect =
|
|
301
|
+
import React5, { forwardRef as forwardRef4 } from "react";
|
|
302
|
+
var Link = /* @__PURE__ */ forwardRef4(({ asChild, variant, classNames, ...props }, forwardedRef) => {
|
|
303
|
+
var _effect = _useSignals5();
|
|
283
304
|
try {
|
|
284
305
|
const { tx } = useThemeContext();
|
|
285
306
|
const Root7 = asChild ? Slot3 : Primitive3.a;
|
|
286
|
-
return /* @__PURE__ */
|
|
307
|
+
return /* @__PURE__ */ React5.createElement(Root7, {
|
|
287
308
|
...props,
|
|
288
309
|
className: tx("link.root", "link", {
|
|
289
310
|
variant
|
|
@@ -296,12 +317,12 @@ var Link = /* @__PURE__ */ forwardRef3(({ asChild, variant, classNames, ...props
|
|
|
296
317
|
});
|
|
297
318
|
|
|
298
319
|
// src/components/Breadcrumb/Breadcrumb.tsx
|
|
299
|
-
var BreadcrumbRoot = /* @__PURE__ */
|
|
300
|
-
var _effect =
|
|
320
|
+
var BreadcrumbRoot = /* @__PURE__ */ forwardRef5(({ asChild, classNames, ...props }, forwardedRef) => {
|
|
321
|
+
var _effect = _useSignals6();
|
|
301
322
|
try {
|
|
302
323
|
const { tx } = useThemeContext();
|
|
303
324
|
const Root7 = asChild ? Slot4 : Primitive4.div;
|
|
304
|
-
return /* @__PURE__ */
|
|
325
|
+
return /* @__PURE__ */ React6.createElement(Root7, {
|
|
305
326
|
role: "navigation",
|
|
306
327
|
...props,
|
|
307
328
|
className: tx("breadcrumb.root", "breadcrumb", {}, classNames),
|
|
@@ -311,12 +332,12 @@ var BreadcrumbRoot = /* @__PURE__ */ forwardRef4(({ asChild, classNames, ...prop
|
|
|
311
332
|
_effect.f();
|
|
312
333
|
}
|
|
313
334
|
});
|
|
314
|
-
var BreadcrumbList = /* @__PURE__ */
|
|
315
|
-
var _effect =
|
|
335
|
+
var BreadcrumbList = /* @__PURE__ */ forwardRef5(({ asChild, classNames, ...props }, forwardedRef) => {
|
|
336
|
+
var _effect = _useSignals6();
|
|
316
337
|
try {
|
|
317
338
|
const { tx } = useThemeContext();
|
|
318
339
|
const Root7 = asChild ? Slot4 : Primitive4.ol;
|
|
319
|
-
return /* @__PURE__ */
|
|
340
|
+
return /* @__PURE__ */ React6.createElement(Root7, {
|
|
320
341
|
role: "list",
|
|
321
342
|
...props,
|
|
322
343
|
className: tx("breadcrumb.list", "breadcrumb__list", {}, classNames),
|
|
@@ -326,12 +347,12 @@ var BreadcrumbList = /* @__PURE__ */ forwardRef4(({ asChild, classNames, ...prop
|
|
|
326
347
|
_effect.f();
|
|
327
348
|
}
|
|
328
349
|
});
|
|
329
|
-
var BreadcrumbListItem = /* @__PURE__ */
|
|
330
|
-
var _effect =
|
|
350
|
+
var BreadcrumbListItem = /* @__PURE__ */ forwardRef5(({ asChild, classNames, ...props }, forwardedRef) => {
|
|
351
|
+
var _effect = _useSignals6();
|
|
331
352
|
try {
|
|
332
353
|
const { tx } = useThemeContext();
|
|
333
354
|
const Root7 = asChild ? Slot4 : Primitive4.li;
|
|
334
|
-
return /* @__PURE__ */
|
|
355
|
+
return /* @__PURE__ */ React6.createElement(Root7, {
|
|
335
356
|
role: "listitem",
|
|
336
357
|
...props,
|
|
337
358
|
className: tx("breadcrumb.listItem", "breadcrumb__list__item", {}, classNames),
|
|
@@ -341,11 +362,11 @@ var BreadcrumbListItem = /* @__PURE__ */ forwardRef4(({ asChild, classNames, ...
|
|
|
341
362
|
_effect.f();
|
|
342
363
|
}
|
|
343
364
|
});
|
|
344
|
-
var BreadcrumbLink = /* @__PURE__ */
|
|
345
|
-
var _effect =
|
|
365
|
+
var BreadcrumbLink = /* @__PURE__ */ forwardRef5(({ asChild, ...props }, forwardedRef) => {
|
|
366
|
+
var _effect = _useSignals6();
|
|
346
367
|
try {
|
|
347
368
|
const Root7 = asChild ? Slot4 : Link;
|
|
348
|
-
return /* @__PURE__ */
|
|
369
|
+
return /* @__PURE__ */ React6.createElement(Root7, {
|
|
349
370
|
...props,
|
|
350
371
|
ref: forwardedRef
|
|
351
372
|
});
|
|
@@ -353,12 +374,12 @@ var BreadcrumbLink = /* @__PURE__ */ forwardRef4(({ asChild, ...props }, forward
|
|
|
353
374
|
_effect.f();
|
|
354
375
|
}
|
|
355
376
|
});
|
|
356
|
-
var BreadcrumbCurrent = /* @__PURE__ */
|
|
357
|
-
var _effect =
|
|
377
|
+
var BreadcrumbCurrent = /* @__PURE__ */ forwardRef5(({ asChild, classNames, ...props }, forwardedRef) => {
|
|
378
|
+
var _effect = _useSignals6();
|
|
358
379
|
try {
|
|
359
380
|
const { tx } = useThemeContext();
|
|
360
381
|
const Root7 = asChild ? Slot4 : "h1";
|
|
361
|
-
return /* @__PURE__ */
|
|
382
|
+
return /* @__PURE__ */ React6.createElement(Root7, {
|
|
362
383
|
...props,
|
|
363
384
|
"aria-current": "page",
|
|
364
385
|
className: tx("breadcrumb.current", "breadcrumb__item__heading--current", {}, classNames),
|
|
@@ -369,16 +390,16 @@ var BreadcrumbCurrent = /* @__PURE__ */ forwardRef4(({ asChild, classNames, ...p
|
|
|
369
390
|
}
|
|
370
391
|
});
|
|
371
392
|
var BreadcrumbSeparator = ({ children, classNames, ...props }) => {
|
|
372
|
-
var _effect =
|
|
393
|
+
var _effect = _useSignals6();
|
|
373
394
|
try {
|
|
374
395
|
const { tx } = useThemeContext();
|
|
375
|
-
return /* @__PURE__ */
|
|
396
|
+
return /* @__PURE__ */ React6.createElement(Primitive4.span, {
|
|
376
397
|
role: "separator",
|
|
377
398
|
"aria-hidden": "true",
|
|
378
399
|
...props,
|
|
379
400
|
className: tx("breadcrumb.separator", "breadcrumb__separator", {}, classNames)
|
|
380
|
-
}, children ?? /* @__PURE__ */
|
|
381
|
-
|
|
401
|
+
}, children ?? /* @__PURE__ */ React6.createElement(Icon, {
|
|
402
|
+
icon: "ph--dot--bold"
|
|
382
403
|
}));
|
|
383
404
|
} finally {
|
|
384
405
|
_effect.f();
|
|
@@ -394,25 +415,25 @@ var Breadcrumb = {
|
|
|
394
415
|
};
|
|
395
416
|
|
|
396
417
|
// src/components/Buttons/Button.tsx
|
|
397
|
-
import { useSignals as
|
|
418
|
+
import { useSignals as _useSignals7 } from "@preact-signals/safe-react/tracking";
|
|
398
419
|
import { createContext as createContext3 } from "@radix-ui/react-context";
|
|
399
420
|
import { Primitive as Primitive5 } from "@radix-ui/react-primitive";
|
|
400
421
|
import { Slot as Slot5 } from "@radix-ui/react-slot";
|
|
401
|
-
import
|
|
422
|
+
import React7, { forwardRef as forwardRef6, memo as memo2 } from "react";
|
|
402
423
|
var BUTTON_GROUP_NAME = "ButtonGroup";
|
|
403
424
|
var BUTTON_NAME = "Button";
|
|
404
425
|
var [ButtonGroupProvider, useButtonGroupContext] = createContext3(BUTTON_GROUP_NAME, {
|
|
405
426
|
inGroup: false
|
|
406
427
|
});
|
|
407
|
-
var Button = /* @__PURE__ */
|
|
408
|
-
var _effect =
|
|
428
|
+
var Button = /* @__PURE__ */ memo2(/* @__PURE__ */ forwardRef6(({ classNames, children, density: propsDensity, elevation: propsElevation, variant = "default", asChild, ...props }, ref) => {
|
|
429
|
+
var _effect = _useSignals7();
|
|
409
430
|
try {
|
|
410
431
|
const { inGroup } = useButtonGroupContext(BUTTON_NAME);
|
|
411
432
|
const { tx } = useThemeContext();
|
|
412
433
|
const elevation = useElevationContext(propsElevation);
|
|
413
434
|
const density = useDensityContext(propsDensity);
|
|
414
435
|
const Root7 = asChild ? Slot5 : Primitive5.button;
|
|
415
|
-
return /* @__PURE__ */
|
|
436
|
+
return /* @__PURE__ */ React7.createElement(Root7, {
|
|
416
437
|
ref,
|
|
417
438
|
...props,
|
|
418
439
|
"data-variant": variant,
|
|
@@ -434,20 +455,20 @@ var Button = /* @__PURE__ */ memo(/* @__PURE__ */ forwardRef5(({ classNames, chi
|
|
|
434
455
|
}
|
|
435
456
|
}));
|
|
436
457
|
Button.displayName = BUTTON_NAME;
|
|
437
|
-
var ButtonGroup = /* @__PURE__ */
|
|
438
|
-
var _effect =
|
|
458
|
+
var ButtonGroup = /* @__PURE__ */ forwardRef6(({ children, elevation: propsElevation, classNames, asChild, ...props }, forwardedRef) => {
|
|
459
|
+
var _effect = _useSignals7();
|
|
439
460
|
try {
|
|
440
461
|
const { tx } = useThemeContext();
|
|
441
462
|
const elevation = useElevationContext(propsElevation);
|
|
442
463
|
const Root7 = asChild ? Slot5 : Primitive5.div;
|
|
443
|
-
return /* @__PURE__ */
|
|
464
|
+
return /* @__PURE__ */ React7.createElement(Root7, {
|
|
444
465
|
role: "none",
|
|
445
466
|
...props,
|
|
446
467
|
className: tx("button.group", "button-group", {
|
|
447
468
|
elevation
|
|
448
469
|
}, classNames),
|
|
449
470
|
ref: forwardedRef
|
|
450
|
-
}, /* @__PURE__ */
|
|
471
|
+
}, /* @__PURE__ */ React7.createElement(ButtonGroupProvider, {
|
|
451
472
|
inGroup: true
|
|
452
473
|
}, children));
|
|
453
474
|
} finally {
|
|
@@ -460,28 +481,6 @@ ButtonGroup.displayName = BUTTON_GROUP_NAME;
|
|
|
460
481
|
import { useSignals as _useSignals9 } from "@preact-signals/safe-react/tracking";
|
|
461
482
|
import React9, { forwardRef as forwardRef8 } from "react";
|
|
462
483
|
|
|
463
|
-
// src/components/Icon/Icon.tsx
|
|
464
|
-
import { useSignals as _useSignals7 } from "@preact-signals/safe-react/tracking";
|
|
465
|
-
import React7, { forwardRef as forwardRef6, memo as memo2 } from "react";
|
|
466
|
-
var Icon = /* @__PURE__ */ memo2(/* @__PURE__ */ forwardRef6(({ icon, classNames, size, ...props }, forwardedRef) => {
|
|
467
|
-
var _effect = _useSignals7();
|
|
468
|
-
try {
|
|
469
|
-
const { tx } = useThemeContext();
|
|
470
|
-
const href = useIconHref(icon);
|
|
471
|
-
return /* @__PURE__ */ React7.createElement("svg", {
|
|
472
|
-
...props,
|
|
473
|
-
className: tx("icon.root", "icon", {
|
|
474
|
-
size
|
|
475
|
-
}, classNames),
|
|
476
|
-
ref: forwardedRef
|
|
477
|
-
}, /* @__PURE__ */ React7.createElement("use", {
|
|
478
|
-
href
|
|
479
|
-
}));
|
|
480
|
-
} finally {
|
|
481
|
-
_effect.f();
|
|
482
|
-
}
|
|
483
|
-
}));
|
|
484
|
-
|
|
485
484
|
// src/components/Tooltip/Tooltip.tsx
|
|
486
485
|
import { useSignals as _useSignals8 } from "@preact-signals/safe-react/tracking";
|
|
487
486
|
import { composeEventHandlers } from "@radix-ui/primitive";
|
|
@@ -1137,7 +1136,7 @@ var LabelledIconButton = /* @__PURE__ */ forwardRef8(({ icon, size, iconOnly, la
|
|
|
1137
1136
|
iconOnly
|
|
1138
1137
|
}, classNames),
|
|
1139
1138
|
ref: forwardedRef
|
|
1140
|
-
}, /* @__PURE__ */ React9.createElement(Icon, {
|
|
1139
|
+
}, icon && /* @__PURE__ */ React9.createElement(Icon, {
|
|
1141
1140
|
icon,
|
|
1142
1141
|
size,
|
|
1143
1142
|
classNames: iconClassNames
|
|
@@ -1189,7 +1188,7 @@ var Toggle = /* @__PURE__ */ forwardRef9(({ defaultPressed, pressed, onPressedCh
|
|
|
1189
1188
|
|
|
1190
1189
|
// src/components/Buttons/ToggleGroup.tsx
|
|
1191
1190
|
import { useSignals as _useSignals11 } from "@preact-signals/safe-react/tracking";
|
|
1192
|
-
import {
|
|
1191
|
+
import { ToggleGroupItem as ToggleGroupItemPrimitive, ToggleGroup as ToggleGroupPrimitive } from "@radix-ui/react-toggle-group";
|
|
1193
1192
|
import React11, { forwardRef as forwardRef10 } from "react";
|
|
1194
1193
|
var ToggleGroup = /* @__PURE__ */ forwardRef10(({ classNames, children, ...props }, forwardedRef) => {
|
|
1195
1194
|
var _effect = _useSignals11();
|
|
@@ -1224,6 +1223,26 @@ var ToggleGroupItem = /* @__PURE__ */ forwardRef10(({ variant, elevation, densit
|
|
|
1224
1223
|
_effect.f();
|
|
1225
1224
|
}
|
|
1226
1225
|
});
|
|
1226
|
+
var ToggleGroupIconItem = /* @__PURE__ */ forwardRef10(({ variant, label, icon, size, elevation, density, classNames, ...props }, forwardedRef) => {
|
|
1227
|
+
var _effect = _useSignals11();
|
|
1228
|
+
try {
|
|
1229
|
+
return /* @__PURE__ */ React11.createElement(ToggleGroupItemPrimitive, {
|
|
1230
|
+
...props,
|
|
1231
|
+
asChild: true
|
|
1232
|
+
}, /* @__PURE__ */ React11.createElement(IconButton, {
|
|
1233
|
+
variant,
|
|
1234
|
+
elevation,
|
|
1235
|
+
density,
|
|
1236
|
+
classNames,
|
|
1237
|
+
label,
|
|
1238
|
+
icon,
|
|
1239
|
+
size,
|
|
1240
|
+
ref: forwardedRef
|
|
1241
|
+
}));
|
|
1242
|
+
} finally {
|
|
1243
|
+
_effect.f();
|
|
1244
|
+
}
|
|
1245
|
+
});
|
|
1227
1246
|
|
|
1228
1247
|
// src/components/Clipboard/ClipboardProvider.tsx
|
|
1229
1248
|
import { useSignals as _useSignals12 } from "@preact-signals/safe-react/tracking";
|
|
@@ -1256,13 +1275,69 @@ var ClipboardProvider = ({ children }) => {
|
|
|
1256
1275
|
// src/components/Clipboard/CopyButton.tsx
|
|
1257
1276
|
import { useSignals as _useSignals16 } from "@preact-signals/safe-react/tracking";
|
|
1258
1277
|
import React16 from "react";
|
|
1259
|
-
import { mx as
|
|
1278
|
+
import { mx as mx3 } from "@dxos/react-ui-theme";
|
|
1260
1279
|
|
|
1261
1280
|
// src/components/ThemeProvider/ThemeProvider.tsx
|
|
1262
1281
|
import { useSignals as _useSignals15 } from "@preact-signals/safe-react/tracking";
|
|
1263
1282
|
import { createKeyborg } from "keyborg";
|
|
1264
1283
|
import React15, { createContext as createContext7, useEffect as useEffect3, useMemo as useMemo2 } from "react";
|
|
1265
1284
|
|
|
1285
|
+
// src/util/domino.ts
|
|
1286
|
+
import { mx as mx2 } from "@dxos/react-ui-theme";
|
|
1287
|
+
function _define_property(obj, key, value) {
|
|
1288
|
+
if (key in obj) {
|
|
1289
|
+
Object.defineProperty(obj, key, {
|
|
1290
|
+
value,
|
|
1291
|
+
enumerable: true,
|
|
1292
|
+
configurable: true,
|
|
1293
|
+
writable: true
|
|
1294
|
+
});
|
|
1295
|
+
} else {
|
|
1296
|
+
obj[key] = value;
|
|
1297
|
+
}
|
|
1298
|
+
return obj;
|
|
1299
|
+
}
|
|
1300
|
+
var Domino = class _Domino {
|
|
1301
|
+
static of(tag) {
|
|
1302
|
+
return new _Domino(tag);
|
|
1303
|
+
}
|
|
1304
|
+
classNames(...classNames) {
|
|
1305
|
+
this._el.className = mx2(classNames);
|
|
1306
|
+
return this;
|
|
1307
|
+
}
|
|
1308
|
+
text(value) {
|
|
1309
|
+
this._el.textContent = value;
|
|
1310
|
+
return this;
|
|
1311
|
+
}
|
|
1312
|
+
data(key, value) {
|
|
1313
|
+
this._el.dataset[key] = value;
|
|
1314
|
+
return this;
|
|
1315
|
+
}
|
|
1316
|
+
style(styles) {
|
|
1317
|
+
Object.assign(this._el.style, styles);
|
|
1318
|
+
return this;
|
|
1319
|
+
}
|
|
1320
|
+
attr(key, value) {
|
|
1321
|
+
this._el[key] = value;
|
|
1322
|
+
return this;
|
|
1323
|
+
}
|
|
1324
|
+
children(...children) {
|
|
1325
|
+
children.forEach((child) => this._el.appendChild(child.build()));
|
|
1326
|
+
return this;
|
|
1327
|
+
}
|
|
1328
|
+
on(event, handler) {
|
|
1329
|
+
this._el.addEventListener(event, handler);
|
|
1330
|
+
return this;
|
|
1331
|
+
}
|
|
1332
|
+
build() {
|
|
1333
|
+
return this._el;
|
|
1334
|
+
}
|
|
1335
|
+
constructor(tag) {
|
|
1336
|
+
_define_property(this, "_el", void 0);
|
|
1337
|
+
this._el = document.createElement(tag);
|
|
1338
|
+
}
|
|
1339
|
+
};
|
|
1340
|
+
|
|
1266
1341
|
// src/util/hasIosKeyboard.ts
|
|
1267
1342
|
var hasIosKeyboard = () => {
|
|
1268
1343
|
return !!navigator.userAgent.match(/iP(ad|od|hone).+Safari/);
|
|
@@ -1372,7 +1447,7 @@ var CopyButton = ({ classNames, value, size = 5, ...props }) => {
|
|
|
1372
1447
|
"data-testid": "copy-invitation"
|
|
1373
1448
|
}, /* @__PURE__ */ React16.createElement("div", {
|
|
1374
1449
|
role: "none",
|
|
1375
|
-
className:
|
|
1450
|
+
className: mx3("flex gap-1 items-center", isCopied && inactiveLabelStyles)
|
|
1376
1451
|
}, /* @__PURE__ */ React16.createElement("span", {
|
|
1377
1452
|
className: "pli-1"
|
|
1378
1453
|
}, t("copy label")), /* @__PURE__ */ React16.createElement(Icon, {
|
|
@@ -1380,7 +1455,7 @@ var CopyButton = ({ classNames, value, size = 5, ...props }) => {
|
|
|
1380
1455
|
size
|
|
1381
1456
|
})), /* @__PURE__ */ React16.createElement("div", {
|
|
1382
1457
|
role: "none",
|
|
1383
|
-
className:
|
|
1458
|
+
className: mx3("flex gap-1 items-center", !isCopied && inactiveLabelStyles)
|
|
1384
1459
|
}, /* @__PURE__ */ React16.createElement("span", {
|
|
1385
1460
|
className: "pli-1"
|
|
1386
1461
|
}, t("copy success label")), /* @__PURE__ */ React16.createElement(Icon, {
|
|
@@ -1427,7 +1502,7 @@ var Clipboard = {
|
|
|
1427
1502
|
// src/components/Dialogs/Dialog.tsx
|
|
1428
1503
|
import { useSignals as _useSignals17 } from "@preact-signals/safe-react/tracking";
|
|
1429
1504
|
import { createContext as createContext8 } from "@radix-ui/react-context";
|
|
1430
|
-
import {
|
|
1505
|
+
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";
|
|
1431
1506
|
import React17, { forwardRef as forwardRef11 } from "react";
|
|
1432
1507
|
var DialogRoot = (props) => {
|
|
1433
1508
|
var _effect = _useSignals17();
|
|
@@ -1525,7 +1600,7 @@ var Dialog = {
|
|
|
1525
1600
|
|
|
1526
1601
|
// src/components/Dialogs/AlertDialog.tsx
|
|
1527
1602
|
import { useSignals as _useSignals18 } from "@preact-signals/safe-react/tracking";
|
|
1528
|
-
import {
|
|
1603
|
+
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";
|
|
1529
1604
|
import { createContext as createContext9 } from "@radix-ui/react-context";
|
|
1530
1605
|
import React18, { forwardRef as forwardRef12 } from "react";
|
|
1531
1606
|
var AlertDialogRoot = (props) => {
|
|
@@ -1628,8 +1703,8 @@ import { useSignals as _useSignals19 } from "@preact-signals/safe-react/tracking
|
|
|
1628
1703
|
import { Root as CheckboxPrimitive } from "@radix-ui/react-checkbox";
|
|
1629
1704
|
import { useControllableState as useControllableState2 } from "@radix-ui/react-use-controllable-state";
|
|
1630
1705
|
import React19, { forwardRef as forwardRef13, useCallback as useCallback5 } from "react";
|
|
1631
|
-
import {
|
|
1632
|
-
import { mx as
|
|
1706
|
+
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";
|
|
1707
|
+
import { mx as mx4 } from "@dxos/react-ui-theme";
|
|
1633
1708
|
var Label = /* @__PURE__ */ forwardRef13(({ srOnly, classNames, children, ...props }, forwardedRef) => {
|
|
1634
1709
|
var _effect = _useSignals19();
|
|
1635
1710
|
try {
|
|
@@ -1781,7 +1856,7 @@ var TextArea = /* @__PURE__ */ forwardRef13(({ __inputScope, classNames, density
|
|
|
1781
1856
|
_effect.f();
|
|
1782
1857
|
}
|
|
1783
1858
|
});
|
|
1784
|
-
var Checkbox = /* @__PURE__ */ forwardRef13(({ __inputScope, checked: propsChecked, defaultChecked: propsDefaultChecked, onCheckedChange: propsOnCheckedChange, size,
|
|
1859
|
+
var Checkbox = /* @__PURE__ */ forwardRef13(({ __inputScope, checked: propsChecked, defaultChecked: propsDefaultChecked, onCheckedChange: propsOnCheckedChange, size, classNames, ...props }, forwardedRef) => {
|
|
1785
1860
|
var _effect = _useSignals19();
|
|
1786
1861
|
try {
|
|
1787
1862
|
const [checked, onCheckedChange] = useControllableState2({
|
|
@@ -1827,7 +1902,7 @@ var Switch = /* @__PURE__ */ forwardRef13(({ __inputScope, checked: propsChecked
|
|
|
1827
1902
|
const { id, validationValence, descriptionId, errorMessageId } = useInputContext(INPUT_NAME, __inputScope);
|
|
1828
1903
|
return /* @__PURE__ */ React19.createElement("input", {
|
|
1829
1904
|
type: "checkbox",
|
|
1830
|
-
className:
|
|
1905
|
+
className: mx4("dx-checkbox--switch dx-focus-ring", classNames),
|
|
1831
1906
|
checked,
|
|
1832
1907
|
onChange: (event) => {
|
|
1833
1908
|
onCheckedChange(event.target.checked);
|
|
@@ -1860,10 +1935,9 @@ var Input = {
|
|
|
1860
1935
|
|
|
1861
1936
|
// src/components/Lists/List.tsx
|
|
1862
1937
|
import { useSignals as _useSignals21 } from "@preact-signals/safe-react/tracking";
|
|
1863
|
-
import { CaretDown, CaretRight } from "@phosphor-icons/react";
|
|
1864
1938
|
import { Slot as Slot6 } from "@radix-ui/react-slot";
|
|
1865
1939
|
import React21, { forwardRef as forwardRef14 } from "react";
|
|
1866
|
-
import { List as ListPrimitive,
|
|
1940
|
+
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";
|
|
1867
1941
|
|
|
1868
1942
|
// src/components/Lists/ListDropIndicator.tsx
|
|
1869
1943
|
import { useSignals as _useSignals20 } from "@preact-signals/safe-react/tracking";
|
|
@@ -1984,16 +2058,16 @@ var ListItemOpenTrigger = /* @__PURE__ */ forwardRef14(({ __listItemScope, class
|
|
|
1984
2058
|
const { tx } = useThemeContext();
|
|
1985
2059
|
const density = useDensityContext();
|
|
1986
2060
|
const { open } = useListItemContext(LIST_ITEM_NAME, __listItemScope);
|
|
1987
|
-
const Icon3 = open ? CaretDown : CaretRight;
|
|
1988
2061
|
return /* @__PURE__ */ React21.createElement(ListPrimitiveItemOpenTrigger, {
|
|
1989
2062
|
...props,
|
|
1990
2063
|
className: tx("list.item.openTrigger", "list__listItem__openTrigger", {
|
|
1991
2064
|
density
|
|
1992
2065
|
}, classNames),
|
|
1993
2066
|
ref: forwardedRef
|
|
1994
|
-
}, children || /* @__PURE__ */ React21.createElement(
|
|
1995
|
-
|
|
1996
|
-
|
|
2067
|
+
}, children || /* @__PURE__ */ React21.createElement(Icon, {
|
|
2068
|
+
size: 3,
|
|
2069
|
+
icon: open ? "ph--caret-down--bold" : "ph--caret-right--bold",
|
|
2070
|
+
classNames: tx("list.item.openTriggerIcon", "list__listItem__openTrigger__icon", {})
|
|
1997
2071
|
}));
|
|
1998
2072
|
} finally {
|
|
1999
2073
|
_effect.f();
|
|
@@ -2251,13 +2325,13 @@ var Treegrid = {
|
|
|
2251
2325
|
// src/components/Main/Main.tsx
|
|
2252
2326
|
import { useSignals as _useSignals25 } from "@preact-signals/safe-react/tracking";
|
|
2253
2327
|
import { createContext as createContext10 } from "@radix-ui/react-context";
|
|
2254
|
-
import {
|
|
2328
|
+
import { DialogContent as DialogContent2, Root as DialogRoot2, DialogTitle as DialogTitle2 } from "@radix-ui/react-dialog";
|
|
2255
2329
|
import { Primitive as Primitive8 } from "@radix-ui/react-primitive";
|
|
2256
2330
|
import { Slot as Slot8 } from "@radix-ui/react-slot";
|
|
2257
2331
|
import { useControllableState as useControllableState4 } from "@radix-ui/react-use-controllable-state";
|
|
2258
2332
|
import React25, { forwardRef as forwardRef17, useCallback as useCallback7, useEffect as useEffect5, useRef as useRef2, useState as useState7 } from "react";
|
|
2259
2333
|
import { log } from "@dxos/log";
|
|
2260
|
-
import {
|
|
2334
|
+
import { useForwardedRef, useMediaQuery } from "@dxos/react-hooks";
|
|
2261
2335
|
|
|
2262
2336
|
// src/components/Main/useSwipeToDismiss.ts
|
|
2263
2337
|
import { useCallback as useCallback6, useEffect as useEffect4, useState as useState6 } from "react";
|
|
@@ -2389,19 +2463,19 @@ var useLandmarkMover = (propsOnKeyDown, landmark) => {
|
|
|
2389
2463
|
var [MainProvider, useMainContext] = createContext10(MAIN_NAME, {
|
|
2390
2464
|
resizing: false,
|
|
2391
2465
|
navigationSidebarState: "closed",
|
|
2392
|
-
setNavigationSidebarState: (
|
|
2466
|
+
setNavigationSidebarState: (_nextState) => {
|
|
2393
2467
|
log.warn("Attempt to set sidebar state without initializing `MainRoot`", void 0, {
|
|
2394
2468
|
F: __dxlog_file,
|
|
2395
|
-
L:
|
|
2469
|
+
L: 88,
|
|
2396
2470
|
S: void 0,
|
|
2397
2471
|
C: (f, a) => f(...a)
|
|
2398
2472
|
});
|
|
2399
2473
|
},
|
|
2400
2474
|
complementarySidebarState: "closed",
|
|
2401
|
-
setComplementarySidebarState: (
|
|
2475
|
+
setComplementarySidebarState: (_nextState) => {
|
|
2402
2476
|
log.warn("Attempt to set sidebar state without initializing `MainRoot`", void 0, {
|
|
2403
2477
|
F: __dxlog_file,
|
|
2404
|
-
L:
|
|
2478
|
+
L: 93,
|
|
2405
2479
|
S: void 0,
|
|
2406
2480
|
C: (f, a) => f(...a)
|
|
2407
2481
|
});
|
|
@@ -2522,7 +2596,7 @@ var MainSidebar = /* @__PURE__ */ forwardRef17(({ classNames, children, swipeToD
|
|
|
2522
2596
|
className: tx("main.sidebar", "main__sidebar", {}, classNames),
|
|
2523
2597
|
onKeyDown: handleKeyDown,
|
|
2524
2598
|
...state === "closed" && {
|
|
2525
|
-
inert:
|
|
2599
|
+
inert: true
|
|
2526
2600
|
},
|
|
2527
2601
|
ref
|
|
2528
2602
|
}, children));
|
|
@@ -2669,6 +2743,7 @@ var ContextMenuContent = /* @__PURE__ */ forwardRef18(({ classNames, children, c
|
|
|
2669
2743
|
const safeCollisionPadding = useSafeCollisionPadding(collisionPadding);
|
|
2670
2744
|
return /* @__PURE__ */ React26.createElement(ContextMenuPrimitive.Content, {
|
|
2671
2745
|
...props,
|
|
2746
|
+
"data-arrow-keys": "up down",
|
|
2672
2747
|
collisionPadding: safeCollisionPadding,
|
|
2673
2748
|
className: tx("menu.content", "menu", {
|
|
2674
2749
|
elevation
|
|
@@ -2786,7 +2861,7 @@ import { createMenuScope } from "@radix-ui/react-menu";
|
|
|
2786
2861
|
import { Primitive as Primitive10 } from "@radix-ui/react-primitive";
|
|
2787
2862
|
import { Slot as Slot10 } from "@radix-ui/react-slot";
|
|
2788
2863
|
import { useControllableState as useControllableState5 } from "@radix-ui/react-use-controllable-state";
|
|
2789
|
-
import React27, {
|
|
2864
|
+
import React27, { forwardRef as forwardRef19, useCallback as useCallback8, useEffect as useEffect6, useRef as useRef3 } from "react";
|
|
2790
2865
|
var DROPDOWN_MENU_NAME = "DropdownMenu";
|
|
2791
2866
|
var [createDropdownMenuContext, createDropdownMenuScope] = createContextScope3(DROPDOWN_MENU_NAME, [
|
|
2792
2867
|
createMenuScope
|
|
@@ -2848,6 +2923,7 @@ var DropdownMenuTrigger = /* @__PURE__ */ forwardRef19((props, forwardedRef) =>
|
|
|
2848
2923
|
disabled,
|
|
2849
2924
|
...triggerProps,
|
|
2850
2925
|
ref: composeRefs(forwardedRef, context.triggerRef),
|
|
2926
|
+
"data-arrow-keys": "down",
|
|
2851
2927
|
onPointerDown: composeEventHandlers2(props.onPointerDown, (event) => {
|
|
2852
2928
|
if (!disabled && event.button === 0 && event.ctrlKey === false) {
|
|
2853
2929
|
context.onOpenToggle();
|
|
@@ -2966,6 +3042,7 @@ var DropdownMenuContent = /* @__PURE__ */ forwardRef19((props, forwardedRef) =>
|
|
|
2966
3042
|
hasInteractedOutsideRef.current = true;
|
|
2967
3043
|
}
|
|
2968
3044
|
}),
|
|
3045
|
+
"data-arrow-keys": "up down",
|
|
2969
3046
|
className: tx("menu.content", "menu", {
|
|
2970
3047
|
elevation
|
|
2971
3048
|
}, classNames),
|
|
@@ -3076,11 +3153,13 @@ var RADIO_ITEM_NAME = "DropdownMenuRadioItem";
|
|
|
3076
3153
|
var DropdownMenuRadioItem = /* @__PURE__ */ forwardRef19((props, forwardedRef) => {
|
|
3077
3154
|
var _effect = _useSignals27();
|
|
3078
3155
|
try {
|
|
3079
|
-
const { __scopeDropdownMenu, ...
|
|
3156
|
+
const { __scopeDropdownMenu, classNames, ...itemProps } = props;
|
|
3080
3157
|
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
3081
|
-
|
|
3158
|
+
const { tx } = useThemeContext();
|
|
3159
|
+
return /* @__PURE__ */ React27.createElement(MenuPrimitive.Item, {
|
|
3082
3160
|
...menuScope,
|
|
3083
|
-
...
|
|
3161
|
+
...itemProps,
|
|
3162
|
+
className: tx("menu.item", "menu__item", {}, classNames),
|
|
3084
3163
|
ref: forwardedRef
|
|
3085
3164
|
});
|
|
3086
3165
|
} finally {
|
|
@@ -3334,7 +3413,7 @@ import { Primitive as Primitive12 } from "@radix-ui/react-primitive";
|
|
|
3334
3413
|
import { Slot as Slot12 } from "@radix-ui/react-slot";
|
|
3335
3414
|
import { useControllableState as useControllableState6 } from "@radix-ui/react-use-controllable-state";
|
|
3336
3415
|
import { hideOthers } from "aria-hidden";
|
|
3337
|
-
import React29, { forwardRef as forwardRef21,
|
|
3416
|
+
import React29, { forwardRef as forwardRef21, useCallback as useCallback9, useEffect as useEffect7, useRef as useRef4, useState as useState8 } from "react";
|
|
3338
3417
|
import { RemoveScroll } from "react-remove-scroll";
|
|
3339
3418
|
var POPOVER_NAME = "Popover";
|
|
3340
3419
|
var [createPopoverContext, createPopoverScope] = createContextScope4(POPOVER_NAME, [
|
|
@@ -3731,7 +3810,7 @@ var Status = /* @__PURE__ */ forwardRef22(({ classNames, children, progress = 0,
|
|
|
3731
3810
|
|
|
3732
3811
|
// src/components/ScrollArea/ScrollArea.tsx
|
|
3733
3812
|
import { useSignals as _useSignals31 } from "@preact-signals/safe-react/tracking";
|
|
3734
|
-
import {
|
|
3813
|
+
import { Corner as ScrollAreaPrimitiveCorner, Root as ScrollAreaPrimitiveRoot, Scrollbar as ScrollAreaPrimitiveScrollbar, Thumb as ScrollAreaPrimitiveThumb, Viewport as ScrollAreaPrimitiveViewport } from "@radix-ui/react-scroll-area";
|
|
3735
3814
|
import React31, { forwardRef as forwardRef23 } from "react";
|
|
3736
3815
|
var ScrollAreaRoot = /* @__PURE__ */ forwardRef23(({ classNames, ...props }, forwardedRef) => {
|
|
3737
3816
|
var _effect = _useSignals31();
|
|
@@ -3809,7 +3888,6 @@ var ScrollArea = {
|
|
|
3809
3888
|
|
|
3810
3889
|
// src/components/Select/Select.tsx
|
|
3811
3890
|
import { useSignals as _useSignals32 } from "@preact-signals/safe-react/tracking";
|
|
3812
|
-
import { CaretDown as CaretDown2, CaretUp } from "@phosphor-icons/react";
|
|
3813
3891
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
3814
3892
|
import React32, { forwardRef as forwardRef24 } from "react";
|
|
3815
3893
|
var SelectRoot = SelectPrimitive.Root;
|
|
@@ -3820,7 +3898,6 @@ var SelectPortal = SelectPrimitive.Portal;
|
|
|
3820
3898
|
var SelectTriggerButton = /* @__PURE__ */ forwardRef24(({ children, placeholder, ...props }, forwardedRef) => {
|
|
3821
3899
|
var _effect = _useSignals32();
|
|
3822
3900
|
try {
|
|
3823
|
-
const { tx } = useThemeContext();
|
|
3824
3901
|
return /* @__PURE__ */ React32.createElement(SelectPrimitive.Trigger, {
|
|
3825
3902
|
asChild: true,
|
|
3826
3903
|
ref: forwardedRef
|
|
@@ -3830,9 +3907,9 @@ var SelectTriggerButton = /* @__PURE__ */ forwardRef24(({ children, placeholder,
|
|
|
3830
3907
|
className: "w-1 flex-1"
|
|
3831
3908
|
}), /* @__PURE__ */ React32.createElement(SelectPrimitive.Icon, {
|
|
3832
3909
|
asChild: true
|
|
3833
|
-
}, /* @__PURE__ */ React32.createElement(
|
|
3834
|
-
|
|
3835
|
-
|
|
3910
|
+
}, /* @__PURE__ */ React32.createElement(Icon, {
|
|
3911
|
+
size: 3,
|
|
3912
|
+
icon: "ph--caret-down--bold"
|
|
3836
3913
|
}))));
|
|
3837
3914
|
} finally {
|
|
3838
3915
|
_effect.f();
|
|
@@ -3846,6 +3923,7 @@ var SelectContent = /* @__PURE__ */ forwardRef24(({ classNames, children, collis
|
|
|
3846
3923
|
const safeCollisionPadding = useSafeCollisionPadding(collisionPadding);
|
|
3847
3924
|
return /* @__PURE__ */ React32.createElement(SelectPrimitive.Content, {
|
|
3848
3925
|
...props,
|
|
3926
|
+
"data-arrow-keys": "up down",
|
|
3849
3927
|
collisionPadding: safeCollisionPadding,
|
|
3850
3928
|
className: tx("select.content", "select__content", {
|
|
3851
3929
|
elevation
|
|
@@ -3865,8 +3943,9 @@ var SelectScrollUpButton2 = /* @__PURE__ */ forwardRef24(({ classNames, children
|
|
|
3865
3943
|
...props,
|
|
3866
3944
|
className: tx("select.scrollButton", "select__scroll-button--up", {}, classNames),
|
|
3867
3945
|
ref: forwardedRef
|
|
3868
|
-
}, children ?? /* @__PURE__ */ React32.createElement(
|
|
3869
|
-
|
|
3946
|
+
}, children ?? /* @__PURE__ */ React32.createElement(Icon, {
|
|
3947
|
+
size: 3,
|
|
3948
|
+
icon: "ph--caret-up--bold"
|
|
3870
3949
|
}));
|
|
3871
3950
|
} finally {
|
|
3872
3951
|
_effect.f();
|
|
@@ -3880,8 +3959,9 @@ var SelectScrollDownButton2 = /* @__PURE__ */ forwardRef24(({ classNames, childr
|
|
|
3880
3959
|
...props,
|
|
3881
3960
|
className: tx("select.scrollButton", "select__scroll-button--down", {}, classNames),
|
|
3882
3961
|
ref: forwardedRef
|
|
3883
|
-
}, children ?? /* @__PURE__ */ React32.createElement(
|
|
3884
|
-
|
|
3962
|
+
}, children ?? /* @__PURE__ */ React32.createElement(Icon, {
|
|
3963
|
+
size: 3,
|
|
3964
|
+
icon: "ph--caret-down--bold"
|
|
3885
3965
|
}));
|
|
3886
3966
|
} finally {
|
|
3887
3967
|
_effect.f();
|
|
@@ -4042,7 +4122,7 @@ var Tag = /* @__PURE__ */ forwardRef26(({ asChild, palette = "neutral", classNam
|
|
|
4042
4122
|
import { useSignals as _useSignals35 } from "@preact-signals/safe-react/tracking";
|
|
4043
4123
|
import { Primitive as Primitive14 } from "@radix-ui/react-primitive";
|
|
4044
4124
|
import { Slot as Slot14 } from "@radix-ui/react-slot";
|
|
4045
|
-
import {
|
|
4125
|
+
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";
|
|
4046
4126
|
import React35, { forwardRef as forwardRef27 } from "react";
|
|
4047
4127
|
var ToastProvider = ToastProviderPrimitive;
|
|
4048
4128
|
var ToastViewport = /* @__PURE__ */ forwardRef27(({ classNames, ...props }, forwardedRef) => {
|
|
@@ -4152,6 +4232,7 @@ var ToolbarRoot = /* @__PURE__ */ forwardRef28(({ classNames, children, layoutMa
|
|
|
4152
4232
|
const { tx } = useThemeContext();
|
|
4153
4233
|
return /* @__PURE__ */ React36.createElement(ToolbarPrimitive.Root, {
|
|
4154
4234
|
...props,
|
|
4235
|
+
"data-arrow-keys": props.orientation === "vertical" ? "up down" : "left right",
|
|
4155
4236
|
className: tx("toolbar.root", "toolbar", {
|
|
4156
4237
|
layoutManaged
|
|
4157
4238
|
}, classNames),
|
|
@@ -4316,13 +4397,13 @@ export {
|
|
|
4316
4397
|
AnchoredOverflow,
|
|
4317
4398
|
useAvatarContext,
|
|
4318
4399
|
Avatar,
|
|
4400
|
+
Icon,
|
|
4319
4401
|
Link,
|
|
4320
4402
|
Breadcrumb,
|
|
4321
4403
|
BUTTON_GROUP_NAME,
|
|
4322
4404
|
useButtonGroupContext,
|
|
4323
4405
|
Button,
|
|
4324
4406
|
ButtonGroup,
|
|
4325
|
-
Icon,
|
|
4326
4407
|
createTooltipScope,
|
|
4327
4408
|
useTooltipContext,
|
|
4328
4409
|
Tooltip,
|
|
@@ -4330,7 +4411,9 @@ export {
|
|
|
4330
4411
|
Toggle,
|
|
4331
4412
|
ToggleGroup,
|
|
4332
4413
|
ToggleGroupItem,
|
|
4414
|
+
ToggleGroupIconItem,
|
|
4333
4415
|
useClipboard,
|
|
4416
|
+
Domino,
|
|
4334
4417
|
hasIosKeyboard,
|
|
4335
4418
|
DensityContext,
|
|
4336
4419
|
DensityProvider,
|
|
@@ -4342,8 +4425,8 @@ export {
|
|
|
4342
4425
|
Dialog,
|
|
4343
4426
|
AlertDialog,
|
|
4344
4427
|
Input,
|
|
4345
|
-
LIST_NAME,
|
|
4346
4428
|
LIST_ITEM_NAME,
|
|
4429
|
+
LIST_NAME,
|
|
4347
4430
|
useListContext,
|
|
4348
4431
|
useListItemContext,
|
|
4349
4432
|
List,
|
|
@@ -4373,4 +4456,4 @@ export {
|
|
|
4373
4456
|
Toast,
|
|
4374
4457
|
Toolbar
|
|
4375
4458
|
};
|
|
4376
|
-
//# sourceMappingURL=chunk-
|
|
4459
|
+
//# sourceMappingURL=chunk-LBCJC75U.mjs.map
|