@builder.io/sdk-qwik 0.1.13 → 0.1.14

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.
@@ -696,7 +696,7 @@ const columnCssVars = function columnCssVars2(props, state, builderContext2, ind
696
696
  const width = getColumnCssWidth(props, state, builderContext2, index);
697
697
  const gutter = `${index === 0 ? 0 : state.gutterSize}px`;
698
698
  const mobileWidth = "100%";
699
- const mobileMarginLeft = "0";
699
+ const mobileMarginLeft = 0;
700
700
  return {
701
701
  width,
702
702
  "margin-left": gutter,
@@ -694,7 +694,7 @@ const columnCssVars = function columnCssVars2(props, state, builderContext2, ind
694
694
  const width = getColumnCssWidth(props, state, builderContext2, index);
695
695
  const gutter = `${index === 0 ? 0 : state.gutterSize}px`;
696
696
  const mobileWidth = "100%";
697
- const mobileMarginLeft = "0";
697
+ const mobileMarginLeft = 0;
698
698
  return {
699
699
  width,
700
700
  "margin-left": gutter,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-qwik",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "Builder.io Qwik SDK",
5
5
  "type": "module",
6
6
  "main": "./lib/index.qwik.cjs",
@@ -1,9 +1,11 @@
1
1
  import type { BuilderBlock } from "../../types/builder-block";
2
2
  import type { SizeName } from "../../constants/device-sizes";
3
+ import type { Dictionary } from "../../types/typescript";
3
4
  type Column = {
4
5
  blocks: BuilderBlock[];
5
6
  width?: number;
6
7
  };
8
+ type CSSVal = string | number;
7
9
  type StackColumnsAt = "tablet" | "mobile" | "never";
8
10
  export interface ColumnProps {
9
11
  columns?: Column[];
@@ -15,39 +17,15 @@ export interface ColumnProps {
15
17
  export declare const getWidth: (props: any, state: any, builderContext: any, index: number) => any;
16
18
  export declare const getColumnCssWidth: (props: any, state: any, builderContext: any, index: number) => string;
17
19
  export declare const getTabletStyle: (props: any, state: any, builderContext: any, { stackedStyle, desktopStyle, }: {
18
- stackedStyle: string;
19
- desktopStyle: string;
20
- }) => string;
20
+ stackedStyle: CSSVal;
21
+ desktopStyle: CSSVal;
22
+ }) => CSSVal;
21
23
  export declare const getMobileStyle: (props: any, state: any, builderContext: any, { stackedStyle, desktopStyle, }: {
22
- stackedStyle: string;
23
- desktopStyle: string;
24
- }) => string;
25
- export declare const columnsCssVars: (props: any, state: any, builderContext: any) => {
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;
33
- };
34
- export declare const columnCssVars: (props: any, state: any, builderContext: any, index: number) => {
35
- width: string;
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;
50
- };
24
+ stackedStyle: CSSVal;
25
+ desktopStyle: CSSVal;
26
+ }) => CSSVal;
27
+ export declare const columnsCssVars: (props: any, state: any, builderContext: any) => Dictionary<string>;
28
+ export declare const columnCssVars: (props: any, state: any, builderContext: any, index: number) => Dictionary<string>;
51
29
  export declare const getWidthForBreakpointSize: (props: any, state: any, builderContext: any, size: SizeName) => number;
52
30
  export declare const columnsStyles: (props: any, state: any, builderContext: any) => string;
53
31
  export declare const Columns: import("@builder.io/qwik").Component<ColumnProps>;