border-beam 1.3.0 → 1.4.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/index.cjs.js +160 -159
- package/dist/index.d.ts +21 -1
- package/dist/index.es.js +852 -471
- package/package.json +7 -4
package/dist/index.d.ts
CHANGED
|
@@ -24,8 +24,12 @@ export default BorderBeam;
|
|
|
24
24
|
* - 'mono': Monochromatic grayscale
|
|
25
25
|
* - 'ocean': Blue and purple tones
|
|
26
26
|
* - 'sunset': Warm orange, yellow, and red tones
|
|
27
|
+
* - 'forest': Green and teal tones
|
|
28
|
+
* - 'candy': Pink and magenta tones
|
|
29
|
+
* - 'ice': Cyan and pale blue tones
|
|
30
|
+
* - 'gold': Amber and yellow tones
|
|
27
31
|
*/
|
|
28
|
-
export declare type BorderBeamColorVariant = 'colorful' | 'mono' | 'ocean' | 'sunset';
|
|
32
|
+
export declare type BorderBeamColorVariant = 'colorful' | 'mono' | 'ocean' | 'sunset' | 'forest' | 'candy' | 'ice' | 'gold';
|
|
29
33
|
|
|
30
34
|
/**
|
|
31
35
|
* Props for the BorderBeam component
|
|
@@ -87,6 +91,14 @@ export declare interface BorderBeamProps extends Omit<HTMLAttributes<HTMLDivElem
|
|
|
87
91
|
* @default 1.2 for dark, varies for light
|
|
88
92
|
*/
|
|
89
93
|
saturation?: number;
|
|
94
|
+
/**
|
|
95
|
+
* Multiplies the blur radius of every glow layer, so the halo reads
|
|
96
|
+
* tighter (< 1) or wider and softer (> 1). Each layer keeps its own
|
|
97
|
+
* tuned proportion — the core stays tighter than the bloom — because
|
|
98
|
+
* this scales the presets rather than replacing them.
|
|
99
|
+
* @default 1
|
|
100
|
+
*/
|
|
101
|
+
glowSize?: number;
|
|
90
102
|
/**
|
|
91
103
|
* Hue rotation range in degrees for the hue-shift animation
|
|
92
104
|
* @default 30
|
|
@@ -106,6 +118,14 @@ export declare interface BorderBeamProps extends Omit<HTMLAttributes<HTMLDivElem
|
|
|
106
118
|
* Additional inline styles for the container
|
|
107
119
|
*/
|
|
108
120
|
style?: CSSProperties;
|
|
121
|
+
/**
|
|
122
|
+
* Extra CSS appended after the beam's own generated stylesheet, so it can
|
|
123
|
+
* override or add layers and keyframes. Write `{id}` wherever the
|
|
124
|
+
* instance id belongs — the root is `[data-beam="{id}"]`, its layers are
|
|
125
|
+
* the `::before` / `::after` pseudo-elements and `[data-beam-bloom]`, and
|
|
126
|
+
* keyframes are named `*-{id}` — and it is substituted per instance.
|
|
127
|
+
*/
|
|
128
|
+
css?: string;
|
|
109
129
|
/**
|
|
110
130
|
* Callback when fade-in animation completes
|
|
111
131
|
*/
|