@loomhq/lens 11.28.1 → 11.29.0

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/cjs/index.js CHANGED
@@ -5957,17 +5957,15 @@ var SplitWrapper = import_styled38.default.div`
5957
5957
  ${(props) => props.alignContent && getResponsiveOneOf("align-content", props.alignContent)};
5958
5958
  ${(props) => getResponsiveOneOf("flex-wrap", props.wrap)};
5959
5959
  ${(props) => props.direction && getResponsiveOneOf("flex-direction", props.direction)};
5960
- ${(props) => props.gap && getSize("--gap", props.gap)};
5961
- margin-right: calc(-1 * var(--gap));
5962
- margin-bottom: calc(-1 * var(--gap));
5960
+ ${(props) => props.gap && getSize("gap", props.gap)};
5961
+ ${(props) => props.rowGap && getSize("row-gap", props.rowGap)};
5962
+ ${(props) => props.columnGap && getSize("column-gap", props.columnGap)};
5963
5963
  ${(props) => getSizeStyles(props)};
5964
5964
  `;
5965
5965
  var SplitSectionWrapper = import_styled38.default.div`
5966
5966
  ${(props) => getResponsiveNumber("flex-grow", props.grow)};
5967
5967
  ${(props) => getResponsiveNumber("flex-shrink", props.shrink)};
5968
5968
  ${(props) => props.basis && getSize("flex-basis", props.basis)};
5969
- margin-right: var(--gap);
5970
- margin-bottom: var(--gap);
5971
5969
  ${(props) => getSizeStyles(props)};
5972
5970
  `;
5973
5971
  var SplitSection = (_a) => {
@@ -6021,6 +6019,8 @@ var Split = (_a) => {
6021
6019
  var _b = _a, {
6022
6020
  children,
6023
6021
  gap = "initial",
6022
+ rowGap,
6023
+ columnGap,
6024
6024
  alignItems = "center",
6025
6025
  justifyContent,
6026
6026
  alignContent,
@@ -6036,6 +6036,8 @@ var Split = (_a) => {
6036
6036
  } = _b, props = __objRest(_b, [
6037
6037
  "children",
6038
6038
  "gap",
6039
+ "rowGap",
6040
+ "columnGap",
6039
6041
  "alignItems",
6040
6042
  "justifyContent",
6041
6043
  "alignContent",
@@ -6061,6 +6063,8 @@ var Split = (_a) => {
6061
6063
  SplitWrapper,
6062
6064
  __spreadValues({
6063
6065
  gap,
6066
+ rowGap,
6067
+ columnGap,
6064
6068
  alignItems,
6065
6069
  justifyContent,
6066
6070
  alignContent,
package/dist/esm/index.js CHANGED
@@ -5745,17 +5745,15 @@ var SplitWrapper = styled38.div`
5745
5745
  ${(props) => props.alignContent && getResponsiveOneOf("align-content", props.alignContent)};
5746
5746
  ${(props) => getResponsiveOneOf("flex-wrap", props.wrap)};
5747
5747
  ${(props) => props.direction && getResponsiveOneOf("flex-direction", props.direction)};
5748
- ${(props) => props.gap && getSize("--gap", props.gap)};
5749
- margin-right: calc(-1 * var(--gap));
5750
- margin-bottom: calc(-1 * var(--gap));
5748
+ ${(props) => props.gap && getSize("gap", props.gap)};
5749
+ ${(props) => props.rowGap && getSize("row-gap", props.rowGap)};
5750
+ ${(props) => props.columnGap && getSize("column-gap", props.columnGap)};
5751
5751
  ${(props) => getSizeStyles(props)};
5752
5752
  `;
5753
5753
  var SplitSectionWrapper = styled38.div`
5754
5754
  ${(props) => getResponsiveNumber("flex-grow", props.grow)};
5755
5755
  ${(props) => getResponsiveNumber("flex-shrink", props.shrink)};
5756
5756
  ${(props) => props.basis && getSize("flex-basis", props.basis)};
5757
- margin-right: var(--gap);
5758
- margin-bottom: var(--gap);
5759
5757
  ${(props) => getSizeStyles(props)};
5760
5758
  `;
5761
5759
  var SplitSection = (_a) => {
@@ -5809,6 +5807,8 @@ var Split = (_a) => {
5809
5807
  var _b = _a, {
5810
5808
  children,
5811
5809
  gap = "initial",
5810
+ rowGap,
5811
+ columnGap,
5812
5812
  alignItems = "center",
5813
5813
  justifyContent,
5814
5814
  alignContent,
@@ -5824,6 +5824,8 @@ var Split = (_a) => {
5824
5824
  } = _b, props = __objRest(_b, [
5825
5825
  "children",
5826
5826
  "gap",
5827
+ "rowGap",
5828
+ "columnGap",
5827
5829
  "alignItems",
5828
5830
  "justifyContent",
5829
5831
  "alignContent",
@@ -5849,6 +5851,8 @@ var Split = (_a) => {
5849
5851
  SplitWrapper,
5850
5852
  __spreadValues({
5851
5853
  gap,
5854
+ rowGap,
5855
+ columnGap,
5852
5856
  alignItems,
5853
5857
  justifyContent,
5854
5858
  alignContent,
@@ -3,7 +3,7 @@ import { ResponsiveType } from '../../types';
3
3
  declare const SplitWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, SplitProps, object>;
4
4
  declare const SplitSectionWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, SplitSectionProps, object>;
5
5
  export declare const SplitSection: ({ children, grow, shrink, basis, width, height, minWidth, minHeight, maxWidth, maxHeight, className, style, ...props }: SplitSectionProps & React.ComponentProps<typeof SplitSectionWrapper>) => React.JSX.Element;
6
- declare const Split: ({ children, gap, alignItems, justifyContent, alignContent, wrap, width, height, minWidth, minHeight, maxWidth, maxHeight, className, style, ...props }: SplitProps & React.ComponentProps<typeof SplitWrapper>) => React.JSX.Element;
6
+ declare const Split: ({ children, gap, rowGap, columnGap, alignItems, justifyContent, alignContent, wrap, width, height, minWidth, minHeight, maxWidth, maxHeight, className, style, ...props }: SplitProps & React.ComponentProps<typeof SplitWrapper>) => React.JSX.Element;
7
7
  interface SharedProps {
8
8
  width?: ResponsiveType<number | string>;
9
9
  height?: ResponsiveType<number | string>;
@@ -19,6 +19,8 @@ interface SplitProps extends SharedProps {
19
19
  alignContent?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly' | 'stretch' | 'start' | 'end' | 'baseline';
20
20
  wrap?: ResponsiveType<'nowrap' | 'wrap' | 'wrap-reverse'>;
21
21
  gap?: ResponsiveType<number | string>;
22
+ rowGap?: ResponsiveType<number | string>;
23
+ columnGap?: ResponsiveType<number | string>;
22
24
  direction?: ResponsiveType<'column' | 'column-reverse' | 'row' | 'row-reverse'>;
23
25
  className?: never;
24
26
  style?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loomhq/lens",
3
- "version": "11.28.1",
3
+ "version": "11.29.0",
4
4
  "packageManager": "pnpm@9.8.0",
5
5
  "scripts": {
6
6
  "preinstall": "npx only-allow pnpm",