@builder.io/sdk-qwik 0.1.12 → 0.1.13
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/lib/index.qwik.cjs
CHANGED
|
@@ -29,7 +29,8 @@ const Button = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
|
29
29
|
const STYLES$3 = `
|
|
30
30
|
.button-Button {
|
|
31
31
|
all: unset;
|
|
32
|
-
}
|
|
32
|
+
}
|
|
33
|
+
`;
|
|
33
34
|
const builderContext = qwik.createContext("Builder");
|
|
34
35
|
const TARGET = "qwik";
|
|
35
36
|
function isBrowser() {
|
|
@@ -667,91 +668,83 @@ const STYLES$2 = `
|
|
|
667
668
|
display: flex;
|
|
668
669
|
flex-direction: column;
|
|
669
670
|
align-items: stretch;
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
return typeof props.space === "number" ? props.space || 0 : 20;
|
|
673
|
-
};
|
|
674
|
-
const getColumns = function getColumns2(props, state, builderContext2) {
|
|
675
|
-
return props.columns || [];
|
|
676
|
-
};
|
|
671
|
+
}
|
|
672
|
+
`;
|
|
677
673
|
const getWidth = function getWidth2(props, state, builderContext2, index) {
|
|
678
|
-
|
|
679
|
-
return columns[index]?.width || 100 / columns.length;
|
|
674
|
+
return state.cols[index]?.width || 100 / state.cols.length;
|
|
680
675
|
};
|
|
681
676
|
const getColumnCssWidth = function getColumnCssWidth2(props, state, builderContext2, index) {
|
|
682
|
-
const
|
|
683
|
-
const gutterSize = getGutterSize(props);
|
|
684
|
-
const subtractWidth = gutterSize * (columns.length - 1) / columns.length;
|
|
677
|
+
const subtractWidth = state.gutterSize * (state.cols.length - 1) / state.cols.length;
|
|
685
678
|
return `calc(${getWidth(props, state, builderContext2, index)}% - ${subtractWidth}px)`;
|
|
686
679
|
};
|
|
687
|
-
const
|
|
688
|
-
|
|
689
|
-
|
|
680
|
+
const getTabletStyle = function getTabletStyle2(props, state, builderContext2, { stackedStyle, desktopStyle }) {
|
|
681
|
+
return state.stackAt === "tablet" ? stackedStyle : desktopStyle;
|
|
682
|
+
};
|
|
683
|
+
const getMobileStyle = function getMobileStyle2(props, state, builderContext2, { stackedStyle, desktopStyle }) {
|
|
684
|
+
return state.stackAt === "never" ? desktopStyle : stackedStyle;
|
|
690
685
|
};
|
|
691
686
|
const columnsCssVars = function columnsCssVars2(props, state, builderContext2) {
|
|
692
|
-
const flexDir = props.stackColumnsAt === "never" ? "inherit" : props.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
693
687
|
return {
|
|
694
|
-
"--flex-dir": flexDir,
|
|
695
|
-
"--flex-dir-tablet":
|
|
688
|
+
"--flex-dir": state.flexDir,
|
|
689
|
+
"--flex-dir-tablet": getTabletStyle(props, state, builderContext2, {
|
|
690
|
+
stackedStyle: state.flexDir,
|
|
691
|
+
desktopStyle: "row"
|
|
692
|
+
})
|
|
696
693
|
};
|
|
697
694
|
};
|
|
698
|
-
const columnCssVars = function columnCssVars2(props, state, builderContext2) {
|
|
699
|
-
const width =
|
|
700
|
-
const
|
|
695
|
+
const columnCssVars = function columnCssVars2(props, state, builderContext2, index) {
|
|
696
|
+
const width = getColumnCssWidth(props, state, builderContext2, index);
|
|
697
|
+
const gutter = `${index === 0 ? 0 : state.gutterSize}px`;
|
|
698
|
+
const mobileWidth = "100%";
|
|
699
|
+
const mobileMarginLeft = "0";
|
|
701
700
|
return {
|
|
702
|
-
|
|
703
|
-
"
|
|
704
|
-
"--column-width-
|
|
705
|
-
|
|
701
|
+
width,
|
|
702
|
+
"margin-left": gutter,
|
|
703
|
+
"--column-width-mobile": getMobileStyle(props, state, builderContext2, {
|
|
704
|
+
stackedStyle: mobileWidth,
|
|
705
|
+
desktopStyle: width
|
|
706
|
+
}),
|
|
707
|
+
"--column-margin-left-mobile": getMobileStyle(props, state, builderContext2, {
|
|
708
|
+
stackedStyle: mobileMarginLeft,
|
|
709
|
+
desktopStyle: gutter
|
|
710
|
+
}),
|
|
711
|
+
"--column-width-tablet": getTabletStyle(props, state, builderContext2, {
|
|
712
|
+
stackedStyle: mobileWidth,
|
|
713
|
+
desktopStyle: width
|
|
714
|
+
}),
|
|
715
|
+
"--column-margin-left-tablet": getTabletStyle(props, state, builderContext2, {
|
|
716
|
+
stackedStyle: mobileMarginLeft,
|
|
717
|
+
desktopStyle: gutter
|
|
718
|
+
})
|
|
706
719
|
};
|
|
707
720
|
};
|
|
708
721
|
const getWidthForBreakpointSize = function getWidthForBreakpointSize2(props, state, builderContext2, size) {
|
|
709
722
|
const breakpointSizes = getSizesForBreakpoints(builderContext2.content?.meta?.breakpoints || {});
|
|
710
723
|
return breakpointSizes[size].max;
|
|
711
724
|
};
|
|
712
|
-
const columnStyleObjects = function columnStyleObjects2(props, state, builderContext2) {
|
|
713
|
-
return {
|
|
714
|
-
columns: {
|
|
715
|
-
small: {
|
|
716
|
-
flexDirection: "var(--flex-dir)",
|
|
717
|
-
alignItems: "stretch"
|
|
718
|
-
},
|
|
719
|
-
medium: {
|
|
720
|
-
flexDirection: "var(--flex-dir-tablet)",
|
|
721
|
-
alignItems: "stretch"
|
|
722
|
-
}
|
|
723
|
-
},
|
|
724
|
-
column: {
|
|
725
|
-
small: {
|
|
726
|
-
width: "var(--column-width) !important",
|
|
727
|
-
marginLeft: "var(--column-margin-left) !important"
|
|
728
|
-
},
|
|
729
|
-
medium: {
|
|
730
|
-
width: "var(--column-width-tablet) !important",
|
|
731
|
-
marginLeft: "var(--column-margin-left-tablet) !important"
|
|
732
|
-
}
|
|
733
|
-
}
|
|
734
|
-
};
|
|
735
|
-
};
|
|
736
725
|
const columnsStyles = function columnsStyles2(props, state, builderContext2) {
|
|
737
726
|
return `
|
|
738
727
|
@media (max-width: ${getWidthForBreakpointSize(props, state, builderContext2, "medium")}px) {
|
|
739
728
|
.${props.builderBlock.id}-breakpoints {
|
|
740
|
-
|
|
729
|
+
flex-direction: var(--flex-dir-tablet);
|
|
730
|
+
align-items: stretch;
|
|
741
731
|
}
|
|
742
732
|
|
|
743
733
|
.${props.builderBlock.id}-breakpoints > .builder-column {
|
|
744
|
-
|
|
734
|
+
width: var(--column-width-tablet) !important;
|
|
735
|
+
margin-left: var(--column-margin-left-tablet) !important;
|
|
745
736
|
}
|
|
746
737
|
}
|
|
747
738
|
|
|
748
739
|
@media (max-width: ${getWidthForBreakpointSize(props, state, builderContext2, "small")}px) {
|
|
749
740
|
.${props.builderBlock.id}-breakpoints {
|
|
750
|
-
|
|
741
|
+
flex-direction: var(--flex-dir);
|
|
742
|
+
align-items: stretch;
|
|
751
743
|
}
|
|
752
744
|
|
|
753
745
|
.${props.builderBlock.id}-breakpoints > .builder-column {
|
|
754
|
-
|
|
746
|
+
width: var(--column-width-mobile) !important;
|
|
747
|
+
margin-left: var(--column-margin-left-mobile) !important;
|
|
755
748
|
}
|
|
756
749
|
},
|
|
757
750
|
`;
|
|
@@ -759,13 +752,15 @@ const columnsStyles = function columnsStyles2(props, state, builderContext2) {
|
|
|
759
752
|
const Columns = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
760
753
|
qwik.useStylesScopedQrl(qwik.inlinedQrl(STYLES$1, "Columns_component_useStylesScoped_s7JLZz7MCCQ"));
|
|
761
754
|
const builderContext$1 = qwik.useContext(builderContext);
|
|
762
|
-
const state = {
|
|
755
|
+
const state = qwik.useStore({
|
|
756
|
+
cols: props.columns || [],
|
|
757
|
+
flexDir: props.stackColumnsAt === "never" ? "row" : props.reverseColumnsWhenStacked ? "column-reverse" : "column",
|
|
758
|
+
gutterSize: typeof props.space === "number" ? props.space || 0 : 20,
|
|
759
|
+
stackAt: props.stackColumnsAt || "tablet"
|
|
760
|
+
});
|
|
763
761
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
764
762
|
class: `builder-columns ${props.builderBlock.id}-breakpoints div-Columns`,
|
|
765
|
-
style:
|
|
766
|
-
...{},
|
|
767
|
-
...columnsCssVars(props, state, builderContext$1)
|
|
768
|
-
},
|
|
763
|
+
style: columnsCssVars(props, state, builderContext$1),
|
|
769
764
|
children: [
|
|
770
765
|
/* @__PURE__ */ jsxRuntime.jsx(RenderInlinedStyles, {
|
|
771
766
|
styles: columnsStyles(props, state, builderContext$1)
|
|
@@ -773,12 +768,7 @@ const Columns = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
|
773
768
|
(props.columns || []).map(function(column, index) {
|
|
774
769
|
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
775
770
|
class: "builder-column div-Columns-2",
|
|
776
|
-
style:
|
|
777
|
-
width: getColumnCssWidth(props, state, builderContext$1, index),
|
|
778
|
-
marginLeft: `${index === 0 ? 0 : getGutterSize(props)}px`,
|
|
779
|
-
...{},
|
|
780
|
-
...columnCssVars(props, state, builderContext$1)
|
|
781
|
-
},
|
|
771
|
+
style: columnCssVars(props, state, builderContext$1, index),
|
|
782
772
|
children: /* @__PURE__ */ jsxRuntime.jsx(RenderBlocks, {
|
|
783
773
|
get blocks() {
|
|
784
774
|
return column.blocks;
|
|
@@ -807,11 +797,13 @@ const STYLES$1 = `
|
|
|
807
797
|
.div-Columns {
|
|
808
798
|
display: flex;
|
|
809
799
|
line-height: normal;
|
|
810
|
-
}
|
|
800
|
+
}
|
|
801
|
+
.div-Columns-2 {
|
|
811
802
|
display: flex;
|
|
812
803
|
flex-direction: column;
|
|
813
804
|
align-items: stretch;
|
|
814
|
-
}
|
|
805
|
+
}
|
|
806
|
+
`;
|
|
815
807
|
const FragmentComponent = /* @__PURE__ */ qwik.componentQrl(qwik.inlinedQrl((props) => {
|
|
816
808
|
return /* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
817
809
|
children: /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {}, "oj_0")
|
|
@@ -963,11 +955,13 @@ const STYLES = `
|
|
|
963
955
|
.img-Image {
|
|
964
956
|
opacity: 1;
|
|
965
957
|
transition: opacity 0.2s ease-in-out;
|
|
966
|
-
}
|
|
958
|
+
}
|
|
959
|
+
.div-Image {
|
|
967
960
|
width: 100%;
|
|
968
961
|
pointer-events: none;
|
|
969
962
|
font-size: 0;
|
|
970
|
-
}
|
|
963
|
+
}
|
|
964
|
+
.div-Image-2 {
|
|
971
965
|
display: flex;
|
|
972
966
|
flex-direction: column;
|
|
973
967
|
align-items: stretch;
|
|
@@ -976,7 +970,8 @@ const STYLES = `
|
|
|
976
970
|
left: 0;
|
|
977
971
|
width: 100%;
|
|
978
972
|
height: 100%;
|
|
979
|
-
}
|
|
973
|
+
}
|
|
974
|
+
`;
|
|
980
975
|
const componentInfo$a = {
|
|
981
976
|
name: "Core:Button",
|
|
982
977
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -27,7 +27,8 @@ const Button = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
|
|
|
27
27
|
const STYLES$3 = `
|
|
28
28
|
.button-Button {
|
|
29
29
|
all: unset;
|
|
30
|
-
}
|
|
30
|
+
}
|
|
31
|
+
`;
|
|
31
32
|
const builderContext = createContext("Builder");
|
|
32
33
|
const TARGET = "qwik";
|
|
33
34
|
function isBrowser() {
|
|
@@ -665,91 +666,83 @@ const STYLES$2 = `
|
|
|
665
666
|
display: flex;
|
|
666
667
|
flex-direction: column;
|
|
667
668
|
align-items: stretch;
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
return typeof props.space === "number" ? props.space || 0 : 20;
|
|
671
|
-
};
|
|
672
|
-
const getColumns = function getColumns2(props, state, builderContext2) {
|
|
673
|
-
return props.columns || [];
|
|
674
|
-
};
|
|
669
|
+
}
|
|
670
|
+
`;
|
|
675
671
|
const getWidth = function getWidth2(props, state, builderContext2, index) {
|
|
676
|
-
|
|
677
|
-
return columns[index]?.width || 100 / columns.length;
|
|
672
|
+
return state.cols[index]?.width || 100 / state.cols.length;
|
|
678
673
|
};
|
|
679
674
|
const getColumnCssWidth = function getColumnCssWidth2(props, state, builderContext2, index) {
|
|
680
|
-
const
|
|
681
|
-
const gutterSize = getGutterSize(props);
|
|
682
|
-
const subtractWidth = gutterSize * (columns.length - 1) / columns.length;
|
|
675
|
+
const subtractWidth = state.gutterSize * (state.cols.length - 1) / state.cols.length;
|
|
683
676
|
return `calc(${getWidth(props, state, builderContext2, index)}% - ${subtractWidth}px)`;
|
|
684
677
|
};
|
|
685
|
-
const
|
|
686
|
-
|
|
687
|
-
|
|
678
|
+
const getTabletStyle = function getTabletStyle2(props, state, builderContext2, { stackedStyle, desktopStyle }) {
|
|
679
|
+
return state.stackAt === "tablet" ? stackedStyle : desktopStyle;
|
|
680
|
+
};
|
|
681
|
+
const getMobileStyle = function getMobileStyle2(props, state, builderContext2, { stackedStyle, desktopStyle }) {
|
|
682
|
+
return state.stackAt === "never" ? desktopStyle : stackedStyle;
|
|
688
683
|
};
|
|
689
684
|
const columnsCssVars = function columnsCssVars2(props, state, builderContext2) {
|
|
690
|
-
const flexDir = props.stackColumnsAt === "never" ? "inherit" : props.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
691
685
|
return {
|
|
692
|
-
"--flex-dir": flexDir,
|
|
693
|
-
"--flex-dir-tablet":
|
|
686
|
+
"--flex-dir": state.flexDir,
|
|
687
|
+
"--flex-dir-tablet": getTabletStyle(props, state, builderContext2, {
|
|
688
|
+
stackedStyle: state.flexDir,
|
|
689
|
+
desktopStyle: "row"
|
|
690
|
+
})
|
|
694
691
|
};
|
|
695
692
|
};
|
|
696
|
-
const columnCssVars = function columnCssVars2(props, state, builderContext2) {
|
|
697
|
-
const width =
|
|
698
|
-
const
|
|
693
|
+
const columnCssVars = function columnCssVars2(props, state, builderContext2, index) {
|
|
694
|
+
const width = getColumnCssWidth(props, state, builderContext2, index);
|
|
695
|
+
const gutter = `${index === 0 ? 0 : state.gutterSize}px`;
|
|
696
|
+
const mobileWidth = "100%";
|
|
697
|
+
const mobileMarginLeft = "0";
|
|
699
698
|
return {
|
|
700
|
-
|
|
701
|
-
"
|
|
702
|
-
"--column-width-
|
|
703
|
-
|
|
699
|
+
width,
|
|
700
|
+
"margin-left": gutter,
|
|
701
|
+
"--column-width-mobile": getMobileStyle(props, state, builderContext2, {
|
|
702
|
+
stackedStyle: mobileWidth,
|
|
703
|
+
desktopStyle: width
|
|
704
|
+
}),
|
|
705
|
+
"--column-margin-left-mobile": getMobileStyle(props, state, builderContext2, {
|
|
706
|
+
stackedStyle: mobileMarginLeft,
|
|
707
|
+
desktopStyle: gutter
|
|
708
|
+
}),
|
|
709
|
+
"--column-width-tablet": getTabletStyle(props, state, builderContext2, {
|
|
710
|
+
stackedStyle: mobileWidth,
|
|
711
|
+
desktopStyle: width
|
|
712
|
+
}),
|
|
713
|
+
"--column-margin-left-tablet": getTabletStyle(props, state, builderContext2, {
|
|
714
|
+
stackedStyle: mobileMarginLeft,
|
|
715
|
+
desktopStyle: gutter
|
|
716
|
+
})
|
|
704
717
|
};
|
|
705
718
|
};
|
|
706
719
|
const getWidthForBreakpointSize = function getWidthForBreakpointSize2(props, state, builderContext2, size) {
|
|
707
720
|
const breakpointSizes = getSizesForBreakpoints(builderContext2.content?.meta?.breakpoints || {});
|
|
708
721
|
return breakpointSizes[size].max;
|
|
709
722
|
};
|
|
710
|
-
const columnStyleObjects = function columnStyleObjects2(props, state, builderContext2) {
|
|
711
|
-
return {
|
|
712
|
-
columns: {
|
|
713
|
-
small: {
|
|
714
|
-
flexDirection: "var(--flex-dir)",
|
|
715
|
-
alignItems: "stretch"
|
|
716
|
-
},
|
|
717
|
-
medium: {
|
|
718
|
-
flexDirection: "var(--flex-dir-tablet)",
|
|
719
|
-
alignItems: "stretch"
|
|
720
|
-
}
|
|
721
|
-
},
|
|
722
|
-
column: {
|
|
723
|
-
small: {
|
|
724
|
-
width: "var(--column-width) !important",
|
|
725
|
-
marginLeft: "var(--column-margin-left) !important"
|
|
726
|
-
},
|
|
727
|
-
medium: {
|
|
728
|
-
width: "var(--column-width-tablet) !important",
|
|
729
|
-
marginLeft: "var(--column-margin-left-tablet) !important"
|
|
730
|
-
}
|
|
731
|
-
}
|
|
732
|
-
};
|
|
733
|
-
};
|
|
734
723
|
const columnsStyles = function columnsStyles2(props, state, builderContext2) {
|
|
735
724
|
return `
|
|
736
725
|
@media (max-width: ${getWidthForBreakpointSize(props, state, builderContext2, "medium")}px) {
|
|
737
726
|
.${props.builderBlock.id}-breakpoints {
|
|
738
|
-
|
|
727
|
+
flex-direction: var(--flex-dir-tablet);
|
|
728
|
+
align-items: stretch;
|
|
739
729
|
}
|
|
740
730
|
|
|
741
731
|
.${props.builderBlock.id}-breakpoints > .builder-column {
|
|
742
|
-
|
|
732
|
+
width: var(--column-width-tablet) !important;
|
|
733
|
+
margin-left: var(--column-margin-left-tablet) !important;
|
|
743
734
|
}
|
|
744
735
|
}
|
|
745
736
|
|
|
746
737
|
@media (max-width: ${getWidthForBreakpointSize(props, state, builderContext2, "small")}px) {
|
|
747
738
|
.${props.builderBlock.id}-breakpoints {
|
|
748
|
-
|
|
739
|
+
flex-direction: var(--flex-dir);
|
|
740
|
+
align-items: stretch;
|
|
749
741
|
}
|
|
750
742
|
|
|
751
743
|
.${props.builderBlock.id}-breakpoints > .builder-column {
|
|
752
|
-
|
|
744
|
+
width: var(--column-width-mobile) !important;
|
|
745
|
+
margin-left: var(--column-margin-left-mobile) !important;
|
|
753
746
|
}
|
|
754
747
|
},
|
|
755
748
|
`;
|
|
@@ -757,13 +750,15 @@ const columnsStyles = function columnsStyles2(props, state, builderContext2) {
|
|
|
757
750
|
const Columns = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
|
|
758
751
|
useStylesScopedQrl(inlinedQrl(STYLES$1, "Columns_component_useStylesScoped_s7JLZz7MCCQ"));
|
|
759
752
|
const builderContext$1 = useContext(builderContext);
|
|
760
|
-
const state = {
|
|
753
|
+
const state = useStore({
|
|
754
|
+
cols: props.columns || [],
|
|
755
|
+
flexDir: props.stackColumnsAt === "never" ? "row" : props.reverseColumnsWhenStacked ? "column-reverse" : "column",
|
|
756
|
+
gutterSize: typeof props.space === "number" ? props.space || 0 : 20,
|
|
757
|
+
stackAt: props.stackColumnsAt || "tablet"
|
|
758
|
+
});
|
|
761
759
|
return /* @__PURE__ */ jsxs("div", {
|
|
762
760
|
class: `builder-columns ${props.builderBlock.id}-breakpoints div-Columns`,
|
|
763
|
-
style:
|
|
764
|
-
...{},
|
|
765
|
-
...columnsCssVars(props, state, builderContext$1)
|
|
766
|
-
},
|
|
761
|
+
style: columnsCssVars(props, state, builderContext$1),
|
|
767
762
|
children: [
|
|
768
763
|
/* @__PURE__ */ jsx(RenderInlinedStyles, {
|
|
769
764
|
styles: columnsStyles(props, state, builderContext$1)
|
|
@@ -771,12 +766,7 @@ const Columns = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
|
|
|
771
766
|
(props.columns || []).map(function(column, index) {
|
|
772
767
|
return /* @__PURE__ */ jsx("div", {
|
|
773
768
|
class: "builder-column div-Columns-2",
|
|
774
|
-
style:
|
|
775
|
-
width: getColumnCssWidth(props, state, builderContext$1, index),
|
|
776
|
-
marginLeft: `${index === 0 ? 0 : getGutterSize(props)}px`,
|
|
777
|
-
...{},
|
|
778
|
-
...columnCssVars(props, state, builderContext$1)
|
|
779
|
-
},
|
|
769
|
+
style: columnCssVars(props, state, builderContext$1, index),
|
|
780
770
|
children: /* @__PURE__ */ jsx(RenderBlocks, {
|
|
781
771
|
get blocks() {
|
|
782
772
|
return column.blocks;
|
|
@@ -805,11 +795,13 @@ const STYLES$1 = `
|
|
|
805
795
|
.div-Columns {
|
|
806
796
|
display: flex;
|
|
807
797
|
line-height: normal;
|
|
808
|
-
}
|
|
798
|
+
}
|
|
799
|
+
.div-Columns-2 {
|
|
809
800
|
display: flex;
|
|
810
801
|
flex-direction: column;
|
|
811
802
|
align-items: stretch;
|
|
812
|
-
}
|
|
803
|
+
}
|
|
804
|
+
`;
|
|
813
805
|
const FragmentComponent = /* @__PURE__ */ componentQrl(inlinedQrl((props) => {
|
|
814
806
|
return /* @__PURE__ */ jsx("span", {
|
|
815
807
|
children: /* @__PURE__ */ jsx(Slot, {}, "oj_0")
|
|
@@ -961,11 +953,13 @@ const STYLES = `
|
|
|
961
953
|
.img-Image {
|
|
962
954
|
opacity: 1;
|
|
963
955
|
transition: opacity 0.2s ease-in-out;
|
|
964
|
-
}
|
|
956
|
+
}
|
|
957
|
+
.div-Image {
|
|
965
958
|
width: 100%;
|
|
966
959
|
pointer-events: none;
|
|
967
960
|
font-size: 0;
|
|
968
|
-
}
|
|
961
|
+
}
|
|
962
|
+
.div-Image-2 {
|
|
969
963
|
display: flex;
|
|
970
964
|
flex-direction: column;
|
|
971
965
|
align-items: stretch;
|
|
@@ -974,7 +968,8 @@ const STYLES = `
|
|
|
974
968
|
left: 0;
|
|
975
969
|
width: 100%;
|
|
976
970
|
height: 100%;
|
|
977
|
-
}
|
|
971
|
+
}
|
|
972
|
+
`;
|
|
978
973
|
const componentInfo$a = {
|
|
979
974
|
name: "Core:Button",
|
|
980
975
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
package/package.json
CHANGED
|
@@ -6,4 +6,4 @@ export interface ButtonProps {
|
|
|
6
6
|
}
|
|
7
7
|
export declare const Button: import("@builder.io/qwik").Component<ButtonProps>;
|
|
8
8
|
export default Button;
|
|
9
|
-
export declare const STYLES = "\n.button-Button {\n all: unset;\n}";
|
|
9
|
+
export declare const STYLES = "\n.button-Button {\n all: unset;\n}\n";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BuilderBlock } from "../../types/builder-block";
|
|
2
2
|
import type { SizeName } from "../../constants/device-sizes";
|
|
3
3
|
type Column = {
|
|
4
|
-
blocks:
|
|
4
|
+
blocks: BuilderBlock[];
|
|
5
5
|
width?: number;
|
|
6
6
|
};
|
|
7
7
|
type StackColumnsAt = "tablet" | "mobile" | "never";
|
|
@@ -12,53 +12,44 @@ export interface ColumnProps {
|
|
|
12
12
|
stackColumnsAt?: StackColumnsAt;
|
|
13
13
|
reverseColumnsWhenStacked?: boolean;
|
|
14
14
|
}
|
|
15
|
-
export declare const getGutterSize: (props: any, state: any, builderContext: any) => any;
|
|
16
|
-
export declare const getColumns: (props: any, state: any, builderContext: any) => any;
|
|
17
15
|
export declare const getWidth: (props: any, state: any, builderContext: any, index: number) => any;
|
|
18
16
|
export declare const getColumnCssWidth: (props: any, state: any, builderContext: any, index: number) => string;
|
|
19
|
-
export declare const
|
|
17
|
+
export declare const getTabletStyle: (props: any, state: any, builderContext: any, { stackedStyle, desktopStyle, }: {
|
|
18
|
+
stackedStyle: string;
|
|
19
|
+
desktopStyle: string;
|
|
20
|
+
}) => string;
|
|
21
|
+
export declare const getMobileStyle: (props: any, state: any, builderContext: any, { stackedStyle, desktopStyle, }: {
|
|
22
|
+
stackedStyle: string;
|
|
23
|
+
desktopStyle: string;
|
|
24
|
+
}) => string;
|
|
20
25
|
export declare const columnsCssVars: (props: any, state: any, builderContext: any) => {
|
|
21
|
-
|
|
22
|
-
"--flex-dir
|
|
26
|
+
flexDirection: any;
|
|
27
|
+
"--flex-dir"?: undefined;
|
|
28
|
+
"--flex-dir-tablet"?: undefined;
|
|
29
|
+
} | {
|
|
30
|
+
"--flex-dir": any;
|
|
31
|
+
"--flex-dir-tablet": string;
|
|
32
|
+
flexDirection?: undefined;
|
|
23
33
|
};
|
|
24
|
-
export declare const columnCssVars: (props: any, state: any, builderContext: any) => {
|
|
25
|
-
"--column-width": string;
|
|
26
|
-
"--column-margin-left": string;
|
|
27
|
-
"--column-width-tablet": string | undefined;
|
|
28
|
-
"--column-margin-left-tablet": string | undefined;
|
|
29
|
-
};
|
|
30
|
-
export declare const getWidthForBreakpointSize: (props: any, state: any, builderContext: any, size: SizeName) => number;
|
|
31
|
-
export declare const columnStyleObjects: (props: any, state: any, builderContext: any) => {
|
|
32
|
-
columns: {
|
|
33
|
-
small: {
|
|
34
|
-
flexDirection: string;
|
|
35
|
-
alignItems: string;
|
|
36
|
-
};
|
|
37
|
-
medium: {
|
|
38
|
-
flexDirection: string;
|
|
39
|
-
alignItems: string;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
column: {
|
|
43
|
-
small: {
|
|
44
|
-
width: string;
|
|
45
|
-
marginLeft: string;
|
|
46
|
-
};
|
|
47
|
-
medium: {
|
|
48
|
-
width: string;
|
|
49
|
-
marginLeft: string;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
export declare const columnsStyles: (props: any, state: any, builderContext: any) => string;
|
|
54
|
-
export declare const reactNativeColumnsStyles: (props: any, state: any, builderContext: any) => {
|
|
55
|
-
flexDirection: string;
|
|
56
|
-
alignItems: string;
|
|
57
|
-
};
|
|
58
|
-
export declare const reactNativeColumnStyles: (props: any, state: any, builderContext: any) => {
|
|
34
|
+
export declare const columnCssVars: (props: any, state: any, builderContext: any, index: number) => {
|
|
59
35
|
width: string;
|
|
60
36
|
marginLeft: string;
|
|
37
|
+
"margin-left"?: undefined;
|
|
38
|
+
"--column-width-mobile"?: undefined;
|
|
39
|
+
"--column-margin-left-mobile"?: undefined;
|
|
40
|
+
"--column-width-tablet"?: undefined;
|
|
41
|
+
"--column-margin-left-tablet"?: undefined;
|
|
42
|
+
} | {
|
|
43
|
+
width: string;
|
|
44
|
+
"margin-left": string;
|
|
45
|
+
"--column-width-mobile": string;
|
|
46
|
+
"--column-margin-left-mobile": string;
|
|
47
|
+
"--column-width-tablet": string;
|
|
48
|
+
"--column-margin-left-tablet": string;
|
|
49
|
+
marginLeft?: undefined;
|
|
61
50
|
};
|
|
51
|
+
export declare const getWidthForBreakpointSize: (props: any, state: any, builderContext: any, size: SizeName) => number;
|
|
52
|
+
export declare const columnsStyles: (props: any, state: any, builderContext: any) => string;
|
|
62
53
|
export declare const Columns: import("@builder.io/qwik").Component<ColumnProps>;
|
|
63
54
|
export default Columns;
|
|
64
|
-
export declare const STYLES = "\n.div-Columns {\n display: flex;\n line-height: normal;\n}.div-Columns-2 {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n}";
|
|
55
|
+
export declare const STYLES = "\n.div-Columns {\n display: flex;\n line-height: normal;\n}\n.div-Columns-2 {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n}\n";
|
|
@@ -29,4 +29,4 @@ export declare const aspectRatioCss: (props: any, state: any) => {
|
|
|
29
29
|
} | undefined;
|
|
30
30
|
export declare const Image: import("@builder.io/qwik").Component<ImageProps>;
|
|
31
31
|
export default Image;
|
|
32
|
-
export declare const STYLES = "\n.img-Image {\n opacity: 1;\n transition: opacity 0.2s ease-in-out;\n}.div-Image {\n width: 100%;\n pointer-events: none;\n font-size: 0;\n}.div-Image-2 {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}";
|
|
32
|
+
export declare const STYLES = "\n.img-Image {\n opacity: 1;\n transition: opacity 0.2s ease-in-out;\n}\n.div-Image {\n width: 100%;\n pointer-events: none;\n font-size: 0;\n}\n.div-Image-2 {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n";
|
|
@@ -10,4 +10,4 @@ export declare const onClick: (props: any, state: any, builderContext: any) => v
|
|
|
10
10
|
export declare const onMouseEnter: (props: any, state: any, builderContext: any) => void;
|
|
11
11
|
export declare const RenderBlocks: import("@builder.io/qwik").Component<RenderBlockProps>;
|
|
12
12
|
export default RenderBlocks;
|
|
13
|
-
export declare const STYLES = "\n.div-RenderBlocks {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n}";
|
|
13
|
+
export declare const STYLES = "\n.div-RenderBlocks {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n}\n";
|