@ceed/cds 0.0.88 → 0.0.89
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/framer/index.js +53 -4
- package/package.json +1 -1
package/framer/index.js
CHANGED
|
@@ -44476,6 +44476,19 @@ var commonPropertyControls = {
|
|
|
44476
44476
|
buttonTitle: "Set Margin",
|
|
44477
44477
|
hidden: ({ useResponsiveMargin }) => !useResponsiveMargin,
|
|
44478
44478
|
controls: {
|
|
44479
|
+
xs: {
|
|
44480
|
+
type: ControlType28.FusedNumber,
|
|
44481
|
+
defaultValue: 0,
|
|
44482
|
+
toggleKey: "xsMixed",
|
|
44483
|
+
toggleTitles: ["All", "Individual"],
|
|
44484
|
+
valueKeys: [
|
|
44485
|
+
"xsMarginTop",
|
|
44486
|
+
"xsMarginRight",
|
|
44487
|
+
"xsMarginBottom",
|
|
44488
|
+
"xsMarginLeft"
|
|
44489
|
+
],
|
|
44490
|
+
valueLabels: ["T", "R", "B", "L"]
|
|
44491
|
+
},
|
|
44479
44492
|
sm: {
|
|
44480
44493
|
type: ControlType28.FusedNumber,
|
|
44481
44494
|
defaultValue: 0,
|
|
@@ -44567,40 +44580,47 @@ var withCommonControls = (Component) => {
|
|
|
44567
44580
|
Component2,
|
|
44568
44581
|
__spreadProps(__spreadValues({}, props2), {
|
|
44569
44582
|
sx: (() => {
|
|
44583
|
+
let styles2 = {};
|
|
44570
44584
|
if (useResponsiveMargin) {
|
|
44571
|
-
|
|
44585
|
+
styles2 = __spreadProps(__spreadValues({}, styles2), {
|
|
44572
44586
|
margin: {
|
|
44587
|
+
xs: !responsiveMargin.xsMixed ? responsiveMargin.xs : void 0,
|
|
44573
44588
|
sm: !responsiveMargin.smMixed ? responsiveMargin.sm : void 0,
|
|
44574
44589
|
md: !responsiveMargin.mdMixed ? responsiveMargin.md : void 0,
|
|
44575
44590
|
lg: !responsiveMargin.lgMixed ? responsiveMargin.lg : void 0,
|
|
44576
44591
|
xl: !responsiveMargin.xlMixed ? responsiveMargin.xl : void 0
|
|
44577
44592
|
},
|
|
44578
44593
|
marginLeft: {
|
|
44594
|
+
xs: !responsiveMargin.xsMixed ? void 0 : responsiveMargin.xsMarginLeft,
|
|
44579
44595
|
sm: !responsiveMargin.smMixed ? void 0 : responsiveMargin.smMarginLeft,
|
|
44580
44596
|
md: !responsiveMargin.mdMixed ? void 0 : responsiveMargin.mdMarginLeft,
|
|
44581
44597
|
lg: !responsiveMargin.lgMixed ? void 0 : responsiveMargin.lgMarginLeft,
|
|
44582
44598
|
xl: !responsiveMargin.xlMixed ? void 0 : responsiveMargin.xlMarginLeft
|
|
44583
44599
|
},
|
|
44584
44600
|
marginRight: {
|
|
44601
|
+
xs: !responsiveMargin.xsMixed ? void 0 : responsiveMargin.xsMarginRight,
|
|
44585
44602
|
sm: !responsiveMargin.smMixed ? void 0 : responsiveMargin.smMarginRight,
|
|
44586
44603
|
md: !responsiveMargin.mdMixed ? void 0 : responsiveMargin.mdMarginRight,
|
|
44587
44604
|
lg: !responsiveMargin.lgMixed ? void 0 : responsiveMargin.lgMarginRight,
|
|
44588
44605
|
xl: !responsiveMargin.xlMixed ? void 0 : responsiveMargin.xlMarginRight
|
|
44589
44606
|
},
|
|
44590
44607
|
marginTop: {
|
|
44608
|
+
xs: !responsiveMargin.xsMixed ? void 0 : responsiveMargin.xsMarginTop,
|
|
44591
44609
|
sm: !responsiveMargin.smMixed ? void 0 : responsiveMargin.smMarginTop,
|
|
44592
44610
|
md: !responsiveMargin.mdMixed ? void 0 : responsiveMargin.mdMarginTop,
|
|
44593
44611
|
lg: !responsiveMargin.lgMixed ? void 0 : responsiveMargin.lgMarginTop,
|
|
44594
44612
|
xl: !responsiveMargin.xlMixed ? void 0 : responsiveMargin.xlMarginTop
|
|
44595
44613
|
},
|
|
44596
44614
|
marginBottom: {
|
|
44615
|
+
xs: !responsiveMargin.xsMixed ? void 0 : responsiveMargin.xsMarginBottom,
|
|
44597
44616
|
sm: !responsiveMargin.smMixed ? void 0 : responsiveMargin.smMarginBottom,
|
|
44598
44617
|
md: !responsiveMargin.mdMixed ? void 0 : responsiveMargin.mdMarginBottom,
|
|
44599
44618
|
lg: !responsiveMargin.lgMixed ? void 0 : responsiveMargin.lgMarginBottom,
|
|
44600
44619
|
xl: !responsiveMargin.xlMixed ? void 0 : responsiveMargin.xlMarginBottom
|
|
44601
44620
|
}
|
|
44602
|
-
};
|
|
44621
|
+
});
|
|
44603
44622
|
}
|
|
44623
|
+
return styles2;
|
|
44604
44624
|
})()
|
|
44605
44625
|
}),
|
|
44606
44626
|
...acc
|
|
@@ -44626,7 +44646,18 @@ var useResponsive = (breakpoint, rootElement) => {
|
|
|
44626
44646
|
return matches;
|
|
44627
44647
|
};
|
|
44628
44648
|
var ResponsiveEmitter = (props) => {
|
|
44629
|
-
const {
|
|
44649
|
+
const {
|
|
44650
|
+
children,
|
|
44651
|
+
onXsChange,
|
|
44652
|
+
onSmChange,
|
|
44653
|
+
onMdChange,
|
|
44654
|
+
onLgChange,
|
|
44655
|
+
onXlChange
|
|
44656
|
+
} = props;
|
|
44657
|
+
const isXs = useResponsive(
|
|
44658
|
+
"xs",
|
|
44659
|
+
document.querySelector("#canvas-container .groundNodeWrapper > div[id]") || document.body
|
|
44660
|
+
);
|
|
44630
44661
|
const isSm = useResponsive(
|
|
44631
44662
|
"sm",
|
|
44632
44663
|
document.querySelector("#canvas-container .groundNodeWrapper > div[id]") || document.body
|
|
@@ -44656,11 +44687,29 @@ var ResponsiveEmitter = (props) => {
|
|
|
44656
44687
|
} else if (isSm && onSmChange) {
|
|
44657
44688
|
onSmChange();
|
|
44658
44689
|
return;
|
|
44690
|
+
} else if (isXs && onXsChange) {
|
|
44691
|
+
onXsChange();
|
|
44692
|
+
return;
|
|
44659
44693
|
}
|
|
44660
|
-
}, [
|
|
44694
|
+
}, [
|
|
44695
|
+
isXs,
|
|
44696
|
+
isSm,
|
|
44697
|
+
isMd,
|
|
44698
|
+
isLg,
|
|
44699
|
+
isXl,
|
|
44700
|
+
onXsChange,
|
|
44701
|
+
onSmChange,
|
|
44702
|
+
onMdChange,
|
|
44703
|
+
onLgChange,
|
|
44704
|
+
onXlChange
|
|
44705
|
+
]);
|
|
44661
44706
|
return children;
|
|
44662
44707
|
};
|
|
44663
44708
|
var responsiveEmitterPropertyControls = {
|
|
44709
|
+
onXsChange: {
|
|
44710
|
+
title: "onXsChange",
|
|
44711
|
+
type: ControlType28.EventHandler
|
|
44712
|
+
},
|
|
44664
44713
|
onSmChange: {
|
|
44665
44714
|
title: "onSmChange",
|
|
44666
44715
|
type: ControlType28.EventHandler
|