@dxos/react-ui 0.7.5-labs.8c02d2a → 0.7.5-labs.c0e040f
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 +5 -9
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node/index.cjs +5 -9
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +5 -9
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/components/Avatars/Avatar.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/Dialog.d.ts +4 -2
- package/dist/types/src/components/Dialogs/Dialog.d.ts.map +1 -1
- package/dist/types/src/components/Tag/Tag.stories.d.ts.map +1 -1
- package/package.json +12 -12
- package/src/components/Avatars/Avatar.tsx +2 -7
- package/src/components/Dialogs/AlertDialog.tsx +3 -1
- package/src/components/Dialogs/Dialog.stories.tsx +1 -1
- package/src/components/Dialogs/Dialog.tsx +9 -4
- package/src/components/Tag/Tag.stories.tsx +2 -5
|
@@ -253,16 +253,12 @@ var AvatarFrame = /* @__PURE__ */ forwardRef3(({ classNames, children, ...props
|
|
|
253
253
|
y: ringGap + ringWidth,
|
|
254
254
|
rx
|
|
255
255
|
}))), variant === "circle" ? /* @__PURE__ */ React4.createElement("circle", {
|
|
256
|
-
className: hue ? tx("hue.fill", "avatar__frame__circle", {
|
|
257
|
-
hue
|
|
258
|
-
}) : "fill-[var(--surface-bg)]",
|
|
259
256
|
cx: "50%",
|
|
260
257
|
cy: "50%",
|
|
261
|
-
r
|
|
258
|
+
r,
|
|
259
|
+
fill: hue ? `var(--dx-${hue}Fill)` : "var(--surface-bg)"
|
|
262
260
|
}) : /* @__PURE__ */ React4.createElement("rect", {
|
|
263
|
-
|
|
264
|
-
hue
|
|
265
|
-
}) : "fill-[var(--surface-bg)]",
|
|
261
|
+
fill: hue ? `var(--dx-${hue}Fill)` : "var(--surface-bg)",
|
|
266
262
|
x: ringGap + ringWidth,
|
|
267
263
|
y: ringGap + ringWidth,
|
|
268
264
|
width: 2 * r,
|
|
@@ -969,13 +965,13 @@ var DialogOverlay = /* @__PURE__ */ forwardRef12(({ classNames, children, blockA
|
|
|
969
965
|
}, children));
|
|
970
966
|
});
|
|
971
967
|
DialogOverlay.displayName = DIALOG_OVERLAY_NAME;
|
|
972
|
-
var DialogContent = /* @__PURE__ */ forwardRef12(({ classNames, children, ...props }, forwardedRef) => {
|
|
968
|
+
var DialogContent = /* @__PURE__ */ forwardRef12(({ classNames, children, inOverlayLayout: propsInOverlayLayout, ...props }, forwardedRef) => {
|
|
973
969
|
const { tx } = useThemeContext();
|
|
974
970
|
const { inOverlayLayout } = useOverlayLayoutContext(DIALOG_CONTENT_NAME);
|
|
975
971
|
return /* @__PURE__ */ React18.createElement(DialogContentPrimitive, {
|
|
976
972
|
...props,
|
|
977
973
|
className: tx("dialog.content", "dialog", {
|
|
978
|
-
inOverlayLayout
|
|
974
|
+
inOverlayLayout: propsInOverlayLayout || inOverlayLayout
|
|
979
975
|
}, classNames),
|
|
980
976
|
ref: forwardedRef
|
|
981
977
|
}, children);
|