creactive 0.0.138 → 0.0.139

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,2 +0,0 @@
1
- export { GradientLinear } from './linear';
2
- export { GradientStop } from './stop';
@@ -1,2 +0,0 @@
1
- import type { GradientLinearComponent } from '../gradient.types';
2
- export declare const GradientLinear: GradientLinearComponent;
@@ -1,2 +0,0 @@
1
- import type { GradientStopComponent } from '../gradient.types';
2
- export declare const GradientStop: GradientStopComponent;
@@ -1,4 +0,0 @@
1
- export declare enum GradientDirection {
2
- RIGHT = 0,
3
- BOTTOM = 1
4
- }
@@ -1 +0,0 @@
1
- export { GradientDirection } from './direction';
@@ -1,2 +0,0 @@
1
- import type { GradientObject } from './gradient.types';
2
- export declare const Gradient: GradientObject;
@@ -1,67 +0,0 @@
1
- import type { Fraction } from '../../helpers';
2
- import type { Color } from '../../types';
3
- import type { FunctionComponent, ReactElement } from 'react';
4
- import type { GradientDirection } from './constants';
5
- /**
6
- * Gradient stop component properties.
7
- * Describes possible gradient stop component customization.
8
- * @see Gradient.Stop
9
- */
10
- export interface GradientStopProps {
11
- /**
12
- * Should be used to control gradient stop offset.
13
- * @see Fraction
14
- * @default undefined
15
- */
16
- offset: Fraction;
17
- /**
18
- * Allows to control gradient stop color.
19
- * @see Color
20
- * @default undefined
21
- */
22
- color: Color;
23
- }
24
- /**
25
- * Gradient stop component.
26
- * Should be used as a child of gradient component.
27
- * @see Gradient.Stop
28
- */
29
- export type GradientStopComponent = FunctionComponent<GradientStopProps>;
30
- /**
31
- * Linear gradient component properties.
32
- * Describes possible gradient component customization.
33
- * @see Gradient.Linear
34
- */
35
- export interface GradientLinearProps {
36
- /**
37
- * One of supported gradient directions.
38
- * @see Gradient.Direction
39
- * @default Gradient.Direction.BOTTOM
40
- */
41
- direction?: GradientDirection;
42
- /**
43
- * Gradient children.
44
- * @see Gradient.Stop
45
- * @default undefined
46
- */
47
- children: ReactElement[];
48
- }
49
- /**
50
- * Linear gradient component.
51
- * Allows to render linear gradient.
52
- * Provides access to direction constants.
53
- * @see Gradient.Linear
54
- * @see Gradient.Direction
55
- */
56
- export type GradientLinearComponent = FunctionComponent<GradientLinearProps> & {
57
- Direction: Record<keyof typeof GradientDirection, GradientDirection>;
58
- };
59
- /**
60
- * Gradient object providing access to components and constants.
61
- * @see Gradient.Linear
62
- * @see Gradient.Stop
63
- */
64
- export type GradientObject = {
65
- Linear: GradientLinearComponent;
66
- Stop: GradientStopComponent;
67
- };
@@ -1,2 +0,0 @@
1
- export { Gradient } from './gradient';
2
- export type { GradientLinearComponent, GradientLinearProps, GradientObject, GradientStopComponent, GradientStopProps, } from './gradient.types';