@react-hive/honey-layout 2.8.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,10 +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';
26
27
  /**
27
28
  * Defining the allowed timing functions for the transition
28
29
  */
29
- export type HoneyCSSTimingFunction = 'ease' | 'linear' | 'ease-in' | 'ease-out' | 'ease-in-out';
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})`;
30
31
  /**
31
32
  * Type representing CSS properties related to spacing and positioning.
32
33
  */
@@ -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<Props extends object> = StyleFunction<Props>;
260
- export type HoneyModifier<Config = unknown, Props extends object = object> = (config: Config) => HoneyModifierResultFn<Props>;
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.8.0",
3
+ "version": "3.0.0",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "react",
@@ -1,42 +0,0 @@
1
- import { HoneyCSSTimingFunction, HoneyModifier } from './types';
2
- /**
3
- * Configuration object for the transition effect applied to visibility and opacity.
4
- */
5
- type HoneyVisibilityTransitionModifierConfig = {
6
- /**
7
- * Duration of the transition in milliseconds.
8
- * Determines how long the transition will take to complete.
9
- */
10
- durationMs: number;
11
- /**
12
- * Timing function for the transition. Defines the rate of change during the transition.
13
- * It can either be a single timing function or an array of multiple functions applied sequentially.
14
- *
15
- * @default ease-in-out
16
- */
17
- timingFunction?: HoneyCSSTimingFunction | HoneyCSSTimingFunction[];
18
- /**
19
- * Additional CSS properties to include in the transition.
20
- */
21
- extraProperties?: string[];
22
- };
23
- /**
24
- * Props for applying the transition effect.
25
- */
26
- export type HoneyVisibilityTransitionModifierContextProps = {
27
- /**
28
- * Determines whether the element is active.
29
- * If true, the transition will be applied and the element becomes visible.
30
- *
31
- * @default false
32
- */
33
- isActive?: boolean;
34
- };
35
- /**
36
- * A styled-components modifier that applies a smooth transition effect to the visibility and opacity of an element.
37
- *
38
- * This modifier smoothly fades in or out an element by transitioning its opacity and visibility properties.
39
- * The transition is controlled by the configuration provided, including the duration, timing function, and any extra properties to animate.
40
- */
41
- export declare const honeyVisibilityTransitionModifier: HoneyModifier<HoneyVisibilityTransitionModifierConfig, HoneyVisibilityTransitionModifierContextProps>;
42
- export {};