@react-hive/honey-layout 2.7.0 → 3.0.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.
@@ -23,6 +23,11 @@ export type HoneyCSSArrayValue<T> = [T, T] | [T, T, T] | [T, T, T, T];
23
23
  * @template T - Type of the value.
24
24
  */
25
25
  export type HoneyCSSMultiValue<T> = T | HoneyCSSArrayValue<T>;
26
+ type HoneyCSSStepFunctionPosition = 'jump-start' | 'jump-end' | 'jump-none' | 'jump-both' | 'start' | 'end';
27
+ /**
28
+ * Defining the allowed timing functions for the transition
29
+ */
30
+ export type HoneyCSSTimingFunction = 'ease' | 'linear' | `linear(${string})` | `cubic-bezier(${number}, ${number}, ${number}, ${number})` | 'ease-in' | 'ease-out' | 'ease-in-out' | 'step-start' | 'step-end' | `steps(${number})` | `steps(${number}, ${HoneyCSSStepFunctionPosition})`;
26
31
  /**
27
32
  * Type representing CSS properties related to spacing and positioning.
28
33
  */
@@ -1,5 +1,5 @@
1
1
  import { ElementType, MutableRefObject } from 'react';
2
- import { ExecutionContext, Interpolation } from 'styled-components';
2
+ import { ExecutionContext, StyleFunction } from 'styled-components';
3
3
  import { DataType } from 'csstype';
4
4
  import { HoneyCSSColorProperty, HoneyCSSDimensionNumericValue, HoneyCSSDimensionValue } from './css.types';
5
5
  import { HoneyKeyboardEventCode } from './dom.types';
@@ -256,8 +256,8 @@ export type HoneyDimensionName = keyof HoneyDimensions;
256
256
  export type ComponentWithAs<T, P = object> = {
257
257
  as?: ElementType<P>;
258
258
  } & T;
259
- export type HoneyModifierResultFn = () => Interpolation<object>;
260
- export type HoneyModifier<Config = unknown> = (config?: Config) => HoneyModifierResultFn;
259
+ export type HoneyEffectResultFn<Props extends object> = StyleFunction<Props>;
260
+ export type HoneyEffect<Config = unknown, Props extends object = object> = (config: Config) => HoneyEffectResultFn<Props>;
261
261
  export type HoneyOverlayId = string;
262
262
  export type HoneyOverlayEventListenerType = 'keyup';
263
263
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-hive/honey-layout",
3
- "version": "2.7.0",
3
+ "version": "3.0.0",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "react",