@dxos/react-ui 0.8.3-main.672df60 → 0.8.3-staging.0fa589b
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/{node-esm/chunk-ANVE7WX5.mjs → browser/chunk-WXW6KSRL.mjs} +39 -20
- package/dist/lib/browser/chunk-WXW6KSRL.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 +3 -3
- package/dist/lib/browser/testing/index.mjs.map +2 -2
- package/dist/lib/node/{chunk-KMS7RFL7.cjs → chunk-3E3QKWX4.cjs} +44 -21
- package/dist/lib/node/chunk-3E3QKWX4.cjs.map +7 -0
- package/dist/lib/node/index.cjs +73 -69
- package/dist/lib/node/index.cjs.map +1 -1
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/testing/index.cjs +4 -4
- package/dist/lib/node/testing/index.cjs.map +2 -2
- package/dist/lib/{browser/chunk-5Y5JI6KC.mjs → node-esm/chunk-EQ7EG74H.mjs} +41 -18
- package/dist/lib/node-esm/chunk-EQ7EG74H.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 +3 -3
- package/dist/lib/node-esm/testing/index.mjs.map +2 -2
- package/dist/types/src/components/Input/Input.d.ts.map +1 -1
- package/dist/types/src/components/Message/Message.d.ts +14 -5
- package/dist/types/src/components/Message/Message.d.ts.map +1 -1
- package/dist/types/src/components/Message/Message.stories.d.ts +1 -1
- package/dist/types/src/components/Message/Message.stories.d.ts.map +1 -1
- package/dist/types/src/components/Separator/Separator.d.ts +5 -1
- package/dist/types/src/components/Separator/Separator.d.ts.map +1 -1
- package/dist/types/src/components/ThemeProvider/TranslationsProvider.d.ts +1 -0
- package/dist/types/src/components/ThemeProvider/TranslationsProvider.d.ts.map +1 -1
- package/dist/types/src/components/Toolbar/Toolbar.d.ts +7 -1
- package/dist/types/src/components/Toolbar/Toolbar.d.ts.map +1 -1
- package/dist/types/src/components/Toolbar/Toolbar.stories.d.ts +4 -0
- package/dist/types/src/components/Toolbar/Toolbar.stories.d.ts.map +1 -1
- package/dist/types/src/testing/decorators/withSurfaceVariantsLayout.d.ts.map +1 -1
- package/package.json +13 -13
- package/src/components/Input/Input.stories.tsx +2 -2
- package/src/components/Input/Input.tsx +1 -0
- package/src/components/Menus/ContextMenu.stories.tsx +1 -1
- package/src/components/Message/Message.stories.tsx +7 -10
- package/src/components/Message/Message.tsx +50 -19
- package/src/components/Separator/Separator.tsx +3 -3
- package/src/components/ThemeProvider/TranslationsProvider.tsx +1 -1
- package/src/components/Toolbar/Toolbar.tsx +15 -9
- package/src/testing/decorators/withSurfaceVariantsLayout.tsx +2 -4
- package/dist/lib/browser/chunk-5Y5JI6KC.mjs.map +0 -7
- package/dist/lib/node/chunk-KMS7RFL7.cjs.map +0 -7
- package/dist/lib/node-esm/chunk-ANVE7WX5.mjs.map +0 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/testing/decorators/withTheme.ts", "../../../../src/testing/decorators/withSurfaceVariantsLayout.tsx"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Decorator, type StoryContext, type StoryFn } from '@storybook/react';\nimport { useEffect, createElement } from 'react';\n\nimport { defaultTx } from '@dxos/react-ui-theme';\n\nimport { ThemeProvider } from '../../components';\n\nexport const withTheme: Decorator = (Story: StoryFn, context: StoryContext) => {\n const theme = context?.parameters?.theme || context?.globals?.theme;\n useEffect(() => {\n document.documentElement.classList[theme === 'dark' ? 'add' : 'remove']('dark');\n }, [theme]);\n\n return createElement(ThemeProvider, {\n children: createElement(Story),\n tx: defaultTx,\n });\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Decorator } from '@storybook/react';\nimport React, { type ComponentType, type PropsWithChildren } from 'react';\n\nimport { mx, surfaceShadow } from '@dxos/react-ui-theme';\nimport { type Density, type Elevation } from '@dxos/react-ui-types';\n\ntype Config = {\n elevations?: { elevation: Elevation; surface?: string }[];\n densities?: Density[];\n};\n\nconst Container = ({ children, elevation, surface }: PropsWithChildren<{ elevation: Elevation; surface?: string }>) => (\n <div className={mx('
|
|
5
|
-
"mappings": ";;;;;AAKA,SAASA,WAAWC,qBAAqB;AAEzC,SAASC,iBAAiB;AAInB,IAAMC,YAAuB,CAACC,OAAgBC,YAAAA;AACnD,QAAMC,QAAQD,SAASE,YAAYD,SAASD,SAASG,SAASF;AAC9DG,YAAU,MAAA;AACRC,aAASC,gBAAgBC,UAAUN,UAAU,SAAS,QAAQ,QAAA,EAAU,MAAA;EAC1E,GAAG;IAACA;GAAM;AAEV,SAAOO,cAAcC,eAAe;IAClCC,UAAUF,cAAcT,KAAAA;IACxBY,IAAIC;EACN,CAAA;AACF;;;;AChBA,OAAOC,WAA2D;AAElE,SAASC,IAAIC,qBAAqB;AAQlC,IAAMC,YAAY,CAAC,EAAEC,UAAUC,WAAWC,QAAO,MAAiE;;;WAChH,sBAAA,cAACC,OAAAA;MAAIC,WAAWC,GAAG,
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Decorator, type StoryContext, type StoryFn } from '@storybook/react';\nimport { useEffect, createElement } from 'react';\n\nimport { defaultTx } from '@dxos/react-ui-theme';\n\nimport { ThemeProvider } from '../../components';\n\nexport const withTheme: Decorator = (Story: StoryFn, context: StoryContext) => {\n const theme = context?.parameters?.theme || context?.globals?.theme;\n useEffect(() => {\n document.documentElement.classList[theme === 'dark' ? 'add' : 'remove']('dark');\n }, [theme]);\n\n return createElement(ThemeProvider, {\n children: createElement(Story),\n tx: defaultTx,\n });\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Decorator } from '@storybook/react';\nimport React, { type ComponentType, type PropsWithChildren } from 'react';\n\nimport { mx, surfaceShadow } from '@dxos/react-ui-theme';\nimport { type Density, type Elevation } from '@dxos/react-ui-types';\n\ntype Config = {\n elevations?: { elevation: Elevation; surface?: string }[];\n densities?: Density[];\n};\n\nconst Container = ({ children, elevation, surface }: PropsWithChildren<{ elevation: Elevation; surface?: string }>) => (\n <div className={mx('rounded-md border border-separator', surface, surfaceShadow({ elevation }))}>{children}</div>\n);\n\nconst Panel = ({\n Story,\n elevations,\n densities,\n className,\n}: { Story: ComponentType } & Config & { className?: string }) => (\n <div className={mx('flex flex-col h-full p-4 gap-4', className)}>\n {elevations?.map(({ elevation, surface }) =>\n densities?.map((density) => (\n <Container key={`${elevation}--${density}`} surface={surface} elevation={elevation}>\n <Story />\n </Container>\n )),\n )}\n </div>\n);\n\nexport const withSurfaceVariantsLayout = ({\n elevations = [\n { elevation: 'base', surface: 'bg-baseSurface' },\n { elevation: 'positioned', surface: 'bg-cardSurface' },\n { elevation: 'dialog', surface: 'bg-modalSurface' },\n ],\n densities = ['coarse'],\n}: Config = {}): Decorator => {\n return (Story) => (\n <div className='fixed inset-0 grid grid-cols-2 overflow-y-auto'>\n <Panel Story={Story} className='light' elevations={elevations} densities={densities} />\n <Panel Story={Story} className='dark' elevations={elevations} densities={densities} />\n </div>\n );\n};\n"],
|
|
5
|
+
"mappings": ";;;;;AAKA,SAASA,WAAWC,qBAAqB;AAEzC,SAASC,iBAAiB;AAInB,IAAMC,YAAuB,CAACC,OAAgBC,YAAAA;AACnD,QAAMC,QAAQD,SAASE,YAAYD,SAASD,SAASG,SAASF;AAC9DG,YAAU,MAAA;AACRC,aAASC,gBAAgBC,UAAUN,UAAU,SAAS,QAAQ,QAAA,EAAU,MAAA;EAC1E,GAAG;IAACA;GAAM;AAEV,SAAOO,cAAcC,eAAe;IAClCC,UAAUF,cAAcT,KAAAA;IACxBY,IAAIC;EACN,CAAA;AACF;;;;AChBA,OAAOC,WAA2D;AAElE,SAASC,IAAIC,qBAAqB;AAQlC,IAAMC,YAAY,CAAC,EAAEC,UAAUC,WAAWC,QAAO,MAAiE;;;WAChH,sBAAA,cAACC,OAAAA;MAAIC,WAAWC,GAAG,sCAAsCH,SAASI,cAAc;QAAEL;MAAU,CAAA,CAAA;OAAMD,QAAAA;;;;;AAGpG,IAAMO,QAAQ,CAAC,EACbC,OACAC,YACAC,WACAN,UAAS,MACkD;;;WAC3D,sBAAA,cAACD,OAAAA;MAAIC,WAAWC,GAAG,kCAAkCD,SAAAA;OAClDK,YAAYE,IAAI,CAAC,EAAEV,WAAWC,QAAO,MACpCQ,WAAWC,IAAI,CAACC,YACd,sBAAA,cAACb,WAAAA;MAAUc,KAAK,GAAGZ,SAAAA,KAAcW,OAAAA;MAAWV;MAAkBD;OAC5D,sBAAA,cAACO,OAAAA,IAAAA,CAAAA,CAAAA,CAAAA,CAAAA;;;;;AAOJ,IAAMM,4BAA4B,CAAC,EACxCL,aAAa;EACX;IAAER,WAAW;IAAQC,SAAS;EAAiB;EAC/C;IAAED,WAAW;IAAcC,SAAS;EAAiB;EACrD;IAAED,WAAW;IAAUC,SAAS;EAAkB;GAEpDQ,YAAY;EAAC;EAAS,IACZ,CAAC,MAAC;AACZ,SAAO,CAACF,UACN,sBAAA,cAACL,OAAAA;IAAIC,WAAU;KACb,sBAAA,cAACG,OAAAA;IAAMC;IAAcJ,WAAU;IAAQK;IAAwBC;MAC/D,sBAAA,cAACH,OAAAA;IAAMC;IAAcJ,WAAU;IAAOK;IAAwBC;;AAGpE;",
|
|
6
6
|
"names": ["useEffect", "createElement", "defaultTx", "withTheme", "Story", "context", "theme", "parameters", "globals", "useEffect", "document", "documentElement", "classList", "createElement", "ThemeProvider", "children", "tx", "defaultTx", "React", "mx", "surfaceShadow", "Container", "children", "elevation", "surface", "div", "className", "mx", "surfaceShadow", "Panel", "Story", "elevations", "densities", "map", "density", "key", "withSurfaceVariantsLayout"]
|
|
7
7
|
}
|
|
@@ -26,8 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_3E3QKWX4_exports = {};
|
|
30
|
+
__export(chunk_3E3QKWX4_exports, {
|
|
31
31
|
AlertDialog: () => AlertDialog,
|
|
32
32
|
AnchoredOverflow: () => AnchoredOverflow,
|
|
33
33
|
Avatar: () => Avatar,
|
|
@@ -35,6 +35,7 @@ __export(chunk_KMS7RFL7_exports, {
|
|
|
35
35
|
Breadcrumb: () => Breadcrumb,
|
|
36
36
|
Button: () => Button,
|
|
37
37
|
ButtonGroup: () => ButtonGroup,
|
|
38
|
+
Callout: () => Callout,
|
|
38
39
|
Clipboard: () => Clipboard,
|
|
39
40
|
ContextMenu: () => ContextMenu2,
|
|
40
41
|
DensityContext: () => DensityContext,
|
|
@@ -76,6 +77,7 @@ __export(chunk_KMS7RFL7_exports, {
|
|
|
76
77
|
hasIosKeyboard: () => hasIosKeyboard,
|
|
77
78
|
initialSafeArea: () => initialSafeArea,
|
|
78
79
|
isLabel: () => isLabel,
|
|
80
|
+
messageIcons: () => messageIcons,
|
|
79
81
|
toLocalizedString: () => toLocalizedString,
|
|
80
82
|
useAvatarContext: () => useAvatarContext,
|
|
81
83
|
useButtonGroupContext: () => useButtonGroupContext,
|
|
@@ -97,7 +99,7 @@ __export(chunk_KMS7RFL7_exports, {
|
|
|
97
99
|
useTranslationsContext: () => useTranslationsContext,
|
|
98
100
|
useVisualViewport: () => useVisualViewport
|
|
99
101
|
});
|
|
100
|
-
module.exports = __toCommonJS(
|
|
102
|
+
module.exports = __toCommonJS(chunk_3E3QKWX4_exports);
|
|
101
103
|
var import_react = require("react");
|
|
102
104
|
var import_tracking = require("@preact-signals/safe-react/tracking");
|
|
103
105
|
var import_react_primitive = require("@radix-ui/react-primitive");
|
|
@@ -1897,7 +1899,7 @@ var TextArea = /* @__PURE__ */ (0, import_react27.forwardRef)(({ __inputScope, c
|
|
|
1897
1899
|
density,
|
|
1898
1900
|
elevation,
|
|
1899
1901
|
validationValence
|
|
1900
|
-
}, classNames),
|
|
1902
|
+
}, "-mbe-labelSpacingBlock", classNames),
|
|
1901
1903
|
...props.autoFocus && !hasIosKeyboard2 && {
|
|
1902
1904
|
autoFocus: true
|
|
1903
1905
|
},
|
|
@@ -3276,9 +3278,16 @@ var DropdownMenu = {
|
|
|
3276
3278
|
SubContent: DropdownMenuSubContent
|
|
3277
3279
|
};
|
|
3278
3280
|
var useDropdownMenuMenuScope = useMenuScope;
|
|
3281
|
+
var messageIcons = {
|
|
3282
|
+
success: "ph--check-circle--duotone",
|
|
3283
|
+
info: "ph--info--duotone",
|
|
3284
|
+
warning: "ph--warning--duotone",
|
|
3285
|
+
error: "ph--warning-circle--duotone",
|
|
3286
|
+
neutral: "ph--info--duotone"
|
|
3287
|
+
};
|
|
3279
3288
|
var MESSAGE_NAME = "Message";
|
|
3280
3289
|
var [MessageProvider, useMessageContext] = (0, import_react_context9.createContext)(MESSAGE_NAME);
|
|
3281
|
-
var MessageRoot = /* @__PURE__ */ (0, import_react39.forwardRef)(({ asChild, valence, elevation: propsElevation,
|
|
3290
|
+
var MessageRoot = /* @__PURE__ */ (0, import_react39.forwardRef)(({ asChild, valence = "neutral", elevation: propsElevation, classNames, titleId: propsTitleId, descriptionId: propsDescriptionId, children, ...props }, forwardedRef) => {
|
|
3282
3291
|
var _effect = (0, import_tracking28.useSignals)();
|
|
3283
3292
|
try {
|
|
3284
3293
|
const { tx } = useThemeContext();
|
|
@@ -3288,13 +3297,15 @@ var MessageRoot = /* @__PURE__ */ (0, import_react39.forwardRef)(({ asChild, val
|
|
|
3288
3297
|
const Root7 = asChild ? import_react_slot12.Slot : import_react_primitive11.Primitive.div;
|
|
3289
3298
|
return /* @__PURE__ */ import_react39.default.createElement(MessageProvider, {
|
|
3290
3299
|
titleId,
|
|
3291
|
-
descriptionId
|
|
3300
|
+
descriptionId,
|
|
3301
|
+
valence
|
|
3292
3302
|
}, /* @__PURE__ */ import_react39.default.createElement(Root7, {
|
|
3303
|
+
role: valence === "neutral" ? "paragraph" : "alert",
|
|
3293
3304
|
...props,
|
|
3294
3305
|
className: tx("message.root", "message", {
|
|
3295
3306
|
valence,
|
|
3296
3307
|
elevation
|
|
3297
|
-
},
|
|
3308
|
+
}, classNames),
|
|
3298
3309
|
"aria-labelledby": titleId,
|
|
3299
3310
|
"aria-describedby": descriptionId,
|
|
3300
3311
|
ref: forwardedRef
|
|
@@ -3305,25 +3316,31 @@ var MessageRoot = /* @__PURE__ */ (0, import_react39.forwardRef)(({ asChild, val
|
|
|
3305
3316
|
});
|
|
3306
3317
|
MessageRoot.displayName = MESSAGE_NAME;
|
|
3307
3318
|
var MESSAGE_TITLE_NAME = "MessageTitle";
|
|
3308
|
-
var MessageTitle = /* @__PURE__ */ (0, import_react39.forwardRef)(({ asChild,
|
|
3319
|
+
var MessageTitle = /* @__PURE__ */ (0, import_react39.forwardRef)(({ asChild, classNames, children, icon, ...props }, forwardedRef) => {
|
|
3309
3320
|
var _effect = (0, import_tracking28.useSignals)();
|
|
3310
3321
|
try {
|
|
3311
3322
|
const { tx } = useThemeContext();
|
|
3312
|
-
const { titleId } = useMessageContext(MESSAGE_TITLE_NAME);
|
|
3323
|
+
const { titleId, valence } = useMessageContext(MESSAGE_TITLE_NAME);
|
|
3313
3324
|
const Root7 = asChild ? import_react_slot12.Slot : import_react_primitive11.Primitive.h2;
|
|
3314
3325
|
return /* @__PURE__ */ import_react39.default.createElement(Root7, {
|
|
3315
3326
|
...props,
|
|
3316
|
-
className: tx("message.title", "message__title", {},
|
|
3327
|
+
className: tx("message.title", "message__title", {}, classNames),
|
|
3317
3328
|
id: titleId,
|
|
3318
3329
|
ref: forwardedRef
|
|
3319
|
-
},
|
|
3330
|
+
}, !icon && valence === "neutral" ? null : /* @__PURE__ */ import_react39.default.createElement(Icon, {
|
|
3331
|
+
size: 5,
|
|
3332
|
+
icon: icon ?? messageIcons[valence],
|
|
3333
|
+
classNames: tx("message.icon", "message__icon", {
|
|
3334
|
+
valence
|
|
3335
|
+
})
|
|
3336
|
+
}), /* @__PURE__ */ import_react39.default.createElement("span", null, children));
|
|
3320
3337
|
} finally {
|
|
3321
3338
|
_effect.f();
|
|
3322
3339
|
}
|
|
3323
3340
|
});
|
|
3324
3341
|
MessageTitle.displayName = MESSAGE_TITLE_NAME;
|
|
3325
|
-
var MESSAGE_BODY_NAME = "
|
|
3326
|
-
var
|
|
3342
|
+
var MESSAGE_BODY_NAME = "MessageContent";
|
|
3343
|
+
var MessageContent = /* @__PURE__ */ (0, import_react39.forwardRef)(({ asChild, classNames, children, ...props }, forwardedRef) => {
|
|
3327
3344
|
var _effect = (0, import_tracking28.useSignals)();
|
|
3328
3345
|
try {
|
|
3329
3346
|
const { tx } = useThemeContext();
|
|
@@ -3331,7 +3348,7 @@ var MessageBody = /* @__PURE__ */ (0, import_react39.forwardRef)(({ asChild, cla
|
|
|
3331
3348
|
const Root7 = asChild ? import_react_slot12.Slot : import_react_primitive11.Primitive.p;
|
|
3332
3349
|
return /* @__PURE__ */ import_react39.default.createElement(Root7, {
|
|
3333
3350
|
...props,
|
|
3334
|
-
className: tx("message.
|
|
3351
|
+
className: tx("message.content", "message__content", {}, classNames),
|
|
3335
3352
|
id: descriptionId,
|
|
3336
3353
|
ref: forwardedRef
|
|
3337
3354
|
}, children);
|
|
@@ -3339,12 +3356,13 @@ var MessageBody = /* @__PURE__ */ (0, import_react39.forwardRef)(({ asChild, cla
|
|
|
3339
3356
|
_effect.f();
|
|
3340
3357
|
}
|
|
3341
3358
|
});
|
|
3342
|
-
|
|
3359
|
+
MessageContent.displayName = MESSAGE_BODY_NAME;
|
|
3343
3360
|
var Message = {
|
|
3344
3361
|
Root: MessageRoot,
|
|
3345
3362
|
Title: MessageTitle,
|
|
3346
|
-
|
|
3363
|
+
Content: MessageContent
|
|
3347
3364
|
};
|
|
3365
|
+
var Callout = Message;
|
|
3348
3366
|
var POPOVER_NAME = "Popover";
|
|
3349
3367
|
var [createPopoverContext, createPopoverScope] = (0, import_react_context10.createContextScope)(POPOVER_NAME, [
|
|
3350
3368
|
import_react_popper2.createPopperScope
|
|
@@ -3986,7 +4004,7 @@ var Select = {
|
|
|
3986
4004
|
Separator: SelectSeparator,
|
|
3987
4005
|
Arrow: SelectArrow
|
|
3988
4006
|
};
|
|
3989
|
-
var Separator4 = /* @__PURE__ */ (0, import_react45.forwardRef)(({ classNames, orientation = "horizontal", ...props }, forwardedRef) => {
|
|
4007
|
+
var Separator4 = /* @__PURE__ */ (0, import_react45.forwardRef)(({ classNames, orientation = "horizontal", subdued, ...props }, forwardedRef) => {
|
|
3990
4008
|
var _effect = (0, import_tracking33.useSignals)();
|
|
3991
4009
|
try {
|
|
3992
4010
|
const { tx } = useThemeContext();
|
|
@@ -3994,7 +4012,8 @@ var Separator4 = /* @__PURE__ */ (0, import_react45.forwardRef)(({ classNames, o
|
|
|
3994
4012
|
orientation,
|
|
3995
4013
|
...props,
|
|
3996
4014
|
className: tx("separator.root", "separator", {
|
|
3997
|
-
orientation
|
|
4015
|
+
orientation,
|
|
4016
|
+
subdued
|
|
3998
4017
|
}, classNames),
|
|
3999
4018
|
ref: forwardedRef
|
|
4000
4019
|
});
|
|
@@ -4116,13 +4135,15 @@ var Toast = {
|
|
|
4116
4135
|
Action: ToastAction,
|
|
4117
4136
|
Close: ToastClose
|
|
4118
4137
|
};
|
|
4119
|
-
var ToolbarRoot = /* @__PURE__ */ (0, import_react48.forwardRef)(({ classNames, children, ...props }, forwardedRef) => {
|
|
4138
|
+
var ToolbarRoot = /* @__PURE__ */ (0, import_react48.forwardRef)(({ classNames, children, layoutManaged, ...props }, forwardedRef) => {
|
|
4120
4139
|
var _effect = (0, import_tracking36.useSignals)();
|
|
4121
4140
|
try {
|
|
4122
4141
|
const { tx } = useThemeContext();
|
|
4123
4142
|
return /* @__PURE__ */ import_react48.default.createElement(ToolbarPrimitive.Root, {
|
|
4124
4143
|
...props,
|
|
4125
|
-
className: tx("toolbar.root", "toolbar", {
|
|
4144
|
+
className: tx("toolbar.root", "toolbar", {
|
|
4145
|
+
layoutManaged
|
|
4146
|
+
}, classNames),
|
|
4126
4147
|
ref: forwardedRef
|
|
4127
4148
|
}, children);
|
|
4128
4149
|
} finally {
|
|
@@ -4275,6 +4296,7 @@ var useDensityContext = (propsDensity) => {
|
|
|
4275
4296
|
Breadcrumb,
|
|
4276
4297
|
Button,
|
|
4277
4298
|
ButtonGroup,
|
|
4299
|
+
Callout,
|
|
4278
4300
|
Clipboard,
|
|
4279
4301
|
ContextMenu,
|
|
4280
4302
|
DensityContext,
|
|
@@ -4316,6 +4338,7 @@ var useDensityContext = (propsDensity) => {
|
|
|
4316
4338
|
hasIosKeyboard,
|
|
4317
4339
|
initialSafeArea,
|
|
4318
4340
|
isLabel,
|
|
4341
|
+
messageIcons,
|
|
4319
4342
|
toLocalizedString,
|
|
4320
4343
|
useAvatarContext,
|
|
4321
4344
|
useButtonGroupContext,
|
|
@@ -4337,4 +4360,4 @@ var useDensityContext = (propsDensity) => {
|
|
|
4337
4360
|
useTranslationsContext,
|
|
4338
4361
|
useVisualViewport
|
|
4339
4362
|
});
|
|
4340
|
-
//# sourceMappingURL=chunk-
|
|
4363
|
+
//# sourceMappingURL=chunk-3E3QKWX4.cjs.map
|