@react-hive/honey-layout 8.0.0 → 8.1.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.
@@ -1,7 +1,7 @@
1
1
  import { ElementType } from 'react';
2
2
  import { HoneyStyledProps } from '@react-hive/honey-style';
3
- import { HoneyPrefixedCSSProperties, HoneyEffectResultFn } from '../../types';
4
- export type HoneyBoxProps<Element extends ElementType = 'div'> = HoneyStyledProps<Element, HoneyPrefixedCSSProperties & {
3
+ import { Honey$PrefixedCSSProperties, HoneyEffectResultFn } from '../../types';
4
+ export type HoneyBoxProps<Element extends ElementType = 'div'> = HoneyStyledProps<Element, Honey$PrefixedCSSProperties & {
5
5
  effects?: HoneyEffectResultFn<object>[];
6
6
  }>;
7
7
  export declare const HoneyBox: {
@@ -10,7 +10,7 @@ export interface HoneyGridProps extends HoneyGridStyledProps {
10
10
  *
11
11
  * @default true
12
12
  */
13
- isColumnGrowing?: boolean;
13
+ columnsGrowing?: boolean;
14
14
  /**
15
15
  * Specifies the breakpoint at which the max-width should be applied to the columns or disables it if set to `false`.
16
16
  * Can be a breakpoint name.
@@ -19,4 +19,4 @@ export interface HoneyGridProps extends HoneyGridStyledProps {
19
19
  */
20
20
  applyColumnMaxWidth?: HoneyGridColumnStyledProps['applyMaxWidth'];
21
21
  }
22
- export declare const HoneyGrid: ({ ref, children, columns, spacing, isColumnGrowing, applyColumnMaxWidth, ...props }: HoneyGridProps) => import("react/jsx-runtime").JSX.Element;
22
+ export declare const HoneyGrid: ({ ref, children, columns, spacing, columnsGrowing, applyColumnMaxWidth, ...props }: HoneyGridProps) => import("react/jsx-runtime").JSX.Element;
@@ -2,7 +2,7 @@ import { HoneyBreakpointName } from '@react-hive/honey-style';
2
2
  export interface HoneyGridContextProps {
3
3
  columns: number;
4
4
  spacing: number | undefined;
5
- isColumnGrowing: boolean;
5
+ isColumnsGrowing: boolean;
6
6
  applyColumnMaxWidth: HoneyBreakpointName | false;
7
7
  }
8
8
  export declare const HoneyGridContext: import('react').Context<HoneyGridContextProps | undefined>;
@@ -1,23 +1,8 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  import { FastOmit, HoneyStyledFunction, HoneyBreakpointName, HoneyBreakpoints, HoneyMediaQueryRule } from '@react-hive/honey-style';
3
- import { HoneyScreenState, HoneyPrefixedCSSProperties } from '../types';
4
- export declare const noop: () => void;
5
- export declare function assert(condition: any, message: string): asserts condition;
3
+ import { HoneyScreenState, Honey$PrefixedCSSProperties } from '../types';
6
4
  export declare const generateUniqueId: () => string;
7
- /**
8
- * Invokes the given input if it is a function, passing the provided arguments.
9
- * Otherwise, returns the input as-is.
10
- *
11
- * @template Args - Tuple of argument types to pass to the function.
12
- * @template Result - Return type of the function or the value.
13
- *
14
- * @param input - A function to invoke with `args`, or a direct value of type `Result`.
15
- * @param args - Arguments to pass if `input` is a function.
16
- *
17
- * @returns The result of invoking the function, or the original value if it's not a function.
18
- */
19
- export declare const invokeIfFunction: <Args extends any[], Result>(input: ((...args: Args) => Result) | Result, ...args: Args) => Result;
20
- export type HoneyStyledBoxProps = HTMLAttributes<HTMLElement> & HoneyPrefixedCSSProperties;
5
+ export type HoneyStyledBoxProps = HTMLAttributes<HTMLElement> & Honey$PrefixedCSSProperties;
21
6
  /**
22
7
  * Generates CSS styles based on the provided breakpoint and properties.
23
8
  * Filters the properties to include only those that match the specified breakpoint.