@frigade/react 2.7.5 → 2.8.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.d.ts CHANGED
@@ -7,6 +7,9 @@ import * as _frigade_js from '@frigade/js';
7
7
  import { Flow as Flow$1, FlowStep, PropertyPayload, StatefulFlow } from '@frigade/js';
8
8
  export { _frigade_js as FrigadeJS };
9
9
  import * as Collapsible$1 from '@radix-ui/react-collapsible';
10
+ import { UseFloatingOptions } from '@floating-ui/react';
11
+ import * as react from '@floating-ui/react';
12
+ export { react as FloatingUI };
10
13
  import { UseFormReturn, ControllerFieldState, Message, ValidationRule } from 'react-hook-form';
11
14
  import * as Popover from '@radix-ui/react-popover';
12
15
 
@@ -1533,32 +1536,78 @@ interface CollapsibleProps extends FlowPropsWithoutChildren {
1533
1536
  }
1534
1537
  declare function Collapsible({ flowId, onPrimary, onSecondary, part, stepTypes, ...props }: CollapsibleProps): JSX.Element;
1535
1538
 
1536
- declare function Content({ children }: {
1539
+ declare function Content$1({ children }: {
1537
1540
  children: any;
1538
1541
  }): _emotion_react_jsx_runtime.JSX.Element;
1539
- declare function Root({ children, disabled, onOpenChange, open, ...props }: Collapsible$1.CollapsibleProps & BoxProps): _emotion_react_jsx_runtime.JSX.Element;
1540
- declare function Trigger({ isCompleted, isBlocked, title }: {
1542
+ declare function Root$1({ children, disabled, onOpenChange, open, ...props }: Collapsible$1.CollapsibleProps & BoxProps): _emotion_react_jsx_runtime.JSX.Element;
1543
+ declare function Trigger$1({ isCompleted, isBlocked, title }: {
1541
1544
  isCompleted: any;
1542
1545
  isBlocked: any;
1543
1546
  title: any;
1544
1547
  }): _emotion_react_jsx_runtime.JSX.Element;
1545
1548
 
1546
- declare const CollapsibleStep_Content: typeof Content;
1547
- declare const CollapsibleStep_Root: typeof Root;
1548
- declare const CollapsibleStep_Trigger: typeof Trigger;
1549
1549
  declare namespace CollapsibleStep {
1550
1550
  export {
1551
- CollapsibleStep_Content as Content,
1552
- CollapsibleStep_Root as Root,
1553
- CollapsibleStep_Trigger as Trigger,
1551
+ Content$1 as Content,
1552
+ Root$1 as Root,
1553
+ Trigger$1 as Trigger,
1554
1554
  };
1555
1555
  }
1556
1556
 
1557
+ type AlignValue$1 = 'after' | 'before' | 'center' | 'end' | 'start';
1558
+ type SideValue$1 = 'bottom' | 'left' | 'right' | 'top';
1559
+ interface FloatingProps extends UseFloatingOptions {
1560
+ align?: AlignValue$1;
1561
+ alignOffset?: number;
1562
+ anchor?: string;
1563
+ side?: SideValue$1;
1564
+ sideOffset?: number;
1565
+ }
1566
+
1567
+ interface PopoverRootProps extends FloatingProps {
1568
+ autoScroll?: ScrollIntoViewOptions | boolean;
1569
+ children?: React.ReactNode;
1570
+ defaultOpen?: boolean;
1571
+ modal?: boolean;
1572
+ spotlight?: boolean;
1573
+ }
1574
+ declare function Root({ align, alignOffset, anchor, autoScroll, children, defaultOpen, modal, onOpenChange, open, side, sideOffset, spotlight, ...floatingProps }: PopoverRootProps): _emotion_react_jsx_runtime.JSX.Element;
1575
+
1576
+ interface PopoverContentProps extends BoxProps {
1577
+ }
1578
+ declare function Content({ children, css, part, style, ...props }: BoxProps): _emotion_react_jsx_runtime.JSX.Element;
1579
+
1580
+ interface PopoverTriggerProps extends BoxProps {
1581
+ }
1582
+ declare function Trigger({ children, part, ...props }: BoxProps): _emotion_react_jsx_runtime.JSX.Element;
1583
+
1584
+ declare const index$3_Content: typeof Content;
1585
+ type index$3_PopoverContentProps = PopoverContentProps;
1586
+ type index$3_PopoverRootProps = PopoverRootProps;
1587
+ type index$3_PopoverTriggerProps = PopoverTriggerProps;
1588
+ declare const index$3_Root: typeof Root;
1589
+ declare const index$3_Trigger: typeof Trigger;
1590
+ declare namespace index$3 {
1591
+ export {
1592
+ index$3_Content as Content,
1593
+ index$3_PopoverContentProps as PopoverContentProps,
1594
+ index$3_PopoverRootProps as PopoverRootProps,
1595
+ index$3_PopoverTriggerProps as PopoverTriggerProps,
1596
+ index$3_Root as Root,
1597
+ index$3_Trigger as Trigger,
1598
+ };
1599
+ }
1600
+
1601
+ interface FloatingChecklistProps extends PopoverRootProps, FlowPropsWithoutChildren {
1602
+ }
1603
+ declare function Floating({ children, flowId, onPrimary, onSecondary, part, ...props }: FloatingChecklistProps): _emotion_react_jsx_runtime.JSX.Element;
1604
+
1557
1605
  declare const index$2_Carousel: typeof Carousel;
1558
1606
  declare const index$2_Collapsible: typeof Collapsible;
1559
1607
  type index$2_CollapsibleProps = CollapsibleProps;
1560
1608
  declare const index$2_CollapsibleStep: typeof CollapsibleStep;
1561
1609
  type index$2_CollapsibleStepProps = CollapsibleStepProps;
1610
+ declare const index$2_Floating: typeof Floating;
1562
1611
  declare namespace index$2 {
1563
1612
  export {
1564
1613
  index$2_Carousel as Carousel,
@@ -1566,9 +1615,18 @@ declare namespace index$2 {
1566
1615
  index$2_CollapsibleProps as CollapsibleProps,
1567
1616
  index$2_CollapsibleStep as CollapsibleStep,
1568
1617
  index$2_CollapsibleStepProps as CollapsibleStepProps,
1618
+ index$2_Floating as Floating,
1569
1619
  };
1570
1620
  }
1571
1621
 
1622
+ declare function useClientPortal(children: React.ReactNode, container: Element | DocumentFragment | string, key?: null | string): React$1.ReactPortal;
1623
+
1624
+ interface ClientPortalProps {
1625
+ children?: React.ReactNode;
1626
+ container?: Parameters<typeof useClientPortal>[1];
1627
+ }
1628
+ declare function ClientPortal({ children, container }: ClientPortalProps): React$1.ReactPortal;
1629
+
1572
1630
  interface CollectionProps extends BoxProps {
1573
1631
  /**
1574
1632
  * The unique ID of the Collection to render. You can find the Collection ID in the Frigade dashboard.
@@ -1755,12 +1813,15 @@ declare function Dots({ current, total, ...props }: ProgressProps): _emotion_rea
1755
1813
 
1756
1814
  declare function Fraction({ current, total, ...props }: ProgressProps): _emotion_react_jsx_runtime.JSX.Element;
1757
1815
 
1816
+ declare function Ring({ css, current, height, showLabel, strokeWidth, total, width, ...props }: ProgressProps): _emotion_react_jsx_runtime.JSX.Element;
1817
+
1758
1818
  declare function Segments({ current, total, ...props }: ProgressProps): _emotion_react_jsx_runtime.JSX.Element;
1759
1819
 
1760
1820
  declare const index$1_Bar: typeof Bar;
1761
1821
  declare const index$1_Dots: typeof Dots;
1762
1822
  declare const index$1_Fraction: typeof Fraction;
1763
1823
  type index$1_ProgressProps = ProgressProps;
1824
+ declare const index$1_Ring: typeof Ring;
1764
1825
  declare const index$1_Segments: typeof Segments;
1765
1826
  declare namespace index$1 {
1766
1827
  export {
@@ -1768,6 +1829,7 @@ declare namespace index$1 {
1768
1829
  index$1_Dots as Dots,
1769
1830
  index$1_Fraction as Fraction,
1770
1831
  index$1_ProgressProps as ProgressProps,
1832
+ index$1_Ring as Ring,
1771
1833
  index$1_Segments as Segments,
1772
1834
  };
1773
1835
  }
@@ -1917,13 +1979,6 @@ declare namespace Tooltip {
1917
1979
  var Title: ({ children, ...props }: TextProps) => _emotion_react_jsx_runtime.JSX.Element;
1918
1980
  }
1919
1981
 
1920
- declare function useClientPortal(children: React.ReactNode, container: Element | DocumentFragment | string, key?: null | string): React$1.ReactPortal;
1921
-
1922
- interface ClientPortalProps {
1923
- children?: React.ReactNode;
1924
- container?: Parameters<typeof useClientPortal>[1];
1925
- }
1926
-
1927
1982
  interface TourProps extends FlowPropsWithoutChildren, Omit<HintProps, 'anchor'> {
1928
1983
  /**
1929
1984
  * The alignment of the tooltip relative to the anchor.
@@ -1986,6 +2041,8 @@ interface TourProps extends FlowPropsWithoutChildren, Omit<HintProps, 'anchor'>
1986
2041
  }
1987
2042
  declare function Tour({ as, flowId, ...props }: TourProps): _emotion_react_jsx_runtime.JSX.Element;
1988
2043
 
2044
+ declare function useAutoScroll(element: Element | null | undefined, enabled?: boolean | ScrollIntoViewOptions): void;
2045
+
1989
2046
  declare function useBoundingClientRect(): {
1990
2047
  node: any;
1991
2048
  rect: DOMRect;
@@ -2020,4 +2077,4 @@ declare function useGroup(): {
2020
2077
  isLoading: boolean;
2021
2078
  };
2022
2079
 
2023
- export { Announcement, AnnouncementProps, Banner, BannerProps, BaseField, Box, BoxProps, Button, ButtonProps, Card, CardHeaderProps, CardProps, index$2 as Checklist, CollapsibleProps, CollapsibleStepProps, Collection, Dialog, DialogProps, DismissHandler, FieldTypes, Flex, Flow, FlowChildrenProps, FlowConfig, FlowHandlerProp, FlowHandlerProps, FlowProps, FlowPropsWithoutChildren, Form, FormFieldData, FormFieldProps, FormProps, Hint, Image, Label, Media, NPSProps, index$1 as Progress, ProgressBadge, ProgressBadgeProps, Provider, ProviderProps, RadioField, SelectField, Spotlight, StepHandler, StepHandlerProp, StepHandlerProps, index as Survey, Text, TextField, TextProps, TextareaField, Theme, Tokens, Tooltip, TooltipProps, Tour, TourProps, Video, themeVariables, tokens, useBoundingClientRect, useFlow, useFlowHandlers, useFrigade, useGroup, useStepHandlers, useUser };
2080
+ export { Announcement, AnnouncementProps, Banner, BannerProps, BaseField, Box, BoxProps, Button, ButtonProps, Card, CardHeaderProps, CardProps, index$2 as Checklist, ClientPortal, ClientPortalProps, CollapsibleProps, CollapsibleStepProps, Collection, Dialog, DialogProps, DismissHandler, FieldTypes, Flex, Flow, FlowChildrenProps, FlowConfig, FlowHandlerProp, FlowHandlerProps, FlowProps, FlowPropsWithoutChildren, Form, FormFieldData, FormFieldProps, FormProps, Hint, Image, Label, Media, NPSProps, index$3 as Popover, index$1 as Progress, ProgressBadge, ProgressBadgeProps, Provider, ProviderProps, RadioField, SelectField, Spotlight, StepHandler, StepHandlerProp, StepHandlerProps, index as Survey, Text, TextField, TextProps, TextareaField, Theme, Tokens, Tooltip, TooltipProps, Tour, TourProps, Video, themeVariables, tokens, useAutoScroll, useBoundingClientRect, useFlow, useFlowHandlers, useFrigade, useGroup, useStepHandlers, useUser };