@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.
- package/dist/components/HoneyBox.d.ts +3 -3
- package/dist/components/HoneyFlexBox.d.ts +2 -2
- package/dist/components/HoneyGrid/HoneyGrid.d.ts +1 -1
- package/dist/components/HoneyGrid/HoneyGrid.styled.d.ts +2 -2
- package/dist/components/HoneyGridColumn/HoneyGridColumn.styled.d.ts +2 -2
- package/dist/components/HoneyLoopingList/HoneyLoopingList.d.ts +2 -2
- package/dist/effects.d.ts +50 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +194 -181
- package/dist/types/css.types.d.ts +5 -0
- package/dist/types/types.d.ts +3 -3
- package/package.json +1 -1
|
@@ -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
|
*/
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ElementType, MutableRefObject } from 'react';
|
|
2
|
-
import { ExecutionContext,
|
|
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
|
|
260
|
-
export type
|
|
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
|
/**
|