@saasflare/ui 3.0.2 → 3.1.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/button-0Bdl7Nqm.d.ts +87 -0
- package/dist/button-Brb4BhPO.d.mts +87 -0
- package/dist/{chunk-XXT4HKND.js → chunk-4BOMMZEY.js} +20 -13
- package/dist/{chunk-YAE5VBWJ.js → chunk-D5LKWKG7.js} +96 -152
- package/dist/chunk-DNLCSV5M.js +151 -0
- package/dist/{chunk-W53NTFPB.mjs → chunk-EJHYM2HP.mjs} +7 -16
- package/dist/chunk-FT66KYRN.js +30 -0
- package/dist/{chunk-2DNKXA5A.mjs → chunk-RW2S3KNB.mjs} +14 -7
- package/dist/chunk-WPOOC2FX.mjs +128 -0
- package/dist/{chunk-ORB66UYT.mjs → chunk-WRONFPRI.mjs} +66 -121
- package/dist/{dialog-CwyBJeNl.d.mts → dialog-BmY55WSX.d.ts} +4 -1
- package/dist/{dialog-CwyBJeNl.d.ts → dialog-CcaHMAsS.d.mts} +4 -1
- package/dist/entries/calendar.d.mts +5 -3
- package/dist/entries/calendar.d.ts +5 -3
- package/dist/entries/calendar.js +44 -36
- package/dist/entries/calendar.mjs +11 -3
- package/dist/entries/carousel.d.mts +4 -3
- package/dist/entries/carousel.d.ts +4 -3
- package/dist/entries/carousel.js +18 -11
- package/dist/entries/carousel.mjs +11 -4
- package/dist/entries/chart.d.mts +4 -2
- package/dist/entries/chart.d.ts +4 -2
- package/dist/entries/chart.js +17 -10
- package/dist/entries/chart.mjs +8 -1
- package/dist/entries/command.d.mts +5 -2
- package/dist/entries/command.d.ts +5 -2
- package/dist/entries/command.js +25 -18
- package/dist/entries/command.mjs +12 -5
- package/dist/entries/drawer.d.mts +4 -1
- package/dist/entries/drawer.d.ts +4 -1
- package/dist/entries/drawer.js +15 -8
- package/dist/entries/drawer.mjs +9 -2
- package/dist/entries/input-otp.d.mts +4 -2
- package/dist/entries/input-otp.d.ts +4 -2
- package/dist/entries/input-otp.js +13 -6
- package/dist/entries/input-otp.mjs +10 -3
- package/dist/entries/resizable.d.mts +3 -1
- package/dist/entries/resizable.d.ts +3 -1
- package/dist/entries/resizable.js +12 -5
- package/dist/entries/resizable.mjs +10 -3
- package/dist/index.d.mts +181 -79
- package/dist/index.d.ts +181 -79
- package/dist/index.js +806 -476
- package/dist/index.mjs +497 -171
- package/dist/{button-DUQJ0X7e.d.mts → use-saasflare-props-NrM2Glmp.d.mts} +1 -86
- package/dist/{button-DUQJ0X7e.d.ts → use-saasflare-props-NrM2Glmp.d.ts} +1 -86
- package/package.json +1 -1
- package/dist/chunk-BIU2MD4T.mjs +0 -56
- package/dist/chunk-CWW36RYE.js +0 -59
- package/dist/chunk-M3ICCPCU.js +0 -60
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { ClassValue } from 'clsx';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { Transition } from 'motion/react';
|
|
3
|
+
import { I as Intent, B as Button } from './button-0Bdl7Nqm.js';
|
|
4
|
+
export { a as ButtonProps, b as buttonVariants } from './button-0Bdl7Nqm.js';
|
|
4
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
6
|
import * as React$1 from 'react';
|
|
6
7
|
import { ReactNode, JSX } from 'react';
|
|
7
|
-
|
|
8
|
+
import { P as Palette, S as Surface, R as RadiusProp, a as StyleVariant, b as Radius, c as SaasflareComponentProps } from './use-saasflare-props-NrM2Glmp.js';
|
|
9
|
+
export { C as CustomPalette, d as PALETTES, e as PaletteId, f as RADII, g as ResolvedSaasflareProps, h as STYLES, u as useSaasflareProps } from './use-saasflare-props-NrM2Glmp.js';
|
|
10
|
+
export { D as Dialog, a as DialogClose, b as DialogContent, c as DialogDescription, d as DialogFooter, e as DialogHeader, f as DialogOverlay, g as DialogPortal, h as DialogTitle, i as DialogTrigger } from './dialog-BmY55WSX.js';
|
|
8
11
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
9
12
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
10
13
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
@@ -235,7 +238,6 @@ declare function usePagination(options: UsePaginationOptions): UsePaginationRetu
|
|
|
235
238
|
* const reduced = useReducedMotion();
|
|
236
239
|
* <motion.div transition={reduced ? { duration: 0 } : spring} />
|
|
237
240
|
*/
|
|
238
|
-
/** Re-export reduced-motion hook for convenience */
|
|
239
241
|
|
|
240
242
|
/** Snappy spring — default for buttons, badges, interactive feedback */
|
|
241
243
|
declare const spring: {
|
|
@@ -307,6 +309,40 @@ declare const slideDown: {
|
|
|
307
309
|
readonly y: 0;
|
|
308
310
|
};
|
|
309
311
|
};
|
|
312
|
+
/** Resolved motion settings for a Saasflare component. */
|
|
313
|
+
interface SaasflareMotion {
|
|
314
|
+
/** Spring or noMotion — drop directly onto `transition={…}`. */
|
|
315
|
+
transition: Transition;
|
|
316
|
+
/** True when motion should be skipped — gate `whileHover`, `initial`, etc. */
|
|
317
|
+
disabled: boolean;
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* Resolves the active transition for a component.
|
|
321
|
+
*
|
|
322
|
+
* Disables motion when **any** of these are true:
|
|
323
|
+
* - Consumer opted out (`animated={false}` from prop or `<SaasflareProvider>`)
|
|
324
|
+
* - OS reports `prefers-reduced-motion: reduce`
|
|
325
|
+
* - Any `extraDisablers` (e.g. `disabled`, `loading`) is `true`
|
|
326
|
+
*
|
|
327
|
+
* Single tuning point — when later we differentiate spring tokens per component
|
|
328
|
+
* (`springBouncy.checkbox`, `springSnappy.dialog`), the variants live next to
|
|
329
|
+
* this hook and components don't change.
|
|
330
|
+
*
|
|
331
|
+
* @example
|
|
332
|
+
* const sf = useSaasflareProps({ surface, radius, animated })
|
|
333
|
+
* const motion = useSaasflareMotion(sf.animated, springBouncy)
|
|
334
|
+
*
|
|
335
|
+
* // …
|
|
336
|
+
* <m.span
|
|
337
|
+
* initial={motion.disabled ? false : { scale: 0 }}
|
|
338
|
+
* animate={motion.disabled ? false : { scale: 1 }}
|
|
339
|
+
* transition={motion.transition}
|
|
340
|
+
* />
|
|
341
|
+
*
|
|
342
|
+
* @example // Button-style with extra disablers
|
|
343
|
+
* const motion = useSaasflareMotion(sf.animated, spring, disabled, loading)
|
|
344
|
+
*/
|
|
345
|
+
declare function useSaasflareMotion(animated: boolean, base?: Transition, ...extraDisablers: boolean[]): SaasflareMotion;
|
|
310
346
|
|
|
311
347
|
/** Context value exposed by {@link useAnimation}. */
|
|
312
348
|
interface AnimationContextType {
|
|
@@ -552,6 +588,10 @@ interface SaasflareScriptProps {
|
|
|
552
588
|
*/
|
|
553
589
|
declare function SaasflareScript({ nonce, palette, surface, radius, animated, storageKey }: SaasflareScriptProps): react_jsx_runtime.JSX.Element;
|
|
554
590
|
|
|
591
|
+
/** Framer-motion event overrides that conflict with React HTML events */
|
|
592
|
+
type MotionConflicts = "onDrag" | "onDragStart" | "onDragEnd" | "onAnimationStart" | "onAnimationEnd";
|
|
593
|
+
interface CardProps extends Omit<React$1.ComponentProps<"div">, MotionConflicts | keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
594
|
+
}
|
|
555
595
|
/**
|
|
556
596
|
* Card container with subtle hover-lift animation.
|
|
557
597
|
*
|
|
@@ -564,9 +604,7 @@ declare function SaasflareScript({ nonce, palette, surface, radius, animated, st
|
|
|
564
604
|
* <CardContent>Content here</CardContent>
|
|
565
605
|
* </Card>
|
|
566
606
|
*/
|
|
567
|
-
|
|
568
|
-
type MotionConflicts = "onDrag" | "onDragStart" | "onDragEnd" | "onAnimationStart" | "onAnimationEnd";
|
|
569
|
-
declare function Card({ className, ...props }: Omit<React$1.ComponentProps<"div">, MotionConflicts>): react_jsx_runtime.JSX.Element;
|
|
607
|
+
declare function Card({ className, surface, radius, animated, ...props }: CardProps): react_jsx_runtime.JSX.Element;
|
|
570
608
|
/**
|
|
571
609
|
* Card header with grid layout supporting an optional action slot.
|
|
572
610
|
*
|
|
@@ -614,7 +652,9 @@ declare function AlertDialog({ ...props }: React$1.ComponentProps<typeof AlertDi
|
|
|
614
652
|
declare function AlertDialogTrigger({ ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
615
653
|
declare function AlertDialogPortal({ ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
616
654
|
declare function AlertDialogOverlay({ className, ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Overlay>): react_jsx_runtime.JSX.Element;
|
|
617
|
-
|
|
655
|
+
interface AlertDialogContentProps extends Omit<React$1.ComponentProps<typeof AlertDialogPrimitive.Content>, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
656
|
+
}
|
|
657
|
+
declare function AlertDialogContent({ className, children, surface, radius, animated, ...props }: AlertDialogContentProps): react_jsx_runtime.JSX.Element;
|
|
618
658
|
declare function AlertDialogHeader({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
619
659
|
declare function AlertDialogFooter({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
620
660
|
declare function AlertDialogTitle({ className, ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
|
|
@@ -623,7 +663,9 @@ declare function AlertDialogAction({ className, ...props }: React$1.ComponentPro
|
|
|
623
663
|
declare function AlertDialogCancel({ className, ...props }: React$1.ComponentProps<typeof AlertDialogPrimitive.Cancel>): react_jsx_runtime.JSX.Element;
|
|
624
664
|
|
|
625
665
|
declare function Accordion({ ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
626
|
-
|
|
666
|
+
interface AccordionItemProps extends Omit<React$1.ComponentProps<typeof AccordionPrimitive.Item>, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
667
|
+
}
|
|
668
|
+
declare function AccordionItem({ className, surface, radius, animated, ...props }: AccordionItemProps): react_jsx_runtime.JSX.Element;
|
|
627
669
|
/**
|
|
628
670
|
* Accordion trigger with animated chevron indicator.
|
|
629
671
|
*
|
|
@@ -639,7 +681,9 @@ declare function AccordionTrigger({ className, children, ...props }: React$1.Com
|
|
|
639
681
|
*/
|
|
640
682
|
declare function AccordionContent({ className, children, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
641
683
|
|
|
642
|
-
|
|
684
|
+
interface TabsProps extends Omit<React$1.ComponentProps<typeof TabsPrimitive.Root>, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
685
|
+
}
|
|
686
|
+
declare function Tabs({ className, orientation, surface, radius, animated, ...props }: TabsProps): react_jsx_runtime.JSX.Element;
|
|
643
687
|
declare const tabsListVariants: (props?: ({
|
|
644
688
|
variant?: "line" | "default" | null | undefined;
|
|
645
689
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -655,16 +699,27 @@ declare function TabsList({ className, variant, children, ...props }: React$1.Co
|
|
|
655
699
|
declare function TabsTrigger({ className, children, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
656
700
|
declare function TabsContent({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
657
701
|
|
|
658
|
-
|
|
702
|
+
type InputBaseProps = Omit<React$1.ComponentProps<"input">, "onDrag" | "onDragStart" | "onDragEnd" | "onAnimationStart" | "onAnimationEnd">;
|
|
703
|
+
interface InputProps extends Omit<InputBaseProps, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
704
|
+
}
|
|
705
|
+
declare function Input({ className, type, surface, radius, animated, ...props }: InputProps): react_jsx_runtime.JSX.Element;
|
|
659
706
|
|
|
660
|
-
|
|
707
|
+
type TextareaBaseProps = Omit<React$1.ComponentProps<"textarea">, "onDrag" | "onDragStart" | "onDragEnd" | "onAnimationStart" | "onAnimationEnd">;
|
|
708
|
+
interface TextareaProps extends Omit<TextareaBaseProps, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
709
|
+
}
|
|
710
|
+
declare function Textarea({ className, surface, radius, animated, ...props }: TextareaProps): react_jsx_runtime.JSX.Element;
|
|
661
711
|
|
|
662
|
-
|
|
712
|
+
interface CheckboxProps extends Omit<React$1.ComponentProps<typeof CheckboxPrimitive.Root>, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
713
|
+
}
|
|
714
|
+
declare function Checkbox({ className, surface, radius, animated, ...props }: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
663
715
|
|
|
664
|
-
|
|
716
|
+
interface SwitchProps extends Omit<React$1.ComponentProps<typeof SwitchPrimitive.Root>, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
665
717
|
size?: "sm" | "default";
|
|
666
|
-
}
|
|
718
|
+
}
|
|
719
|
+
declare function Switch({ className, size, surface, radius, animated, ...props }: SwitchProps): react_jsx_runtime.JSX.Element;
|
|
667
720
|
|
|
721
|
+
interface ProgressProps extends Omit<React$1.ComponentProps<typeof ProgressPrimitive.Root>, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
722
|
+
}
|
|
668
723
|
/**
|
|
669
724
|
* Progress bar with smooth spring animation.
|
|
670
725
|
*
|
|
@@ -676,7 +731,7 @@ declare function Switch({ className, size, ...props }: React$1.ComponentProps<ty
|
|
|
676
731
|
* @example
|
|
677
732
|
* <Progress value={42} className="w-full" />
|
|
678
733
|
*/
|
|
679
|
-
declare function Progress({ className, value, ...props }:
|
|
734
|
+
declare function Progress({ className, value, surface, radius, animated, ...props }: ProgressProps): react_jsx_runtime.JSX.Element;
|
|
680
735
|
|
|
681
736
|
/**
|
|
682
737
|
* Badge variant definitions.
|
|
@@ -686,11 +741,11 @@ declare function Progress({ className, value, ...props }: React$1.ComponentProps
|
|
|
686
741
|
* size — sm, md
|
|
687
742
|
*/
|
|
688
743
|
declare const badgeVariants: (props?: ({
|
|
689
|
-
variant?: "
|
|
744
|
+
variant?: "outline" | "soft" | "solid" | null | undefined;
|
|
690
745
|
size?: "sm" | "md" | null | undefined;
|
|
691
746
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
692
747
|
/** Props for the Saasflare Badge component */
|
|
693
|
-
interface BadgeProps extends Omit<React$1.ComponentProps<"span">, "onDrag" | "onDragStart" | "onDragEnd" | "onAnimationStart" | "onAnimationEnd">, VariantProps<typeof badgeVariants
|
|
748
|
+
interface BadgeProps extends Omit<React$1.ComponentProps<"span">, "onDrag" | "onDragStart" | "onDragEnd" | "onAnimationStart" | "onAnimationEnd" | keyof SaasflareComponentProps>, VariantProps<typeof badgeVariants>, SaasflareComponentProps {
|
|
694
749
|
/** Render as child element (Radix Slot pattern) */
|
|
695
750
|
asChild?: boolean;
|
|
696
751
|
/** Semantic color intent */
|
|
@@ -714,21 +769,27 @@ interface BadgeProps extends Omit<React$1.ComponentProps<"span">, "onDrag" | "on
|
|
|
714
769
|
* // Legacy API (deprecated but supported)
|
|
715
770
|
* <Badge variant="destructive">Error</Badge>
|
|
716
771
|
*/
|
|
717
|
-
declare function Badge({ className, variant: variantProp, size, intent: intentProp, asChild, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
772
|
+
declare function Badge({ className, variant: variantProp, size, intent: intentProp, asChild, surface, radius, animated, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
718
773
|
|
|
719
774
|
declare function TooltipProvider({ delayDuration, ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Provider>): react_jsx_runtime.JSX.Element;
|
|
720
775
|
declare function Tooltip({ ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
721
776
|
declare function TooltipTrigger({ ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
722
|
-
|
|
777
|
+
interface TooltipContentProps extends Omit<React$1.ComponentProps<typeof TooltipPrimitive.Content>, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
778
|
+
}
|
|
779
|
+
declare function TooltipContent({ className, sideOffset, children, surface, radius, animated, ...props }: TooltipContentProps): react_jsx_runtime.JSX.Element;
|
|
723
780
|
|
|
724
781
|
declare function Popover({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
725
782
|
declare function PopoverTrigger({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
726
783
|
declare function PopoverAnchor({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Anchor>): react_jsx_runtime.JSX.Element;
|
|
727
|
-
|
|
784
|
+
interface PopoverContentProps extends Omit<React$1.ComponentProps<typeof PopoverPrimitive.Content>, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
785
|
+
}
|
|
786
|
+
declare function PopoverContent({ className, align, sideOffset, surface, radius, animated, ...props }: PopoverContentProps): react_jsx_runtime.JSX.Element;
|
|
728
787
|
|
|
729
788
|
declare function HoverCard({ ...props }: React$1.ComponentProps<typeof HoverCardPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
730
789
|
declare function HoverCardTrigger({ ...props }: React$1.ComponentProps<typeof HoverCardPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
731
|
-
|
|
790
|
+
interface HoverCardContentProps extends Omit<React$1.ComponentProps<typeof HoverCardPrimitive.Content>, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
791
|
+
}
|
|
792
|
+
declare function HoverCardContent({ className, align, sideOffset, surface, radius, animated, ...props }: HoverCardContentProps): react_jsx_runtime.JSX.Element;
|
|
732
793
|
|
|
733
794
|
declare function Select({ ...props }: React$1.ComponentProps<typeof SelectPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
734
795
|
declare function SelectGroup({ ...props }: React$1.ComponentProps<typeof SelectPrimitive.Group>): react_jsx_runtime.JSX.Element;
|
|
@@ -736,7 +797,9 @@ declare function SelectValue({ ...props }: React$1.ComponentProps<typeof SelectP
|
|
|
736
797
|
declare function SelectTrigger({ className, size, children, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
737
798
|
size?: "sm" | "default";
|
|
738
799
|
}): react_jsx_runtime.JSX.Element;
|
|
739
|
-
|
|
800
|
+
interface SelectContentProps extends Omit<React$1.ComponentProps<typeof SelectPrimitive.Content>, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
801
|
+
}
|
|
802
|
+
declare function SelectContent({ className, children, position, surface, radius, animated, ...props }: SelectContentProps): react_jsx_runtime.JSX.Element;
|
|
740
803
|
declare function SelectLabel({ className, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Label>): react_jsx_runtime.JSX.Element;
|
|
741
804
|
declare function SelectItem({ className, children, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
742
805
|
declare function SelectSeparator({ className, ...props }: React$1.ComponentProps<typeof SelectPrimitive.Separator>): react_jsx_runtime.JSX.Element;
|
|
@@ -749,7 +812,9 @@ declare function DropdownMenuTrigger({ className, ...props }: React$1.ComponentP
|
|
|
749
812
|
declare function DropdownMenuGroup({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Group>): react_jsx_runtime.JSX.Element;
|
|
750
813
|
declare function DropdownMenuSub({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Sub>): react_jsx_runtime.JSX.Element;
|
|
751
814
|
declare function DropdownMenuRadioGroup({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): react_jsx_runtime.JSX.Element;
|
|
752
|
-
|
|
815
|
+
interface DropdownMenuContentProps extends Omit<React$1.ComponentProps<typeof DropdownMenuPrimitive.Content>, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
816
|
+
}
|
|
817
|
+
declare function DropdownMenuContent({ className, sideOffset, surface, radius, animated, ...props }: DropdownMenuContentProps): react_jsx_runtime.JSX.Element;
|
|
753
818
|
declare function DropdownMenuItem({ className, inset, variant, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
754
819
|
inset?: boolean;
|
|
755
820
|
variant?: "default" | "destructive";
|
|
@@ -769,19 +834,22 @@ declare function DropdownMenuSubContent({ className, ...props }: React$1.Compone
|
|
|
769
834
|
declare function Sheet({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
770
835
|
declare function SheetTrigger({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
771
836
|
declare function SheetClose({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Close>): react_jsx_runtime.JSX.Element;
|
|
772
|
-
|
|
837
|
+
interface SheetContentProps extends Omit<React$1.ComponentProps<typeof DialogPrimitive.Content>, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
773
838
|
side?: "top" | "right" | "bottom" | "left";
|
|
774
839
|
showCloseButton?: boolean;
|
|
775
|
-
}
|
|
840
|
+
}
|
|
841
|
+
declare function SheetContent({ className, children, side, showCloseButton, surface, radius, animated, ...props }: SheetContentProps): react_jsx_runtime.JSX.Element;
|
|
776
842
|
declare function SheetHeader({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
777
843
|
declare function SheetFooter({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
778
844
|
declare function SheetTitle({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
|
|
779
845
|
declare function SheetDescription({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
|
|
780
846
|
|
|
781
|
-
|
|
847
|
+
interface SliderProps extends Omit<React$1.ComponentProps<typeof SliderPrimitive.Root>, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
848
|
+
}
|
|
849
|
+
declare function Slider({ className, defaultValue, value, min, max, surface, radius, animated, ...props }: SliderProps): react_jsx_runtime.JSX.Element;
|
|
782
850
|
|
|
783
851
|
/** Props for the Saasflare Alert component */
|
|
784
|
-
interface AlertProps extends React$1.ComponentProps<"div"
|
|
852
|
+
interface AlertProps extends Omit<React$1.ComponentProps<"div">, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
785
853
|
/** Semantic color intent */
|
|
786
854
|
intent?: Intent | "neutral";
|
|
787
855
|
/**
|
|
@@ -812,7 +880,7 @@ interface AlertProps extends React$1.ComponentProps<"div"> {
|
|
|
812
880
|
* <AlertDescription>Something went wrong.</AlertDescription>
|
|
813
881
|
* </Alert>
|
|
814
882
|
*/
|
|
815
|
-
declare function Alert({ className, intent: intentProp, variant, ...props }: AlertProps): react_jsx_runtime.JSX.Element;
|
|
883
|
+
declare function Alert({ className, intent: intentProp, variant, surface, radius, animated, ...props }: AlertProps): react_jsx_runtime.JSX.Element;
|
|
816
884
|
/**
|
|
817
885
|
* Alert title text.
|
|
818
886
|
*
|
|
@@ -828,9 +896,10 @@ declare function AlertTitle({ className, ...props }: React$1.ComponentProps<"div
|
|
|
828
896
|
*/
|
|
829
897
|
declare function AlertDescription({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
830
898
|
|
|
831
|
-
|
|
899
|
+
interface AvatarProps extends Omit<React$1.ComponentProps<typeof AvatarPrimitive.Root>, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
832
900
|
size?: "default" | "sm" | "lg";
|
|
833
|
-
}
|
|
901
|
+
}
|
|
902
|
+
declare function Avatar({ className, size, surface, radius, animated, ...props }: AvatarProps): react_jsx_runtime.JSX.Element;
|
|
834
903
|
declare function AvatarImage({ className, ...props }: React$1.ComponentProps<typeof AvatarPrimitive.Image>): react_jsx_runtime.JSX.Element;
|
|
835
904
|
declare function AvatarFallback({ className, ...props }: React$1.ComponentProps<typeof AvatarPrimitive.Fallback>): react_jsx_runtime.JSX.Element;
|
|
836
905
|
declare function AvatarBadge({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
@@ -847,7 +916,9 @@ declare function ContextMenuSubTrigger({ className, inset, children, ...props }:
|
|
|
847
916
|
inset?: boolean;
|
|
848
917
|
}): react_jsx_runtime.JSX.Element;
|
|
849
918
|
declare function ContextMenuSubContent({ className, ...props }: React$1.ComponentProps<typeof ContextMenuPrimitive.SubContent>): react_jsx_runtime.JSX.Element;
|
|
850
|
-
|
|
919
|
+
interface ContextMenuContentProps extends Omit<React$1.ComponentProps<typeof ContextMenuPrimitive.Content>, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
920
|
+
}
|
|
921
|
+
declare function ContextMenuContent({ className, surface, radius, animated, ...props }: ContextMenuContentProps): react_jsx_runtime.JSX.Element;
|
|
851
922
|
declare function ContextMenuItem({ className, inset, variant, ...props }: React$1.ComponentProps<typeof ContextMenuPrimitive.Item> & {
|
|
852
923
|
inset?: boolean;
|
|
853
924
|
variant?: "default" | "destructive";
|
|
@@ -860,13 +931,17 @@ declare function ContextMenuLabel({ className, inset, ...props }: React$1.Compon
|
|
|
860
931
|
declare function ContextMenuSeparator({ className, ...props }: React$1.ComponentProps<typeof ContextMenuPrimitive.Separator>): react_jsx_runtime.JSX.Element;
|
|
861
932
|
declare function ContextMenuShortcut({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
862
933
|
|
|
863
|
-
|
|
934
|
+
interface MenubarProps extends Omit<React$1.ComponentProps<typeof MenubarPrimitive.Root>, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
935
|
+
}
|
|
936
|
+
declare function Menubar({ className, surface, radius, animated, ...props }: MenubarProps): react_jsx_runtime.JSX.Element;
|
|
864
937
|
declare function MenubarMenu({ ...props }: React$1.ComponentProps<typeof MenubarPrimitive.Menu>): react_jsx_runtime.JSX.Element;
|
|
865
938
|
declare function MenubarGroup({ ...props }: React$1.ComponentProps<typeof MenubarPrimitive.Group>): react_jsx_runtime.JSX.Element;
|
|
866
939
|
declare function MenubarPortal({ ...props }: React$1.ComponentProps<typeof MenubarPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
867
940
|
declare function MenubarRadioGroup({ ...props }: React$1.ComponentProps<typeof MenubarPrimitive.RadioGroup>): react_jsx_runtime.JSX.Element;
|
|
868
941
|
declare function MenubarTrigger({ className, ...props }: React$1.ComponentProps<typeof MenubarPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
869
|
-
|
|
942
|
+
interface MenubarContentProps extends Omit<React$1.ComponentProps<typeof MenubarPrimitive.Content>, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
943
|
+
}
|
|
944
|
+
declare function MenubarContent({ className, align, alignOffset, sideOffset, surface, radius, animated, ...props }: MenubarContentProps): react_jsx_runtime.JSX.Element;
|
|
870
945
|
declare function MenubarItem({ className, inset, variant, ...props }: React$1.ComponentProps<typeof MenubarPrimitive.Item> & {
|
|
871
946
|
inset?: boolean;
|
|
872
947
|
variant?: "default" | "destructive";
|
|
@@ -884,9 +959,10 @@ declare function MenubarSubTrigger({ className, inset, children, ...props }: Rea
|
|
|
884
959
|
}): react_jsx_runtime.JSX.Element;
|
|
885
960
|
declare function MenubarSubContent({ className, ...props }: React$1.ComponentProps<typeof MenubarPrimitive.SubContent>): react_jsx_runtime.JSX.Element;
|
|
886
961
|
|
|
887
|
-
|
|
962
|
+
interface NavigationMenuProps extends Omit<React$1.ComponentProps<typeof NavigationMenuPrimitive.Root>, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
888
963
|
viewport?: boolean;
|
|
889
|
-
}
|
|
964
|
+
}
|
|
965
|
+
declare function NavigationMenu({ className, children, viewport, surface, radius, animated, ...props }: NavigationMenuProps): react_jsx_runtime.JSX.Element;
|
|
890
966
|
declare function NavigationMenuList({ className, ...props }: React$1.ComponentProps<typeof NavigationMenuPrimitive.List>): react_jsx_runtime.JSX.Element;
|
|
891
967
|
declare function NavigationMenuItem({ className, ...props }: React$1.ComponentProps<typeof NavigationMenuPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
892
968
|
declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
@@ -898,7 +974,7 @@ declare function NavigationMenuIndicator({ className, ...props }: React$1.Compon
|
|
|
898
974
|
|
|
899
975
|
/** Component the skeleton imitates — drives radius from the design tokens. */
|
|
900
976
|
type SkeletonAs = "avatar" | "text" | "card";
|
|
901
|
-
interface SkeletonProps extends React.ComponentProps<"div"
|
|
977
|
+
interface SkeletonProps extends Omit<React.ComponentProps<"div">, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
902
978
|
/**
|
|
903
979
|
* Component shape to imitate. When set, radius follows the design-system
|
|
904
980
|
* scale (and at `data-radius="pill"`, all variants collapse to fully rounded
|
|
@@ -918,36 +994,51 @@ interface SkeletonProps extends React.ComponentProps<"div"> {
|
|
|
918
994
|
* @component
|
|
919
995
|
* @package ui
|
|
920
996
|
*/
|
|
921
|
-
declare function Skeleton({ as, className, style, ...props }: SkeletonProps): react_jsx_runtime.JSX.Element;
|
|
997
|
+
declare function Skeleton({ as, className, style, surface, radius, animated, ...props }: SkeletonProps): react_jsx_runtime.JSX.Element;
|
|
922
998
|
|
|
923
999
|
declare const toggleVariants: (props?: ({
|
|
924
|
-
variant?: "
|
|
1000
|
+
variant?: "outline" | "default" | null | undefined;
|
|
925
1001
|
size?: "sm" | "lg" | "default" | null | undefined;
|
|
926
1002
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
927
|
-
|
|
1003
|
+
interface ToggleProps extends Omit<React$1.ComponentProps<typeof TogglePrimitive.Root>, keyof SaasflareComponentProps>, VariantProps<typeof toggleVariants>, SaasflareComponentProps {
|
|
1004
|
+
}
|
|
1005
|
+
declare function Toggle({ className, variant, size, surface, radius, animated, ...props }: ToggleProps): react_jsx_runtime.JSX.Element;
|
|
928
1006
|
|
|
929
|
-
|
|
1007
|
+
type ToggleGroupProps = React$1.ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants> & SaasflareComponentProps & {
|
|
930
1008
|
spacing?: number;
|
|
931
|
-
}
|
|
1009
|
+
};
|
|
1010
|
+
declare function ToggleGroup({ className, variant, size, spacing, children, surface, radius, animated, ...props }: ToggleGroupProps): react_jsx_runtime.JSX.Element;
|
|
932
1011
|
declare function ToggleGroupItem({ className, children, variant, size, ...props }: React$1.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
|
|
933
1012
|
|
|
934
|
-
|
|
1013
|
+
interface RadioGroupProps extends Omit<React$1.ComponentProps<typeof RadioGroupPrimitive.Root>, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
1014
|
+
}
|
|
1015
|
+
declare function RadioGroup({ className, surface, radius, animated, ...props }: RadioGroupProps): react_jsx_runtime.JSX.Element;
|
|
935
1016
|
declare function RadioGroupItem({ className, ...props }: React$1.ComponentProps<typeof RadioGroupPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
936
1017
|
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
declare function
|
|
1018
|
+
interface CollapsibleContentProps extends Omit<React$1.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
1019
|
+
}
|
|
1020
|
+
declare function Collapsible({ ...props }: React$1.ComponentProps<typeof CollapsiblePrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
1021
|
+
declare function CollapsibleTrigger({ ...props }: React$1.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): react_jsx_runtime.JSX.Element;
|
|
1022
|
+
declare function CollapsibleContent({ surface, radius, animated, ...props }: CollapsibleContentProps): react_jsx_runtime.JSX.Element;
|
|
940
1023
|
|
|
941
|
-
|
|
1024
|
+
interface SpinnerProps extends Omit<React.ComponentProps<"svg">, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
1025
|
+
}
|
|
1026
|
+
declare function Spinner({ className, surface, radius, animated, ...props }: SpinnerProps): react_jsx_runtime.JSX.Element;
|
|
942
1027
|
|
|
943
|
-
|
|
1028
|
+
interface ScrollAreaProps extends Omit<React$1.ComponentProps<typeof ScrollAreaPrimitive.Root>, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
1029
|
+
}
|
|
1030
|
+
declare function ScrollArea({ className, children, surface, radius, animated, ...props }: ScrollAreaProps): react_jsx_runtime.JSX.Element;
|
|
944
1031
|
declare function ScrollBar({ className, orientation, ...props }: React$1.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): react_jsx_runtime.JSX.Element;
|
|
945
1032
|
|
|
946
|
-
|
|
1033
|
+
interface SaasflareToasterProps extends Omit<ToasterProps, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
1034
|
+
}
|
|
1035
|
+
declare const Toaster: ({ surface, radius, animated, ...props }: SaasflareToasterProps) => react_jsx_runtime.JSX.Element;
|
|
947
1036
|
|
|
948
1037
|
declare function AspectRatio({ ...props }: React.ComponentProps<typeof AspectRatioPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
949
1038
|
|
|
950
|
-
|
|
1039
|
+
interface BreadcrumbProps extends Omit<React$1.ComponentProps<"nav">, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
1040
|
+
}
|
|
1041
|
+
declare function Breadcrumb({ surface, radius, animated, ...props }: BreadcrumbProps): react_jsx_runtime.JSX.Element;
|
|
951
1042
|
declare function BreadcrumbList({ className, ...props }: React$1.ComponentProps<"ol">): react_jsx_runtime.JSX.Element;
|
|
952
1043
|
declare function BreadcrumbItem({ className, ...props }: React$1.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
|
|
953
1044
|
declare function BreadcrumbLink({ asChild, className, ...props }: React$1.ComponentProps<"a"> & {
|
|
@@ -986,7 +1077,9 @@ declare function DirectionProvider({ dir, direction, children, }: React$1.Compon
|
|
|
986
1077
|
}): react_jsx_runtime.JSX.Element;
|
|
987
1078
|
declare const useDirection: typeof Direction.useDirection;
|
|
988
1079
|
|
|
989
|
-
|
|
1080
|
+
interface EmptyProps extends Omit<React.ComponentProps<"div">, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
1081
|
+
}
|
|
1082
|
+
declare function Empty({ className, surface, radius, animated, ...props }: EmptyProps): react_jsx_runtime.JSX.Element;
|
|
990
1083
|
declare function EmptyHeader({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
991
1084
|
declare const emptyMediaVariants: (props?: ({
|
|
992
1085
|
variant?: "default" | "icon" | null | undefined;
|
|
@@ -1103,7 +1196,7 @@ declare function InputGroupTextarea({ className, ...props }: React$1.ComponentPr
|
|
|
1103
1196
|
declare function ItemGroup({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
1104
1197
|
declare function ItemSeparator({ className, ...props }: React$1.ComponentProps<typeof Separator>): react_jsx_runtime.JSX.Element;
|
|
1105
1198
|
declare const itemVariants: (props?: ({
|
|
1106
|
-
variant?: "
|
|
1199
|
+
variant?: "outline" | "default" | "muted" | null | undefined;
|
|
1107
1200
|
size?: "sm" | "default" | null | undefined;
|
|
1108
1201
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1109
1202
|
declare function Item({ className, variant, size, asChild, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof itemVariants> & {
|
|
@@ -1120,12 +1213,15 @@ declare function ItemActions({ className, ...props }: React$1.ComponentProps<"di
|
|
|
1120
1213
|
declare function ItemHeader({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
1121
1214
|
declare function ItemFooter({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
1122
1215
|
|
|
1123
|
-
|
|
1216
|
+
interface KbdProps extends Omit<React.ComponentProps<"kbd">, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
1217
|
+
}
|
|
1218
|
+
declare function Kbd({ className, surface, radius, animated, ...props }: KbdProps): react_jsx_runtime.JSX.Element;
|
|
1124
1219
|
declare function KbdGroup({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
1125
1220
|
|
|
1126
|
-
|
|
1221
|
+
interface NativeSelectProps extends Omit<React$1.ComponentProps<"select">, "size" | keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
1127
1222
|
size?: "sm" | "default";
|
|
1128
|
-
}
|
|
1223
|
+
}
|
|
1224
|
+
declare function NativeSelect({ className, size, surface, radius, animated, ...props }: NativeSelectProps): react_jsx_runtime.JSX.Element;
|
|
1129
1225
|
declare function NativeSelectOption({ ...props }: React$1.ComponentProps<"option">): react_jsx_runtime.JSX.Element;
|
|
1130
1226
|
declare function NativeSelectOptGroup({ className, ...props }: React$1.ComponentProps<"optgroup">): react_jsx_runtime.JSX.Element;
|
|
1131
1227
|
|
|
@@ -1141,7 +1237,9 @@ declare function PaginationPrevious({ className, ...props }: React$1.ComponentPr
|
|
|
1141
1237
|
declare function PaginationNext({ className, ...props }: React$1.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
|
|
1142
1238
|
declare function PaginationEllipsis({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
1143
1239
|
|
|
1144
|
-
|
|
1240
|
+
interface TableProps extends Omit<React$1.ComponentProps<"table">, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
1241
|
+
}
|
|
1242
|
+
declare function Table({ className, surface, radius, animated, ...props }: TableProps): react_jsx_runtime.JSX.Element;
|
|
1145
1243
|
declare function TableHeader({ className, ...props }: React$1.ComponentProps<"thead">): react_jsx_runtime.JSX.Element;
|
|
1146
1244
|
declare function TableBody({ className, ...props }: React$1.ComponentProps<"tbody">): react_jsx_runtime.JSX.Element;
|
|
1147
1245
|
declare function TableFooter({ className, ...props }: React$1.ComponentProps<"tfoot">): react_jsx_runtime.JSX.Element;
|
|
@@ -1185,11 +1283,12 @@ interface TooltipItem {
|
|
|
1185
1283
|
* />
|
|
1186
1284
|
* ```
|
|
1187
1285
|
*/
|
|
1188
|
-
|
|
1286
|
+
interface AnimatedTooltipProps extends SaasflareComponentProps {
|
|
1189
1287
|
items: TooltipItem[];
|
|
1190
|
-
}
|
|
1288
|
+
}
|
|
1289
|
+
declare const AnimatedTooltip: ({ items, animated, }: AnimatedTooltipProps) => JSX.Element;
|
|
1191
1290
|
|
|
1192
|
-
interface TypewriterTextProps {
|
|
1291
|
+
interface TypewriterTextProps extends SaasflareComponentProps {
|
|
1193
1292
|
text: string;
|
|
1194
1293
|
/** Delay between each word in ms (default: 40) */
|
|
1195
1294
|
wordDelay?: number;
|
|
@@ -1203,7 +1302,7 @@ interface TypewriterTextProps {
|
|
|
1203
1302
|
/**
|
|
1204
1303
|
* Typewriter component that reveals text word-by-word
|
|
1205
1304
|
*/
|
|
1206
|
-
declare function TypewriterText({ text, wordDelay, skipAnimation, onComplete, className, }: TypewriterTextProps): react_jsx_runtime.JSX.Element;
|
|
1305
|
+
declare function TypewriterText({ text, wordDelay, skipAnimation, onComplete, className, animated, }: TypewriterTextProps): react_jsx_runtime.JSX.Element;
|
|
1207
1306
|
|
|
1208
1307
|
type SidebarContextProps = {
|
|
1209
1308
|
state: "expanded" | "collapsed" | "overlayed";
|
|
@@ -1222,11 +1321,12 @@ declare function SidebarProvider({ defaultOpen: defaultOpenProp, open: openProp,
|
|
|
1222
1321
|
}): react_jsx_runtime.JSX.Element;
|
|
1223
1322
|
declare function SidebarTrigger({ className, onClick, ...props }: React$1.ComponentProps<typeof Button>): react_jsx_runtime.JSX.Element;
|
|
1224
1323
|
|
|
1225
|
-
|
|
1324
|
+
interface SidebarProps extends Omit<React$1.ComponentProps<"div">, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
1226
1325
|
side?: "left" | "right";
|
|
1227
1326
|
variant?: "sidebar" | "floating" | "inset";
|
|
1228
1327
|
collapsible?: "offcanvas" | "icon" | "none";
|
|
1229
|
-
}
|
|
1328
|
+
}
|
|
1329
|
+
declare function Sidebar({ side, variant, collapsible, className, children, surface, radius, animated, ...props }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
1230
1330
|
declare function SidebarRail({ className, ...props }: React$1.ComponentProps<"button">): react_jsx_runtime.JSX.Element;
|
|
1231
1331
|
declare function SidebarInset({ className, ...props }: React$1.ComponentProps<"main">): react_jsx_runtime.JSX.Element;
|
|
1232
1332
|
declare function SidebarInput({ className, ...props }: React$1.ComponentProps<typeof Input>): react_jsx_runtime.JSX.Element;
|
|
@@ -1244,7 +1344,7 @@ declare function SidebarGroupAction({ className, asChild, ...props }: React$1.Co
|
|
|
1244
1344
|
declare function SidebarGroupContent({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
1245
1345
|
|
|
1246
1346
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
1247
|
-
variant?: "
|
|
1347
|
+
variant?: "outline" | "default" | null | undefined;
|
|
1248
1348
|
size?: "sm" | "lg" | "default" | null | undefined;
|
|
1249
1349
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1250
1350
|
declare function SidebarMenu({ className, ...props }: React$1.ComponentProps<"ul">): react_jsx_runtime.JSX.Element;
|
|
@@ -1271,7 +1371,7 @@ declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...p
|
|
|
1271
1371
|
}): react_jsx_runtime.JSX.Element;
|
|
1272
1372
|
|
|
1273
1373
|
/** Props for the PageHeader component */
|
|
1274
|
-
interface PageHeaderProps extends React$1.ComponentProps<"div"
|
|
1374
|
+
interface PageHeaderProps extends Omit<React$1.ComponentProps<"div">, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
1275
1375
|
/** Page title */
|
|
1276
1376
|
title: string;
|
|
1277
1377
|
/** Optional description below the title */
|
|
@@ -1305,10 +1405,10 @@ interface PageHeaderProps extends React$1.ComponentProps<"div"> {
|
|
|
1305
1405
|
* }
|
|
1306
1406
|
* />
|
|
1307
1407
|
*/
|
|
1308
|
-
declare function PageHeader({ title, description, breadcrumbs, actions, className, ...props }: PageHeaderProps): react_jsx_runtime.JSX.Element;
|
|
1408
|
+
declare function PageHeader({ title, description, breadcrumbs, actions, className, surface, radius, animated, ...props }: PageHeaderProps): react_jsx_runtime.JSX.Element;
|
|
1309
1409
|
|
|
1310
1410
|
/** Props for the SectionCard component */
|
|
1311
|
-
interface SectionCardProps extends React$1.ComponentProps<"div"
|
|
1411
|
+
interface SectionCardProps extends Omit<React$1.ComponentProps<"div">, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
1312
1412
|
/** Section title */
|
|
1313
1413
|
title: string;
|
|
1314
1414
|
/** Optional description below the title */
|
|
@@ -1338,7 +1438,7 @@ interface SectionCardProps extends React$1.ComponentProps<"div"> {
|
|
|
1338
1438
|
* <p>Once deleted, this project cannot be recovered.</p>
|
|
1339
1439
|
* </SectionCard>
|
|
1340
1440
|
*/
|
|
1341
|
-
declare function SectionCard({ title, description, footer, headerAction, className, children, ...props }: SectionCardProps): react_jsx_runtime.JSX.Element;
|
|
1441
|
+
declare function SectionCard({ title, description, footer, headerAction, className, children, surface, radius, animated, ...props }: SectionCardProps): react_jsx_runtime.JSX.Element;
|
|
1342
1442
|
|
|
1343
1443
|
/** Trend indicator data */
|
|
1344
1444
|
interface MetricTrend {
|
|
@@ -1348,7 +1448,7 @@ interface MetricTrend {
|
|
|
1348
1448
|
direction: "up" | "down" | "flat";
|
|
1349
1449
|
}
|
|
1350
1450
|
/** Props for the MetricCard component */
|
|
1351
|
-
interface MetricCardProps extends React$1.ComponentProps<"div"
|
|
1451
|
+
interface MetricCardProps extends Omit<React$1.ComponentProps<"div">, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
1352
1452
|
/** Metric label (e.g. "Revenue", "Active Users") */
|
|
1353
1453
|
label: string;
|
|
1354
1454
|
/** Formatted metric value (e.g. "$12,345", "1,234") */
|
|
@@ -1376,10 +1476,10 @@ interface MetricCardProps extends React$1.ComponentProps<"div"> {
|
|
|
1376
1476
|
* trend={{ value: 8.2, direction: "up" }}
|
|
1377
1477
|
* />
|
|
1378
1478
|
*/
|
|
1379
|
-
declare function MetricCard({ label, value, trend, icon, className, ...props }: MetricCardProps): react_jsx_runtime.JSX.Element;
|
|
1479
|
+
declare function MetricCard({ label, value, trend, icon, className, surface, radius, animated, ...props }: MetricCardProps): react_jsx_runtime.JSX.Element;
|
|
1380
1480
|
|
|
1381
1481
|
/** Props for the EmptyState component */
|
|
1382
|
-
interface EmptyStateProps extends React$1.ComponentProps<"div"
|
|
1482
|
+
interface EmptyStateProps extends Omit<React$1.ComponentProps<"div">, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
1383
1483
|
/** Icon or illustration element */
|
|
1384
1484
|
icon?: React$1.ReactNode;
|
|
1385
1485
|
/** Title text */
|
|
@@ -1408,10 +1508,10 @@ interface EmptyStateProps extends React$1.ComponentProps<"div"> {
|
|
|
1408
1508
|
* action={<Button>Upload File</Button>}
|
|
1409
1509
|
* />
|
|
1410
1510
|
*/
|
|
1411
|
-
declare function EmptyState({ icon, title, description, action, className, ...props }: EmptyStateProps): react_jsx_runtime.JSX.Element;
|
|
1511
|
+
declare function EmptyState({ icon, title, description, action, className, surface, radius, animated, ...props }: EmptyStateProps): react_jsx_runtime.JSX.Element;
|
|
1412
1512
|
|
|
1413
1513
|
/** Props for the SearchField component */
|
|
1414
|
-
interface SearchFieldProps extends Omit<React$1.ComponentProps<"input">, "type"
|
|
1514
|
+
interface SearchFieldProps extends Omit<React$1.ComponentProps<"input">, "type" | keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
1415
1515
|
/** Show loading spinner instead of search icon */
|
|
1416
1516
|
loading?: boolean;
|
|
1417
1517
|
/** Callback when clear button is clicked */
|
|
@@ -1436,10 +1536,10 @@ interface SearchFieldProps extends Omit<React$1.ComponentProps<"input">, "type">
|
|
|
1436
1536
|
* loading={isSearching}
|
|
1437
1537
|
* />
|
|
1438
1538
|
*/
|
|
1439
|
-
declare function SearchField({ className, loading, onClear, value, ...props }: SearchFieldProps): react_jsx_runtime.JSX.Element;
|
|
1539
|
+
declare function SearchField({ className, loading, onClear, value, surface, radius, animated, ...props }: SearchFieldProps): react_jsx_runtime.JSX.Element;
|
|
1440
1540
|
|
|
1441
1541
|
/** Props for the SettingsSection component */
|
|
1442
|
-
interface SettingsSectionProps extends React$1.ComponentProps<"div"
|
|
1542
|
+
interface SettingsSectionProps extends Omit<React$1.ComponentProps<"div">, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
1443
1543
|
/** Setting label */
|
|
1444
1544
|
label: string;
|
|
1445
1545
|
/** Optional description of the setting */
|
|
@@ -1462,10 +1562,10 @@ interface SettingsSectionProps extends React$1.ComponentProps<"div"> {
|
|
|
1462
1562
|
* <Button variant="outline" size="sm">Enable</Button>
|
|
1463
1563
|
* </SettingsSection>
|
|
1464
1564
|
*/
|
|
1465
|
-
declare function SettingsSection({ label, description, className, children, ...props }: SettingsSectionProps): react_jsx_runtime.JSX.Element;
|
|
1565
|
+
declare function SettingsSection({ label, description, className, children, surface, radius, animated, ...props }: SettingsSectionProps): react_jsx_runtime.JSX.Element;
|
|
1466
1566
|
|
|
1467
1567
|
/** Props for the PricingCard component */
|
|
1468
|
-
interface PricingCardProps extends React$1.ComponentProps<"div"
|
|
1568
|
+
interface PricingCardProps extends Omit<React$1.ComponentProps<"div">, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
1469
1569
|
/** Plan name (e.g. "Starter", "Pro", "Enterprise") */
|
|
1470
1570
|
name: string;
|
|
1471
1571
|
/** Formatted price (e.g. "$29", "Free", "$99") */
|
|
@@ -1506,8 +1606,10 @@ interface PricingCardProps extends React$1.ComponentProps<"div"> {
|
|
|
1506
1606
|
* featured
|
|
1507
1607
|
* />
|
|
1508
1608
|
*/
|
|
1509
|
-
declare function PricingCard({ name, price, period, description, features, cta, featured, className, ...props }: PricingCardProps): react_jsx_runtime.JSX.Element;
|
|
1609
|
+
declare function PricingCard({ name, price, period, description, features, cta, featured, className, surface, radius, animated, ...props }: PricingCardProps): react_jsx_runtime.JSX.Element;
|
|
1510
1610
|
|
|
1611
|
+
interface DataToolbarProps extends Omit<React$1.ComponentProps<"div">, keyof SaasflareComponentProps>, SaasflareComponentProps {
|
|
1612
|
+
}
|
|
1511
1613
|
/**
|
|
1512
1614
|
* Toolbar container for data views.
|
|
1513
1615
|
*
|
|
@@ -1522,7 +1624,7 @@ declare function PricingCard({ name, price, period, description, features, cta,
|
|
|
1522
1624
|
* </DataToolbarActions>
|
|
1523
1625
|
* </DataToolbar>
|
|
1524
1626
|
*/
|
|
1525
|
-
declare function DataToolbar({ className, ...props }:
|
|
1627
|
+
declare function DataToolbar({ className, surface, radius, animated, ...props }: DataToolbarProps): react_jsx_runtime.JSX.Element;
|
|
1526
1628
|
/**
|
|
1527
1629
|
* Search slot within the data toolbar.
|
|
1528
1630
|
*
|
|
@@ -1637,4 +1739,4 @@ interface UserAvatarProps {
|
|
|
1637
1739
|
*/
|
|
1638
1740
|
declare function UserAvatar({ src, name, initials, size, className }: UserAvatarProps): react_jsx_runtime.JSX.Element;
|
|
1639
1741
|
|
|
1640
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, AnimatedTooltip, AspectRatio, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxList, ComboboxSeparator, ComboboxTrigger, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DataToolbar, DataToolbarActions, DataToolbarFilters, DataToolbarSearch, type Density, DirectionProvider, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, type EmptyStateProps, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, Icons, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, Intent, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label, type Measurement, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MetricCard, type MetricCardProps, type MetricTrend, NativeSelect, NativeSelectOptGroup, NativeSelectOption, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, PageHeader, type PageHeaderProps, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PaginationRangeItem, Palette, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PricingCard, type PricingCardProps, Progress, RadioGroup, RadioGroupItem, Radius, RadiusProp, SaasflareComponentProps, SaasflareProvider, type SaasflareProviderProps, SaasflareScript, type SaasflareScriptProps, SaasflareShell, type SaasflareShellProps, ScrollArea, ScrollBar, ScrollToTopButton, SearchField, type SearchFieldProps, SectionCard, type SectionCardProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SettingsSection, type SettingsSectionProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, type Size, Skeleton, Slider, SmoothScrollProvider, type SmoothScrollProviderProps, Spinner, StyleVariant, Surface, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeModeToggle, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, type TooltipItem, TooltipProvider, TooltipTrigger, TopLoadingBar, type TopLoadingBarProps, TypewriterText, type UseDisclosureOptions, type UseDisclosureReturn, type UseMeasureReturn, type UsePaginationOptions, type UsePaginationReturn, UserAvatar, type UserAvatarProps, badgeVariants, buttonGroupVariants, cn, fadeIn, navigationMenuTriggerStyle, noMotion, scaleIn, slideDown, slideUp, spring, springBouncy, springGentle, springStiff, toggleVariants, useAnimation, useDirection, useDisclosure, useFormField, useIsMobile, useMeasure, usePagination, useReducedMotion, useSaasflareTheme, useSidebar };
|
|
1742
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, AnimatedTooltip, AspectRatio, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxList, ComboboxSeparator, ComboboxTrigger, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DataToolbar, DataToolbarActions, DataToolbarFilters, DataToolbarSearch, type Density, DirectionProvider, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, type EmptyStateProps, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, Icons, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, Intent, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label, type Measurement, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MetricCard, type MetricCardProps, type MetricTrend, NativeSelect, NativeSelectOptGroup, NativeSelectOption, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, PageHeader, type PageHeaderProps, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PaginationRangeItem, Palette, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PricingCard, type PricingCardProps, Progress, RadioGroup, RadioGroupItem, Radius, RadiusProp, SaasflareComponentProps, type SaasflareMotion, SaasflareProvider, type SaasflareProviderProps, SaasflareScript, type SaasflareScriptProps, SaasflareShell, type SaasflareShellProps, ScrollArea, ScrollBar, ScrollToTopButton, SearchField, type SearchFieldProps, SectionCard, type SectionCardProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SettingsSection, type SettingsSectionProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, type Size, Skeleton, Slider, SmoothScrollProvider, type SmoothScrollProviderProps, Spinner, StyleVariant, Surface, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeModeToggle, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, type TooltipItem, TooltipProvider, TooltipTrigger, TopLoadingBar, type TopLoadingBarProps, TypewriterText, type UseDisclosureOptions, type UseDisclosureReturn, type UseMeasureReturn, type UsePaginationOptions, type UsePaginationReturn, UserAvatar, type UserAvatarProps, badgeVariants, buttonGroupVariants, cn, fadeIn, navigationMenuTriggerStyle, noMotion, scaleIn, slideDown, slideUp, spring, springBouncy, springGentle, springStiff, toggleVariants, useAnimation, useDirection, useDisclosure, useFormField, useIsMobile, useMeasure, usePagination, useReducedMotion, useSaasflareMotion, useSaasflareTheme, useSidebar };
|