@firecms/ui 3.0.0-tw4.16 → 3.0.0-tw4.17
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/index.es.js +8 -8
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +8 -8
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Dialog.tsx +1 -1
- package/src/components/Menu.tsx +1 -1
- package/src/components/Menubar.tsx +1 -1
- package/src/components/MultiSelect.tsx +1 -1
- package/src/components/Popover.tsx +1 -1
- package/src/components/Select.tsx +1 -1
- package/src/components/Sheet.tsx +1 -1
- package/src/components/Tooltip.tsx +1 -1
package/dist/index.es.js
CHANGED
|
@@ -32829,7 +32829,7 @@ const Dialog = (t0) => {
|
|
|
32829
32829
|
const disableInitialFocus = t5 === void 0 ? true : t5;
|
|
32830
32830
|
const [displayed, setDisplayed] = useState(false);
|
|
32831
32831
|
const contextContainer = usePortalContainer();
|
|
32832
|
-
const finalContainer = portalContainer
|
|
32832
|
+
const finalContainer = portalContainer ?? contextContainer ?? void 0;
|
|
32833
32833
|
let t6;
|
|
32834
32834
|
let t7;
|
|
32835
32835
|
if ($[0] !== open) {
|
|
@@ -33694,7 +33694,7 @@ const Menu = React__default.forwardRef((t0, ref) => {
|
|
|
33694
33694
|
} = t0;
|
|
33695
33695
|
const sideOffset = t1 === void 0 ? 4 : t1;
|
|
33696
33696
|
const contextContainer = usePortalContainer();
|
|
33697
|
-
const finalContainer = portalContainer
|
|
33697
|
+
const finalContainer = portalContainer ?? contextContainer ?? void 0;
|
|
33698
33698
|
let t2;
|
|
33699
33699
|
if ($[0] !== ref || $[1] !== trigger) {
|
|
33700
33700
|
t2 = /* @__PURE__ */ jsx(DropdownMenu.Trigger, { ref, asChild: true, children: trigger });
|
|
@@ -33861,7 +33861,7 @@ function MenubarPortal(t0) {
|
|
|
33861
33861
|
portalContainer
|
|
33862
33862
|
} = t0;
|
|
33863
33863
|
const contextContainer = usePortalContainer();
|
|
33864
|
-
const finalContainer = portalContainer
|
|
33864
|
+
const finalContainer = portalContainer ?? contextContainer ?? void 0;
|
|
33865
33865
|
let t1;
|
|
33866
33866
|
if ($[0] !== children || $[1] !== finalContainer) {
|
|
33867
33867
|
t1 = /* @__PURE__ */ jsx(MenubarPrimitive.Portal, { container: finalContainer, children });
|
|
@@ -34545,7 +34545,7 @@ const MultiSelect = React.forwardRef((t0, ref) => {
|
|
|
34545
34545
|
}
|
|
34546
34546
|
const [selectedValues, setSelectedValues] = useState(t6);
|
|
34547
34547
|
const contextContainer = usePortalContainer();
|
|
34548
|
-
const finalContainer = portalContainer
|
|
34548
|
+
const finalContainer = portalContainer ?? contextContainer ?? void 0;
|
|
34549
34549
|
let t7;
|
|
34550
34550
|
let t8;
|
|
34551
34551
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -35542,7 +35542,7 @@ const Select = forwardRef((t0, ref) => {
|
|
|
35542
35542
|
}
|
|
35543
35543
|
useEffect(t6, t7);
|
|
35544
35544
|
const contextContainer = usePortalContainer();
|
|
35545
|
-
const finalContainer = manualContainer
|
|
35545
|
+
const finalContainer = manualContainer ?? contextContainer ?? void 0;
|
|
35546
35546
|
let t8;
|
|
35547
35547
|
if ($[30] !== dataType || $[31] !== name || $[32] !== onChange || $[33] !== onValueChange) {
|
|
35548
35548
|
t8 = (newValue) => {
|
|
@@ -36228,7 +36228,7 @@ const Sheet = (t0) => {
|
|
|
36228
36228
|
const includeBackgroundOverlay = t3 === void 0 ? true : t3;
|
|
36229
36229
|
const [displayed, setDisplayed] = useState(false);
|
|
36230
36230
|
const contextContainer = usePortalContainer();
|
|
36231
|
-
const finalContainer = portalContainer
|
|
36231
|
+
const finalContainer = portalContainer ?? contextContainer ?? void 0;
|
|
36232
36232
|
let t4;
|
|
36233
36233
|
let t5;
|
|
36234
36234
|
if ($[15] !== open) {
|
|
@@ -36696,7 +36696,7 @@ const Tooltip = (t0) => {
|
|
|
36696
36696
|
const asChild = t3 === void 0 ? false : t3;
|
|
36697
36697
|
useInjectStyles("Tooltip", styles);
|
|
36698
36698
|
const contextContainer = usePortalContainer();
|
|
36699
|
-
const finalContainer = container
|
|
36699
|
+
const finalContainer = container ?? contextContainer ?? void 0;
|
|
36700
36700
|
if (!title) {
|
|
36701
36701
|
let t42;
|
|
36702
36702
|
if ($[0] !== children) {
|
|
@@ -37172,7 +37172,7 @@ function Popover(t0) {
|
|
|
37172
37172
|
const modal = t3 === void 0 ? false : t3;
|
|
37173
37173
|
useInjectStyles("Popover", popoverStyles);
|
|
37174
37174
|
const contextContainer = usePortalContainer();
|
|
37175
|
-
const finalContainer = portalContainer
|
|
37175
|
+
const finalContainer = portalContainer ?? contextContainer ?? void 0;
|
|
37176
37176
|
if (!enabled) {
|
|
37177
37177
|
let t42;
|
|
37178
37178
|
if ($[0] !== trigger) {
|