@ceed/cds 0.0.88 → 0.0.90
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 +95 -47
- 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,
|
|
@@ -44544,7 +44557,56 @@ var withCommonControls = (Component) => {
|
|
|
44544
44557
|
"useResponsiveMargin",
|
|
44545
44558
|
"responsiveMargin"
|
|
44546
44559
|
]);
|
|
44547
|
-
const components = [
|
|
44560
|
+
const components = [
|
|
44561
|
+
{
|
|
44562
|
+
Component,
|
|
44563
|
+
props: __spreadProps(__spreadValues({}, props), {
|
|
44564
|
+
sx: (() => {
|
|
44565
|
+
let styles2 = {};
|
|
44566
|
+
if (useResponsiveMargin) {
|
|
44567
|
+
styles2 = __spreadProps(__spreadValues({}, styles2), {
|
|
44568
|
+
margin: {
|
|
44569
|
+
xs: !responsiveMargin.xsMixed ? responsiveMargin.xs : void 0,
|
|
44570
|
+
sm: !responsiveMargin.smMixed ? responsiveMargin.sm : void 0,
|
|
44571
|
+
md: !responsiveMargin.mdMixed ? responsiveMargin.md : void 0,
|
|
44572
|
+
lg: !responsiveMargin.lgMixed ? responsiveMargin.lg : void 0,
|
|
44573
|
+
xl: !responsiveMargin.xlMixed ? responsiveMargin.xl : void 0
|
|
44574
|
+
},
|
|
44575
|
+
marginLeft: {
|
|
44576
|
+
xs: !responsiveMargin.xsMixed ? void 0 : responsiveMargin.xsMarginLeft,
|
|
44577
|
+
sm: !responsiveMargin.smMixed ? void 0 : responsiveMargin.smMarginLeft,
|
|
44578
|
+
md: !responsiveMargin.mdMixed ? void 0 : responsiveMargin.mdMarginLeft,
|
|
44579
|
+
lg: !responsiveMargin.lgMixed ? void 0 : responsiveMargin.lgMarginLeft,
|
|
44580
|
+
xl: !responsiveMargin.xlMixed ? void 0 : responsiveMargin.xlMarginLeft
|
|
44581
|
+
},
|
|
44582
|
+
marginRight: {
|
|
44583
|
+
xs: !responsiveMargin.xsMixed ? void 0 : responsiveMargin.xsMarginRight,
|
|
44584
|
+
sm: !responsiveMargin.smMixed ? void 0 : responsiveMargin.smMarginRight,
|
|
44585
|
+
md: !responsiveMargin.mdMixed ? void 0 : responsiveMargin.mdMarginRight,
|
|
44586
|
+
lg: !responsiveMargin.lgMixed ? void 0 : responsiveMargin.lgMarginRight,
|
|
44587
|
+
xl: !responsiveMargin.xlMixed ? void 0 : responsiveMargin.xlMarginRight
|
|
44588
|
+
},
|
|
44589
|
+
marginTop: {
|
|
44590
|
+
xs: !responsiveMargin.xsMixed ? void 0 : responsiveMargin.xsMarginTop,
|
|
44591
|
+
sm: !responsiveMargin.smMixed ? void 0 : responsiveMargin.smMarginTop,
|
|
44592
|
+
md: !responsiveMargin.mdMixed ? void 0 : responsiveMargin.mdMarginTop,
|
|
44593
|
+
lg: !responsiveMargin.lgMixed ? void 0 : responsiveMargin.lgMarginTop,
|
|
44594
|
+
xl: !responsiveMargin.xlMixed ? void 0 : responsiveMargin.xlMarginTop
|
|
44595
|
+
},
|
|
44596
|
+
marginBottom: {
|
|
44597
|
+
xs: !responsiveMargin.xsMixed ? void 0 : responsiveMargin.xsMarginBottom,
|
|
44598
|
+
sm: !responsiveMargin.smMixed ? void 0 : responsiveMargin.smMarginBottom,
|
|
44599
|
+
md: !responsiveMargin.mdMixed ? void 0 : responsiveMargin.mdMarginBottom,
|
|
44600
|
+
lg: !responsiveMargin.lgMixed ? void 0 : responsiveMargin.lgMarginBottom,
|
|
44601
|
+
xl: !responsiveMargin.xlMixed ? void 0 : responsiveMargin.xlMarginBottom
|
|
44602
|
+
}
|
|
44603
|
+
});
|
|
44604
|
+
}
|
|
44605
|
+
return styles2;
|
|
44606
|
+
})()
|
|
44607
|
+
})
|
|
44608
|
+
}
|
|
44609
|
+
];
|
|
44548
44610
|
if (useNumbering) {
|
|
44549
44611
|
components.push({
|
|
44550
44612
|
Component: Badge_default,
|
|
@@ -44562,50 +44624,7 @@ var withCommonControls = (Component) => {
|
|
|
44562
44624
|
});
|
|
44563
44625
|
}
|
|
44564
44626
|
return components.reduce((acc, { Component: Component2, props: props2 }) => {
|
|
44565
|
-
return [
|
|
44566
|
-
React184.createElement(
|
|
44567
|
-
Component2,
|
|
44568
|
-
__spreadProps(__spreadValues({}, props2), {
|
|
44569
|
-
sx: (() => {
|
|
44570
|
-
if (useResponsiveMargin) {
|
|
44571
|
-
return {
|
|
44572
|
-
margin: {
|
|
44573
|
-
sm: !responsiveMargin.smMixed ? responsiveMargin.sm : void 0,
|
|
44574
|
-
md: !responsiveMargin.mdMixed ? responsiveMargin.md : void 0,
|
|
44575
|
-
lg: !responsiveMargin.lgMixed ? responsiveMargin.lg : void 0,
|
|
44576
|
-
xl: !responsiveMargin.xlMixed ? responsiveMargin.xl : void 0
|
|
44577
|
-
},
|
|
44578
|
-
marginLeft: {
|
|
44579
|
-
sm: !responsiveMargin.smMixed ? void 0 : responsiveMargin.smMarginLeft,
|
|
44580
|
-
md: !responsiveMargin.mdMixed ? void 0 : responsiveMargin.mdMarginLeft,
|
|
44581
|
-
lg: !responsiveMargin.lgMixed ? void 0 : responsiveMargin.lgMarginLeft,
|
|
44582
|
-
xl: !responsiveMargin.xlMixed ? void 0 : responsiveMargin.xlMarginLeft
|
|
44583
|
-
},
|
|
44584
|
-
marginRight: {
|
|
44585
|
-
sm: !responsiveMargin.smMixed ? void 0 : responsiveMargin.smMarginRight,
|
|
44586
|
-
md: !responsiveMargin.mdMixed ? void 0 : responsiveMargin.mdMarginRight,
|
|
44587
|
-
lg: !responsiveMargin.lgMixed ? void 0 : responsiveMargin.lgMarginRight,
|
|
44588
|
-
xl: !responsiveMargin.xlMixed ? void 0 : responsiveMargin.xlMarginRight
|
|
44589
|
-
},
|
|
44590
|
-
marginTop: {
|
|
44591
|
-
sm: !responsiveMargin.smMixed ? void 0 : responsiveMargin.smMarginTop,
|
|
44592
|
-
md: !responsiveMargin.mdMixed ? void 0 : responsiveMargin.mdMarginTop,
|
|
44593
|
-
lg: !responsiveMargin.lgMixed ? void 0 : responsiveMargin.lgMarginTop,
|
|
44594
|
-
xl: !responsiveMargin.xlMixed ? void 0 : responsiveMargin.xlMarginTop
|
|
44595
|
-
},
|
|
44596
|
-
marginBottom: {
|
|
44597
|
-
sm: !responsiveMargin.smMixed ? void 0 : responsiveMargin.smMarginBottom,
|
|
44598
|
-
md: !responsiveMargin.mdMixed ? void 0 : responsiveMargin.mdMarginBottom,
|
|
44599
|
-
lg: !responsiveMargin.lgMixed ? void 0 : responsiveMargin.lgMarginBottom,
|
|
44600
|
-
xl: !responsiveMargin.xlMixed ? void 0 : responsiveMargin.xlMarginBottom
|
|
44601
|
-
}
|
|
44602
|
-
};
|
|
44603
|
-
}
|
|
44604
|
-
})()
|
|
44605
|
-
}),
|
|
44606
|
-
...acc
|
|
44607
|
-
)
|
|
44608
|
-
];
|
|
44627
|
+
return [React184.createElement(Component2, props2, ...acc)];
|
|
44609
44628
|
}, []);
|
|
44610
44629
|
};
|
|
44611
44630
|
};
|
|
@@ -44626,7 +44645,18 @@ var useResponsive = (breakpoint, rootElement) => {
|
|
|
44626
44645
|
return matches;
|
|
44627
44646
|
};
|
|
44628
44647
|
var ResponsiveEmitter = (props) => {
|
|
44629
|
-
const {
|
|
44648
|
+
const {
|
|
44649
|
+
children,
|
|
44650
|
+
onXsChange,
|
|
44651
|
+
onSmChange,
|
|
44652
|
+
onMdChange,
|
|
44653
|
+
onLgChange,
|
|
44654
|
+
onXlChange
|
|
44655
|
+
} = props;
|
|
44656
|
+
const isXs = useResponsive(
|
|
44657
|
+
"xs",
|
|
44658
|
+
document.querySelector("#canvas-container .groundNodeWrapper > div[id]") || document.body
|
|
44659
|
+
);
|
|
44630
44660
|
const isSm = useResponsive(
|
|
44631
44661
|
"sm",
|
|
44632
44662
|
document.querySelector("#canvas-container .groundNodeWrapper > div[id]") || document.body
|
|
@@ -44656,11 +44686,29 @@ var ResponsiveEmitter = (props) => {
|
|
|
44656
44686
|
} else if (isSm && onSmChange) {
|
|
44657
44687
|
onSmChange();
|
|
44658
44688
|
return;
|
|
44689
|
+
} else if (isXs && onXsChange) {
|
|
44690
|
+
onXsChange();
|
|
44691
|
+
return;
|
|
44659
44692
|
}
|
|
44660
|
-
}, [
|
|
44693
|
+
}, [
|
|
44694
|
+
isXs,
|
|
44695
|
+
isSm,
|
|
44696
|
+
isMd,
|
|
44697
|
+
isLg,
|
|
44698
|
+
isXl,
|
|
44699
|
+
onXsChange,
|
|
44700
|
+
onSmChange,
|
|
44701
|
+
onMdChange,
|
|
44702
|
+
onLgChange,
|
|
44703
|
+
onXlChange
|
|
44704
|
+
]);
|
|
44661
44705
|
return children;
|
|
44662
44706
|
};
|
|
44663
44707
|
var responsiveEmitterPropertyControls = {
|
|
44708
|
+
onXsChange: {
|
|
44709
|
+
title: "onXsChange",
|
|
44710
|
+
type: ControlType28.EventHandler
|
|
44711
|
+
},
|
|
44664
44712
|
onSmChange: {
|
|
44665
44713
|
title: "onSmChange",
|
|
44666
44714
|
type: ControlType28.EventHandler
|