@frequencyads/components 0.1.1 → 0.1.3

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.
Files changed (93) hide show
  1. package/dist/AnimatedCounter/AnimatedCounter.d.ts +19 -0
  2. package/dist/AnimatedCounter/AnimatedCounter.d.ts.map +1 -0
  3. package/dist/AnimatedCounter/index.d.ts +2 -0
  4. package/dist/AnimatedCounter/index.d.ts.map +1 -0
  5. package/dist/AnimatedWaveform/AnimatedWaveform.d.ts +10 -0
  6. package/dist/AnimatedWaveform/AnimatedWaveform.d.ts.map +1 -0
  7. package/dist/AnimatedWaveform/index.d.ts +2 -0
  8. package/dist/AnimatedWaveform/index.d.ts.map +1 -0
  9. package/dist/AudioPlayer/AudioPlayer.d.ts +26 -0
  10. package/dist/AudioPlayer/AudioPlayer.d.ts.map +1 -0
  11. package/dist/AudioPlayer/index.d.ts +2 -0
  12. package/dist/AudioPlayer/index.d.ts.map +1 -0
  13. package/dist/AudioWaveform/AudioWaveform.d.ts +27 -0
  14. package/dist/AudioWaveform/AudioWaveform.d.ts.map +1 -0
  15. package/dist/AudioWaveform/index.d.ts +2 -0
  16. package/dist/AudioWaveform/index.d.ts.map +1 -0
  17. package/dist/CodeBlock/CodeBlock.d.ts +10 -0
  18. package/dist/CodeBlock/CodeBlock.d.ts.map +1 -0
  19. package/dist/CodeBlock/index.d.ts +2 -0
  20. package/dist/CodeBlock/index.d.ts.map +1 -0
  21. package/dist/ColorPalette/ColorPalette.d.ts +10 -0
  22. package/dist/ColorPalette/ColorPalette.d.ts.map +1 -0
  23. package/dist/ColorPalette/index.d.ts +2 -0
  24. package/dist/ColorPalette/index.d.ts.map +1 -0
  25. package/dist/ColorSwatch/ColorSwatch.d.ts +10 -0
  26. package/dist/ColorSwatch/ColorSwatch.d.ts.map +1 -0
  27. package/dist/ColorSwatch/index.d.ts +2 -0
  28. package/dist/ColorSwatch/index.d.ts.map +1 -0
  29. package/dist/Copyable/Copyable.d.ts +7 -0
  30. package/dist/Copyable/Copyable.d.ts.map +1 -0
  31. package/dist/Copyable/index.d.ts +2 -0
  32. package/dist/Copyable/index.d.ts.map +1 -0
  33. package/dist/DosDonts/DosDonts.d.ts +10 -0
  34. package/dist/DosDonts/DosDonts.d.ts.map +1 -0
  35. package/dist/DosDonts/index.d.ts +2 -0
  36. package/dist/DosDonts/index.d.ts.map +1 -0
  37. package/dist/ExpandableCard/ExpandableCard.d.ts +30 -0
  38. package/dist/ExpandableCard/ExpandableCard.d.ts.map +1 -0
  39. package/dist/ExpandableCard/index.d.ts +2 -0
  40. package/dist/ExpandableCard/index.d.ts.map +1 -0
  41. package/dist/FadeInSection/FadeInSection.d.ts +10 -0
  42. package/dist/FadeInSection/FadeInSection.d.ts.map +1 -0
  43. package/dist/FadeInSection/index.d.ts +2 -0
  44. package/dist/FadeInSection/index.d.ts.map +1 -0
  45. package/dist/FrequencyWave/FrequencyWave.d.ts +15 -0
  46. package/dist/FrequencyWave/FrequencyWave.d.ts.map +1 -0
  47. package/dist/FrequencyWave/index.d.ts +2 -0
  48. package/dist/FrequencyWave/index.d.ts.map +1 -0
  49. package/dist/GradientSwatch/GradientSwatch.d.ts +10 -0
  50. package/dist/GradientSwatch/GradientSwatch.d.ts.map +1 -0
  51. package/dist/GradientSwatch/index.d.ts +2 -0
  52. package/dist/GradientSwatch/index.d.ts.map +1 -0
  53. package/dist/Hero/Hero.d.ts +34 -0
  54. package/dist/Hero/Hero.d.ts.map +1 -0
  55. package/dist/Hero/index.d.ts +2 -0
  56. package/dist/Hero/index.d.ts.map +1 -0
  57. package/dist/HintBadge/HintBadge.d.ts +8 -0
  58. package/dist/HintBadge/HintBadge.d.ts.map +1 -0
  59. package/dist/HintBadge/index.d.ts +2 -0
  60. package/dist/HintBadge/index.d.ts.map +1 -0
  61. package/dist/MiniAudioPlayer/MiniAudioPlayer.d.ts +18 -0
  62. package/dist/MiniAudioPlayer/MiniAudioPlayer.d.ts.map +1 -0
  63. package/dist/MiniAudioPlayer/index.d.ts +2 -0
  64. package/dist/MiniAudioPlayer/index.d.ts.map +1 -0
  65. package/dist/PrincipleCard/PrincipleCard.d.ts +14 -0
  66. package/dist/PrincipleCard/PrincipleCard.d.ts.map +1 -0
  67. package/dist/PrincipleCard/index.d.ts +2 -0
  68. package/dist/PrincipleCard/index.d.ts.map +1 -0
  69. package/dist/SpeedDial/SpeedDial.d.ts +33 -0
  70. package/dist/SpeedDial/SpeedDial.d.ts.map +1 -0
  71. package/dist/SpeedDial/index.d.ts +2 -0
  72. package/dist/SpeedDial/index.d.ts.map +1 -0
  73. package/dist/SplitSection/SplitSection.d.ts +35 -0
  74. package/dist/SplitSection/SplitSection.d.ts.map +1 -0
  75. package/dist/SplitSection/index.d.ts +2 -0
  76. package/dist/SplitSection/index.d.ts.map +1 -0
  77. package/dist/TestimonialCard/TestimonialCard.d.ts +17 -0
  78. package/dist/TestimonialCard/TestimonialCard.d.ts.map +1 -0
  79. package/dist/TestimonialCard/index.d.ts +2 -0
  80. package/dist/TestimonialCard/index.d.ts.map +1 -0
  81. package/dist/VideoBackground/VideoBackground.d.ts +8 -0
  82. package/dist/VideoBackground/VideoBackground.d.ts.map +1 -0
  83. package/dist/VideoBackground/index.d.ts +2 -0
  84. package/dist/VideoBackground/index.d.ts.map +1 -0
  85. package/dist/components.css +1 -0
  86. package/dist/index.d.ts +25 -339
  87. package/dist/index.d.ts.map +1 -0
  88. package/dist/index.js +1 -1562
  89. package/dist/index.mjs +915 -1215
  90. package/llms.txt +9 -0
  91. package/package.json +10 -6
  92. package/dist/index.css +0 -543
  93. package/dist/index.d.mts +0 -341
package/dist/index.d.mts DELETED
@@ -1,341 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { TextProps, MantineColor, MantineSize, BoxProps, MantineSpacing } from '@mantine/core';
3
- import * as react from 'react';
4
- import { gradients } from '@frequencyads/brand/colors';
5
-
6
- interface AnimatedCounterProps extends Omit<TextProps, 'children'> {
7
- /** Target number to count up to */
8
- value: number;
9
- /** Text appended after the number (e.g. "%", "+", " users") */
10
- suffix?: string;
11
- /** Text prepended before the number (e.g. "$") */
12
- prefix?: string;
13
- /** Animation duration in ms */
14
- duration?: number;
15
- /** IntersectionObserver threshold (0-1) to trigger the animation */
16
- threshold?: number;
17
- /** Format large numbers with K suffix (e.g. 2500 → "2.5K") */
18
- abbreviate?: boolean;
19
- /** Number of decimal places for non-integer values */
20
- decimals?: number;
21
- }
22
- declare function AnimatedCounter({ value, suffix, prefix, duration, threshold, abbreviate, decimals, ...textProps }: AnimatedCounterProps): react_jsx_runtime.JSX.Element;
23
-
24
- interface AnimatedWaveformProps {
25
- /** Number of bars (default 140) */
26
- barCount?: number;
27
- /** Animation cycle duration in seconds (default 3) */
28
- duration?: number;
29
- /** Pause between animation cycles in seconds (default 3) */
30
- repeatDelay?: number;
31
- }
32
- declare function AnimatedWaveform({ barCount, duration, repeatDelay, }: AnimatedWaveformProps): react_jsx_runtime.JSX.Element | null;
33
-
34
- interface AudioPlayerProps {
35
- /** URL to the audio file */
36
- src: string;
37
- /** Optional filename for download */
38
- filename?: string;
39
- /** Color of the play button */
40
- playButtonColor?: string;
41
- /** Size of the play button in pixels */
42
- playButtonSize?: number;
43
- /** Color of inactive waveform bars */
44
- waveColor?: string;
45
- /** Color of active waveform bars */
46
- progressColor?: string;
47
- /** Height of the waveform in pixels */
48
- waveHeight?: number;
49
- /** Width of waveform bars */
50
- barWidth?: number;
51
- /** Gap between waveform bars */
52
- barGap?: number;
53
- /** Whether to show the volume control */
54
- showVolume?: boolean;
55
- /** Whether to show the download button */
56
- showDownload?: boolean;
57
- }
58
- declare function AudioPlayer({ src, filename, playButtonColor, playButtonSize, waveColor, progressColor, waveHeight, barWidth, barGap, showVolume, showDownload, }: AudioPlayerProps): react_jsx_runtime.JSX.Element;
59
-
60
- interface AudioWaveformHandle {
61
- seekTo: (time: number) => void;
62
- getCurrentTime: () => number;
63
- getDuration: () => number;
64
- }
65
- interface AudioWaveformProps {
66
- /** Ref to the HTML audio element */
67
- audioRef: React.RefObject<HTMLAudioElement | null>;
68
- /** Current playback time in seconds */
69
- currentTime?: number;
70
- /** Callback when user seeks by clicking */
71
- onSeek?: (time: number) => void;
72
- /** Whether audio is loading */
73
- loading?: boolean;
74
- /** Color of inactive waveform bars */
75
- waveColor?: string;
76
- /** Color of active (played) waveform bars */
77
- progressColor?: string;
78
- /** Height in pixels */
79
- height?: number;
80
- /** Width of each bar in pixels */
81
- barWidth?: number;
82
- /** Gap between bars in pixels */
83
- barGap?: number;
84
- }
85
- declare const AudioWaveform: react.ForwardRefExoticComponent<AudioWaveformProps & react.RefAttributes<AudioWaveformHandle>>;
86
-
87
- interface CodeBlockProps {
88
- /** Code content to display */
89
- code: string;
90
- /** Optional filename label */
91
- filename?: string;
92
- /** Height of the code area (default 384px) */
93
- height?: number | string;
94
- }
95
- declare function CodeBlock({ code, filename, height }: CodeBlockProps): react_jsx_runtime.JSX.Element;
96
-
97
- interface ColorPaletteProps {
98
- /** Color name displayed as heading */
99
- name: string;
100
- /** Array of 10 hex shade values (index 0-9) */
101
- shades: string[];
102
- /** Index of the main shade (default 5) */
103
- mainIndex?: number;
104
- }
105
- declare function ColorPalette({ name, shades, mainIndex }: ColorPaletteProps): react_jsx_runtime.JSX.Element;
106
-
107
- interface ColorSwatchProps {
108
- /** Color name */
109
- name: string;
110
- /** Hex color value */
111
- hex: string;
112
- /** Optional label (e.g. shade index or semantic name) */
113
- label?: string;
114
- }
115
- declare function ColorSwatch({ name, hex, label }: ColorSwatchProps): react_jsx_runtime.JSX.Element;
116
-
117
- interface CopyableProps {
118
- /** Value to copy to clipboard */
119
- value: string;
120
- children: React.ReactNode;
121
- }
122
- declare function Copyable({ value, children }: CopyableProps): react_jsx_runtime.JSX.Element;
123
-
124
- interface DosDontsItem {
125
- do: string;
126
- dont: string;
127
- }
128
- interface DosDontsProps {
129
- /** Pairs of do/don't examples */
130
- items: DosDontsItem[];
131
- }
132
- declare function DosDonts({ items }: DosDontsProps): react_jsx_runtime.JSX.Element;
133
-
134
- interface ExpandableCardProps {
135
- /** Card title */
136
- title: string;
137
- /** Short description shown in collapsed state */
138
- description: string;
139
- /** Additional content revealed on expand */
140
- expandedContent: React.ReactNode;
141
- /** Icon component from @tabler/icons-react */
142
- icon: React.ComponentType<{
143
- size?: number | string;
144
- stroke?: number;
145
- }>;
146
- /** Mantine color for the icon badge */
147
- color?: MantineColor;
148
- /** Icon badge size */
149
- iconSize?: MantineSize | number;
150
- /** Collapsed height in px */
151
- collapsedHeight?: number;
152
- /** IntersectionObserver threshold to trigger expand */
153
- threshold?: number;
154
- /** Delay in ms before expanding after entering viewport */
155
- delay?: number;
156
- /** Controlled mode: override auto-expand */
157
- expanded?: boolean;
158
- /** Callback when expanded state changes */
159
- onExpandedChange?: (expanded: boolean) => void;
160
- }
161
- declare function ExpandableCard({ title, description, expandedContent, icon: Icon, color, iconSize, collapsedHeight, threshold, delay, expanded: controlledExpanded, onExpandedChange, }: ExpandableCardProps): react_jsx_runtime.JSX.Element;
162
-
163
- interface FadeInSectionProps extends BoxProps {
164
- children: React.ReactNode;
165
- /** Delay in ms before the fade starts after entering viewport */
166
- delay?: number;
167
- /** IntersectionObserver threshold (0-1, default 0.1) */
168
- threshold?: number;
169
- }
170
- declare function FadeInSection({ children, delay, threshold, className, ...props }: FadeInSectionProps): react_jsx_runtime.JSX.Element;
171
-
172
- interface FrequencyWaveProps {
173
- /** Whether the wave is actively animated (e.g. AI processing) */
174
- isActive?: boolean;
175
- /** Height of the wave container in pixels */
176
- height?: number;
177
- }
178
- /**
179
- * Canvas-based animated frequency wave decoration.
180
- * - Subtle idle animation by default
181
- * - Active state with equalizer bars when `isActive` is true
182
- * - Periodic aggressive pulses when idle (every 2-3 minutes)
183
- * - Uses Frequency brand gradient colors, adapts to light/dark
184
- */
185
- declare function FrequencyWave({ isActive, height }: FrequencyWaveProps): react_jsx_runtime.JSX.Element;
186
-
187
- interface GradientSwatchProps {
188
- /** Gradient name */
189
- name: string;
190
- /** [from, to] hex color pair */
191
- colors: [string, string];
192
- /** Short description of usage */
193
- description?: string;
194
- }
195
- declare function GradientSwatch({ name, colors, description }: GradientSwatchProps): react_jsx_runtime.JSX.Element;
196
-
197
- type GradientName = keyof typeof gradients;
198
- interface HeroAction {
199
- label: string;
200
- href: string;
201
- }
202
- interface HeroProps {
203
- /** 'logo' centers the brand mark with waveform; 'text' shows a large gradient heading */
204
- variant?: 'logo' | 'text';
205
- /** Heading text shown large in 'text' variant, used as alt text in 'logo' variant */
206
- heading?: string;
207
- /** Subtitle shown below the logo or heading */
208
- tagline?: string;
209
- /** Image source for logo variant (defaults to Frequency mark) */
210
- logoSrc?: string;
211
- /** Brand gradient for text variant heading (default 'frequencyAlive') */
212
- gradient?: GradientName;
213
- /** Enable shimmer animation on gradient text (default true) */
214
- shimmer?: boolean;
215
- /** Primary call-to-action */
216
- primaryAction?: HeroAction;
217
- /** Secondary call-to-action */
218
- secondaryAction?: HeroAction;
219
- /** Background video source URL */
220
- backgroundVideoSrc?: string;
221
- /** Show animated waveform (default true) */
222
- showWaveform?: boolean;
223
- }
224
- declare function Hero({ variant, heading, tagline, logoSrc, gradient: gradientName, shimmer, primaryAction, secondaryAction, backgroundVideoSrc, showWaveform, }: HeroProps): react_jsx_runtime.JSX.Element;
225
-
226
- interface HintBadgeProps {
227
- /** Whether this is a "do" (positive) or "don't" (negative) hint */
228
- variant: 'do' | 'dont';
229
- /** The hint text (without the "Do:" / "Don't:" prefix — it's added automatically) */
230
- children: React.ReactNode;
231
- }
232
- declare function HintBadge({ variant, children }: HintBadgeProps): react_jsx_runtime.JSX.Element;
233
-
234
- interface MiniAudioPlayerProps {
235
- /** URL to the audio file */
236
- audioUrl: string;
237
- /** Size variant */
238
- size?: 'mini' | 'small' | 'compact';
239
- /** Color of inactive waveform bars */
240
- waveColor?: string;
241
- /** Color of active waveform bars */
242
- progressColor?: string;
243
- /** Callback when playback starts */
244
- onPlay?: () => void;
245
- /** Callback when playback pauses */
246
- onPause?: () => void;
247
- className?: string;
248
- style?: React.CSSProperties;
249
- }
250
- declare const MiniAudioPlayer: react.ForwardRefExoticComponent<MiniAudioPlayerProps & react.RefAttributes<HTMLDivElement>>;
251
-
252
- interface PrincipleCardProps {
253
- /** Accent color for the left border (any valid CSS color) */
254
- accentColor: string;
255
- /** Card heading */
256
- title: string;
257
- /** Card body text */
258
- description: string;
259
- /** "Do" hint text */
260
- doHint?: string;
261
- /** "Don't" hint text */
262
- dontHint?: string;
263
- }
264
- declare function PrincipleCard({ accentColor, title, description, doHint, dontHint, }: PrincipleCardProps): react_jsx_runtime.JSX.Element;
265
-
266
- interface SpeedDialAction {
267
- /** Icon component to render */
268
- icon: React.ReactNode;
269
- /** Tooltip label */
270
- label: string;
271
- /** Click handler */
272
- onClick: () => void;
273
- }
274
- interface SpeedDialProps {
275
- /** List of actions to show when expanded */
276
- actions: SpeedDialAction[];
277
- /** Icon when closed (defaults to plus icon) */
278
- icon?: React.ReactNode;
279
- /** Icon when open (defaults to rotated plus / X) */
280
- openIcon?: React.ReactNode;
281
- /** Direction actions expand toward */
282
- direction?: 'up' | 'down' | 'left' | 'right';
283
- /** Color of the main FAB */
284
- color?: string;
285
- /** Size of the main FAB */
286
- size?: number;
287
- /** Whether the dial is initially open */
288
- defaultOpen?: boolean;
289
- /** Controlled open state */
290
- open?: boolean;
291
- /** Called when open state changes */
292
- onOpenChange?: (open: boolean) => void;
293
- /** Position style overrides (e.g. for absolute/fixed positioning) */
294
- style?: React.CSSProperties;
295
- className?: string;
296
- }
297
- declare function SpeedDial({ actions, icon, openIcon, direction, color, size, defaultOpen, open: controlledOpen, onOpenChange, style, className, }: SpeedDialProps): react_jsx_runtime.JSX.Element;
298
-
299
- interface SplitSectionProps {
300
- /** Small label badge above the heading (e.g. "New") */
301
- badge?: string;
302
- /** Badge color */
303
- badgeColor?: MantineColor;
304
- /** Small subtitle text above the main title */
305
- subtitle?: string;
306
- /** Main heading — large, bold text */
307
- title?: string;
308
- /** Color for the main title text */
309
- titleColor?: MantineColor;
310
- /** Additional heading line above the title (rendered smaller) */
311
- preTitle?: string;
312
- /** Description paragraph below the heading */
313
- description?: string;
314
- /** CTA buttons or additional content below the description */
315
- actions?: React.ReactNode;
316
- /** Fully custom heading area — replaces badge/subtitle/title/description when provided */
317
- heading?: React.ReactNode;
318
- /** Right-side content */
319
- children: React.ReactNode;
320
- /** Make the left heading area sticky on scroll */
321
- stickyHeading?: boolean;
322
- /** Vertical padding — defaults to "xl" */
323
- py?: MantineSpacing;
324
- /** Flip layout — content on left, heading on right */
325
- reversed?: boolean;
326
- /** HTML id for anchor linking */
327
- id?: string;
328
- /** Additional className for the root section */
329
- className?: string;
330
- }
331
- declare function SplitSection({ badge, badgeColor, subtitle, title, titleColor, preTitle, description, actions, heading, children, stickyHeading, py, reversed, id, className, }: SplitSectionProps): react_jsx_runtime.JSX.Element;
332
-
333
- interface VideoBackgroundProps {
334
- /** Video source URL */
335
- src: string;
336
- /** Overlay opacity (0-1, default 0.3) */
337
- opacity?: number;
338
- }
339
- declare function VideoBackground({ src, opacity }: VideoBackgroundProps): react_jsx_runtime.JSX.Element;
340
-
341
- export { AnimatedCounter, type AnimatedCounterProps, AnimatedWaveform, type AnimatedWaveformProps, AudioPlayer, type AudioPlayerProps, AudioWaveform, type AudioWaveformHandle, type AudioWaveformProps, CodeBlock, type CodeBlockProps, ColorPalette, type ColorPaletteProps, ColorSwatch, type ColorSwatchProps, Copyable, type CopyableProps, DosDonts, type DosDontsItem, type DosDontsProps, ExpandableCard, type ExpandableCardProps, FadeInSection, type FadeInSectionProps, FrequencyWave, type FrequencyWaveProps, type GradientName, GradientSwatch, type GradientSwatchProps, Hero, type HeroAction, type HeroProps, HintBadge, type HintBadgeProps, MiniAudioPlayer, type MiniAudioPlayerProps, PrincipleCard, type PrincipleCardProps, SpeedDial, type SpeedDialAction, type SpeedDialProps, SplitSection, type SplitSectionProps, VideoBackground, type VideoBackgroundProps };