@dxos/react-ui 0.6.4 → 0.6.5-staging.435ed25
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/index.mjs +232 -148
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/types/src/components/Lists/List.d.ts.map +1 -0
- package/dist/types/src/components/Lists/List.stories.d.ts.map +1 -0
- package/dist/types/src/components/Lists/Tree.d.ts.map +1 -0
- package/dist/types/src/components/Lists/Tree.stories.d.ts.map +1 -0
- package/dist/types/src/components/Lists/Treegrid.d.ts +37 -0
- package/dist/types/src/components/Lists/Treegrid.d.ts.map +1 -0
- package/dist/types/src/components/Lists/Treegrid.stories.d.ts +9 -0
- package/dist/types/src/components/Lists/Treegrid.stories.d.ts.map +1 -0
- package/dist/types/src/components/Lists/index.d.ts +4 -0
- package/dist/types/src/components/Lists/index.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +1 -1
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/package.json +23 -14
- package/src/components/Lists/Treegrid.stories.tsx +152 -0
- package/src/components/Lists/Treegrid.tsx +142 -0
- package/src/components/{List → Lists}/index.ts +1 -0
- package/src/components/index.ts +1 -1
- package/dist/types/src/components/List/List.d.ts.map +0 -1
- package/dist/types/src/components/List/List.stories.d.ts.map +0 -1
- package/dist/types/src/components/List/Tree.d.ts.map +0 -1
- package/dist/types/src/components/List/Tree.stories.d.ts.map +0 -1
- package/dist/types/src/components/List/index.d.ts +0 -3
- package/dist/types/src/components/List/index.d.ts.map +0 -1
- /package/dist/types/src/components/{List → Lists}/List.d.ts +0 -0
- /package/dist/types/src/components/{List → Lists}/List.stories.d.ts +0 -0
- /package/dist/types/src/components/{List → Lists}/Tree.d.ts +0 -0
- /package/dist/types/src/components/{List → Lists}/Tree.stories.d.ts +0 -0
- /package/src/components/{List → Lists}/List.stories.tsx +0 -0
- /package/src/components/{List → Lists}/List.tsx +0 -0
- /package/src/components/{List → Lists}/Tree.stories.tsx +0 -0
- /package/src/components/{List → Lists}/Tree.tsx +0 -0
|
@@ -1102,7 +1102,7 @@ var Input = {
|
|
|
1102
1102
|
DescriptionAndValidation
|
|
1103
1103
|
};
|
|
1104
1104
|
|
|
1105
|
-
// packages/ui/react-ui/src/components/
|
|
1105
|
+
// packages/ui/react-ui/src/components/Lists/List.tsx
|
|
1106
1106
|
import { CaretDown, CaretRight } from "@phosphor-icons/react";
|
|
1107
1107
|
import { Slot as Slot8 } from "@radix-ui/react-slot";
|
|
1108
1108
|
import React17, { forwardRef as forwardRef14 } from "react";
|
|
@@ -1119,7 +1119,7 @@ var DensityProvider = ({ density, children }) => /* @__PURE__ */ React16.createE
|
|
|
1119
1119
|
}
|
|
1120
1120
|
}, children);
|
|
1121
1121
|
|
|
1122
|
-
// packages/ui/react-ui/src/components/
|
|
1122
|
+
// packages/ui/react-ui/src/components/Lists/List.tsx
|
|
1123
1123
|
var List = /* @__PURE__ */ forwardRef14(({ classNames, children, ...props }, forwardedRef) => {
|
|
1124
1124
|
const { tx } = useThemeContext();
|
|
1125
1125
|
const density = useDensityContext(props.density);
|
|
@@ -1205,7 +1205,7 @@ var ListItem = {
|
|
|
1205
1205
|
MockOpenTrigger: MockListItemOpenTrigger
|
|
1206
1206
|
};
|
|
1207
1207
|
|
|
1208
|
-
// packages/ui/react-ui/src/components/
|
|
1208
|
+
// packages/ui/react-ui/src/components/Lists/Tree.tsx
|
|
1209
1209
|
import React18, { forwardRef as forwardRef15 } from "react";
|
|
1210
1210
|
var TreeRoot = /* @__PURE__ */ forwardRef15((props, forwardedRef) => {
|
|
1211
1211
|
return /* @__PURE__ */ React18.createElement(List, {
|
|
@@ -1244,13 +1244,96 @@ var TreeItem = {
|
|
|
1244
1244
|
MockOpenTrigger: MockTreeItemOpenTrigger
|
|
1245
1245
|
};
|
|
1246
1246
|
|
|
1247
|
-
// packages/ui/react-ui/src/components/
|
|
1248
|
-
import {
|
|
1249
|
-
import {
|
|
1247
|
+
// packages/ui/react-ui/src/components/Lists/Treegrid.tsx
|
|
1248
|
+
import { useFocusableGroup, useArrowNavigationGroup } from "@fluentui/react-tabster";
|
|
1249
|
+
import { createContextScope } from "@radix-ui/react-context";
|
|
1250
1250
|
import { Primitive as Primitive8 } from "@radix-ui/react-primitive";
|
|
1251
1251
|
import { Slot as Slot9 } from "@radix-ui/react-slot";
|
|
1252
1252
|
import { useControllableState as useControllableState2 } from "@radix-ui/react-use-controllable-state";
|
|
1253
|
-
import React19, { forwardRef as forwardRef16
|
|
1253
|
+
import React19, { forwardRef as forwardRef16 } from "react";
|
|
1254
|
+
var TREEGRID_ROW_NAME = "TreegridRow";
|
|
1255
|
+
var [createTreegridRowContext, createTreegridRowScope] = createContextScope(TREEGRID_ROW_NAME, []);
|
|
1256
|
+
var [TreegridRowProvider, useTreegridRowContext] = createTreegridRowContext(TREEGRID_ROW_NAME);
|
|
1257
|
+
var PATH_SEPARATOR = "~";
|
|
1258
|
+
var PARENT_OF_SEPARATOR = " ";
|
|
1259
|
+
var TreegridRoot = /* @__PURE__ */ forwardRef16(({ asChild, classNames, children, style, gridTemplateColumns, ...props }, forwardedRef) => {
|
|
1260
|
+
const { tx } = useThemeContext();
|
|
1261
|
+
const Root3 = asChild ? Slot9 : Primitive8.div;
|
|
1262
|
+
const arrowNavigationAttrs = useArrowNavigationGroup({
|
|
1263
|
+
axis: "vertical"
|
|
1264
|
+
});
|
|
1265
|
+
return /* @__PURE__ */ React19.createElement(Root3, {
|
|
1266
|
+
role: "treegrid",
|
|
1267
|
+
...arrowNavigationAttrs,
|
|
1268
|
+
...props,
|
|
1269
|
+
className: tx("treegrid.root", "treegrid", {}, classNames),
|
|
1270
|
+
style: {
|
|
1271
|
+
...style,
|
|
1272
|
+
gridTemplateColumns
|
|
1273
|
+
},
|
|
1274
|
+
ref: forwardedRef
|
|
1275
|
+
}, children);
|
|
1276
|
+
});
|
|
1277
|
+
var TreegridRow = /* @__PURE__ */ forwardRef16(({ __treegridRowScope, asChild, classNames, children, id, parentOf, open: propsOpen, defaultOpen, onOpenChange: propsOnOpenChange, ...props }, forwardedRef) => {
|
|
1278
|
+
const { tx } = useThemeContext();
|
|
1279
|
+
const Root3 = asChild ? Slot9 : Primitive8.div;
|
|
1280
|
+
const pathParts = id.split(PATH_SEPARATOR);
|
|
1281
|
+
const level = pathParts.length - 1;
|
|
1282
|
+
const [open, onOpenChange] = useControllableState2({
|
|
1283
|
+
prop: propsOpen,
|
|
1284
|
+
onChange: propsOnOpenChange,
|
|
1285
|
+
defaultProp: defaultOpen
|
|
1286
|
+
});
|
|
1287
|
+
const focusableGroupAttrs = useFocusableGroup();
|
|
1288
|
+
return /* @__PURE__ */ React19.createElement(TreegridRowProvider, {
|
|
1289
|
+
open,
|
|
1290
|
+
onOpenChange,
|
|
1291
|
+
scope: __treegridRowScope
|
|
1292
|
+
}, /* @__PURE__ */ React19.createElement(Root3, {
|
|
1293
|
+
role: "row",
|
|
1294
|
+
"aria-level": level,
|
|
1295
|
+
className: tx("treegrid.row", "treegrid__row", {
|
|
1296
|
+
level
|
|
1297
|
+
}, classNames),
|
|
1298
|
+
...parentOf && {
|
|
1299
|
+
"aria-expanded": open,
|
|
1300
|
+
"aria-owns": parentOf
|
|
1301
|
+
},
|
|
1302
|
+
tabIndex: 0,
|
|
1303
|
+
...focusableGroupAttrs,
|
|
1304
|
+
...props,
|
|
1305
|
+
id,
|
|
1306
|
+
ref: forwardedRef
|
|
1307
|
+
}, children));
|
|
1308
|
+
});
|
|
1309
|
+
var TreegridCell = /* @__PURE__ */ forwardRef16(({ classNames, children, indent, ...props }, forwardedRef) => {
|
|
1310
|
+
const { tx } = useThemeContext();
|
|
1311
|
+
return /* @__PURE__ */ React19.createElement("div", {
|
|
1312
|
+
role: "gridcell",
|
|
1313
|
+
className: tx("treegrid.cell", "treegrid__cell", {
|
|
1314
|
+
indent
|
|
1315
|
+
}, classNames),
|
|
1316
|
+
...props,
|
|
1317
|
+
ref: forwardedRef
|
|
1318
|
+
}, children);
|
|
1319
|
+
});
|
|
1320
|
+
var Treegrid = {
|
|
1321
|
+
Root: TreegridRoot,
|
|
1322
|
+
Row: TreegridRow,
|
|
1323
|
+
Cell: TreegridCell,
|
|
1324
|
+
PARENT_OF_SEPARATOR,
|
|
1325
|
+
PATH_SEPARATOR,
|
|
1326
|
+
createTreegridRowScope,
|
|
1327
|
+
useTreegridRowContext
|
|
1328
|
+
};
|
|
1329
|
+
|
|
1330
|
+
// packages/ui/react-ui/src/components/Main/Main.tsx
|
|
1331
|
+
import { createContext as createContext8 } from "@radix-ui/react-context";
|
|
1332
|
+
import { Root as DialogRoot2, DialogContent as DialogContent2 } from "@radix-ui/react-dialog";
|
|
1333
|
+
import { Primitive as Primitive9 } from "@radix-ui/react-primitive";
|
|
1334
|
+
import { Slot as Slot10 } from "@radix-ui/react-slot";
|
|
1335
|
+
import { useControllableState as useControllableState3 } from "@radix-ui/react-use-controllable-state";
|
|
1336
|
+
import React20, { forwardRef as forwardRef17, useCallback as useCallback3, useEffect as useEffect4, useRef, useState as useState4 } from "react";
|
|
1254
1337
|
import { log } from "@dxos/log";
|
|
1255
1338
|
import { useMediaQuery, useForwardedRef } from "@dxos/react-hooks";
|
|
1256
1339
|
|
|
@@ -1413,12 +1496,12 @@ var MainRoot = ({ navigationSidebarOpen: propsNavigationSidebarOpen, defaultNavi
|
|
|
1413
1496
|
const [isLg] = useMediaQuery("lg", {
|
|
1414
1497
|
ssr: false
|
|
1415
1498
|
});
|
|
1416
|
-
const [navigationSidebarOpen = isLg, setNavigationSidebarOpen] =
|
|
1499
|
+
const [navigationSidebarOpen = isLg, setNavigationSidebarOpen] = useControllableState3({
|
|
1417
1500
|
prop: propsNavigationSidebarOpen,
|
|
1418
1501
|
defaultProp: defaultNavigationSidebarOpen,
|
|
1419
1502
|
onChange: onNavigationSidebarOpenChange
|
|
1420
1503
|
});
|
|
1421
|
-
const [complementarySidebarOpen = false, setComplementarySidebarOpen] =
|
|
1504
|
+
const [complementarySidebarOpen = false, setComplementarySidebarOpen] = useControllableState3({
|
|
1422
1505
|
prop: propsComplementarySidebarOpen,
|
|
1423
1506
|
defaultProp: defaultComplementarySidebarOpen,
|
|
1424
1507
|
onChange: onComplementarySidebarOpenChange
|
|
@@ -1441,7 +1524,7 @@ var MainRoot = ({ navigationSidebarOpen: propsNavigationSidebarOpen, defaultNavi
|
|
|
1441
1524
|
}, [
|
|
1442
1525
|
handleResize
|
|
1443
1526
|
]);
|
|
1444
|
-
return /* @__PURE__ */
|
|
1527
|
+
return /* @__PURE__ */ React20.createElement(MainProvider, {
|
|
1445
1528
|
...props,
|
|
1446
1529
|
navigationSidebarOpen,
|
|
1447
1530
|
setNavigationSidebarOpen,
|
|
@@ -1454,7 +1537,7 @@ MainRoot.displayName = MAIN_ROOT_NAME;
|
|
|
1454
1537
|
var handleOpenAutoFocus = (event) => {
|
|
1455
1538
|
!document.body.hasAttribute("data-is-keyboard") && event.preventDefault();
|
|
1456
1539
|
};
|
|
1457
|
-
var MainSidebar = /* @__PURE__ */
|
|
1540
|
+
var MainSidebar = /* @__PURE__ */ forwardRef17(({ classNames, children, swipeToDismiss, onOpenAutoFocus, open, resizing, setOpen, side, ...props }, forwardedRef) => {
|
|
1458
1541
|
const [isLg] = useMediaQuery("lg", {
|
|
1459
1542
|
ssr: false
|
|
1460
1543
|
});
|
|
@@ -1464,11 +1547,11 @@ var MainSidebar = /* @__PURE__ */ forwardRef16(({ classNames, children, swipeToD
|
|
|
1464
1547
|
useSwipeToDismiss(swipeToDismiss ? ref : noopRef, {
|
|
1465
1548
|
onDismiss: () => setOpen(false)
|
|
1466
1549
|
});
|
|
1467
|
-
const Root3 = isLg ?
|
|
1468
|
-
return /* @__PURE__ */
|
|
1550
|
+
const Root3 = isLg ? Primitive9.div : DialogContent2;
|
|
1551
|
+
return /* @__PURE__ */ React20.createElement(DialogRoot2, {
|
|
1469
1552
|
open,
|
|
1470
1553
|
modal: false
|
|
1471
|
-
}, /* @__PURE__ */
|
|
1554
|
+
}, /* @__PURE__ */ React20.createElement(Root3, {
|
|
1472
1555
|
...!isLg && {
|
|
1473
1556
|
forceMount: true,
|
|
1474
1557
|
tabIndex: -1,
|
|
@@ -1483,13 +1566,13 @@ var MainSidebar = /* @__PURE__ */ forwardRef16(({ classNames, children, swipeToD
|
|
|
1483
1566
|
inert: "true"
|
|
1484
1567
|
},
|
|
1485
1568
|
ref
|
|
1486
|
-
}, /* @__PURE__ */
|
|
1569
|
+
}, /* @__PURE__ */ React20.createElement(ElevationProvider, {
|
|
1487
1570
|
elevation: "group"
|
|
1488
1571
|
}, children)));
|
|
1489
1572
|
});
|
|
1490
|
-
var MainNavigationSidebar = /* @__PURE__ */
|
|
1573
|
+
var MainNavigationSidebar = /* @__PURE__ */ forwardRef17((props, forwardedRef) => {
|
|
1491
1574
|
const { navigationSidebarOpen, setNavigationSidebarOpen, resizing } = useMainContext(NAVIGATION_SIDEBAR_NAME);
|
|
1492
|
-
return /* @__PURE__ */
|
|
1575
|
+
return /* @__PURE__ */ React20.createElement(MainSidebar, {
|
|
1493
1576
|
...props,
|
|
1494
1577
|
open: navigationSidebarOpen,
|
|
1495
1578
|
setOpen: setNavigationSidebarOpen,
|
|
@@ -1499,9 +1582,9 @@ var MainNavigationSidebar = /* @__PURE__ */ forwardRef16((props, forwardedRef) =
|
|
|
1499
1582
|
});
|
|
1500
1583
|
});
|
|
1501
1584
|
MainNavigationSidebar.displayName = NAVIGATION_SIDEBAR_NAME;
|
|
1502
|
-
var MainComplementarySidebar = /* @__PURE__ */
|
|
1585
|
+
var MainComplementarySidebar = /* @__PURE__ */ forwardRef17((props, forwardedRef) => {
|
|
1503
1586
|
const { complementarySidebarOpen, setComplementarySidebarOpen, resizing } = useMainContext(COMPLEMENTARY_SIDEBAR_NAME);
|
|
1504
|
-
return /* @__PURE__ */
|
|
1587
|
+
return /* @__PURE__ */ React20.createElement(MainSidebar, {
|
|
1505
1588
|
...props,
|
|
1506
1589
|
open: complementarySidebarOpen,
|
|
1507
1590
|
setOpen: setComplementarySidebarOpen,
|
|
@@ -1511,11 +1594,11 @@ var MainComplementarySidebar = /* @__PURE__ */ forwardRef16((props, forwardedRef
|
|
|
1511
1594
|
});
|
|
1512
1595
|
});
|
|
1513
1596
|
MainNavigationSidebar.displayName = NAVIGATION_SIDEBAR_NAME;
|
|
1514
|
-
var MainContent = /* @__PURE__ */
|
|
1597
|
+
var MainContent = /* @__PURE__ */ forwardRef17(({ asChild, classNames, bounce, children, ...props }, forwardedRef) => {
|
|
1515
1598
|
const { navigationSidebarOpen, complementarySidebarOpen } = useMainContext(MAIN_NAME);
|
|
1516
1599
|
const { tx } = useThemeContext();
|
|
1517
|
-
const Root3 = asChild ?
|
|
1518
|
-
return /* @__PURE__ */
|
|
1600
|
+
const Root3 = asChild ? Slot10 : "main";
|
|
1601
|
+
return /* @__PURE__ */ React20.createElement(Root3, {
|
|
1519
1602
|
...props,
|
|
1520
1603
|
"data-sidebar-inline-start-state": navigationSidebarOpen ? "open" : "closed",
|
|
1521
1604
|
"data-sidebar-inline-end-state": complementarySidebarOpen ? "open" : "closed",
|
|
@@ -1526,13 +1609,13 @@ var MainContent = /* @__PURE__ */ forwardRef16(({ asChild, classNames, bounce, c
|
|
|
1526
1609
|
}, children);
|
|
1527
1610
|
});
|
|
1528
1611
|
MainContent.displayName = MAIN_NAME;
|
|
1529
|
-
var MainOverlay = /* @__PURE__ */
|
|
1612
|
+
var MainOverlay = /* @__PURE__ */ forwardRef17(({ classNames, ...props }, forwardedRef) => {
|
|
1530
1613
|
const [isLg] = useMediaQuery("lg", {
|
|
1531
1614
|
ssr: false
|
|
1532
1615
|
});
|
|
1533
1616
|
const { navigationSidebarOpen, setNavigationSidebarOpen, complementarySidebarOpen, setComplementarySidebarOpen } = useMainContext(MAIN_NAME);
|
|
1534
1617
|
const { tx } = useThemeContext();
|
|
1535
|
-
return /* @__PURE__ */
|
|
1618
|
+
return /* @__PURE__ */ React20.createElement("div", {
|
|
1536
1619
|
onClick: () => {
|
|
1537
1620
|
setNavigationSidebarOpen(false);
|
|
1538
1621
|
setComplementarySidebarOpen(false);
|
|
@@ -1548,10 +1631,10 @@ var MainOverlay = /* @__PURE__ */ forwardRef16(({ classNames, ...props }, forwar
|
|
|
1548
1631
|
ref: forwardedRef
|
|
1549
1632
|
});
|
|
1550
1633
|
});
|
|
1551
|
-
var MainNotch = /* @__PURE__ */
|
|
1634
|
+
var MainNotch = /* @__PURE__ */ forwardRef17(({ classNames, ...props }, forwardedRef) => {
|
|
1552
1635
|
const { tx } = useThemeContext();
|
|
1553
1636
|
const { navigationSidebarOpen } = useMainContext(MAIN_NAME);
|
|
1554
|
-
return /* @__PURE__ */
|
|
1637
|
+
return /* @__PURE__ */ React20.createElement("nav", {
|
|
1555
1638
|
...props,
|
|
1556
1639
|
"data-nav-sidebar-state": navigationSidebarOpen ? "open" : "closed",
|
|
1557
1640
|
className: tx("main.notch", "main__notch", {}, classNames),
|
|
@@ -1569,22 +1652,22 @@ var Main = {
|
|
|
1569
1652
|
|
|
1570
1653
|
// packages/ui/react-ui/src/components/Message/Message.tsx
|
|
1571
1654
|
import { createContext as createContext9 } from "@radix-ui/react-context";
|
|
1572
|
-
import { Primitive as
|
|
1573
|
-
import { Slot as
|
|
1574
|
-
import
|
|
1655
|
+
import { Primitive as Primitive10 } from "@radix-ui/react-primitive";
|
|
1656
|
+
import { Slot as Slot11 } from "@radix-ui/react-slot";
|
|
1657
|
+
import React21, { forwardRef as forwardRef18 } from "react";
|
|
1575
1658
|
import { useId as useId3 } from "@dxos/react-hooks";
|
|
1576
1659
|
var MESSAGE_NAME = "Message";
|
|
1577
1660
|
var [MessageProvider, useMessageContext] = createContext9(MESSAGE_NAME);
|
|
1578
|
-
var MessageRoot = /* @__PURE__ */
|
|
1661
|
+
var MessageRoot = /* @__PURE__ */ forwardRef18(({ asChild, valence, elevation: propsElevation, className, titleId: propsTitleId, descriptionId: propsDescriptionId, children, ...props }, forwardedRef) => {
|
|
1579
1662
|
const { tx } = useThemeContext();
|
|
1580
1663
|
const titleId = useId3("message__title", propsTitleId);
|
|
1581
1664
|
const descriptionId = useId3("message__description", propsDescriptionId);
|
|
1582
1665
|
const elevation = useElevationContext(propsElevation);
|
|
1583
|
-
const Root3 = asChild ?
|
|
1584
|
-
return /* @__PURE__ */
|
|
1666
|
+
const Root3 = asChild ? Slot11 : Primitive10.div;
|
|
1667
|
+
return /* @__PURE__ */ React21.createElement(MessageProvider, {
|
|
1585
1668
|
titleId,
|
|
1586
1669
|
descriptionId
|
|
1587
|
-
}, /* @__PURE__ */
|
|
1670
|
+
}, /* @__PURE__ */ React21.createElement(Root3, {
|
|
1588
1671
|
...props,
|
|
1589
1672
|
className: tx("message.root", "message", {
|
|
1590
1673
|
valence,
|
|
@@ -1597,11 +1680,11 @@ var MessageRoot = /* @__PURE__ */ forwardRef17(({ asChild, valence, elevation: p
|
|
|
1597
1680
|
});
|
|
1598
1681
|
MessageRoot.displayName = MESSAGE_NAME;
|
|
1599
1682
|
var MESSAGE_TITLE_NAME = "MessageTitle";
|
|
1600
|
-
var MessageTitle = /* @__PURE__ */
|
|
1683
|
+
var MessageTitle = /* @__PURE__ */ forwardRef18(({ asChild, className, children, ...props }, forwardedRef) => {
|
|
1601
1684
|
const { tx } = useThemeContext();
|
|
1602
1685
|
const { titleId } = useMessageContext(MESSAGE_TITLE_NAME);
|
|
1603
|
-
const Root3 = asChild ?
|
|
1604
|
-
return /* @__PURE__ */
|
|
1686
|
+
const Root3 = asChild ? Slot11 : Primitive10.h2;
|
|
1687
|
+
return /* @__PURE__ */ React21.createElement(Root3, {
|
|
1605
1688
|
...props,
|
|
1606
1689
|
className: tx("message.title", "message__title", {}, className),
|
|
1607
1690
|
id: titleId,
|
|
@@ -1610,11 +1693,11 @@ var MessageTitle = /* @__PURE__ */ forwardRef17(({ asChild, className, children,
|
|
|
1610
1693
|
});
|
|
1611
1694
|
MessageTitle.displayName = MESSAGE_TITLE_NAME;
|
|
1612
1695
|
var MESSAGE_BODY_NAME = "MessageBody";
|
|
1613
|
-
var MessageBody = /* @__PURE__ */
|
|
1696
|
+
var MessageBody = /* @__PURE__ */ forwardRef18(({ asChild, className, children, ...props }, forwardedRef) => {
|
|
1614
1697
|
const { tx } = useThemeContext();
|
|
1615
1698
|
const { descriptionId } = useMessageContext(MESSAGE_BODY_NAME);
|
|
1616
|
-
const Root3 = asChild ?
|
|
1617
|
-
return /* @__PURE__ */
|
|
1699
|
+
const Root3 = asChild ? Slot11 : Primitive10.p;
|
|
1700
|
+
return /* @__PURE__ */ React21.createElement(Root3, {
|
|
1618
1701
|
...props,
|
|
1619
1702
|
className: tx("message.body", "message__body", {}, className),
|
|
1620
1703
|
id: descriptionId,
|
|
@@ -1630,38 +1713,38 @@ var Message = {
|
|
|
1630
1713
|
|
|
1631
1714
|
// packages/ui/react-ui/src/components/Popover/Popover.tsx
|
|
1632
1715
|
import { Root as PopoverRootPrimitive, PopoverContent as PopoverContentPrimitive, PopoverTrigger as PopoverTriggerPrimitive, PopoverAnchor as PopoverAnchorPrimitive, PopoverPortal as PopoverPortalPrimitive, PopoverArrow as PopoverArrowPrimitive, PopoverClose as PopoverClosePrimitive } from "@radix-ui/react-popover";
|
|
1633
|
-
import { Primitive as
|
|
1634
|
-
import { Slot as
|
|
1635
|
-
import
|
|
1716
|
+
import { Primitive as Primitive11 } from "@radix-ui/react-primitive";
|
|
1717
|
+
import { Slot as Slot12 } from "@radix-ui/react-slot";
|
|
1718
|
+
import React22, { forwardRef as forwardRef19 } from "react";
|
|
1636
1719
|
var PopoverRoot = PopoverRootPrimitive;
|
|
1637
1720
|
var PopoverPortal = PopoverPortalPrimitive;
|
|
1638
1721
|
var PopoverTrigger = PopoverTriggerPrimitive;
|
|
1639
1722
|
var PopoverAnchor = PopoverAnchorPrimitive;
|
|
1640
1723
|
var PopoverClose = PopoverClosePrimitive;
|
|
1641
|
-
var PopoverArrow = /* @__PURE__ */
|
|
1724
|
+
var PopoverArrow = /* @__PURE__ */ forwardRef19(({ classNames, ...props }, forwardedRef) => {
|
|
1642
1725
|
const { tx } = useThemeContext();
|
|
1643
|
-
return /* @__PURE__ */
|
|
1726
|
+
return /* @__PURE__ */ React22.createElement(PopoverArrowPrimitive, {
|
|
1644
1727
|
...props,
|
|
1645
1728
|
className: tx("popover.arrow", "popover__arrow", {}, classNames),
|
|
1646
1729
|
ref: forwardedRef
|
|
1647
1730
|
});
|
|
1648
1731
|
});
|
|
1649
|
-
var PopoverContent = /* @__PURE__ */
|
|
1732
|
+
var PopoverContent = /* @__PURE__ */ forwardRef19(({ classNames, children, ...props }, forwardedRef) => {
|
|
1650
1733
|
const { tx } = useThemeContext();
|
|
1651
|
-
return /* @__PURE__ */
|
|
1734
|
+
return /* @__PURE__ */ React22.createElement(PopoverContentPrimitive, {
|
|
1652
1735
|
sideOffset: 4,
|
|
1653
1736
|
collisionPadding: 8,
|
|
1654
1737
|
...props,
|
|
1655
1738
|
className: tx("popover.content", "popover", {}, classNames),
|
|
1656
1739
|
ref: forwardedRef
|
|
1657
|
-
}, /* @__PURE__ */
|
|
1740
|
+
}, /* @__PURE__ */ React22.createElement(ElevationProvider, {
|
|
1658
1741
|
elevation: "chrome"
|
|
1659
1742
|
}, children));
|
|
1660
1743
|
});
|
|
1661
|
-
var PopoverViewport = /* @__PURE__ */
|
|
1744
|
+
var PopoverViewport = /* @__PURE__ */ forwardRef19(({ classNames, asChild, constrainInline = true, constrainBlock = true, children, ...props }, forwardedRef) => {
|
|
1662
1745
|
const { tx } = useThemeContext();
|
|
1663
|
-
const Root3 = asChild ?
|
|
1664
|
-
return /* @__PURE__ */
|
|
1746
|
+
const Root3 = asChild ? Slot12 : Primitive11.div;
|
|
1747
|
+
return /* @__PURE__ */ React22.createElement(Root3, {
|
|
1665
1748
|
...props,
|
|
1666
1749
|
className: tx("popover.viewport", "popover__viewport", {
|
|
1667
1750
|
constrainInline,
|
|
@@ -1682,17 +1765,17 @@ var Popover = {
|
|
|
1682
1765
|
};
|
|
1683
1766
|
|
|
1684
1767
|
// packages/ui/react-ui/src/components/Status/Status.tsx
|
|
1685
|
-
import
|
|
1686
|
-
var Status = /* @__PURE__ */
|
|
1768
|
+
import React23, { forwardRef as forwardRef20 } from "react";
|
|
1769
|
+
var Status = /* @__PURE__ */ forwardRef20(({ classNames, children, progress = 0, indeterminate, ...props }, forwardedRef) => {
|
|
1687
1770
|
const { tx } = useThemeContext();
|
|
1688
|
-
return /* @__PURE__ */
|
|
1771
|
+
return /* @__PURE__ */ React23.createElement("span", {
|
|
1689
1772
|
role: "status",
|
|
1690
1773
|
...props,
|
|
1691
1774
|
className: tx("status.root", "status", {
|
|
1692
1775
|
indeterminate
|
|
1693
1776
|
}, classNames),
|
|
1694
1777
|
ref: forwardedRef
|
|
1695
|
-
}, /* @__PURE__ */
|
|
1778
|
+
}, /* @__PURE__ */ React23.createElement("span", {
|
|
1696
1779
|
role: "none",
|
|
1697
1780
|
className: tx("status.bar", "status__bar", {
|
|
1698
1781
|
indeterminate
|
|
@@ -1707,43 +1790,43 @@ var Status = /* @__PURE__ */ forwardRef19(({ classNames, children, progress = 0,
|
|
|
1707
1790
|
|
|
1708
1791
|
// packages/ui/react-ui/src/components/ScrollArea/ScrollArea.tsx
|
|
1709
1792
|
import { Root as ScrollAreaPrimitiveRoot, Viewport as ScrollAreaPrimitiveViewport, Scrollbar as ScrollAreaPrimitiveScrollbar, Thumb as ScrollAreaPrimitiveThumb, Corner as ScrollAreaPrimitiveCorner } from "@radix-ui/react-scroll-area";
|
|
1710
|
-
import
|
|
1711
|
-
var ScrollAreaRoot = /* @__PURE__ */
|
|
1793
|
+
import React24, { forwardRef as forwardRef21 } from "react";
|
|
1794
|
+
var ScrollAreaRoot = /* @__PURE__ */ forwardRef21(({ classNames, ...props }, forwardedRef) => {
|
|
1712
1795
|
const { tx } = useThemeContext();
|
|
1713
|
-
return /* @__PURE__ */
|
|
1796
|
+
return /* @__PURE__ */ React24.createElement(ScrollAreaPrimitiveRoot, {
|
|
1714
1797
|
...props,
|
|
1715
1798
|
className: tx("scrollArea.root", "scroll-area", {}, classNames),
|
|
1716
1799
|
ref: forwardedRef
|
|
1717
1800
|
});
|
|
1718
1801
|
});
|
|
1719
|
-
var ScrollAreaViewport = /* @__PURE__ */
|
|
1802
|
+
var ScrollAreaViewport = /* @__PURE__ */ forwardRef21(({ classNames, ...props }, forwardedRef) => {
|
|
1720
1803
|
const { tx } = useThemeContext();
|
|
1721
|
-
return /* @__PURE__ */
|
|
1804
|
+
return /* @__PURE__ */ React24.createElement(ScrollAreaPrimitiveViewport, {
|
|
1722
1805
|
...props,
|
|
1723
1806
|
className: tx("scrollArea.viewport", "scroll-area", {}, classNames),
|
|
1724
1807
|
ref: forwardedRef
|
|
1725
1808
|
});
|
|
1726
1809
|
});
|
|
1727
|
-
var ScrollAreaScrollbar = /* @__PURE__ */
|
|
1810
|
+
var ScrollAreaScrollbar = /* @__PURE__ */ forwardRef21(({ classNames, variant = "fine", ...props }, forwardedRef) => {
|
|
1728
1811
|
const { tx } = useThemeContext();
|
|
1729
|
-
return /* @__PURE__ */
|
|
1812
|
+
return /* @__PURE__ */ React24.createElement(ScrollAreaPrimitiveScrollbar, {
|
|
1730
1813
|
"data-variant": variant,
|
|
1731
1814
|
...props,
|
|
1732
1815
|
className: tx("scrollArea.scrollbar", "scroll-area__scrollbar", {}, classNames),
|
|
1733
1816
|
ref: forwardedRef
|
|
1734
1817
|
});
|
|
1735
1818
|
});
|
|
1736
|
-
var ScrollAreaThumb = /* @__PURE__ */
|
|
1819
|
+
var ScrollAreaThumb = /* @__PURE__ */ forwardRef21(({ classNames, ...props }, forwardedRef) => {
|
|
1737
1820
|
const { tx } = useThemeContext();
|
|
1738
|
-
return /* @__PURE__ */
|
|
1821
|
+
return /* @__PURE__ */ React24.createElement(ScrollAreaPrimitiveThumb, {
|
|
1739
1822
|
...props,
|
|
1740
1823
|
className: tx("scrollArea.thumb", "scroll-area__thumb", {}, classNames),
|
|
1741
1824
|
ref: forwardedRef
|
|
1742
1825
|
});
|
|
1743
1826
|
});
|
|
1744
|
-
var ScrollAreaCorner = /* @__PURE__ */
|
|
1827
|
+
var ScrollAreaCorner = /* @__PURE__ */ forwardRef21(({ classNames, ...props }, forwardedRef) => {
|
|
1745
1828
|
const { tx } = useThemeContext();
|
|
1746
|
-
return /* @__PURE__ */
|
|
1829
|
+
return /* @__PURE__ */ React24.createElement(ScrollAreaPrimitiveCorner, {
|
|
1747
1830
|
...props,
|
|
1748
1831
|
className: tx("scrollArea.corner", "scroll-area__corner", {}, classNames),
|
|
1749
1832
|
ref: forwardedRef
|
|
@@ -1760,99 +1843,99 @@ var ScrollArea = {
|
|
|
1760
1843
|
// packages/ui/react-ui/src/components/Select/Select.tsx
|
|
1761
1844
|
import { CaretDown as CaretDown2, CaretUp, Check as Check2 } from "@phosphor-icons/react";
|
|
1762
1845
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
1763
|
-
import
|
|
1846
|
+
import React25, { forwardRef as forwardRef22 } from "react";
|
|
1764
1847
|
var SelectRoot = SelectPrimitive.Root;
|
|
1765
1848
|
var SelectTrigger = SelectPrimitive.Trigger;
|
|
1766
1849
|
var SelectValue = SelectPrimitive.Value;
|
|
1767
1850
|
var SelectIcon = SelectPrimitive.Icon;
|
|
1768
1851
|
var SelectPortal = SelectPrimitive.Portal;
|
|
1769
|
-
var SelectTriggerButton = /* @__PURE__ */
|
|
1852
|
+
var SelectTriggerButton = /* @__PURE__ */ forwardRef22(({ children, placeholder, ...props }, forwardedRef) => {
|
|
1770
1853
|
const { tx } = useThemeContext();
|
|
1771
|
-
return /* @__PURE__ */
|
|
1854
|
+
return /* @__PURE__ */ React25.createElement(SelectPrimitive.Trigger, {
|
|
1772
1855
|
asChild: true,
|
|
1773
1856
|
ref: forwardedRef
|
|
1774
|
-
}, /* @__PURE__ */
|
|
1857
|
+
}, /* @__PURE__ */ React25.createElement(Button, props, /* @__PURE__ */ React25.createElement(SelectPrimitive.Value, {
|
|
1775
1858
|
placeholder
|
|
1776
|
-
}, children), /* @__PURE__ */
|
|
1859
|
+
}, children), /* @__PURE__ */ React25.createElement(SelectPrimitive.Icon, {
|
|
1777
1860
|
asChild: true
|
|
1778
|
-
}, /* @__PURE__ */
|
|
1861
|
+
}, /* @__PURE__ */ React25.createElement(React25.Fragment, null, /* @__PURE__ */ React25.createElement("span", {
|
|
1779
1862
|
className: "w-1"
|
|
1780
|
-
}), /* @__PURE__ */
|
|
1863
|
+
}), /* @__PURE__ */ React25.createElement(CaretDown2, {
|
|
1781
1864
|
className: tx("select.triggerIcon", "select__trigger__icon", {}),
|
|
1782
1865
|
weight: "bold"
|
|
1783
1866
|
})))));
|
|
1784
1867
|
});
|
|
1785
|
-
var SelectContent = /* @__PURE__ */
|
|
1868
|
+
var SelectContent = /* @__PURE__ */ forwardRef22(({ classNames, children, ...props }, forwardedRef) => {
|
|
1786
1869
|
const { tx } = useThemeContext();
|
|
1787
|
-
return /* @__PURE__ */
|
|
1870
|
+
return /* @__PURE__ */ React25.createElement(SelectPrimitive.Content, {
|
|
1788
1871
|
...props,
|
|
1789
1872
|
className: tx("select.content", "select__content", {}, classNames),
|
|
1790
1873
|
ref: forwardedRef
|
|
1791
1874
|
}, children);
|
|
1792
1875
|
});
|
|
1793
|
-
var SelectScrollUpButton2 = /* @__PURE__ */
|
|
1876
|
+
var SelectScrollUpButton2 = /* @__PURE__ */ forwardRef22(({ classNames, children, ...props }, forwardedRef) => {
|
|
1794
1877
|
const { tx } = useThemeContext();
|
|
1795
|
-
return /* @__PURE__ */
|
|
1878
|
+
return /* @__PURE__ */ React25.createElement(SelectPrimitive.SelectScrollUpButton, {
|
|
1796
1879
|
...props,
|
|
1797
1880
|
className: tx("select.scrollButton", "select__scroll-button--up", {}, classNames),
|
|
1798
1881
|
ref: forwardedRef
|
|
1799
|
-
}, children ?? /* @__PURE__ */
|
|
1882
|
+
}, children ?? /* @__PURE__ */ React25.createElement(CaretUp, {
|
|
1800
1883
|
weight: "bold"
|
|
1801
1884
|
}));
|
|
1802
1885
|
});
|
|
1803
|
-
var SelectScrollDownButton2 = /* @__PURE__ */
|
|
1886
|
+
var SelectScrollDownButton2 = /* @__PURE__ */ forwardRef22(({ classNames, children, ...props }, forwardedRef) => {
|
|
1804
1887
|
const { tx } = useThemeContext();
|
|
1805
|
-
return /* @__PURE__ */
|
|
1888
|
+
return /* @__PURE__ */ React25.createElement(SelectPrimitive.SelectScrollDownButton, {
|
|
1806
1889
|
...props,
|
|
1807
1890
|
className: tx("select.scrollButton", "select__scroll-button--down", {}, classNames),
|
|
1808
1891
|
ref: forwardedRef
|
|
1809
|
-
}, children ?? /* @__PURE__ */
|
|
1892
|
+
}, children ?? /* @__PURE__ */ React25.createElement(CaretDown2, {
|
|
1810
1893
|
weight: "bold"
|
|
1811
1894
|
}));
|
|
1812
1895
|
});
|
|
1813
1896
|
var SelectViewport = SelectPrimitive.Viewport;
|
|
1814
|
-
var SelectItem = /* @__PURE__ */
|
|
1897
|
+
var SelectItem = /* @__PURE__ */ forwardRef22(({ classNames, ...props }, forwardedRef) => {
|
|
1815
1898
|
const { tx } = useThemeContext();
|
|
1816
|
-
return /* @__PURE__ */
|
|
1899
|
+
return /* @__PURE__ */ React25.createElement(SelectPrimitive.Item, {
|
|
1817
1900
|
...props,
|
|
1818
1901
|
className: tx("select.item", "option", {}, classNames),
|
|
1819
1902
|
ref: forwardedRef
|
|
1820
1903
|
});
|
|
1821
1904
|
});
|
|
1822
1905
|
var SelectItemText = SelectPrimitive.ItemText;
|
|
1823
|
-
var SelectItemIndicator = /* @__PURE__ */
|
|
1906
|
+
var SelectItemIndicator = /* @__PURE__ */ forwardRef22(({ classNames, children, ...props }, forwardedRef) => {
|
|
1824
1907
|
const { tx } = useThemeContext();
|
|
1825
|
-
return /* @__PURE__ */
|
|
1908
|
+
return /* @__PURE__ */ React25.createElement(SelectPrimitive.ItemIndicator, {
|
|
1826
1909
|
...props,
|
|
1827
1910
|
className: tx("select.itemIndicator", "option__indicator", {}, classNames),
|
|
1828
1911
|
ref: forwardedRef
|
|
1829
1912
|
}, children);
|
|
1830
1913
|
});
|
|
1831
|
-
var SelectOption = /* @__PURE__ */
|
|
1914
|
+
var SelectOption = /* @__PURE__ */ forwardRef22(({ children, classNames, ...props }, forwardedRef) => {
|
|
1832
1915
|
const { tx } = useThemeContext();
|
|
1833
|
-
return /* @__PURE__ */
|
|
1916
|
+
return /* @__PURE__ */ React25.createElement(SelectPrimitive.Item, {
|
|
1834
1917
|
...props,
|
|
1835
1918
|
className: tx("select.item", "option", {}, classNames),
|
|
1836
1919
|
ref: forwardedRef
|
|
1837
|
-
}, /* @__PURE__ */
|
|
1920
|
+
}, /* @__PURE__ */ React25.createElement(SelectPrimitive.ItemText, null, children), /* @__PURE__ */ React25.createElement(SelectPrimitive.ItemIndicator, {
|
|
1838
1921
|
className: tx("select.itemIndicator", "option__indicator", {})
|
|
1839
|
-
}, /* @__PURE__ */
|
|
1922
|
+
}, /* @__PURE__ */ React25.createElement(Check2, {
|
|
1840
1923
|
weight: "bold"
|
|
1841
1924
|
})));
|
|
1842
1925
|
});
|
|
1843
1926
|
var SelectGroup = SelectPrimitive.Group;
|
|
1844
1927
|
var SelectLabel = SelectPrimitive.Label;
|
|
1845
|
-
var SelectSeparator = /* @__PURE__ */
|
|
1928
|
+
var SelectSeparator = /* @__PURE__ */ forwardRef22(({ classNames, ...props }, forwardedRef) => {
|
|
1846
1929
|
const { tx } = useThemeContext();
|
|
1847
|
-
return /* @__PURE__ */
|
|
1930
|
+
return /* @__PURE__ */ React25.createElement(SelectPrimitive.Separator, {
|
|
1848
1931
|
...props,
|
|
1849
1932
|
className: tx("select.separator", "select__separator", {}, classNames),
|
|
1850
1933
|
ref: forwardedRef
|
|
1851
1934
|
});
|
|
1852
1935
|
});
|
|
1853
|
-
var SelectArrow = /* @__PURE__ */
|
|
1936
|
+
var SelectArrow = /* @__PURE__ */ forwardRef22(({ classNames, ...props }, forwardedRef) => {
|
|
1854
1937
|
const { tx } = useThemeContext();
|
|
1855
|
-
return /* @__PURE__ */
|
|
1938
|
+
return /* @__PURE__ */ React25.createElement(SelectPrimitive.Arrow, {
|
|
1856
1939
|
...props,
|
|
1857
1940
|
className: tx("select.arrow", "select__arrow", {}, classNames),
|
|
1858
1941
|
ref: forwardedRef
|
|
@@ -1881,10 +1964,10 @@ var Select = {
|
|
|
1881
1964
|
|
|
1882
1965
|
// packages/ui/react-ui/src/components/Separator/Separator.tsx
|
|
1883
1966
|
import { Separator as SeparatorPrimitive } from "@radix-ui/react-separator";
|
|
1884
|
-
import
|
|
1967
|
+
import React26 from "react";
|
|
1885
1968
|
var Separator4 = ({ classNames, orientation = "horizontal", ...props }) => {
|
|
1886
1969
|
const { tx } = useThemeContext();
|
|
1887
|
-
return /* @__PURE__ */
|
|
1970
|
+
return /* @__PURE__ */ React26.createElement(SeparatorPrimitive, {
|
|
1888
1971
|
orientation,
|
|
1889
1972
|
...props,
|
|
1890
1973
|
className: tx("separator.root", "separator", {
|
|
@@ -1894,13 +1977,13 @@ var Separator4 = ({ classNames, orientation = "horizontal", ...props }) => {
|
|
|
1894
1977
|
};
|
|
1895
1978
|
|
|
1896
1979
|
// packages/ui/react-ui/src/components/Tag/Tag.tsx
|
|
1897
|
-
import { Primitive as
|
|
1898
|
-
import { Slot as
|
|
1899
|
-
import
|
|
1900
|
-
var Tag = /* @__PURE__ */
|
|
1980
|
+
import { Primitive as Primitive12 } from "@radix-ui/react-primitive";
|
|
1981
|
+
import { Slot as Slot13 } from "@radix-ui/react-slot";
|
|
1982
|
+
import React27, { forwardRef as forwardRef23 } from "react";
|
|
1983
|
+
var Tag = /* @__PURE__ */ forwardRef23(({ asChild, palette, classNames, ...props }, forwardedRef) => {
|
|
1901
1984
|
const { tx } = useThemeContext();
|
|
1902
|
-
const Root3 = asChild ?
|
|
1903
|
-
return /* @__PURE__ */
|
|
1985
|
+
const Root3 = asChild ? Slot13 : Primitive12.span;
|
|
1986
|
+
return /* @__PURE__ */ React27.createElement(Root3, {
|
|
1904
1987
|
...props,
|
|
1905
1988
|
className: tx("tag.root", "tag", {
|
|
1906
1989
|
palette
|
|
@@ -1910,61 +1993,61 @@ var Tag = /* @__PURE__ */ forwardRef22(({ asChild, palette, classNames, ...props
|
|
|
1910
1993
|
});
|
|
1911
1994
|
|
|
1912
1995
|
// packages/ui/react-ui/src/components/Toast/Toast.tsx
|
|
1913
|
-
import { Primitive as
|
|
1914
|
-
import { Slot as
|
|
1996
|
+
import { Primitive as Primitive13 } from "@radix-ui/react-primitive";
|
|
1997
|
+
import { Slot as Slot14 } from "@radix-ui/react-slot";
|
|
1915
1998
|
import { ToastProvider as ToastProviderPrimitive, ToastViewport as ToastViewportPrimitive, Root as ToastRootPrimitive, ToastTitle as ToastTitlePrimitive, ToastDescription as ToastDescriptionPrimitive, ToastAction as ToastActionPrimitive, ToastClose as ToastClosePrimitive } from "@radix-ui/react-toast";
|
|
1916
|
-
import
|
|
1999
|
+
import React28, { forwardRef as forwardRef24 } from "react";
|
|
1917
2000
|
var ToastProvider = ToastProviderPrimitive;
|
|
1918
|
-
var ToastViewport = /* @__PURE__ */
|
|
2001
|
+
var ToastViewport = /* @__PURE__ */ forwardRef24(({ classNames, ...props }, forwardedRef) => {
|
|
1919
2002
|
const { tx } = useThemeContext();
|
|
1920
|
-
return /* @__PURE__ */
|
|
2003
|
+
return /* @__PURE__ */ React28.createElement(ToastViewportPrimitive, {
|
|
1921
2004
|
className: tx("toast.viewport", "toast-viewport", {}, classNames),
|
|
1922
2005
|
ref: forwardedRef
|
|
1923
2006
|
});
|
|
1924
2007
|
});
|
|
1925
|
-
var ToastRoot = /* @__PURE__ */
|
|
2008
|
+
var ToastRoot = /* @__PURE__ */ forwardRef24(({ classNames, children, ...props }, forwardedRef) => {
|
|
1926
2009
|
const { tx } = useThemeContext();
|
|
1927
|
-
return /* @__PURE__ */
|
|
2010
|
+
return /* @__PURE__ */ React28.createElement(ToastRootPrimitive, {
|
|
1928
2011
|
...props,
|
|
1929
2012
|
className: tx("toast.root", "toast", {}, classNames),
|
|
1930
2013
|
ref: forwardedRef
|
|
1931
|
-
}, /* @__PURE__ */
|
|
2014
|
+
}, /* @__PURE__ */ React28.createElement(ElevationProvider, {
|
|
1932
2015
|
elevation: "chrome"
|
|
1933
|
-
}, /* @__PURE__ */
|
|
2016
|
+
}, /* @__PURE__ */ React28.createElement(DensityProvider, {
|
|
1934
2017
|
density: "fine"
|
|
1935
2018
|
}, children)));
|
|
1936
2019
|
});
|
|
1937
|
-
var ToastBody = /* @__PURE__ */
|
|
2020
|
+
var ToastBody = /* @__PURE__ */ forwardRef24(({ asChild, classNames, ...props }, forwardedRef) => {
|
|
1938
2021
|
const { tx } = useThemeContext();
|
|
1939
|
-
const Root3 = asChild ?
|
|
1940
|
-
return /* @__PURE__ */
|
|
2022
|
+
const Root3 = asChild ? Slot14 : Primitive13.div;
|
|
2023
|
+
return /* @__PURE__ */ React28.createElement(Root3, {
|
|
1941
2024
|
...props,
|
|
1942
2025
|
className: tx("toast.body", "toast__body", {}, classNames),
|
|
1943
2026
|
ref: forwardedRef
|
|
1944
2027
|
});
|
|
1945
2028
|
});
|
|
1946
|
-
var ToastTitle = /* @__PURE__ */
|
|
2029
|
+
var ToastTitle = /* @__PURE__ */ forwardRef24(({ asChild, classNames, ...props }, forwardedRef) => {
|
|
1947
2030
|
const { tx } = useThemeContext();
|
|
1948
|
-
const Root3 = asChild ?
|
|
1949
|
-
return /* @__PURE__ */
|
|
2031
|
+
const Root3 = asChild ? Slot14 : ToastTitlePrimitive;
|
|
2032
|
+
return /* @__PURE__ */ React28.createElement(Root3, {
|
|
1950
2033
|
...props,
|
|
1951
2034
|
className: tx("toast.title", "toast__title", {}, classNames),
|
|
1952
2035
|
ref: forwardedRef
|
|
1953
2036
|
});
|
|
1954
2037
|
});
|
|
1955
|
-
var ToastDescription = /* @__PURE__ */
|
|
2038
|
+
var ToastDescription = /* @__PURE__ */ forwardRef24(({ asChild, classNames, ...props }, forwardedRef) => {
|
|
1956
2039
|
const { tx } = useThemeContext();
|
|
1957
|
-
const Root3 = asChild ?
|
|
1958
|
-
return /* @__PURE__ */
|
|
2040
|
+
const Root3 = asChild ? Slot14 : ToastDescriptionPrimitive;
|
|
2041
|
+
return /* @__PURE__ */ React28.createElement(Root3, {
|
|
1959
2042
|
...props,
|
|
1960
2043
|
className: tx("toast.description", "toast__description", {}, classNames),
|
|
1961
2044
|
ref: forwardedRef
|
|
1962
2045
|
});
|
|
1963
2046
|
});
|
|
1964
|
-
var ToastActions = /* @__PURE__ */
|
|
2047
|
+
var ToastActions = /* @__PURE__ */ forwardRef24(({ asChild, classNames, ...props }, forwardedRef) => {
|
|
1965
2048
|
const { tx } = useThemeContext();
|
|
1966
|
-
const Root3 = asChild ?
|
|
1967
|
-
return /* @__PURE__ */
|
|
2049
|
+
const Root3 = asChild ? Slot14 : Primitive13.div;
|
|
2050
|
+
return /* @__PURE__ */ React28.createElement(Root3, {
|
|
1968
2051
|
...props,
|
|
1969
2052
|
className: tx("toast.actions", "toast__actions", {}, classNames),
|
|
1970
2053
|
ref: forwardedRef
|
|
@@ -1986,47 +2069,47 @@ var Toast = {
|
|
|
1986
2069
|
|
|
1987
2070
|
// packages/ui/react-ui/src/components/Toolbar/Toolbar.tsx
|
|
1988
2071
|
import * as ToolbarPrimitive from "@radix-ui/react-toolbar";
|
|
1989
|
-
import
|
|
1990
|
-
var ToolbarRoot = /* @__PURE__ */
|
|
2072
|
+
import React29, { forwardRef as forwardRef25 } from "react";
|
|
2073
|
+
var ToolbarRoot = /* @__PURE__ */ forwardRef25(({ classNames, children, ...props }, forwardedRef) => {
|
|
1991
2074
|
const { tx } = useThemeContext();
|
|
1992
|
-
return /* @__PURE__ */
|
|
2075
|
+
return /* @__PURE__ */ React29.createElement(ToolbarPrimitive.Root, {
|
|
1993
2076
|
...props,
|
|
1994
2077
|
className: tx("toolbar.root", "toolbar", {}, classNames),
|
|
1995
2078
|
ref: forwardedRef
|
|
1996
2079
|
}, children);
|
|
1997
2080
|
});
|
|
1998
|
-
var ToolbarButton = /* @__PURE__ */
|
|
1999
|
-
return /* @__PURE__ */
|
|
2081
|
+
var ToolbarButton = /* @__PURE__ */ forwardRef25((props, forwardedRef) => {
|
|
2082
|
+
return /* @__PURE__ */ React29.createElement(ToolbarPrimitive.Button, {
|
|
2000
2083
|
asChild: true
|
|
2001
|
-
}, /* @__PURE__ */
|
|
2084
|
+
}, /* @__PURE__ */ React29.createElement(Button, {
|
|
2002
2085
|
...props,
|
|
2003
2086
|
ref: forwardedRef
|
|
2004
2087
|
}));
|
|
2005
2088
|
});
|
|
2006
|
-
var ToolbarLink = /* @__PURE__ */
|
|
2007
|
-
return /* @__PURE__ */
|
|
2089
|
+
var ToolbarLink = /* @__PURE__ */ forwardRef25((props, forwardedRef) => {
|
|
2090
|
+
return /* @__PURE__ */ React29.createElement(ToolbarPrimitive.Link, {
|
|
2008
2091
|
asChild: true
|
|
2009
|
-
}, /* @__PURE__ */
|
|
2092
|
+
}, /* @__PURE__ */ React29.createElement(Link, {
|
|
2010
2093
|
...props,
|
|
2011
2094
|
ref: forwardedRef
|
|
2012
2095
|
}));
|
|
2013
2096
|
});
|
|
2014
|
-
var ToolbarToggleGroup2 = /* @__PURE__ */
|
|
2015
|
-
return /* @__PURE__ */
|
|
2097
|
+
var ToolbarToggleGroup2 = /* @__PURE__ */ forwardRef25(({ classNames, children, elevation, ...props }, forwardedRef) => {
|
|
2098
|
+
return /* @__PURE__ */ React29.createElement(ToolbarPrimitive.ToolbarToggleGroup, {
|
|
2016
2099
|
...props,
|
|
2017
2100
|
asChild: true
|
|
2018
|
-
}, /* @__PURE__ */
|
|
2101
|
+
}, /* @__PURE__ */ React29.createElement(ButtonGroup, {
|
|
2019
2102
|
classNames,
|
|
2020
2103
|
children,
|
|
2021
2104
|
elevation,
|
|
2022
2105
|
ref: forwardedRef
|
|
2023
2106
|
}));
|
|
2024
2107
|
});
|
|
2025
|
-
var ToolbarToggleGroupItem = /* @__PURE__ */
|
|
2026
|
-
return /* @__PURE__ */
|
|
2108
|
+
var ToolbarToggleGroupItem = /* @__PURE__ */ forwardRef25(({ variant, density, elevation, classNames, children, ...props }, forwardedRef) => {
|
|
2109
|
+
return /* @__PURE__ */ React29.createElement(ToolbarPrimitive.ToolbarToggleItem, {
|
|
2027
2110
|
...props,
|
|
2028
2111
|
asChild: true
|
|
2029
|
-
}, /* @__PURE__ */
|
|
2112
|
+
}, /* @__PURE__ */ React29.createElement(Button, {
|
|
2030
2113
|
variant,
|
|
2031
2114
|
density,
|
|
2032
2115
|
elevation,
|
|
@@ -2036,9 +2119,9 @@ var ToolbarToggleGroupItem = /* @__PURE__ */ forwardRef24(({ variant, density, e
|
|
|
2036
2119
|
}));
|
|
2037
2120
|
});
|
|
2038
2121
|
var ToolbarSeparator = (props) => {
|
|
2039
|
-
return /* @__PURE__ */
|
|
2122
|
+
return /* @__PURE__ */ React29.createElement(ToolbarPrimitive.Separator, {
|
|
2040
2123
|
asChild: true
|
|
2041
|
-
}, /* @__PURE__ */
|
|
2124
|
+
}, /* @__PURE__ */ React29.createElement(Separator4, {
|
|
2042
2125
|
orientation: "vertical",
|
|
2043
2126
|
...props
|
|
2044
2127
|
}));
|
|
@@ -2054,22 +2137,22 @@ var Toolbar = {
|
|
|
2054
2137
|
|
|
2055
2138
|
// packages/ui/react-ui/src/components/Tooltip/Tooltip.tsx
|
|
2056
2139
|
import { Provider as TooltipProviderPrimitive, Root as TooltipRootPrimitive, TooltipContent as TooltipContentPrimitive, TooltipTrigger as TooltipTriggerPrimitive, TooltipPortal as TooltipPortalPrimitive, TooltipArrow as TooltipArrowPrimitive } from "@radix-ui/react-tooltip";
|
|
2057
|
-
import
|
|
2140
|
+
import React30, { forwardRef as forwardRef26 } from "react";
|
|
2058
2141
|
var TooltipProvider = TooltipProviderPrimitive;
|
|
2059
2142
|
var TooltipRoot = TooltipRootPrimitive;
|
|
2060
2143
|
var TooltipPortal = TooltipPortalPrimitive;
|
|
2061
2144
|
var TooltipTrigger = TooltipTriggerPrimitive;
|
|
2062
|
-
var TooltipArrow = /* @__PURE__ */
|
|
2145
|
+
var TooltipArrow = /* @__PURE__ */ forwardRef26(({ classNames, ...props }, forwardedRef) => {
|
|
2063
2146
|
const { tx } = useThemeContext();
|
|
2064
|
-
return /* @__PURE__ */
|
|
2147
|
+
return /* @__PURE__ */ React30.createElement(TooltipArrowPrimitive, {
|
|
2065
2148
|
...props,
|
|
2066
2149
|
className: tx("tooltip.arrow", "tooltip__arrow", {}, classNames),
|
|
2067
2150
|
ref: forwardedRef
|
|
2068
2151
|
});
|
|
2069
2152
|
});
|
|
2070
|
-
var TooltipContent = /* @__PURE__ */
|
|
2153
|
+
var TooltipContent = /* @__PURE__ */ forwardRef26(({ classNames, ...props }, forwardedRef) => {
|
|
2071
2154
|
const { tx } = useThemeContext();
|
|
2072
|
-
return /* @__PURE__ */
|
|
2155
|
+
return /* @__PURE__ */ React30.createElement(TooltipContentPrimitive, {
|
|
2073
2156
|
sideOffset: 4,
|
|
2074
2157
|
collisionPadding: 8,
|
|
2075
2158
|
...props,
|
|
@@ -2088,7 +2171,7 @@ var Tooltip = {
|
|
|
2088
2171
|
|
|
2089
2172
|
// packages/ui/react-ui/src/components/ThemeProvider/ThemeProvider.tsx
|
|
2090
2173
|
import { createKeyborg } from "keyborg";
|
|
2091
|
-
import
|
|
2174
|
+
import React31, { createContext as createContext10, useEffect as useEffect5 } from "react";
|
|
2092
2175
|
|
|
2093
2176
|
// packages/ui/react-ui/src/util/hasIosKeyboard.ts
|
|
2094
2177
|
var hasIosKeyboard = () => {
|
|
@@ -2116,19 +2199,19 @@ var ThemeProvider = ({ children, fallback = null, resourceExtensions, appNs, tx
|
|
|
2116
2199
|
return () => kb.unsubscribe(handleInputModalityChange);
|
|
2117
2200
|
}
|
|
2118
2201
|
}, []);
|
|
2119
|
-
return /* @__PURE__ */
|
|
2202
|
+
return /* @__PURE__ */ React31.createElement(ThemeContext.Provider, {
|
|
2120
2203
|
value: {
|
|
2121
2204
|
tx,
|
|
2122
2205
|
themeMode,
|
|
2123
2206
|
hasIosKeyboard: hasIosKeyboard()
|
|
2124
2207
|
}
|
|
2125
|
-
}, /* @__PURE__ */
|
|
2208
|
+
}, /* @__PURE__ */ React31.createElement(TranslationsProvider, {
|
|
2126
2209
|
fallback,
|
|
2127
2210
|
resourceExtensions,
|
|
2128
2211
|
appNs
|
|
2129
|
-
}, /* @__PURE__ */
|
|
2212
|
+
}, /* @__PURE__ */ React31.createElement(ElevationProvider, {
|
|
2130
2213
|
elevation: rootElevation
|
|
2131
|
-
}, /* @__PURE__ */
|
|
2214
|
+
}, /* @__PURE__ */ React31.createElement(DensityProvider, {
|
|
2132
2215
|
density: rootDensity
|
|
2133
2216
|
}, children))));
|
|
2134
2217
|
};
|
|
@@ -2174,6 +2257,7 @@ export {
|
|
|
2174
2257
|
Trans,
|
|
2175
2258
|
Tree,
|
|
2176
2259
|
TreeItem,
|
|
2260
|
+
Treegrid,
|
|
2177
2261
|
hasIosKeyboard,
|
|
2178
2262
|
isLabel,
|
|
2179
2263
|
toLocalizedString,
|