@bouko/react 2.6.6 → 2.6.7
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/colors/core.d.ts +10 -10
- package/dist/colors/core.js +25 -25
- package/dist/colors/index.d.ts +26 -26
- package/dist/colors/index.js +43 -43
- package/dist/colors/types.d.ts +11 -11
- package/dist/colors/types.js +7 -7
- package/dist/components/animate/configs.d.ts +136 -136
- package/dist/components/animate/configs.js +62 -62
- package/dist/components/animate/index.d.ts +54 -54
- package/dist/components/animate/index.js +33 -33
- package/dist/components/attachment.d.ts +2 -2
- package/dist/components/attachment.js +18 -18
- package/dist/components/audio/timestamp.d.ts +12 -0
- package/dist/components/audio/timestamp.js +9 -0
- package/dist/components/button/icon.d.ts +10 -10
- package/dist/components/button/icon.js +19 -19
- package/dist/components/button/normal.d.ts +11 -11
- package/dist/components/button/normal.js +39 -39
- package/dist/components/carousel/index.d.ts +11 -11
- package/dist/components/carousel/index.js +19 -19
- package/dist/components/checkbox.d.ts +8 -8
- package/dist/components/checkbox.js +13 -13
- package/dist/components/dropdown/normal.d.ts +10 -10
- package/dist/components/dropdown/normal.js +19 -19
- package/dist/components/fade-carousel.d.ts +4 -4
- package/dist/components/fade-carousel.js +14 -14
- package/dist/components/field.d.ts +10 -10
- package/dist/components/field.js +10 -10
- package/dist/components/form/functions.d.ts +1 -1
- package/dist/components/form/functions.js +28 -28
- package/dist/components/form/types.d.ts +38 -38
- package/dist/components/form/types.js +1 -1
- package/dist/components/heading/normal.d.ts +29 -29
- package/dist/components/heading/normal.js +22 -22
- package/dist/components/heading/page.d.ts +25 -25
- package/dist/components/heading/page.js +23 -23
- package/dist/components/index.d.ts +14 -14
- package/dist/components/index.js +14 -14
- package/dist/components/input.d.ts +37 -37
- package/dist/components/input.js +40 -40
- package/dist/components/layout/absolute.d.ts +9 -9
- package/dist/components/layout/absolute.js +9 -9
- package/dist/components/layout/fade.d.ts +7 -7
- package/dist/components/layout/fade.js +15 -15
- package/dist/components/layout/flex.d.ts +16 -16
- package/dist/components/layout/flex.js +42 -42
- package/dist/components/layout/separator.d.ts +3 -3
- package/dist/components/layout/separator.js +5 -5
- package/dist/components/list/index.d.ts +2 -2
- package/dist/components/list/index.js +2 -2
- package/dist/components/list/item.d.ts +9 -9
- package/dist/components/list/item.js +7 -7
- package/dist/components/list/variants/bullet.d.ts +9 -9
- package/dist/components/list/variants/bullet.js +16 -16
- package/dist/components/list/variants/number.d.ts +10 -10
- package/dist/components/list/variants/number.js +18 -18
- package/dist/components/multiple-choice.d.ts +2 -2
- package/dist/components/multiple-choice.js +12 -12
- package/dist/components/search-bar.d.ts +13 -14
- package/dist/components/search-bar.js +22 -22
- package/dist/components/select.d.ts +6 -6
- package/dist/components/select.js +24 -24
- package/dist/components/text/badge.d.ts +17 -16
- package/dist/components/text/badge.js +35 -28
- package/dist/components/textarea.d.ts +7 -7
- package/dist/components/textarea.js +11 -11
- package/dist/components/upload/file.d.ts +8 -8
- package/dist/components/upload/file.js +23 -23
- package/dist/components/waveform/index.d.ts +8 -8
- package/dist/components/waveform/index.js +11 -11
- package/dist/components/waveform/patterns.d.ts +1 -1
- package/dist/components/waveform/patterns.js +27 -27
- package/dist/core/classes.js +1 -1
- package/dist/core/format.d.ts +3 -3
- package/dist/core/format.js +34 -34
- package/dist/core/functions.d.ts +10 -10
- package/dist/core/functions.js +76 -76
- package/dist/core/types.d.ts +15 -15
- package/dist/core/types.js +2 -2
- package/dist/core/variants.d.ts +5 -5
- package/dist/core/variants.js +6 -6
- package/dist/format/index.d.ts +2 -2
- package/dist/format/index.js +33 -33
- package/dist/hooks/audio/sound.d.ts +1 -1
- package/dist/hooks/audio/sound.js +6 -6
- package/dist/hooks/clock/interval.d.ts +8 -8
- package/dist/hooks/clock/interval.js +25 -25
- package/dist/hooks/element/container.d.ts +4 -5
- package/dist/hooks/element/container.js +7 -7
- package/dist/hooks/element/index.d.ts +4 -5
- package/dist/hooks/element/index.js +9 -9
- package/dist/hooks/element/resize.d.ts +1 -1
- package/dist/hooks/element/resize.js +12 -12
- package/dist/hooks/index.d.ts +5 -5
- package/dist/hooks/index.js +5 -5
- package/dist/index.d.ts +14 -14
- package/dist/index.js +14 -14
- package/package.json +5 -2
package/dist/colors/core.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { RGBA } from "./types";
|
|
2
|
-
/**
|
|
3
|
-
* Extracts R, G, B, and A values from hex.
|
|
4
|
-
*
|
|
5
|
-
* @param {string} input - Hex value to parse.
|
|
6
|
-
*
|
|
7
|
-
* @returns {RGBA} Individual color values.
|
|
8
|
-
* @throws {Error} Invalid hex code
|
|
9
|
-
**/
|
|
10
|
-
export declare function parseHex(input: string): RGBA;
|
|
1
|
+
import type { RGBA } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* Extracts R, G, B, and A values from hex.
|
|
4
|
+
*
|
|
5
|
+
* @param {string} input - Hex value to parse.
|
|
6
|
+
*
|
|
7
|
+
* @returns {RGBA} Individual color values.
|
|
8
|
+
* @throws {Error} Invalid hex code
|
|
9
|
+
**/
|
|
10
|
+
export declare function parseHex(input: string): RGBA;
|
package/dist/colors/core.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Extracts R, G, B, and A values from hex.
|
|
3
|
-
*
|
|
4
|
-
* @param {string} input - Hex value to parse.
|
|
5
|
-
*
|
|
6
|
-
* @returns {RGBA} Individual color values.
|
|
7
|
-
* @throws {Error} Invalid hex code
|
|
8
|
-
**/
|
|
9
|
-
export function parseHex(input) {
|
|
10
|
-
if (!/^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(input))
|
|
11
|
-
throw new Error("Invalid hex");
|
|
12
|
-
let hex = input.replace("#", "");
|
|
13
|
-
let chars = hex.split("");
|
|
14
|
-
if (chars.length === 3 || chars.length == 4)
|
|
15
|
-
hex = chars.map(c => c + c).join("");
|
|
16
|
-
if (hex.length === 6)
|
|
17
|
-
hex += "ff";
|
|
18
|
-
return {
|
|
19
|
-
r: parseInt(hex.substring(0, 2), 16),
|
|
20
|
-
g: parseInt(hex.substring(2, 4), 16),
|
|
21
|
-
b: parseInt(hex.substring(4, 6), 16),
|
|
22
|
-
a: parseInt(hex.substring(6, 8), 16) / 255
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
// clean
|
|
1
|
+
/**
|
|
2
|
+
* Extracts R, G, B, and A values from hex.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} input - Hex value to parse.
|
|
5
|
+
*
|
|
6
|
+
* @returns {RGBA} Individual color values.
|
|
7
|
+
* @throws {Error} Invalid hex code
|
|
8
|
+
**/
|
|
9
|
+
export function parseHex(input) {
|
|
10
|
+
if (!/^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(input))
|
|
11
|
+
throw new Error("Invalid hex");
|
|
12
|
+
let hex = input.replace("#", "");
|
|
13
|
+
let chars = hex.split("");
|
|
14
|
+
if (chars.length === 3 || chars.length == 4)
|
|
15
|
+
hex = chars.map(c => c + c).join("");
|
|
16
|
+
if (hex.length === 6)
|
|
17
|
+
hex += "ff";
|
|
18
|
+
return {
|
|
19
|
+
r: parseInt(hex.substring(0, 2), 16),
|
|
20
|
+
g: parseInt(hex.substring(2, 4), 16),
|
|
21
|
+
b: parseInt(hex.substring(4, 6), 16),
|
|
22
|
+
a: parseInt(hex.substring(6, 8), 16) / 255
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
// clean
|
package/dist/colors/index.d.ts
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Applies opacity to a color. Supports CSS variables and hex.
|
|
3
|
-
* Defaults to 50% if no opacity is specified. If an alpha value
|
|
4
|
-
* is already present in the provided hex it will be overwritten.
|
|
5
|
-
*
|
|
6
|
-
* To use a CSS variable it must exist and be passed in the
|
|
7
|
-
* form `--variable-name`. Any other format may cause unexpected
|
|
8
|
-
* results. CSS variables use 'color-mix' which is not supported in
|
|
9
|
-
* some old browsers such as Safari 15.3 and Internet Explorer.
|
|
10
|
-
*
|
|
11
|
-
* @param {string} color - Color value to apply opacity.
|
|
12
|
-
* @param {number} opacity - Opacity level from 0-100. (optional, default = 50)
|
|
13
|
-
*
|
|
14
|
-
* @returns {string} The RGBA CSS style string
|
|
15
|
-
*
|
|
16
|
-
* @throws {Error} Opacity outside 0-1 bounds.
|
|
17
|
-
* @throws {Error} Invalid hex string provided.
|
|
18
|
-
**/
|
|
19
|
-
export declare function opacitize(color: string, opacity?: number): string;
|
|
20
|
-
/**
|
|
21
|
-
* Gets hex value from CSS variable name
|
|
22
|
-
*
|
|
23
|
-
* @param {string} name - Color variable name.
|
|
24
|
-
* @returns {string} The hex code.
|
|
25
|
-
**/
|
|
26
|
-
export declare const resolveColor: (name: string) => string;
|
|
1
|
+
/**
|
|
2
|
+
* Applies opacity to a color. Supports CSS variables and hex.
|
|
3
|
+
* Defaults to 50% if no opacity is specified. If an alpha value
|
|
4
|
+
* is already present in the provided hex it will be overwritten.
|
|
5
|
+
*
|
|
6
|
+
* To use a CSS variable it must exist and be passed in the
|
|
7
|
+
* form `--variable-name`. Any other format may cause unexpected
|
|
8
|
+
* results. CSS variables use 'color-mix' which is not supported in
|
|
9
|
+
* some old browsers such as Safari 15.3 and Internet Explorer.
|
|
10
|
+
*
|
|
11
|
+
* @param {string} color - Color value to apply opacity.
|
|
12
|
+
* @param {number} opacity - Opacity level from 0-100. (optional, default = 50)
|
|
13
|
+
*
|
|
14
|
+
* @returns {string} The RGBA CSS style string
|
|
15
|
+
*
|
|
16
|
+
* @throws {Error} Opacity outside 0-1 bounds.
|
|
17
|
+
* @throws {Error} Invalid hex string provided.
|
|
18
|
+
**/
|
|
19
|
+
export declare function opacitize(color: string, opacity?: number): string;
|
|
20
|
+
/**
|
|
21
|
+
* Gets hex value from CSS variable name
|
|
22
|
+
*
|
|
23
|
+
* @param {string} name - Color variable name.
|
|
24
|
+
* @returns {string} The hex code.
|
|
25
|
+
**/
|
|
26
|
+
export declare const resolveColor: (name: string) => string;
|
package/dist/colors/index.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { parseHex } from "./core";
|
|
2
|
-
/**
|
|
3
|
-
* Applies opacity to a color. Supports CSS variables and hex.
|
|
4
|
-
* Defaults to 50% if no opacity is specified. If an alpha value
|
|
5
|
-
* is already present in the provided hex it will be overwritten.
|
|
6
|
-
*
|
|
7
|
-
* To use a CSS variable it must exist and be passed in the
|
|
8
|
-
* form `--variable-name`. Any other format may cause unexpected
|
|
9
|
-
* results. CSS variables use 'color-mix' which is not supported in
|
|
10
|
-
* some old browsers such as Safari 15.3 and Internet Explorer.
|
|
11
|
-
*
|
|
12
|
-
* @param {string} color - Color value to apply opacity.
|
|
13
|
-
* @param {number} opacity - Opacity level from 0-100. (optional, default = 50)
|
|
14
|
-
*
|
|
15
|
-
* @returns {string} The RGBA CSS style string
|
|
16
|
-
*
|
|
17
|
-
* @throws {Error} Opacity outside 0-1 bounds.
|
|
18
|
-
* @throws {Error} Invalid hex string provided.
|
|
19
|
-
**/
|
|
20
|
-
export function opacitize(color, opacity = 50) {
|
|
21
|
-
if (opacity < 0)
|
|
22
|
-
throw new Error(`[opacitize] Opacity below 0%: '${opacity}'`);
|
|
23
|
-
if (opacity > 100)
|
|
24
|
-
throw new Error(`[opacitize] Opacity above 100%: '${opacity}'`);
|
|
25
|
-
if (color.startsWith("#")) {
|
|
26
|
-
const { r, g, b } = parseHex(color);
|
|
27
|
-
return `rgba(${r}, ${g}, ${b}, ${opacity / 100})`;
|
|
28
|
-
}
|
|
29
|
-
return `color-mix(in srgb, var(${color}) ${opacity}%, transparent)`;
|
|
30
|
-
}
|
|
31
|
-
;
|
|
32
|
-
/**
|
|
33
|
-
* Gets hex value from CSS variable name
|
|
34
|
-
*
|
|
35
|
-
* @param {string} name - Color variable name.
|
|
36
|
-
* @returns {string} The hex code.
|
|
37
|
-
**/
|
|
38
|
-
export const resolveColor = (name) => {
|
|
39
|
-
const css = getComputedStyle(document.documentElement);
|
|
40
|
-
const color = css.getPropertyValue(`--color-${name}`);
|
|
41
|
-
return color.trim();
|
|
42
|
-
};
|
|
43
|
-
// clean
|
|
1
|
+
import { parseHex } from "./core";
|
|
2
|
+
/**
|
|
3
|
+
* Applies opacity to a color. Supports CSS variables and hex.
|
|
4
|
+
* Defaults to 50% if no opacity is specified. If an alpha value
|
|
5
|
+
* is already present in the provided hex it will be overwritten.
|
|
6
|
+
*
|
|
7
|
+
* To use a CSS variable it must exist and be passed in the
|
|
8
|
+
* form `--variable-name`. Any other format may cause unexpected
|
|
9
|
+
* results. CSS variables use 'color-mix' which is not supported in
|
|
10
|
+
* some old browsers such as Safari 15.3 and Internet Explorer.
|
|
11
|
+
*
|
|
12
|
+
* @param {string} color - Color value to apply opacity.
|
|
13
|
+
* @param {number} opacity - Opacity level from 0-100. (optional, default = 50)
|
|
14
|
+
*
|
|
15
|
+
* @returns {string} The RGBA CSS style string
|
|
16
|
+
*
|
|
17
|
+
* @throws {Error} Opacity outside 0-1 bounds.
|
|
18
|
+
* @throws {Error} Invalid hex string provided.
|
|
19
|
+
**/
|
|
20
|
+
export function opacitize(color, opacity = 50) {
|
|
21
|
+
if (opacity < 0)
|
|
22
|
+
throw new Error(`[opacitize] Opacity below 0%: '${opacity}'`);
|
|
23
|
+
if (opacity > 100)
|
|
24
|
+
throw new Error(`[opacitize] Opacity above 100%: '${opacity}'`);
|
|
25
|
+
if (color.startsWith("#")) {
|
|
26
|
+
const { r, g, b } = parseHex(color);
|
|
27
|
+
return `rgba(${r}, ${g}, ${b}, ${opacity / 100})`;
|
|
28
|
+
}
|
|
29
|
+
return `color-mix(in srgb, var(${color}) ${opacity}%, transparent)`;
|
|
30
|
+
}
|
|
31
|
+
;
|
|
32
|
+
/**
|
|
33
|
+
* Gets hex value from CSS variable name
|
|
34
|
+
*
|
|
35
|
+
* @param {string} name - Color variable name.
|
|
36
|
+
* @returns {string} The hex code.
|
|
37
|
+
**/
|
|
38
|
+
export const resolveColor = (name) => {
|
|
39
|
+
const css = getComputedStyle(document.documentElement);
|
|
40
|
+
const color = css.getPropertyValue(`--color-${name}`);
|
|
41
|
+
return color.trim();
|
|
42
|
+
};
|
|
43
|
+
// clean
|
package/dist/colors/types.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Color-related type definitions.
|
|
3
|
-
*
|
|
4
|
-
* - `RGBA`: Hex split into individual color values.
|
|
5
|
-
**/
|
|
6
|
-
export
|
|
7
|
-
r: number;
|
|
8
|
-
g: number;
|
|
9
|
-
b: number;
|
|
10
|
-
a: number;
|
|
11
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* Color-related type definitions.
|
|
3
|
+
*
|
|
4
|
+
* - `RGBA`: Hex split into individual color values.
|
|
5
|
+
**/
|
|
6
|
+
export type RGBA = {
|
|
7
|
+
r: number;
|
|
8
|
+
g: number;
|
|
9
|
+
b: number;
|
|
10
|
+
a: number;
|
|
11
|
+
};
|
package/dist/colors/types.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Color-related type definitions.
|
|
3
|
-
*
|
|
4
|
-
* - `RGBA`: Hex split into individual color values.
|
|
5
|
-
**/
|
|
6
|
-
export {};
|
|
7
|
-
// clean
|
|
1
|
+
/**
|
|
2
|
+
* Color-related type definitions.
|
|
3
|
+
*
|
|
4
|
+
* - `RGBA`: Hex split into individual color values.
|
|
5
|
+
**/
|
|
6
|
+
export {};
|
|
7
|
+
// clean
|
|
@@ -1,136 +1,136 @@
|
|
|
1
|
-
export declare const animations: {
|
|
2
|
-
readonly fadeUp: {
|
|
3
|
-
readonly initial: {
|
|
4
|
-
readonly opacity: 0;
|
|
5
|
-
readonly y: 30;
|
|
6
|
-
};
|
|
7
|
-
readonly animate: {
|
|
8
|
-
readonly opacity: 1;
|
|
9
|
-
readonly y: 0;
|
|
10
|
-
readonly transition: {
|
|
11
|
-
readonly duration: 0.3;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
readonly fadeInAndOut: {
|
|
16
|
-
readonly initial: {
|
|
17
|
-
readonly opacity: 0;
|
|
18
|
-
};
|
|
19
|
-
readonly animate: {
|
|
20
|
-
readonly opacity: 1;
|
|
21
|
-
};
|
|
22
|
-
readonly exit: {
|
|
23
|
-
readonly opacity: 0;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
readonly fadeUpAndOut: {
|
|
27
|
-
readonly initial: {
|
|
28
|
-
readonly opacity: 0;
|
|
29
|
-
readonly y: 10;
|
|
30
|
-
};
|
|
31
|
-
readonly animate: {
|
|
32
|
-
readonly opacity: 1;
|
|
33
|
-
readonly y: 0;
|
|
34
|
-
};
|
|
35
|
-
readonly exit: {
|
|
36
|
-
readonly opacity: 1;
|
|
37
|
-
readonly y: -10;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
readonly fadeUpAndOutSlow: {
|
|
41
|
-
readonly initial: {
|
|
42
|
-
readonly opacity: 0;
|
|
43
|
-
readonly y: "-100%";
|
|
44
|
-
};
|
|
45
|
-
readonly animate: {
|
|
46
|
-
readonly opacity: 1;
|
|
47
|
-
readonly y: 0;
|
|
48
|
-
readonly transition: {
|
|
49
|
-
readonly duration: 0.2;
|
|
50
|
-
readonly ease: "easeInOut";
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
readonly exit: {
|
|
54
|
-
readonly opacity: 0;
|
|
55
|
-
readonly y: "100%";
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
readonly fadeLeft: {
|
|
59
|
-
readonly initial: {
|
|
60
|
-
readonly x: -50;
|
|
61
|
-
readonly opacity: 0;
|
|
62
|
-
};
|
|
63
|
-
readonly animate: {
|
|
64
|
-
readonly x: 0;
|
|
65
|
-
readonly opacity: 1;
|
|
66
|
-
};
|
|
67
|
-
readonly exit: {
|
|
68
|
-
readonly x: 50;
|
|
69
|
-
readonly opacity: 0;
|
|
70
|
-
};
|
|
71
|
-
readonly transition: {
|
|
72
|
-
readonly duration: 0.4;
|
|
73
|
-
readonly ease: "easeOut";
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
|
-
readonly growUpAndOut: {
|
|
77
|
-
readonly initial: {
|
|
78
|
-
readonly opacity: 0;
|
|
79
|
-
readonly height: 0;
|
|
80
|
-
};
|
|
81
|
-
readonly animate: {
|
|
82
|
-
readonly opacity: 1;
|
|
83
|
-
readonly height: "auto";
|
|
84
|
-
};
|
|
85
|
-
readonly exit: {
|
|
86
|
-
readonly opacity: 0;
|
|
87
|
-
readonly height: 0;
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
readonly fadeStagger: {
|
|
91
|
-
readonly initial: {
|
|
92
|
-
readonly opacity: 0;
|
|
93
|
-
};
|
|
94
|
-
readonly animate: {
|
|
95
|
-
readonly opacity: 1;
|
|
96
|
-
readonly transition: {
|
|
97
|
-
readonly staggerChildren: 0.2;
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
readonly fadeList: {
|
|
102
|
-
readonly hidden: {
|
|
103
|
-
readonly opacity: 0;
|
|
104
|
-
readonly x: -10;
|
|
105
|
-
readonly y: 5;
|
|
106
|
-
};
|
|
107
|
-
readonly visible: {
|
|
108
|
-
readonly opacity: 1;
|
|
109
|
-
readonly x: 0;
|
|
110
|
-
readonly y: 0;
|
|
111
|
-
readonly transition: {
|
|
112
|
-
readonly type: "spring";
|
|
113
|
-
readonly stiffness: 350;
|
|
114
|
-
readonly damping: 25;
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
readonly popUp: {
|
|
119
|
-
readonly initial: {
|
|
120
|
-
readonly opacity: 0;
|
|
121
|
-
readonly scale: 0.9;
|
|
122
|
-
};
|
|
123
|
-
readonly animate: {
|
|
124
|
-
readonly opacity: 1;
|
|
125
|
-
readonly scale: 1;
|
|
126
|
-
};
|
|
127
|
-
readonly exit: {
|
|
128
|
-
readonly opacity: 0;
|
|
129
|
-
readonly scale: 0.9;
|
|
130
|
-
};
|
|
131
|
-
readonly transition: {
|
|
132
|
-
readonly duration: 0.2;
|
|
133
|
-
readonly ease: readonly [0.23, 1, 0.32, 1];
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
};
|
|
1
|
+
export declare const animations: {
|
|
2
|
+
readonly fadeUp: {
|
|
3
|
+
readonly initial: {
|
|
4
|
+
readonly opacity: 0;
|
|
5
|
+
readonly y: 30;
|
|
6
|
+
};
|
|
7
|
+
readonly animate: {
|
|
8
|
+
readonly opacity: 1;
|
|
9
|
+
readonly y: 0;
|
|
10
|
+
readonly transition: {
|
|
11
|
+
readonly duration: 0.3;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
readonly fadeInAndOut: {
|
|
16
|
+
readonly initial: {
|
|
17
|
+
readonly opacity: 0;
|
|
18
|
+
};
|
|
19
|
+
readonly animate: {
|
|
20
|
+
readonly opacity: 1;
|
|
21
|
+
};
|
|
22
|
+
readonly exit: {
|
|
23
|
+
readonly opacity: 0;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
readonly fadeUpAndOut: {
|
|
27
|
+
readonly initial: {
|
|
28
|
+
readonly opacity: 0;
|
|
29
|
+
readonly y: 10;
|
|
30
|
+
};
|
|
31
|
+
readonly animate: {
|
|
32
|
+
readonly opacity: 1;
|
|
33
|
+
readonly y: 0;
|
|
34
|
+
};
|
|
35
|
+
readonly exit: {
|
|
36
|
+
readonly opacity: 1;
|
|
37
|
+
readonly y: -10;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
readonly fadeUpAndOutSlow: {
|
|
41
|
+
readonly initial: {
|
|
42
|
+
readonly opacity: 0;
|
|
43
|
+
readonly y: "-100%";
|
|
44
|
+
};
|
|
45
|
+
readonly animate: {
|
|
46
|
+
readonly opacity: 1;
|
|
47
|
+
readonly y: 0;
|
|
48
|
+
readonly transition: {
|
|
49
|
+
readonly duration: 0.2;
|
|
50
|
+
readonly ease: "easeInOut";
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
readonly exit: {
|
|
54
|
+
readonly opacity: 0;
|
|
55
|
+
readonly y: "100%";
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
readonly fadeLeft: {
|
|
59
|
+
readonly initial: {
|
|
60
|
+
readonly x: -50;
|
|
61
|
+
readonly opacity: 0;
|
|
62
|
+
};
|
|
63
|
+
readonly animate: {
|
|
64
|
+
readonly x: 0;
|
|
65
|
+
readonly opacity: 1;
|
|
66
|
+
};
|
|
67
|
+
readonly exit: {
|
|
68
|
+
readonly x: 50;
|
|
69
|
+
readonly opacity: 0;
|
|
70
|
+
};
|
|
71
|
+
readonly transition: {
|
|
72
|
+
readonly duration: 0.4;
|
|
73
|
+
readonly ease: "easeOut";
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
readonly growUpAndOut: {
|
|
77
|
+
readonly initial: {
|
|
78
|
+
readonly opacity: 0;
|
|
79
|
+
readonly height: 0;
|
|
80
|
+
};
|
|
81
|
+
readonly animate: {
|
|
82
|
+
readonly opacity: 1;
|
|
83
|
+
readonly height: "auto";
|
|
84
|
+
};
|
|
85
|
+
readonly exit: {
|
|
86
|
+
readonly opacity: 0;
|
|
87
|
+
readonly height: 0;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
readonly fadeStagger: {
|
|
91
|
+
readonly initial: {
|
|
92
|
+
readonly opacity: 0;
|
|
93
|
+
};
|
|
94
|
+
readonly animate: {
|
|
95
|
+
readonly opacity: 1;
|
|
96
|
+
readonly transition: {
|
|
97
|
+
readonly staggerChildren: 0.2;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
readonly fadeList: {
|
|
102
|
+
readonly hidden: {
|
|
103
|
+
readonly opacity: 0;
|
|
104
|
+
readonly x: -10;
|
|
105
|
+
readonly y: 5;
|
|
106
|
+
};
|
|
107
|
+
readonly visible: {
|
|
108
|
+
readonly opacity: 1;
|
|
109
|
+
readonly x: 0;
|
|
110
|
+
readonly y: 0;
|
|
111
|
+
readonly transition: {
|
|
112
|
+
readonly type: "spring";
|
|
113
|
+
readonly stiffness: 350;
|
|
114
|
+
readonly damping: 25;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
readonly popUp: {
|
|
119
|
+
readonly initial: {
|
|
120
|
+
readonly opacity: 0;
|
|
121
|
+
readonly scale: 0.9;
|
|
122
|
+
};
|
|
123
|
+
readonly animate: {
|
|
124
|
+
readonly opacity: 1;
|
|
125
|
+
readonly scale: 1;
|
|
126
|
+
};
|
|
127
|
+
readonly exit: {
|
|
128
|
+
readonly opacity: 0;
|
|
129
|
+
readonly scale: 0.9;
|
|
130
|
+
};
|
|
131
|
+
readonly transition: {
|
|
132
|
+
readonly duration: 0.2;
|
|
133
|
+
readonly ease: readonly [0.23, 1, 0.32, 1];
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
};
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
export const animations = {
|
|
2
|
-
"fadeUp": {
|
|
3
|
-
"initial": { "opacity": 0, "y": 30 },
|
|
4
|
-
"animate": {
|
|
5
|
-
"opacity": 1,
|
|
6
|
-
"y": 0,
|
|
7
|
-
"transition": { "duration": 0.3 }
|
|
8
|
-
}
|
|
9
|
-
},
|
|
10
|
-
"fadeInAndOut": {
|
|
11
|
-
"initial": { "opacity": 0 },
|
|
12
|
-
"animate": { "opacity": 1 },
|
|
13
|
-
"exit": { "opacity": 0 }
|
|
14
|
-
},
|
|
15
|
-
"fadeUpAndOut": {
|
|
16
|
-
"initial": { "opacity": 0, "y": 10 },
|
|
17
|
-
"animate": { "opacity": 1, "y": 0 },
|
|
18
|
-
"exit": { "opacity": 1, "y": -10 }
|
|
19
|
-
},
|
|
20
|
-
"fadeUpAndOutSlow": {
|
|
21
|
-
"initial": { "opacity": 0, "y": "-100%" },
|
|
22
|
-
"animate": { "opacity": 1, "y": 0,
|
|
23
|
-
"transition": { "duration": 0.2, "ease": "easeInOut" }
|
|
24
|
-
},
|
|
25
|
-
"exit": { "opacity": 0, "y": "100%" }
|
|
26
|
-
},
|
|
27
|
-
"fadeLeft": {
|
|
28
|
-
"initial": { "x": -50, "opacity": 0 },
|
|
29
|
-
"animate": { "x": 0, "opacity": 1 },
|
|
30
|
-
"exit": { "x": 50, "opacity": 0 },
|
|
31
|
-
"transition": { "duration": 0.4, "ease": "easeOut" }
|
|
32
|
-
},
|
|
33
|
-
"growUpAndOut": {
|
|
34
|
-
"initial": { "opacity": 0, "height": 0 },
|
|
35
|
-
"animate": { "opacity": 1, "height": "auto" },
|
|
36
|
-
"exit": { "opacity": 0, "height": 0 }
|
|
37
|
-
},
|
|
38
|
-
"fadeStagger": {
|
|
39
|
-
"initial": { "opacity": 0 },
|
|
40
|
-
"animate": {
|
|
41
|
-
"opacity": 1,
|
|
42
|
-
"transition": { "staggerChildren": 0.2 }
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
"fadeList": {
|
|
46
|
-
"hidden": { "opacity": 0, "x": -10, "y": 5 },
|
|
47
|
-
"visible": {
|
|
48
|
-
"opacity": 1, "x": 0, "y": 0,
|
|
49
|
-
"transition": {
|
|
50
|
-
"type": "spring",
|
|
51
|
-
"stiffness": 350,
|
|
52
|
-
"damping": 25
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"popUp": {
|
|
57
|
-
"initial": { "opacity": 0, "scale": 0.9 },
|
|
58
|
-
"animate": { "opacity": 1, "scale": 1 },
|
|
59
|
-
"exit": { "opacity": 0, "scale": 0.9 },
|
|
60
|
-
"transition": { "duration": 0.2, "ease": [0.23, 1, 0.32, 1] }
|
|
61
|
-
}
|
|
62
|
-
};
|
|
1
|
+
export const animations = {
|
|
2
|
+
"fadeUp": {
|
|
3
|
+
"initial": { "opacity": 0, "y": 30 },
|
|
4
|
+
"animate": {
|
|
5
|
+
"opacity": 1,
|
|
6
|
+
"y": 0,
|
|
7
|
+
"transition": { "duration": 0.3 }
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"fadeInAndOut": {
|
|
11
|
+
"initial": { "opacity": 0 },
|
|
12
|
+
"animate": { "opacity": 1 },
|
|
13
|
+
"exit": { "opacity": 0 }
|
|
14
|
+
},
|
|
15
|
+
"fadeUpAndOut": {
|
|
16
|
+
"initial": { "opacity": 0, "y": 10 },
|
|
17
|
+
"animate": { "opacity": 1, "y": 0 },
|
|
18
|
+
"exit": { "opacity": 1, "y": -10 }
|
|
19
|
+
},
|
|
20
|
+
"fadeUpAndOutSlow": {
|
|
21
|
+
"initial": { "opacity": 0, "y": "-100%" },
|
|
22
|
+
"animate": { "opacity": 1, "y": 0,
|
|
23
|
+
"transition": { "duration": 0.2, "ease": "easeInOut" }
|
|
24
|
+
},
|
|
25
|
+
"exit": { "opacity": 0, "y": "100%" }
|
|
26
|
+
},
|
|
27
|
+
"fadeLeft": {
|
|
28
|
+
"initial": { "x": -50, "opacity": 0 },
|
|
29
|
+
"animate": { "x": 0, "opacity": 1 },
|
|
30
|
+
"exit": { "x": 50, "opacity": 0 },
|
|
31
|
+
"transition": { "duration": 0.4, "ease": "easeOut" }
|
|
32
|
+
},
|
|
33
|
+
"growUpAndOut": {
|
|
34
|
+
"initial": { "opacity": 0, "height": 0 },
|
|
35
|
+
"animate": { "opacity": 1, "height": "auto" },
|
|
36
|
+
"exit": { "opacity": 0, "height": 0 }
|
|
37
|
+
},
|
|
38
|
+
"fadeStagger": {
|
|
39
|
+
"initial": { "opacity": 0 },
|
|
40
|
+
"animate": {
|
|
41
|
+
"opacity": 1,
|
|
42
|
+
"transition": { "staggerChildren": 0.2 }
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"fadeList": {
|
|
46
|
+
"hidden": { "opacity": 0, "x": -10, "y": 5 },
|
|
47
|
+
"visible": {
|
|
48
|
+
"opacity": 1, "x": 0, "y": 0,
|
|
49
|
+
"transition": {
|
|
50
|
+
"type": "spring",
|
|
51
|
+
"stiffness": 350,
|
|
52
|
+
"damping": 25
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"popUp": {
|
|
57
|
+
"initial": { "opacity": 0, "scale": 0.9 },
|
|
58
|
+
"animate": { "opacity": 1, "scale": 1 },
|
|
59
|
+
"exit": { "opacity": 0, "scale": 0.9 },
|
|
60
|
+
"transition": { "duration": 0.2, "ease": [0.23, 1, 0.32, 1] }
|
|
61
|
+
}
|
|
62
|
+
};
|