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.
- package/build/classic.js +3 -3
- package/build/components/atoms/gradient/constants/direction.d.ts +2 -2
- package/build/components/atoms/gradient/constants/index.d.ts +1 -1
- package/build/components/atoms/gradient/gradient.types.d.ts +8 -4
- package/build/components/atoms/text/constants/font.d.ts +2 -1
- package/build/contexts/theme/constants/font.d.ts +11 -10
- package/build/contexts/theme/constants/index.d.ts +1 -1
- package/build/contexts/theme/hooks/use-theme-style-sheet.d.ts +3 -0
- package/build/contexts/theme/theme.types.d.ts +16 -10
- package/build/default.js +1 -1
- package/package.json +1 -1
- package/build/components/gradient/components/index.d.ts +0 -2
- package/build/components/gradient/components/linear.d.ts +0 -2
- package/build/components/gradient/components/stop.d.ts +0 -2
- package/build/components/gradient/constants/direction.d.ts +0 -4
- package/build/components/gradient/constants/index.d.ts +0 -1
- package/build/components/gradient/gradient.d.ts +0 -2
- package/build/components/gradient/gradient.types.d.ts +0 -67
- package/build/components/gradient/index.d.ts +0 -2
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { GradientDirection } from './direction';
|
|
@@ -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
|
-
};
|